:root {
  --fd-surface-bg: #f4f6fb;
  --fd-surface-card: #ffffff;
  --fd-surface-soft: #f8fbff;
  --fd-gradient-main: linear-gradient(180deg, #0b1326 0%, #0d1831 100%);
  --fd-gradient-accent: linear-gradient(135deg, #0d1529 0%, #102044 55%, #143055 100%);
  --fd-sidebar-hover: rgba(255, 255, 255, 0.08);
  --fd-sidebar-active: rgba(64, 153, 178, 0.32);
  --fd-sidebar-border: rgba(255, 255, 255, 0.12);
  --fd-header-bg: rgba(255, 255, 255, 0.9);
  --fd-header-border: rgba(13, 21, 41, 0.08);
  --fd-stroke: rgba(13, 21, 41, 0.14);
  --fd-text-strong: #0d1529;
  --fd-text-muted: rgba(13, 21, 41, 0.62);
  --fd-accent: #4099b2;
  --fd-accent-soft: rgba(64, 153, 178, 0.18);
  --fd-card-shadow: 0 10px 28px rgba(13, 21, 41, 0.1);
  --fd-content-pad: clamp(1rem, 1.8vw, 2rem);
  --fd-left-sidebar-w: 248px;
  --fd-header-h: 72px;
}

html.fd-sidebar-collapsed {
  --fd-left-sidebar-w: 88px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.fd-shell-body {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  color: var(--fd-text-strong);
  background: var(--fd-surface-bg);
  overflow-x: hidden;
}

.fd-layout {
  display: flex;
  min-height: 100vh;
}

.fd-sidebar {
  width: var(--fd-left-sidebar-w);
  background: var(--fd-gradient-main);
  color: #f9fdff;
  border-right: 1px solid var(--fd-sidebar-border);
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1030;
  flex: 0 0 var(--fd-left-sidebar-w);
  overflow-y: auto;
  transition: width 0.2s ease;
}

.fd-sidebar,
.fd-sidebar.offcanvas,
.fd-sidebar.offcanvas-lg,
.fd-sidebar .offcanvas-body,
.fd-sidebar .offcanvas-header {
  background: var(--fd-gradient-main);
  color: #f9fdff;
  opacity: 1;
}

.fd-sidebar .offcanvas-body {
  padding: 0;
  overflow-y: auto;
}

.fd-sidebar-mobile-header {
  border-bottom: 1px solid var(--fd-sidebar-border);
}

.fd-sidebar-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
}

.fd-brand {
  width: 100%;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  text-decoration: none;
  border-radius: 0;
  color: #f5fbff;
  background: rgba(250, 253, 255, 0.08);
  border: 1px solid rgba(250, 253, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fd-brand-logo-wrap {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

.fd-brand-logo {
  display: block;
  width: min(220px, 100%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.fd-brand-logo--mini {
  width: 34px;
}

.fd-brand-mini {
  display: none;
}

.fd-sidebar-nav {
  padding: 0;
}

.fd-sidebar-section-label {
  padding: 1rem 0.85rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 249, 255, 0.66);
}

.fd-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.78rem 0.85rem;
  margin: 0.15rem 0;
  border-radius: 0;
  text-decoration: none;
  color: #f3fbff;
  font-weight: 600;
  transition: background 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

.fd-sidebar-link i {
  width: 1.4rem;
  text-align: center;
  font-size: 1rem;
}

.fd-sidebar-link:hover {
  background: var(--fd-sidebar-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.fd-sidebar-link.is-active {
  background: var(--fd-sidebar-active);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(64, 153, 178, 0.4);
}

.fd-sidebar-divider {
  height: 1px;
  margin: 0.9rem 0;
  background: rgba(240, 249, 255, 0.16);
}

.fd-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.fd-sidebar-footnote {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(240, 249, 255, 0.7);
}

.fd-sidebar-top-btn {
  justify-content: center;
  gap: 0.5rem;
}

.fd-app-surface {
  flex: 1 1 auto;
  min-height: 100vh;
  min-width: 0;
  background: var(--fd-surface-bg);
}

.fd-header {
  min-height: var(--fd-header-h);
  position: sticky;
  top: 0;
  z-index: 1020;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem var(--fd-content-pad);
  margin: 0;
  width: 100%;
  background: var(--fd-header-bg);
  border-bottom: 1px solid var(--fd-header-border);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.fd-header-left,
.fd-header-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.fd-header-right {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.fd-header-title-wrap {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.fd-header-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fd-text-strong);
}

.fd-header-title strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.fd-header-context {
  min-height: 1.1rem;
  font-size: 0.78rem;
  color: var(--fd-text-muted);
}

.fd-header-pill,
.fd-header-title .pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 0;
  background: var(--fd-accent-soft);
  border: 1px solid rgba(64, 153, 178, 0.35);
  color: var(--fd-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-icon-btn {
  width: 2.45rem;
  height: 2.45rem;
  min-width: 2.45rem;
  flex: 0 0 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0 !important;
  line-height: 1;
}

.fd-header .btn-outline-secondary {
  --bs-btn-color: #284b60;
  --bs-btn-border-color: #c4d1dd;
  --bs-btn-hover-color: #143145;
  --bs-btn-hover-bg: #edf3f8;
  --bs-btn-hover-border-color: #b1c2d0;
  --bs-btn-active-color: #143145;
  --bs-btn-active-bg: #e1ebf3;
  --bs-btn-active-border-color: #a5b9c9;
  border-radius: 0 !important;
}

.fd-header .btn,
.fd-header .dropdown-toggle {
  border-radius: 0 !important;
}

.fd-header .fd-icon-btn i {
  line-height: 1;
}

.fd-user-trigger {
  white-space: nowrap;
}

.fd-header-guest {
  font-size: 0.84rem;
  color: var(--fd-text-muted);
}

.fd-notification-menu {
  width: min(380px, 92vw);
  max-height: 420px;
  overflow: auto;
}

.fd-notification-item.unread {
  background: rgba(64, 153, 178, 0.08);
}

.fd-main-content {
  min-width: 0;
  padding: 0;
}

.fd-page-shell {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.fd-page-shell--focus-ready {
  position: relative;
}

.fd-page-body {
  min-width: 0;
  padding: clamp(0.85rem, 1.2vw, 1.35rem);
}

.fd-page-body > .container:first-child,
.fd-page-body > .container-fluid:first-child {
  margin-top: 0;
}

html.fd-sidebar-collapsed .fd-brand-logo-wrap,
html.fd-sidebar-collapsed .fd-sidebar-section-label,
html.fd-sidebar-collapsed .fd-sidebar-link-text,
html.fd-sidebar-collapsed .fd-sidebar-footnote {
  display: none;
}

html.fd-sidebar-collapsed .fd-brand-mini {
  display: inline-flex;
}

html.fd-sidebar-collapsed .fd-brand {
  min-height: 48px;
  padding: 0.35rem;
}

html.fd-sidebar-collapsed .fd-sidebar-link {
  justify-content: center;
}

html.fd-sidebar-collapsed .fd-sidebar-top-btn {
  padding-left: 0;
  padding-right: 0;
}

html.fd-focus-mode,
html.fd-focus-mode body {
  overflow: hidden;
}

html.fd-focus-mode .fd-sidebar {
  display: none !important;
}

html.fd-focus-mode .fd-layout {
  display: block;
}

html.fd-focus-mode .fd-app-surface {
  min-height: 100vh;
}

html.fd-focus-mode .fd-main-content {
  height: calc(100vh - var(--fd-header-h));
  overflow-y: auto;
}

html.fd-focus-mode .fd-page-shell--focus-ready {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .fd-sidebar.offcanvas,
  .fd-sidebar.offcanvas-lg {
    position: sticky !important;
    transform: none !important;
    visibility: visible !important;
    top: 0;
    height: 100vh;
    left: 0;
  }

  .fd-sidebar.offcanvas .offcanvas-body,
  .fd-sidebar.offcanvas-lg .offcanvas-body {
    display: block;
    transform: none !important;
  }
}

@media (max-width: 991.98px) {
  .fd-layout {
    display: block;
  }

  .fd-sidebar {
    width: min(320px, 84vw);
    position: fixed;
    flex-basis: auto;
    left: 0;
    bottom: 0;
  }

  .fd-app-surface {
    min-height: auto;
  }

  .fd-header {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    top: 0;
    margin: 0;
    box-shadow: none;
  }

  .fd-header-right {
    justify-content: flex-start;
  }

  .fd-main-content {
    padding: 0;
  }

  .fd-page-body {
    padding: 1rem;
  }
}
