/* Stage 1: shell only; proportions follow the supplied reference. */
@font-face { font-family: Inter; src: url('assets/fonts/inter-variable.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/fonts/inter-italic-variable.ttf') format('truetype'); font-style: italic; font-weight: 100 900; font-display: swap; }
@font-face { font-family: Manrope; src: url('assets/fonts/manrope-variable.ttf') format('truetype'); font-style: normal; font-weight: 200 800; font-display: swap; }
:root { color-scheme: light; --ink: var(--brand-neutral-950); --muted: var(--brand-neutral-700); --blue: var(--brand-blue-500); --sidebar: var(--brand-neutral-50); --canvas: var(--brand-neutral-0); --line: var(--brand-neutral-200); --selection: var(--brand-neutral-200); --sidebar-width: 272px; --header-height: 80px; font-family: Inter, sans-serif; font-optical-sizing: auto; color: var(--ink); background: var(--canvas); font-synthesis: none; }
h1, h2, h3, h4, h5, h6, .brand { font-family: Manrope, sans-serif; }
* { box-sizing: border-box; }
/* Keep page columns stable when expandable content adds a vertical scrollbar. */
html { scrollbar-gutter: stable; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 18px; background: var(--ink); color: white; z-index: 20; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.layout { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: var(--header-height) 1fr; transition: grid-template-columns 180ms ease; }
.layout.is-collapsed { --sidebar-width: 80px; }
.header { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; position: sticky; top: 0; z-index: 5; height: var(--header-height); background: var(--canvas); border-bottom: 1px solid var(--line); }
.brand-area { display: flex; align-items: center; min-width: 0; gap: 8px; padding: 0 16px; background: var(--sidebar); border-right: 1px solid var(--line); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 8px; }
.icon-button:hover { background: var(--selection); }
.brand { display: flex; align-items: center; min-width: 0; }
.brand img { display: block; width: 176px; max-width: 100%; height: auto; }
.is-collapsed .brand { display: none; }
.header-content { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 40px; }
.breadcrumbs { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 14px; line-height: 1.5; }
.breadcrumb-root, .breadcrumb-divider { color: var(--muted); }
#current-page { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 48px; min-height: 48px; padding: 10px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.header-action:hover, .header-action[aria-expanded="true"] { background: var(--sidebar); }
.header-panel { position: fixed; inset: calc(var(--header-height) + 8px) 40px auto auto; margin: 0; width: 400px; max-width: calc(100vw - 32px); max-height: calc(100dvh - var(--header-height) - 24px); padding: 20px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); color: var(--ink); box-shadow: 0 8px 28px var(--overlay-shadow); }
.header-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px -8px 12px 0; }
.header-panel h2 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.inline-search { position: relative; display: flex; align-items: center; width: 98px; min-height: 48px; border-radius: 8px; background: transparent; transition: width 220ms ease, background-color 220ms ease; }
.inline-search.is-open { width: 360px; background: var(--sidebar); outline: 1px solid var(--brand-neutral-400); outline-offset: -1px; }
.inline-search:focus-within.is-open { outline: 2px solid var(--blue); outline-offset: 2px; }
.inline-search #search-toggle { flex-shrink: 0; width: 98px; }
.inline-search.is-open #search-toggle { width: 48px; }
.inline-search.is-open #search-toggle > span { display: none; }
.header-search-form { display: flex; align-items: center; min-width: 0; flex: 1; }
.header-search-form[hidden] { display: none; }
.header-search-form input { width: 100%; min-width: 0; min-height: 48px; border: 0; padding: 8px 0; outline: none; color: var(--ink); background: transparent; font: inherit; font-size: 16px; line-height: 1.5; }
.header-search-form input::placeholder { color: var(--muted); opacity: 1; }
.header-search-form input::-webkit-search-cancel-button { display: none; }
.search-close { width: 44px; height: 44px; }
.inline-search:not(.has-input-focus) .search-close { visibility: hidden; }
.search-close svg { width: 18px; height: 18px; }
.inline-search-results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; max-height: min(400px, calc(100dvh - var(--header-height) - 40px)); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); box-shadow: 0 8px 28px var(--overlay-shadow); }
.inline-search-results[hidden] { display: none; }
.search-status { margin: 0 8px 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.header-search-results { list-style: none; margin: 8px 0 0; padding: 0; }
.header-search-results:empty { margin: 0; }
.header-search-results a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.header-search-results a:hover { background: var(--sidebar); }
.header-search-results svg { width: 20px; height: 20px; }
.notifications-empty { padding: 32px 0 40px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.notifications-empty p { margin: 0; }
.sidebar { grid-column: 1; grid-row: 2; position: sticky; top: var(--header-height); height: calc(100dvh - var(--header-height)); display: flex; flex-direction: column; padding: 28px 16px 20px; background: var(--sidebar); border-right: 1px solid var(--line); min-width: 0; overflow-y: auto; scrollbar-width: thin; }
.profile-link { display: flex; flex-direction: column; align-items: center; gap: 13px; min-height: 110px; flex-shrink: 0; text-align: center; margin: 0 0 32px; border-radius: 8px; }
.profile-avatar { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex-shrink: 0; border: 1px solid var(--brand-neutral-300); background: var(--brand-blue-50); border-radius: 50%; }
.profile-avatar svg { width: 28px; height: 28px; stroke-width: 1.5; }
.profile-copy { display: flex; flex-direction: column; gap: 5px; }
.profile-copy strong { font-size: 15px; font-weight: 650; }
.profile-copy > span { font-size: 12px; color: var(--muted); }
.profile-link:hover strong { color: var(--blue); }
.navigation { display: flex; flex-direction: column; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 12px 13px; border-radius: 8px; color: var(--brand-neutral-700); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.nav-link:hover { color: var(--brand-blue-700); }
.nav-link:focus-visible, .mobile-profile:focus-visible { outline: none; color: var(--brand-blue-700); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.is-collapsed .nav-link:focus-visible svg { border-bottom: 2px solid currentColor; }
.nav-link[aria-current=page] { color: var(--ink); background: var(--selection); font-weight: 750; }
.nav-divider { height: 1px; background: var(--line); margin: 15px 12px; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; text-align: center; }
.sidebar-note { font-size: 11px; color: var(--muted); }
.is-collapsed .sidebar { overflow-x: hidden; }
.is-collapsed .profile-link { gap: 0; margin-bottom: 32px; }
.is-collapsed .profile-avatar { width: 44px; height: 44px; }
.is-collapsed .profile-avatar svg { width: 24px; height: 24px; }
.is-collapsed .profile-copy, .is-collapsed .sidebar .nav-label, .is-collapsed .sidebar-note { display: none; }
.is-collapsed .sidebar .nav-link { justify-content: center; padding: 12px; }
.is-collapsed .nav-divider { margin-left: 10px; margin-right: 10px; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; padding: 36px 40px; min-width: 0; }
main:focus { outline: none; }
h1 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
.empty-canvas { display: grid; place-items: center; flex: 1; min-height: 280px; }
.empty-canvas p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: center; }
.nav-tooltip { position: fixed; z-index: 15; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: white; font-size: 13px; line-height: 1.5; max-width: 220px; }
.nav-tooltip[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(320px, calc(100vw - 32px)); height: 100dvh; max-height: 100dvh; padding: 20px 16px; border: 0; background: var(--sidebar); color: var(--ink); overflow-y: auto; }
.mobile-menu::backdrop { background: var(--overlay-backdrop); }
.mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.mobile-menu h2 { margin: 0 12px; font-size: 20px; font-weight: 650; }
.mobile-profile { display: flex; align-items: center; padding: 12px; min-height: 48px; margin-bottom: 16px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.mobile-profile:hover { color: var(--brand-blue-700); }
body.menu-open { overflow: hidden; }
@media (max-width: 1100px) { .header-action > span { display: none; } .header-actions { gap: 4px; } .header-content { padding-inline: 32px; } .header-panel { right: 32px; } main { padding-inline: 32px; } }
@media (max-width: 1100px) {
  .inline-search, .inline-search #search-toggle { width: 48px; }
  .header.search-open .breadcrumbs { display: none; }
  .header.search-open .header-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --header-height: 72px; }
  .layout, .layout.is-collapsed { display: flex; flex-direction: column; }
  .header { display: flex; align-items: stretch; }
  .brand-area { flex: 1; background: var(--canvas); border: 0; padding: 0 12px; gap: 8px; }
  .brand, .is-collapsed .brand { display: flex; }
  .brand img { width: 160px; }
  .header-content { display: flex; padding: 0 12px 0 0; flex-shrink: 0; }
  .breadcrumbs, .sidebar { display: none; }
  .header-panel { inset: calc(var(--header-height) + 8px) 16px auto 16px; width: auto; padding: 16px; }
  .header.search-open .brand { display: none; }
  .header.search-open .brand-area { flex: 0 0 72px; }
  .header.search-open .header-content { flex: 1; min-width: 0; }
  .header.search-open .header-actions { width: 100%; min-width: 0; }
  .header.search-open .inline-search { flex: 1; width: auto; min-width: 0; }
  .inline-search-results { min-width: 236px; left: auto; width: calc(100vw - 84px); }
  .workspace { flex: 1; }
  main { padding: 28px 24px; }
  h1 { font-size: 25px; }
  .empty-canvas { min-height: 250px; }
  .empty-canvas p { max-width: 210px; }
}
@media (prefers-reduced-motion: reduce) { .layout, .inline-search { transition: none; } }
