/* NextYou design system v2
   Concept: "kelajak sari" — cool slate neutrals, one cobalt brand colour and a warm sunrise accent.
   Three device layouts: phone (<768px) bottom tab bar · tablet (768–1199px) icon rail · desktop (≥1200px) full sidebar.
   Fonts are self-hosted (Inter, SIL OFL) so a minor's browser never calls a third-party CDN. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); }

:root {
  /* surfaces & ink */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --surface-3: #e4e8f1;
  --ink: #0d1024;
  --ink-2: #3a4058;
  --ink-3: #697089;
  --line: rgba(17, 26, 66, .08);
  --line-2: rgba(17, 26, 66, .15);
  /* brand: cobalt */
  --brand: #2f5bff;
  --brand-hover: #2349e6;
  --brand-ink: #ffffff;
  --brand-soft: #edf1ff;
  --brand-soft-ink: #1d40d1;
  --brand-grad: linear-gradient(135deg, #2448f0 0%, #2f5bff 45%, #2f8bff 100%);
  /* accent: sunrise */
  --accent: #ff7a45;
  --accent-soft: #fff1ea;
  --accent-ink: #a8400f;
  --amber: #f5a524;
  --amber-soft: #fff6e5;
  --amber-ink: #8a5300;
  /* semantic */
  --ok: #138a4b; --ok-soft: #e7f6ee;
  --warn: #a15c07; --warn-soft: #fff4e0;
  --bad: #c62a1f; --bad-soft: #fdecea;
  --info: #1d40d1; --info-soft: #edf1ff;
  --chart-1: #2f5bff;
  --chart-2: #ff7a45;
  --logo-star-1: #8aa3ff;
  --logo-star-2: #2f55f5;
  /* depth */
  --shadow-sm: 0 1px 2px rgba(17, 26, 66, .06);
  --shadow: 0 1px 2px rgba(17, 26, 66, .05), 0 10px 30px -14px rgba(17, 26, 66, .14);
  --shadow-lg: 0 0 0 1px rgba(17, 26, 66, .03), 0 4px 8px -2px rgba(17, 26, 66, .06), 0 24px 48px -16px rgba(17, 26, 66, .18);
  --shadow-brand: 0 8px 24px -10px rgba(47, 91, 255, .55);
  --ring: 0 0 0 3px rgba(47, 91, 255, .28);
  /* shape & type */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* layout */
  --sidebar-w: 264px;
  --rail-w: 76px;
  --topbar-h: 64px;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-star-1: #c3d1ff; --logo-star-2: #5677ff; 
    --bg: #080a13; --surface: #0f1220; --surface-2: #151a2b; --surface-3: #1e2438;
    --ink: #f2f4fb; --ink-2: #c4c9dc; --ink-3: #8c93ae;
    --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
    --brand: #5b7cff; --brand-hover: #7a95ff; --brand-soft: rgba(91, 124, 255, .15); --brand-soft-ink: #b3c2ff;
    --brand-grad: linear-gradient(135deg, #2a3fd0 0%, #3d5cff 50%, #2f7dff 100%);
    --accent: #ff8a5c; --accent-soft: rgba(255, 138, 92, .13); --accent-ink: #ffb595;
    --amber-soft: rgba(245, 165, 36, .14); --amber-ink: #ffc96b;
    --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12);
    --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12); --info: #b3c2ff; --info-soft: rgba(91, 124, 255, .15);
    --chart-1: #6b88ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .05), 0 24px 48px -16px rgba(0, 0, 0, .8);
    --shadow-brand: 0 8px 28px -10px rgba(91, 124, 255, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --logo-star-1: #c3d1ff; --logo-star-2: #5677ff; 
  --bg: #080a13; --surface: #0f1220; --surface-2: #151a2b; --surface-3: #1e2438;
  --ink: #f2f4fb; --ink-2: #c4c9dc; --ink-3: #8c93ae;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
  --brand: #5b7cff; --brand-hover: #7a95ff; --brand-soft: rgba(91, 124, 255, .15); --brand-soft-ink: #b3c2ff;
  --brand-grad: linear-gradient(135deg, #2a3fd0 0%, #3d5cff 50%, #2f7dff 100%);
  --accent: #ff8a5c; --accent-soft: rgba(255, 138, 92, .13); --accent-ink: #ffb595;
  --amber-soft: rgba(245, 165, 36, .14); --amber-ink: #ffc96b;
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12); --info: #b3c2ff; --info-soft: rgba(91, 124, 255, .15);
  --chart-1: #6b88ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .05), 0 24px 48px -16px rgba(0, 0, 0, .8);
  --shadow-brand: 0 8px 28px -10px rgba(91, 124, 255, .6);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11"; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 10px; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.028em; }
h1 { font-size: clamp(1.65rem, 1.25rem + 1.5vw, 2.25rem); }
h2 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.38rem); letter-spacing: -.02em; }
h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.012em; }
h4, h5 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 14px; }
small, .muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
strong, b { font-weight: 600; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.icon { width: 18px; height: 18px; flex: none; }
.hide-sm { display: inline; }
@media (max-width: 767px) { .hide-sm { display: none; } }
hr, hr.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ── Layout primitives ────────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.container--narrow { max-width: 820px; }
.container--form { max-width: 470px; }
.main { padding-block: 40px 80px; min-height: 60vh; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.page-head { margin-bottom: 26px; }
.page-head p { color: var(--ink-3); max-width: 68ch; margin: 0; font-size: 1rem; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.eyebrow a { color: inherit; }

/* ── Public header / footer ───────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.025em; }
.brand b, .workspace-name b { color: var(--brand); font-weight: 700; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 2px; margin-left: 14px; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .93rem; }
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.menu-toggle { display: none; }
.menu-toggle summary { list-style: none; cursor: pointer; padding: 9px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; place-items: center; background: var(--surface); }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 16px; left: 16px; top: 68px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.menu-panel a:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
}
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 52px 26px; font-size: .9rem; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid nav { display: grid; gap: 9px; align-content: start; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { margin-top: 12px; max-width: 38ch; }
.footer-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-3); margin: 0 0 4px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ══ App shell ═══════════════════════════════════════════
   Desktop ≥1200: full sidebar (user can collapse to rail).
   Tablet 768–1199: icon rail; toggle opens the full sidebar as an overlay.
   Phone <768: top bar + bottom tab bar; "Ko‘proq" opens the full menu as a drawer. */
.has-shell { background: var(--bg); }
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; width: var(--sidebar-w); flex: none; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); z-index: 40; transition: width .22s ease, transform .25s ease; }
.sidebar-header { display: flex; align-items: center; gap: 8px; padding: 14px 12px 10px 18px; min-height: var(--topbar-h); }
.workspace { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.workspace:hover { text-decoration: none; color: var(--ink); }
.workspace-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.025em; white-space: nowrap; }
.sidebar-toggle { margin-left: auto; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px 14px; scrollbar-width: thin; }
.sidebar-section + .sidebar-section { margin-top: 18px; }
.sidebar-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; margin: 0 0 6px; padding: 0 12px; white-space: nowrap; }
.sidebar-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidebar-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-size: .92rem; font-weight: 500; white-space: nowrap; position: relative; transition: background .15s, color .15s; }
.sidebar-item .icon { width: 19px; height: 19px; color: var(--ink-3); transition: color .15s; }
.sidebar-item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.sidebar-item:hover .icon { color: var(--ink-2); }
.sidebar-item.is-active { background: var(--brand-soft); color: var(--brand-soft-ink); font-weight: 600; }
.sidebar-item.is-active .icon { color: var(--brand); }
.sidebar-item.is-active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.sidebar-text { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.count-badge { border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 7px; font-size: .7rem; font-weight: 600; line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sidebar-item.is-active .count-badge { background: var(--brand); color: var(--brand-ink); }
.sidebar-footer { border-top: 1px solid var(--line); padding: 10px 12px 14px; display: flex; align-items: center; gap: 6px; padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 6px; border-radius: 12px; color: var(--ink); }
.user-chip:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.user-meta { min-width: 0; display: grid; }
.user-name { font-size: .87rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.user-sub { font-size: .75rem; color: var(--ink-3); white-space: nowrap; line-height: 1.3; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: .85rem; color: #fff; background: var(--brand-grad); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.avatar:hover { color: #fff; text-decoration: none; }
.avatar--sm { width: 32px; height: 32px; }
.icon-btn { appearance: none; border: 1px solid transparent; background: transparent; color: var(--ink-3); width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.icon-btn--outline { border-color: var(--line-2); background: var(--surface); }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-sun { display: block; } :root:not([data-theme="light"]) .icon-moon { display: none; } }

.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-title { font-weight: 600; font-size: .98rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; letter-spacing: -.01em; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar-menu, .topbar-brand { display: none; }
.shell-content { flex: 1; padding-block: 32px 64px; }
.shell-content .container { max-width: 1140px; }
.shell-content .container--narrow { max-width: 860px; }
.shell-footer { border-top: 1px solid var(--line); padding: 16px max(24px, env(safe-area-inset-left, 0px)); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: .82rem; color: var(--ink-3); }
.shell-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.shell-footer a { color: var(--ink-3); }
.shell-footer a:hover { color: var(--ink); }
.sidebar-scrim { position: fixed; inset: 0; background: rgba(8, 10, 22, .5); backdrop-filter: blur(2px); z-index: 35; }
.tabbar { display: none; }

/* Desktop: user-collapsed rail */
@media (min-width: 1200px) {
  .sidebar-collapsed .sidebar { width: var(--rail-w); }
  .sidebar-collapsed .sidebar-scrim { display: none; }
}
/* Rail look — desktop when collapsed, tablet always (unless opened) */
@media (min-width: 1200px) {
  .sidebar-collapsed .workspace .logo, .sidebar-collapsed .sidebar-text, .sidebar-collapsed .user-meta, .sidebar-collapsed .sidebar-footer form { display: none; }
  .sidebar-collapsed .sidebar-label { visibility: hidden; height: 1px; margin: 0 0 6px; }
  .sidebar-collapsed .sidebar-header { flex-direction: column; padding: 14px 0 8px; gap: 10px; }
  .sidebar-collapsed .sidebar-toggle { margin: 0; }
  .sidebar-collapsed .sidebar-nav { padding: 6px 10px 14px; }
  .sidebar-collapsed .sidebar-item { justify-content: center; padding: 11px; }
  .sidebar-collapsed .sidebar-item.is-active::before { left: -10px; }
  .sidebar-collapsed .count-badge { position: absolute; top: 4px; right: 4px; padding: 0 5px; font-size: .62rem; background: var(--brand); color: var(--brand-ink); }
  .sidebar-collapsed .sidebar-footer { justify-content: center; }
  .sidebar-collapsed .user-chip { justify-content: center; flex: none; }
  .sidebar-collapsed .sidebar-item:hover::after { content: attr(data-label); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 500; padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 60; box-shadow: var(--shadow); }
}
@media (min-width: 768px) and (max-width: 1199px) {
  :root { --topbar-h: 60px; }
  .sidebar { width: var(--rail-w); }
  :root:not(.rail-open) .workspace .logo, :root:not(.rail-open) .sidebar-text, :root:not(.rail-open) .user-meta, :root:not(.rail-open) .sidebar-footer form { display: none; }
  :root:not(.rail-open) .sidebar-label { visibility: hidden; height: 1px; margin: 0 0 6px; }
  :root:not(.rail-open) .sidebar-header { flex-direction: column; padding: 12px 0 8px; gap: 10px; }
  :root:not(.rail-open) .sidebar-toggle { margin: 0; }
  :root:not(.rail-open) .sidebar-nav { padding: 6px 10px 14px; }
  :root:not(.rail-open) .sidebar-item { justify-content: center; padding: 11px; }
  :root:not(.rail-open) .sidebar-item.is-active::before { left: -10px; }
  :root:not(.rail-open) .count-badge { position: absolute; top: 4px; right: 4px; padding: 0 5px; font-size: .62rem; background: var(--brand); color: var(--brand-ink); }
  :root:not(.rail-open) .sidebar-footer { justify-content: center; }
  :root:not(.rail-open) .user-chip { justify-content: center; flex: none; }
  :root:not(.rail-open) .sidebar-item:hover::after { content: attr(data-label); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 500; padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 60; }
  .rail-open .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); box-shadow: var(--shadow-lg); }
  .rail-open .shell-main { margin-left: var(--rail-w); }
  .shell-content { padding-block: 28px 56px; }
  .shell-content .container { padding-left: 28px; padding-right: 28px; }
}
/* Phone */
@media (max-width: 767px) {
  :root { --topbar-h: 56px; }
  body { font-size: 15.5px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 320px); transform: translateX(-104%); box-shadow: var(--shadow-lg); padding-top: env(safe-area-inset-top, 0px); border-right: 0; border-radius: 0 22px 22px 0; }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-toggle { display: none; }
  .topbar { top: 0; padding-top: env(safe-area-inset-top, 0px); height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .topbar-brand { display: inline-flex; align-items: center; }
  .topbar-brand .brand-mark { width: 28px; height: 28px; }
  .topbar-title { font-size: 1.02rem; }
  .shell-content { padding-block: 20px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom, 0px)); }
  .shell-content .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .shell-footer { display: none; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding: 6px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line); }
  .tab { appearance: none; border: 0; background: none; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: .68rem; font-weight: 500; border-radius: 14px; position: relative; padding: 4px 2px; min-width: 0; }
  .tab:hover { text-decoration: none; color: var(--ink); }
  .tab .icon { width: 22px; height: 22px; }
  .tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.is-active { color: var(--brand); font-weight: 600; }
  .tab.is-active .tab-icon { background: var(--brand-soft); }
  .tab-icon { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background .2s; }
  .tab .count-badge { position: absolute; top: 2px; left: calc(50% + 8px); background: var(--accent); color: #fff; font-size: .6rem; padding: 0 5px; }
  .h1-sm-hide { display: none; }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .08s, box-shadow .15s, filter .15s; white-space: nowrap; line-height: 1.2; letter-spacing: -.005em; }
.btn:hover { text-decoration: none; }
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--brand-grad); color: var(--brand-ink); box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--primary:hover { color: var(--brand-ink); filter: brightness(1.07); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--danger { background: var(--surface); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn--danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn--amber, .btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(255, 122, 69, .7); }
.btn--amber:hover, .btn--accent:hover { color: #fff; filter: brightness(1.05); }
.btn--light { background: #fff; color: #0d1024; }
.btn--light:hover { background: #f1f3f8; color: #0d1024; }
.btn--glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn--sm { min-height: 36px; padding: 6px 13px; font-size: .86rem; border-radius: 10px; }
.btn--lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
form.inline { display: inline; }

/* ── Cards ────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
.card--muted { background: var(--surface-2); box-shadow: none; }
.card--accent { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 65%); }
.card h2, .card h3 { margin-bottom: 8px; }
.card-link { display: block; color: inherit; transition: border-color .15s, box-shadow .2s, transform .2s; }
.card-link:hover { color: inherit; text-decoration: none; border-color: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-3); font-size: .88rem; }
.icon-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.icon-tile .icon { width: 20px; height: 20px; }
.icon-tile--amber { background: var(--accent-soft); color: var(--accent-ink); }
.icon-tile--ok { background: var(--ok-soft); color: var(--ok); }
.icon-tile--sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-tile--sm .icon { width: 16px; height: 16px; }

/* ── KPI + charts ─────────────────────────────────────── */
.kpi-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); display: grid; gap: 6px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: .84rem; font-weight: 500; }
.kpi-top .icon { width: 18px; height: 18px; color: var(--ink-3); }
.kpi-value { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-sub { font-size: .8rem; color: var(--ink-3); }
.chart { width: 100%; height: 190px; display: block; }
.chart-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-top: 6px; }
.chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-a { color: var(--brand); } .chart-s { color: var(--accent); }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg--a { background: var(--brand); } .lg--s { background: var(--accent); }
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr 70px; gap: 12px; align-items: center; font-size: .88rem; }
.funnel-bar { height: 26px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.funnel-bar > span { display: block; height: 100%; background: var(--brand-grad); border-radius: 8px; min-width: 2px; }
.funnel-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.funnel-rate { font-size: .74rem; color: var(--ink-3); font-weight: 500; display: block; }
@media (max-width: 560px) { .funnel-row { grid-template-columns: 1fr 60px; } .funnel-row .funnel-bar { grid-column: 1 / -1; grid-row: 2; } }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.status-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.status-list li:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--ok { background: var(--ok); } .dot--warn { background: var(--warn); } .dot--bad { background: var(--bad); }
.dash-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.quiet-link { color: var(--ink); }
.quiet-link:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 1.4rem; }
  .kpi-top { font-size: .76rem; gap: 6px; }
  .kpi-top .icon { display: none; }
}

/* ── Marketing ────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: 92px 72px; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 440px at 85% -10%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 65%),
  radial-gradient(620px 320px at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-block: 56px 48px; } }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); letter-spacing: -.045em; line-height: 1.02; margin-bottom: 20px; max-width: 15ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 28px; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: .82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.pill b { background: var(--brand-soft); color: var(--brand-soft-ink); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .86rem; color: var(--ink-3); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { width: 16px; height: 16px; color: var(--ok); }
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 12px; transform: rotate(.6deg); }
.preview-top { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-3); }
.preview-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); display: inline-block; }
.preview-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 8px; background: var(--bg); }
.preview-card h4 { margin: 0; font-size: .95rem; }
.preview-meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.preview-meter span { display: block; height: 100%; border-radius: 999px; background: var(--brand-grad); }
.preview-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-note { font-size: .76rem; color: var(--ink-3); text-align: center; }
.section { padding-block: 84px; }
@media (max-width: 767px) { .section { padding-block: 56px; } }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -.035em; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, auto); }
.bento-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 24px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); color: inherit; isolation: isolate; min-height: 240px; transition: box-shadow .25s, transform .25s; }
.bento-card:hover { color: inherit; text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bento-card .bento-icon { width: 42px; height: 42px; color: var(--brand); margin-top: auto; margin-bottom: 8px; transition: transform .3s ease; transform-origin: left; }
.bento-card h3 { font-size: 1.15rem; margin: 0; }
.bento-card p { color: var(--ink-3); margin: 0; max-width: 46ch; }
.bento-card .bento-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--brand); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; margin-top: 6px; }
.bento-card:hover .bento-cta, .bento-card:focus-visible .bento-cta { opacity: 1; transform: none; }
.bento-card:hover .bento-icon { transform: scale(.86); }
.bento-bg { position: relative; z-index: 0; margin: -4px -4px 18px; overflow: hidden; flex: none; pointer-events: none; }
.bento-bg > div { position: static; }
.bento-card--tall { grid-row: span 2; }
.bento-card--tall .bento-bg { flex: 1; min-height: 120px; }
.bento-card--wide { grid-column: span 2; }
.bento-card--full { grid-column: 1 / -1; min-height: 200px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento-card--wide { grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento-card--wide, .bento-card--tall, .bento-card--full { grid-column: auto; grid-row: auto; } .bento-card { min-height: 200px; } .bento-card .bento-cta { opacity: 1; transform: none; } .bento-card--tall .bento-bg { flex: none; } }
@media (hover: none) { .bento-card .bento-cta { opacity: 1; transform: none; } }
.deco-bars { display: grid; gap: 10px; }
.deco-bars div { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.deco-bars span { display: block; height: 100%; border-radius: 999px; background: var(--brand-grad); }
.deco-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.deco-chips span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-3); background: var(--bg); }
.deco-chat { display: grid; gap: 8px; }
.deco-chat span { font-size: .8rem; padding: 8px 12px; border-radius: 14px; max-width: 82%; }
.deco-chat span:nth-child(odd) { justify-self: end; background: var(--brand-grad); color: #fff; border-bottom-right-radius: 4px; }
.deco-chat span:nth-child(even) { background: var(--surface-2); color: var(--ink-2); border-bottom-left-radius: 4px; }
.deco-checks { display: grid; gap: 8px; font-size: .82rem; color: var(--ink-3); }
.deco-checks span { display: flex; gap: 8px; align-items: center; }
.deco-checks i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); display: inline-block; }
.deco-checks i.on { background: var(--ok); border-color: var(--ok); }
.deco-shield { position: absolute; top: 50%; transform: translateY(-50%); right: 40px; width: 120px; height: 120px; color: color-mix(in srgb, var(--brand) 20%, transparent); }
@media (max-width: 620px) { .deco-shield { width: 80px; height: 80px; right: 20px; top: 24px; transform: none; } }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--brand-grad); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--ink-3); margin: 0; font-size: .92rem; }
.cta-band { border-radius: 28px; padding: 52px; background: radial-gradient(600px 260px at 92% 0%, rgba(255, 138, 92, .35), transparent 60%), var(--brand-grad); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; box-shadow: var(--shadow-brand); }
.cta-band h2 { color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem); }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 22px; } }

/* ── Pricing ──────────────────────────────────────────── */
.plan-picker { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 24px; }
.plan-option { position: relative; text-align: left; padding: 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font: inherit; color: inherit; transition: box-shadow .2s, border-color .2s, transform .2s; display: grid; gap: 6px; }
.plan-option:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-1px); }
.plan-option[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg); }
.plan-option-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.plan-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.plan-price small { font-family: var(--font); font-size: .86rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-desc { font-size: .86rem; color: var(--ink-3); }
.compare { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-scroll { overflow-x: auto; }
.compare table { min-width: 560px; }
.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare td.is-selected, .compare th.is-selected { background: var(--brand-soft); }
.compare .yes { color: var(--brand); }
.compare .no { color: var(--ink-3); }
.pricing-cta { display: flex; justify-content: center; margin-top: 24px; }

/* ── Forms ────────────────────────────────────────────── */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > label, .field > .label, legend { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label > input, .field label > select { margin-top: 6px; }
.hint { font-size: .82rem; color: var(--ink-3); }
.error-text { font-size: .82rem; color: var(--bad); font-weight: 500; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=url], input[type=tel], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; font-size: .95rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink-3) 80%, transparent); }
input[type=file] { font: inherit; font-size: .9rem; color: var(--ink-2); }
textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[readonly] { background: var(--surface-2); color: var(--ink-3); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
@media (max-width: 767px) { input, select, textarea { font-size: 16px !important; } }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { margin-bottom: 8px; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: .89rem; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.chip:hover span { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.chip input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-soft-ink); box-shadow: 0 0 0 1px var(--brand); }
.chip input:focus-visible + span { box-shadow: var(--ring); }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.likert .chip span { width: 100%; justify-content: center; text-align: center; font-size: .82rem; padding: 8px 6px; border-radius: 12px; min-height: 48px; }
@media (max-width: 560px) { .likert { grid-template-columns: 1fr; } .likert .chip span { justify-content: flex-start; } }
.options { display: grid; gap: 8px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding-block: 40px; background: radial-gradient(700px 360px at 50% -10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%); }

/* ── Alerts & badges ──────────────────────────────────── */
.alert { border-radius: 14px; padding: 13px 16px; border: 1px solid; margin-bottom: 16px; font-size: .92rem; }
.alert--success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); color: var(--ink); }
.alert--error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 28%, transparent); color: var(--ink); }
.alert--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 28%, transparent); color: var(--ink); }
.alert--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); color: var(--ink); }
.alert p:last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.badge .icon { width: 14px; height: 14px; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--neutral { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge--demo { background: var(--amber-soft); color: var(--amber-ink); }
.badge--info { background: var(--brand-soft); color: var(--brand-soft-ink); }

/* ── Progress & stepper ───────────────────────────────── */
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-grad); border-radius: 999px; transition: width .5s ease; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; flex-wrap: wrap; }
.stepper li { flex: 1 1 120px; font-size: .82rem; font-weight: 600; color: var(--ink-3); border-top: 3px solid var(--surface-3); padding-top: 8px; }
.stepper li a { color: inherit; }
.stepper li[data-state="done"] { border-color: var(--ok); color: var(--ok); }
.stepper li[data-state="current"] { border-color: var(--brand); color: var(--brand); }

/* ── Tables ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: var(--surface-2); font-weight: 600; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 500; }
.pagination { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; align-items: center; }

/* ── Empty states, lists ──────────────────────────────── */
.empty { text-align: center; padding: 52px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-3); max-width: 46ch; margin: 0 auto 16px; }
.empty .row { justify-content: center; }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.evidence { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.evidence li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .92rem; }
.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }

/* ── Tasks / plan ─────────────────────────────────────── */
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task--done .task-title { text-decoration: line-through; color: var(--ink-3); }
.task-title { font-weight: 600; }
.task-meta { font-size: .8rem; color: var(--ink-3); }
.check-btn { width: 28px; height: 28px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; padding: 0; color: transparent; font-weight: 900; font-size: .8rem; transition: background .15s, border-color .15s, transform .1s; }
.check-btn:hover { border-color: var(--brand); }
.check-btn:active { transform: scale(.92); }
.check-btn[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.day-group { margin-bottom: 22px; }
.day-group h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
details.edit summary { cursor: pointer; color: var(--brand); font-size: .84rem; font-weight: 600; margin-top: 4px; }
details > summary { cursor: pointer; }

/* ── Misc ─────────────────────────────────────────────── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters .field { margin: 0; min-width: 170px; flex: 1; }
.code { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .22em; font-weight: 700; background: var(--accent-soft); color: var(--ink); padding: 10px 18px; border-radius: 14px; display: inline-block; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.chips .btn { border-radius: 999px; }
.print-only { display: none; }

/* ══ Student dashboard ═════════════════════════════════ */
.dash-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 32px; color: #fff; background:
  radial-gradient(520px 260px at 100% 0%, rgba(255, 138, 92, .42), transparent 62%),
  radial-gradient(420px 220px at 0% 120%, rgba(47, 139, 255, .55), transparent 60%), var(--brand-grad);
  box-shadow: var(--shadow-brand); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.dash-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero .eyebrow { color: rgba(255, 255, 255, .78); }
.dash-hero h1 { color: #fff; margin-bottom: 6px; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.dash-hero p { color: rgba(255, 255, 255, .86); margin: 0 0 18px; max-width: 52ch; }
.dash-hero .row { gap: 10px; }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .2) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: color-mix(in srgb, #2448f0 82%, #000); }
.ring-inner { position: relative; text-align: center; line-height: 1.1; }
.ring-value { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; letter-spacing: -.03em; display: block; }
.ring-label { font-size: .72rem; color: rgba(255, 255, 255, .78); }
@media (max-width: 767px) {
  .dash-hero { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 22px; }
  .dash-hero .ring { width: 96px; height: 96px; position: absolute; top: 20px; right: 18px; }
  .dash-hero .ring::before { inset: 8px; }
  .dash-hero .ring-value { font-size: 1.3rem; }
  .dash-hero .ring-label { font-size: .62rem; }
  .dash-hero h1, .dash-hero .eyebrow { padding-right: 104px; }
  .dash-hero .btn { flex: 1 1 auto; }
}
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; min-width: 0; }
a.tile:hover { text-decoration: none; color: inherit; box-shadow: var(--shadow); transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.tile-value { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-label { font-size: .8rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile > div { min-width: 0; }
@media (max-width: 767px) { .tile { padding: 14px; gap: 10px; } .tile .icon-tile { width: 34px; height: 34px; border-radius: 10px; } .tile-value { font-size: 1.15rem; } }
.dash-cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .dash-cols { grid-template-columns: 1fr; } }
@media (min-width: 768px) and (max-width: 1100px) { .dash-cols--split { grid-template-columns: 1fr 1fr; } }
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.section-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 6px; }
.section-card-head h2 { font-size: 1.05rem; margin: 0; font-family: var(--font); font-weight: 600; letter-spacing: -.012em; display: flex; align-items: center; gap: 10px; }
.section-card-body { padding: 8px 20px 20px; }
.next-list { list-style: none; margin: 0; padding: 0; }
.next-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.next-item:last-child { border-bottom: 0; }
.next-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brand); flex: none; }
.next-item a { color: var(--ink); font-weight: 500; }
.signal { display: grid; gap: 12px; }
.signal-row { display: grid; gap: 6px; }
.signal-row .row { justify-content: space-between; font-size: .9rem; font-weight: 500; }
.signal-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.signal-bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand-grad); }
.signal-row:nth-child(2) .signal-bar span { background: linear-gradient(90deg, #2f8bff, #59b3ff); }
.signal-row:nth-child(3) .signal-bar span { background: linear-gradient(90deg, var(--accent), #ffad7a); }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 500; cursor: pointer; font-family: inherit; text-align: left; line-height: 1.35; transition: background .15s, border-color .15s, color .15s; }
.prompt-chip:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand-soft-ink); text-decoration: none; }
.prompt-chip .icon { width: 15px; height: 15px; color: var(--brand); }

/* ══ AI mentor chat ════════════════════════════════════ */
.page-chat .shell-content { padding: 0; display: flex; flex-direction: column; }
.page-chat .shell-footer { display: none; }
.chat-app { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "list main"; flex: none; height: calc(100dvh - var(--topbar-h)); min-height: 480px; }
.chat-list { grid-area: list; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--surface); }
.chat-list-head { padding: 16px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.chat-list-items { flex: 1; overflow-y: auto; padding: 8px; list-style: none; margin: 0; }
.chat-list-items a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); }
.chat-list-items a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.chat-list-items a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-soft-ink); }
.chat-list-title { font-size: .89rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-date { font-size: .74rem; color: var(--ink-3); }
.chat-list-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat-main { grid-area: main; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); position: relative; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); min-height: 60px; }
.chat-head-title { min-width: 0; flex: 1; }
.chat-head-title h1 { font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-title p { margin: 0; font-size: .76rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.chat-head-title p .dot { width: 7px; height: 7px; }
.quota-pill { font-size: .76rem; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; display: grid; gap: 2px; }
.menu-pop form { display: block; }
.menu-pop button, .menu-pop a { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop .danger { color: var(--bad); }
.chat-log { flex: 1; overflow-y: auto; padding: 24px 20px 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-stream { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 12px; align-items: flex-start; max-width: 100%; }
.msg-avatar { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.msg-avatar .icon { width: 17px; height: 17px; }
.msg-bubble { min-width: 0; max-width: min(100%, 640px); }
.msg-role { display: block; font-size: .74rem; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.msg-body { font-size: .96rem; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.msg--assistant .msg-body, .msg--pending .msg-body { background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; border-radius: 4px 18px 18px 18px; box-shadow: var(--shadow-sm); }
.msg--user { justify-content: flex-end; }
.msg--user .msg-role { display: none; }
.msg--user .msg-body { background: var(--brand-grad); color: #fff; padding: 11px 16px; border-radius: 18px 18px 4px 18px; white-space: pre-wrap; box-shadow: var(--shadow-brand); }
.msg--notice .msg-bubble { max-width: 100%; flex: 1; }
.msg--notice .msg-avatar { background: var(--accent); box-shadow: none; }
.msg--notice .msg-body { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 12px 16px; border-radius: 14px; white-space: pre-wrap; }
.msg-body > :first-child { margin-top: 0; }
.msg-body > :last-child { margin-bottom: 0; }
.msg-body p { margin: 0 0 10px; }
.msg-body ul, .msg-body ol { margin: 4px 0 10px; padding-left: 22px; }
.msg-body li { margin: 3px 0; padding-left: 2px; }
.msg-body li::marker { color: var(--brand); font-weight: 600; }
.msg-body .md-h { font-family: var(--font); font-size: 1rem; font-weight: 600; margin: 14px 0 6px; letter-spacing: -.01em; }
.msg-body h3.md-h { font-size: 1.08rem; }
.msg-body blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.msg-body hr { margin: 12px 0; }
.msg-body .md-code { background: #0d1024; color: #e6e9f5; padding: 12px 14px; border-radius: 12px; overflow-x: auto; font-size: .84rem; margin: 8px 0; }
.msg-body .md-code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.msg-body strong { font-weight: 600; color: var(--ink); }
.msg-body a { text-decoration: underline; text-underline-offset: 3px; }
.typing-dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: bounce 1.2s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.typing .msg-body::after { content: ""; display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--brand); border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-welcome { max-width: 620px; margin: 6vh auto 0; text-align: center; padding: 0 8px; }
.chat-welcome .msg-avatar { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 16px; }
.chat-welcome .msg-avatar .icon { width: 28px; height: 28px; }
.chat-welcome h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.chat-welcome p { color: var(--ink-3); }
.chat-welcome .prompt-chips { justify-content: center; margin-top: 18px; }
.chat-compose { padding: 10px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, transparent, var(--bg) 30%); }
.chat-form { max-width: 760px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.chat-form:focus-within { border-color: var(--brand); box-shadow: var(--ring), var(--shadow); }
.chat-form textarea { flex: 1; border: 0; box-shadow: none !important; background: transparent; min-height: 40px; max-height: 200px; padding: 9px 0; resize: none; border-radius: 0; line-height: 1.5; }
.chat-form textarea:focus { box-shadow: none; }
.send-btn { width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--brand-grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: var(--shadow-brand); transition: filter .15s, transform .08s, opacity .15s; }
.send-btn:hover { filter: brightness(1.08); }
.send-btn:active { transform: scale(.95); }
.send-btn[disabled] { opacity: .5; cursor: not-allowed; }
.send-btn .icon { width: 19px; height: 19px; }
.chat-hint { max-width: 760px; margin: 8px auto 0; font-size: .74rem; color: var(--ink-3); text-align: center; }
.chat-banner { max-width: 760px; margin: 0 auto 16px; }
.chat-gate { max-width: 640px; margin: 8vh auto; padding: 0 20px; }
.chatlist-toggle { display: none; }
@media (min-width: 768px) and (max-width: 1199px) {
  .chat-app { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .chat-app { grid-template-columns: 1fr; grid-template-areas: "main"; height: calc(100dvh - var(--topbar-h) - env(safe-area-inset-top, 0px) - var(--tabbar-h) - env(safe-area-inset-bottom, 0px)); min-height: 360px; }
  .page-chat .shell-content { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .chat-list { position: fixed; inset: 0 auto 0 0; width: min(86vw, 330px); z-index: 45; transform: translateX(-104%); transition: transform .25s ease; box-shadow: var(--shadow-lg); border-radius: 0 22px 22px 0; padding-top: env(safe-area-inset-top, 0px); }
  .chatlist-open .chat-list { transform: none; }
  .chatlist-toggle { display: inline-grid; }
  .chat-head { padding: 10px 12px; min-height: 54px; }
  .chat-log { padding: 16px 12px 8px; }
  .chat-compose { padding: 8px 10px 10px; }
  .chat-hint { display: none; }
  .msg-avatar { width: 28px; height: 28px; border-radius: 9px; }
  .msg-body { font-size: .95rem; }
  .msg--assistant .msg-body { padding: 11px 14px; }
}
.chat-scrim { position: fixed; inset: 0; background: rgba(8, 10, 22, .5); z-index: 44; }

/* ── Print & motion ───────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar, .topbar, .shell-footer, .tabbar, .no-print, .btn { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 767px) {
  .chat-stream .msg--assistant > .msg-avatar, .chat-stream .msg--pending > .msg-avatar { display: none; }
  .chat-stream .msg--user .msg-bubble { max-width: 86%; }
  .chat-head > .msg-avatar { display: none; }
  .chat-head-title p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Logo ─────────────────────────────────────────────── */
.logo { display: block; height: 26px; width: auto; color: var(--ink); flex: none; }
.brand .logo { height: 28px; }
.footer-brand .logo { height: 26px; }
.workspace .logo { height: 25px; }
.workspace .brand-mark { display: none; width: 40px; height: 40px; }
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 9px; display: block; }
@media (min-width: 1200px) { .sidebar-collapsed .workspace .brand-mark { display: block; } }
@media (min-width: 768px) and (max-width: 1199px) { :root:not(.rail-open) .workspace .brand-mark { display: block; } }
.topbar-brand .brand-mark { width: 32px; height: 32px; }
@media (max-width: 767px) { .brand .logo { height: 25px; } }
