/* ═══════════════════════════════════════════════════════════════════════════
   App shell — the sidebar, its ⌘K search palette and the account menu.

   ONE definition, loaded by base.html (server-rendered pages) and by
   board/pondros_app.html (the board SPA), so the two front ends can no longer
   drift. Both render the same markup: <aside class="prail"> with .prail-nav /
   .prail-cap / .prail-acct inside. Server pages add .prail--fixed because they
   have no grid to sit in.

   Class names are all prail-* on purpose: base.html's ops-app stylesheet uses
   bare .nav / .cap for different elements.

   Colours come from css/tokens.css. Geometry is from the Figma file
   (tnFvyxWLrsiVALfGl0WlcS): 244px, #F9F9F9, 1px #E8E8E8, 16/12 padding,
   30px rows at radius 8, active row #000 @ 6%.
   ═══════════════════════════════════════════════════════════════════════════ */

  /* --card / --muted are shadcn HSL triplets on server pages (.bg-card,
     .text-muted-foreground read them), so they can't be aliased in tokens.css.
     Scoping them to the rail gives the sidebar the colours it expects without
     touching the rest of the page. */
  .prail{--card:var(--panel);--muted:var(--ink-3)}

  /* Server-rendered pages have no .body grid, so the rail positions itself and
     base.html reserves the space with `html.pondros .app{padding-left:var(--rail-w)}`. */
  .prail--fixed{position:fixed;top:0;left:0;height:100vh;width:var(--rail-w);z-index:50;overflow:hidden}
  .prail--fixed *{box-sizing:border-box}
  html.rail-collapsed .prail--fixed{transform:translateX(-100%)}
  html.rail-collapsed.pondros .app{padding-left:0 !important}
  .prail--fixed{transition:transform .18s ease}

  /* sidebar search */
  .prail-search{flex:none;margin:2px 14px 12px;height:36px;border-radius:10px;background:var(--card);border:1px solid var(--hair-2);display:flex;align-items:center;gap:8px;padding:0 11px;color:var(--faint);font-size:13.5px;box-shadow:0 1px 2px rgba(23,23,18,.04)}
  .prail-search:focus-within{border-color:var(--gold-line)}
  .prail-search svg{flex:none}
  .prail-search input{flex:1;min-width:0;border:none;background:transparent;font:inherit;font-size:13.5px;color:var(--ink);outline:none}
  .prail-search input::placeholder{color:var(--faint)}
  .prail-search .k{margin-left:auto;flex:none;font-size:11px;border:1px solid var(--hair-2);border-radius:5px;padding:1px 5px;color:var(--faint)}

  /* ── Claude-style search palette — centered modal overlay, opened by the
     header search icon or ⌘K. Searches meetings + tasks in memory. ── */
  .psm-scrim{position:fixed;inset:0;z-index:1200;background:rgba(20,22,28,.34);display:none;align-items:flex-start;justify-content:center;padding:13vh 16px 16px}
  .psm-scrim.on{display:flex}
  html[data-theme=dark] .psm-scrim{background:rgba(0,0,0,.5)}
  .psm{width:100%;max-width:640px;background:var(--card);border:1px solid var(--hair-2);border-radius:16px;overflow:hidden;box-shadow:0 30px 70px -18px rgba(20,22,28,.42);animation:psm-in .14s cubic-bezier(.16,1,.3,1)}
  @keyframes psm-in{from{opacity:0;transform:translateY(-8px) scale(.99)}to{opacity:1;transform:none}}
  .psm-top{display:flex;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid var(--hair)}
  .psm-top>svg{width:20px;height:20px;color:var(--muted);flex:none}
  .psm-top input{flex:1;min-width:0;border:none;background:transparent;font:inherit;font-size:16px;color:var(--ink);outline:none}
  .psm-top input::placeholder{color:var(--faint)}
  .psm-x{flex:none;width:28px;height:28px;border:none;background:none;border-radius:7px;color:var(--faint);display:grid;place-items:center;cursor:pointer}
  .psm-x:hover{background:var(--hover);color:var(--ink)}
  .psm-x svg{width:17px;height:17px}
  .psm-res{max-height:58vh;overflow-y:auto;padding:8px}
  .psm-cap{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);font-weight:600;padding:11px 10px 4px}
  .psm-item{display:flex;align-items:center;gap:13px;padding:10px 12px;border-radius:10px;cursor:pointer;color:var(--ink-2)}
  .psm-item.act{background:var(--well)}
  .psm-ico{flex:none;width:26px;height:26px;border-radius:50%;background:var(--well);display:grid;place-items:center;color:var(--muted)}
  .psm-item.act .psm-ico{background:var(--card)}
  .psm-ico svg{width:15px;height:15px}
  .psm-l{flex:1;min-width:0;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .psm-t{flex:none;font-size:12.5px;color:var(--faint)}
  .psm-ret{flex:none;display:none;color:var(--muted)}
  .psm-item.act .psm-ret{display:grid;place-items:center}
  .psm-ret svg{width:15px;height:15px}
  .psm-empty{padding:34px 16px;text-align:center;color:var(--faint);font-size:13.5px}

  .body{display:grid;grid-template-columns:var(--rail-w) 1fr;min-height:0;height:100vh}

  /* sidebar */
  .prail{background:var(--side);border-right:1px solid var(--hair);padding:16px 12px;display:flex;flex-direction:column;min-height:0}
  .prail .prail-top{height:0;flex-shrink:0}
  .prail-brand{display:flex;align-items:center;gap:9px;padding:0 0 10px;color:var(--ink);text-decoration:none}
  .prail-brand .sq{flex:none;width:26px;height:26px;border-radius:8px;background:var(--gold);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
  .prail-brand .t{font-family:var(--serif);font-size:19px;font-weight:600;letter-spacing:-.02em}
  .prail-new{margin:2px 0 10px;height:34px;border-radius:9px;background:var(--accent-btn);color:var(--accent-btn-fg);border:none;font:inherit;font-size:13px;font-weight:560;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;box-shadow:0 1px 2px rgba(16,18,26,.18)}
  .prail-new:hover{background:var(--accent-btn-hover)}
  .prail-new svg{width:16px;height:16px}
  .prail-nav{padding:0;display:flex;flex-direction:column;gap:1px}
  .prail-nav a{display:flex;align-items:center;gap:8px;padding:5px 8px;min-height:30px;border-radius:var(--radius-sm);color:var(--ink-2);font-size:14px;line-height:20px;font-weight:450;cursor:pointer;text-decoration:none}
  .prail-nav a:hover{background:var(--hover)}
  .prail-nav a.on{background:var(--well);color:var(--ink);font-weight:600}
  .prail-nav a svg{width:18px;height:18px;color:var(--muted)}
  .prail-nav a.on svg{color:var(--ink)}
  .prail-cap{font-size:var(--text-xs);line-height:var(--leading-xs);text-transform:none;letter-spacing:normal;color:var(--ink-3);font-weight:400;padding:16px 8px 4px}
  .prail-cap.caprow{display:flex;align-items:center;justify-content:space-between}
  .prail-cap-add{display:grid;place-items:center;width:20px;height:20px;border:none;background:transparent;color:var(--muted);border-radius:6px;cursor:pointer;padding:0}
  .prail-cap-add:hover{background:var(--hover);color:var(--ink)}
  .prail-cap-add svg{width:15px;height:15px}
  .board-subcap{font-size:11px;color:var(--faint);font-weight:400;padding:9px 11px 4px}
  /* "Show all (N)" under a collapsed source-board group. Deliberately NOT
     .board-more — that's the per-row ⋯ trigger below, which is display:none
     until hover; this is a standalone row that must always be visible. */
  .board-showall{display:block;font-size:11px;color:var(--faint);padding:2px 11px 6px;text-decoration:none}
  .board-showall:hover{color:var(--ink)}
  /* flex:1 lets the name claim the row so the ⋯ trigger sits flush right. */
  #boardsNav .rt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* Board options ⋯ — same show-on-hover treatment as .projmenu .pm-edit, so the
     sidebar stays clean at rest but delete/rename don't require knowing about
     right-click. Kept reachable on :focus-within for keyboard users. */
  #boardsNav .board-more{display:none;place-items:center;width:22px;height:22px;border-radius:6px;color:var(--muted);flex:none}
  #boardsNav .board-more svg{width:15px;height:15px}
  #boardsNav a:hover .board-more,#boardsNav a:focus-within .board-more{display:grid}
  #boardsNav .board-more:hover{background:var(--hair);color:var(--ink)}
  /* "2/3" — a deletion waiting on admin approvals, visible without opening a menu. */
  .board-rename{width:calc(100% - 22px);margin:2px 11px;padding:5px 9px;border:1px solid var(--gold-line,#c9a24a);border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:14px;outline:none}
  #wsNav a .wsnm{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-radius:5px}
  #wsNav a .wsnm.editable{cursor:text}
  #wsNav a .wsnm.editable:hover{box-shadow:inset 0 0 0 1px var(--line, rgba(23,23,18,.12))}
  #wsNav a .wsnm.editing{overflow:visible;text-overflow:clip;white-space:normal;background:var(--card);box-shadow:inset 0 0 0 1.5px var(--gold-deep);padding:1px 5px;margin:-1px -5px;outline:none;cursor:text}
  #wsNav a .wssh{flex-shrink:0;font-size:10px;font-weight:700;letter-spacing:.03em;color:var(--gold-deep);background:var(--gold-soft);padding:2px 7px;border-radius:999px}
  .ws-list{padding:0 10px;display:flex;flex-direction:column;gap:1px;overflow:auto}
  .ws-list a{display:flex;align-items:center;gap:10px;padding:8px 11px;border-radius:9px;font-size:13.5px;color:var(--ink-2);cursor:pointer;text-decoration:none}
  .ws-list a:hover{background:var(--hover)}
  .ws-list a.on{background:var(--card);box-shadow:0 1px 2px rgba(23,23,18,.05)}
  .ws-list a .d{width:9px;height:9px;border-radius:3px}
  .ws-empty{font-size:12px;color:var(--faint);padding:4px 11px}
  .prail-acctwrap{margin-top:auto;position:relative;border-top:1px solid var(--hair)}
  .prail-acct{width:100%;border:none;background:none;font:inherit;text-align:left;padding:8px 4px 8px 6px;border-radius:var(--radius-sm);display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--ink)}
  .prail-acct:hover{background:var(--hover)}
  .prail-acctwrap.open .prail-acct{background:var(--hover)}
  .prail-acct .a{flex:none;width:24px;height:24px;border-radius:50%;background:var(--well);color:var(--ink);display:grid;place-items:center;font-family:var(--serif);font-weight:600;font-size:11px}
  /* One line — "Krisna · Business" — not a stacked name/plan pair. The dot is
     CSS so the account MENU's .who (name over email) keeps its own layout. */
  .prail-acct .who{min-width:0;display:flex;flex-direction:row;align-items:baseline;gap:5px;line-height:1.3}
  .prail-acct .nm{flex:0 1 auto;min-width:0;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* The plan gives way before the name does — a 244px rail plus the download
     button can't always fit both, and "Kri… · Business" is the wrong trade. */
  .prail-acct .em{flex:0 40 auto;min-width:0;font-size:12px;color:var(--faint);white-space:nowrap;overflow:hidden}
  .prail-acct .em::before{content:"· "}
  .prail-acct .g{margin-left:auto;flex:none;color:var(--faint);display:grid;place-items:center}.prail-acct .g svg{width:14px;height:14px;transition:transform .15s ease}
  .prail-acctwrap.open .prail-acct .g svg{transform:rotate(180deg)}
  .prail-acct:hover .g{color:var(--muted)}
  /* expanded account menu — opens above the row */
  .prail-acctmenu{position:absolute;left:11px;right:11px;bottom:calc(100% - 4px);z-index:600;background:var(--card);border:1px solid var(--hair-2);border-radius:12px;box-shadow:0 18px 44px -12px rgba(23,23,18,.46);padding:5px;display:none;animation:ctxin .12s ease}
  .prail-acctwrap.open .prail-acctmenu{display:block}
  .prail-acctmenu .amhead{display:flex;align-items:center;gap:10px;padding:9px 9px 10px}
  .prail-acctmenu .amhead .a{flex:none;width:32px;height:32px;border-radius:50%;background:var(--well);color:var(--ink);display:grid;place-items:center;font-family:var(--serif);font-weight:600;font-size:14px}
  .prail-acctmenu .amhead .who{min-width:0;display:flex;flex-direction:column;line-height:1.3}
  .prail-acctmenu .amhead .nm{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .prail-acctmenu .amhead .em{font-size:11.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .amopt{display:flex;align-items:center;gap:11px;width:100%;border:none;background:none;font:inherit;font-size:13px;color:var(--ink);padding:8px 10px;border-radius:8px;cursor:pointer;text-align:left;text-decoration:none}
  .amopt:hover{background:var(--side)}
  .amopt svg{width:15px;height:15px;color:var(--muted);flex:none}
  .amopt.danger{color:var(--rose)}.amopt.danger svg{color:var(--rose)}
  .amopt.danger:hover{background:var(--rose-soft)}
  .amsep{height:1px;background:var(--hair);margin:5px 7px}
  .amcap{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);font-weight:600;padding:6px 10px 4px;display:flex;align-items:center;gap:6px}
  .amcap b{color:var(--muted);font-weight:700;text-transform:none;letter-spacing:0;font-size:11.5px}
  /* town-style account menu: plan pill, upgrade/share buttons, submenu flyouts */
  .amhead .ampill{margin-left:auto;flex:none;align-self:flex-start;font-size:10px;font-weight:600;color:var(--muted);background:var(--well);border:1px solid var(--hair);border-radius:999px;padding:2px 8px;text-transform:capitalize}
  .amupg{display:flex;align-items:center;justify-content:center;gap:8px;margin:2px 3px 6px;padding:10px;border:none;border-radius:10px;background:var(--ink);color:var(--card);font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none}
  .amupg svg{width:15px;height:15px;color:currentColor}
  .amshare{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 3px 5px;padding:9px;border:1px solid var(--hair);border-radius:10px;background:var(--well);color:var(--ink-2);font:inherit;font-size:12.5px;font-weight:540;cursor:pointer;text-decoration:none}
  .amshare svg{width:15px;height:15px;color:var(--muted);flex:none}
  .amshare .earn{color:var(--faint);font-weight:500}
  .amopt .chev-r{margin-left:auto;flex:none;width:15px;height:15px;color:var(--faint)}
  .amsubwrap{position:relative}
  .amflyout{position:absolute;left:calc(100% + 5px);bottom:-4px;min-width:216px;background:var(--card);border:1px solid var(--hair-2);border-radius:12px;box-shadow:0 18px 44px -12px rgba(23,23,18,.46);padding:5px;display:none;z-index:610}
  .amsubwrap:hover>.amflyout,.amsubwrap:focus-within>.amflyout{display:block}
  .body.rail-collapsed .amflyout{left:auto;right:calc(100% + 5px)}
  .ammeter{padding:7px 10px 9px}
  .ammeter .mlab{display:flex;justify-content:space-between;align-items:baseline;font-size:11.5px;color:var(--muted);margin-bottom:6px}
  .ammeter .mlab .pro{color:var(--gold-deep);font-weight:700}
  .ammeter .bar{height:5px;border-radius:3px;background:var(--well);overflow:hidden}
  .ammeter .bar i{display:block;height:100%;border-radius:3px;background:var(--gold);transition:width .2s ease}
  .ammeter.cap .bar i{background:var(--rose)}
  /* theme segmented control inside the account menu */
  .amtheme{padding:6px 10px 7px}
  .amtheme .tlab{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);font-weight:600;margin-bottom:6px}
  .amseg{display:flex;gap:3px;background:var(--well);border-radius:9px;padding:3px}
  .amseg button{flex:1;border:none;background:none;font:inherit;font-size:12px;font-weight:500;color:var(--muted);padding:5px 4px;border-radius:7px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:5px}
  .amseg button svg{width:13px;height:13px}
  .amseg button:hover{color:var(--ink)}
  .amseg button.on{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12);font-weight:600}
  /* Figma draws this as a full-width pill with the label centred, not a
     left-aligned rounded rectangle. */
  .prail-invite{margin:0 0 8px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;height:36px;border-radius:var(--radius-pill);border:1px solid var(--hair-2);background:var(--card);font:inherit;font-size:13px;font-weight:500;color:var(--ink-2);cursor:pointer;text-align:center;text-decoration:none}
  .prail-invite:hover{border-color:var(--hair-2);background:var(--hover);color:var(--ink)}
  .prail-invite svg{width:15px;height:15px;color:var(--ink-3);flex:none}

  /* ── Claude-style sidebar header: wordmark + search/collapse icon buttons ── */
  .prail-head{display:flex;align-items:center;gap:4px;padding:0 4px 10px}
  .prail-head .prail-brand{padding:0;margin:0;flex:1;min-width:0}
  .prail-head .prail-brand .t{font-size:20px}
  .prail-hicons{display:flex;align-items:center;gap:2px}
  .prail-hicon{width:30px;height:30px;border:none;background:none;border-radius:8px;color:var(--muted);display:grid;place-items:center;cursor:pointer;flex:none}
  .prail-hicon:hover{background:var(--hover);color:var(--ink)}
  .prail-hicon svg{width:18px;height:18px}
  /* New Meeting — a plain nav row. The + is a bare glyph in the same box the nav
     icons use, so this row lines up with Home/Meetings/Projects below it; it used
     to carry a circled + that made it read as a button in a list of links. */
  .prail-newrow{margin:2px 0;height:auto;min-height:30px;padding:5px 8px;background:none;color:var(--ink);box-shadow:none;justify-content:flex-start;gap:10px;border-radius:var(--radius-sm);font-size:14px;line-height:20px;font-weight:450;width:auto}
  .prail-newrow:hover{background:var(--hover)}
  .prail-newrow .plusc{width:17px;height:17px;border:none;display:grid;place-items:center;flex:none;color:var(--ink-3)}
  .prail-newrow .plusc svg{width:15px;height:15px;stroke-width:1.7}
  /* sidebar search box lives under the header, toggled by the header search icon */
  .prail .prail-search{display:none;margin-top:0}
  .prail .prail-search.show{display:flex}
  /* expandable nav row (Projects) */
  .prail-nav .rowbtn{width:100%;border:none;background:none;font:inherit;display:flex;align-items:center;gap:8px;padding:5px 8px;min-height:30px;border-radius:var(--radius-sm);color:var(--ink-2);font-size:14px;line-height:20px;font-weight:450;cursor:pointer;text-align:left}
  .prail-nav .rowbtn:hover{background:var(--hover)}
  .prail-nav .rowbtn>svg{width:18px;height:18px;color:var(--muted);flex:none}
  .prail-nav .chev{margin-left:auto;flex:none;color:var(--muted);transition:transform .15s ease}
  .prail-nav .rowbtn.expanded .chev{transform:rotate(90deg)}
  .prail-nav .chev svg{width:15px;height:15px}
  .proj-list{padding:1px 0 2px;display:flex;flex-direction:column;gap:1px}
  .proj-list form{margin:0}
  .proj-item{display:flex;align-items:center;gap:9px;width:100%;border:none;background:none;font:inherit;font-size:14px;line-height:20px;color:var(--ink-2);padding:6px 11px 6px 40px;border-radius:8px;cursor:pointer;text-align:left;text-decoration:none}
  .proj-item:hover{background:var(--hover)}
  .proj-item.on{color:var(--ink);font-weight:600}
  .proj-item .ck{margin-left:auto;flex:none;color:var(--gold-deep);display:grid;place-items:center}
  .proj-item .ck svg{width:14px;height:14px}
  .proj-item.add{color:var(--muted)}
  .proj-item.add:hover{color:var(--ink)}
  /* Recents list */
  .rec-list{flex:0 1 auto;padding:0 0 6px;display:flex;flex-direction:column;gap:1px;overflow:auto;min-height:0}
  /* Agent tasks, moved into the rail under Recents. Compact header + rows sized
     for the narrow sidebar; a trailing spacer keeps the account block pinned. */
  .prail-tasks{flex:0 0 auto;padding:0 0 4px;max-height:38vh;overflow:auto}
  .prail-tasks .sech{font-size:12px;font-weight:400;color:var(--faint);text-transform:none;letter-spacing:normal;margin:8px 11px 4px}
  .prail-tasks .plist{display:flex;flex-direction:column;gap:1px}
  .prail-tasks .atrow{gap:9px;padding:7px 8px 7px 11px;border-radius:8px}
  .prail-tasks .atrow:hover{background:var(--hover)}
  .prail-tasks .atrow .att{font-size:14px;font-weight:500;line-height:20px}
  .prail-tasks .atrow .ats{font-size:12px;margin-top:1px}
  .prail-tasks-spacer{flex:1 1 auto;min-height:6px}
  .rec-row{display:flex;align-items:center;border-radius:8px}
  .rec-row:hover{background:var(--hover)}
  .rec-list a{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;padding:6px 4px 6px 11px;font-size:14px;line-height:20px;color:var(--ink-2);text-decoration:none;cursor:pointer}
  .rec-row:hover a,.rec-list a:hover{color:var(--ink)}
  .rec-list a .rt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rec-star{flex:none;width:13px;height:13px;color:var(--gold)}
  .rec-kebab{flex:none;width:26px;height:26px;margin-right:5px;display:none;align-items:center;justify-content:center;border:none;background:none;border-radius:7px;color:var(--muted);cursor:pointer}
  .rec-kebab svg{width:16px;height:16px}
  .rec-row:hover .rec-kebab{display:flex}
  .rec-kebab:hover{background:var(--card);color:var(--ink)}
  .rec-kebab.on{display:flex;background:var(--card);color:var(--ink)}
  .rec-rename{flex:1 1 auto;min-width:0;margin:2px 6px 2px 9px;padding:4px 6px;font:inherit;font-size:14px;color:var(--ink);border:1px solid var(--brand,var(--ink-4));border-radius:7px;background:var(--card);outline:none}
  .ctxopt .kbd{margin-left:auto;font-size:11px;color:var(--faint);font-weight:600;padding-left:16px}
  .ctxopt .chev{margin-left:auto;width:14px;height:14px;color:var(--muted)}
  .ctxsub{position:fixed;z-index:501;min-width:184px;max-height:260px;overflow:auto;background:var(--card);border:1px solid var(--hair-2);border-radius:11px;box-shadow:0 18px 44px -12px rgba(23,23,18,.46);padding:5px}
  .ctxsub .ctxopt.cur{color:var(--ink);font-weight:600}
  .ctxsub .ctxopt.cur svg{color:var(--brand,var(--gold))}
  .rec-empty{font-size:12px;color:var(--faint);padding:4px 11px}
  /* account row + download button */
  .prail-acctrow{display:flex;align-items:center;gap:6px;padding-right:10px}
  .prail-acctrow .prail-acct{flex:1;min-width:0;padding-right:6px}
  .prail-acct .g{margin-left:auto}
  .prail-dl{flex:none;width:26px;height:26px;border-radius:8px;border:1px solid var(--hair-2);background:var(--card);color:var(--muted);display:grid;place-items:center;cursor:pointer;text-decoration:none}
  .prail-dl:hover{color:var(--ink);border-color:var(--gold-line)}
  .prail-dl svg{width:15px;height:15px}
  /* collapse → narrow icon rail (Claude-style): sidebar stays visible, labels drop */
  .body.rail-collapsed{grid-template-columns:60px 1fr}
  .body.rail-collapsed .prail{overflow:visible}
  /* header: keep only the collapse toggle, centered + highlighted */
  .body.rail-collapsed .prail-head{flex-direction:column;padding:14px 0 6px}
  .body.rail-collapsed .prail-brand,
  .body.rail-collapsed #railSearchBtn{display:none}
  .body.rail-collapsed .prail-hicons{justify-content:center;width:100%}
  .body.rail-collapsed #railCollapse{color:var(--gold-deep)}
  /* New Meeting → just the circled + */
  .body.rail-collapsed .prail-newrow{margin:2px 0;justify-content:center;gap:0;font-size:0;padding:6px 0}
  /* nav rows → icon only, centered */
  .body.rail-collapsed .prail-nav{padding:0 6px;align-items:center}
  .body.rail-collapsed .prail-nav a,
  .body.rail-collapsed .prail-nav .rowbtn{justify-content:center;gap:0;font-size:0;padding:8px 0;width:100%}
  .body.rail-collapsed .prail-nav .chev{display:none}
  /* hide section captions, search box, recents, projects, invite */
  .body.rail-collapsed .prail-cap,
  .body.rail-collapsed .prail .prail-search,
  .body.rail-collapsed .rec-list,
  .body.rail-collapsed .proj-list,
  .body.rail-collapsed .prail-invite{display:none}
  .body.rail-collapsed .prail-acctwrap{margin-top:auto}
  /* account → download stacked over avatar, centered */
  .body.rail-collapsed .prail-acctrow{flex-direction:column-reverse;gap:10px;padding:8px 0;align-items:center}
  .body.rail-collapsed .prail-acct{flex:none;padding:0;justify-content:center}
  .body.rail-collapsed .prail-acct .who,
  .body.rail-collapsed .prail-acct .g{display:none}
  .body.rail-collapsed .prail-acctmenu{left:8px;right:auto;width:232px}
  #railReveal,#prailReveal{display:none}

  /* Desktop only: reserve a clean zone for the native macOS traffic lights so the
     sidebar's top controls don't crowd under them, and make the top a drag region. */
  html.is-desktop .prail-head,
  html.pondros-desktop .prail-head{padding-top:40px;-webkit-app-region:drag}
  html.is-desktop .prail-head .prail-hicon,
  html.is-desktop .prail-head .prail-brand,
  html.pondros-desktop .prail-head .prail-hicon,
  html.pondros-desktop .prail-head .prail-brand{-webkit-app-region:no-drag}
  html.is-desktop .body.rail-collapsed .prail-head,
  html.pondros-desktop .body.rail-collapsed .prail-head{padding-top:40px}
  /* The collapse toggle stays in the header's icon group (right, beside search),
     below the traffic-light strip. A previous attempt pinned it fixed at
     top:11/left:80 to sit "beside the traffic lights", but at x=80 it landed on
     top of the "Pondros" wordmark (which ends ~x=85) — cramped. The 40px header
     pad above already clears the native dots, so grouped-right reads clean.
     (#railCollapse already gets -webkit-app-region:no-drag via .prail-head .prail-hicon.) */

