/* SAIBL DEL hub. Lapis Light by default, Lapis Dark on the toggle; Moonshots glass grammar. */
:root {
  --f-display: 'Jost', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r: 18px; --r-s: 12px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.4,.5,1);
  --c-victor: 47,120,255; --c-aisling: 255,92,34; --c-john: 46,200,110; --c-guest: 112,122,138;
}
[data-theme="light"] {
  --bg: #f7f8fa; --bg-wash: #e9eef6;
  --ink: #0b1220; --ink-2: #2a3142; --ink-3: #5a6273;
  --line: rgba(15,23,42,.08); --line-2: rgba(15,23,42,.14);
  --glass: rgba(255,255,255,.74); --glass-2: rgba(255,255,255,.9); --glass-alt: rgba(246,248,252,.86);
  --accent: 29,77,140; --accent-hex: #1d4d8c;
  --gold: 169,118,31; --gold-hex: #a9761f; --gold-glow: none;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px rgba(15,23,42,.07);
  --shadow-h: 0 2px 4px rgba(15,23,42,.05), 0 22px 50px rgba(15,23,42,.12);
  --veil: rgba(11,18,32,.38);
  --numeral: rgba(29,77,140,.07);
}
[data-theme="dark"] {
  --bg: #121318; --bg-wash: #1d2230;
  --ink: #eef0f5; --ink-2: #c2c6d3; --ink-3: #8a90a3;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --glass: rgba(28,31,40,.72); --glass-2: rgba(34,37,48,.92); --glass-alt: rgba(22,24,31,.8);
  --accent: 110,160,236; --accent-hex: #6ea0ec;
  --gold: 227,200,120; --gold-hex: #E3C878; --gold-glow: 0 0 24px rgba(227,200,120,.45);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.45);
  --shadow-h: 0 2px 6px rgba(0,0,0,.45), 0 26px 60px rgba(0,0,0,.6);
  --veil: rgba(4,6,10,.62);
  --numeral: rgba(255,255,255,.05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); min-height: 100vh; overflow-x: hidden; transition: background .35s var(--ease), color .35s var(--ease); }
body.locked { overflow: hidden; }
a { color: rgb(var(--accent)); }
button { font: inherit; color: inherit; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--f-mono); font-size: .86em; }
.kicker { font: 500 11.5px/1.5 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hex); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--gold-hex); text-shadow: var(--gold-glow); }

/* background light */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky i { position: absolute; border-radius: 50%; }
.sky i:nth-child(1) { width: 900px; height: 600px; left: -200px; top: -260px; background: radial-gradient(closest-side, rgba(var(--accent),.16), transparent); }
.sky i:nth-child(2) { width: 700px; height: 700px; right: -260px; top: 30vh; background: radial-gradient(closest-side, rgba(var(--gold),.12), transparent); }
.sky i:nth-child(3) { width: 800px; height: 500px; left: 20vw; bottom: -300px; background: radial-gradient(closest-side, rgba(var(--accent),.1), transparent); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font: 600 17px/1 var(--f-display); letter-spacing: .02em; display: block; }
.brand small { font: 500 10.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px; transition: background .18s, color .18s; }
.nav a:hover { background: rgba(var(--accent),.08); color: var(--ink); }
.badge { position: absolute; top: 1px; right: 2px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--gold-hex); color: #fff; font: 600 10.5px/17px var(--f-mono); font-style: normal; text-align: center; }
[data-theme="dark"] .badge { color: #15130c; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); display: grid; place-items: center; cursor: pointer; transition: transform .15s var(--spring), border-color .2s; }
.icon-btn:hover { border-color: rgba(var(--gold),.7); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.icon-btn .moon { display: none; }
[data-theme="dark"] .icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .moon { display: block; fill: var(--gold-hex); stroke: none; }
.foryou { height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 0; background: var(--gold-hex); color: #fff; display: flex; gap: 6px; align-items: center; cursor: pointer; font: 600 14px var(--f-mono); box-shadow: 0 6px 20px rgba(var(--gold),.35); }
[data-theme="dark"] .foryou { color: #15130c; }
.foryou em { font-style: normal; }
.me { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--f-display); color: #fff; background: rgb(var(--who, var(--accent))); flex: none; }
.me-name { font-weight: 500; font-size: 14.5px; }
.link { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 13px; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }

/* hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 36px; max-width: 860px; }
.hero h1 { font-size: clamp(42px, 7vw, 78px); line-height: 1.02; }
.hero .sub { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 64ch; margin: 22px 0 0; }
.m { font-family: var(--f-mono); font-size: .92em; color: rgb(var(--accent)); background: rgba(var(--accent),.09); padding: 1px 6px; border-radius: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px var(--f-body); cursor: pointer; text-decoration: none; transition: transform .18s var(--spring), box-shadow .25s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--gold-hex); color: #fff; box-shadow: 0 10px 30px rgba(var(--gold),.35); }
[data-theme="dark"] .btn.gold { color: #17140b; }
.btn.gold:hover { box-shadow: 0 14px 40px rgba(var(--gold),.5); transform: translateY(-1px); }
.btn.ghost { background: var(--glass); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: rgba(var(--accent),.5); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr, .card:hover .cta .arr { transform: translateX(4px); }
.rise { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* glass */
.glass { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* dashboard */
.dash { display: grid; grid-template-columns: 300px 1fr; gap: 18px; margin-top: 10px; }
.ring-card { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px; text-align: center; overflow: hidden; }
.ring-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-hex), transparent); }
.ring { width: 190px; height: 190px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: rgba(var(--accent),.1); }
.ring-fg { stroke: var(--gold-hex); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.1s var(--ease); filter: drop-shadow(0 0 6px rgba(var(--gold),.45)); }
.ring-num { margin-top: -132px; height: 74px; display: flex; align-items: baseline; justify-content: center; font-family: var(--f-display); }
.ring-num b { font-size: 64px; font-weight: 500; color: var(--gold-hex); text-shadow: var(--gold-glow); line-height: 1; }
.ring-num span { font-size: 24px; color: var(--ink-3); margin-left: 2px; }
.ring-label { margin: 66px 0 0; font-weight: 500; line-height: 1.45; }
.ring-label .muted { font-weight: 400; font-size: 13.5px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 20px 20px 18px; }
.stat .k { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; }
.stat b { display: block; font: 500 44px/1.1 var(--f-display); margin: 10px 0 2px; color: var(--ink); }
.stat small { color: var(--ink-3); font-size: 13px; }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.move { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; overflow: hidden; }
.move::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: rgb(var(--who)); }
.move .who { font: 600 15px var(--f-display); }
.move .role { display: block; margin-top: 2px; font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.move p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.move .ment { display: inline-block; margin-top: 8px; font: 600 12px var(--f-mono); color: var(--gold-hex); }
.matrix { grid-column: 1 / -1; padding: 22px 24px; }
.matrix-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.matrix-grid { display: grid; grid-template-columns: 210px repeat(8, 1fr); gap: 6px 6px; align-items: center; margin-top: 12px; }
.mx-h { font: 500 10px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.mx-w { font: 500 13px var(--f-display); color: var(--ink-2); background: none; border: 0; text-align: left; padding: 2px 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-w:hover { color: rgb(var(--accent)); }
.cell { height: 16px; border-radius: 5px; background: rgba(var(--accent),.07); transition: background .4s, box-shadow .4s; }
.cell.done { background: rgba(var(--accent),.85); }
.cell.done.gold { background: var(--gold-hex); box-shadow: 0 0 10px rgba(var(--gold),.35); }
.cell.next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold-hex); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 1.5px rgba(var(--gold),.3); } }

/* sections */
.sec-head { margin: 92px 0 26px; max-width: 760px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; }
.sec-head p.muted { margin: 12px 0 0; font-size: 16px; }
.phase { margin-top: 34px; }
.phase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.phase-head span { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.phase-head i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* week cards: Moonshots .blk grammar */
.card { --hue: var(--accent); position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); padding: 22px 22px 20px; min-height: 250px; display: flex; flex-direction: column; cursor: pointer; text-align: left; border: 1px solid var(--line); background:
    radial-gradient(420px circle at var(--mx, 120%) var(--my, -20%), rgba(var(--hue),.12), transparent 45%),
    linear-gradient(150deg, rgba(var(--hue),.10), transparent 42%), var(--glass);
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); opacity: 0; animation: cardIn .6s var(--ease) forwards; }
@keyframes cardIn { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.card:nth-child(even) { background:
    radial-gradient(420px circle at var(--mx, 120%) var(--my, -20%), rgba(var(--hue),.12), transparent 45%),
    linear-gradient(150deg, rgba(var(--hue),.08), transparent 42%), var(--glass-alt); }
.card::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: rgb(var(--hue)); box-shadow: 0 0 14px rgba(var(--hue),.9); opacity: .85; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(var(--hue),.7), transparent 40%, transparent 60%, rgba(var(--gold),.55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { box-shadow: var(--shadow-h); }
.card:hover::after, .card:focus-visible::after { opacity: 1; }
.card:focus-visible { outline: 2px solid var(--gold-hex); outline-offset: 3px; }
.card .num { position: absolute; right: -10px; bottom: -42px; z-index: -1; font: 600 170px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--numeral); letter-spacing: -.04em; pointer-events: none; }
.card.focal .num { color: rgba(var(--gold),.16); -webkit-text-stroke: 0; }
.card.planned { --hue: 140,150,170; }
.card.planned .title { color: var(--ink-2); }
.pill { align-self: flex-start; font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(var(--hue),.35); color: rgb(var(--hue)); background: rgba(var(--hue),.07); }
.card .title { font: 500 23px/1.18 var(--f-display); margin: 16px 0 8px; letter-spacing: -.01em; }
.card .cq { font-size: 14.5px; color: var(--ink-3); margin: 0; line-height: 1.5; }
.card .foot-row { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.segs { display: flex; gap: 3px; flex: 1; max-width: 150px; }
.segs i { flex: 1; height: 5px; border-radius: 3px; background: rgba(var(--hue),.15); }
.segs i.on { background: rgb(var(--hue)); }
.card.focal .segs i.on { background: var(--gold-hex); }
.cta { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--hue)); white-space: nowrap; }
.status { font: 600 12px var(--f-body); padding: 5px 10px; border-radius: 999px; }
.status.gold { background: var(--gold-hex); color: #fff; }
[data-theme="dark"] .status.gold { color: #17140b; }
.status.blue { background: rgba(var(--accent),.12); color: rgb(var(--accent)); }
.status.grey { background: rgba(140,150,170,.14); color: var(--ink-3); }
.card .tags { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.chat-n { font: 500 12px var(--f-mono); color: var(--ink-3); }
.chat-n.hot { color: var(--gold-hex); font-weight: 600; }

/* sheet */
.veil { position: fixed; inset: 0; z-index: 60; background: var(--veil); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease); }
.veil.on { opacity: 1; }
.sheet { position: fixed; z-index: 61; top: 3vh; bottom: 3vh; left: 50%; width: min(1060px, 94vw); transform: translate(-50%, 24px) scale(.985); opacity: 0; transition: transform .32s var(--spring), opacity .22s var(--ease); background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 40px 120px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.sheet.on { transform: translate(-50%, 0) scale(1); opacity: 1; }
.sheet::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, rgb(var(--accent)), var(--gold-hex)); }
.sheet-head { display: flex; justify-content: space-between; gap: 20px; padding: 28px 30px 10px; }
.sheet-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; }
.sheet-head .q { color: var(--ink-2); margin: 10px 0 0; font-size: 16.5px; max-width: 70ch; }
.stagebar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 12px 30px 4px; }
.stage { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 9px; min-height: 64px; padding-right: 30px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; text-align: left; transition: background .25s, border-color .25s, transform .15s var(--spring); }
.stage:hover { border-color: rgba(var(--gold),.7); }
.stage:active { transform: scale(.97); }
.stage .sl { font: 600 12.5px/1.25 var(--f-body); }
.stage .so { font: 500 10px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stage .chk { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.stage .chk svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .3s .05s var(--ease); }
.stage.on { background: rgba(var(--gold),.12); border-color: rgba(var(--gold),.55); }
.stage.on .chk { background: var(--gold-hex); border-color: var(--gold-hex); }
.stage.on .chk svg { stroke-dashoffset: 0; }
[data-theme="dark"] .stage .chk svg { stroke: #17140b; }
.stage.glint::after { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg); animation: glint .7s var(--ease) forwards; }
@keyframes glint { to { left: 130%; } }
.stage .by { font-size: 10.5px; color: var(--ink-3); }
.tabs { display: flex; gap: 4px; padding: 14px 30px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; padding: 10px 14px 12px; background: none; border: 0; cursor: pointer; font: 500 14.5px var(--f-body); color: var(--ink-3); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--gold-hex); }
.tab em { font-style: normal; font: 600 11px var(--f-mono); color: var(--gold-hex); margin-left: 4px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 26px 30px 40px; overscroll-behavior: contain; }
.pane { animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.pane h3 { font-size: 21px; margin: 30px 0 12px; }
.pane h3:first-child { margin-top: 0; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 72ch; }
.note { border-left: 3px solid var(--gold-hex); background: rgba(var(--gold),.08); padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: 14.5px; color: var(--ink-2); margin: 14px 0; max-width: 78ch; }

/* plan table (OneNote convention) */
.plan { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.plan th { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 0 12px 8px; }
.plan td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.plan .code { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.tag { font: 600 11px var(--f-mono); padding: 3px 8px; border-radius: 6px; }
.tag.V { background: rgba(var(--accent),.12); color: rgb(var(--accent)); }
.tag.MU { background: rgba(var(--gold),.15); color: var(--gold-hex); }
.budget { margin: 18px 0 6px; }
.budget-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(var(--accent),.07); }
.budget-bar i { display: block; height: 100%; }
.budget-bar i.V { background: rgba(var(--accent),.75); }
.budget-bar i.MU { background: var(--gold-hex); }
.budget p { font-size: 13.5px; color: var(--ink-3); margin: 8px 0 0; }

/* videos */
.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.vid { overflow: hidden; padding: 0; }
.vid video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.vid .vb { padding: 16px 18px 18px; }
.vid h4 { margin: 0 0 4px; font: 500 19px var(--f-display); }
.vid .meta { font: 500 12px var(--f-mono); color: var(--ink-3); }
.vid .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vid.pending .ph { aspect-ratio: 16/9; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(var(--accent),.05) 0 12px, transparent 12px 24px); color: var(--ink-3); font: 500 13px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.cuts { display: grid; gap: 12px; margin-top: 8px; }
.cut { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 18px; }
.cut .t { font: 500 26px/1 var(--f-display); color: var(--gold-hex); text-shadow: var(--gold-glow); }
.cut .t small { display: block; font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; text-shadow: none; }
.cut h4 { margin: 0 0 6px; font: 600 15.5px var(--f-body); }
.cut p { margin: 4px 0; font-size: 14.5px; color: var(--ink-2); }
.cut q { font-style: italic; color: var(--ink); }
.cut .seek { margin-top: 8px; }

/* activities */
.act { padding: 20px 22px; margin-bottom: 16px; }
.act-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.act-head h4 { margin: 0; font: 500 21px var(--f-display); }
.act .prompt { font-size: 16px; font-weight: 500; margin: 6px 0 10px; }
.act .bins { font-size: 14px; color: var(--ink-2); margin: 4px 0; }
.items { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.items th { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 6px 10px; }
.items td { padding: 10px; border-top: 1px solid var(--line); vertical-align: top; }
.items td.ans { font-weight: 600; color: rgb(var(--accent)); white-space: nowrap; }
.items td.ans.ok { color: var(--gold-hex); }
.copy { border: 1px solid var(--line-2); background: transparent; border-radius: 8px; font: 500 11px var(--f-mono); padding: 4px 8px; cursor: pointer; color: var(--ink-3); }
.copy:hover { color: var(--ink); border-color: rgba(var(--gold),.7); }
.copy.ok { color: var(--gold-hex); border-color: var(--gold-hex); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px 18px; }
.steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 500 18px var(--f-display); color: rgb(var(--who)); border: 1.5px solid rgba(var(--who),.5); }
.steps h4 { margin: 0; font: 600 16px var(--f-body); }
.steps .owner { font: 500 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--who)); }
.steps p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 76ch; }

/* threads */
.thread { padding: 8px 0 0; }
.msgs { display: flex; flex-direction: column; gap: 4px; padding: 10px 20px; max-height: 520px; overflow-y: auto; }
.sheet .msgs { max-height: none; }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 10px 10px; border-radius: 14px; transition: background .2s; }
.msg:hover { background: rgba(var(--accent),.04); }
.msg.me-ment { background: rgba(var(--gold),.09); box-shadow: inset 3px 0 0 var(--gold-hex); }
.msg .av { width: 36px; height: 36px; font-size: 14px; }
.msg .h { display: flex; gap: 10px; align-items: baseline; }
.msg .h b { font: 600 14.5px var(--f-body); }
.msg .h time { font: 400 12px var(--f-mono); color: var(--ink-3); }
.msg .h .src { font: 500 11px var(--f-mono); letter-spacing: .02em; color: var(--ink-3); border: 1px solid rgba(var(--accent),.22); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.msg .b a { color: rgb(var(--accent)); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.msg .h .del { margin-left: auto; opacity: 0; }
/* recorded messages: timestamped pill, opens to the full text */
.msg:hover .h .del { opacity: 1; }
.msg .b { margin: 2px 0 0; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; color: var(--ink-2); }
.msg .b .mention { font-weight: 600; color: rgb(var(--who)); background: rgba(var(--who),.1); padding: 0 4px; border-radius: 5px; }
.msg.fresh { animation: land .45s var(--spring); }
@keyframes land { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.empty { padding: 26px 20px; color: var(--ink-3); font-size: 14.5px; text-align: center; }
.compose { border-top: 1px solid var(--line); padding: 14px 16px 16px; }
.compose textarea { width: 100%; min-height: 54px; max-height: 220px; resize: vertical; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--glass-2); color: var(--ink); font: 15px/1.5 var(--f-body); outline: none; transition: border-color .2s, box-shadow .2s; }
.compose textarea:focus { border-color: rgba(var(--gold),.8); box-shadow: 0 0 0 4px rgba(var(--gold),.12); }
.compose-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.at { border: 1px solid rgba(var(--who),.4); color: rgb(var(--who)); background: rgba(var(--who),.06); border-radius: 999px; padding: 6px 12px; font: 600 13px var(--f-body); cursor: pointer; transition: background .15s; }
.at:hover { background: rgba(var(--who),.14); }
.compose .hint { font-size: 12px; color: var(--ink-3); }
.compose .btn { margin-left: auto; }

/* Leo */
.leo-fab { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 14px; border-radius: 999px; border: 1px solid rgba(var(--gold),.6); background: var(--glass-2); box-shadow: 0 14px 40px rgba(0,0,0,.18), 0 0 0 6px rgba(var(--gold),.08); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .2s var(--spring), box-shadow .25s; }
.leo-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0,0,0,.24), 0 0 0 8px rgba(var(--gold),.12); }
.leo-fab b { font: 600 16px var(--f-display); }
.leo-fab small { font-size: 12.5px; color: var(--ink-3); }
.leo-dot { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 40%), var(--gold-hex); box-shadow: 0 0 16px rgba(var(--gold),.6); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.88); box-shadow: 0 0 6px rgba(var(--gold),.4); } }
.leo { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: min(440px, calc(100vw - 24px)); height: min(680px, calc(100vh - 44px)); display: flex; flex-direction: column; background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.35); overflow: hidden; transform-origin: bottom right; transform: scale(.94) translateY(10px); opacity: 0; transition: transform .28s var(--spring), opacity .2s; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.leo.on { transform: none; opacity: 1; }
.leo::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--gold-hex); box-shadow: 0 0 14px rgba(var(--gold),.8); }
.leo-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 18px; border-bottom: 1px solid var(--line); }
.leo-id { display: flex; gap: 12px; align-items: center; }
.leo-id b { font: 600 17px var(--f-display); display: block; }
.leo-id small { font-size: 12.5px; color: var(--ink-3); }
.leo-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 18px var(--f-display); color: #fff; background: linear-gradient(135deg, var(--gold-hex), rgb(var(--accent))); }
.leo-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.bub { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.bub.u { align-self: flex-end; background: rgb(var(--accent)); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
[data-theme="dark"] .bub.u { color: #0b1220; }
.bub.a { align-self: flex-start; background: rgba(var(--accent),.07); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bub.a p { margin: 0 0 8px; } .bub.a p:last-child { margin: 0; }
.bub.a ul, .bub.a ol { margin: 4px 0 8px; padding-left: 20px; }
.bub.err { border-color: rgba(var(--gold),.6); background: rgba(var(--gold),.08); }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hex); animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { transform: translateY(-5px); opacity: .5; } }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--ink-2); text-align: left; transition: border-color .2s, color .2s; }
.suggest button:hover { border-color: rgba(var(--gold),.8); color: var(--ink); }
.leo-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.leo-form textarea { flex: 1; resize: none; max-height: 140px; border: 1px solid var(--line-2); border-radius: 14px; padding: 11px 13px; background: var(--glass); color: var(--ink); font: 14.5px/1.45 var(--f-body); outline: none; }
.leo-form textarea:focus { border-color: rgba(var(--gold),.8); }
.send { width: 46px; border-radius: 14px; border: 0; background: var(--gold-hex); cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--spring); }
.send:active { transform: scale(.92); }
.send svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .send svg { stroke: #17140b; }

.foot { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.foot p { margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; transition: transform .3s var(--spring), opacity .25s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .ring-card { grid-row: auto; flex-direction: row; gap: 18px; justify-content: flex-start; text-align: left; padding: 18px 20px; }
  .ring { width: 120px; height: 120px; flex: none; }
  .ring-num { position: absolute; left: 20px; top: 50%; width: 120px; margin: -24px 0 0; height: auto; }
  .ring-num b { font-size: 40px; } .ring-num span { font-size: 16px; }
  .ring-label { margin: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .moves { grid-template-columns: 1fr; }
  .stagebar { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .nav, .me-name { display: none; }
  .bar { gap: 10px; }
  .stat b { font-size: 34px; }
  .matrix { padding: 16px; }
  .matrix-grid { grid-template-columns: 74px repeat(8, 1fr); gap: 4px; }
  .mx-h { font-size: 0; }
  .mx-w { font-size: 12px; }
  .sheet { top: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .sheet-head, .stagebar, .tabs, .sheet-body { padding-left: 18px; padding-right: 18px; }
  .stage { min-height: 0; padding: 8px 26px 8px 10px; }
  .stage .sl { font-size: 12px; }
  .stage .by { display: none; }
  .stagebar { gap: 5px; grid-template-columns: repeat(2, 1fr); }
  .sheet-head .q { font-size: 15px; }
  .sheet-head h2 { font-size: 26px; }
  .kicker { font-size: 10.5px; letter-spacing: .14em; }
  .stage .so { display: none; }
  .cut { grid-template-columns: 1fr; gap: 6px; }
  .items, .items tbody, .items tr, .items td { display: block; width: 100%; }
  .items thead { display: none; }
  .items tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .items td { border: 0; padding: 3px 0; }
  .plan .nm { min-width: 0; }
  .leo-fab small { display: none; }
  .leo { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .card .num { font-size: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rise, .card { opacity: 1; transform: none; }
}

.notice { margin-top: 26px; padding: 14px 18px 14px 20px; max-width: 720px; overflow: hidden; }
.notice::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-hex); }
.notice-k { font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hex); }
.notice p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* ===== NCI web skin (13 Nov 2026), same family as quorum.kluxy.app: NCI Brand Guidelines 6th ed. colours,
   Lato 700 headings, Roboto body, River pill buttons, #F1F1F1 page, flat white Teams cards (4px, Fluent shadow),
   yellow internal strip, NCI Navy footer. Dark mode kept (Victor asked for light/dark): NCI night navy. ===== */
:root { --f-display: Lato, 'Helvetica Neue', Arial, sans-serif; --f-body: Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif; --r: 6px; --r-s: 4px;
  --nci-navy: #022b55; --nci-deep: #070f2e; --nci-river: #0069b4; --nci-sea: #0093b8; --nci-slate: #364650; --nci-rule: #dcdfe2;
  --fluent: 0 1.6px 3.6px rgba(0,0,0,.13), 0 .3px .9px rgba(0,0,0,.11); --fluent-h: 0 6.4px 14.4px rgba(0,0,0,.13), 0 1.2px 3.6px rgba(0,0,0,.11); }
[data-theme="light"] { --bg: #f1f1f1; --ink: #333; --ink-2: #3f4c56; --ink-3: #5f6d77; --line: #e3e6e8; --line-2: #cfd5da;
  --glass: #fff; --glass-2: #fff; --glass-alt: #fff; --accent: 0,105,180; --accent-hex: #0069b4; --gold: 0,105,180; --gold-hex: #0069b4; --gold-glow: none;
  --shadow: var(--fluent); --shadow-h: var(--fluent-h); --numeral: rgba(2,43,85,.05); --head: #022b55; --veil: rgba(2,43,85,.45); }
[data-theme="dark"] { --bg: #070f2e; --ink: #e7ecf3; --ink-2: #c3ccd8; --ink-3: #8d9aae; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.17);
  --glass: #0e1a3f; --glass-2: #10204a; --glass-alt: #0c1738; --accent: 95,176,236; --accent-hex: #5fb0ec; --gold: 95,176,236; --gold-hex: #5fb0ec; --gold-glow: none;
  --shadow: 0 2px 8px rgba(0,0,0,.4); --shadow-h: 0 10px 28px rgba(0,0,0,.5); --numeral: rgba(255,255,255,.04); --head: #fff; --veil: rgba(2,6,20,.7); }
body { font-family: var(--f-body); }
.sky { display: none; }
h1, h2, h3, h4 { font-family: var(--f-display) !important; font-weight: 700 !important; letter-spacing: -.005em !important; color: var(--head); }
h1 em, h2 em { font-style: normal !important; color: var(--nci-river) !important; text-shadow: none !important; }
[data-theme="dark"] h1 em, [data-theme="dark"] h2 em { color: var(--accent-hex) !important; }
.kicker { font: 700 12px/1.5 var(--f-body); letter-spacing: .12em; color: rgb(var(--accent)); }

/* internal strip */
.alpha-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px max(20px, calc(50vw - 620px)); background: #fbb900; color: #1c1400; font: 500 14.5px/1.4 var(--f-body); border-bottom: 3px solid #e09f00; }
.alpha-bar.fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 5; }
.ab-tag { flex: none; font: 900 12px/1 Lato, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; background: #1c1400; color: #fbb900; padding: 6px 9px; border-radius: 3px; }

/* header: NCI logo, River rule, SAIBL lockup */
.bar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--nci-rule); min-height: 88px; padding: 10px max(20px, calc(50vw - 620px)); gap: 18px; }
[data-theme="dark"] .bar { background: #0a1536; border-bottom-color: rgba(255,255,255,.08); }
.nci-logo img { display: block; height: 64px; width: auto; }
[data-theme="dark"] .nci-logo img { content: url(/img/nci-logo-negative.png); }
.brand { display: flex; align-items: center; gap: 12px; border-left: 1px solid var(--nci-river); padding-left: 16px; text-decoration: none; }
.bt b { display: block; font: 900 22px/1.05 Lato, Arial, sans-serif; color: var(--nci-navy); letter-spacing: .01em; }
.bt b span { color: var(--nci-river); }
.bt small { display: block; margin-top: 4px; font: 500 11px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--nci-river); }
[data-theme="dark"] .bt b { color: #fff; } [data-theme="dark"] .bt b span, [data-theme="dark"] .bt small { color: var(--accent-hex); }
.pillx { font: 900 10.5px/1 Lato, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; background: #fbb900; color: #1c1400; padding: 5px 7px; border-radius: 3px; }
.nav a { font: 500 15px var(--f-body); color: var(--ink-2); border-radius: 4px; }
.nav a:hover { background: rgba(var(--accent),.07); color: var(--nci-river); }
.badge { background: #fbb900; color: #1c1400 !important; }
.icon-btn { background: #fff; border-color: var(--line-2); }
[data-theme="dark"] .icon-btn { background: transparent; }
.foryou { background: #fbb900; color: #1c1400 !important; box-shadow: none; }

/* buttons: River pills */
.btn { font: 700 15px var(--f-body); border-radius: 999px; }
.btn.gold { background: var(--nci-river); color: #fff !important; box-shadow: none; }
.btn.gold:hover { background: #005a9c; box-shadow: none; transform: none; }
[data-theme="dark"] .btn.gold { background: #1f7fcf; }
.btn.ghost { background: #fff; border: 1.5px solid var(--nci-river); color: var(--nci-river); }
[data-theme="dark"] .btn.ghost { background: transparent; color: var(--accent-hex); border-color: var(--accent-hex); }
.m { color: var(--nci-river); background: rgba(0,105,180,.08); }

/* hero */
.hero { padding: 54px 0 30px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); line-height: 1.08; }
.hero .sub { color: var(--ink-2); }

/* flat Teams cards everywhere */
.glass, .card, .sheet, .leo, .notice { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.glass { background: var(--glass); border: 1px solid transparent; border-radius: var(--r); box-shadow: var(--shadow); }
[data-theme="dark"] .glass { border-color: var(--line); }
.ring-card::before { background: var(--nci-river); height: 3px; }
.ring-fg { filter: none; }
.ring-num b { color: var(--nci-river); text-shadow: none; font-weight: 900; }
[data-theme="dark"] .ring-num b { color: var(--accent-hex); }
.stat b { font-family: Lato, Arial, sans-serif; font-weight: 900; color: var(--head); }
.stat .k, .move .role, .mx-h, .phase-head span, .pill, .cta, .stage .so, .owner, .items th, .plan th { font-family: var(--f-body) !important; letter-spacing: .08em; }
.cell.done.gold { background: var(--nci-river); box-shadow: none; }
[data-theme="dark"] .cell.done.gold { background: var(--accent-hex); }
.cell.next { box-shadow: inset 0 0 0 1.5px #fbb900; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 1.5px rgba(251,185,0,.35); } }
.legend i[style*="box-shadow"] { box-shadow: inset 0 0 0 1.5px #fbb900 !important; }

.card { background: var(--glass) !important; border: 1px solid transparent; border-radius: var(--r); box-shadow: var(--shadow); transform: none !important; min-height: 230px; }
[data-theme="dark"] .card { border-color: var(--line); }
.card:hover { box-shadow: var(--shadow-h); }
.card::before { height: 3px; box-shadow: none; opacity: 1; background: rgb(var(--hue)); }
.card.planned::before { background: var(--line-2); }
.card::after { display: none; }
.card .title { font-family: Lato, Arial, sans-serif; font-weight: 700; color: var(--head); }
.card.focal .num { color: rgba(0,105,180,.09); }
.card .num { font-family: Lato, Arial, sans-serif; font-weight: 900; }
.pill { border-radius: 4px; font-weight: 700; }
.status.gold { background: #fbb900; color: #1c1400 !important; }
.card.focal .segs i.on { background: var(--nci-river); }
.notice { border-radius: var(--r); }
.notice::before, .note { border-left-color: #fbb900; }
.notice-k { font-family: var(--f-body); font-weight: 700; color: #a87700; }
[data-theme="dark"] .notice-k { color: #fbb900; }
.note { background: rgba(251,185,0,.1); }

/* sheet and Leo */
.sheet { border-radius: 8px; }
.sheet::before { background: var(--nci-river); }
.tab[aria-selected="true"]::after { background: var(--nci-river); }
.tab em { color: var(--nci-river); }
.stage.on { background: rgba(0,105,180,.07); border-color: rgba(0,105,180,.45); }
.stage.on .chk { background: var(--nci-river); border-color: var(--nci-river); }
[data-theme="dark"] .stage .chk svg { stroke: #fff; }
.cut .t { color: var(--nci-river); text-shadow: none; font-family: Lato, Arial, sans-serif; font-weight: 900; }
[data-theme="dark"] .cut .t { color: var(--accent-hex); }
.leo-fab { border-color: var(--nci-river); box-shadow: var(--fluent-h); background: #fff; backdrop-filter: none; }
[data-theme="dark"] .leo-fab { background: #10204a; }
.leo-fab:hover { box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.leo-dot { background: radial-gradient(circle at 35% 30%, #fff9, transparent 45%), var(--nci-river); box-shadow: 0 0 0 4px rgba(0,105,180,.15); }
.leo::before { background: var(--nci-river); box-shadow: none; }
.leo-av { background: var(--nci-navy); }
.send { background: var(--nci-river); }
[data-theme="dark"] .send svg, [data-theme="light"] .send svg { stroke: #fff; }
.compose textarea:focus, .leo-form textarea:focus { border-color: var(--nci-river); box-shadow: 0 0 0 3px rgba(0,105,180,.14); }

/* video cards: a recording you can see, play and download */
.recordings { margin-top: 10px; }
.vlist { display: grid; gap: 18px; }
.vcard { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 0; background: var(--glass); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s; }
[data-theme="dark"] .vcard { border: 1px solid var(--line); }
.vcard:hover { box-shadow: var(--shadow-h); }
.vthumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; align-self: start; }
.vthumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease), filter .3s; }
.vthumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,43,85,0) 45%, rgba(2,43,85,.65)); pointer-events: none; }
.vthumb.live::after { display: none; }
.vcard:hover .vthumb img { transform: scale(1.03); }
.vthumb video { display: block; width: 100%; height: 100%; background: #000; }
.vchip, .vdur { position: absolute; z-index: 2; font: 700 11.5px/1 var(--f-body); letter-spacing: .06em; padding: 6px 8px; border-radius: 4px; }
.vchip { top: 10px; left: 10px; background: rgba(2,43,85,.88); color: #fff; }
.vdur { bottom: 10px; right: 10px; background: rgba(0,0,0,.78); color: #fff; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0; }
.vplay { position: absolute; z-index: 2; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 0; background: rgba(0,105,180,.94); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.22); transition: transform .18s var(--spring), background .2s; }
.vplay svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.vcard:hover .vplay { transform: scale(1.08); background: #0069b4; }
.vplay:active { transform: scale(.95) !important; }
.vsoon { position: absolute; inset: 0; display: grid; place-items: center; color: #c8d4e3; font: 700 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; background: repeating-linear-gradient(135deg, #0a1f45 0 14px, #0c2550 14px 28px); }
.vinfo { padding: 20px 24px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vk { margin: 0; font: 700 12px/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--accent)); }
.vinfo h4 { margin: 0; font-size: 24px !important; line-height: 1.2; }
.vdesc { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 62ch; }
.vacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.vbtn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); font: 600 14.5px var(--f-body); cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s, transform .12s; }
.vbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbtn:hover { border-color: var(--nci-river); color: var(--nci-river); }
[data-theme="dark"] .vbtn:hover { border-color: var(--accent-hex); color: var(--accent-hex); }
.vbtn:active { transform: scale(.97); }
.vbtn.on { background: rgba(0,105,180,.1); border-color: var(--nci-river); color: var(--nci-river); }
.vbtn.primary { background: var(--nci-river); border-color: var(--nci-river); color: #fff; }
.vbtn.primary:hover { background: #005a9c; color: #fff; }
.vbtn.primary small { font: 500 12px var(--f-body); opacity: .8; }
.vcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.vcut { border: 0; background: rgba(251,185,0,.16); color: var(--ink); border-radius: 4px; padding: 6px 10px; font: 500 13px var(--f-body); cursor: pointer; transition: background .15s; }
.vcut b { font-family: 'IBM Plex Mono', monospace; color: #8a5f00; margin-right: 4px; }
[data-theme="dark"] .vcut b { color: #fbb900; }
.vcut:hover { background: rgba(251,185,0,.32); }
.vmore { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; font-size: 13.5px; }
.vmore a { color: var(--nci-river); text-underline-offset: 3px; }
[data-theme="dark"] .vmore a { color: var(--accent-hex); }
.vcard.theater { grid-template-columns: 1fr; }
.vcard.theater .vthumb { max-height: 72vh; }
.vcard.pending .vthumb { aspect-ratio: 16 / 9; }

/* NCI navy footer */
.site-foot { background: var(--nci-navy); color: #dbe5f0; margin-top: 70px; }
.sf-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 26px max(20px, calc(50vw - 620px)) 30px; }
.sf-in img { height: 58px; width: auto; }
.sf-t b { display: block; font: 700 15px var(--f-body); color: #fff; }
.sf-t span { font-size: 13px; color: #b9c8d8; }
.sf-r { margin-left: auto; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #b9c8d8; text-align: right; }
.sf-r .mono { color: #fff; }

/* login in the same family */
.gate-logos { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.gate-logos img { height: 56px; }
.gate-logos .bt { border-left: 1px solid var(--nci-river); padding-left: 14px; }
.gate::before { background: var(--nci-river) !important; }
.gate-note { border-left-color: #fbb900 !important; background: rgba(251,185,0,.1) !important; }

@media (max-width: 860px) {
  .vcard { grid-template-columns: 1fr; }
  .sf-r { margin-left: 0; text-align: left; }
}
@media (max-width: 640px) {
  .alpha-bar { font-size: 12.5px; padding: 8px 14px; }
  .bar { min-height: 64px; padding: 8px 14px; gap: 10px; }
  .nci-logo img { height: 44px; }
  .brand { padding-left: 10px; gap: 8px; }
  .bt b { font-size: 17px; } .bt small { font-size: 9.5px; letter-spacing: .1em; }
  .pillx { display: none; }
  .vinfo { padding: 16px; }
  .vinfo h4 { font-size: 20px !important; }
  .vbtn { height: 42px; padding: 0 14px; font-size: 14px; }
  .vplay { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
}

/* 13 Nov: videos first; Leo's real face */
.recordings { margin-top: 0; }
.recordings .sec-head { margin-top: 44px; }
.vchip { top: auto; bottom: 10px; left: 10px; }
.leo-face { position: relative; flex: none; width: 40px; height: 40px; }
.leo-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--nci-river); }
.leo-face i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #2ec86e; box-shadow: 0 0 0 2px #fff; }
[data-theme="dark"] .leo-face img { box-shadow: 0 0 0 2px #10204a, 0 0 0 3.5px var(--accent-hex); }
[data-theme="dark"] .leo-face i { box-shadow: 0 0 0 2px #10204a; }
.leo-face.big { width: 44px; height: 44px; }
.leo-fab { padding: 0 20px 0 9px; gap: 11px; }
.leo-fab:hover .leo-face img { transform: scale(1.06); }
.leo-face img { transition: transform .2s var(--spring); }
.arow { display: flex; gap: 10px; align-items: flex-end; align-self: flex-start; max-width: 92%; }
.arow .bub.a { max-width: none; }
.bav { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 640px) { .leo-fab { height: 52px; padding: 0 16px 0 7px; } }
@media (max-width: 640px) { .leo-fab { width: 56px; height: 56px; padding: 0; justify-content: center; right: 14px; bottom: 14px; } .leo-fab b, .leo-fab small { display: none; } .leo-fab .leo-face { width: 44px; height: 44px; } main { padding-bottom: 90px; } }

/* 13 Nov 13:35: staging panel inside each video card (timeline with cut pins, trims, every activity) */
.vcard { border-top: 3px solid var(--nci-river); }
.vcard:hover { transform: translateY(-1px); }
.vcard { transition: box-shadow .2s, transform .2s var(--ease); }
.vcuts { display: none; }
.vmore span { color: var(--ink-3); }
.vmore span b { font-family: 'IBM Plex Mono', monospace; color: var(--ink); font-weight: 500; }
.vstage { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 18px 24px 22px; background: linear-gradient(180deg, rgba(0,105,180,.035), transparent 120px); }
.vs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vs-k { font: 700 12px/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--head); }
.vs-n { font-size: 13.5px; color: var(--ink-3); }
.vs-n b { font: 900 18px Lato, Arial, sans-serif; color: var(--nci-river); margin-right: 2px; }
[data-theme="dark"] .vs-n b { color: var(--accent-hex); }

.vtl { position: relative; height: 62px; margin: 10px 4px 0; }
.vtl-track { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: rgba(2,43,85,.1); overflow: hidden; }
[data-theme="dark"] .vtl-track { background: rgba(255,255,255,.12); }
.vtl-fill { position: absolute; inset: 0; background: var(--nci-river); transform-origin: left; transform: scaleX(0); transition: transform .3s linear; }
.vtl-0, .vtl-1 { position: absolute; top: 44px; font: 500 11.5px 'IBM Plex Mono', monospace; color: var(--ink-3); }
.vtl-0 { left: 0; } .vtl-1 { right: 0; }
.pin { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; cursor: pointer; padding: 0; z-index: 1; }
.pin span { width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; background: #fbb900; color: #1c1400; font: 900 12px Lato, Arial, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .18s var(--spring), background .25s; }
.pin span::first-letter { }
.pin span { line-height: 1; }
.pin span > b { transform: rotate(45deg); }
.pin em { position: absolute; top: 44px; font: 500 11.5px 'IBM Plex Mono', monospace; font-style: normal; color: var(--ink-2); white-space: nowrap; background: var(--glass); padding: 0 4px; }
.pin:hover span { transform: rotate(-45deg) scale(1.15); }
.pin.ok span { background: #2ec86e; color: #fff; }
.pin span { writing-mode: horizontal-tb; }

.trim, .cue { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.trim > div, .cue > div { background: var(--bg); border-radius: 4px; padding: 10px 12px; }
[data-theme="dark"] .trim > div, [data-theme="dark"] .cue > div { background: rgba(255,255,255,.04); }
.ck { display: block; font: 700 11px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.trim q, .cue q { font-size: 14px; color: var(--ink); font-style: italic; }

.act-list { display: grid; gap: 8px; margin-top: 14px; }
.act-row { border: 1px solid var(--line); border-radius: 6px; background: var(--glass); transition: border-color .2s, box-shadow .2s; }
.act-row[open] { border-color: rgba(0,105,180,.35); box-shadow: var(--fluent); }
.act-row.ok { border-left: 4px solid #2ec86e; }
.act-row summary { list-style: none; display: grid; grid-template-columns: 34px 1fr auto auto 18px; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; }
.act-row summary::-webkit-details-marker { display: none; }
.act-row summary:hover { background: rgba(0,105,180,.035); }
.an { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fbb900; color: #1c1400; font: 900 15px Lato, Arial, sans-serif; }
.act-row.ok .an { background: #2ec86e; color: #fff; }
.at b { display: block; font: 700 16px Lato, Arial, sans-serif; color: var(--head); }
.at small { font-size: 13px; color: var(--ink-3); }
.ain { text-align: right; }
.ain em { display: block; font: 600 16px 'IBM Plex Mono', monospace; font-style: normal; color: var(--nci-river); }
[data-theme="dark"] .ain em { color: var(--accent-hex); }
.ain small { font-size: 12px; color: var(--ink-3); }
.built { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 9px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; font: 600 13px var(--f-body); color: var(--ink-2); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.built svg { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); padding: 2px; fill: none; stroke: transparent; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: background .2s, stroke .2s, border-color .2s; }
.built:hover { border-color: #2ec86e; color: #13894a; }
.built.on { background: rgba(46,200,110,.12); border-color: #2ec86e; color: #13894a; }
[data-theme="dark"] .built.on, [data-theme="dark"] .built:hover { color: #52d995; }
.built.on svg { background: #2ec86e; border-color: #2ec86e; stroke: #fff; }
.built.pop svg { animation: bpop .42s var(--spring); }
@keyframes bpop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.chev { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; transition: transform .2s var(--ease); }
.act-row[open] .chev { transform: rotate(90deg); }
.act-body { padding: 0 16px 16px 62px; animation: fade .22s var(--ease); }
.ab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-top: 12px; }
.ab-head .prompt { margin: 0; font: 600 16px/1.45 var(--f-body); color: var(--head); }
.vbtn.small { height: 36px; padding: 0 14px; font-size: 13px; flex: none; }
.items2 { display: grid; gap: 8px; margin-top: 10px; }
.it { position: relative; display: grid; grid-template-columns: 1.1fr .5fr 1.2fr; gap: 6px 16px; padding: 10px 70px 10px 12px; border-radius: 4px; background: var(--bg); }
[data-theme="dark"] .it { background: rgba(255,255,255,.04); }
.it:not(:has(.ia)) { grid-template-columns: .7fr 1.6fr; }
.it.right { box-shadow: inset 3px 0 0 #2ec86e; }
.it p { margin: 0; font-size: 14px; line-height: 1.5; }
.iq { color: var(--ink); }
.ia { font-weight: 700; color: var(--nci-river); }
[data-theme="dark"] .ia { color: var(--accent-hex); }
.it.right .ia { color: #13894a; }
.if { color: var(--ink-2); }
.it .copy { position: absolute; top: 9px; right: 10px; }
@media (max-width: 860px) {
  .act-row summary { grid-template-columns: 30px 1fr auto 16px; gap: 10px; }
  .ain { display: none; }
  .act-body { padding: 0 12px 14px; }
  .it, .it:not(:has(.ia)) { grid-template-columns: 1fr; padding-right: 64px; }
  .trim, .cue { grid-template-columns: 1fr; }
  .ab-head { flex-direction: column; }
  .vstage { padding: 16px; }
}
@media (max-width: 480px) { .built span { display: none; } .built { padding: 0 9px; } }
.cue-note { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); padding-left: 10px; border-left: 3px solid #fbb900; }

/* 13 Nov 13:45: collapsible video cards, collapse-all switch, secure sign-in */
.vcard { position: relative; }
.vfold { position: absolute; z-index: 3; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); display: grid; place-items: center; cursor: pointer; transition: transform .15s var(--spring), border-color .2s; }
.vfold:hover { border-color: var(--nci-river); }
.vfold:active { transform: scale(.92); }
.vfold svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.vcard.folded .vfold svg { transform: rotate(180deg); }
.vlen { display: none; font: 500 13px var(--f-body); color: var(--ink-3); margin-left: 10px; letter-spacing: 0; }
.vlen b { color: #13894a; font-weight: 700; }
.vcard.folded { grid-template-columns: 168px 1fr; }
.vcard.folded .vthumb { aspect-ratio: 16 / 9; }
.vcard.folded .vthumb .vchip, .vcard.folded .vthumb .vdur { display: none; }
.vcard.folded .vplay { width: 40px; height: 40px; margin: -20px 0 0 -20px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.vcard.folded .vplay svg { width: 18px; height: 18px; margin-left: 2px; }
.vcard.folded .vinfo { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 64px 12px 18px; }
.vcard.folded .vk { flex-basis: 100%; }
.vcard.folded .vinfo h4 { font-size: 19px !important; }
.vcard.folded .vlen { display: inline; }
.vcard.folded .vdesc, .vcard.folded .vmore, .vcard.folded .vstage, .vcard.folded .vacts .vbtn:not(.primary) { display: none; }
.vcard.folded .vacts { margin: 0 0 0 auto; }
.vcard.folded .vbtn.primary { height: 38px; padding: 0 14px; font-size: 13.5px; }
.vcard.folded .vthumb.live { pointer-events: none; }

.foldall { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; font: 600 13.5px var(--f-body); color: var(--ink-2); transition: border-color .2s; }
.foldall:hover { border-color: var(--nci-river); }
.fa-track { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--nci-river); transition: background .2s; }
.fa-track i { position: absolute; top: 2px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .22s var(--spring); }
.foldall[aria-pressed="true"] .fa-track { background: var(--line-2); }
.foldall[aria-pressed="true"] .fa-track i { left: 2px; }

.secure { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; border: 1px solid #e0a300; background: rgba(251,185,0,.14); color: #6b4b00; font: 600 12.5px var(--f-body); cursor: pointer; transition: background .2s; }
[data-theme="dark"] .secure { color: #fbd55a; }
.secure:hover { background: rgba(251,185,0,.28); }
.secure i { width: 8px; height: 8px; border-radius: 50%; background: #fbb900; box-shadow: 0 0 0 3px rgba(251,185,0,.3); animation: pulse2 2s ease-in-out infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 6px rgba(251,185,0,0); } }
.secure.ok { border-color: #2ec86e; background: rgba(46,200,110,.1); color: #13894a; }
.secure.ok i { background: #2ec86e; box-shadow: none; animation: none; }
.secpop { position: fixed; z-index: 80; top: 150px; right: max(16px, calc(50vw - 640px)); width: min(420px, calc(100vw - 32px)); padding: 22px 22px 18px; background: var(--glass-2); border-radius: 8px; border-top: 3px solid #fbb900; box-shadow: 0 18px 50px rgba(0,0,0,.22); opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease); }
.secpop.on { opacity: 1; transform: none; }
.secpop h3 { margin: 0 0 6px; font-size: 21px; }
.sp-l { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.secpop label { font: 700 11px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.secpop input { width: 100%; height: 46px; margin: 6px 0 4px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--glass); color: var(--ink); font: 500 16px var(--f-body); outline: none; }
.secpop input:focus { border-color: var(--nci-river); box-shadow: 0 0 0 3px rgba(0,105,180,.14); }
.sp-hint { margin: 0 0 14px; font-size: 13px; color: #8a5f00; }
[data-theme="dark"] .sp-hint { color: #fbd55a; }
.sp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-err { margin: 8px 0 0; min-height: 18px; font-size: 13.5px; color: #b42318; }
@media (max-width: 980px) { .foldall .fa-l { display: none; } .foldall { padding: 0 8px; } }
@media (max-width: 640px) {
  .secure span { display: none; } .secure { padding: 0 9px; }
  .secpop { top: 120px; right: 16px; }
  .vcard.folded { grid-template-columns: 112px 1fr; }
  .vcard.folded .vinfo { padding: 10px 52px 10px 12px; }
  .vcard.folded .vinfo h4 { font-size: 16px !important; }
  .vcard.folded .vlen { display: block; margin: 2px 0 0; }
  .vcard.folded .vacts { margin: 4px 0 0; }
  .vcard.folded .vk { display: none; }
  .vfold { top: 10px; right: 10px; width: 32px; height: 32px; }
}
@media (max-width: 640px) {
  #themeBtn { display: none; }
  .bt small { display: none; }
  .bt b { font-size: 16px; white-space: nowrap; }
  .tools { gap: 6px; }
  .me { gap: 6px; padding-left: 0; }
  .me .av { width: 30px; height: 30px; font-size: 13px; }
  #logout { font-size: 12px; white-space: nowrap; }
  .foldall { height: 34px; padding: 0 6px; }
  .secure { height: 28px; padding: 0 8px; }
  .vcard.folded .vbtn.primary small { display: none; }
  .vcard.folded .vbtn.primary { white-space: nowrap; }
}
@media (max-width: 380px) { .nci-logo img { height: 36px; } .brand { padding-left: 8px; } }

/* 13 Nov 13:50: activity build kit (Rise 360 recipe, Moodle GIFT, JSON) */
.vs-head { flex-wrap: wrap; }
.kitzip { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; margin-right: 16px; font: 600 13.5px var(--f-body); color: var(--nci-river); text-decoration: none; padding: 7px 12px; border-radius: 999px; background: rgba(0,105,180,.08); transition: background .15s; }
.kitzip:hover { background: rgba(0,105,180,.16); }
[data-theme="dark"] .kitzip { color: var(--accent-hex); }
.kitzip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kit { margin-top: 14px; border-radius: 6px; padding: 14px 16px; background: linear-gradient(135deg, rgba(2,43,85,.06), rgba(0,105,180,.03)); border: 1px dashed rgba(0,105,180,.35); }
.kit:empty { display: none; }
.kit-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.kit-k { font: 900 11px Lato, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--nci-navy); padding: 4px 8px; border-radius: 3px; }
.kit-rise { font-size: 14.5px; color: var(--ink-2); }
.kit-rise b { color: var(--head); }
.kit-f { margin: 8px 0 6px; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.kit-f li + li { margin-top: 3px; }
.kit-m { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-3); }
.kit-b { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .kitzip { margin: 6px 0 0; order: 3; } }

/* 13 Nov 14:05: weeks-finished progress in the navbar */
.bar { position: sticky; }
.navprog { display: inline-flex; align-items: center; gap: 12px; margin-left: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(0,105,180,.06); text-decoration: none; color: var(--ink-2); transition: background .2s; white-space: nowrap; }
.navprog:hover { background: rgba(0,105,180,.12); }
.np-l { font: 500 13px var(--f-body); }
.np-l b { font: 900 18px Lato, Arial, sans-serif; color: var(--nci-river); }
.np-l span { font: 700 13px Lato, Arial, sans-serif; color: var(--ink-3); margin-right: 2px; }
.np-l em { font-style: normal; }
[data-theme="dark"] .np-l b { color: var(--accent-hex); }
.np-seg { display: inline-grid; grid-template-columns: repeat(12, 9px); gap: 3px; }
.np-seg i { height: 9px; border-radius: 2px; background: rgba(2,43,85,.13); transition: background .3s; }
[data-theme="dark"] .np-seg i { background: rgba(255,255,255,.14); }
.np-seg i.on { background: var(--nci-river); box-shadow: 0 0 0 1px rgba(0,105,180,.25); }
[data-theme="dark"] .np-seg i.on { background: var(--accent-hex); }
.np-seg i.next { background: #fbb900; animation: npPulse 2.2s ease-in-out infinite; }
@keyframes npPulse { 50% { opacity: .45; } }
.np-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: rgba(2,43,85,.06); overflow: hidden; pointer-events: none; }
.np-line b { position: absolute; inset: 0; background: linear-gradient(90deg, var(--nci-river), #0093b8); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.np-line b::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; left: -120px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); animation: npGleam 1.4s .9s ease-out 1 forwards; }
@keyframes npGleam { to { left: 100%; } }
@media (max-width: 1240px) { .np-l em { display: none; } }
@media (max-width: 1100px) { .navprog { display: none; } }
@media (prefers-reduced-motion: reduce) { .np-seg i.next { animation: none; } .np-line b::after { display: none; } }
@media (max-width: 1480px) { .pillx, .np-l em, .foldall .fa-l { display: none; } .foldall { padding: 0 8px; } .nav a { padding: 8px 10px; } }
.bt b, .bt small, .foldall, .secure, #logout, .me-name, .nav a, .navprog { white-space: nowrap; }
@media (min-width: 1481px) { .bar, .alpha-bar { padding-left: max(24px, calc(50vw - 780px)); padding-right: max(24px, calc(50vw - 780px)); } }

/* ---------- replies + reactions (16 Nov 2026) ---------- */
.tree { display: flex; flex-direction: column; }
.tree + .tree { margin-top: 10px; }
.post.fresh { animation: land .45s var(--spring); }
.acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 10px 4px 58px; }
details.rec + .acts { padding-left: 52px; margin-top: 2px; }
.acts .reply { font: 600 12.5px var(--f-body); color: var(--ink-3); padding: 4px 8px; border-radius: 8px; }
.acts .reply:hover { color: rgb(var(--accent)); background: rgba(var(--accent),.07); }
.replies { margin: 4px 0 2px 28px; padding-left: 14px; border-left: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.replies .msg { padding-top: 8px; padding-bottom: 6px; }
.replies .acts { padding-left: 58px; }
.rform { margin: 6px 0 8px 10px; }
.rform textarea { width: 100%; min-height: 48px; max-height: 200px; resize: vertical; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; background: var(--glass-2); color: var(--ink); font: 14.5px/1.5 var(--f-body); outline: none; }
.rform textarea:focus { border-color: var(--nci-river); box-shadow: 0 0 0 3px rgba(0,105,180,.14); }
.rform .compose-row { justify-content: flex-end; }
.rform .hint { font-size: 12px; color: var(--ink-3); margin-right: auto; }
.rx { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rxc { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--ink-2); font: 600 12.5px var(--f-body); cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.rxc .e { font-size: 15px; line-height: 1; }
.rxc:hover { border-color: rgba(var(--accent),.45); }
.rxc:active { transform: scale(.94); }
.rxc.mine { border-color: rgba(var(--accent),.6); background: rgba(var(--accent),.12); color: rgb(var(--accent)); }
.rxc.like { opacity: .7; }
.rxc.like:hover { opacity: 1; }
.rxadd { width: 28px; height: 28px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-3); font: 600 16px/1 var(--f-body); cursor: pointer; display: inline-grid; place-items: center; }
.rxadd:hover { border-style: solid; color: rgb(var(--accent)); border-color: rgba(var(--accent),.5); }
.vinfo > .rx { margin-top: 2px; }
.vcard.folded .vinfo > .rx { margin-top: 0; }
.emoji-pop { position: fixed; z-index: 90; width: 300px; padding: 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg); box-shadow: 0 18px 50px rgba(15,23,42,.22); }
.emoji-pop .eg { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-pop .eg button { height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 19px; cursor: pointer; }
.emoji-pop .eg button:hover { background: rgba(var(--accent),.1); }
.emoji-pop .eany { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 600 12.5px var(--f-body); color: var(--ink-2); }
.emoji-pop .eany input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; background: var(--glass-2); color: var(--ink); font-size: 16px; outline: none; }
.emoji-pop .eany input:focus { border-color: var(--nci-river); }
.emoji-pop .ehint { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 640px) { .acts, .replies .acts { padding-left: 10px; } .replies { margin-left: 10px; } }

/* ---------- Recordings grouped by week (16 Nov) ---------- */
#recGrid { display: grid; gap: 12px; }
.wksec { border-radius: var(--r); background: var(--glass); box-shadow: var(--shadow); border-left: 5px solid var(--nci-river, #0069b4); }
[data-theme="dark"] .wksec { border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wk-sum { display: flex; align-items: center; gap: 18px; padding: 16px 20px; list-style: none; cursor: pointer; border-radius: var(--r); }
.wk-sum::-webkit-details-marker { display: none; }
.wksec:not(.wk-empty) > .wk-sum:hover { background: rgba(var(--accent), .04); }
.wk-sum:focus-visible { outline: 2px solid var(--nci-river, #0069b4); outline-offset: 2px; }
.wk-n { flex: none; font: 600 12.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--nci-river, #0069b4); padding: 7px 11px; border-radius: 999px; }
.wk-t { flex: 1; min-width: 0; font: 500 21px/1.25 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.wk-st { flex: none; font: 500 13.5px/1.3 var(--f-mono); color: var(--ink-3); }
.wk-st b { font-weight: 600; color: var(--gold-hex); }
.wk-st b.ok { color: #1f7a4d; }
.wk-chev { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.wksec[open] .wk-chev { transform: rotate(180deg); }
.wksec[open] > .wk-sum { border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.wk-body { padding: 16px; }
.wksec.wk-empty { box-shadow: none; background: transparent; border: 1px dashed var(--line-2); border-left: 5px solid var(--line-2); }
.wksec.wk-empty .wk-sum { cursor: default; padding: 10px 20px; }
.wksec.wk-empty .wk-n { background: var(--line-2); color: var(--ink-3); }
.wksec.wk-empty .wk-t { font-size: 16px; color: var(--ink-3); }
.wksec.wk-empty .wk-st { font-size: 12.5px; }
@media (max-width: 640px) {
  .wk-sum { flex-wrap: wrap; gap: 6px 12px; padding: 14px 14px; }
  .wk-t { flex-basis: calc(100% - 140px); font-size: 18px; }
  .wk-st { order: 3; flex-basis: 100%; }
  .wk-chev { margin-left: auto; }
  .wk-body { padding: 10px; }
  .wksec.wk-empty .wk-st { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wk-chev { transition: none; } }

/* ---------- Board conversations as folding cards (16 Nov) ---------- */
.conv { position: relative; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s; }
.conv:hover { box-shadow: var(--shadow-h); }
.conv-h { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px 12px 18px; cursor: pointer; }
.conv-h:hover { background: rgba(var(--accent), .035); }
.conv-h:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(0,105,180,.35); border-radius: 18px; }
.conv-av { flex: none; display: flex; }
.conv-av .av { width: 30px; height: 30px; font-size: 12.5px; box-shadow: 0 0 0 2px var(--glass-2); }
.conv-av .av + .av { margin-left: -9px; }
.conv-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; }
.conv-t b { flex: none; font: 600 15px var(--f-body); color: var(--ink); }
.conv-t span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-size: 14.5px; transition: opacity .18s; }
.conv.open .conv-t span { opacity: 0; }
.conv-m { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.conv-m em { font: 500 12px/1 var(--f-mono); font-style: normal; color: var(--ink-3); }
.conv-m em.hot { color: var(--gold-hex); font-weight: 700; text-shadow: var(--gold-glow); }
.conv-m small { font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.conv-chev { flex: none; width: 9px; height: 9px; margin: 0 4px 4px 2px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .26s var(--spring), margin .2s; }
.conv.open .conv-chev { transform: rotate(-135deg); margin-bottom: 0; }
.conv-b { display: none; padding: 6px 10px 10px 8px; border-top: 1px solid var(--line); }
.conv.open .conv-b { display: block; }
.conv.just .conv-b .post { animation: conv-in .28s var(--ease) both; }
.conv.just .conv-b .replies .post:nth-child(1) { animation-delay: .05s; } .conv.just .conv-b .replies .post:nth-child(2) { animation-delay: .1s; }
.conv.just .conv-b .replies .post:nth-child(3) { animation-delay: .15s; } .conv.just .conv-b .replies .post:nth-child(n+4) { animation-delay: .2s; }
@keyframes conv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.conv-bar { display: flex; align-items: center; gap: 14px; padding: 12px 22px 0; font: 600 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.conv-bar span { margin-right: auto; }
.conv-bar .link { font: 600 12.5px var(--f-body); letter-spacing: 0; text-transform: none; color: rgb(var(--accent)); }
.msgs .conv { flex: none; }
@media (max-width: 640px) {
  .conv-h { gap: 10px; padding: 11px 12px; flex-wrap: wrap; }
  .conv-t { flex-basis: calc(100% - 120px); }
  .conv-h { flex-wrap: nowrap; }
  .conv-t { flex-basis: auto; }
  .conv-t span { display: none; }
  .conv-t { white-space: normal; }
  .conv-t b { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 1.25; }
  .conv-m small { display: none; }
  .conv-b { padding: 4px 4px 8px; }
}
@media (prefers-reduced-motion: reduce) { .conv.just .conv-b .post { animation: none; } .conv-chev { transition: none; } }

/* ---------- Navbar icons (16 Nov) ---------- */
.nav { gap: 6px; align-items: center; }
.nav a.ni { position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); background: transparent; transition: background .18s, color .18s; }
.ni svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .24s var(--spring); }
.ni svg .f { fill: currentColor; stroke: none; opacity: .13; }
.ni svg .s { fill: currentColor; stroke: none; }
.nav a.ni:hover, .nav a.ni:focus-visible { background: rgba(0,105,180,.09); color: var(--nci-river, #0069b4); outline: none; }
.nav a.ni:hover svg { transform: translateY(-1px) scale(1.07); }
.nav a.ni:active svg { transform: scale(.94); transition-duration: .08s; }
.nav a.ni.on { color: var(--nci-river, #0069b4); background: rgba(0,105,180,.11); }
.nav a.ni.on::after { content: ""; position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor; }
.ni .tip { position: absolute; top: calc(100% + 9px); left: 50%; transform: translate(-50%, -4px); opacity: 0; pointer-events: none; white-space: nowrap; font: 600 12px/1 var(--f-body); letter-spacing: .01em; color: #fff; background: var(--nci-navy, #022b55); padding: 7px 10px; border-radius: 8px; box-shadow: 0 8px 20px -10px rgba(2,43,85,.6); transition: opacity .14s, transform .14s; z-index: 30; }
.ni .tip::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.nav a.ni:hover .tip, .nav a.ni:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; }
.ni .badge { top: 2px; right: 1px; }
.ni.chat.has-new .d1, .ni.chat.has-new .d2, .ni.chat.has-new .d3 { animation: ni-dot 1.6s ease-in-out infinite; }
.ni.chat.has-new .d2 { animation-delay: .18s; } .ni.chat.has-new .d3 { animation-delay: .36s; }
@keyframes ni-dot { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .25; } }
@media (max-width: 1480px) { .nav a.ni { padding: 0; } }
@media (prefers-reduced-motion: reduce) { .ni svg { transition: none; } .ni.chat.has-new .s { animation: none; } }

/* @ autocomplete */
.atpop { position: absolute; z-index: 30; transform: translateY(-100%); min-width: 190px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.atpop[hidden] { display: none; }
.atopt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 600 15px/1.2 var(--f-body); text-align: left; cursor: pointer; }
.atopt .av { width: 26px; height: 26px; font-size: 13px; }
.atopt.on, .atopt:hover { background: rgba(var(--who),.12); color: rgb(var(--who)); }

/* ---------- Board threads, v2 (Victor, 18 Nov: "this looks convoluted, needs more love"): one card per conversation,
   messages as plain rows inside it, no box per message, one reply at the foot. ---------- */
.conv-h:focus:not(:focus-visible) { outline: none; }
.conv-m small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font: 600 11.5px/1 var(--f-body); letter-spacing: 0; text-transform: none;
  color: var(--ink-2); background: rgba(var(--accent),.08); }
.conv-b { padding: 2px 8px 10px; }
.conv-b .post + .post { border-top: 1px solid var(--line); }
.conv-b .msg { position: relative; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 10px 12px; border-radius: 12px; }
.conv-b .msg:hover { background: rgba(var(--accent),.03); }
.conv-b .msg .av { width: 34px; height: 34px; font-size: 13.5px; }
.conv-b .msg .mc { min-width: 0; }
.conv-b .msg .h { align-items: center; gap: 8px; }
.conv-b .msg .h b { font: 600 15px var(--f-body); color: var(--ink); }
.conv-b .msg .h time { font: 400 12.5px var(--f-body); color: var(--ink-3); }
.conv-b .msg .h .src { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; color: var(--ink-3); background: rgba(var(--accent),.06); }
.conv-b .msg .h .src svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conv-b .msg .b { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 74ch; }
.conv-b .msg.clamp .b { max-height: calc(1.6em * 3); overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.conv-b .msg .more { all: unset; cursor: pointer; margin-top: 4px; font: 600 13px var(--f-body); color: rgb(var(--accent)); }
.conv-b .msg .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.conv-b .msg .more:focus-visible { outline: 2px solid var(--nci-river, #0069b4); outline-offset: 2px; border-radius: 4px; }
.conv-b .msg .rx { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.conv-b .msg .rx:not(:has(.rxc:not(.like))) { margin-top: 0; }
@media (hover: hover) {
  .conv-b .msg .rx .like, .conv-b .msg .rx .rxadd { position: absolute; top: 10px; opacity: 0; pointer-events: none; transition: opacity .15s; background: var(--glass); box-shadow: var(--shadow); }
  .conv-b .msg .rx .like { right: 46px; } .conv-b .msg .rx .rxadd { right: 12px; border-style: solid; }
  .conv-b .msg:hover .rx .like, .conv-b .msg:hover .rx .rxadd, .conv-b .msg:focus-within .rx .like, .conv-b .msg:focus-within .rx .rxadd { opacity: 1; pointer-events: auto; transition-delay: .12s; }
}
.conv-reply { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: calc(100% - 20px); margin: 6px 10px 2px; padding: 8px 14px 8px 8px; border-radius: 999px; cursor: text;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--ink-3); font: 400 14.5px var(--f-body); transition: border-color .15s, box-shadow .15s; }
.conv-reply .av { width: 26px; height: 26px; font-size: 11.5px; }
.conv-reply:hover { border-color: rgba(var(--accent),.45); box-shadow: 0 6px 18px -14px rgba(var(--accent),.7); color: var(--ink-2); }
.conv-reply:focus-visible { outline: 2px solid var(--nci-river, #0069b4); outline-offset: 2px; }
.conv-b .rform { margin: 8px 10px 4px; animation: reply-in .18s ease-out; }
@keyframes reply-in { from { opacity: 0; transform: translateY(4px) scale(.99); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .conv-b { padding: 2px 2px 8px; } .conv-b .msg { padding: 12px 8px 10px; gap: 10px; } .conv-b .msg .h { flex-wrap: wrap; row-gap: 0; } }
@media (prefers-reduced-motion: reduce) { .conv-b .rform { animation: none; } }
.conv-m { flex-direction: row; align-items: center; gap: 8px; }
.conv-m em { font: 500 12.5px/1 var(--f-body); }
.conv-m small { order: -1; }
@media (max-width: 640px) { .conv-m { gap: 6px; } .conv-m em { font-size: 12px; } }

/* ---------- Board threads, v3: Gmail-style rows (Victor, 18 Nov: "make it look a bit more like this") ---------- */
.conv-b { padding: 0 0 8px; }
.conv-b .post + .post { border-top: 1px solid var(--line); }
.mrow { position: relative; }
.mr-h { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: 26px 150px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  width: 100%; min-height: 48px; padding: 0 20px; cursor: pointer; color: var(--ink); }
.mr-h:hover { z-index: 1; box-shadow: inset 1px 0 0 var(--line-2), inset -1px 0 0 var(--line-2), 0 1px 2px rgba(60,64,67,.28), 0 1px 3px 1px rgba(60,64,67,.14); }
.mr-h:focus-visible { outline: 2px solid var(--nci-river, #0069b4); outline-offset: -2px; }
.mr-h .av { width: 26px; height: 26px; font-size: 11.5px; }
.mr-who { font: 400 15px var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-sub { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 15px var(--f-body); }
.mr-sub b { font-weight: 400; color: var(--ink); }
.mr-pv { color: var(--ink-3); }
.mr-sub .src { display: inline-flex; align-items: center; gap: 5px; vertical-align: 1px; margin-right: 10px; padding: 2px 7px; border-radius: 5px; border: 0;
  font: 400 13px/1.3 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-2); background: rgba(15,23,42,.06); }
[data-theme="dark"] .mr-sub .src { background: rgba(255,255,255,.08); }
.mr-sub .src svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mr-sub .src .sr { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.mr-rx { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.mr-h time { font: 400 13px var(--f-body); color: var(--ink-2); text-align: right; min-width: 104px; white-space: nowrap; }
.mrow.unread .mr-who, .mrow.unread .mr-sub b, .mrow.unread .mr-h time { font-weight: 700; color: var(--ink); }
.mrow.me-ment { background: rgba(var(--gold),.08); box-shadow: inset 3px 0 0 var(--gold-hex); }
.mrow.open .mr-sub b, .mrow.open .mr-pv { display: none; }
.mrow.open .mr-who { font-weight: 600; }
.mr-body { padding: 0 24px 16px 60px; animation: rec-in .18s ease-out; }
.mr-body .b { margin: 0; max-width: 74ch; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.6; color: var(--ink); }
.mr-body .b a { color: rgb(var(--accent)); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.mr-body .b .mention { font-weight: 600; color: rgb(var(--who)); background: rgba(var(--who),.1); padding: 0 4px; border-radius: 5px; }
.mr-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mr-foot .del { margin-left: auto; }
@keyframes rec-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .mr-h { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "av who time" "av sub sub"; row-gap: 2px; column-gap: 10px; padding: 10px 14px; }
  .mr-h .av { grid-area: av; align-self: start; margin-top: 2px; } .mr-who { grid-area: who; } .mr-h time { grid-area: time; min-width: 0; } .mr-sub { grid-area: sub; } .mr-rx { display: none; }
  .mr-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mr-body { padding: 0 14px 14px 50px; }
  .mr-sub .src { margin-right: 6px; padding: 2px 5px; } .mr-sub .src .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .mr-body { animation: none; } }

/* ---------- Board v4: the conversation list as Gmail inbox rows (Victor, 18 Nov: "my request was that message threads looked
   more like this"): one flat row per thread, participants with a count, opening line then a grey snippet, time on the right. ---------- */
.msgs .tree + .tree { margin-top: 0; }
.msgs .conv { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; background: transparent; overflow: visible; }
.msgs .conv:first-child { border-top: 1px solid var(--line); }
.msgs .conv:hover { box-shadow: none; }
.msgs .conv-h { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 48px; padding: 0 20px; border-radius: 0; color: var(--ink); }
.msgs .conv-h:hover { z-index: 1; position: relative; background: transparent; box-shadow: inset 1px 0 0 var(--line-2), inset -1px 0 0 var(--line-2), 0 1px 2px rgba(60,64,67,.28), 0 1px 3px 1px rgba(60,64,67,.14); }
.msgs .conv-h:focus-visible { border-radius: 0; }
.conv-who { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 15px var(--f-body); color: var(--ink); }
.conv-who small { margin-left: 6px; font: 400 12.5px var(--f-body); color: var(--ink-3); }
.msgs .conv-t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 15px var(--f-body); }
.msgs .conv-t b { font: 400 15px var(--f-body); color: var(--ink); }
.msgs .conv-t .pv { color: var(--ink-3); font-size: 15px; }
.msgs .conv.open .conv-t .pv { opacity: 1; }
.conv-time { font: 400 13px var(--f-body); font-style: normal; color: var(--ink-2); text-align: right; min-width: 104px; white-space: nowrap; }
.msgs .conv.unread .conv-who, .msgs .conv.unread .conv-t b, .msgs .conv.unread .conv-time { font-weight: 700; color: var(--ink); }
.msgs .conv.open { background: rgba(var(--accent),.025); }
.msgs .conv.open > .conv-h { background: var(--glass); }
.msgs .conv-b { border-top: 1px solid var(--line); margin: 0 0 10px; padding: 0 0 8px 24px; }
@media (max-width: 640px) {
  .msgs .conv-h { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who time" "t t"; row-gap: 2px; padding: 10px 14px; }
  .conv-who { grid-area: who; } .conv-time { grid-area: time; min-width: 0; } .msgs .conv-t { grid-area: t; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .msgs .conv-t span { display: inline; }
  .msgs .conv-b { padding-left: 0; }
}
/* zebra rows, very faint blue (Victor, 18 Nov: "add alternating coloring very faint blue to distinguish lines") */
.msgs .conv:nth-child(even) > .conv-h { background: rgba(0,105,180,.06); }
[data-theme="dark"] .msgs .conv:nth-child(even) > .conv-h { background: rgba(120,170,255,.05); }
.msgs .conv.open > .conv-h { background: var(--glass); }

/* Email card on hover over a person (avatar or name). */
.email-tip { position: fixed; z-index: 9999; display: none; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; background: #fff; color: #0075cf; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.14); border: 1px solid rgba(0,0,0,.08); pointer-events: none; white-space: nowrap; }
.email-tip.on { display: flex; }
.email-tip svg { width: 18px; height: 18px; flex-shrink: 0; color: #929292; }
[data-theme="dark"] .email-tip { background: #1d2530; color: #70baff; border-color: rgba(255,255,255,.1); }
[data-email] { cursor: default; }

/* ---------- Moodle navbar pill (26 Nov) ---------- */
.bar { gap: 14px; }
.nav, .navprog { margin-left: 0; }
.moodle-pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px; border-radius: 999px; border: 1.5px solid rgba(0,105,180,.38); background: rgba(0,105,180,.08); color: var(--nci-river, #0069b4); font: 700 13.5px/1 var(--f-body); text-decoration: none; white-space: nowrap; flex: none; transition: background .18s, border-color .18s, transform .16s var(--spring), box-shadow .18s; }
.moodle-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--nci-river, #0069b4); box-shadow: 0 0 0 3px rgba(0,105,180,.18); flex: none; }
.moodle-pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .82; flex: none; transition: transform .18s var(--ease); }
.moodle-pill:hover { background: var(--nci-river, #0069b4); border-color: var(--nci-river, #0069b4); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(0,105,180,.55); }
.moodle-pill:hover i { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.28); }
.moodle-pill:hover svg { opacity: 1; transform: translate(1px, -1px); }
.moodle-pill:active { transform: scale(.96); }
.moodle-pill:focus-visible { outline: 2px solid var(--nci-river, #0069b4); outline-offset: 2px; }
[data-theme="dark"] .moodle-pill { color: var(--accent-hex); border-color: rgba(95,176,236,.42); background: rgba(95,176,236,.12); }
[data-theme="dark"] .moodle-pill i { background: var(--accent-hex); box-shadow: 0 0 0 3px rgba(95,176,236,.22); }
[data-theme="dark"] .moodle-pill:hover { background: var(--accent-hex); border-color: var(--accent-hex); color: #07112b; box-shadow: 0 6px 18px -6px rgba(95,176,236,.5); }
[data-theme="dark"] .moodle-pill:hover i { background: #07112b; box-shadow: 0 0 0 3px rgba(7,17,43,.22); }
@media (max-width: 1480px) { .bar { gap: 12px; } .nav, .navprog { margin-left: 0; } .moodle-pill { height: 36px; padding: 0 12px 0 10px; font-size: 13px; } }
@media (max-width: 1260px) { .navprog .np-seg { display: none; } }
@media (max-width: 1160px) { .nci-logo img { height: 48px; } .bt small, .me-name, .secure span { display: none; } .secure { padding: 0 9px; } }
@media (max-width: 880px) { .bar { gap: 8px; padding-left: 14px; padding-right: 14px; } .brand { padding-left: 10px; } .nav { gap: 2px; } .nav a.ni { width: 36px; height: 36px; } .ni svg { width: 20px; height: 20px; } .tools { gap: 6px; } .foldall { display: none; } }
@media (max-width: 640px) { .moodle-pill { height: 30px; padding: 0 10px; gap: 5px; font-size: 12px; } .moodle-pill i { display: none; } .moodle-pill svg { width: 11px; height: 11px; } }
@media (max-width: 440px) { .nci-logo img { height: 32px; } .bar { gap: 6px; padding-left: 10px; padding-right: 10px; } .brand { padding-left: 7px; } .bt b { font-size: 14.5px; } .moodle-pill { height: 28px; padding: 0 8px; font-size: 11.5px; } .foldall { display: none; } }

/* 4 Dec 2026: DEL Studio project tabs (one URL for every DEL build) */
.studio { display: flex; align-items: center; gap: 18px; padding: 10px max(20px, calc(50vw - 620px)); background: var(--nci-deep, #070f2e); color: #fff; }
.st-brand { flex: none; font: 500 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.st-brand b { font: 900 15px/1 Lato, Arial, sans-serif; letter-spacing: .06em; color: #fff; margin-right: 2px; }
.st-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.07); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab { display: flex; align-items: center; gap: 10px; flex: none; padding: 9px 16px; border-radius: 10px; color: rgba(255,255,255,.74); text-decoration: none; transition: background .18s, color .18s, transform .16s var(--spring); }
.st-tab b { font: 900 16px/1 Lato, Arial, sans-serif; letter-spacing: .04em; }
.st-tab span { font: 500 13.5px/1.2 var(--f-body); }
.st-tab:hover { background: rgba(255,255,255,.1); color: #fff; }
.st-tab:active { transform: scale(.97); }
.st-tab:focus-visible { outline: 2px solid #5fb0ec; outline-offset: 2px; }
.st-tab.on { background: #fff; color: var(--nci-navy, #022b55); box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.st-tab.on b { color: var(--nci-river, #0069b4); }
.st-chip { white-space: nowrap; font: 700 10.5px/1 var(--f-body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.st-chip.live { background: rgba(46,200,110,.16); color: #13863f; }
.st-chip.soon { background: rgba(251,185,0,.18); color: #fbb900; }
.st-tab.on .st-chip.soon { background: #fff4d1; color: #8a6200; }
@media (min-width: 1481px) { .studio { padding-left: max(24px, calc(50vw - 780px)); padding-right: max(24px, calc(50vw - 780px)); } }
@media (max-width: 980px) { .st-tab span { display: none; } }
@media (max-width: 640px) { .st-chip { padding: 5px 7px; font-size: 9.5px; letter-spacing: .06em; } .studio { gap: 10px; padding: 8px 12px; } .st-brand { display: none; } .st-tabs { flex: 1; } .st-tab { flex: 1; justify-content: center; padding: 10px 12px; } }
@media (prefers-reduced-motion: reduce) { .st-tab { transition: none; } }

/* 4 Dec 2026 (v2): tabs and header pinned together, so the module in view is always named */
.topstack { position: sticky; top: 0; z-index: 40; }
.topstack .bar { position: relative; top: auto; }
.topstack .studio { padding-top: 7px; padding-bottom: 7px; }
.topstack .st-tab { padding-top: 7px; padding-bottom: 7px; }
html { scroll-padding-top: 160px; }
@media (max-width: 640px) { html { scroll-padding-top: 140px; } }
