/* ==========================================================================
   munotes Studio design system
   Translated 1:1 from the Claude-design prototype (design idea/design munotes.in)
   Direction: Studio · Accent: Azure #2563EB · Light + Dark via [data-st-theme]
   Fonts: Hanken Grotesk (display + body), loaded in header.php
   All classes are st-* and all variables --st-* to avoid legacy collisions.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --st-bg: #FAFAFB;
  --st-surface: #FFFFFF;
  --st-surface-2: #F4F4F6;
  --st-surface-3: #ECECEF;
  --st-text: #18181B;
  --st-muted: #6B6B74;
  --st-faint: #A1A1AA;
  --st-border: #E9E9EE;

  --st-accent: #2563EB;
  --st-accent-ink: #FFFFFF;
  --st-accent-soft: #E5ECFD;
  --st-accent-soft: color-mix(in srgb, #2563EB 12%, #FFFFFF);
  --st-accent-border: #B3C8F8;
  --st-accent-border: color-mix(in srgb, #2563EB 35%, #FFFFFF);
  --st-pop: #2563EB;

  --st-shadow: 0 1px 2px rgba(24,24,27,0.04), 0 8px 24px rgba(24,24,27,0.06);
  --st-shadow-sm: 0 1px 2px rgba(24,24,27,0.05);
  --st-nav-bg: rgba(255,255,255,0.82);

  --st-radius: 14px;
  --st-radius-lg: 22px;
  --st-radius-pill: 999px;

  --st-font-display: "Hanken Grotesk", system-ui, sans-serif;
  --st-font-body: "Hanken Grotesk", system-ui, sans-serif;
  --st-display-weight: 700;
  --st-display-tracking: -0.02em;

  /* kind palettes (notes / paper / syllabus / shared) */
  --st-kind-notes-bg: #E8EDFF;    --st-kind-notes-fg: #3340C2;
  --st-kind-paper-bg: #FBEBD9;    --st-kind-paper-fg: #A65A14;
  --st-kind-syllabus-bg: #E1F1E6; --st-kind-syllabus-fg: #2C7A4B;
  --st-kind-shared-bg: #F0E8FB;   --st-kind-shared-fg: #7338B0;

  /* chrome metrics */
  --st-sidebar-w: 248px;
  --st-topbar-h: 68px;
  --st-bottomnav-h: 64px;

  color-scheme: light;
}

[data-st-theme="dark"] {
  --st-bg: #0B0B0E;
  --st-surface: #16161B;
  --st-surface-2: #1F1F26;
  --st-surface-3: #272730;
  --st-text: #F4F4F6;
  --st-muted: #A0A0AC;
  --st-faint: #71717E;
  --st-border: #2A2A33;

  --st-accent: #2563EB;
  --st-accent-ink: #FFFFFF;
  --st-accent-soft: #192749;
  --st-accent-soft: color-mix(in srgb, #2563EB 22%, #16161B);
  --st-accent-border: #1B3164;
  --st-accent-border: color-mix(in srgb, #2563EB 35%, #16161B);
  --st-pop: #4f83f1;

  --st-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 12px 32px rgba(0,0,0,0.3);
  --st-shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --st-nav-bg: rgba(17,17,22,0.82);

  --st-kind-notes-bg: rgba(99,102,241,0.18);  --st-kind-notes-fg: #A9B0FF;
  --st-kind-paper-bg: rgba(217,150,60,0.18);  --st-kind-paper-fg: #F0BA7D;
  --st-kind-syllabus-bg: rgba(45,160,100,0.18); --st-kind-syllabus-fg: #86D6A4;
  --st-kind-shared-bg: rgba(150,90,210,0.20); --st-kind-shared-fg: #CDA8F0;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body.st-app {
  margin: 0;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: var(--st-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.st-app a { color: inherit; }
.st-app ::selection { background: var(--st-accent-soft); }

.st-app ::-webkit-scrollbar { width: 10px; height: 10px; }
.st-app ::-webkit-scrollbar-thumb { background: var(--st-surface-3); border-radius: 999px; border: 2px solid var(--st-bg); }
.st-app ::-webkit-scrollbar-track { background: transparent; }

.st-app :focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; border-radius: 4px; }

/* icon sizing helper (inline SVGs use currentColor) */
.st-icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* --------------------------------------------------------------------------
   3. App shell — sidebar + topbar + content + bottom nav
   -------------------------------------------------------------------------- */
.st-shell {
  min-height: 100vh; background: var(--st-bg); color: var(--st-text);
  font-family: var(--st-font-body); -webkit-font-smoothing: antialiased;
}
.st-main { min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 769px) { .st-main { margin-left: var(--st-sidebar-w); } }
@media (max-width: 768px) {
  .st-shell { padding-bottom: calc(var(--st-bottomnav-h) + env(safe-area-inset-bottom, 0px)); }
}

/* theme toggle icons — pure CSS swap driven by [data-st-theme] */
.st-ic-sun, .st-ic-moon { display: inline-flex; align-items: center; }
.st-ic-moon { display: none; }
[data-st-theme="dark"] .st-ic-sun { display: none; }
[data-st-theme="dark"] .st-ic-moon { display: inline-flex; }

.st-content { flex: 1; width: 100%; }
.st-container { max-width: 1140px; margin: 0 auto; padding: 30px 32px 60px; }
.st-container--narrow { max-width: 760px; }
.st-container--mid { max-width: 960px; }

/* ---- Wordmark ---- */
.st-wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.st-wordmark-m {
  width: 30px; height: 30px; border-radius: 9px; background: var(--st-accent); color: var(--st-accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--st-font-display); font-weight: 800; font-size: 18px; line-height: 1;
}
.st-wordmark-text {
  font-family: var(--st-font-display); font-weight: var(--st-display-weight); font-size: 22px;
  letter-spacing: var(--st-display-tracking); color: var(--st-text);
}

/* ---- Sidebar ---- */
.st-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  width: var(--st-sidebar-w); box-sizing: border-box;
  background: var(--st-surface); border-right: 1px solid var(--st-border);
  display: flex; flex-direction: column; padding: 20px 14px;
}
.st-sidebar-brand { padding: 4px 8px 20px; display: flex; align-items: center; justify-content: space-between; }
.st-sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; min-height: 0; }
.st-sidebar-group { margin-bottom: 8px; }
.st-sidebar-label {
  font-size: 11px; font-weight: 700; color: var(--st-faint);
  text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 10px 6px;
}
.st-sidebar-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; box-sizing: border-box;
  border-radius: var(--st-radius); border: none; text-align: left; cursor: pointer; text-decoration: none;
  background: transparent; color: var(--st-text);
  font-family: var(--st-font-body); font-size: 14.5px; font-weight: 500; line-height: 1.2;
}
.st-sidebar-item:hover { background: var(--st-surface-2); }
.st-sidebar-item.is-active { background: var(--st-accent-soft); color: var(--st-accent); font-weight: 700; }
.st-sidebar-item .st-badge-count { margin-left: auto; }

.st-sidebar-match {
  padding: 13px; border-radius: var(--st-radius); border: 1px solid var(--st-border);
  background: var(--st-surface-2); margin-top: 8px; text-decoration: none; display: block;
}
.st-sidebar-match-label { font-size: 10.5px; color: var(--st-faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.st-sidebar-match-title { font-size: 13.5px; font-weight: 700; margin-top: 3px; color: var(--st-text); }
.st-sidebar-match-sub { font-size: 12px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* mobile drawer behaviour */
@media (max-width: 768px) {
  .st-sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: none; }
  .st-sidebar.is-open { transform: translateX(0); box-shadow: var(--st-shadow); }
}
.st-overlay {
  position: fixed; inset: 0; z-index: 49; background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.st-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---- Topbar (desktop) ---- */
.st-topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--st-topbar-h); box-sizing: border-box; flex-shrink: 0;
  border-bottom: 1px solid var(--st-border); background: var(--st-surface);
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
}
.st-topbar-search {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 42px;
  padding: 0 16px; box-sizing: border-box; border-radius: var(--st-radius-pill);
  background: var(--st-surface-2); border: 1px solid var(--st-border); color: var(--st-muted);
}
.st-topbar-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 14.5px; color: var(--st-text); font-family: var(--st-font-body);
}
.st-topbar-search input::placeholder { color: var(--st-muted); }
.st-topbar-spacer { flex: 1; }
.st-topbar-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Mobile header ---- */
.st-mobile-header {
  display: none;
  position: sticky; top: 0; z-index: 40;
  align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--st-nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--st-border);
}
@media (max-width: 768px) {
  .st-topbar { display: none; }
  .st-mobile-header { display: flex; }
}

/* ---- Bottom tab bar (mobile) ---- */
.st-bottomnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  align-items: stretch; justify-content: space-around;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--st-border);
  background: var(--st-nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
}
.st-bottomnav-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 6px 0; text-decoration: none;
  color: var(--st-faint); position: relative;
  font-size: 11px; font-weight: 600; font-family: var(--st-font-body);
}
.st-bottomnav-tab.is-active { color: var(--st-accent); font-weight: 700; }
@media (max-width: 768px) {
  .st-bottomnav { display: flex; }
}

/* --------------------------------------------------------------------------
   4. Typography blocks
   -------------------------------------------------------------------------- */
.st-page-title { margin-bottom: 22px; }
.st-page-title h1 {
  margin: 0; font-family: var(--st-font-display); font-weight: var(--st-display-weight);
  letter-spacing: var(--st-display-tracking); font-size: 30px; color: var(--st-text); line-height: 1.15;
}
.st-page-title .st-page-sub { margin: 6px 0 0; font-size: 15px; color: var(--st-muted); }

.st-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.st-section-header h2, .st-section-header .st-h2 {
  margin: 0; font-family: var(--st-font-display); font-weight: var(--st-display-weight);
  letter-spacing: var(--st-display-tracking); font-size: 19px; color: var(--st-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.st-section-action {
  background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; text-decoration: none;
  color: var(--st-accent); font-family: var(--st-font-body); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 2px;
}

.st-mini-label {
  font-size: 11.5px; font-weight: 700; color: var(--st-faint);
  text-transform: uppercase; letter-spacing: 0.05em;
}

.st-prose { font-size: 16px; line-height: 1.7; color: var(--st-text); }
.st-prose p { margin: 0 0 1.1em; }
.st-prose h2, .st-prose h3 { font-family: var(--st-font-display); letter-spacing: var(--st-display-tracking); color: var(--st-text); }
.st-prose a { color: var(--st-accent); text-decoration: underline; text-underline-offset: 2px; }
.st-prose img { max-width: 100%; border-radius: var(--st-radius); }

.st-text-muted { color: var(--st-muted); }
.st-text-faint { color: var(--st-faint); }
.st-text-accent { color: var(--st-accent); }

/* --------------------------------------------------------------------------
   5. Buttons, chips, inputs, badges
   -------------------------------------------------------------------------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border-radius: var(--st-radius-pill); font-family: var(--st-font-body); font-weight: 700;
  font-size: 15px; padding: 11px 16px; border: 1px solid transparent; text-decoration: none;
  line-height: 1.2; transition: filter .12s ease, background .12s ease, border-color .12s ease;
  box-sizing: border-box;
}
.st-btn--primary { background: var(--st-accent); color: var(--st-accent-ink); box-shadow: var(--st-shadow-sm); }
.st-btn--primary:hover { filter: brightness(1.06); }
.st-btn--ghost { background: var(--st-surface); color: var(--st-text); border-color: var(--st-border); }
.st-btn--ghost:hover { border-color: var(--st-accent-border); }
.st-btn--soft { background: var(--st-accent-soft); color: var(--st-accent); }
.st-btn--soft:hover { filter: brightness(0.98); }
.st-btn--lg { padding: 15px 20px; font-size: 16px; }
.st-btn--sm { padding: 9px 14px; font-size: 14px; }
.st-btn--full { width: 100%; }
.st-btn[disabled] { opacity: .55; cursor: default; pointer-events: none; }

.st-icon-btn {
  width: 42px; height: 42px; border-radius: var(--st-radius-pill); position: relative;
  border: 1px solid var(--st-border); background: var(--st-surface); color: var(--st-text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0; text-decoration: none; box-sizing: border-box;
}
.st-icon-btn:hover { background: var(--st-surface-2); }
.st-icon-btn .st-dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 999px;
  background: var(--st-accent); border: 2px solid var(--st-surface);
}

.st-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--st-radius-pill); white-space: nowrap; cursor: pointer; text-decoration: none;
  border: 1px solid var(--st-border); background: var(--st-surface); color: var(--st-text);
  font-family: var(--st-font-body); font-size: 14px; font-weight: 600; line-height: 1.2; box-sizing: border-box;
}
.st-chip:hover { border-color: var(--st-accent-border); }
.st-chip.is-active { border-color: transparent; background: var(--st-accent); color: var(--st-accent-ink); }
.st-chip--sm { padding: 6px 13px; font-size: 13px; }

.st-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.st-chip-scroll::-webkit-scrollbar { display: none; }

.st-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 12px 16px; border-radius: var(--st-radius); border: 1px solid var(--st-border);
  background: var(--st-surface); color: var(--st-text); font-family: var(--st-font-body); font-size: 14.5px;
}
.st-input::placeholder { color: var(--st-faint); }
.st-input:focus { outline: none; border-color: var(--st-accent); box-shadow: 0 0 0 3px var(--st-accent-soft); }
textarea.st-input { resize: vertical; min-height: 96px; }
select.st-input { appearance: none; }
.st-field { display: block; margin-bottom: 16px; }
.st-field-label { display: block; font-size: 13px; font-weight: 700; color: var(--st-text); margin-bottom: 6px; }
.st-field-hint { font-size: 12.5px; color: var(--st-muted); margin-top: 5px; }

.st-search-pill {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  padding: 13px 16px; border-radius: var(--st-radius-pill); border: 1px solid var(--st-border);
  background: var(--st-surface); color: var(--st-muted); text-align: left; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 500; font-family: var(--st-font-body);
}

/* kind badge */
.st-kind {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--st-radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; line-height: 1;
}
.st-kind--sm { padding: 3px 8px; font-size: 11px; }
.st-kind--notes    { background: var(--st-kind-notes-bg);    color: var(--st-kind-notes-fg); }
.st-kind--paper    { background: var(--st-kind-paper-bg);    color: var(--st-kind-paper-fg); }
.st-kind--syllabus { background: var(--st-kind-syllabus-bg); color: var(--st-kind-syllabus-fg); }
.st-kind--shared   { background: var(--st-kind-shared-bg);   color: var(--st-kind-shared-fg); }

/* generic pill badge (Approved / Free / counts) */
.st-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--st-radius-pill);
  background: var(--st-surface-2); color: var(--st-muted); font-size: 12px; font-weight: 700; line-height: 1.2;
}
.st-pill--pop { color: var(--st-pop); }
.st-pill--accent { background: var(--st-accent-soft); color: var(--st-accent); }

.st-badge-count {
  min-width: 16px; height: 16px; padding: 0 5px; border-radius: 999px; box-sizing: border-box;
  background: var(--st-accent); color: var(--st-accent-ink); font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}

.st-avatar {
  border-radius: var(--st-radius-pill); flex-shrink: 0; overflow: hidden;
  background: var(--st-accent); color: var(--st-accent-ink); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 800;
  font-family: var(--st-font-display); text-decoration: none;
  width: 36px; height: 36px; font-size: 14px;
}
.st-avatar img { width: 100%; height: 100%; object-fit: cover; }
.st-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.st-avatar--lg { width: 40px; height: 40px; font-size: 16px; }
.st-avatar--xl { width: 72px; height: 72px; font-size: 28px; }

/* file-type square glyph */
.st-glyph {
  width: 44px; height: 44px; border-radius: calc(var(--st-radius) - 4px); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.st-glyph--sm { width: 36px; height: 36px; border-radius: 9px; }
.st-glyph--lg { width: 56px; height: 56px; border-radius: var(--st-radius); }
.st-glyph--xl { width: 64px; height: 64px; border-radius: var(--st-radius); }
.st-glyph--notes    { background: var(--st-kind-notes-bg);    color: var(--st-kind-notes-fg); }
.st-glyph--paper    { background: var(--st-kind-paper-bg);    color: var(--st-kind-paper-fg); }
.st-glyph--syllabus { background: var(--st-kind-syllabus-bg); color: var(--st-kind-syllabus-fg); }
.st-glyph--shared   { background: var(--st-kind-shared-bg);   color: var(--st-kind-shared-fg); }
.st-glyph--accent   { background: var(--st-accent-soft);      color: var(--st-accent); }

/* --------------------------------------------------------------------------
   6. Cards & rows
   -------------------------------------------------------------------------- */
.st-card {
  border-radius: var(--st-radius-lg); border: 1px solid var(--st-border);
  background: var(--st-surface); box-shadow: var(--st-shadow-sm); box-sizing: border-box;
}
.st-card--flat { box-shadow: none; }
.st-card--pad { padding: 22px; }
.st-card--pad-sm { padding: 16px; }

/* resource file card (desktop grid) */
.st-file-card {
  cursor: pointer; border-radius: var(--st-radius-lg); border: 1px solid var(--st-border);
  background: var(--st-surface); overflow: hidden; box-shadow: var(--st-shadow-sm);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.st-file-card:hover { box-shadow: var(--st-shadow); transform: translateY(-2px); }
.st-file-card-cover {
  height: 130px; position: relative;
  background: linear-gradient(135deg, var(--st-accent-soft), var(--st-surface-2));
  border-bottom: 1px solid var(--st-border);
}
.st-cover-stripes {
  position: absolute; inset: 0; opacity: 0.5;
  background: repeating-linear-gradient(135deg, transparent, transparent 9px, var(--st-border) 9px, var(--st-border) 10px);
}
.st-file-card-cover .st-kind { position: absolute; top: 12px; left: 12px; z-index: 1; }
.st-file-card-body { padding: 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.st-file-card-title {
  font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--st-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-file-card-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--st-muted); }
.st-file-card-src { font-size: 12px; color: var(--st-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.st-save-btn {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 32px; height: 32px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--st-surface); color: var(--st-muted);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--st-shadow-sm);
}
.st-save-btn.is-saved { color: var(--st-accent); }

/* folder card (desktop grid) */
.st-folder-card {
  cursor: pointer; border-radius: var(--st-radius-lg); border: 1px solid var(--st-border);
  background: var(--st-surface); padding: 18px; display: flex; align-items: center; gap: 14px;
  text-align: left; box-shadow: var(--st-shadow-sm); text-decoration: none; color: inherit; box-sizing: border-box;
  transition: border-color .15s ease;
}
.st-folder-card:hover { border-color: var(--st-accent-border); }
.st-folder-card-icon {
  width: 48px; height: 48px; border-radius: var(--st-radius); background: var(--st-accent-soft); color: var(--st-accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.st-folder-card-name { font-size: 15.5px; font-weight: 700; color: var(--st-text); }
.st-folder-card-count { font-size: 12.5px; color: var(--st-muted); margin-top: 2px; }

/* file row (lists) */
.st-file-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  cursor: pointer; border-bottom: 1px solid var(--st-border); text-decoration: none; color: inherit;
}
.st-file-row--compact { padding: 10px 0; }
.st-file-row-main { flex: 1; min-width: 0; }
.st-file-row-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--st-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-file-row-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12px; color: var(--st-muted); min-width: 0; }
.st-meta-dot { width: 3px; height: 3px; border-radius: 9px; background: var(--st-faint); flex-shrink: 0; }

/* folder row (mobile explorer) */
.st-folder-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 0; width: 100%; cursor: pointer;
  background: none; border: none; border-bottom: 1px solid var(--st-border); text-align: left;
  color: var(--st-text); text-decoration: none; box-sizing: border-box;
}
.st-folder-row-icon {
  width: 44px; height: 44px; border-radius: calc(var(--st-radius) - 4px); flex-shrink: 0;
  background: var(--st-accent-soft); color: var(--st-accent);
  display: flex; align-items: center; justify-content: center;
}
.st-folder-row-name { font-size: 15px; font-weight: 600; }
.st-folder-row-count { font-size: 12px; color: var(--st-muted); margin-top: 2px; }

/* quick action tile / quick path card */
.st-quick-card {
  display: block; text-align: left; cursor: pointer; padding: 22px; text-decoration: none; color: inherit;
  border-radius: var(--st-radius-lg); border: 1px solid var(--st-border); background: var(--st-surface);
  box-shadow: var(--st-shadow-sm); box-sizing: border-box; transition: border-color .15s ease;
}
.st-quick-card:hover { border-color: var(--st-accent-border); }
.st-quick-card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--st-accent-soft); color: var(--st-accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.st-quick-card-title { font-size: 17px; font-weight: 700; color: var(--st-text); font-family: var(--st-font-display); }
.st-quick-card-sub { margin: 6px 0 12px; font-size: 13.5px; color: var(--st-muted); line-height: 1.5; }
.st-quick-card-link { display: inline-flex; align-items: center; gap: 4px; color: var(--st-accent); font-size: 13.5px; font-weight: 700; }

/* action tile (mobile quick grid) */
.st-action-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; cursor: pointer; text-align: left;
  border-radius: var(--st-radius); border: 1px solid var(--st-border); background: var(--st-surface);
  color: var(--st-text); box-shadow: var(--st-shadow-sm); text-decoration: none; box-sizing: border-box;
}
.st-action-tile-icon {
  width: 38px; height: 38px; border-radius: 11px; background: var(--st-accent-soft); color: var(--st-accent);
  display: flex; align-items: center; justify-content: center;
}
.st-action-tile-title { font-size: 14.5px; font-weight: 700; }
.st-action-tile-sub { font-size: 12px; color: var(--st-muted); margin-top: 1px; }

/* rail card (right column) */
.st-rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.st-rail-card { border-radius: var(--st-radius-lg); border: 1px solid var(--st-border); background: var(--st-surface); overflow: hidden; }
.st-rail-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.st-rail-card-title { font-family: var(--st-font-display); font-weight: var(--st-display-weight); font-size: 16px; color: var(--st-text); }
.st-rail-card-action { background: none; border: none; cursor: pointer; color: var(--st-accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.st-rail-card-body { padding: 0 16px 14px; }
.st-rail-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--st-border); }
.st-rail-row:last-child { border-bottom: none; }

/* date block (events rail) */
.st-dateblock { width: 42px; text-align: center; flex-shrink: 0; }
.st-dateblock-day { font-size: 18px; font-weight: 800; color: var(--st-accent); font-family: var(--st-font-display); line-height: 1; }
.st-dateblock-mon { font-size: 11px; color: var(--st-muted); }

/* stat blocks */
.st-stats-row { display: flex; gap: 32px; flex-wrap: wrap; }
.st-stat-num { font-size: 24px; font-weight: 800; font-family: var(--st-font-display); color: var(--st-text); line-height: 1.2; }
.st-stat-label { font-size: 12.5px; color: var(--st-muted); }
.st-stat-card {
  border-radius: var(--st-radius); border: 1px solid var(--st-border); background: var(--st-surface);
  padding: 16px; text-align: center; box-sizing: border-box;
}
.st-stat-card .st-stat-num { font-size: 22px; }

/* media/event card (gradient cover + meta) */
.st-media-card {
  display: flex; flex-direction: column; cursor: pointer; text-align: left; text-decoration: none; color: inherit;
  border-radius: var(--st-radius-lg); border: 1px solid var(--st-border); background: var(--st-surface);
  overflow: hidden; box-shadow: var(--st-shadow-sm); box-sizing: border-box;
  transition: box-shadow .15s ease, transform .15s ease;
}
.st-media-card:hover { box-shadow: var(--st-shadow); transform: translateY(-2px); }
.st-media-card-cover {
  height: 130px; position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, var(--st-accent-soft), var(--st-surface-2));
}
.st-media-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-media-card-cover .st-tag { position: absolute; top: 10px; left: 10px; z-index: 1; }
.st-media-card-body { padding: 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.st-media-card-title {
  font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--st-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-media-card-sub { font-size: 12.5px; color: var(--st-muted); }

.st-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px;
  background: var(--st-surface); color: var(--st-accent); font-size: 11px; font-weight: 800;
  box-shadow: var(--st-shadow-sm); line-height: 1.2;
}

/* list container with internal dividers (jobs, notifications) */
.st-list-box { border-radius: var(--st-radius-lg); border: 1px solid var(--st-border); background: var(--st-surface); padding: 4px 16px; }
.st-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--st-border); text-decoration: none; color: inherit; }
.st-list-row:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   7. Hero (home)
   -------------------------------------------------------------------------- */
.st-hero {
  border-radius: var(--st-radius-lg); padding: 40px 40px 34px; margin-bottom: 26px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--st-accent-soft), var(--st-surface));
  border: 1px solid var(--st-border);
}
.st-hero-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  white-space: nowrap; background: var(--st-surface); color: var(--st-accent);
  font-size: 12.5px; font-weight: 700; margin-bottom: 16px; box-shadow: var(--st-shadow-sm);
}
.st-hero h1 {
  margin: 0; font-family: var(--st-font-display); font-weight: var(--st-display-weight);
  letter-spacing: var(--st-display-tracking); font-size: 40px; line-height: 1.1;
  color: var(--st-text); max-width: 680px;
}
.st-hero-sub { margin: 14px 0 22px; font-size: 16px; color: var(--st-muted); max-width: 560px; line-height: 1.5; }
.st-hero-search {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 600px; cursor: pointer;
  padding: 15px 20px; box-sizing: border-box; border-radius: var(--st-radius-pill);
  border: 1px solid var(--st-border); background: var(--st-surface); color: var(--st-muted);
  text-align: left; box-shadow: var(--st-shadow-sm); text-decoration: none; font-family: var(--st-font-body);
}
.st-hero-search-hint { flex: 1; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-hero-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 15.5px; color: var(--st-text); font-family: var(--st-font-body);
}
.st-hero-search input::placeholder { color: var(--st-muted); }
.st-hero-search-cta {
  padding: 7px 16px; border-radius: 999px; background: var(--st-accent); color: var(--st-accent-ink);
  font-size: 14px; font-weight: 700; flex-shrink: 0; border: none; cursor: pointer;
  font-family: var(--st-font-body);
}
.st-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.st-hero .st-stats-row { margin-top: 26px; }

/* --------------------------------------------------------------------------
   8. Layout grids & detail
   -------------------------------------------------------------------------- */
.st-grid { display: grid; gap: 16px; }
.st-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-grid--tight { gap: 12px; }
.st-grid--loose { gap: 18px; }

.st-layout-rail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.st-layout-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.st-layout-filter { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }

.st-sticky-rail { position: sticky; top: calc(var(--st-topbar-h) + 16px); }

.st-back {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer;
  color: var(--st-muted); font-size: 14px; font-weight: 600; margin-bottom: 18px; padding: 0;
  text-decoration: none; font-family: var(--st-font-body);
}
.st-back:hover { color: var(--st-text); }

.st-breadcrumb { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 13px; margin-bottom: 16px; }
.st-breadcrumb a, .st-breadcrumb span {
  background: none; border: none; padding: 0; color: var(--st-muted); font-weight: 600;
  font-family: var(--st-font-body); font-size: 13px; white-space: nowrap; text-decoration: none; cursor: pointer;
}
.st-breadcrumb a:hover { color: var(--st-text); }
.st-breadcrumb .is-current { color: var(--st-text); font-weight: 700; cursor: default; }
.st-breadcrumb .st-crumb-sep { color: var(--st-faint); display: inline-flex; }

/* filter rail */
.st-filter-group { margin-bottom: 22px; }
.st-filter-title {
  font-size: 12px; font-weight: 700; color: var(--st-faint); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 10px;
}
.st-filter-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 7px 10px; border-radius: var(--st-radius); border: none; cursor: pointer; box-sizing: border-box;
  background: transparent; color: var(--st-text); text-align: left; text-decoration: none;
  font-family: var(--st-font-body); font-size: 13.5px; font-weight: 500;
}
.st-filter-link:hover { background: var(--st-surface-2); }
.st-filter-link.is-active { background: var(--st-accent-soft); color: var(--st-accent); font-weight: 700; }
.st-filter-link .st-count { font-size: 12px; color: var(--st-faint); flex-shrink: 0; }

.st-check {
  display: flex; align-items: center; gap: 9px; padding: 5px 10px; cursor: pointer;
  font-size: 13.5px; color: var(--st-text); white-space: nowrap; user-select: none;
}
.st-check input { position: absolute; opacity: 0; pointer-events: none; }
.st-check-box {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; box-sizing: border-box;
  border: 1.5px solid var(--st-border); background: transparent; color: var(--st-accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.st-check input:checked + .st-check-box { border-color: var(--st-accent); background: var(--st-accent); }
.st-check-box svg { opacity: 0; }
.st-check input:checked + .st-check-box svg { opacity: 1; }

/* detail preview panel */
.st-preview {
  border-radius: var(--st-radius-lg); border: 1px solid var(--st-border); overflow: hidden;
  background: var(--st-surface); box-shadow: var(--st-shadow);
}
.st-preview-area {
  height: 360px; position: relative;
  background: linear-gradient(135deg, var(--st-accent-soft), var(--st-surface-2));
}
.st-preview-area .st-cover-stripes {
  background: repeating-linear-gradient(135deg, transparent, transparent 13px, var(--st-border) 13px, var(--st-border) 14px);
}
.st-preview-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.st-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--st-muted); }

.st-meta-list { border-top: 1px solid var(--st-border); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.st-meta-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.st-meta-item .st-meta-ic { color: var(--st-faint); display: inline-flex; }
.st-meta-item .st-meta-label { flex: 1; color: var(--st-muted); }
.st-meta-item .st-meta-value { font-weight: 700; color: var(--st-text); white-space: nowrap; }

/* empty state */
.st-empty { text-align: center; padding: 70px 0; color: var(--st-faint); }
.st-empty-msg { margin-top: 12px; font-size: 15px; }

/* toast */
.st-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100;
  background: var(--st-text); color: var(--st-bg); padding: 11px 18px; border-radius: var(--st-radius-pill);
  font-size: 14px; font-weight: 600; box-shadow: var(--st-shadow); font-family: var(--st-font-body);
}
@media (max-width: 768px) { .st-toast { bottom: calc(var(--st-bottomnav-h) + 18px); } }

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.st-footer { border-top: 1px solid var(--st-border); background: var(--st-surface); margin-top: 48px; }
.st-footer-inner { max-width: 1140px; margin: 0 auto; padding: 36px 32px 28px; }
.st-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.st-footer-about { font-size: 13.5px; color: var(--st-muted); line-height: 1.6; margin-top: 10px; max-width: 360px; }
.st-footer-head { font-size: 12px; font-weight: 700; color: var(--st-faint); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.st-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-footer-links a { font-size: 13.5px; color: var(--st-muted); text-decoration: none; }
.st-footer-links a:hover { color: var(--st-accent); }
.st-footer-bottom {
  margin-top: 28px; border-top: 1px solid var(--st-border); padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--st-faint);
}
.st-footer-bottom a { color: var(--st-muted); text-decoration: none; font-weight: 600; }
.st-footer-bottom a:hover { color: var(--st-accent); }

/* --------------------------------------------------------------------------
   10. Misc patterns
   -------------------------------------------------------------------------- */
.st-divider { border: none; border-top: 1px solid var(--st-border); margin: 18px 0; }

.st-progressbar { height: 8px; border-radius: 999px; background: var(--st-surface-3); overflow: hidden; }
.st-progressbar > span { display: block; height: 100%; border-radius: 999px; background: var(--st-accent); }

.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--st-faint);
  text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 1px solid var(--st-border);
}
.st-table td { padding: 12px; border-bottom: 1px solid var(--st-border); color: var(--st-text); }
.st-table tr:last-child td { border-bottom: none; }

.st-alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px;
  border-radius: var(--st-radius); border: 1px solid var(--st-accent-border);
  background: var(--st-accent-soft); color: var(--st-text); font-size: 14px; line-height: 1.5;
}

.st-skeleton {
  background: linear-gradient(90deg, var(--st-surface-2) 25%, var(--st-surface-3) 50%, var(--st-surface-2) 75%);
  background-size: 200% 100%; animation: st-shimmer 1.4s infinite; border-radius: var(--st-radius);
}
@keyframes st-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.st-hide-desktop { display: none !important; }
@media (max-width: 768px) {
  .st-hide-desktop { display: revert !important; }
  .st-hide-mobile { display: none !important; }
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .st-layout-detail { grid-template-columns: minmax(0, 1fr); }
  .st-layout-rail { grid-template-columns: minmax(0, 1fr); }
  .st-sticky-rail { position: static; }
  .st-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hero h1 { font-size: 34px; }
}
@media (max-width: 900px) {
  .st-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-layout-filter { grid-template-columns: minmax(0, 1fr); }
  .st-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .st-container { padding: 18px 16px 40px; }
  .st-hero { padding: 26px 20px 24px; }
  .st-hero h1 { font-size: 29px; }
  .st-hero-sub { font-size: 14.5px; }
  .st-hero .st-stats-row { gap: 20px; }
  .st-page-title h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .st-grid--2, .st-grid--3, .st-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .st-grid--2-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .st-app *, .st-app *::before, .st-app *::after { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   12. Legacy bridge — re-skins old resource-hub content to Studio tokens
   while pages are migrated. resource-modern-shell.css reads everything from
   CSS variables scoped on .mn-res-content; remapping them here re-themes all
   legacy components (incl. dark mode via data-st-theme) without markup edits.
   -------------------------------------------------------------------------- */
.st-shell .mn-res-content {
  --white: var(--st-surface);
  --off: var(--st-bg);
  --ink: var(--st-text);
  --ink-2: var(--st-text);
  --ink-3: var(--st-muted);
  --ink-4: var(--st-faint);
  --border: var(--st-border);
  --border-s: var(--st-border);
  --blue-600: var(--st-accent);
  --blue-500: var(--st-accent);
  --blue-700: var(--st-accent);
  --blue-800: var(--st-text);
  --blue-900: var(--st-text);
  --blue-950: var(--st-text);
  --blue-400: var(--st-accent);
  --blue-300: var(--st-accent-border);
  --blue-200: var(--st-accent-border);
  --blue-100: var(--st-accent-soft);
  --blue-50: var(--st-accent-soft);
  --f-display: var(--st-font-display);
  --f-sans: var(--st-font-body);
  background: transparent;
  font-family: var(--st-font-body);
}
/* neutralise legacy shell layout inside the Studio shell */
.st-shell .mn-res-content .main { margin-left: 0; min-height: 0; }
.st-shell .mn-res-content .content { padding: 0; }

/* --------------------------------------------------------------------------
   13. Legacy content reskin — browse pages (notes / papers / syllabus / shared)
   Restyles the legacy resource components to the prototype's component specs
   while preserving the DOM contract used by resource-shell-interactions.js.
   -------------------------------------------------------------------------- */

/* page hero → prototype hero */
.st-shell .mn-res-content .page-hero {
  background: linear-gradient(135deg, var(--st-accent-soft), var(--st-surface));
  border: 1px solid var(--st-border); border-radius: var(--st-radius-lg);
  padding: 34px 36px 30px; margin-bottom: 24px; position: relative; overflow: hidden;
  box-shadow: none;
}
.st-shell .mn-res-content .page-hero::before,
.st-shell .mn-res-content .page-hero::after { content: none !important; }
.st-shell .mn-res-content .hero-inner { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.st-shell .mn-res-content .hero-left { max-width: 640px; min-width: 0; }
.st-shell .mn-res-content .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: var(--st-surface); color: var(--st-accent); font-size: 12px; font-weight: 700;
  letter-spacing: 0.01em; text-transform: none; margin-bottom: 14px; box-shadow: var(--st-shadow-sm);
  border: none;
}
.st-shell .mn-res-content .hero-title {
  margin: 0; font-family: var(--st-font-display); font-weight: var(--st-display-weight);
  letter-spacing: var(--st-display-tracking); font-size: 34px; line-height: 1.12; color: var(--st-text);
}
.st-shell .mn-res-content .hero-sub { margin: 12px 0 0; font-size: 15.5px; color: var(--st-muted); line-height: 1.55; max-width: 560px; }
.st-shell .mn-res-content .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.st-shell .mn-res-content .hero-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--st-border); background: var(--st-surface); color: var(--st-text);
  font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0;
}
.st-shell .mn-res-content .hero-chip.free { background: var(--st-kind-syllabus-bg); color: var(--st-kind-syllabus-fg); border-color: transparent; }
.st-shell .mn-res-content .hero-chip.type { background: var(--st-accent-soft); color: var(--st-accent); border-color: transparent; }
.st-shell .mn-res-content .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.st-shell .mn-res-content .hero-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; cursor: pointer;
  border-radius: var(--st-radius-pill); font-size: 14px; font-weight: 700; border: 1px solid transparent;
  font-family: var(--st-font-body); text-transform: none; letter-spacing: 0;
}
.st-shell .mn-res-content .hero-btn.primary { background: var(--st-accent); color: var(--st-accent-ink); box-shadow: var(--st-shadow-sm); }
.st-shell .mn-res-content .hero-btn.outline { background: var(--st-surface); color: var(--st-text); border-color: var(--st-border); }
.st-shell .mn-res-content .hero-right {
  background: var(--st-surface); border: 1px solid var(--st-border); border-radius: var(--st-radius);
  padding: 16px 18px; min-width: 230px; max-width: 280px; box-shadow: var(--st-shadow-sm);
}
.st-shell .mn-res-content .flow-head {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700; color: var(--st-faint);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.st-shell .mn-res-content .how-step { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.st-shell .mn-res-content .step-num {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: var(--st-accent-soft); color: var(--st-accent); font-size: 11.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.st-shell .mn-res-content .step-text { font-size: 13px; color: var(--st-muted); line-height: 1.45; }

/* retired duplicate breadcrumb (safety net for cached output) */
.st-shell .mn-res-content .breadcrumb-panel { display: none; }

/* layout grid → prototype rail layout */
.st-shell .mn-res-content .layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start;
}
@media (max-width: 1100px) {
  .st-shell .mn-res-content .layout { grid-template-columns: minmax(0, 1fr); }
}

/* toolbar (search / sort / year) → chip row */
.st-shell .mn-res-content .toolbar {
  background: transparent; border: none; box-shadow: none; border-radius: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0; margin: 0 0 18px;
}
.st-shell .mn-res-content .search-wrap {
  display: flex; align-items: center; gap: 9px; flex: 1 1 240px; min-width: 200px;
  padding: 10px 16px; border-radius: var(--st-radius-pill); border: 1px solid var(--st-border);
  background: var(--st-surface); color: var(--st-muted); box-shadow: none;
}
.st-shell .mn-res-content .search-wrap svg { width: 17px; height: 17px; flex-shrink: 0; }
.st-shell .mn-res-content .search-wrap input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--st-text); font-family: var(--st-font-body);
}
.st-shell .mn-res-content .toolbar-sep { display: none; }
.st-shell .mn-res-content .sort-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-shell .mn-res-content .sort-label {
  font-size: 11.5px; font-weight: 700; color: var(--st-faint); text-transform: uppercase;
  letter-spacing: 0.05em; margin-right: 2px;
}
.st-shell .mn-res-content .sort-btn {
  padding: 7px 13px; border-radius: var(--st-radius-pill); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--st-border); background: var(--st-surface); color: var(--st-text);
  font-size: 13px; font-weight: 600; font-family: var(--st-font-body); line-height: 1.2;
}
.st-shell .mn-res-content .sort-btn:hover { border-color: var(--st-accent-border); }
.st-shell .mn-res-content .sort-btn.active { background: var(--st-accent); color: var(--st-accent-ink); border-color: transparent; }
.st-shell .mn-res-content .toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.st-shell .mn-res-content .result-count { font-size: 13px; color: var(--st-muted); font-weight: 600; }

/* section headers */
.st-shell .mn-res-content .section-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 12px;
}
.st-shell .mn-res-content .section-title {
  font-family: var(--st-font-display); font-weight: var(--st-display-weight);
  letter-spacing: var(--st-display-tracking); font-size: 19px; color: var(--st-text);
  text-transform: none;
}
.st-shell .mn-res-content .section-count { font-size: 13px; color: var(--st-muted); }

/* folder grid → prototype DFolderCard */
.st-shell .mn-res-content .folders-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px;
}
@media (max-width: 560px) {
  .st-shell .mn-res-content .folders-grid { grid-template-columns: minmax(0, 1fr); }
}
.st-shell .mn-res-content .folder-card {
  display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left;
  border-radius: var(--st-radius-lg); border: 1px solid var(--st-border);
  background: var(--st-surface); padding: 16px 18px; box-shadow: var(--st-shadow-sm);
  transition: border-color .15s ease;
}
.st-shell .mn-res-content .folder-card:hover { border-color: var(--st-accent-border); transform: none; box-shadow: var(--st-shadow-sm); }
.st-shell .mn-res-content .folder-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--st-radius); flex-shrink: 0;
  background: var(--st-accent-soft); color: var(--st-accent);
  display: flex; align-items: center; justify-content: center;
}
.st-shell .mn-res-content .folder-icon-wrap svg { width: 24px; height: 24px; }
.st-shell .mn-res-content .folder-info { flex: 1; min-width: 0; }
.st-shell .mn-res-content .folder-name { font-size: 15px; font-weight: 700; color: var(--st-text); }
.st-shell .mn-res-content .folder-meta { font-size: 12.5px; color: var(--st-muted); margin-top: 2px; }
.st-shell .mn-res-content .folder-arrow { color: var(--st-faint); display: flex; }
.st-shell .mn-res-content .folder-arrow svg { width: 18px; height: 18px; }

/* panels → prototype cards */
.st-shell .mn-res-content .panel {
  border-radius: var(--st-radius-lg); border: 1px solid var(--st-border);
  background: var(--st-surface); box-shadow: var(--st-shadow-sm); margin-bottom: 18px; overflow: hidden;
}
.st-shell .mn-res-content .panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px 10px; border-bottom: none; background: transparent;
}
.st-shell .mn-res-content .panel-title {
  font-family: var(--st-font-display); font-weight: var(--st-display-weight); font-size: 16px;
  color: var(--st-text); text-transform: none; letter-spacing: var(--st-display-tracking);
}
.st-shell .mn-res-content .panel-body { padding: 2px 16px 14px; }
.st-shell .mn-res-content .panel-body.np { padding: 0 16px 10px; }

/* badges → pills */
.st-shell .mn-res-content .badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: var(--st-surface-2); color: var(--st-muted); font-size: 12px; font-weight: 700;
  text-transform: none; letter-spacing: 0; border: none;
}
.st-shell .mn-res-content .badge-blue { background: var(--st-accent-soft); color: var(--st-accent); }
.st-shell .mn-res-content .badge-green { background: var(--st-kind-syllabus-bg); color: var(--st-kind-syllabus-fg); }
.st-shell .mn-res-content .badge-amber { background: var(--st-kind-paper-bg); color: var(--st-kind-paper-fg); }

/* file rows → prototype FileRow */
.st-shell .mn-res-content .file-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: transparent; border: none; border-bottom: 1px solid var(--st-border);
  border-radius: 0; padding: 12px 2px; margin: 0; box-shadow: none;
}
.st-shell .mn-res-content .file-item:last-child { border-bottom: none; }
.st-shell .mn-res-content .file-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 240px; }
.st-shell .mn-res-content .file-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--st-kind-notes-bg); color: var(--st-kind-notes-fg);
  display: flex; align-items: center; justify-content: center;
}
.st-shell .mn-res-content[data-resource-type="question-papers"] .file-icon { background: var(--st-kind-paper-bg); color: var(--st-kind-paper-fg); }
.st-shell .mn-res-content[data-resource-type="syllabus"] .file-icon { background: var(--st-kind-syllabus-bg); color: var(--st-kind-syllabus-fg); }
.st-shell .mn-res-content[data-resource-type="shared-by-students"] .file-icon { background: var(--st-kind-shared-bg); color: var(--st-kind-shared-fg); }
.st-shell .mn-res-content .file-icon svg { width: 21px; height: 21px; }
.st-shell .mn-res-content .file-info { min-width: 0; }
.st-shell .mn-res-content .file-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-shell .mn-res-content .file-name-short {
  font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--st-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-shell .mn-res-content .file-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.st-shell .mn-res-content .file-meta-txt { font-size: 12px; color: var(--st-muted); }
.st-shell .mn-res-content .file-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* legacy buttons → Studio buttons */
.st-shell .mn-res-content .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer;
  border-radius: var(--st-radius-pill); font-family: var(--st-font-body); font-weight: 700;
  text-transform: none; letter-spacing: 0; border: 1px solid transparent; line-height: 1.2;
  padding: 9px 15px; font-size: 13.5px; box-shadow: none;
}
.st-shell .mn-res-content .btn-sm { padding: 8px 13px; font-size: 13px; }
.st-shell .mn-res-content .btn-xs { padding: 7px 12px; font-size: 12.5px; }
.st-shell .mn-res-content .btn-primary { background: var(--st-accent); color: var(--st-accent-ink); box-shadow: var(--st-shadow-sm); }
.st-shell .mn-res-content .btn-primary:hover { background: var(--st-accent); filter: brightness(1.06); }
.st-shell .mn-res-content .btn-ghost { background: var(--st-surface); color: var(--st-text); border-color: var(--st-border); }
.st-shell .mn-res-content .btn-ghost:hover { border-color: var(--st-accent-border); background: var(--st-surface); }
.st-shell .mn-res-content .btn-white { background: var(--st-surface); color: var(--st-accent); }

/* votes + bookmark */
.st-shell .mn-res-content .vote-wrap { display: flex; align-items: center; gap: 3px; }
.st-shell .mn-res-content .vote-btn {
  width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--st-border);
  background: var(--st-surface); color: var(--st-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.st-shell .mn-res-content .vote-btn svg { width: 13px; height: 13px; }
.st-shell .mn-res-content .vote-btn.voted { background: var(--st-accent-soft); color: var(--st-accent); border-color: var(--st-accent-border); }
.st-shell .mn-res-content .vote-count { font-size: 13px; font-weight: 700; color: var(--st-text); min-width: 18px; text-align: center; }
.st-shell .mn-res-content .bookmark-btn {
  width: 32px; height: 32px; border-radius: 999px; border: none; background: transparent;
  color: var(--st-faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.st-shell .mn-res-content .bookmark-btn svg { width: 17px; height: 17px; }
.st-shell .mn-res-content .bookmark-btn[aria-pressed="true"],
.st-shell .mn-res-content .bookmark-btn.bookmarked { color: var(--st-accent); }
.st-shell .mn-res-content .bookmark-btn[aria-pressed="true"] svg,
.st-shell .mn-res-content .bookmark-btn.bookmarked svg { fill: currentColor; }

/* right rail panels */
.st-shell .mn-res-content .info-card { margin-bottom: 12px; }
.st-shell .mn-res-content .info-card-title {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700;
  color: var(--st-text); margin-bottom: 8px;
}
.st-shell .mn-res-content .info-card-title svg { width: 17px; height: 17px; color: var(--st-accent); }
.st-shell .mn-res-content .info-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--st-border); font-size: 13.5px;
}
.st-shell .mn-res-content .info-row:last-child { border-bottom: none; }
.st-shell .mn-res-content .info-key { color: var(--st-muted); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 13px; }
.st-shell .mn-res-content .info-val { color: var(--st-text); font-weight: 700; }
.st-shell .mn-res-content .quick-label {
  font-size: 11.5px; font-weight: 700; color: var(--st-faint); text-transform: uppercase;
  letter-spacing: 0.05em; margin: 12px 0 6px;
}
.st-shell .mn-res-content .quick-link {
  display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 13.5px; font-weight: 600;
  color: var(--st-muted); border-bottom: 1px solid var(--st-border);
}
.st-shell .mn-res-content .quick-link:last-child { border-bottom: none; }
.st-shell .mn-res-content .quick-link:hover { color: var(--st-accent); }
.st-shell .mn-res-content .quick-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.st-shell .mn-res-content .quick-link-arr { margin-left: auto; display: flex; color: var(--st-faint); }
.st-shell .mn-res-content .quick-link-arr svg { width: 14px; height: 14px; }
.st-shell .mn-res-content .tip-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.st-shell .mn-res-content .tip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--st-accent); margin-top: 7px; flex-shrink: 0; }
.st-shell .mn-res-content .tip-text { font-size: 13px; color: var(--st-muted); line-height: 1.5; }
.st-shell .mn-res-content .bm-empty { font-size: 13px; color: var(--st-faint); padding: 6px 0; }

/* upload CTA → accent card */
.st-shell .mn-res-content .upload-cta {
  background: var(--st-accent); border: none; border-radius: var(--st-radius-lg);
  padding: 18px; color: var(--st-accent-ink); box-shadow: var(--st-shadow-sm);
}
.st-shell .mn-res-content .upload-cta-title { font-size: 15.5px; font-weight: 800; color: var(--st-accent-ink); font-family: var(--st-font-display); }
.st-shell .mn-res-content .upload-cta-sub { font-size: 12.5px; color: var(--st-accent-ink); opacity: 0.85; margin: 4px 0 12px; line-height: 1.5; }

/* calculator/tool components (tools.css reads remapped tokens) — pill polish */
.st-shell .gc-btn { border-radius: var(--st-radius-pill); font-weight: 700; }
.st-shell .gc-tab { border-radius: var(--st-radius-pill); }

/* Marketing hero bridge — converts the navy hero band used by blog/about/
   contact/pricing (homepage-ui-system.css) into the Studio hero */
.st-shell .hero-wrap {
  background: linear-gradient(135deg, var(--st-accent-soft), var(--st-surface));
  border-bottom: 1px solid var(--st-border);
}
.st-shell .hero-wrap::before, .st-shell .hero-wrap::after { content: none; }
.st-shell .hero-eyebrow {
  background: var(--st-surface); color: var(--st-accent); border: none;
  box-shadow: var(--st-shadow-sm); border-radius: 999px; font-weight: 700;
}
.st-shell .hero-eyebrow span { background: var(--st-accent); }
.st-shell .hero-h1 {
  color: var(--st-text); font-family: var(--st-font-display);
  font-weight: var(--st-display-weight); letter-spacing: var(--st-display-tracking);
}
.st-shell .hero-h1 em { color: var(--st-accent); font-style: normal; }
.st-shell .hero-h1 .dim { color: var(--st-muted); }
.st-shell .hero-sub { color: var(--st-muted); }
.st-shell .btn-white {
  background: var(--st-accent); color: var(--st-accent-ink); border-color: transparent;
  border-radius: var(--st-radius-pill); font-weight: 700; box-shadow: var(--st-shadow-sm);
}
.st-shell .btn-white:hover { background: var(--st-accent); filter: brightness(1.06); color: var(--st-accent-ink); }
.st-shell .btn-outline-white {
  background: var(--st-surface); color: var(--st-text); border-color: var(--st-border);
  border-radius: var(--st-radius-pill); font-weight: 700;
}
.st-shell .btn-outline-white:hover { background: var(--st-surface); color: var(--st-text); border-color: var(--st-accent-border); }
.st-shell .hero-proof .pstat strong { color: var(--st-text); }
.st-shell .hero-proof .pstat span { color: var(--st-muted); }
.st-shell .hero-proof { border-color: var(--st-border); }
.st-shell .platform-preview {
  background: var(--st-surface); border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow);
}
.st-shell .platform-preview .browser-bar { border-color: var(--st-border); }
.st-shell .platform-preview .browser-url { background: var(--st-surface-2); color: var(--st-muted); }
.st-shell .platform-preview .preview-search { background: var(--st-surface-2); border-color: var(--st-border); }
.st-shell .platform-preview .preview-search-text,
.st-shell .platform-preview .preview-card-sub { color: var(--st-faint); }
.st-shell .platform-preview .preview-search-icon { background: var(--st-faint); }
.st-shell .platform-preview .preview-card { background: var(--st-surface-2); border-color: var(--st-border); }
.st-shell .platform-preview .preview-card-title { color: var(--st-text); }
.st-shell .platform-preview .preview-card-tag { color: var(--st-accent); }
.st-shell .platform-preview .preview-bar { background: var(--st-surface-3); }
.st-shell .platform-preview .preview-bar.full,
.st-shell .platform-preview .preview-bar.part { background: var(--st-accent-soft); }
.st-shell .btn-blue {
  border-radius: var(--st-radius-pill); background: var(--st-accent);
  color: var(--st-accent-ink); font-weight: 700;
}
.st-shell .btn-blue:hover { background: var(--st-accent); filter: brightness(1.06); }

/* Tailwind-utility bridge — content built with profile-foundation utilities
   (events, competitions, progress, dashboards) adopts Studio tokens + dark mode */
.st-shell .bg-white, .st-shell .ui-card { background-color: var(--st-surface); }
.st-shell .bg-slate-50, .st-shell .bg-slate-100, .st-shell .bg-gray-50, .st-shell .bg-gray-100 { background-color: var(--st-surface-2); }
.st-shell .hover\:bg-white:hover { background-color: var(--st-surface); }
.st-shell .hover\:bg-slate-50:hover, .st-shell .hover\:bg-slate-100:hover { background-color: var(--st-surface-2); }
.st-shell .border-slate-100, .st-shell .border-slate-200, .st-shell .border-slate-300,
.st-shell .border-gray-100, .st-shell .border-gray-200 { border-color: var(--st-border); }
.st-shell .text-slate-900, .st-shell .text-slate-800, .st-shell .text-gray-900, .st-shell .text-gray-800 { color: var(--st-text); }
.st-shell .text-slate-700, .st-shell .text-slate-600, .st-shell .text-gray-700, .st-shell .text-gray-600 { color: var(--st-muted); }
.st-shell .text-slate-500, .st-shell .text-slate-400, .st-shell .text-gray-500, .st-shell .text-gray-400 { color: var(--st-faint); }
.st-shell .bg-blue-50, .st-shell .bg-blue-100 { background-color: var(--st-accent-soft); }
.st-shell .text-blue-700, .st-shell .text-blue-600, .st-shell .hover\:text-blue-700:hover, .st-shell .hover\:text-blue-600:hover { color: var(--st-accent); }
.st-shell .border-blue-100, .st-shell .border-blue-200, .st-shell .hover\:border-blue-200:hover { border-color: var(--st-accent-border); }
.st-shell .bg-blue-600, .st-shell .bg-blue-700 { background-color: var(--st-accent); }
.st-shell .hover\:bg-blue-700:hover { background-color: var(--st-accent); filter: brightness(1.06); }
.st-shell .rounded-2xl { border-radius: var(--st-radius-lg); }
.st-shell .rounded-xl { border-radius: var(--st-radius); }
.st-shell .shadow-sm { box-shadow: var(--st-shadow-sm); }
.st-shell .shadow-lg, .st-shell .hover\:shadow-lg:hover { box-shadow: var(--st-shadow); }

/* control-center bridge — dashboard/messages content inside the Studio shell */
body.st-app.mn-standalone-page:has(.st-shell) { display: block; }
.st-app .mn-standalone-root { width: 100%; min-width: 0; }
.st-shell .mn-committee-control { display: block; min-height: 0; width: auto; }
.st-shell .mn-committee-control .main { margin-left: 0; width: 100%; max-width: 100%; }
.st-shell .mn-committee-control .content { padding: 0; }

/* jobs master-detail split (DJobs) */
.st-jobs-split {
  display: grid; grid-template-columns: 380px minmax(0, 1fr);
  border: 1px solid var(--st-border); border-radius: var(--st-radius-lg);
  background: var(--st-surface); overflow: hidden; box-shadow: var(--st-shadow-sm);
  min-height: 60vh;
}
.st-jobs-list { border-right: 1px solid var(--st-border); min-width: 0; }
.st-jobs-list-scroll { max-height: calc(100vh - 220px); overflow-y: auto; }
.st-job-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid var(--st-border); text-decoration: none; color: inherit;
  border-left: 3px solid transparent;
}
.st-job-row:hover { background: var(--st-surface-2); }
.st-job-row.is-active { background: var(--st-accent-soft); border-left-color: var(--st-accent); }
.st-job-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-job-row-title {
  font-size: 14px; font-weight: 700; color: var(--st-text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.st-job-row-sub { font-size: 12px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-job-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.st-job-row-date { font-size: 11px; color: var(--st-faint); }
.st-jobs-detail { padding: 26px 28px 34px; min-width: 0; }
.st-jobs-detail-head { display: flex; align-items: center; gap: 16px; }
.st-jobs-detail-title {
  margin: 0; font-family: var(--st-font-display); font-weight: var(--st-display-weight);
  letter-spacing: var(--st-display-tracking); font-size: 23px; color: var(--st-text); line-height: 1.2;
}
.st-jobs-detail-sub { font-size: 14px; color: var(--st-muted); margin-top: 4px; }
@media (max-width: 900px) {
  .st-jobs-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .st-jobs-list { border-right: none; }
  .st-jobs-list-scroll { max-height: none; }
  .st-jobs-split .st-jobs-detail { display: none; }
  .st-jobs-split.has-selection .st-jobs-detail { display: block; padding: 20px 16px 28px; }
  .st-jobs-split.has-selection .st-jobs-list { display: none; }
}

/* related paths + empty state */
.st-shell .mn-res-content .related-section { margin: 22px 0 0; }
.st-shell .mn-res-content .related-label {
  font-size: 11.5px; font-weight: 700; color: var(--st-faint); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 10px;
}
.st-shell .mn-res-content .related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-shell .mn-res-content .r-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--st-radius-pill); white-space: nowrap;
  border: 1px solid var(--st-border); background: var(--st-surface); color: var(--st-text);
  font-size: 13px; font-weight: 600;
}
.st-shell .mn-res-content .r-chip:hover { border-color: var(--st-accent-border); color: var(--st-accent); }
.st-shell .mn-res-content .empty-state { text-align: center; padding: 50px 0; color: var(--st-faint); }
.st-shell .mn-res-content .empty-state h4 { font-family: var(--st-font-display); font-size: 17px; color: var(--st-text); margin: 0 0 6px; }
.st-shell .mn-res-content .empty-state p { font-size: 14px; color: var(--st-muted); margin: 0; }

/* --------------------------------------------------------------------------
   14. Question-paper viewer reskin — remaps .qp-viewer-content tokens to the
   Studio palette and converts the navy hero band to the Studio hero.
   -------------------------------------------------------------------------- */
body.st-app .qp-viewer-content {
  --ink: var(--st-text);
  --ink-2: var(--st-text);
  --ink-3: var(--st-muted);
  --ink-4: var(--st-faint);
  --paper: var(--st-surface);
  --paper-2: var(--st-bg);
  --paper-3: var(--st-surface-2);
  --border: var(--st-border);
  --border-s: var(--st-border);
  --blue: var(--st-accent);
  --blue-d: var(--st-accent);
  --blue-m: var(--st-accent);
  --blue-l: var(--st-accent-soft);
  --blue-pale: var(--st-accent-soft);
  --green: var(--st-kind-syllabus-fg);
  --green-l: var(--st-kind-syllabus-bg);
  --green-pale: var(--st-kind-syllabus-bg);
  --amber: var(--st-kind-paper-fg);
  --amber-l: var(--st-kind-paper-bg);
  --f-head: var(--st-font-display);
  --f-body: var(--st-font-body);
  --f-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--st-bg);
  font-family: var(--st-font-body);
}
body.st-app .qp-viewer-content .hero-band {
  background: linear-gradient(135deg, var(--st-accent-soft), var(--st-surface));
  border-bottom: 1px solid var(--st-border);
}
body.st-app .qp-viewer-content .hero-band::before { content: none; }
body.st-app .qp-viewer-content .hero-title {
  color: var(--st-text); font-family: var(--st-font-display);
  font-weight: var(--st-display-weight); letter-spacing: var(--st-display-tracking);
}
body.st-app .qp-viewer-content .hero-title em { color: var(--st-accent); font-style: normal; }
body.st-app .qp-viewer-content .hero-sub { color: var(--st-muted); }
body.st-app .qp-viewer-content .hero-sub a { color: var(--st-accent); }
body.st-app .qp-viewer-content .pill {
  border-radius: 999px; font-weight: 700; letter-spacing: 0.01em; text-transform: none;
}
body.st-app .qp-viewer-content .pill.type { border-color: transparent; color: var(--st-accent); background: var(--st-surface); box-shadow: var(--st-shadow-sm); }
body.st-app .qp-viewer-content .pill.yr { border-color: transparent; color: var(--st-accent); background: var(--st-accent-soft); }
body.st-app .qp-viewer-content .pill.free { border-color: transparent; color: var(--st-kind-syllabus-fg); background: var(--st-kind-syllabus-bg); }
body.st-app .qp-viewer-content .pill.free::before { background: var(--st-kind-syllabus-fg); }
body.st-app .qp-viewer-content .hero-cta-btn {
  border-radius: var(--st-radius-pill); font-family: var(--st-font-body); font-weight: 700;
}
body.st-app .qp-viewer-content .hero-cta-btn.primary {
  background: var(--st-accent); color: var(--st-accent-ink); box-shadow: var(--st-shadow-sm);
}
body.st-app .qp-viewer-content .hero-cta-btn.primary:hover {
  background: var(--st-accent); filter: brightness(1.06); box-shadow: var(--st-shadow); transform: translateY(-1px);
}
body.st-app .qp-viewer-content .hero-cta-btn.ghost {
  background: var(--st-surface); color: var(--st-text); border: 1px solid var(--st-border);
}
body.st-app .qp-viewer-content .hero-cta-btn.ghost:hover {
  background: var(--st-surface); color: var(--st-text); border-color: var(--st-accent-border);
}
body.st-app .qp-viewer-content .activity-ticker { color: var(--st-muted); }
body.st-app .qp-viewer-content .activity-ticker strong { color: var(--st-text); }

/* --------------------------------------------------------------------------
   15. Marketing-page reskin — remaps homepage-ui-system.css tokens (used by
   about / pricing / contact / blog / terms / privacy / committees pages)
   to the Studio palette. Deep navys (--blue-950/900/800) intentionally stay
   navy: they back "dark sections" with hardcoded light text. Scoped to
   .st-shell so unconverted pages (control-center) keep their own tokens.
   -------------------------------------------------------------------------- */
.st-shell {
  --blue-700: var(--st-accent);
  --blue-600: var(--st-accent);
  --blue-500: var(--st-accent);
  --blue-400: var(--st-accent);
  --blue-300: var(--st-accent-border);
  --blue-200: var(--st-accent-border);
  --blue-100: var(--st-accent-soft);
  --blue-50: var(--st-accent-soft);
  --white: var(--st-surface);
  --off: var(--st-bg);
  --ink: var(--st-text);
  --ink-2: var(--st-text);
  --ink-3: var(--st-muted);
  --ink-4: var(--st-faint);
  --border: var(--st-border);
  --border-s: var(--st-border);
  --f-display: var(--st-font-display);
  --f-sans: var(--st-font-body);
}

/* --------------------------------------------------------------------------
   16. Control-center / auth reskin — static Studio LIGHT values for legacy
   tokens defined on :root by committee-control-center.css and friends.
   studio.css loads last, so this :root block wins; pages with closer scopes
   (.st-shell, .mn-res-content, .qp-viewer-content) keep their live remaps.
   Static values (not var(--st-*)) so unconverted pages ignore dark mode
   instead of half-flipping against their hardcoded utility colours.
   -------------------------------------------------------------------------- */
:root {
  --blue-700: #2563EB;
  --blue-600: #2563EB;
  --blue-500: #2563EB;
  --blue-400: #2563EB;
  --blue-300: #B3C8F8;
  --blue-200: #B3C8F8;
  --blue-100: #E5ECFD;
  --blue-50: #E5ECFD;
  --white: #FFFFFF;
  --off: #FAFAFB;
  --ink: #18181B;
  --ink-2: #18181B;
  --ink-3: #6B6B74;
  --ink-4: #A1A1AA;
  --border: #E9E9EE;
  --border-s: #E9E9EE;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --f-display: "Hanken Grotesk", system-ui, sans-serif;
  --f-sans: "Hanken Grotesk", system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(24,24,27,0.05);
  --shadow-md: 0 1px 2px rgba(24,24,27,0.04), 0 8px 24px rgba(24,24,27,0.06);
  --shadow-lg: 0 2px 8px rgba(24,24,27,0.08), 0 16px 40px rgba(24,24,27,0.10);
}
