/* AI Studies project board — extracted from mockups/project-dashboard.html
 *
 * Colour and type follow the Vanderbilt brand guide (brand.vanderbilt.edu).
 * The core palette is metallic gold, black and white; Libre Caslon and Inter
 * are the brand typefaces used here, with Times and Arial as the fallbacks
 * brand itself specifies. The --vu-* block holds the brand values verbatim so
 * they can be checked against the guide; the semantic tokens under it are
 * what the app actually paints with.
 *
 * Two deliberate departures from the guide, both on legibility grounds. There
 * are no gradients anywhere, including for the metallic gold — Flat Gold is
 * used instead. And Antonio, brand's all-caps subhead face, is not loaded:
 * condensed caps were the hardest thing on the page to read at label sizes,
 * so labels are tracked Inter. Libre Caslon Display is likewise reserved for
 * the one headline large enough for a display cut; smaller headings use the
 * Text cut or Inter.
 *
 * One accessibility fact shapes the whole palette: Flat Gold on white is
 * 1.9:1 and fails AA outright. The compliant gold pairings brand publishes
 * are gold-on-black (5.75:1) and black-on-gold (8:1), so gold is a fill or a
 * rule on dark ground here — never text on light. Where a gold *ink* is
 * wanted on cream, --accent is Oak, a brand secondary that clears AA at 5.2:1.
 */
  :root {
    /* ---- Vanderbilt brand palette, verbatim ---- */
    --vu-black: #1C1C1C;
    --vu-white: #FFFFFF;
    --vu-gold: #CFAE70;       /* Flat Gold, PMS 4024 C  */
    --vu-gold-lo: #FEEEB6;    /* Metallic Gold, light end of the PMS 871 ramp */
    --vu-gold-hi: #B49248;    /* Metallic Gold, dark end                      */
    --vu-oak: #946E24;
    --vu-highlight: #ECB748;
    --vu-sand: #E0D5C0;
    --vu-cream: #F5F3EF;
    --vu-gray: #777777;
    --vu-gray-lt: #E4E4E4;
    --vu-sky: #B3C9CD;
    --vu-sage: #8BA18E;
    /* Brand renders the metallic gold as a gradient. It read as cheap on
       screen at every size we tried it, so the whole interface is flat: gold
       accents are Flat Gold, which is the guide's own flat equivalent. */

    /* ---- Semantic tokens ---- */
    --ground: #F5F3EF;
    --surface: #FFFFFF;
    --surface-2: #FAF8F4;
    --ink: #1C1C1C;
    --muted: #57544F;
    --faint: #777777;
    --border: #E4E4E4;
    --border-strong: #D2CEC5;
    --accent: #946E24;
    --accent-soft: #EFE7D6;
    /* What goes on top of --accent. White on Oak is 5.2:1; in dark mode
       --accent is Flat Gold, where white would be 1.9:1 and black is 8:1. */
    --on-accent: #FFFFFF;
    --accent-ink: #5E4A1E;
    --ok: #2F7D5B;
    --ok-soft: #E1F0E7;
    --warn: #B4842B;
    --warn-soft: #F6ECD5;
    --closed: #8B8781;
    --closed-soft: #ECEAE4;
    --info: #3D6B8E;
    --info-soft: #E3ECF3;
    --del: #8F2F2A;   --del-soft: #FBEBEA;  --del-mark: #F5C9C5;
    --add: #1F6B45;   --add-soft: #E8F4EC;  --add-mark: #BFE3CD;
    --shadow: 0 1px 2px rgba(28,28,28,.04), 0 4px 16px rgba(28,28,28,.05);
    --shadow-lg: 0 8px 40px rgba(28,28,28,.16);
    --radius: 12px;
    --radius-sm: 8px;
    /* Brand typefaces, each with the fallback brand names for it. */
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --serif: "Libre Caslon Text", "Times New Roman", Times, Georgia, serif;
    --display: "Libre Caslon Display", "Libre Caslon Text", "Times New Roman", Times, serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground: #121212;
      --surface: #1C1C1C;
      --surface-2: #232323;
      --ink: #F5F3EF;
      --muted: #B0ABA2;
      --faint: #8A857C;
      --border: #2E2E2E;
      --border-strong: #3C3A36;
      --accent: #CFAE70;
      --accent-soft: #CFAE7024;
      --on-accent: #1C1C1C;
      --accent-ink: #E4CB92;
      --ok: #5FBB8E;
      --ok-soft: #1B2E23;
      --warn: #D8AC5A;
      --warn-soft: #322813;
      --closed: #8B8781;
      --closed-soft: #262626;
      --info: #7FA9C9;
      --info-soft: #1A2731;
      --del: #E09891;   --del-soft: #2C1917;  --del-mark: #522A26;
      --add: #7FC9A2;   --add-soft: #14251C;  --add-mark: #23492F;
      --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.35);
      --shadow-lg: 0 8px 40px rgba(0,0,0,.55);
    }
  }
  :root[data-theme="dark"] {
    --ground: #121212;
    --surface: #1C1C1C;
    --surface-2: #232323;
    --ink: #F5F3EF;
    --muted: #B0ABA2;
    --faint: #8A857C;
    --border: #2E2E2E;
    --border-strong: #3C3A36;
    --accent: #CFAE70;
    --accent-soft: #CFAE7024;
    --on-accent: #1C1C1C;
    --accent-ink: #E4CB92;
    --ok: #5FBB8E;
    --ok-soft: #1B2E23;
    --warn: #D8AC5A;
    --warn-soft: #322813;
    --closed: #8B8781;
    --closed-soft: #262626;
    --info: #7FA9C9;
    --info-soft: #1A2731;
    --del: #E09891;   --del-soft: #2C1917;  --del-mark: #522A26;
    --add: #7FC9A2;   --add-soft: #14251C;  --add-mark: #23492F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.35);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.55);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  button { font-family: inherit; cursor: pointer; }
  ::selection { background: var(--accent-soft); }

  .app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

  /* ---------- Sidebar ---------- */
  .sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100vh;
  }
  .brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 20px; }
  /* The Dimensional V, on the one ground brand publishes it against: gold on
     black is 5.75:1, and gold on anything light is 1.9:1 — which is why the
     tile keeps its own black rather than following the surface. The mark is
     decorative here; "Applied AI Studies" sits beside it in both places it
     appears, so the img carries no alt text of its own. */
  .brand-mark {
    width: 34px; height: 34px; border-radius: 9px; flex: none;
    background: var(--vu-black);
    display: grid; place-items: center; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  }
  .brand-mark img { width: 74%; height: 74%; object-fit: contain; display: block; }
  /* Dark mode puts the tile's black on a black surface, so it needs an edge of
     its own to stay a tile. */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-mark {
      box-shadow: inset 0 0 0 1px var(--border-strong);
    }
  }
  :root[data-theme="dark"] .brand-mark {
    box-shadow: inset 0 0 0 1px var(--border-strong);
  }

  /* "Applied AI Studies" runs to two lines in a 232px rail, so this is sized
     to wrap tidily rather than to fit on one. */
  .brand-name { font-family: var(--serif); font-size: 15.5px; font-weight: 700; line-height: 1.18; letter-spacing: .1px; }
  .brand-sub { font-size: 11px; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
  /* The university and the school, under the product name rather than
     competing with it — the board is theirs, it is not their homepage. */
  .brand-org { padding: 0 8px 16px; margin-top: -12px; }
  .brand-org .org-v { font-family: var(--serif); font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .brand-org .org-s { font-size: 11px; color: var(--faint); line-height: 1.35; margin-top: 1px; }
  .brand-foot { margin-top: 12px; font-size: 10.5px; line-height: 1.45; color: var(--faint); }

  /* =======================================================================
     Public landing page
     The only view that drops the app shell. Dr. Jesse Spencer-Smith asked for a page he could
     point a faculty newsletter at, so it is built as a website — sticky
     header, dark hero, banded sections, real footer — rather than as the
     board with the data hidden.

     Colour and type are the Vanderbilt brand guide's (see the token block at
     the top of this file). Gold appears as a fill or a rule on black, never
     as text on light: Flat Gold on white is 1.9:1. The one gold *ink*, on
     cream, is Oak via --accent, which clears AA.
     ======================================================================= */

  /* The public shell. applySession() and switchView() set body[data-shell],
     so this is one state flip rather than a second page to keep in sync. */
  body[data-shell="public"] .app { grid-template-columns: 1fr; }
  body[data-shell="public"] .sidebar,
  body[data-shell="public"] .topbar,
  body[data-shell="public"] .dock,
  body[data-shell="public"] .fab { display: none !important; }
  body[data-shell="public"] .content { padding: 0; max-width: none; }
  /* The submit form is a form, not a place to ask an assistant for project
     recommendations — so the dock goes whoever is signed in. */
  body[data-view="submit"] .fab,
  body[data-view="submit"] .dock { display: none !important; }
  /* Signed out, the submit form is reached from the landing page and returns
     there by a back button; it gets no sidebar and no board search. */
  body[data-shell="public"] #view-submit { padding: 26px 32px 60px; max-width: 1240px; margin: 0 auto; }
  .pub-back { display: none; }
  body[data-shell="public"] .pub-back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    background: none; border: 0; padding: 0; font-family: inherit;
    font-size: 13.5px; font-weight: 650; color: var(--accent);
  }
  .pub-back svg { width: 16px; height: 16px; transition: transform .14s; }
  .pub-back:hover { color: var(--accent-ink); }
  .pub-back:hover svg { transform: translateX(-3px); }
  @media (max-width: 620px) { body[data-shell="public"] #view-submit { padding: 20px 18px 48px; } }

  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  #programs, #ideas, #how { scroll-margin-top: 106px; }

  /* The lockups ship in a black-text and a white-text cut; pick by theme.
     Three states to cover: system light, system dark, and an explicit choice,
     the same guard pattern as the colour tokens. Both sides of the swap are
     written at equal specificity — a bare `.lock-dark { display: none }`
     loses to `.pub-lock img { display: block }` and paints both cuts. */
  .pub-lock .lock-light { display: block; }
  .pub-lock .lock-dark  { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pub-lock .lock-light { display: none; }
    :root:not([data-theme="light"]) .pub-lock .lock-dark  { display: block; }
  }
  :root[data-theme="dark"] .pub-lock .lock-light { display: none; }
  :root[data-theme="dark"] .pub-lock .lock-dark  { display: block; }

  /* ---- public header ---- */
  .pub-head {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 30px;
    padding: 15px 32px;
    background: color-mix(in srgb, var(--ground) 90%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
  }
  /* Brand puts the floor for the horizontal lockup at 250px on the web, so
     this is set as a width rather than a height that lands near it by luck. */
  .pub-lock { display: flex; align-items: center; flex: none; }
  .pub-lock img { width: 296px; height: auto; }
  .pub-nav { display: flex; gap: 22px; margin-left: auto; }
  .pub-nav a {
    font-size: 13.6px; font-weight: 550; color: var(--muted);
    text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent;
  }
  .pub-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
  .pub-act { display: flex; gap: 9px; flex: none; }

  /* ---- hero ---- */
  .hero {
    position: relative; overflow: hidden;
    background: var(--vu-black); color: #fff;
    padding: 78px 32px 66px;
  }
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--vu-gold);
  }
  .hero-in { position: relative; max-width: 1180px; margin: 0 auto; }
  .hero-copy { min-width: 0; }
  /* Brand offers Antonio for all-caps subheads. Condensed caps turned out to
     be the hardest thing on the page to read at label sizes, so every label
     here is Inter instead — semibold and tracked, which holds up at 12px. */
  .hero-eyebrow {
    font-family: var(--sans); font-size: 13px; font-weight: 650;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--vu-gold); margin-bottom: 16px;
  }
  .hero h1 {
    font-family: var(--display); font-weight: 400; color: #fff;
    font-size: clamp(34px, 5.2vw, 58px); line-height: 1.07;
    letter-spacing: -.012em; margin: 0 0 20px; max-width: 22ch;
  }
  .hero-lede {
    font-size: 17.5px; line-height: 1.62; color: rgba(255,255,255,.8);
    margin: 0; max-width: 62ch;
  }
  /* Faculty coming back to check on something they already posted had no way
     in from this page at all. */
  .hero-alt { margin: 22px 0 0; font-size: 14px; color: rgba(255,255,255,.68); }
  .hero-alt + .hero-alt { margin-top: 8px; }
  .hero-alt button {
    background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit;
    font-weight: 650; color: var(--vu-gold); text-decoration: underline;
    text-decoration-color: rgba(207,174,112,.5); text-underline-offset: 3px;
  }
  .hero-alt button:hover { text-decoration-color: var(--vu-gold); }

  /* Two doors, deliberately unequal: the student one is the gold fill so a
     student never has to work out which half of the page is theirs. */
  /* Wide enough to anchor the composition now that nothing sits to the right
     of the copy, and wide enough that neither door's label wraps. */
  .hero-doors {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px; margin: 38px 0 0; max-width: 940px;
  }
  .door {
    display: grid; gap: 5px; text-align: left; font-family: inherit;
    padding: 20px 22px 18px; border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.045);
    color: #fff; transition: background .14s, border-color .14s, transform .14s;
  }
  .door:hover { background: rgba(255,255,255,.08); border-color: rgba(207,174,112,.55); transform: translateY(-2px); }
  .door-k { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .085em; color: var(--vu-gold); }
  .door-t { font-size: 23px; font-weight: 650; line-height: 1.2; letter-spacing: -.005em; }
  .door-s { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.74); }
  .door-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 13.5px; font-weight: 650; color: var(--vu-gold); }
  .door-go svg { width: 15px; height: 15px; transition: transform .14s; }
  .door:hover .door-go svg { transform: translateX(3px); }

  /* Black on Flat Gold is 8:1 — the strongest pairing brand publishes. */
  .door-student { background: var(--vu-gold); border-color: transparent; color: var(--vu-black); }
  .door-student:hover { background: #DCBE85; border-color: transparent; }
  .door-student .door-k { color: rgba(28,28,28,.72); }
  .door-student .door-s { color: rgba(28,28,28,.82); }
  .door-student .door-go { color: var(--vu-black); }

  /* ---- body sections ---- */
  .land-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }


  .band { padding: 52px 0 0; margin-top: 44px; border-top: 1px solid var(--border); }
  .land-wrap > .band:first-child { margin-top: 0; padding-top: 56px; border-top: 0; }
  .band.alt { border-top: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 44px 36px; }
  .band-head { max-width: 68ch; margin-bottom: 30px; }
  .band-k { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .085em; color: var(--accent); margin-bottom: 9px; }
  .band-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.18; margin: 0 0 11px; }
  .band-lede { font-size: 15.5px; line-height: 1.62; color: var(--muted); margin: 0; }

  .prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 24px; }
  .prog { position: relative; padding-top: 18px; }
  .prog::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--vu-gold); }
  .prog-n { font-size: 17px; font-weight: 650; line-height: 1.28; margin-bottom: 5px; }
  .prog-m { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .075em; color: var(--faint); margin-bottom: 10px; }
  .prog p { font-size: 13.8px; line-height: 1.6; color: var(--muted); margin: 0; }

  .idea-grid { display: grid; grid-template-columns: 1fr; gap: 26px 34px; }
  @media (min-width: 720px) { .idea-grid { grid-template-columns: 1fr 1fr; } }
  .idea { display: flex; flex-direction: column; }
  .idea-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
  .idea-ic svg { width: 21px; height: 21px; }
  .idea-n { font-size: 16.5px; font-weight: 650; line-height: 1.32; margin-bottom: 8px; }
  .idea p { font-size: 13.8px; line-height: 1.6; color: var(--muted); margin: 0; }

  .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 900px; }
  .steps li { display: flex; gap: 18px; }
  .step-n {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; margin-top: 2px;
    background: var(--accent); color: var(--on-accent);
    font-size: 15px; font-weight: 650;
  }
  .step-b h3 { font-size: 17px; font-weight: 650; margin: 7px 0 7px; }
  .step-b p { font-size: 14.2px; line-height: 1.62; color: var(--muted); margin: 0; }

  .ask-back { position: relative; overflow: hidden; margin-top: 34px; padding: 20px 24px 20px 27px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
  .ask-back::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--vu-gold); }
  .ab-k { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .085em; color: var(--accent); margin-bottom: 7px; }
  .ask-back p { margin: 0; font-size: 14.2px; line-height: 1.62; color: var(--muted); }

  /* ---- draft-with-an-assistant band ---- */
  .craft {
    position: relative; overflow: hidden;
    margin-top: 56px; padding: 40px 36px; border-radius: 20px;
    background: var(--vu-black); color: #fff;
    display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  }
  .craft-b { position: relative; max-width: 62ch; }
  .craft-k { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .085em; color: var(--vu-gold); margin-bottom: 9px; }
  .craft h2 { font-family: var(--serif); font-weight: 700; color: #fff; font-size: clamp(22px, 2.6vw, 29px); line-height: 1.2; margin: 0 0 10px; }
  .craft p { margin: 0; font-size: 14.5px; line-height: 1.62; color: rgba(255,255,255,.78); }
  .craft-a { position: relative; display: flex; flex-direction: column; gap: 9px; }
  .craft-a .btn { justify-content: center; text-decoration: none; }
  .craft-a .btn.primary { background: var(--vu-gold); border-color: transparent; color: var(--vu-black); }
  .craft-a .btn.primary:hover { background: #DCBE85; border-color: transparent; }
  .craft-a .btn.ghost { color: rgba(255,255,255,.84); border-color: rgba(255,255,255,.22); }
  .craft-a .btn.ghost:hover { background: rgba(255,255,255,.09); color: #fff; }

  /* ---- footer ---- */
  .pub-foot { background: var(--vu-black); color: #fff; margin-top: 66px; padding: 52px 32px 26px; }
  .foot-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 1fr) 1.6fr; gap: 46px; }
  .foot-brand img { width: 320px; max-width: 100%; height: auto; display: block; margin-bottom: 18px; }
  .foot-brand p { margin: 0; font-size: 13.2px; line-height: 1.62; color: rgba(255,255,255,.64); max-width: 46ch; }
  .foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 30px; }
  .foot-k { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .085em; color: var(--vu-gold); margin-bottom: 13px; }
  .foot-lnk {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: 0 0 9px; font-family: inherit; font-size: 13.4px; line-height: 1.4;
    color: rgba(255,255,255,.8); text-decoration: none;
  }
  .foot-lnk:hover { color: var(--vu-gold); }
  .foot-p { margin: 0 0 11px; font-size: 13.4px; line-height: 1.45; color: rgba(255,255,255,.8); }
  .foot-p:last-child { margin-bottom: 0; }
  /* Name on its own line: "Every other program — Umang Chaudhry" wrapped mid
     link in a 200px column, which dragged the underline across the break. */
  .fc-l { display: block; font-size: 12px; color: rgba(255,255,255,.55); }
  .foot-mail { color: var(--vu-gold); text-decoration: underline; text-decoration-color: rgba(207,174,112,.45); text-underline-offset: 3px; }
  .foot-mail:hover { text-decoration-color: var(--vu-gold); }
  .foot-rule { max-width: 1180px; margin: 40px auto 0; height: 1px; background: rgba(255,255,255,.14); }
  .foot-legal { max-width: 1180px; margin: 0 auto; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 12.2px; color: rgba(255,255,255,.62); }
  /* Staff have no self-signup and no business being offered next to the
     student and faculty doors, but they still need a way in. */
  .foot-staff {
    margin-left: auto; background: none; font-family: inherit; font-size: 12.2px; font-weight: 650;
    color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.24);
    border-radius: 7px; padding: 6px 13px;
  }
  .foot-staff:hover { color: var(--vu-black); background: var(--vu-gold); border-color: var(--vu-gold); }
  @media (max-width: 620px) { .foot-staff { margin-left: 0; } }

  @media (max-width: 960px) {
    .pub-nav { display: none; }
    .pub-act { margin-left: auto; }
    .craft { grid-template-columns: 1fr; }
    .foot-in { grid-template-columns: 1fr; gap: 34px; }
  }
  @media (max-width: 620px) {
    /* Brand's 250px floor for the lockup plus three controls does not fit a
       phone on one line, and shrinking the lockup is not an option — so the
       header wraps and the actions take their own full-width row. */
    .pub-head { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
    .pub-lock { flex: 1 0 100%; }
    .pub-lock img { width: 252px; }   /* the brand floor, not smaller */
    .pub-act { width: 100%; margin-left: 0; }
    .pub-act .btn { flex: 1; justify-content: center; }
    .pub-act .icon-btn { flex: none; }
    .hero { padding: 46px 20px 42px; }
    .hero-stats { gap: 14px 26px; margin-top: 32px; }
    .land-wrap { padding: 0 18px; }
    .band.alt { padding: 32px 22px; }
    .craft { padding: 30px 22px; }
    .pub-foot { padding: 42px 20px 22px; }
    .craft-a .btn { width: 100%; }
  }


  .nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); padding: 14px 10px 6px; font-weight: 600; }
  .nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    color: var(--muted); font-size: 14.5px; font-weight: 500;
    background: none; border: none; width: 100%; text-align: left;
    transition: background .12s, color .12s;
  }
  .nav-item svg { width: 18px; height: 18px; flex: none; }
  .nav-item:hover { background: var(--surface-2); color: var(--ink); }
  .nav-item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
  .nav-item .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); }
  .nav-item.active .count { color: var(--accent-ink); }
  .nav-admin { display: none; }
  body[data-role="staff"] .nav-admin { display: flex; }

  .sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
  /* Quiet by default and only as loud as a nav item on hover: it has to be
     findable from every view without competing with any of them. */
  .bug-lnk {
    display: flex; align-items: center; gap: 9px; width: 100%;
    margin: 10px 0 12px; padding: 7px 9px; border-radius: 8px;
    background: none; border: 1px solid transparent; font-family: inherit;
    font-size: 12.5px; font-weight: 600; color: var(--faint); text-align: left;
  }
  .bug-lnk svg { width: 15px; height: 15px; flex: none; }
  .bug-lnk:hover { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--border); }

  /* The board is in beta and says so wherever it names itself. A statement,
     not a control — the way to report something sits next to it. */
  .beta {
    display: inline-block; vertical-align: 2px; margin-left: 6px;
    font-family: var(--sans); font-size: 9.5px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-ink); background: var(--accent-soft);
    border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 5px;
  }
  /* Wrapped with the lockup rather than nudged out of the header's 30px gap,
     so the pill stays with the name it qualifies at every width. */
  .pub-brand { display: flex; align-items: center; gap: 11px; flex: none; }
  .pub-brand .beta { margin-left: 0; vertical-align: 0; }
  .foot-beta { color: rgba(255,255,255,.62); }
  .inline-lnk {
    background: none; border: none; padding: 0; font: inherit; font-weight: 650;
    color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px;
  }
  .inline-lnk:hover { color: var(--accent); }
  .submit-beta { max-width: 1180px; margin: 26px auto 0; padding-top: 18px;
    border-top: 1px solid var(--border); font-size: 12.8px; color: var(--faint); }
  body[data-shell="app"] .submit-beta { display: none; }
  .foot-inline {
    background: none; border: none; padding: 0; font: inherit;
    color: rgba(255,255,255,.86); text-decoration: underline; text-underline-offset: 2px;
  }
  .foot-inline:hover { color: var(--vu-gold); }

  /* ---------- Starting over (staff, gated) ---------- */
  .data-sec { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
  .data-sec .why { max-width: 70ch; }
  .data-counts { list-style: none; margin: 4px 0 14px; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
  .data-counts li { font-size: 13px; color: var(--muted); }
  .data-counts li b { color: var(--del); font-weight: 700; font-variant-numeric: tabular-nums; }
  .data-counts li.kept b { color: var(--ok); }
  .data-counts li.kept span { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--ok); background: var(--ok-soft); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }

  /* ---------- Bug reports (staff) ---------- */
  .bugs { display: flex; flex-direction: column; gap: 12px; }
  .bug { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
  /* Resolved stays on the list — it is a record of what was found — but it
     stops asking to be read. */
  .bug.resolved { background: var(--surface-2); }
  .bug.resolved .bug-body { color: var(--faint); }
  .bug-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 12.5px; color: var(--muted); }
  .bug-state { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    border-radius: 5px; padding: 2px 7px; }
  .bug-state.open { background: var(--warn-soft); color: var(--warn); }
  .bug-state.resolved { background: var(--ok-soft); color: var(--ok); }
  .bug-who { font-weight: 650; color: var(--ink); font-size: 13.5px; }
  .bug-role, .bug-page, .bug-age { color: var(--faint); }
  .bug-body { margin-top: 9px; }
  .bug-p { font-size: 13.5px; line-height: 1.55; margin: 0 0 7px; white-space: pre-wrap; }
  .bug-p:last-child { margin-bottom: 0; }
  .bug-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
    margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
  .bug-ua { font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
  .agent-tip {
    background: var(--info-soft); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 11px 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45;
  }
  .agent-tip b { color: var(--ink); }
  .agent-tip .k { font-family: var(--mono); font-size: 11.5px; background: var(--surface); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--border); color: var(--accent-ink); }

  /* ---------- Topbar ---------- */
  .main { min-width: 0; display: flex; flex-direction: column; }
  .topbar {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--ground) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    padding: 12px 26px;
  }
  .search {
    flex: 1; max-width: 460px; display: flex; align-items: center; gap: 9px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 10px; padding: 8px 12px; color: var(--muted);
  }
  .search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .search svg { width: 16px; height: 16px; flex: none; }
  .search input { border: none; background: none; outline: none; color: var(--ink); font-size: 14px; width: 100%; }
  .search input::placeholder { color: var(--faint); }

  .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); display: grid; place-items: center; }
  .icon-btn:hover { color: var(--ink); border-color: var(--accent); }
  .icon-btn svg { width: 17px; height: 17px; }
  .user { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
  .avatar { width: 34px; height: 34px; border-radius: 50%; background: #5E6A76; color:#fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
  .user-meta { line-height: 1.15; }
  .user-name { font-size: 13.5px; font-weight: 600; }
  .user-id { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }

  /* ---------- Content ---------- */
  .content { padding: 26px; max-width: 1240px; width: 100%; margin: 0 auto; }
  .view { display: none; }
  .view.active { display: block; animation: fade .25s ease; }
  @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .view.active, .view.active * { animation: none !important; } }

  .page-head { margin-bottom: 20px; }
  .page-head h1 { font-family: var(--serif); font-size: 27px; font-weight: 700; margin: 0 0 4px; letter-spacing: .1px; text-wrap: balance; }
  .page-head p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 64ch; }

  /* Stat row */
  .stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 22px; }
  .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow); }
  .stat .label { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
  .stat .dot { width: 8px; height: 8px; border-radius: 50%; }
  .stat .num { font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -.5px; }
  .stat .delta { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
  .stat .delta.up { color: var(--ok); }

  /* Filter bar */
  .filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
  .chip {
    border: 1px solid var(--border-strong); background: var(--surface);
    color: var(--muted); border-radius: 999px; padding: 6px 13px;
    font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
    transition: all .12s;
  }
  .chip:hover { border-color: var(--accent); color: var(--ink); }
  .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
  .chip .c { font-family: var(--mono); font-size: 11px; opacity: .7; }
  .filter-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
  .filterbar .spacer { margin-left: auto; }
  .select { border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 11px; font-size: 13px; font-family: inherit; }

  /* Card grid */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(322px,1fr)); gap: 16px; }

  /* The board, with the how-it-works rail Dr. Jesse Spencer-Smith asked for beside it. The rail
     sticks while the cards scroll, and drops above them once there is no room
     for two columns. */
  /* How to claim and work a project. This used to be a 268px rail beside the
     board, where a five-step list broke a word to a line; it reads across the
     top instead. Each step wraps its own text in a div: as bare children of a
     grid item, the text after each <b> became an anonymous grid item and
     landed in the 20px number column. */
  .howto { background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 22px 18px; margin-bottom: 18px; }
  .howto-head { max-width: 78ch; margin-bottom: 16px; }
  .howto h2 { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.25; margin: 0 0 8px; }
  .guide-lede { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
  .guide-steps { list-style: none; counter-reset: g; margin: 0; padding: 16px 0 0;
    border-top: 1px solid var(--border);
    /* Five steps, sized so they make one row at full width rather than
       leaving the fifth alone under the other four. */
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 20px; }
  .guide-steps li { counter-increment: g; display: grid; grid-template-columns: 20px 1fr; gap: 9px;
    font-size: 12.8px; line-height: 1.5; color: var(--muted); align-items: start; }
  .guide-steps li::before { content: counter(g); font-size: 10.5px; font-weight: 700;
    color: var(--accent-ink); background: var(--accent-soft); border-radius: 50%;
    width: 18px; height: 18px; display: grid; place-items: center; margin-top: 1px; }
  .guide-steps b { color: var(--ink); font-weight: 650; }
  .guide-steps a { color: var(--accent-ink); font-weight: 600; }
  .guide-foot { font-size: 12px; line-height: 1.5; color: var(--faint); margin: 16px 0 0;
    padding-top: 13px; border-top: 1px solid var(--border); }
  .guide-foot:empty { display: none; }
  .card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 17px 17px 15px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
    transition: border-color .15s, transform .15s, box-shadow .15s; position: relative;
  }
  .card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .card.claimed-you { border-color: var(--accent); }
  .card-top { display: flex; align-items: flex-start; gap: 10px; }
  .card h3 { font-size: 16px; font-weight: 650; margin: 0; line-height: 1.3; flex: 1; text-wrap: balance; }
  .pill { font-size: 11px; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 5px; }
  .pill .pdot { width: 6px; height: 6px; border-radius: 50%; }
  .pill.available { background: var(--ok-soft); color: var(--ok); }
  .pill.available .pdot { background: var(--ok); }
  .pill.claimed { background: var(--warn-soft); color: var(--warn); }
  .pill.claimed .pdot { background: var(--warn); }
  .pill.mine { background: var(--accent-soft); color: var(--accent-ink); }
  .pill.mine .pdot { background: var(--accent); }
  .card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
  .card .submitter { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
  .src-chip { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; }
  .src-chip.faculty { background: var(--info-soft); color: var(--info); }
  .src-chip.lab { background: #efe6f3; color: #7a5296; }
  .src-chip.student { background: var(--closed-soft); color: var(--closed); }
  :root[data-theme="dark"] .src-chip.lab, :root:not([data-theme="light"]) .src-chip.lab { background: #2a1f33; color: #c39fe0; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .src-chip.lab { background: #2a1f33; color: #c39fe0; } }

  .tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag { font-size: 11.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }
  .card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
  .meta-inline { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 5px; }
  .meta-inline svg { width: 14px; height: 14px; }

  .btn {
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
    padding: 8px 15px; border-radius: 8px; font-size: 13.5px; font-weight: 600; transition: all .12s;
    display: inline-flex; align-items: center; gap: 7px;
  }
  .btn:hover { border-color: var(--accent); }
  .btn svg { width: 15px; height: 15px; }
  .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
  .btn.ghost { background: none; border-color: transparent; color: var(--muted); }
  .btn.ghost:hover { color: var(--ink); background: var(--surface-2); }
  .btn:disabled { opacity: .55; cursor: default; }
  .btn.claim-you { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
  .card-foot .btn:last-child { margin-left: auto; }

  .empty { text-align: center; padding: 60px 20px; color: var(--faint); }
  .empty p { margin: 0 0 14px; }
  .empty svg { width: 34px; height: 34px; margin-bottom: 10px; opacity: .5; }

  /* ---------- Submit form ---------- */
  .form-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
  .form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
  .field { margin-bottom: 17px; }
  .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
  .field label .opt { color: var(--faint); font-weight: 400; }
  .field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }
  .field .hint.bad { color: var(--del); font-weight: 600;
    display: flex; align-items: center; gap: 5px; }
  .field .hint.bad svg { width: 13px; height: 13px; flex: none; }
  .input, textarea.input, select.input {
    width: 100%; border: 1px solid var(--border-strong); background: var(--surface-2);
    border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink); outline: none;
  }
  .input:focus, textarea.input:focus, select.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
  textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
  .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  /* Only the name row wants a narrow first cell — wide enough for the label
     "Title — optional", not just for "Dr." */
  .row-3.tight { grid-template-columns: 132px 1fr 1fr; }
  @media (max-width: 620px){ .row-3, .row-3.tight { grid-template-columns: 1fr; } }
  .seg { display: flex; gap: 6px; flex-wrap: wrap; }
  .seg-opt { border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 8px; padding: 8px 13px; font-size: 13px; font-weight: 500; color: var(--muted); }
  .seg-opt.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
  .check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); }
  .check input { width: 16px; height: 16px; accent-color: var(--accent); }
  .form-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
  .form-actions .hint { margin: 0 auto 0 0; }

  /* an applicant's profile, under their statement */
  .ar-p { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--border);
    display: grid; gap: 7px; }
  .ar-pl { font-size: 12px; font-weight: 650; color: var(--muted); }
  .ar-pb { font-size: 12.5px; line-height: 1.5; color: var(--muted); white-space: pre-wrap; }
  .ar-pb span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }

  /* résumé upload */
  .resume-box { border: 1px dashed var(--border-strong); border-radius: 9px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .resume-box.has { border-style: solid; background: var(--surface-2); }
  .resume-ic { width: 30px; height: 30px; border-radius: 7px; background: var(--accent-soft);
    color: var(--accent-ink); display: grid; place-items: center; flex: none; }
  .resume-ic svg { width: 15px; height: 15px; }
  .resume-m { flex: 1; min-width: 0; }
  .resume-n { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .resume-s { font-size: 12px; color: var(--faint); margin-top: 1px; }
  .resume-box .btn { flex: none; }
  /* Indeterminate: a bar that travels rather than fills, because there is no
     percentage to tell the truth with. */
  .progress { position: relative; height: 4px; margin-top: 9px; border-radius: 3px;
    background: var(--border); overflow: hidden; }
  .progress span { position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 3px;
    background: var(--accent); animation: travel 1.15s cubic-bezier(.45,0,.25,1) infinite; }
  @keyframes travel { from { left: -38%; } to { left: 100%; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .resume-box.reading { border-color: var(--accent); }
  .resume-box .resume-ic.spin svg { animation: spin .9s linear infinite; color: var(--accent-ink); }
  /* Asked not to animate: the bar still says "working", by breathing in place
     rather than travelling, and the spinner stops turning. */
  @media (prefers-reduced-motion: reduce) {
    .progress span { width: 100%; left: 0; animation: pulse 1.6s ease-in-out infinite; }
    @keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
    .resume-box .resume-ic.spin svg { animation: none; }
  }
  .ar-cv { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650;
    color: var(--accent-ink); margin-top: 6px; }
  .ar-cv svg { width: 12px; height: 12px; }

  .aside-card { background: var(--info-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
  .aside-card h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
  .aside-card p { margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
  .aside-card .prompt { font-family: var(--mono); font-size: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--accent-ink); line-height: 1.5; }
  .aside-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }

  /* ---------- My project ---------- */
  .mine-wrap { display: flex; flex-direction: column; gap: 18px; }
  .checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .checklist li { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
  .checklist li:last-child { border-bottom: none; }
  .tick { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; }
  .tick.done { background: var(--ok); color: #fff; }
  .tick.now { border: 2px solid var(--accent); color: var(--accent); }
  .tick.todo { border: 2px solid var(--border-strong); }
  .tick svg { width: 12px; height: 12px; }
  .checklist li.todo-row { color: var(--muted); }

  /* ---------- Admin ---------- */
  .table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
  .table-scroll { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
  thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 0; }
  tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
  tbody tr:last-child td { border-bottom: none; }
  tbody tr:hover { background: var(--surface-2); }
  td .t-title { font-weight: 600; }
  td .t-sub { font-size: 12px; color: var(--faint); }
  .who { font-family: var(--mono); font-size: 12.5px; }
  .proj-link { font: inherit; font-weight: 600; border:none; background:none; padding:0; text-align:left;
    color: var(--ink); border-bottom:1px dotted var(--border-strong); }
  .proj-link:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
  .stu-link { font-family: var(--mono); font-size: 12.5px; border:none; background:none; padding:0;
    color: var(--ink); text-align:left; border-bottom:1px dotted var(--border-strong); }
  .stu-link:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
  .apps-toggle { display:inline-flex; align-items:center; gap:5px; border:1px solid var(--border-strong);
    background: var(--info-soft); color: var(--info); border-radius:999px; padding:2px 9px;
    font-size:11.5px; font-weight:650; margin-top:4px; }
  .apps-toggle:hover { border-color: var(--info); }
  .apps-toggle .car { font-size:9px; transition: transform .15s; }
  .apps-toggle[aria-expanded="true"] .car { transform: rotate(90deg); }
  .apps-list { margin-top:6px; padding-left:9px; border-left:2px solid var(--info-soft);
    display:flex; flex-direction:column; gap:4px; }
  tbody tr.hi { background: var(--accent-soft) !important; }
  tbody tr.hi td { box-shadow: inset 0 0 0 9999px transparent; }
  .bar { height: 7px; border-radius: 4px; background: var(--closed-soft); overflow: hidden; width: 90px; }
  .bar span { display: block; height: 100%; background: var(--accent); }
  .admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
  .admin-head .btn-group { display: flex; gap: 9px; }

  /* ---------- Modal ---------- */
  .modal-back { position: fixed; inset: 0; background: rgba(20,19,14,.5); backdrop-filter: blur(3px); display: none; place-items: center; z-index: 100; padding: 20px; }
  .modal-back.open { display: grid; animation: fade .18s ease; }
  .modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 468px; padding: 26px; }
  .modal h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; }
  .modal p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
  .modal .proj-ref { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; margin-bottom: 18px; }
  .modal .proj-ref .t { font-weight: 650; font-size: 14.5px; }
  .modal .proj-ref .s { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
  .modal-id { display: flex; align-items: center; gap: 9px; background: var(--accent-soft); border-radius: 9px; padding: 10px 13px; margin-bottom: 20px; font-size: 13px; }
  .modal-id .who { font-weight: 700; color: var(--accent-ink); }
  .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

  .toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
  .toast { background: var(--ink); color: var(--ground); padding: 11px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px; animation: rise .25s ease; }
  .toast svg { width: 16px; height: 16px; color: var(--ok); }
  /* A failure gets the cross, not the tick. The toast keeps its ground so the
     two read as one surface; only the mark and a hairline change. */
  .toast.bad svg { color: var(--del); }
  .toast.bad { box-shadow: var(--shadow-lg), inset 3px 0 0 var(--del); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  .note-banner { display: flex; gap: 11px; align-items: flex-start; background: var(--warn-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; margin-bottom: 20px; font-size: 13px; color: var(--ink); }
  .note-banner svg { width: 17px; height: 17px; color: var(--warn); flex: none; margin-top: 1px; }
  .note-banner b { font-weight: 650; }

  @media (max-width: 920px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -260px; z-index: 60; transition: left .2s; box-shadow: var(--shadow-lg); }
    .sidebar.open { left: 0; }
    .stats { grid-template-columns: repeat(2,1fr); }
    .form-wrap { grid-template-columns: 1fr; }
    .menu-btn { display: grid !important; }
  }
  .menu-btn { display: none; }
  @media (max-width: 780px){
    #identBar .ident-set .im { display: none; }
  }

  /* ---------- Conversational hero ---------- */
  .ask-hero {
    background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: 18px 20px; margin-bottom: 22px; box-shadow: var(--shadow);
    position: relative; overflow: hidden;
  }
  .ask-hero .ah-head { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
  .ah-badge { width:30px; height:30px; border-radius:8px; background: var(--accent); display:grid; place-items:center; flex:none; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
  .ah-badge svg { width:17px; height:17px; color:#fff; }
  .ah-head b { font-size:15px; }
  .ah-head .tagm { font-size:11px; font-weight:650; text-transform:uppercase; letter-spacing:.05em; color:var(--accent-ink); background:var(--accent-soft); padding:2px 8px; border-radius:5px; }
  .ask-row { display:flex; gap:10px; }
  .ask-input { flex:1; display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border-strong); border-radius:10px; padding:10px 14px; }
  .ask-input:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
  .ask-input input { flex:1; border:none; background:none; outline:none; font-size:14.5px; color:var(--ink); font-family:inherit; }
  .ask-input input::placeholder { color:var(--faint); }
  .ask-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
  .ask-chips button { border:1px dashed var(--border-strong); background:none; color:var(--muted); border-radius:999px; padding:5px 12px; font-size:12.5px; }
  .ask-chips button:hover { border-style:solid; border-color:var(--accent); color:var(--accent-ink); }

  /* ---------- Assistant dock ---------- */
  .fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 9px;
    background: var(--accent); color:#fff; border:none; border-radius: 999px; padding: 13px 18px 13px 15px;
    box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 650; }
  .fab svg { width: 19px; height: 19px; }
  .fab:hover { background: var(--accent-ink); }
  .fab.hide { display:none; }
  .dock-back { position: fixed; inset: 0; background: rgba(20,19,14,.32); z-index: 90; display:none; }
  .dock-back.open { display:block; }
  .dock {
    position: fixed; top: 0; right: -460px; width: 440px; max-width: 92vw; height: 100vh; z-index: 95;
    background: var(--surface); border-left: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; transition: right .24s cubic-bezier(.4,0,.2,1);
  }
  .dock.open { right: 0; }
  .dock-head { display:flex; align-items:center; gap:11px; padding:16px 18px; border-bottom:1px solid var(--border); }
  .dock-head .ah-badge { width:34px; height:34px; }
  .dock-head .dh-t { font-weight:650; font-size:15px; line-height:1.15; }
  .dock-head .dh-s { font-size:11.5px; color:var(--faint); }
  .dock-head .dh-live { display:inline-flex; align-items:center; gap:5px; font-size:11px; color:var(--ok); font-weight:600; margin-left:auto; }
  .dock-head .dh-live::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 3px var(--ok-soft); }
  .dock-close { border:none; background:none; color:var(--muted); width:32px; height:32px; border-radius:7px; display:grid; place-items:center; }
  .dock-close:hover { background:var(--surface-2); color:var(--ink); }
  .dock-close svg { width:18px; height:18px; }
  .thread { flex:1; overflow-y:auto; padding:18px; display:flex; flex-direction:column; gap:14px; }
  .msg { display:flex; gap:10px; max-width:100%; }
  .msg .m-av { width:28px; height:28px; border-radius:7px; flex:none; display:grid; place-items:center; }
  .msg.bot .m-av { background: var(--accent); }
  .msg.bot .m-av svg { width:15px; height:15px; color:#fff; }
  .msg.user { flex-direction:row-reverse; }
  .msg.user .m-av { background: #5E6A76; color:#fff; font-size:11px; font-weight:600; }
  .bubble { padding:11px 14px; border-radius:13px; font-size:13.8px; line-height:1.5; }
  .msg.bot .bubble { background:var(--surface-2); border:1px solid var(--border); border-top-left-radius:4px; }
  .msg.user .bubble { background:var(--accent); color:#fff; border-top-right-radius:4px; }
  .bubble b { font-weight:650; }
  .bubble .who { font-family:var(--mono); font-size:12px; }
  .chat-cards { display:flex; flex-direction:column; gap:9px; margin-top:4px; }
  .cc { border:1px solid var(--border-strong); background:var(--surface); border-radius:10px; padding:11px 12px; }
  .cc .cc-t { font-weight:650; font-size:13.5px; line-height:1.3; }
  .cc .cc-m { font-size:11.5px; color:var(--faint); margin:3px 0 8px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
  .cc .cc-why { font-size:12px; color:var(--muted); margin-bottom:9px; line-height:1.45; }
  .cc .cc-why em { color:var(--accent-ink); font-style:normal; font-weight:600; }
  .cc-actions { display:flex; gap:7px; }
  .cc-actions .btn { padding:6px 11px; font-size:12.5px; }
  .typing { display:flex; gap:4px; padding:12px 14px; }
  .typing span { width:7px; height:7px; border-radius:50%; background:var(--faint); animation:blink 1.2s infinite; }
  .typing span:nth-child(2){ animation-delay:.2s; } .typing span:nth-child(3){ animation-delay:.4s; }
  @keyframes blink { 0%,60%,100%{ opacity:.3; transform:translateY(0);} 30%{ opacity:1; transform:translateY(-3px);} }
  .dock-quick { display:flex; gap:7px; flex-wrap:wrap; padding:0 18px 10px; }
  .dock-quick button { border:1px solid var(--border-strong); background:var(--surface); color:var(--muted); border-radius:999px; padding:6px 12px; font-size:12.5px; }
  .dock-quick button:hover { border-color:var(--accent); color:var(--accent-ink); }
  .dock-input { display:flex; gap:9px; padding:14px 18px; border-top:1px solid var(--border); align-items:center; }
  .dock-input input { flex:1; border:1px solid var(--border-strong); background:var(--surface-2); border-radius:10px; padding:10px 13px; font-size:14px; font-family:inherit; color:var(--ink); outline:none; }
  .dock-input input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); background:var(--surface); }
  .dock-send { width:40px; height:40px; border-radius:10px; background:var(--accent); border:none; color:#fff; display:grid; place-items:center; flex:none; }
  .dock-send:hover { background:var(--accent-ink); }
  .dock-send svg { width:18px; height:18px; }
  @media (max-width:920px){ .fab { bottom:16px; right:16px; } }


  /* ---------- Identity picker (no login) ---------- */
  .ident { position: relative; }
  .ident-trigger { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px 8px 6px 12px; }
  .ident-trigger.set { border-color: var(--accent); background: var(--accent-soft); }
  .ident-trigger svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
  .ident-trigger { cursor: pointer; font-family: inherit; }
  .ident-trigger .ident-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
  .ident-trigger:hover { border-color: var(--accent); }
  .ident-trigger:hover .ident-label { color: var(--accent-ink); }
  .ident-set { display: flex; align-items: center; gap: 9px; }
  .ident-set .avatar { width: 30px; height: 30px; font-size: 12px; }
  .ident-set .im { line-height: 1.15; }
  .ident-set .in { font-size: 13px; font-weight: 600; }
  .ident-set .iv { font-family: var(--mono); font-size: 11.5px; color: var(--accent-ink); }
  .ident-change { border: none; background: none; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
  .ident-change:hover { background: var(--surface-2); color: var(--ink); }

  /* ---------- Your-claim banner ---------- */
  .claim-banner { display: none; align-items: flex-start; gap: 16px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; }
  .claim-banner.show { display: flex; }
  .claim-banner .cb-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; flex: none; }
  .claim-banner .cb-ic svg { width: 19px; height: 19px; color: var(--accent-ink); }
  .claim-banner .cb-body { min-width: 0; flex: 1; }
  .claim-banner .cb-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); font-weight: 650; }
  .claim-banner .cb-title { font-weight: 650; font-size: 16px; margin-top: 1px; }
  .claim-banner .cb-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; max-width: 62ch; }
  .claim-banner .cb-sub b { color: var(--accent-ink); font-weight: 650; }
  .claim-banner .cb-pending { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--border-strong); }
  .claim-banner .cb-list { display: flex; flex-direction: column; gap: 6px; margin-top: 7px; }
  .claim-banner .cb-row { display: flex; align-items: center; gap: 10px; background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: 9px; padding: 7px 8px 7px 12px; }
  .claim-banner .cb-rt { font-weight: 650; font-size: 13.5px; min-width: 0; flex: 1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .claim-banner .cb-row .btn { flex: none; padding: 4px 10px; font-size: 12px; }
  .cb-checkin { display: inline-flex; align-items: center; gap: 10px; margin-top: 11px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; padding: 7px 8px 7px 12px; font-size: 13px; }
  .cb-checkin .ck-when { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
  .cb-checkin .ck-when svg { width: 15px; height: 15px; color: var(--ok); }
  .cb-checkin .ck-cancel { border: none; background: none; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
  .cb-checkin .ck-cancel:hover { background: var(--warn-soft); color: var(--warn); }
  .claim-banner .cb-actions { display: flex; gap: 9px; flex: none; align-items: center; }
  .btn.danger { color: var(--warn); border-color: var(--border-strong); }
  .btn.danger:hover { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
  #bookCurrent { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-bottom: 16px; font-size: 13px; }
  #bookCurrent .bc-when { font-weight: 600; }
  #bookCurrent .bc-cancel { margin-left: auto; }
  @media (max-width: 620px){ .claim-banner { flex-wrap: wrap; } }

  /* ---------- Booking modal ---------- */
  .slot-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
  .slot { display: flex; align-items: center; gap: 13px; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 10px; padding: 12px 14px; text-align: left; width: 100%; transition: all .12s; }
  .slot:hover { border-color: var(--accent); background: var(--surface); }
  .slot.pick { border-color: var(--accent); background: var(--accent-soft); }
  .slot .s-when { font-weight: 600; font-size: 14px; }
  .slot .s-where { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
  .slot .s-mode { margin-left: auto; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; }
  .slot .s-mode.inperson { background: var(--ok-soft); color: var(--ok); }
  .slot .s-mode.zoom { background: var(--info-soft); color: var(--info); }

  /* ============ v2 additions ============ */
  .src-chip.industry { background:#e8eef0; color:#39697a; }
  :root[data-theme="dark"] .src-chip.industry { background:#16282e; color:#8fc4d6; }
  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .src-chip.industry { background:#16282e; color:#8fc4d6; } }

  /* review-state pills */
  .rs { font-size:11px; font-weight:650; padding:3px 9px; border-radius:999px; white-space:nowrap; display:inline-flex; align-items:center; gap:5px; }
  .rs .pdot { width:6px; height:6px; border-radius:50%; }
  .rs.pending { background:var(--warn-soft); color:var(--warn); } .rs.pending .pdot{ background:var(--warn); }
  .rs.approved { background:var(--ok-soft); color:var(--ok); } .rs.approved .pdot{ background:var(--ok); }
  .rs.changes { background:var(--info-soft); color:var(--info); } .rs.changes .pdot{ background:var(--info); }
  .rs.rejected { background:var(--closed-soft); color:var(--closed); } .rs.rejected .pdot{ background:var(--closed); }
  .rs.rereview { background:var(--accent-soft); color:var(--accent-ink); } .rs.rereview .pdot{ background:var(--accent); }

  /* mode + flags on cards */
  .flags { display:flex; flex-wrap:wrap; gap:6px; }
  .flag { font-size:10.5px; font-weight:650; text-transform:uppercase; letter-spacing:.05em; padding:2px 7px; border-radius:5px; display:inline-flex; align-items:center; gap:4px; }
  .flag svg { width:11px; height:11px; }
  .flag.apply { background:var(--info-soft); color:var(--info); }
  .flag.mentored { background:var(--accent-soft); color:var(--accent-ink); }
  .flag.uscit { background:var(--warn-soft); color:var(--warn); }
  .flag.semester { background:var(--accent-soft); color:var(--accent-ink); }
  .flag.factory { background:var(--accent); color:#fff; }
  .flag.paid { background:var(--ok-soft); color:var(--ok); }
  /* Quiet: it is a fact to notice, not one to act on. */
  .flag.dur { background:var(--surface-2); color:var(--muted); border:1px solid var(--border); }
  /* A duration is a phrase -- "10-12 weeks" -- and breaking it across lines
     made it read as two values. Same for the posted age beside it. */
  .flag.dur, .flag.team, .meta-inline { white-space:nowrap; }

  /* after applying */
  .applied-mark { width:38px; height:38px; border-radius:50%; background:var(--ok-soft);
    color:var(--ok); display:grid; place-items:center; margin-bottom:13px; }
  .applied-mark svg { width:19px; height:19px; }
  .applied-next { list-style:none; counter-reset:an; margin:4px 0 0; padding:0; display:grid; gap:13px; }
  .applied-next li { counter-increment:an; display:grid; grid-template-columns:21px 1fr; gap:11px;
    align-items:start; font-size:13.5px; line-height:1.5; color:var(--muted); }
  .applied-next li::before { content:counter(an); font-size:10.5px; font-weight:700;
    color:var(--accent-ink); background:var(--accent-soft); border-radius:50%;
    width:19px; height:19px; display:grid; place-items:center; margin-top:2px; }
  .applied-next b { color:var(--ink); font-weight:650; }
  /* Its own line under the step it belongs to, not trailing the last word of
     the sentence. */
  .applied-mail { display:block; width:fit-content; margin-top:7px; font-size:12.5px; font-weight:650;
    color:var(--accent-ink); }
  .applied-mail:hover { text-decoration:underline; }
  /* One row per thing the student missed. The mark carries the outcome, so an
     acceptance and a decline are told apart before either is read. */
  .notices { display:flex; flex-direction:column; gap:10px; margin:4px 0 0; }
  .notice { display:grid; grid-template-columns:30px 1fr; gap:12px; align-items:start;
    background:var(--surface-2); border:1px solid var(--border); border-radius:10px; padding:12px 14px; }
  .notice .nc-ic { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; }
  .notice .nc-ic svg { width:16px; height:16px; }
  .notice.good .nc-ic { background:var(--ok-soft); color:var(--ok); }
  .notice.bad .nc-ic  { background:var(--del-soft); color:var(--del); }
  .notice.info .nc-ic { background:var(--accent-soft); color:var(--accent-ink); }
  .notice .nc-t { font-weight:650; font-size:14px; }
  .notice .nc-p { font-size:13px; color:var(--muted); line-height:1.5; margin-top:3px; }
  .af-toggle { border:1px solid var(--border-strong); background:none; color:var(--muted);
    font-size:10.5px; font-weight:650; letter-spacing:.04em; text-transform:uppercase;
    padding:2px 8px; border-radius:5px; }
  .af-toggle:hover { border-color:var(--accent); color:var(--accent-ink); }
  .af-toggle.on { background:var(--accent); border-color:var(--accent); color:#fff; }

  /* The reviewer's verdict, inside a queue item. A panel rather than a card:
     it belongs to the submission above it, so it shares its edges and is set
     apart by ground and a left rule keyed to the verdict, not by a border of
     its own. */
  .ai-rev { margin-top:13px; padding:12px 14px; border-radius:var(--radius-sm);
    background:var(--surface-2); border-left:3px solid var(--border-strong); font-size:13.5px; }
  .ai-rev.pass { border-left-color:var(--ok); }
  .ai-rev.flag { border-left-color:var(--warn); }
  .ai-rev.err  { border-left-color:var(--faint); }
  .ai-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .ai-pill { font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
    padding:2px 7px; border-radius:5px; white-space:nowrap; }
  .ai-pill.pass { background:var(--ok-soft); color:var(--ok); }
  .ai-pill.flag { background:var(--warn-soft); color:var(--warn); }
  .ai-pill.err, .ai-pill.wait { background:var(--closed-soft); color:var(--closed); }
  .ai-pill.low  { background:var(--surface); color:var(--muted); border:1px solid var(--border-strong); }
  /* Loud on purpose: an approval nobody read is the one thing on this panel a
     person needs to notice, and be able to reverse. */
  .ai-pill.auto { background:var(--accent); color:var(--on-accent); }
  .ai-when { font-size:12px; color:var(--faint); margin-left:auto; white-space:nowrap; }
  .ai-again { font:inherit; font-size:11.5px; font-weight:650; cursor:pointer;
    background:none; color:var(--muted); border:1px solid var(--border-strong);
    border-radius:5px; padding:2px 8px; }
  .ai-again:hover:not(:disabled) { border-color:var(--accent); color:var(--accent-ink); }
  .ai-again:disabled { opacity:.55; cursor:default; }
  .ai-sum { margin:8px 0 0; color:var(--ink); line-height:1.55; }
  .ai-finds { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:9px; }
  .ai-finds li { padding-left:11px; border-left:2px solid var(--border); }
  .ai-kind { font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
    color:var(--warn); }
  .ai-field { font-family:var(--mono); font-size:11.5px; color:var(--faint); margin-left:6px; }
  .ai-detail { color:var(--muted); line-height:1.5; margin-top:2px; }
  .ai-fix { color:var(--muted); line-height:1.5; margin-top:3px; font-size:13px; }
  .ai-fix b { color:var(--ink); font-weight:650; margin-right:4px; }
  .ai-notes { margin-top:9px; color:var(--faint); font-size:12.5px; }
  .ai-rule { margin:10px 0 0; font-size:12.5px; color:var(--accent-ink);
    background:var(--accent-soft); border-radius:5px; padding:6px 9px; }
  /* A claim waiting on staff. Reads as a note rather than a control, so it is
     not mistaken for the granted badge sitting next to it -- dashed border and
     no fill, against the toggle's solid one. */
  .af-asked { border:1px dashed var(--accent); color:var(--accent-ink); background:none;
    font-size:10.5px; font-weight:650; letter-spacing:.04em; text-transform:uppercase;
    padding:2px 8px; border-radius:5px; }
  .flag.part { background:var(--surface-2); color:var(--muted); border:1px solid var(--border); }
  .flag.aud { background:var(--surface-2); color:var(--muted); border:1px solid var(--border); text-transform:none; letter-spacing:0; font-weight:600; }

  /* shortlist star */
  .star { width:30px; height:30px; border-radius:8px; border:1px solid var(--border-strong); background:var(--surface); color:var(--faint); display:grid; place-items:center; flex:none; transition:all .12s; }
  .star svg { width:15px; height:15px; }
  .star:hover { border-color:var(--accent); color:var(--accent); }
  .star.on { background:var(--accent-soft); border-color:var(--accent); color:var(--accent-ink); }
  .star.on svg { fill:currentColor; }

  /* deadline strip */
  .deadline { display:flex; align-items:center; gap:11px; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius); padding:12px 15px; margin-bottom:18px; font-size:13.5px; }
  .deadline svg { width:17px; height:17px; color:var(--accent); flex:none; }
  .deadline b { font-weight:650; }
  .deadline .cal-link { margin-left:auto; }
  .deadline .due { font-family:var(--mono); font-size:12.5px; color:var(--accent-ink); background:var(--accent-soft); padding:2px 8px; border-radius:5px; font-weight:600; }
  @media (max-width:700px){ .deadline { flex-wrap:wrap; } .deadline .cal-link { margin-left:0; } }

  /* disclosure note in modals */
  .disclose { display:flex; gap:9px; align-items:flex-start; background:var(--info-soft); border:1px solid var(--border); border-radius:9px; padding:11px 13px; margin-bottom:18px; font-size:12.5px; color:var(--muted); line-height:1.5; }
  .disclose svg { width:15px; height:15px; color:var(--info); flex:none; margin-top:2px; }
  .disclose b { color:var(--ink); }

  /* parts editor */
  .parts { display:flex; flex-direction:column; gap:9px; }
  .part-row { display:flex; gap:9px; align-items:center; }
  .part-row .pn { font-family:var(--mono); font-size:12px; color:var(--faint); width:46px; flex:none; }
  .part-row .input { flex:1; }
  .part-rm { border:none; background:none; color:var(--faint); width:30px; height:30px; border-radius:7px; display:grid; place-items:center; flex:none; }
  .part-rm:hover { background:var(--warn-soft); color:var(--warn); }
  .part-rm svg { width:15px; height:15px; }
  .part-add { border:1px dashed var(--border-strong); background:none; color:var(--muted); border-radius:8px; padding:8px 13px; font-size:13px; font-weight:600; align-self:flex-start; }
  .part-add:hover { border-style:solid; border-color:var(--accent); color:var(--accent-ink); }

  /* review queue */
  .rq { display:flex; flex-direction:column; gap:14px; }
  .rq-item { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
  .rq-item.sel { border-color:var(--accent); }
  .rq-head { display:flex; align-items:flex-start; gap:13px; padding:15px 17px; }
  .rq-check { width:18px; height:18px; accent-color:var(--accent); flex:none; margin-top:3px; }
  .rq-main { flex:1; min-width:0; }
  .rq-title { font-weight:650; font-size:15.5px; line-height:1.3; }
  .rq-meta { font-size:12.5px; color:var(--muted); margin-top:4px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  .rq-desc { font-size:13.5px; color:var(--muted); line-height:1.5; margin:9px 0 0; }
  .rq-parts { margin:10px 0 0; padding:10px 12px; background:var(--surface-2); border:1px solid var(--border); border-radius:9px; font-size:13px; }
  .rq-parts .pt { display:flex; gap:8px; padding:3px 0; color:var(--muted); }
  .rq-parts .pt .n { font-family:var(--mono); font-size:11.5px; color:var(--faint); flex:none; }
  .rq-actions { display:flex; gap:8px; padding:12px 17px; border-top:1px solid var(--border); background:var(--surface-2); flex-wrap:wrap; }
  .rq-actions .btn { padding:6px 12px; font-size:13px; }
  .rq-bulk { display:flex; align-items:center; gap:11px; background:var(--accent-soft); border:1px solid var(--accent); border-radius:var(--radius); padding:11px 15px; margin-bottom:16px; font-size:13.5px; }
  .rq-bulk b { font-weight:650; color:var(--accent-ink); }
  .rq-bulk .sp { margin-left:auto; display:flex; gap:8px; }
  .rq-note { font-size:12.5px; color:var(--muted); padding:0 17px 13px; font-style:italic; }

  /* submitter dashboard */
  .sd-proj { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:16px; overflow:hidden; }
  .sd-top { display:flex; align-items:flex-start; gap:13px; padding:16px 18px; }
  .sd-top .sd-t { font-weight:650; font-size:16px; line-height:1.3; flex:1; }
  .sd-sub { font-size:12.5px; color:var(--muted); margin-top:4px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
  /* Column count follows the tile count: a claim-mode project has no
     applications tile, and a fixed four would leave a dead cell. */
  .sd-funnel { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:1px; background:var(--border); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
  .fn { background:var(--surface); padding:12px 14px; }
  .fn .fl { font-size:11px; color:var(--faint); text-transform:uppercase; letter-spacing:.06em; font-weight:600; }
  .fn .fv { font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; margin-top:3px; letter-spacing:-.3px; }
  .fn .fh { font-size:11.5px; color:var(--faint); }
  .fn.hot .fv { color:var(--accent-ink); }
  @media (max-width:700px){ .sd-funnel { grid-auto-flow:row; grid-template-columns:repeat(2,1fr); } }
  .sd-body { padding:15px 18px; }
  .applicants { display:flex; flex-direction:column; gap:9px; }
  .app-row { display:flex; align-items:center; gap:12px; border:1px solid var(--border); background:var(--surface-2); border-radius:9px; padding:10px 13px; }
  .app-row .ar-m { flex:1; min-width:0; }
  .app-row .ar-n { font-weight:600; font-size:13.5px; }
  .app-row .ar-e { font-family:var(--mono); font-size:11.5px; color:var(--faint); }
  .app-row .ar-s { font-size:12.5px; color:var(--muted); margin-top:5px; line-height:1.45; }
  .app-row .ar-a { display:flex; gap:7px; flex:none; }
  .app-row .btn { padding:5px 11px; font-size:12.5px; }
  /* Two outcomes on one list, and a sponsor scans it rather than reads it. A
     decline in the grey the board uses for "closed" sat back far enough that
     it read as another applicant still waiting; red is the only thing on this
     row that says the answer has already been given. */
  .app-state { font-size:11px; font-weight:650; padding:2px 8px; border-radius:5px;
    text-transform:capitalize; }
  .app-state.accepted { background:var(--ok-soft); color:var(--ok); }
  .app-state.declined { background:var(--del-soft); color:var(--del); border:1px solid var(--del-mark); }
  .app-state.interviewing { background:var(--info-soft); color:var(--info); }
  .sd-empty { font-size:13px; color:var(--faint); padding:4px 0; }
  .agg-note { font-size:12px; color:var(--faint); margin-top:11px; display:flex; gap:7px; align-items:flex-start; line-height:1.5; }
  .agg-note svg { width:13px; height:13px; flex:none; margin-top:2px; }

  /* auth card */
  .auth-wrap { max-width:430px; margin:40px auto; }
  .auth-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow); }
  .auth-card h2 { font-family:var(--serif); font-size:22px; margin:0 0 5px; }
  .auth-card > p { margin:0 0 20px; color:var(--muted); font-size:13.5px; line-height:1.5; }
  .auth-switch { text-align:center; font-size:13px; color:var(--muted); margin-top:16px; }
  .auth-switch button { border:none; background:none; color:var(--accent-ink); font-weight:600; font-size:13px; padding:0; text-decoration:underline; }

  /* detail modal */
  .modal.wide { max-width:600px; }
  .det-body { max-height:60vh; overflow-y:auto; margin:0 -4px; padding:0 4px; }
  .det-desc { font-size:14px; line-height:1.6; color:var(--ink); margin:0 0 16px; }
  .det-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:16px; }
  .det-f { background:var(--surface-2); border:1px solid var(--border); border-radius:9px; padding:10px 12px; }
  .det-f .dl { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--faint); font-weight:600; }
  .det-f .dv { font-size:13.5px; font-weight:600; margin-top:3px; }
  .det-siblings { border:1px solid var(--border); border-radius:9px; padding:11px 13px; margin-bottom:16px; }
  .det-siblings .sh { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--faint); font-weight:600; margin-bottom:7px; }
  .det-sib { display:flex; gap:9px; align-items:center; padding:5px 0; font-size:13px; }
  .det-sib .n { font-family:var(--mono); font-size:11.5px; color:var(--faint); flex:none; }
  .det-sib.is-this { color:var(--accent-ink); font-weight:600; }

  /* account panel in the sidebar */
  .acct { border-top:1px solid var(--border); padding-top:12px; }
  .acct-signin { display:flex; align-items:center; gap:11px; width:100%; text-align:left;
    background:var(--accent-soft); border:1px solid var(--accent); border-radius:var(--radius-sm);
    padding:11px 12px; color:var(--accent-ink); }
  .acct-signin:hover { background:var(--accent); color:#fff; }
  .acct-signin:hover .a-s { color:rgba(255,255,255,.8); }
  .acct-signin svg { width:19px; height:19px; flex:none; }
  .acct-signin .a-t { font-size:14px; font-weight:650; line-height:1.2; }
  .acct-signin .a-s { font-size:11.5px; color:var(--accent-ink); opacity:.75; }
  .acct-in { display:flex; align-items:center; gap:10px; padding:4px 2px; }
  .acct-in .avatar { width:34px; height:34px; font-size:12.5px; flex:none; }
  .acct-in .a-m { min-width:0; flex:1; }
  .acct-in .a-n { font-size:13.5px; font-weight:650; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .acct-in .a-r { font-size:11px; color:var(--faint); margin-top:1px; }
  .acct-out { border:none; background:none; color:var(--muted); font-size:11.5px; font-weight:600;
    padding:5px 8px; border-radius:6px; flex:none; }
  .acct-out:hover { background:var(--surface-2); color:var(--ink); }
  .acct-actions { display:flex; gap:4px; margin:6px 0 0 38px; }
  .role-chip { display:inline-block; font-size:10px; font-weight:700; text-transform:uppercase;
    letter-spacing:.05em; padding:1px 6px; border-radius:4px; background:var(--accent-soft); color:var(--accent-ink); }
  .acct-demo { margin-top:10px; font-size:11.5px; color:var(--faint); line-height:1.5; }
  .acct-demo button { border:none; background:none; color:var(--muted); font-size:11.5px;
    text-decoration:underline; padding:0; }
  .acct-demo button:hover { color:var(--accent-ink); }

  /* sign-in modal */
  .si-first { display:flex; gap:9px; align-items:flex-start; background:var(--info-soft);
    border:1px solid var(--border); border-radius:9px; padding:11px 13px; margin-bottom:14px;
    font-size:12.5px; color:var(--muted); line-height:1.5; }
  .si-first svg { width:15px; height:15px; color:var(--info); flex:none; margin-top:2px; }
  .si-first b { color:var(--ink); }
  .si-first .si-act { margin-top: 11px; }
  .si-demo { margin-top:16px; padding-top:14px; border-top:1px solid var(--border);
    font-size:11.5px; color:var(--faint); line-height:1.6; }
  .si-demo code { font-family:var(--mono); font-size:11px; background:var(--surface-2);
    padding:1px 5px; border-radius:4px; color:var(--muted); }

  /* the address, once it has been settled, on the password step */
  .si-who { display:flex; align-items:center; gap:8px; background:var(--surface-2);
    border:1px solid var(--border); border-radius:9px; padding:9px 12px; margin-bottom:14px;
    font-size:13px; color:var(--ink); }
  .si-who svg { width:15px; height:15px; color:var(--faint); flex:none; }
  .si-who span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .si-who button { border:none; background:none; color:var(--muted); font-size:11.5px;
    font-weight:600; text-decoration:underline; padding:0; flex:none; }
  .si-who button:hover { color:var(--accent-ink); }

  /* forgot password: the link under the password, and who to ask without a code */
  .si-forgot { border:none; background:none; padding:0; margin-top:6px; color:var(--muted);
    font-size:11.5px; font-weight:600; text-decoration:underline; }
  .si-forgot:hover { color:var(--accent-ink); }
  .si-help { border:1px solid var(--border); border-radius:9px; padding:10px 12px;
    font-size:12.5px; color:var(--muted); line-height:1.5; }
  .si-help b { color:var(--ink); }
  .si-help a { color:var(--accent-ink); font-weight:600; }
  .rc-input { font-family:var(--mono); letter-spacing:.06em; text-transform:uppercase; }

  /* the recovery code, shown once */
  .rc-code { font-family:var(--mono); font-size:24px; font-weight:650; letter-spacing:.12em;
    text-align:center; color:var(--ink); background:var(--surface-2);
    border:1px dashed var(--border-strong); border-radius:10px; padding:16px 10px;
    user-select:all; overflow-wrap:anywhere; }
  .rc-tools { display:flex; gap:8px; justify-content:center; margin:12px 0 14px; flex-wrap:wrap; }
  .modal p.rc-where { font-size:12.5px; margin-bottom:12px; }
  .rc-ack { display:flex; gap:8px; align-items:center; font-size:13px; color:var(--ink); }

  /* your account */
  #acctModal { overflow-y:auto; }
  .acct-sec { border-top:1px solid var(--border); padding:14px 0 16px; }
  .acct-sec-t { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
    color:var(--faint); margin-bottom:10px; }
  .modal .acct-sec p { font-size:13px; margin-bottom:10px; }

  /* no account for that address — who to ask instead */
  .si-none { display:flex; gap:9px; align-items:flex-start; background:var(--warn-soft);
    border:1px solid var(--border); border-radius:9px; padding:11px 13px; margin-bottom:14px;
    font-size:12.5px; color:var(--muted); line-height:1.5; }
  .si-none svg { width:15px; height:15px; color:var(--warn); flex:none; margin-top:2px; }
  .si-none b { color:var(--ink); }
  .si-contacts { display:flex; flex-direction:column; gap:8px; }
  .si-contact { border:1px solid var(--border); border-radius:9px; padding:10px 12px; }
  .si-contact .c-w { font-size:10px; font-weight:700; text-transform:uppercase;
    letter-spacing:.05em; color:var(--faint); }
  .si-contact .c-n { font-size:13.5px; font-weight:650; margin-top:3px; }
  .si-contact .c-e { display:inline-block; margin-top:2px; font-size:12.5px;
    color:var(--accent-ink); word-break:break-all; }

  .card-parent { font-size:12px; color:var(--faint); margin-top:-6px; }
  .card-parent b { color:var(--muted); font-weight:600; }
  .flag.team { background:var(--info-soft); color:var(--info); }
  .det-sec { font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--faint); font-weight:650; margin:18px 0 7px; }
  .det-sec:first-child { margin-top:0; }
  .det-sib .sd2 { font-size:12px; color:var(--faint); line-height:1.45; margin-top:2px; }
  .det-sib { align-items:flex-start; }
  .rq-diff { margin-top:11px; border:1px solid var(--border); border-radius:9px; overflow:hidden; }
  .rq-diff .dh { font-size:11px; text-transform:uppercase; letter-spacing:.06em; font-weight:650;
    color:var(--accent-ink); background:var(--accent-soft); padding:7px 12px;
    display:flex; align-items:center; gap:10px; }
  .rq-diff .dh .cnt { margin-left:auto; font-weight:600; letter-spacing:0; text-transform:none;
    font-family:var(--mono); font-size:11px; }
  .rq-diff .dh .cnt .m { color:var(--del); } .rq-diff .dh .cnt .p { color:var(--add); }
  .gd-field { border-top:1px solid var(--border); }
  .gd-name { font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
    color:var(--muted); background:var(--surface-2); padding:6px 12px;
    border-bottom:1px solid var(--border); display:flex; gap:9px; align-items:center; }
  .gd-name .n { font-family:var(--mono); font-size:10.5px; color:var(--faint); letter-spacing:0; text-transform:none; }
  .gd-l { display:grid; grid-template-columns:26px 1fr; align-items:start;
    font-size:13px; line-height:1.6; }
  .gd-l .g { font-family:var(--mono); font-size:12px; text-align:center; padding:4px 0;
    user-select:none; color:var(--faint); }
  .gd-l .t { padding:4px 12px 4px 4px; white-space:pre-wrap; overflow-wrap:anywhere; }
  .gd-l.ctx { color:var(--muted); }
  .gd-l.del { background:var(--del-soft); color:var(--del); }
  .gd-l.del .g { color:var(--del); }
  .gd-l.add { background:var(--add-soft); color:var(--add); }
  .gd-l.add .g { color:var(--add); }
  .gd-l.blank .t { min-height:8px; }
  .gd-l mark { background:var(--del-mark); color:inherit; border-radius:2px; padding:0 1px; }
  .gd-l.add mark { background:var(--add-mark); }
  .rq-detail { font-size:13px; color:var(--muted); line-height:1.6; margin:11px 0 0; max-width:82ch; }
  .rq-parts .pt { align-items:flex-start; }
  .rq-parts .pt div div:last-child { color:var(--muted); font-size:12.5px; line-height:1.45; }

  /* sub-project editor */
  .sub-card { border:1px solid var(--border-strong); background:var(--surface-2); border-radius:10px; padding:13px 14px; }
  .sub-card .sc-head { display:flex; align-items:center; gap:9px; margin-bottom:9px; }
  .sub-card .sc-n { font-family:var(--mono); font-size:11.5px; color:var(--faint); }
  .sub-card .field { margin-bottom:10px; }
  .sub-card .field:last-child { margin-bottom:0; }
  .sub-card .input { background:var(--surface); }
  .num-in { width:74px; text-align:center; }
  .why { background:var(--info-soft); border:1px solid var(--border); border-radius:9px; padding:11px 13px; font-size:12.5px; color:var(--muted); line-height:1.55; margin:0 0 12px; }
  .why b { color:var(--ink); }
  .form-sec { font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--faint); font-weight:650; margin:26px 0 14px; padding-top:18px; border-top:1px solid var(--border); }
  .form-sec:first-child { margin-top:0; padding-top:0; border-top:none; }

  /* saved-filter empty state helper */
  .hint-row { font-size:12.5px; color:var(--faint); margin-bottom:14px; }
  .crafter { display:flex; gap:9px; align-items:flex-start; margin-top:9px; padding:10px 12px;
    background:var(--info-soft); border:1px solid var(--border); border-radius:9px;
    font-size:12.5px; line-height:1.5; color:var(--muted); text-decoration:none; }
  .crafter:hover { border-color:var(--info); }
  .crafter svg { width:15px; height:15px; color:var(--info); flex:none; margin-top:2px; }
  .crafter b { color:var(--ink); }

  /* The project-file drop zone. Shaped like .resume-box on the profile page,
     because it is the same gesture in the same kind of place and there is no
     reason for a sponsor to learn two of them. Dashed until something has
     landed in it. */
  .import-box { border:1px dashed var(--border-strong); border-radius:9px; padding:14px 16px;
    display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
  .import-box.drop { border-color:var(--info); background:var(--info-soft); }
  .import-box.done { border-style:solid; background:var(--surface-2); }
  .import-box.bad  { border-style:solid; border-color:var(--del); }
  .import-ic { width:30px; height:30px; border-radius:7px; background:var(--info-soft);
    color:var(--info); display:grid; place-items:center; flex:none; }
  .import-ic svg { width:15px; height:15px; }
  .import-box.done .import-ic { background:var(--accent-soft); color:var(--accent-ink); }
  .import-box.bad  .import-ic { background:var(--del-soft); color:var(--del); }
  .import-m { flex:1 1 260px; min-width:0; }
  .import-n { font-size:13.5px; font-weight:650; }
  .import-s { font-size:12px; color:var(--faint); margin-top:2px; line-height:1.5; }
  .import-s b { color:var(--ink); font-weight:600; }
  .import-box .btn, .import-box .crafter-url { flex:none; }
  .import-acts { display:flex; gap:9px; margin-top:9px; }
  .nav-student, .nav-sub, .nav-anysubmit, .nav-anon { display:none; }
  /* A guest has no board to browse and no check-in to book, so those entries
     are not offered — the landing page is their whole navigation. */
  body[data-role="student"] .nav-student { display:flex; }
  body[data-role="anon"]    .nav-anon { display:flex; }
  body[data-role="submitter"] .nav-sub { display:flex; }
  body[data-role="student"]   .nav-anysubmit,
  body[data-role="anon"]      .nav-anysubmit,
  body[data-role="submitter"] .nav-anysubmit { display:flex; }
  body[data-role="staff"] .fab,
  body[data-role="submitter"] .fab { display:none; }
  body:not([data-role="student"]) #claimBanner { display:none !important; }
  body[data-role="anon"] #navSaved { display:none; }

  /* A submitter reads the board; a student works it. Everything a student acts
     with — the check-in deadline, the assistant, the how-to-claim rail, the
     Saved filter — is meaningless to someone who cannot claim anything. */
  body[data-role="submitter"] .deadline,
  body[data-role="submitter"] .ask-hero,
  body[data-role="submitter"] #howToGuide,
  body[data-role="submitter"] .chip[data-val="saved"] { display:none !important; }
  .role-sub { display:none; }
  body[data-role="submitter"] .role-sub { display:block; }
  body[data-role="submitter"] .role-student { display:none; }

  /* Addresses are controls, not labels: submitters and staff need to email
     these people, so a click copies. */
  .mail { font-family: var(--mono); font-size: 12px; border: none; background: none;
    padding: 1px 4px 1px 0; margin: 0; color: var(--muted); text-align: left;
    display: inline-flex; align-items: center; gap: 5px; border-radius: 4px;
    max-width: 100%; }
  .mail:hover { color: var(--accent-ink); background: var(--accent-soft); }
  .mail .mi { width: 11px; height: 11px; flex: none; opacity: 0; transition: opacity .12s; }
  .mail:hover .mi, .mail:focus-visible .mi { opacity: .8; }
  .mail:active { background: var(--accent); color: #fff; }

  .sd-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px;
    font-size: 13px; font-weight: 650; }
  .copy-all { margin-left: auto; padding: 4px 9px; font-size: 12px; font-weight: 600; }
  .copy-all .mi { width: 12px; height: 12px; opacity: .7; }

  /* The submit form reshapes around its first question. Driven by one attribute
     rather than imperative show/hide, so switching back always restores. */
  #submitCard[data-shape="student"] .ns { display: none; }
  /* .so is the mirror of .ns: only a student proposing their own work sees it. */
  #submitCard:not([data-shape="student"]) .so { display: none; }
  #submitCard[data-shape="signin"] .ns,
  #submitCard[data-shape="signin"] .so,
  #submitCard[data-shape="signin"] .pf { display: none; }
  /* .io is narrower again: only an industry partner is asked about AI Factory
     membership, since only an organisation can hold one. Keyed off its own
     attribute for the same reason as the shapes above -- switching source away
     from industry and back always restores it. */
  #submitCard:not([data-source="industry"]) .io { display: none; }
  /* .so narrows the same way, by program rather than by source: the graded-project
     question only exists where the program has one. AI 1010 calls it the semester
     final project and a DS Master's student calls it the capstone; MSAI has no
     equivalent, so MSAI, the minor and any course we do not recognise are not
     asked at all. */
  #submitCard:not([data-program="ai-1010"]):not([data-program="ds-masters"]) .so { display: none; }
  /* The edit dialog reshapes the same way, for the same reasons. */
  #editModal[data-shape="student"] .ns { display: none; }
  #editModal:not([data-shape="student"]) .so { display: none; }
  #editModal:not([data-program="ai-1010"]):not([data-program="ds-masters"]) .so { display: none; }

  /* Review queue: the full submission, every field the form collected. */
  .rq-full { margin-top:12px; border:1px solid var(--border); border-radius:9px; padding:0 14px 14px; background:var(--surface); }
  .rq-full-h { font-size:12px; font-weight:650; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding:11px 0 2px; }
  .rq-full .det-sec { margin:16px 0 7px; }
  .rq-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:8px; }
  .rq-f { background:var(--surface-2); border:1px solid var(--border); border-radius:8px; padding:8px 10px; min-width:0; }
  .rq-f .dl { font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--faint); font-weight:600; }
  .rq-f .dv { font-size:13px; font-weight:600; margin-top:3px; overflow-wrap:anywhere; }
  .rq-none { color:var(--faint); font-style:italic; font-weight:400; }
  .rq-staff { text-transform:none; letter-spacing:0; font-weight:500; margin-left:4px; color:var(--warn); }
