/* =====================================================================
   PACE — student life, in step
   Index's ten hubs in Tally's clothes: a charcoal sidebar, Bodoni Moda
   capitals (set thick) with one word highlighted like selected text,
   Inter for everything you read, Mrs Saint Delafield for the script.
   Charcoal, white and sky blue; greige folder cards; desktop windows with
   traffic lights; polaroids held by paperclips.
   Four palettes: Pace, Sky, Noir (dark) and Ivory.
   ===================================================================== */
:root {
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif; --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inter", ui-sans-serif, system-ui, sans-serif; --hand: "Mrs Saint Delafield", "Segoe Script", "Snell Roundhand", cursive;
  --r: 18px; --r-sm: 12px; --side: 272px;
  --shadow-1: 0 1px 2px rgb(20 18 16 / .06), 0 4px 14px -6px rgb(20 18 16 / .12);
  --shadow-2: 0 2px 4px rgb(20 18 16 / .06), 0 18px 40px -18px rgb(20 18 16 / .35);
  --b: 1px solid var(--hair); --b2: 1px solid var(--line2); --sh: var(--shadow-1); --sh-sm: 0 1px 2px rgb(20 18 16 / .08);
  --tl-r: #FF5F57; --tl-y: #FEBC2E; --tl-g: #28C840; --imsg: #2F8FEA;
}
:root, [data-theme="pace"] {
  --bg: #F4F3F0; --paper: #FFFFFF; --paper2: #F3F1EE; --paper3: #E4E1DC; --greige: #E4E1DC;
  --ink: #1D1C1B; --ink2: #5F5B56; --ink3: #9A948D; --line: #1D1C1B; --line2: #D6D2CC; --shadow: rgb(20 18 16 / .14); --hair: #E3E0DB;
  --char: #211F1E; --on-char: #F6F4F1; --on: #1D1C1B; --sky-ink: #1D64A3;
  --side-bg: #211F1E; --side-ink: #F6F4F1; --side-ink2: #AFA9A2; --side-hover: rgb(255 255 255 / .07); --side-line: rgb(255 255 255 / .14); --side-field: rgb(255 255 255 / .08); --side-cur: #A7D3F5; --side-cur-ink: #1D1C1B;
  --pink: #EBA196; --pink-s: #FBE9E6; --lime: #BCD9A9; --lime-s: #EBF4E4; --violet: #2A2826; --violet-s: #EFEDE9;
  --butter: #EBD9A6; --butter-s: #F8F0DA; --sky: #A7D3F5; --sky-s: #E6F2FC; --orange: #E9B994; --orange-s: #F9EBDF;
  --mint: #A9D3CA; --mint-s: #E4F2EF; --lilac: #DCD8D2; --lilac-s: #EFEDE9; --white: #FFFFFF; --white-s: #F6F4F1; --red: #B6463A; --good: #1D64A3;
  color-scheme: light;
}
[data-theme="sky"] {
  --bg: #E7F1FA; --paper: #FFFFFF; --paper2: #F1F6FB; --paper3: #D6E6F4; --greige: #D6E6F4;
  --ink: #18222C; --ink2: #4F5E6B; --ink3: #8796A3; --line: #18222C; --line2: #C9D8E5; --hair: #D5E2EE; --char: #18222C; --on-char: #F3F8FC; --on: #18222C; --sky-ink: #175C98;
  --side-bg: #FFFFFF; --side-ink: #18222C; --side-ink2: #5B6B79; --side-hover: #EEF5FB; --side-line: #D5E2EE; --side-field: #F1F6FB; --side-cur: #18222C; --side-cur-ink: #FFFFFF;
  --pink: #EBA196; --pink-s: #FBE9E6; --lime: #B5D6B0; --lime-s: #E8F3E6; --violet: #18222C; --violet-s: #EAF1F7; --sky: #8CC4F0; --sky-s: #DDEEFB; --lilac: #C9D8E5; --lilac-s: #EAF1F7; --white-s: #F1F6FB;
}
[data-theme="ivory"] {
  --bg: #FBFAF7; --paper: #FFFFFF; --paper2: #F6F4F0; --paper3: #EEEBE6; --greige: #EEEBE6;
  --ink: #262422; --ink2: #625D57; --ink3: #857F78; --line: #3A3734; --line2: #E1DDD7; --hair: #E8E5E0; --char: #2B2927; --on-char: #FAF8F5; --on: #262422; --sky-ink: #2F6690;
  --side-bg: #FFFFFF; --side-ink: #262422; --side-ink2: #6A655F; --side-hover: #F6F4F0; --side-line: #E8E5E0; --side-field: #F6F4F0; --side-cur: #262422; --side-cur-ink: #FFFFFF;
  --pink: #E8BDB6; --pink-s: #F7EBE9; --lime: #D2E4C6; --lime-s: #F0F6EC; --violet: #3A3734; --violet-s: #F2F0ED; --butter: #E8DDBE; --butter-s: #F5F0E2;
  --sky: #C6E1F5; --sky-s: #EEF5FB; --orange: #EBCDB6; --orange-s: #F8EEE6; --mint: #CFE0D4; --mint-s: #EEF5F0; --lilac: #E1DDD7; --lilac-s: #F2F0ED;
}
[data-theme="noir"] {
  --bg: #161514; --paper: #211F1E; --paper2: #2A2826; --paper3: #34312E; --greige: #34312E;
  --ink: #F4F2EE; --ink2: #BDB7B0; --ink3: #8C8680; --line: #8C8680; --line2: #3E3A36; --shadow: rgb(0 0 0 / .5); --hair: #36332F; --char: #0E0D0C; --on-char: #F4F2EE; --on: #161514; --sky-ink: #A7D3F5;
  --side-bg: #0E0D0C; --side-ink: #F4F2EE; --side-ink2: #A9A39C; --side-hover: rgb(255 255 255 / .07); --side-line: rgb(255 255 255 / .12); --side-field: rgb(255 255 255 / .07); --side-cur: #A7D3F5; --side-cur-ink: #161514;
  --pink-s: #45231E; --lime-s: #26331F; --violet: #E2DFDA; --violet-s: #2E2B29; --butter-s: #40371F; --sky-s: #1F3344; --orange-s: #43301F; --mint-s: #1F3326; --lilac: #CFC9C2; --lilac-s: #2E2B29; --white: #2A2826; --white-s: #262422; --red: #F2A79B; --good: #A7D3F5;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 6px 18px -8px rgb(0 0 0 / .6);
  color-scheme: dark;
}
html { font-size: 16px; } html[data-text="0"] { font-size: 14.5px; } html[data-text="2"] { font-size: 17.5px; } html[data-text="3"] { font-size: 19px; }
/* Any element can take a colour: c-pink, c-lime… sets --c (fill), --cs (soft) and --ct (text on it). */
.c-pink { --c: var(--pink); --cs: var(--pink-s); --ct: #1D1C1B; } .c-lime { --c: var(--lime); --cs: var(--lime-s); --ct: #1D1C1B; } .c-violet { --c: var(--violet); --cs: var(--violet-s); --ct: var(--bg); }
.c-butter { --c: var(--butter); --cs: var(--butter-s); --ct: #1D1C1B; } .c-sky { --c: var(--sky); --cs: var(--sky-s); --ct: #1D1C1B; } .c-orange { --c: var(--orange); --cs: var(--orange-s); --ct: #1D1C1B; }
.c-mint { --c: var(--mint); --cs: var(--mint-s); --ct: #1D1C1B; } .c-lilac { --c: var(--lilac); --cs: var(--lilac-s); --ct: #1D1C1B; } .c-white { --c: var(--white); --cs: var(--white-s); --ct: var(--ink); }


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 .94rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: 1.3rem; line-height: 1.05; } h3 { font: 650 .98rem/1.25 var(--sans); }
h1 em, h2 em { font-style: normal; background: color-mix(in oklab, var(--sky) 70%, transparent); color: var(--ink); padding: 0 .08em; }
p { margin: .5rem 0; } a { color: inherit; text-underline-offset: 3px; } img { max-width: 100%; display: block; } small { font-size: .8rem; }
.num { font-variant-numeric: tabular-nums; } .small { font-size: .85rem; } .muted { color: var(--ink2); } .grow { flex: 1; } .right { margin-left: auto; } .center { justify-content: center; }
.pos { color: var(--good); font-weight: 650; } .neg { color: var(--red); font-weight: 700; } .late { color: var(--red); font-weight: 600; }
[data-theme="noir"] .pos { color: var(--mint); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--sky); color: #1D1C1B; }
:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: currentColor; }
.boot { min-height: 100vh; display: grid; place-items: center; font: 800 4rem var(--display); }
.error-text { color: var(--red); font-weight: 700; }
.kick { display: block; font: 600 .68rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.hl-pink { background: var(--pink); color: #111; padding: 0 .3em; border-radius: 4px; }
kbd { font: 600 .72rem var(--sans); padding: .12rem .4rem; border-radius: 6px; background: var(--paper); border: 1px solid var(--line2); box-shadow: 0 2px 0 var(--shadow); }
.amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.calm *, .calm *::before, .calm *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
.empty-note { padding: 1.2rem; border: 1.5px dashed var(--line2); border-radius: var(--r); text-align: center; color: var(--ink2); display: grid; gap: .6rem; justify-items: center; background: var(--paper); }
.empty-note p { margin: 0; font-weight: 600; }

/* ---------- Controls ---------- */
.btn { --bb: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); background: var(--bb); color: var(--ink); font: 600 .85rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; user-select: none; }
.btn[class*="c-"] { --bb: var(--c); color: var(--ct); border-color: transparent; } .btn.c-white { color: var(--ink); border-color: color-mix(in oklab, var(--ink) 22%, transparent); }
.btn:hover { border-color: var(--ink2); }
.btn:active { transform: translateY(1px); }
.btn.solid { --bb: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { --bb: color-mix(in oklab, var(--ink) 86%, var(--sky)); }
.btn.ghost { --bb: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--paper2); border-color: var(--line); }
.btn.danger { color: var(--red) !important; }
.btn.sm { padding: .38rem .8rem; font-size: .79rem; }
.btn.lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn.block { width: 100%; padding: .8rem 1rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; cursor: pointer; color: var(--ink2); flex: none; border: 1.5px solid transparent; }
.icon-btn:hover { background: var(--paper2); color: var(--ink); border-color: var(--hair); }
.icon-btn .ic { width: 18px; height: 18px; } .icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; } .icon-btn.sm .ic { width: 14px; height: 14px; }
.icon-btn:focus-visible { outline: 2px solid var(--sky-ink); }
.u-link { all: unset; cursor: pointer; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.u-link:hover { color: var(--sky-ink); } .u-link:focus-visible { outline: 2px solid var(--sky-ink); }
.link-plain { all: unset; cursor: pointer; } .link-plain:hover b, .link-plain:hover { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; } .link-plain:focus-visible { outline: 2px solid var(--sky-ink); }
.link { all: unset; cursor: pointer; color: var(--sky-ink); font-weight: 600; text-decoration: underline; }
.input { width: 100%; padding: .6rem .8rem; border: var(--b); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 .94rem/1.3 var(--sans); }
.input::placeholder { color: var(--ink3); }
.input { border-color: var(--line2); }
.input:focus { outline: none; border-color: var(--sky-ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sky) 45%, transparent); }
.input.sm { padding: .35rem .55rem; font-size: .85rem; width: auto; border-width: 1.5px; border-radius: 8px; }
.input.big-in { font: 700 2.2rem var(--display); padding: .3rem .7rem; }
select.input, select.ms, .tb-tools select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23111' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 12px; }
[data-theme="noir"] select.input, [data-theme="noir"] select.ms { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23F4F1EA' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
textarea.input { resize: vertical; }
.field { display: flex; flex-direction: column; gap: .3rem; font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .14em; min-width: 0; }
.field > span:first-child { color: var(--ink2); }
.field .input { font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid .wide, .form-grid .switch.wide { grid-column: 1 / -1; }
.inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .stack { display: flex; flex-direction: column; gap: .8rem; } .section-sm { margin-top: .8rem; }
.switch { display: flex; gap: .7rem; align-items: center; cursor: pointer; font-weight: 600; }
.switch input, input.tog { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--paper3); position: relative; cursor: pointer; margin: 0; border: var(--b); }
.switch input::after, input.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line2); transition: transform .15s; }
.switch input:checked, input.tog:checked { background: var(--sky); } .switch input:checked::after, input.tog:checked::after { transform: translateX(20px); }
.segs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper2); border: 1px solid var(--hair); }
.segs button { all: unset; cursor: pointer; padding: .36rem .8rem; border-radius: 999px; font: 600 .78rem var(--sans); color: var(--ink2); }
.segs button:hover { color: var(--ink); background: var(--paper2); }
.segs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.segs button:focus-visible { outline: 2px solid var(--sky-ink); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 99px; border: 1px solid var(--line2); background: var(--paper); color: var(--ink); font: 600 .78rem var(--sans); }
.chip[class*="c-"] { background: var(--cs); color: var(--ink); border-color: transparent; } .chip.c-white { background: var(--paper); border-color: var(--line2); }
.chip.on, .chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input { display: none; } .chip .ic { width: 13px; height: 13px; }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .16rem .55rem; border-radius: 999px; font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; background: var(--paper2); color: var(--ink2); white-space: nowrap; border: 1px solid var(--hair); }
.tag.doing { background: var(--butter-s); color: var(--ink); border-color: transparent; }
.pill { display: inline-flex; align-items: center; padding: .32rem .85rem; border-radius: 99px; background: var(--paper2); border: 1px solid var(--hair); font: 600 .82rem var(--sans); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; } .filters p { margin: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.meter { display: block; height: 7px; border-radius: 99px; background: var(--paper3); overflow: hidden; margin: .45rem 0; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--mc, var(--sky)); transition: width .4s; }
.meter i[style="width:0.0%"] { border: 0; }
.m-violet { --mc: var(--ink); } .m-lime { --mc: #6FB2EA; } .m-pink { --mc: var(--pink); } .m-butter { --mc: var(--butter); } .m-sky { --mc: var(--sky); }
.stars { display: inline-flex; gap: 1px; color: var(--paper3); } .stars .ic { width: 13px; height: 13px; } .stars i.on { color: #F5A524; }
.scale, .rating { display: flex; gap: .35rem; flex-wrap: wrap; }
.rate { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 9px; border: var(--b); cursor: pointer; font-weight: 700; }
.rate input { position: absolute; opacity: 0; } .rate:has(input:checked) { background: var(--ink); color: var(--paper); }
.when { display: flex; gap: .4rem; }
.cb, .td-cb, .req-cb { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink2); color: transparent; background: var(--paper); }
.cb .ic, .td-cb .ic, .req-cb .ic { width: 13px; height: 13px; }

/* ---------- Pieces ---------- */
.card { position: relative; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); padding: 1.15rem 1.25rem 1.25rem; box-shadow: var(--shadow-1); min-width: 0; }
.card.flat { padding: .3rem .6rem; }
.card.has-strip { padding-top: 1.35rem; }
.card.has-strip::before { content: ""; position: absolute; left: 1.25rem; top: 0; width: 38px; height: 4px; background: var(--c); border-radius: 0 0 4px 4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.card-head h2 { font-size: 1.2rem; } .card-head h2 small { font: 500 .8rem var(--sans); text-transform: none; letter-spacing: 0; }
.sub-h { font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink2); margin: 1rem 0 .4rem; }
.sec-h { font-size: 1.3rem; }
.win { position: relative; background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow-1); overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: .8rem; padding: .55rem .8rem; background: var(--paper2); border-bottom: 1px solid var(--hair); color: var(--ink2); }
.win-bar b { font: 600 .82rem var(--sans); flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-dots { display: flex; gap: 7px; width: 50px; } .win-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--tl-r); } .win-dots i:nth-child(2) { background: var(--tl-y); } .win-dots i:nth-child(3) { background: var(--tl-g); }
.win-x { visibility: hidden; width: 50px; }
.win-body { padding: 1rem 1.1rem 1.1rem; }
.sticker { position: absolute; z-index: 4; top: -12px; right: 14px; padding: .35rem .7rem; border-radius: 8px; border: var(--b); font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .12em; transform: rotate(var(--rot)); box-shadow: var(--sh-sm); background: var(--c); color: var(--ct, #1D1C1B); }
.spark4 { width: 26px; height: 26px; fill: var(--violet); }
.pdrop { position: relative; display: grid; place-content: center; justify-items: center; gap: .25rem; text-align: center; padding: .9rem; min-height: 110px; border: 1.5px dashed var(--line2); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; }
.pdrop:hover, .pdrop.drag { background: var(--sky-s); border-color: var(--sky-ink); }
.pdrop b { font-size: .82rem; } .pdrop small { color: var(--ink2); }
.pd-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--butter); border: var(--b); color: #111; } .pd-ic .ic { width: 18px; height: 18px; }
.pdrop.mini { min-height: 0; padding: .4rem .7rem; grid-auto-flow: column; justify-content: start; gap: .5rem; border-width: 1.5px; } .pdrop.mini .pd-ic { width: 26px; height: 26px; border-width: 1.5px; } .pdrop.mini b { font-size: .76rem; }
.pdrop:focus-within { outline: 2px solid var(--sky-ink); }
.polaroid { position: relative; margin: 0; padding: 8px 8px 0; background: #fff; border: 1px solid var(--line2); box-shadow: var(--shadow-1); transform: rotate(var(--tilt, -2deg)); color: #111; }
.pol-img { aspect-ratio: 1; overflow: hidden; background: #EEE; display: grid; } .pol-img img { width: 100%; height: 100%; object-fit: cover; }
.pol-open { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--c); color: var(--ct, #1D1C1B); background-image: radial-gradient(rgb(0 0 0 / .12) 1.2px, transparent 1.6px); background-size: 12px 12px; }
.cover-ph b { font: 800 1.5rem var(--display); background: #fff; border: var(--b); border-radius: 8px; padding: .1rem .5rem; box-shadow: var(--sh-sm); max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-pill { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 8px; border: 1px solid var(--line2); background: var(--orange-s); font: 600 .72rem var(--sans); }
.pdf-pill.sm { padding: .12rem .45rem; font-size: .66rem; } .pdf-pill:hover { background: var(--orange); color: #111; }
.faces { display: flex; gap: .3rem; flex-wrap: wrap; }
.face { all: unset; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid transparent; color: var(--ink3); }
.face .ic { width: 26px; height: 26px; } .face:hover { border-color: var(--line); color: var(--ink); }
.face[aria-pressed="true"] { background: var(--lime); color: #111; border-color: #111; box-shadow: var(--sh-sm); }
.face:focus-visible { outline: 2px solid var(--sky-ink); }
.note-band { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; border-radius: 12px; border: var(--b); background: var(--c, var(--butter)); color: var(--ct, #1D1C1B); box-shadow: var(--sh-sm); }
.note-band span { display: grid; } .note-band small { opacity: .8; }
.warn { display: flex; gap: .35rem; align-items: center; color: var(--red); font-weight: 600; font-size: .8rem; margin: .2rem 0; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--hair); }
.rows li:last-child { border-bottom: 0; }
.r-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--violet-s); color: var(--ink); border: 1px solid var(--line2); } .r-ic .ic { width: 16px; height: 16px; }
.r-ic.in { background: var(--lime); color: #111; } .r-ic.out { background: var(--pink-s); }
.r-t { flex: 1; min-width: 0; display: grid; } .r-t b { font-weight: 700; } .r-t small { color: var(--ink2); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font: 600 .66rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); padding: .55rem .6rem; border-bottom: var(--b); white-space: nowrap; }
.tbl td { padding: .5rem .6rem; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.tbl tfoot td { border-top: var(--b); border-bottom: 0; font-weight: 700; } .tbl .r { text-align: right; }
.kb-course, .tag-code { display: inline-flex; align-items: center; padding: .1rem .45rem; border-radius: 6px; border: 1px solid var(--line2); background: var(--c, var(--violet)); color: var(--ct, #111); font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.kb-course.c-violet, .tag-code.c-violet { color: var(--ct); }
.receipt { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 12px; }
.receipt::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--line) 0) 0 0 / 16px 12px repeat-x; }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; z-index: 1; background: linear-gradient(-45deg, transparent 7px, var(--paper) 0) 0 0 / 16px 10px repeat-x, linear-gradient(45deg, transparent 7px, var(--paper) 0) 0 0 / 16px 10px repeat-x; }
.receipt.has-strip::before { all: unset; }

/* ---------- Shell: the charcoal sidebar ---------- */
#root { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--side-bg); color: var(--side-ink); border-right: 1px solid var(--side-line); display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem .8rem 1rem; overflow-y: auto; z-index: 30; scrollbar-width: thin; scrollbar-color: var(--side-line) transparent; }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand b { display: block; font: 900 1.85rem/.9 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.brand small { display: block; font: 400 1.3rem/1 var(--hand); color: var(--side-ink2); margin-top: .15rem; white-space: nowrap; }
.side .brand { padding: 0 .3rem .3rem; }
.quicklog { margin: .2rem 0 .1rem; padding: .55rem .6rem .6rem; border-radius: 14px; background: var(--side-field); border: 1px solid var(--side-line); }
.ql-k { display: block; font: 600 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--side-ink2); margin: 0 0 .4rem .1rem; }
.ql-row { display: flex; gap: .3rem; align-items: center; }
.quicklog .input { flex: 1; min-width: 0; padding: .5rem .65rem; background: transparent; border: 1px solid var(--side-line); color: var(--side-ink); border-radius: 10px; font-size: .9rem; box-shadow: none; }
.quicklog .input::placeholder { color: var(--side-ink2); }
.quicklog .icon-btn { width: 34px; height: 34px; border-radius: 10px; background: var(--side-cur); color: var(--side-cur-ink); }
.quicklog .icon-btn:hover { background: var(--side-cur); filter: brightness(1.05); border-color: transparent; color: var(--side-cur-ink); }
.side-nav, .side-foot { display: flex; flex-direction: column; gap: 1px; }
.side-hub { display: block; font: 600 .6rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--side-ink2); padding: .95rem .7rem .35rem; }
.side-foot { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--side-line); }
.side-group { display: flex; flex-direction: column; }
.side-link { display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-weight: 500; font-size: .9rem; }
.side-link .ic { width: 18px; height: 18px; color: var(--side-ink2); }
.side-link:hover { background: var(--side-hover); }
.side-group.open > .side-link:not([aria-current]) { background: var(--side-hover); }
.side-link[aria-current="page"] { background: var(--side-cur); color: var(--side-cur-ink); font-weight: 600; }
.side-link[aria-current="page"] .ic { color: var(--side-cur-ink); }
.side-caret { margin-left: auto; display: grid; } .side-caret .ic { width: 13px; height: 13px; }
.side-subs { display: flex; flex-direction: column; gap: 1px; margin: .15rem 0 .35rem 1.45rem; padding-left: .55rem; border-left: 1px solid var(--side-line); }
.side-sub { display: flex; align-items: center; gap: .4rem; padding: .34rem .6rem; border-radius: 8px; color: var(--side-ink2); text-decoration: none; font-size: .85rem; }
.side-sub:hover { background: var(--side-hover); color: var(--side-ink); }
.side-sub[aria-current="page"] { background: var(--side-cur); color: var(--side-cur-ink); font-weight: 600; }
.side-sub[aria-current="page"]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.side a:focus-visible, .side button:focus-visible, .side input:focus-visible { outline: 2px solid var(--side-cur); outline-offset: 1px; }
.main-col { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.top, .tabbar, .scrim { display: none; }
.demo-band { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; background: var(--char); color: var(--on-char); text-align: center; font-size: .82rem; padding: .45rem 1rem; }
.demo-band a, .demo-band .demo-cta { color: var(--sky); font-weight: 700; }
/* The term bar: the semester, today, the focus timer, search and capture */
.termbar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; padding: .55rem clamp(1rem, 3vw, 2.6rem); background: var(--paper); border-bottom: 1px solid var(--hair); font-size: .84rem; position: sticky; top: 0; z-index: 15; }
.pb-k { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: var(--paper2); border: 1px solid var(--hair); } .pb-k .ic { color: var(--sky-ink); }
.pb-day { color: var(--ink2); font-weight: 500; }
.tb-timer { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--hair); background: var(--paper2); color: var(--ink); text-decoration: none; font: 600 .82rem var(--sans); font-variant-numeric: tabular-nums; }
.tb-timer.on { background: var(--sky); color: #1D1C1B; border-color: transparent; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--sky) 40%, transparent); } }
.search { position: relative; display: flex; align-items: center; gap: .4rem; padding: 0 .8rem; height: 36px; border-radius: 999px; background: var(--paper2); border: 1px solid var(--hair); width: 220px; color: var(--ink3); }
.search:focus-within { border-color: var(--ink2); background: var(--paper); }
.search input { all: unset; flex: 1; min-width: 0; color: var(--ink); font-size: .86rem; }
.search-res { position: absolute; top: calc(100% + 8px); right: 0; width: min(380px, 90vw); display: none; padding: .4rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--shadow-2); z-index: 70; }
.search-res.on { display: grid; gap: 2px; }
.search-res button { all: unset; cursor: pointer; display: flex; gap: .5rem; align-items: center; padding: .45rem .55rem; border-radius: 9px; color: var(--ink); }
.search-res button:hover, .search-res button:focus-visible { background: var(--sky-s); }
.hub { width: 100%; max-width: 1400px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2.6rem) 4rem; display: flex; flex-direction: column; }
.hub > * { min-width: 0; }
.mark { display: block; }

/* ---------- Hub header (thick Bodoni capitals) and the folder links ---------- */
.hub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin: .2rem 0 1.6rem; }
.hh-kick { display: block; font: 400 2.3rem/1 var(--hand); color: var(--ink2); margin: 0 0 -.5rem .1rem; position: relative; z-index: 1; }
.hh-title { font: 900 clamp(2.3rem, 5.4vw, 4.4rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.hh-title em { position: relative; display: inline-block; font-style: normal; background: color-mix(in oklab, var(--sky) 75%, transparent); color: var(--ink); padding: 0 .08em; margin: 0 .03em; }
.hh-title em::before, .hh-title em::after { content: ""; position: absolute; width: 2px; background: var(--sky-ink); top: -.06em; bottom: -.06em; }
.hh-title em::before { left: -1px; } .hh-title em::after { right: -1px; }
.hh-lede { color: var(--ink2); max-width: 62ch; font-size: .98rem; margin: .8rem 0 0; }
.hh-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.subnav { order: -1; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.3rem; }
.subnav a { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .85rem .42rem .6rem; border-radius: 10px; background: var(--paper); border: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 500; }
.subnav a .ic { width: 20px; height: 20px; color: var(--sky); filter: drop-shadow(0 1px 0 rgb(0 0 0 / .08)); }
.subnav a:hover { border-color: var(--ink2); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.subnav a[aria-current="page"] .ic { color: var(--sky); }
.tab-body { display: grid; gap: 1.3rem; }
.tab-body > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.55fr 1fr; } .two-col.wide-right { grid-template-columns: 1fr 1.55fr; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: start; }

/* ---------- Student HQ: the board ---------- */
.hq-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; margin-bottom: 1.4rem; align-items: stretch; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.metric { display: flex; flex-direction: column; justify-content: center; gap: .1rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.metric:hover { border-color: var(--ink2); }
.metric .kick { font: 600 .62rem var(--sans); letter-spacing: .16em; }
.metric b { font: 650 2.3rem/1.05 var(--sans); letter-spacing: -.02em; } .metric small { color: var(--ink2); font-size: .78rem; }
.metric.hl { background: var(--sky); border-color: transparent; color: #1D1C1B; } .metric.hl .kick, .metric.hl small { color: #1D1C1B; opacity: .8; }
.hq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 1.2rem; align-items: start; margin-top: 1.5rem; }
.nudges { display: grid; gap: .7rem; justify-items: end; }
.ios-rem { justify-self: stretch; display: grid; text-align: center; border-radius: 16px; background: color-mix(in oklab, var(--paper) 92%, transparent); border: 1px solid var(--hair); box-shadow: var(--shadow-2); overflow: hidden; }
.ios-rem > b { padding: .9rem 1rem .1rem; font-size: 1rem; } .ios-rem > span { padding: 0 1rem .9rem; font-size: .86rem; }
.ios-acts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair); }
.ios-acts button { all: unset; cursor: pointer; padding: .7rem; color: var(--imsg); font-weight: 600; font-size: .92rem; } .ios-acts button + button { border-left: 1px solid var(--hair); }
.ios-acts button:hover { background: var(--paper2); } .ios-acts button:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: -2px; }
.bubble { position: relative; display: grid; justify-items: end; max-width: 92%; text-decoration: none; }
.bubble span { padding: .6rem .9rem; border-radius: 18px 18px 4px 18px; background: var(--imsg); color: #fff; font-size: .88rem; line-height: 1.35; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.bubble small { color: var(--ink2); font-size: .7rem; margin: .2rem .3rem 0; } .bubble:hover span { filter: brightness(1.06); }
.board-wrap { display: grid; gap: .7rem; }
.board-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.bb-add { display: flex; flex-wrap: wrap; gap: .45rem; }
.bb-add label.btn { position: relative; }
.board-scroll { overflow-x: auto; border-radius: 18px; }
.board-wrap { margin-bottom: .2rem; }
.board { position: relative; aspect-ratio: 16 / 11; min-height: 520px; min-width: 980px; border-radius: 18px; overflow: hidden; border: var(--b); box-shadow: var(--sh), inset 0 0 0 12px var(--frame, #B98552), inset 0 0 0 14px #111, inset 0 6px 30px 14px rgb(0 0 0 / .25); }
.b-cork { --frame: #C08A54; background-color: #C99863;
  background-image: radial-gradient(circle at 20% 30%, rgb(255 255 255 / .12) 0 1.5px, transparent 2px), radial-gradient(circle at 70% 60%, rgb(90 55 25 / .35) 0 1.4px, transparent 2px), radial-gradient(circle at 40% 80%, rgb(255 230 190 / .25) 0 1px, transparent 1.6px), radial-gradient(circle at 85% 15%, rgb(80 45 15 / .3) 0 2px, transparent 2.6px), radial-gradient(circle at 10% 70%, rgb(120 75 35 / .35) 0 1.2px, transparent 1.8px);
  background-size: 9px 11px, 13px 7px, 7px 9px, 17px 19px, 11px 13px; }
.b-white { --frame: #C9CED6; background: linear-gradient(115deg, #FFFFFF, #F3F5F8 40%, #FFFFFF 60%, #F0F2F6); }
.b-white::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 20%, rgb(99 179 255 / .08), transparent 40%), radial-gradient(ellipse at 75% 75%, rgb(255 143 177 / .07), transparent 45%); pointer-events: none; }
.b-wire { --frame: #2B2B33; background-color: #ECE7DD; background-image: linear-gradient(#2B2B33 2px, transparent 2px), linear-gradient(90deg, #2B2B33 2px, transparent 2px); background-size: 56px 56px; background-position: 14px 14px; }
[data-theme="noir"] .b-white { background: linear-gradient(115deg, #2A2A33, #24242C); } [data-theme="noir"] .b-wire { background-color: #24242C; background-image: linear-gradient(#55556A 2px, transparent 2px), linear-gradient(90deg, #55556A 2px, transparent 2px); }
.board-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 2rem; text-align: center; font: 600 1.05rem var(--sans); color: #111; }
.board-empty::before { content: none; }
.b-cork .board-empty { color: #3A2510; }
.board-help { display: flex; gap: .4rem; align-items: center; margin: 0; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); }
.pc { position: absolute; transform: rotate(var(--rot)); touch-action: none; cursor: grab; transition: box-shadow .15s; outline: none; }
.pc.lifting { cursor: grabbing; transform: rotate(var(--rot)) scale(1.03); filter: drop-shadow(0 18px 18px rgb(0 0 0 / .3)); }
.pc:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 4px; }
.pc-note { min-height: 15%; padding: 1.6rem .9rem .9rem; background: var(--c); color: var(--ct, #1D1C1B); box-shadow: 2px 8px 14px rgb(0 0 0 / .28); border-radius: 2px 2px 14px 2px; }
.pc-note.c-white { background: #FFFEF8; }
.pc-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10%; height: 12%; background: linear-gradient(135deg, rgb(0 0 0 / .18) 50%, transparent 50%); }
.pn-text { all: unset; box-sizing: border-box; display: block; width: 100%; height: 100%; min-height: 4.5em; font: 600 clamp(.78rem, 1.15vw, 1rem)/1.4 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; resize: none; }
.pn-text::placeholder { color: rgb(0 0 0 / .45); }
.tape-grip { position: absolute; top: -10px; left: 50%; width: 46%; min-width: 60px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgb(255 255 255 / .55); border: 1px solid rgb(0 0 0 / .08); backdrop-filter: blur(1px); cursor: grab; }
.pc-photo .tape-grip { background: rgb(255 216 77 / .7); }
.pc-todo { min-height: 18%; padding: 1.4rem .9rem .8rem; background: #FFFEF8; color: #111; border: 1px solid var(--line2); border-radius: 4px; box-shadow: var(--shadow-1); background-image: repeating-linear-gradient(transparent 0 calc(1.9rem - 1px), #D9E4F5 calc(1.9rem - 1px) 1.9rem); background-position: 0 2.6rem; }
.pc-todo.c-pink, .pc-todo.c-lime, .pc-todo.c-butter, .pc-todo.c-sky, .pc-todo.c-lilac, .pc-todo.c-orange { background-color: color-mix(in srgb, var(--c) 30%, #FFFEF8); }
.pin-grip, .pushpin { position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FF9DB9, #E5484D 60%, #9B1C2A); border: 1px solid var(--line2); box-shadow: 0 3px 3px rgb(0 0 0 / .35); cursor: grab; z-index: 2; }
.td-title { all: unset; display: block; width: 100%; font: 800 1.05rem var(--display); margin-bottom: .25rem; cursor: text; }
.td-list { list-style: none; margin: 0; padding: 0; }
.td-list li { display: flex; align-items: center; gap: .5rem; min-height: 1.9rem; font-size: clamp(.76rem, 1vw, .9rem); font-weight: 500; }
.td-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.td-cb { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line2); color: transparent; background: #fff; }
.td-cb[aria-pressed="true"] { background: var(--lime); color: #111; } .td-list li.done span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .55; }
.td-x { all: unset; cursor: pointer; opacity: 0; color: #111; display: grid; } .td-x .ic { width: 12px; height: 12px; } .td-list li:hover .td-x, .td-x:focus-visible { opacity: .7; }
.td-new { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .3rem 0; font: 500 .82rem var(--sans); color: #111; cursor: text; } .td-new::placeholder { color: rgb(0 0 0 / .4); }
.pc-photo { padding: 7px 7px 0; background: #fff; border: 1px solid var(--line2); box-shadow: var(--shadow-1); color: #111; }
.pc-photo .pol-img { aspect-ratio: 1; }
.pc-photo .pol-img img, .pp-img img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.pol-cap { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .45rem .2rem .55rem; text-align: center; font: 600 .78rem var(--sans); color: #111; cursor: text; }
.pc-pinned { box-shadow: 4px 8px 14px rgb(0 0 0 / .35); }
.pp-img { border: 1px solid var(--line2); background: #fff; } .pp-img img { width: 100%; height: auto; display: block; }
.pc-pinned .pdrop, .pc-photo .pdrop { min-height: 120px; border-radius: 0; }
.pc-tools { position: absolute; left: 50%; top: calc(100% - 2px); transform: translateX(-50%); width: max-content; max-width: 260px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line2); box-shadow: var(--shadow-1); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5; }
.pc-tools .icon-btn { width: 26px; height: 26px; }
.pc.tools-in .pc-tools { top: 18px; }
.pc-del { all: unset; box-sizing: border-box; position: absolute; top: -11px; right: -11px; z-index: 6; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #111; border: 1px solid var(--line2); box-shadow: var(--shadow-1); cursor: pointer; opacity: 0; transition: opacity .12s, background .12s; } .pc-del .ic { width: 13px; height: 13px; }
.pc:hover .pc-del, .pc:focus-within .pc-del, .pc:focus .pc-del, .pc-del:focus-visible { opacity: 1; } .pc-del:hover, .pc-del:focus-visible { background: var(--red); color: #fff; }
@media (hover: none) { .pc-del { opacity: .9; } }
.pc:hover .pc-tools, .pc:focus-within .pc-tools, .pc:focus .pc-tools { opacity: 1; pointer-events: auto; }
.pc-tools .icon-btn { color: #111; } .pc-tools .icon-btn.del:hover { background: var(--red); color: #fff; }
.sw { all: unset; cursor: pointer; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 1px solid var(--line2); } .sw.c-white { background: #fff; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #111; } .sw:focus-visible { outline: 2px solid var(--violet); }
.pc-size { position: absolute; right: -8px; bottom: -8px; width: 18px; height: 18px; border-radius: 5px; background: var(--violet); border: 1px solid var(--line2); cursor: nwse-resize; opacity: 0; z-index: 7; } .pc:hover .pc-size, .pc:focus-within .pc-size { opacity: 1; }
.semcover { position: relative; min-height: 250px; border-radius: 22px; overflow: hidden; background: var(--char); box-shadow: var(--shadow-1); }
.semcover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.semcover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / .65)); pointer-events: none; }
.sc-ph { position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, #FF8FB1 0 18%, transparent 19%), radial-gradient(circle at 80% 70%, #C8F169 0 22%, transparent 23%), radial-gradient(circle at 75% 20%, #FFD84D 0 10%, transparent 11%), #7B61FF; }
.sc-text { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: .9rem; color: #fff; display: grid; gap: .15rem; }
.sc-date { font: 400 2rem/1 var(--hand); color: rgb(255 255 255 / .9); text-transform: none; } .sc-hi { font: 900 clamp(1.6rem, 2.4vw, 2.1rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; } .sc-term { justify-self: start; margin-top: .45rem; padding: .25rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .16); backdrop-filter: blur(6px); font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.semcover .sticker { top: 12px; right: 12px; }
.sc-btn { position: absolute; z-index: 3; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .92); color: #1D1C1B; border: 0; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; cursor: pointer; box-shadow: var(--sh-sm); }
.sc-btn:focus-within { outline: 2px solid var(--sky-ink); }
.sc-edit { position: absolute; z-index: 3; top: 12px; left: 118px; background: rgb(255 255 255 / .92); color: #1D1C1B; border-radius: 999px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mst { display: grid; text-align: center; padding: .6rem .4rem; border: var(--b); border-radius: 12px; background: var(--c); color: var(--ct, #1D1C1B); text-decoration: none; box-shadow: var(--sh-sm); transition: transform .1s; }
.mst:hover { transform: translateY(-2px); } .mst b { font: 800 1.6rem/1 var(--display); } .mst span { font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.un-h { display: flex; align-items: center; gap: .4rem; font: 600 .62rem var(--sans); text-transform: uppercase; letter-spacing: .16em; margin: .2rem 0 .45rem; color: var(--ink2); }
.un-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.un-list li { display: flex; gap: .6rem; align-items: center; }
.un-t { flex: none; display: grid; justify-items: center; min-width: 66px; padding: .3rem .35rem; border-radius: 10px; background: var(--cs); color: var(--ink); font: 600 .6rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.un-t b { font: 650 .9rem var(--sans); letter-spacing: 0; }
.un-list li.u-today .un-t, .un-list li.u-late .un-t { background: var(--pink); }
.un-foot { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; border-top: 1px solid var(--hair); padding-top: .7rem; }
.un-foot .chip { text-decoration: none; }
.capture .cap-spark { display: none; }
.cap-form { display: flex; gap: .4rem; align-items: flex-end; } .cap-form textarea { flex: 1; resize: none; }
.cap-list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .3rem; }
.cap-list li { display: flex; align-items: center; gap: .4rem; padding: .35rem .3rem .35rem .7rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--paper2); font-size: .86rem; }
.cap-list li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cap-acts { display: flex; flex: none; } .cap-acts .icon-btn { color: var(--ink); }

/* ---------- Course Command ---------- */
.ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.ovs, .gpa-big, .mt, .gl { display: grid; gap: .1rem; padding: .8rem 1rem; border: var(--b); border-radius: 12px; background: var(--c); color: var(--ct, #1D1C1B); box-shadow: var(--sh-sm); text-decoration: none; }
.ovs b, .mt b, .gl b { font: 650 1.9rem/1 var(--sans); letter-spacing: -.02em; } .ovs span, .mt > span, .gl span { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .mt small { opacity: .75; }
.ovs.c-violet, .gpa-big.c-violet, .mt.c-violet, .gl.c-violet { color: var(--ct); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.2rem; }
.course { display: flex; flex-direction: column; background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh); overflow: hidden; }
.cr-cover { position: relative; aspect-ratio: 16 / 9; background: var(--c); border-bottom: var(--b); display: grid; }
.cr-cover img { width: 100%; height: 100%; object-fit: cover; }
.cr-cover .pdrop { border: 0; border-radius: 0; background: var(--c); background-image: radial-gradient(rgb(0 0 0 / .1) 1.2px, transparent 1.6px); background-size: 12px 12px; }
.cr-code { position: absolute; left: 10px; bottom: -14px; z-index: 2; padding: .2rem .6rem; border: var(--b); border-radius: 8px; background: var(--c); color: var(--ct, #111); font: 600 .78rem var(--sans); box-shadow: var(--sh-sm); }
.course.c-violet .cr-code { color: var(--ct); }
.cr-body { padding: 1.3rem 1rem 1rem; display: grid; gap: .3rem; }
.cr-body h3 { font: 800 1.2rem/1.1 var(--display); }
.cr-meta { margin: 0; font-size: .8rem; color: var(--ink2); }
.cr-grade { display: flex; gap: .7rem; align-items: center; margin-top: .4rem; }
.cr-letter { display: grid; place-items: center; width: 50px; height: 50px; border: var(--b); border-radius: 12px; background: var(--c); color: var(--ct, #111); font: 800 1.5rem var(--display); box-shadow: var(--sh-sm); flex: none; }
.course.c-violet .cr-letter { color: var(--ct); }
.cr-grade span:last-child { display: grid; } .cr-grade small { color: var(--ink2); }
.cr-facts { list-style: none; margin: .3rem 0 0; padding: .5rem 0 0; border-top: 1px solid var(--hair); display: grid; gap: .25rem; font-size: .8rem; }
.cr-facts li { display: block; } .cr-facts li > .ic { margin-right: .35rem; } .cr-facts .ic { color: var(--ink2); }
.course.new, .club.new { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; padding: 1.4rem; border: 1.5px dashed var(--line2); border-radius: 14px; background: var(--paper); min-height: 240px; }
.course.new:hover, .club.new:hover { background: var(--lime-s); } .course.new .ic { width: 28px; height: 28px; } .course.new b { font: 800 1.2rem var(--display); }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.dir-card { background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh); padding: 1rem; display: grid; gap: .7rem; border-top: 12px solid var(--c); }
.dir-card header { display: flex; align-items: center; gap: .5rem; } .dir-card h3 { flex: 1; font: 800 1.1rem var(--display); }
.dir-dl { margin: 0; display: grid; gap: .45rem; } .dir-dl div { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; } .dir-dl dt { display: flex; gap: .35rem; align-items: center; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); } .dir-dl dd { margin: 0; font-size: .88rem; }
.dir-files { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; border-top: 1px solid var(--hair); padding-top: .6rem; } .dir-files .kick { width: 100%; }
.gpa-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gpa-big b { font: 650 3rem/1 var(--sans); letter-spacing: -.02em; } .gpa-big small { opacity: .8; }
.gpa-tbl td .input.sm { width: 5rem; } .gpa-tbl select.input.sm { width: 7.5rem; }

/* ---------- Deadlines & Planners ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .9rem; overflow-x: auto; padding-bottom: .4rem; align-items: start; }
.kb-col { border: var(--b); border-radius: 14px; padding: .7rem; background: var(--paper); box-shadow: var(--sh-sm); min-height: 260px; display: flex; flex-direction: column; gap: .5rem; }
.kb-col header { display: flex; justify-content: space-between; align-items: center; padding: .1rem .2rem .4rem; border-bottom: var(--b); }
.kb-col h3 { font: 800 1.05rem var(--display); }
.kc-0 header { --hc: var(--paper3); } .kc-1 header { --hc: var(--butter); } .kc-2 header { --hc: var(--pink); } .kc-3 header { --hc: var(--lime); }
.kb-col header h3::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line2); background: var(--hc); margin-right: .4rem; vertical-align: -1px; }
.kb-n { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line2); font: 600 .72rem var(--sans); }
.kb-list { display: grid; gap: .55rem; }
.kb-card { position: relative; display: grid; gap: .3rem; padding: .65rem .7rem .4rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--paper); box-shadow: var(--sh-sm); cursor: grab; }
.kb-card.u-late { background: var(--pink-s); } .kb-card.u-today, .kb-card.u-soon { background: var(--butter-s); } .kb-card.u-done { background: var(--lime-s); }
.kb-card .grip { position: absolute; top: 6px; right: 6px; color: var(--ink3); } .kb-card .grip .ic { width: 14px; height: 14px; }
.kb-top { display: flex; gap: .3rem; align-items: center; } .kb-type { font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); }
.kb-t b { font-weight: 700; font-size: .9rem; }
.kb-meta { display: flex; justify-content: space-between; align-items: center; font: 600 .68rem var(--sans); } .kb-meta .due { display: flex; gap: .25rem; align-items: center; } .kb-card.u-late .due { color: var(--red); }
.wt { padding: .05rem .4rem; border-radius: 999px; background: var(--violet); color: var(--bg); font-weight: 650; }
.kb-score { display: flex; align-items: center; gap: .35rem; font: 600 .68rem var(--sans); } .kb-score .input { width: 4.4rem; }
.kb-move { display: flex; justify-content: space-between; margin: 0 -.3rem; }
.kb-empty { margin: 0; padding: 1rem; text-align: center; border: 2px dashed var(--hair); border-radius: 10px; font: 600 .7rem var(--sans); color: var(--ink3); text-transform: uppercase; }
.kb-col.drop-over { background: var(--lime-s); }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.exam { display: grid; grid-template-columns: 110px 1fr; background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh); overflow: hidden; }
.ex-count { display: grid; place-content: center; text-align: center; background: var(--c); border-right: 2px dashed #111; color: var(--ct, #111); }
.exam.c-violet .ex-count { color: var(--ct); } .ex-count b { font: 800 3.4rem/1 var(--display); } .ex-count span { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.ex-body { padding: .9rem 1rem; display: grid; gap: .3rem; } .ex-body h3 { font: 800 1.15rem var(--display); }
.ex-facts { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; font-size: .78rem; color: var(--ink2); margin: 0; }
.ex-body .btn { justify-self: start; }
.tb-nav { display: flex; gap: .5rem; align-items: center; } .tb-nav .pill { font-size: .85rem; }
.tb-day { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 1.2rem; align-items: start; }
.tb-side { display: grid; gap: 1rem; }
.tbg { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: repeat(var(--rows), 26px); position: relative; }
.tbg .tb-b { grid-column: 2; }
.tbg-h, .wkg-h { grid-column: 1; font: 600 .64rem var(--sans); color: var(--ink3); border-top: 1.5px solid var(--hair); padding-top: 3px; }
.tbg-slot, .wkg-slot { all: unset; grid-column: 2; border-top: 1.5px solid var(--hair); cursor: copy; } .tbg-slot:hover, .wkg-slot:hover { background: var(--lime-s); } .tbg-slot:focus-visible, .wkg-slot:focus-visible { outline: 2px solid var(--violet); }
.tb-b { all: unset; box-sizing: border-box; z-index: 1; margin: 2px 3px; padding: .3rem .55rem; border: 1px solid var(--line2); border-radius: 8px; background: var(--c); color: var(--ct, #111); box-shadow: var(--shadow-1); cursor: pointer; display: grid; align-content: start; overflow: hidden; font-size: .78rem; }
.tb-b.c-violet { color: var(--ct); } .tb-b b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tb-b small { opacity: .8; font-size: .68rem; }
.tb-b.k-class { background-image: repeating-linear-gradient(-45deg, transparent 0 8px, rgb(255 255 255 / .3) 8px 12px); }
.tb-b:focus-visible { outline: 2px solid var(--sky-ink); }
.tb-grid-card { padding: .8rem; }
.tb-adds { display: flex; flex-wrap: wrap; gap: .4rem; }
.tb-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); }
.tb-legend span { display: inline-flex; align-items: center; gap: .3rem; } .tb-legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line2); background: var(--c); }
.due-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; } .due-l li { display: flex; gap: .4rem; align-items: center; font-size: .86rem; }
.tpl-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tpl { display: inline-flex; align-items: center; }
.wk-scroll { overflow-x: auto; background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh); padding: .7rem; }
.wkg { display: grid; grid-template-columns: 44px repeat(7, minmax(110px, 1fr)); grid-template-rows: 34px repeat(var(--rows), 22px); min-width: 860px; }
.wkg-d { grid-row: 1; text-align: center; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; padding-top: .3rem; } .wkg-d b { font: 800 1rem var(--display); }
.wkg-d.today { background: var(--lime); border: 1px solid var(--line2); border-radius: 8px; }
.wkg-slot { grid-column: auto; } .wkg .tb-b { font-size: .7rem; padding: .2rem .4rem; } .wkg .tb-b small { display: none; }

/* ---------- The Study Room ---------- */
.notebooks { display: flex; gap: .8rem; overflow-x: auto; padding: .3rem .2rem .7rem; }
.notebook { all: unset; box-sizing: border-box; cursor: pointer; position: relative; flex: none; width: 140px; height: 170px; padding: 1rem .8rem .8rem 1.5rem; border: var(--b); border-radius: 6px 14px 14px 6px; background: var(--c); color: var(--ct, #111); box-shadow: var(--shadow-1); display: flex; flex-direction: column; justify-content: flex-end; transition: transform .15s; }
.notebook.c-violet { color: var(--ct); } .notebook.c-white { background: var(--paper); color: var(--ink); }
.notebook:hover { transform: translateY(-4px) rotate(-1deg); } .notebook.on { transform: translateY(-6px); box-shadow: var(--shadow-1); outline: 3px solid var(--ink); outline-offset: 3px; }
.nb-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; border-right: var(--b); background: repeating-linear-gradient(transparent 0 10px, rgb(0 0 0 / .25) 10px 13px); }
.notebook b { font: 800 1.15rem/1.05 var(--display); } .notebook small { font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.nb-week { display: grid; gap: .6rem; }
.nw-h { display: flex; align-items: center; gap: .7rem; font: 800 1.1rem var(--display); } .nw-h::after { content: ""; flex: 1; border-top: 2px dashed rgb(0 0 0 / .3); }
.nb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.note-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; align-content: start; gap: .35rem; min-height: 170px; padding: .9rem 1rem 1rem 2.2rem; border: var(--b); border-radius: 6px; background-color: var(--paper); box-shadow: var(--sh-sm); background-image: linear-gradient(90deg, transparent 1.6rem, var(--pink) 1.6rem calc(1.6rem + 2px), transparent calc(1.6rem + 2px)), repeating-linear-gradient(transparent 0 calc(1.55rem - 1px), #D9E4F5 calc(1.55rem - 1px) 1.55rem); background-position: 0 0, 0 .55rem; }
.note-card:hover { transform: translate(-1px, -1px); box-shadow: var(--sh); } .note-card:focus-visible { outline: 2px solid var(--sky-ink); }
.note-card b { font-weight: 800; } .note-card p { margin: 0; font-size: .84rem; line-height: 1.55rem; color: var(--ink2); }
.nc-top { display: flex; justify-content: space-between; align-items: center; } .nc-att { display: inline-flex; gap: .2rem; align-items: center; font: 600 .66rem var(--sans); }
.nc-tags { font: 600 .66rem var(--sans); color: var(--violet); }
[data-theme="noir"] .note-card, [data-theme="noir"] .pc-todo { background-image: none; }
.fc-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; align-items: center; padding: 1.4rem; background: var(--paper); border: var(--b); border-radius: 16px; box-shadow: var(--sh); }
.fc-hero h2 { font-size: 2.2rem; margin: .3rem 0; }
.leitner { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; align-items: end; }
.lb-box { display: grid; justify-items: center; gap: .1rem; padding: .7rem .3rem; border: var(--b); border-radius: 10px 10px 4px 4px; background: var(--lb); color: #111; text-align: center; box-shadow: var(--sh-sm); }
.lb-box b { font: 650 1.7rem/1 var(--sans); letter-spacing: -.02em; } .lb-box span { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .lb-box small { font-size: .64rem; opacity: .75; }
.lb-1 { --lb: var(--pink); min-height: 90px; } .lb-2 { --lb: var(--orange); min-height: 105px; } .lb-3 { --lb: var(--butter); min-height: 120px; } .lb-4 { --lb: var(--lime); min-height: 135px; } .lb-5 { --lb: var(--mint); min-height: 150px; }
.lb-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line2); background: var(--lb); color: #111; font: 600 .72rem var(--sans); flex: none; }
.fc-study { display: grid; gap: 1rem; justify-items: center; padding: 1.2rem; background: var(--paper); border: var(--b); border-radius: 16px; box-shadow: var(--sh); }
.fc-prog { display: flex; align-items: center; gap: .8rem; width: min(600px, 100%); font: 600 .74rem var(--sans); } .fc-prog .meter { flex: 1; }
.fc-card { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: min(600px, 100%); aspect-ratio: 5 / 3; perspective: 1200px; }
.fc-face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1.5rem; text-align: center; border: var(--b); border-radius: 16px; box-shadow: var(--shadow-1); backface-visibility: hidden; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); background: var(--butter-s); color: #111; background-image: repeating-linear-gradient(transparent 0 29px, #E7D9A6 29px 30px); }
.fc-face b { font: 800 clamp(1.2rem, 2.6vw, 1.8rem)/1.2 var(--display); } .fc-face small { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .12em; opacity: .6; } .fc-face .kick { color: #333; }
.fc-back { transform: rotateY(180deg); background: var(--lime-s); background-image: none; } .fc-card.flipped .fc-front { transform: rotateY(-180deg); } .fc-card.flipped .fc-back { transform: rotateY(0); }
.fc-card:focus-visible .fc-face { outline: 2px solid var(--sky-ink); outline-offset: 3px; }
.fc-btns { display: flex; gap: .8rem; } .fc-btns kbd { margin-left: .3rem; }
.fc-done { position: relative; text-align: center; padding: 2rem 1rem; background: var(--paper); border: var(--b); border-radius: 16px; box-shadow: var(--sh); }
.fc-score { font: 600 1.1rem var(--sans); } .fc-score b { font: 800 2.4rem var(--display); }
.fc-done .sticker { position: static; display: inline-block; }
.fc-add { display: grid; gap: .7rem; }
.fc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; max-height: 340px; overflow-y: auto; }
.fc-list li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--hair); }
.fc-list .link-plain { flex: 1; min-width: 0; display: grid; } .fc-list small { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-block; padding: .1rem .45rem; border-radius: 6px; border: 1px solid var(--line2); font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; background: var(--paper2); color: #111; }
.s-owned, .s-pdf { background: var(--lime); } .s-rented, .s-library { background: var(--sky); } .s-need { background: var(--pink); } .s-ordered { background: var(--butter); }
.reading-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.rn { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
.rn-cover { aspect-ratio: 2 / 3; border: var(--b); border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: var(--sh-sm); display: grid; } .rn-cover img { width: 100%; height: 100%; object-fit: cover; }
.rn-cover .cover-ph b { font-size: .9rem; }
.rn-t h3 { font: 800 1.2rem var(--display); margin: .2rem 0; } .rn-page { display: flex; align-items: center; gap: .4rem; font-size: .8rem; } .rn-page .input { width: 5rem; }
.rn-stat { display: grid; place-content: center; text-align: center; background: var(--c); color: var(--ct, #1D1C1B); } .rn-stat b { font: 800 3.2rem/1 var(--display); } .rn-stat .kick { color: #333; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.4rem 1rem; }
.book { position: relative; display: grid; gap: .3rem; align-content: start; }
.bk-cover { all: unset; cursor: pointer; aspect-ratio: 2 / 3; border: var(--b); border-radius: 3px 10px 10px 3px; overflow: hidden; display: grid; box-shadow: var(--shadow-1), inset 5px 0 0 rgb(0 0 0 / .15); transition: transform .15s; }
.bk-cover:hover { transform: translateY(-4px) rotate(-1.5deg); } .bk-cover img { width: 100%; height: 100%; object-fit: cover; } .bk-cover:focus-visible { outline: 2px solid var(--sky-ink); }
.bk-cover .cover-ph b { white-space: normal; font-size: .95rem; text-align: center; }
.bk-st { position: absolute; top: 8px; right: -6px; padding: .12rem .45rem; border: 1px solid var(--line2); border-radius: 5px; background: #fff; color: #111; font: 600 .58rem var(--mono); text-transform: uppercase; letter-spacing: .12em; transform: rotate(4deg); }
.st-reading { background: var(--butter); } .st-read { background: var(--lime); } .st-dnf { background: var(--paper3); }
.bk-t { display: grid; } .bk-t b { font-weight: 700; font-size: .86rem; } .bk-t small { color: var(--ink2); }

/* ---------- Digital Archive ---------- */
.arch-now { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.arch-now li { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .45rem .5rem; border: 1px solid var(--line2); border-radius: 10px; }
.arch-now li b { flex: 1; min-width: 140px; }
.term { display: grid; gap: .8rem; } .term-h { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; } .term-h h2 { font-size: 1.6rem; }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.arch { display: grid; grid-template-columns: 100px 1fr; background: var(--paper); border: var(--b); border-radius: 12px; box-shadow: var(--sh-sm); overflow: hidden; }
.arch-cover { position: relative; border-right: var(--b); display: grid; background: var(--c); } .arch-cover img { width: 100%; height: 100%; object-fit: cover; } .arch-cover .cover-ph b { font-size: .8rem; }
.arch-grade { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: var(--b); background: #fff; color: #111; font: 800 1.1rem var(--display); box-shadow: var(--sh-sm); }
.arch-b { padding: .7rem .8rem; display: grid; gap: .2rem; } .arch-b small { color: var(--ink2); } .arch-f { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: .2rem 0; font-size: .78rem; }
.vault { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem 1.2rem; padding-top: .8rem; }
.vdoc { position: relative; background: var(--fc); border: var(--b); border-radius: 0 12px 12px 12px; box-shadow: var(--sh); padding: .9rem; display: grid; gap: .7rem; color: #111; }
.vd-tab { position: absolute; left: -2px; top: -26px; padding: .25rem .8rem; border: var(--b); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--fc); font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.vd-body { display: flex; gap: .8rem; align-items: center; } .vd-body > div { display: grid; } .vd-body small { opacity: .75; }
.vd-ic { flex: none; display: grid; place-items: center; width: 52px; height: 64px; border: var(--b); border-radius: 6px; background: #fff; overflow: hidden; } .vd-ic img { width: 100%; height: 100%; object-fit: cover; } .vd-ic .ic { width: 24px; height: 24px; }
.vd-files { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; } .vd-files .pdrop { background: var(--paper); }
[data-theme="noir"] .vdoc .link-plain b { color: #111; }
.aud-hero { display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem; align-items: center; }
.aud-ring { position: relative; width: 170px; aspect-ratio: 1; border-radius: 50%; border: var(--b); background: conic-gradient(var(--lime) calc(var(--p) * 1%), var(--butter) 0 calc(var(--p2) * 1%), var(--paper3) 0); display: grid; place-content: center; text-align: center; box-shadow: var(--sh); }
.aud-ring::before { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--paper); border: var(--b); }
.aud-ring b, .aud-ring small { position: relative; } .aud-ring b { font: 800 2.2rem/1 var(--display); } .aud-ring small { font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.aud-t h2 { font-size: 1.8rem; } .aud-in { display: flex; flex-wrap: wrap; gap: 1rem; margin: .6rem 0; } .aud-in label { display: grid; gap: .2rem; font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .aud-in .input { width: 6rem; }
.aud-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.req-l { list-style: none; margin: .4rem 0 .6rem; padding: 0; display: grid; gap: .3rem; }
.req-l li { display: flex; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--hair); }
.req-l .link-plain { flex: 1; display: grid; } .req-l small { color: var(--ink2); }
.req-cb { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line2); color: transparent; }
.req-l li.done .req-cb { background: var(--lime); color: #111; } .req-l li.done b { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .6; } .req-l li.doing .req-cb { background: var(--butter-s); }

/* ---------- Student ID & Career ---------- */
.id-layout { display: grid; grid-template-columns: minmax(340px, 520px) 1fr; gap: 1.6rem; align-items: start; }
.sid-wrap { display: grid; gap: .9rem; }
.sid { position: relative; aspect-ratio: 1.586; border-radius: 20px; box-shadow: var(--shadow-2); overflow: hidden; color: #1D1C1B; container-type: inline-size; }
.sid-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5cqi 5.5cqi 4cqi; background: #E4E1DC; }
.sid-face::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 100% 0%, rgb(255 255 255 / .55), transparent 55%); pointer-events: none; }
.sid-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.sid-uni { font: 900 4.4cqi/1 var(--display); text-transform: uppercase; letter-spacing: .02em; max-width: 78%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sid-chip { width: 10cqi; height: 7.5cqi; border-radius: 1.6cqi; background: linear-gradient(90deg, transparent 32%, rgb(0 0 0 / .25) 32% 35%, transparent 35% 65%, rgb(0 0 0 / .25) 65% 68%, transparent 68%), linear-gradient(transparent 45%, rgb(0 0 0 / .25) 45% 55%, transparent 55%), linear-gradient(135deg, #EBD9A6, #C9AE6A); }
.sid-main { position: relative; flex: 1; display: grid; grid-template-columns: 27cqi 1fr; gap: 4.5cqi; align-items: center; margin-top: 2.5cqi; min-height: 0; }
.sid-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 2.2cqi; overflow: hidden; background: #fff; cursor: pointer; display: grid; box-shadow: 0 1px 2px rgb(0 0 0 / .1); padding: 1.2cqi 1.2cqi 4cqi; }
.sid-photo img { width: 100%; height: 100%; object-fit: cover; }
.sid-ph { display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; background: #F3F1EE; color: #5F5B56; } .sid-ph .ic { width: 11cqi; height: 11cqi; } .sid-ph small { font: 600 2.4cqi var(--sans); }
.sid-cam { position: absolute; right: 1.6cqi; bottom: 5.4cqi; display: grid; place-items: center; width: 7cqi; height: 7cqi; border-radius: 50%; background: var(--sky); color: #1D1C1B; } .sid-cam .ic { width: 3.8cqi; height: 3.8cqi; }
.sid-photo:hover .sid-cam { background: #fff; } .sid-photo:focus-within { outline: 2px solid var(--sky-ink); }
.sid-info { display: grid; align-content: center; gap: .1rem; min-width: 0; }
.sid-label { justify-self: start; font: 600 2.1cqi var(--sans); text-transform: uppercase; letter-spacing: .2em; color: #5F5B56; }
.sid-name { font: 400 8.6cqi/1.05 var(--hand); color: #1D1C1B; overflow-wrap: anywhere; margin: .6cqi 0 0; border-bottom: 1px solid rgb(29 28 27 / .25); padding-bottom: .4cqi; }
.sid-pro { font: 500 2.5cqi var(--sans); color: #5F5B56; margin-top: .6cqi; }
.sid-info dl { margin: 2cqi 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqi 3cqi; }
.sid-info dl div { border-bottom: 1px solid rgb(29 28 27 / .25); padding-bottom: .3cqi; min-width: 0; }
.sid-info dt { font: 600 1.9cqi var(--sans); text-transform: uppercase; letter-spacing: .18em; color: #5F5B56; } .sid-info dd { margin: 0; font: 400 5cqi/1.15 var(--hand); color: #1D1C1B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sid-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 3cqi; margin-top: 2cqi; font: 600 2.4cqi var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #5F5B56; }
.barcode { height: 5.5cqi; width: 36cqi; fill: #1D1C1B; background: transparent; padding: 0; }
.sid-back { background: #211F1E; color: #F6F4F1; justify-content: center; gap: 3cqi; }
.sid-back::before { background: radial-gradient(ellipse at 100% 0%, rgb(167 211 245 / .18), transparent 55%); }
.sid-back .sid-label { color: #AFA9A2; position: relative; }
.sid-stats { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqi; }
.sid-stats li { display: grid; gap: .5cqi; padding: 2.4cqi; border-radius: 2.4cqi; background: rgb(255 255 255 / .07); } .sid-stats b { font: 650 6cqi/1 var(--sans); color: #A7D3F5; } .sid-stats span { font: 600 1.9cqi var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #AFA9A2; }
.sid-back p { position: relative; margin: 0; font-size: 3cqi; } .sid-brand { font: 400 4.4cqi var(--hand) !important; color: #AFA9A2; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.glance-l { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; } .glance-l li { display: flex; gap: .4rem; align-items: center; font-size: .86rem; }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .9rem; overflow-x: auto; align-items: start; }
.ap-col { border: var(--b); border-radius: 14px; padding: .7rem; background: var(--paper); box-shadow: var(--sh-sm); min-height: 260px; display: grid; align-content: start; gap: .55rem; }
.ap-col header { display: flex; justify-content: space-between; align-items: center; padding-bottom: .4rem; border-bottom: var(--b); } .ap-col h3 { font: 800 1.05rem var(--display); }
.pc-0 header h3::before, .pc-1 header h3::before, .pc-2 header h3::before, .pc-3 header h3::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line2); margin-right: .4rem; vertical-align: -1px; background: var(--sky); }
.pc-1 header h3::before { background: var(--butter); } .pc-2 header h3::before { background: var(--lime); } .pc-3 header h3::before { background: var(--paper3); }
.ap-col.drop-over { background: var(--lime-s); }
.ap-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; padding: .65rem .7rem .4rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--paper); box-shadow: var(--sh-sm); cursor: grab; }
.ap-card .grip { position: absolute; top: 6px; right: 6px; color: var(--ink3); } .ap-card .grip .ic { width: 14px; height: 14px; }
.ap-logo { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line2); background: var(--orange); color: #111; font: 800 1.1rem var(--display); }
.ap-t { display: grid; } .ap-t b { font-weight: 800; } .ap-t span { font-size: .8rem; color: var(--ink2); }
.ap-meta, .ap-next { grid-column: 1 / -1; font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); display: flex; gap: .25rem; align-items: center; } .ap-next.late { color: var(--red); }
.ap-card .kb-move { grid-column: 1 / -1; }
.docs { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
.doc-list { background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh-sm); padding: .8rem; display: grid; gap: .8rem; }
.doc-new { display: flex; flex-wrap: wrap; gap: .35rem; } .doc-new .kick { width: 100%; }
.doc-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.doc-li { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: .55rem; align-items: center; width: 100%; padding: .5rem .55rem; border-radius: 9px; border: 1.5px solid transparent; }
.doc-li span { display: grid; min-width: 0; } .doc-li b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc-li small { color: var(--ink2); font-size: .72rem; }
.doc-li:hover { background: var(--paper2); } .doc-li.on { background: var(--lime-s); border-color: var(--line); } .doc-li:focus-visible { outline: 2px solid var(--sky-ink); }
.doc-ed { background: var(--paper2); border: var(--b); border-radius: 14px; box-shadow: var(--sh); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.doc-ed.empty { padding: 2rem; }
.doc-bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: var(--paper); border-bottom: var(--b); }
.doc-title { all: unset; font: 800 1.15rem var(--display); min-width: 0; flex: 1; }
.doc-title:focus { box-shadow: 0 2px 0 var(--violet); }
.doc-status { font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); }
.doc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: .35rem .6rem; background: var(--paper); border-bottom: 1.5px solid var(--hair); }
.doc-tools button { all: unset; cursor: pointer; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .35rem; border-radius: 7px; color: var(--ink); font-size: .92rem; }
.doc-tools button:hover { background: var(--lime-s); } .doc-tools button:focus-visible { outline: 2px solid var(--violet); }
.doc-tools .tl { font: 600 .74rem var(--sans); } .doc-tools .tl.h { font: 800 .86rem var(--display); } .doc-tools .ic { width: 16px; height: 16px; }
.doc-tools .sep { width: 1.5px; height: 20px; background: var(--hair); margin: 0 .3rem; }
.doc-words { font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); }
.doc-desk { padding: 1.6rem 1rem 2.4rem; overflow: auto; max-height: 76vh; background: var(--paper3); }
.doc-page { box-sizing: border-box; width: min(760px, 100%); min-height: 900px; margin: 0 auto; padding: 64px 72px; background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgb(0 0 0 / .15), 0 10px 30px -10px rgb(0 0 0 / .25); border-radius: 3px; font: 400 15px/1.6 "Inter", Arial, sans-serif; outline: none; }
.doc-page:focus { box-shadow: 0 0 0 3px var(--violet), 0 10px 30px -10px rgb(0 0 0 / .25); }
.doc-page h1 { font: 700 26px/1.2 "Inter", Arial, sans-serif; letter-spacing: -.01em; margin: 0 0 6px; } .doc-page h2 { font: 700 13px/1.3 "Inter", Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 1.5px solid #ddd; }
.doc-page h3 { font: 700 15px "Inter", Arial, sans-serif; margin: 14px 0 4px; } .doc-page p { margin: 0 0 8px; } .doc-page ul, .doc-page ol { margin: 0 0 8px; padding-left: 22px; } .doc-page blockquote { margin: 8px 0; padding-left: 14px; border-left: 3px solid #ccc; color: #555; }
body.doc-zen .topbar, body.doc-zen .hub-head, body.doc-zen .ftabs, body.doc-zen .doc-list, body.doc-zen .foot, body.doc-zen .demo-band { display: none; }
body.doc-zen .tab-body { background: var(--paper3); border: 0; box-shadow: none; padding: 0; } body.doc-zen .docs { grid-template-columns: 1fr; } body.doc-zen .doc-desk { max-height: none; min-height: 100vh; } body.doc-zen .hub { padding: 0; max-width: none; }
.crm td { white-space: nowrap; } .crm td:first-child { display: flex; align-items: center; gap: .5rem; }
.av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: var(--c); color: var(--ct, #1D1C1B); font: 800 .8rem var(--display); flex: none; }

/* ---------- Health & Meals ---------- */
.mp-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.mp-cost { font-size: .84rem; } .mp-cost.over b { color: var(--red); }
.mp-grid { display: grid; grid-template-columns: 64px repeat(3, minmax(140px, 1fr)); gap: 6px; overflow-x: auto; }
.mp-h { font: 600 .66rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); padding: 0 .3rem; }
.mp-d { display: grid; align-content: center; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .mp-d small { color: var(--ink2); } .mp-d.today { color: var(--violet); }
.mp-c { display: flex; align-items: center; gap: .4rem; min-height: 46px; padding: .3rem; border-radius: 9px; border: 1.5px dashed var(--line2); background: var(--paper); }
.mp-c.set { border-style: solid; border-color: var(--line); background: var(--mint-s); }
.mp-img { flex: none; width: 34px; height: 34px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line2); } .mp-img img { width: 100%; height: 100%; object-fit: cover; }
.ms { all: unset; flex: 1; min-width: 0; font-size: .8rem; padding: .2rem 1.5rem .2rem .3rem; cursor: pointer; color: var(--ink); background-position: right .3rem center !important; }
.ms:focus-visible { outline: 2px solid var(--violet); border-radius: 6px; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.1rem; }
.rc { position: relative; display: grid; gap: .5rem; background: var(--paper); border: var(--b); border-radius: 14px; padding: .6rem; box-shadow: var(--sh-sm); }
.rc-img { all: unset; cursor: pointer; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; border: 1px solid var(--line2); display: grid; background: var(--c); }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; } .rc-img:hover img { transform: scale(1.05); }
.rc-ph { display: grid; place-content: center; justify-items: center; color: #111; } .rc-ph .ic { width: 28px; height: 28px; }
.rc-price { position: absolute; top: .2rem; right: .2rem; padding: .2rem .5rem; border: 1px solid var(--line2); border-radius: 8px; background: var(--lime); color: #111; font: 600 .8rem var(--sans); transform: rotate(5deg); box-shadow: var(--sh-sm); } .rc-price small { font-size: .6rem; }
.rc-t { display: grid; } .rc-t b { font-weight: 800; font-size: .9rem; } .rc-t small { color: var(--ink2); }
.groc { padding-bottom: 1.4rem; }
.groc-list { list-style: none; margin: 0 0 .6rem; padding: 0; columns: 2; column-gap: 1.2rem; }
.groc-list li { break-inside: avoid; } .groc-list button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 0 .5rem; align-items: center; width: 100%; padding: .3rem 0; font-size: .88rem; }
.groc-list small { grid-column: 2; color: var(--ink3); font-size: .7rem; } .groc-list em { color: var(--ink2); font-style: normal; font-size: .76rem; }
.groc-list li.on .cb { background: var(--lime); color: #111; } .groc-list li.on span:not(.cb) { text-decoration: line-through; opacity: .55; }
.bf-num { margin: .4rem 0; } .bf-num b { font: 800 2.6rem var(--display); }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; } .games li { display: flex; gap: .7rem; align-items: center; }
.g-date { display: grid; justify-items: center; width: 48px; padding: .2rem; border: 1px solid var(--line2); border-radius: 8px; background: var(--orange); color: #111; font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .g-date b { font: 800 1.2rem/1 var(--display); }
.result { font: 600 .78rem var(--sans); padding: .15rem .45rem; border-radius: 6px; border: 1px solid var(--line2); } .result.w { background: var(--lime); color: #111; } .result.l { background: var(--pink-s); }

/* ---------- Focus & Flow ---------- */
.pomo-layout { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 1.4rem; align-items: start; }
.pomo { display: grid; gap: 1.1rem; justify-items: center; padding: 1.4rem; background: var(--paper); border: var(--b); border-radius: 18px; box-shadow: var(--sh); }
.pomo-ring { --rc: var(--violet); width: min(280px, 80%); aspect-ratio: 1; border-radius: 50%; border: var(--b); background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--paper3) 0); display: grid; place-items: center; box-shadow: var(--shadow-1); }
.pomo.m-short .pomo-ring, .pomo.m-long .pomo-ring { --rc: var(--mint); }
.pomo-face { width: 78%; aspect-ratio: 1; border-radius: 50%; border: var(--b); background: var(--paper); display: grid; place-content: center; text-align: center; }
.pomo-face b { font: 650 clamp(2.6rem, 6vw, 3.6rem)/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .pomo-face small { font: 600 .66rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); }
.pomo-btns { display: flex; gap: .5rem; align-items: center; }
.pomo-what { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; width: 100%; }
.pomo-set { width: 100%; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .pomo-set summary { cursor: pointer; } .pomo-set .inline { margin-top: .5rem; } .pomo-set .input { width: 5rem; }
.pomo-side { display: grid; gap: 1.2rem; }
.dw-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: .6rem; font-size: .84rem; } .dw-stats b { font: 800 1.4rem var(--display); }
.by-course { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; } .by-course li { display: grid; grid-template-columns: 90px 1fr 50px; gap: .6rem; align-items: center; font-size: .82rem; } .by-course .meter { margin: 0; }
.playlists { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.2rem; }
.pl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.pl-embed { width: 100%; height: 352px; border: 0; border-radius: 12px; background: var(--paper3); display: block; }
.checkin { display: grid; gap: .9rem; } .checkin h2 { font-size: 1.6rem; }
.ci-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--hair); }
.ci-row > span { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.ci-sleep { display: flex; align-items: center; gap: .4rem; } .ci-sleep .input { width: 5rem; }
.lvl { display: flex; align-items: center; gap: 4px; } .lv { all: unset; cursor: pointer; width: 26px; height: 18px; border-radius: 5px; border: 1px solid var(--line2); background: var(--paper); }
.lv.on { background: var(--violet); } .lv:focus-visible { outline: 2px solid var(--violet); } .lvl small { min-width: 5.5rem; text-align: right; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); }
.burn-g { display: flex; gap: 1rem; align-items: center; margin: .6rem 0; } .burn-g h2 { font-size: 1.4rem; }
.gauge { flex: none; width: 110px; aspect-ratio: 1; border-radius: 50%; border: var(--b); background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--paper3) 0); display: grid; place-items: center; position: relative; box-shadow: var(--sh-sm); }
.gauge::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--paper); border: var(--b); } .gauge b { position: relative; font: 800 1.8rem var(--display); }

/* ---------- Student Finance ---------- */
.bud-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.money-tiles, .aid-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } .aid-top { grid-template-columns: repeat(4, 1fr); }
.mt.tuition { gap: .35rem; } .mt.tuition .input { font: 800 1.4rem var(--display); padding: .2rem .5rem; }
.bud-l { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; } .bud-l li { display: flex; gap: .8rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--hair); } .bud-l .meter { margin: .25rem 0 0; height: 8px; }
.bud-in .input { width: 6rem; text-align: right; }
.tx .num { white-space: nowrap; } .tx li.settled { opacity: .55; }
.fund-bar { display: flex; height: 26px; border: var(--b); border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: var(--sh-sm); }
.fund-bar i { display: block; height: 100%; } .fb-free { background: var(--lime); border-right: var(--b); } .fb-loan { background: var(--orange); border-right: var(--b); }
.aid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.aid { display: grid; gap: .25rem; padding: .9rem 1rem; background: var(--paper); border: var(--b); border-radius: 12px; box-shadow: var(--sh-sm); border-left: 10px solid var(--ak, var(--lime)); }
.aid.k-loan { --ak: var(--orange); } .aid.k-grant { --ak: var(--sky); } .aid.k-workstudy { --ak: var(--violet); } .aid.k-family { --ak: var(--pink); }
.aid.st-declined { opacity: .55; } .aid.st-applied { background: repeating-linear-gradient(-45deg, var(--paper) 0 10px, var(--paper2) 10px 20px); }
.aid-k { font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); } .aid-amt { margin: 0; font: 800 1.6rem var(--display); } .aid small { color: var(--ink2); }
.streams { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .3rem; } .streams li { display: grid; grid-template-columns: 1fr auto 70px auto; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--hair); } .streams small { color: var(--ink2); text-align: right; }

/* ---------- Campus Life ---------- */
.clubs { display: flex; gap: 1rem; overflow-x: auto; padding: .3rem .2rem .6rem; }
.club { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 150px; display: grid; justify-items: center; gap: .35rem; padding: 1rem .7rem; border: var(--b); border-radius: 14px; background: var(--c); color: var(--ct, #1D1C1B); text-align: center; box-shadow: var(--sh-sm); transition: transform .12s; }
.club:hover { transform: translateY(-3px); } .club.on { box-shadow: var(--sh); outline: 3px solid var(--ink); outline-offset: 3px; } .club.c-violet { color: var(--ct); }
.club-logo { width: 64px; height: 64px; border-radius: 50%; border: var(--b); overflow: hidden; background: #fff; display: grid; } .club-logo img { width: 100%; height: 100%; object-fit: cover; } .club-logo .cover-ph { background: #fff; } .club-logo .cover-ph b { font-size: .8rem; box-shadow: none; border: 0; padding: 0; }
.club b { font: 800 .98rem/1.1 var(--display); } .club small { font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.club.new { width: 150px; min-height: 0; } .club.btn { height: auto; }
.club-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .84rem; margin: 0 0 .4rem; }
.minutes { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .45rem; }
.minutes .link-plain { display: grid; padding: .55rem .7rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--paper2); width: 100%; box-sizing: border-box; }
.mn-d { font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--violet); } .minutes small { color: var(--ink2); }
.ev-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ev { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .5rem; border: 1px solid var(--line2); border-radius: 12px; background: var(--paper); }
.ev-d { display: grid; justify-items: center; width: 46px; padding: .2rem; border: 1px solid var(--line2); border-radius: 8px; background: var(--ec, var(--butter)); color: #111; font: 600 .6rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .ev-d b { font: 800 1.2rem/1 var(--display); }
.k-party { --ec: var(--pink); } .k-tailgate { --ec: var(--orange); } .k-club { --ec: var(--lilac); } .k-campus { --ec: var(--sky); } .k-game { --ec: var(--mint); } .k-other { --ec: var(--butter); }
.ev-img { all: unset; cursor: pointer; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line2); } .ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev .r-t { min-width: 140px; }
.rsvp { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.rsvp button { all: unset; cursor: pointer; padding: .2rem .5rem; font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .rsvp button + button { border-left: 1px solid var(--line2); }
.rsvp button.on.r-going { background: var(--lime); color: #111; } .rsvp button.on.r-maybe { background: var(--butter); color: #111; } .rsvp button.on.r-no { background: var(--paper3); }
.cal-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; } .cal-head h2 { flex: 1; text-align: center; font-size: 1.5rem; }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { text-align: center; font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); padding-bottom: .2rem; }
.cal-d { min-height: 86px; padding: .25rem; border: 1.5px solid var(--hair); border-radius: 8px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.cal-d > b { font: 600 .7rem var(--sans); } .cal-d.today { border: var(--b); background: var(--lime-s); } .cal-d.exam { background: repeating-linear-gradient(-45deg, var(--paper) 0 6px, var(--pink-s) 6px 12px); }
.cal-exam { font: 600 .54rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--red); font-style: normal; }
.cal-e { all: unset; cursor: pointer; display: block; padding: .1rem .3rem; border-radius: 4px; background: var(--ec, var(--butter)); color: #111; font-size: .64rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line2); }
.cal-d small { font: 600 .6rem var(--sans); color: var(--ink2); }
.chores { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .45rem; }
.chores li { display: flex; gap: .55rem; align-items: center; padding: .45rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--paper); } .chores li.late { background: var(--pink-s); } .chores li.today { background: var(--butter-s); }
.who { flex: none; display: grid; place-items: center; min-width: 48px; padding: .25rem .35rem; border-radius: 7px; border: 1px solid var(--line2); background: var(--sky); color: #111; font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; } .who.me { background: var(--lime); }
.ledger { list-style: none; margin: 0 0 .7rem; padding: .6rem; display: grid; gap: .25rem; border: var(--b); border-radius: 10px; background: var(--paper2); } .ledger li { display: flex; justify-content: space-between; font-size: .86rem; }
.rule-l { margin: 0; padding-left: 1.4rem; display: grid; gap: .5rem; } .rule-l li { font-weight: 600; } .rule-l li::marker { font: 800 1rem var(--display); color: var(--violet); }

/* ---------- Settings and the guide ---------- */
.set-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.box { margin-bottom: 1.2rem; } .box h2 { margin-bottom: .6rem; } .box-head { display: flex; justify-content: space-between; align-items: center; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.sr-t { display: grid; } .sr-t small { color: var(--ink2); } .set-in { width: min(240px, 100%); } .set-save { display: flex; justify-content: flex-end; margin-top: .8rem; }
.tsizes { display: flex; gap: 4px; } .tsizes button { all: unset; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: var(--b); font-family: var(--display); font-weight: 800; }
.tsizes button[aria-pressed="true"] { background: #111; color: #fff; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.guide-card { position: relative; display: grid; gap: .3rem; align-content: start; padding: 1rem; border: var(--b); border-radius: 14px; background: var(--paper); box-shadow: var(--sh); text-decoration: none; border-top: 12px solid var(--c); transition: transform .12s; }
.guide-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-1); }
.g-n { position: absolute; top: .6rem; right: .8rem; font: 600 .72rem var(--sans); color: var(--ink3); }
.g-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c); border: var(--b); color: var(--ct, #1D1C1B); } .g-ic .ic { width: 20px; height: 20px; }
.guide-card b { font: 800 1.15rem var(--display); } .guide-card p { margin: 0; color: var(--ink2); }
.flows, .keys-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; } .flows li { padding-left: 1.2rem; position: relative; font-size: .88rem; } .flows li::before { content: "→"; position: absolute; left: 0; font-weight: 800; color: var(--violet); }
.keys-l li { display: flex; gap: .6rem; align-items: center; font-size: .86rem; }

/* ---------- Charts ---------- */
.chart { margin: 0; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--hair); stroke-width: 1.5; stroke-dasharray: 3 4; } .chart .base { stroke: var(--line2); stroke-width: 1.5; }
.chart .axis { fill: var(--ink2); font: 500 11px var(--sans); }
.chart .hit { fill: transparent; } .chart .mark:focus { outline: none; } .chart .mark:hover .bar-mark { opacity: .8; }
.c1 { --c: var(--violet); } .c2 { --c: #4D9DE0; } .c3 { --c: var(--sky); } .c4 { --c: var(--pink); } .c5 { --c: var(--butter); } .c6 { --c: var(--orange); }
.bar-mark { fill: var(--c, var(--violet)); stroke: none; } .line-mark { fill: none; stroke: var(--c, var(--violet)); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; } .dot-mark { fill: var(--paper); stroke: var(--c, var(--ink)); stroke-width: 2.5; }
.donut-seg { fill: var(--c); stroke: var(--paper); stroke-width: 2; } .donut-empty { fill: none; stroke: var(--paper3); }
.donut { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; } .donut-wrap { position: relative; width: 170px; flex: none; } .donut-wrap svg { width: 100%; }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .donut-mid b { font: 650 1.35rem var(--sans); letter-spacing: -.02em; } .donut-mid span { font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); }
.donut-key { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .84rem; } .donut-key li { display: flex; gap: .5rem; align-items: center; } .donut-key b { margin-left: auto; padding-left: .8rem; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .6rem; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); }
.legend span { display: flex; align-items: center; gap: .35rem; } .key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--c); border: 1px solid var(--line2); }
.tip { position: fixed; z-index: 4500; transform: translate(-50%, -100%); background: #111; color: #fff; padding: .35rem .6rem; border-radius: 7px; font: 600 .74rem var(--sans); pointer-events: none; white-space: nowrap; }

/* ---------- Modal, toasts, photos, feedback ---------- */
dialog#modal { border: var(--b); border-radius: 18px; padding: 0; background: var(--paper); color: var(--ink); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-1); }
dialog#modal.narrow { width: min(460px, calc(100vw - 24px)); } dialog#modal.photo { width: min(1100px, calc(100vw - 16px)); background: #15151C; color: #fff; }
dialog#modal::backdrop { background: rgb(17 17 17 / .45); backdrop-filter: blur(3px); }
.modal-inner { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 36px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1rem .4rem 1.4rem; border-bottom: var(--b); background: var(--lime); color: #111; }
.modal-head h2 { font-size: 1.4rem; } .modal-head .icon-btn { color: #111; }
.modal-body { padding: 1.1rem 1.4rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .9rem 1.4rem 1.2rem; border-top: 1px solid var(--hair); } .modal-foot .right { display: flex; gap: .5rem; margin-left: auto; }
.quick-modal { padding: 1.3rem 1.4rem 1.4rem; overflow-y: auto; gap: .9rem; } .q-h { font-size: 1.7rem; } .lm-close { position: absolute; top: .7rem; right: .7rem; }
.q-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border: var(--b); border-radius: 12px; }
.q-tab { all: unset; cursor: pointer; display: grid; justify-items: center; gap: .15rem; padding: .45rem .2rem; border-radius: 8px; font: 600 .62rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); text-align: center; } .q-tab .ic { width: 18px; height: 18px; }
.q-tab[aria-selected="true"] { background: #111; color: #fff; }
.q-form { display: grid; gap: .8rem; } .dump-in { font-size: 1rem; min-height: 8rem; }
#toasts { position: fixed; z-index: 3000; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: .5rem; align-items: center; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: center; background: #111; color: #fff; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--line2); box-shadow: 4px 4px 0 var(--violet); font-weight: 600; font-size: .88rem; width: 100%; animation: toastIn .3s cubic-bezier(.2, 1.4, .4, 1); }
.toast::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--lime); color: #111; font-weight: 800; }
.toast.err::before { content: "!"; background: var(--pink); } .toast button { all: unset; cursor: pointer; color: var(--lime); font-weight: 800; margin-left: auto; }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
img.missing { background: repeating-linear-gradient(45deg, var(--paper2) 0 8px, var(--hair) 8px 16px); }
.ed-photos { display: flex; flex-wrap: wrap; gap: .6rem; }
.ed-ph { position: relative; margin: 0; width: 100px; height: 100px; border-radius: 10px; overflow: hidden; border: var(--b); } .ed-ph img { width: 100%; height: 100%; object-fit: cover; }
.ed-ph .icon-btn { position: absolute; top: 4px; right: 4px; background: #fff; width: 26px; height: 26px; color: #111; }
.ed-ph .pdf-chip { display: grid; place-content: center; height: 100%; background: var(--orange-s); font: 600 .7rem var(--sans); }
.ed-add { width: 100px; height: 100px; border: 1.5px dashed var(--line2); border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; cursor: pointer; font: 600 .64rem var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: .4rem; background: var(--butter-s); }
.ed-add .ic { width: 22px; height: 22px; } .ed-add.busy { opacity: .6; }
.pdf-chip { display: inline-flex; gap: .3rem; align-items: center; }
.lightbox { position: relative; padding: 2.8rem 3.2rem 1.2rem; } .lightbox figure { margin: 0; }
.lightbox img { max-height: calc(100dvh - 200px); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; border: 3px solid #fff; border-radius: 6px; }
.lightbox figcaption { display: flex; gap: 1rem; justify-content: center; align-items: baseline; padding: .8rem 0 0; flex-wrap: wrap; } .lightbox .hand { font: 800 1.2rem var(--display); }
.lightbox .icon-btn { color: #fff; } .lightbox .icon-btn:hover { background: rgb(255 255 255 / .12); }
.lb-close { position: absolute; top: .6rem; right: .6rem; } .lb-prev, .lb-next { position: absolute; top: 45%; } .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
.lb-tools { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; } .lb-tools .btn { --bb: #fff; color: #111; } .lb-tools .btn.ghost { --bb: transparent; color: #fff; }
.pop { position: fixed; z-index: 4000; pointer-events: none; width: 0; height: 0; } .pop i { position: absolute; width: 9px; height: 9px; border-radius: 2px; border: 1px solid var(--line2); animation: popOut .9s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes popOut { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 30px)) rotate(var(--r)) scale(.6); opacity: 0; } }
.confetti { position: fixed; inset: 0; z-index: 4000; pointer-events: none; overflow: hidden; } .confetti i { position: absolute; top: -20px; width: 11px; height: 15px; border-radius: 3px; border: 1px solid var(--line2); animation: fall var(--d) cubic-bezier(.25, .6, .45, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 108vh) rotate(var(--r)); } }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 5000; pointer-events: none; box-shadow: var(--shadow-1) !important; opacity: .95; }
body.is-dragging { cursor: grabbing; user-select: none; } .dragging { opacity: .35; } .drop-over { outline: 3px dashed var(--violet) !important; outline-offset: 2px; }
:root { --yellow: var(--butter); --lav: var(--violet); --mint2: var(--mint); --peach: var(--orange); }

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-art { position: relative; overflow: hidden; display: grid; align-content: end; padding: clamp(1.6rem, 4vw, 3.4rem); background: var(--char); color: var(--on-char); }
.aa-board { position: absolute; inset: 0; }
.aa-pol { position: absolute; width: 170px; padding: 9px 9px 0; background: #fff; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .6); color: #1D1C1B; }
.aa-pol::before { content: ""; position: absolute; top: -14px; left: 50%; width: 14px; height: 34px; border: 2.5px solid #B9B3AC; border-radius: 8px; transform: translateX(-50%) rotate(8deg); }
.aa-pol i { display: block; aspect-ratio: 1; background: linear-gradient(180deg, #A7D3F5 0 58%, #BCD9A9 58%); }
.aa-pol b { display: block; padding: .3rem 0 .45rem; text-align: center; font: 400 1.6rem/1.2 var(--hand); }
.aa-pol.p1 { top: 10%; left: 9%; transform: rotate(-6deg); } .aa-pol.p2 { top: 7%; left: 42%; transform: rotate(4deg); } .aa-pol.p2 i { background: linear-gradient(135deg, #EBD9A6, #EBA196); } .aa-pol.p3 { top: 15%; right: 7%; transform: rotate(-3deg); } .aa-pol.p3 i { background: radial-gradient(circle at 50% 45%, #fff 0 14%, transparent 15%), #2A2826; }
.aa-over { position: relative; z-index: 2; max-width: 560px; }
.aa-kick { display: block; font: 400 2.6rem/1 var(--hand); color: var(--on-char); opacity: .85; margin-bottom: -.4rem; }
.aa-word { display: block; font: 900 clamp(4rem, 9vw, 7rem)/.9 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.aa-lede { margin: 1rem 0; font-size: 1.05rem; color: #B9B3AC; max-width: 46ch; }
.aa-keys { display: flex; flex-wrap: wrap; gap: .4rem; } .aa-keys .chip { background: rgb(255 255 255 / .08); color: var(--on-char); border-color: rgb(255 255 255 / .16); cursor: default; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 1rem; background: var(--paper); border: var(--b); border-radius: 18px; padding: 1.8rem; box-shadow: var(--sh); }
.auth-card h2 { font-size: 2.2rem; } .key-input { letter-spacing: .08em; text-transform: uppercase; font-family: var(--mono) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .search { width: 170px; } .hq-row { grid-template-columns: 1fr 1fr; } .hq-row .nudges { grid-column: 1 / -1; justify-items: stretch; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; } .hq-row .bubble { justify-self: end; }
}
@media (max-width: 1100px) {
  .hq-top { grid-template-columns: 1fr; }
  .two-col, .two-col.wide-left, .two-col.wide-right, .three-col, .tb-day, .pomo-layout, .id-layout, .set-cols, .aud-groups { grid-template-columns: 1fr; }
  .fc-hero { grid-template-columns: 1fr; } .ov-stats, .aid-top { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { min-height: 60vh; border-right: 0; border-bottom: var(--b); }
}
@media (max-width: 980px) {
  :root { --side: 286px; }
  .side { transform: translateX(-105%); transition: transform .22s ease-out; box-shadow: 10px 0 40px rgb(0 0 0 / .25); }
  body.nav-on .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgb(15 14 13 / .45); z-index: 25; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-on .scrim { opacity: 1; pointer-events: auto; }
  .main-col { margin-left: 0; }
  .top { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; background: var(--char); color: var(--on-char); position: sticky; top: 0; z-index: 20; }
  .top .icon-btn { color: var(--on-char); } .top .icon-btn:hover { background: rgb(255 255 255 / .08); border-color: transparent; }
  .top .brand b { font: 900 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; } .top .brand .mark { width: 32px; height: 32px; }
  .top-stuck { all: unset; cursor: pointer; margin-left: auto; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sky); color: #1D1C1B; }
  .termbar { position: static; padding: .5rem 1rem; } .termbar .btn { display: none; }
  .hub { padding: 1.1rem 1rem 6.5rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--hair); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { all: unset; cursor: pointer; display: grid; justify-items: center; gap: .1rem; font-size: .68rem; font-weight: 600; color: var(--ink2); padding: .2rem 0; }
  .tabbar .ic { width: 23px; height: 23px; }
  .tabbar [aria-current="page"] { color: var(--ink); } .tabbar [aria-current="page"] .ic { color: var(--sky-ink); }
  .tabbar .fab { width: 54px; height: 54px; margin: -24px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); }
  .tabbar .fab .ic { width: 26px; height: 26px; color: var(--paper); }
}
@media (max-width: 720px) {
  body { font-size: .92rem; }
  .search { display: none; } .pb-day { display: none; }
  .tab-body { gap: 1rem; }
  .card { padding: 1rem; } .card.has-strip { padding-top: 1.3rem; } .hh-title { font-size: 2.4rem; } .hh-kick { font-size: 2rem; }
  .hq-row { grid-template-columns: 1fr; } .metrics { gap: .6rem; } .metric b { font-size: 1.9rem; }
  .board { min-height: 0; } .board-help { font-size: .62rem; }
  .ov-stats, .gpa-top, .money-tiles, .aid-top, .glance { grid-template-columns: 1fr 1fr; } .money-tiles .mt:last-child { grid-column: 1 / -1; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .dir-dl div { grid-template-columns: 1fr; gap: .1rem; }
  .exam { grid-template-columns: 84px 1fr; } .ex-count b { font-size: 2.4rem; }
  .docs { grid-template-columns: minmax(0, 1fr); } .docs > * { min-width: 0; } .mp-grid { grid-template-columns: 48px repeat(3, 170px); } .doc-page { padding: 28px 22px; min-height: 600px; font-size: 14px; } .doc-title { max-width: none; flex: 1; } .doc-desk { padding: .8rem .4rem 1.4rem; }
  .groc-list { columns: 1; } .pomo-what { grid-template-columns: 1fr; }
  .aud-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .aud-in { justify-content: center; }
  .cal-d { min-height: 58px; } .cal-e { font-size: .56rem; }
  .arch { grid-template-columns: 84px 1fr; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .leitner { gap: .3rem; } .lb-box small { display: none; }
  .playlists { grid-template-columns: 1fr; }
  .lightbox { padding: 2.6rem .6rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
.ci-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; align-items: start; }
.board .pc:hover, .board .pc:focus-within, .board .pc:focus { z-index: 900 !important; }
/* Palette picker (Tally's) */
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: .2rem 0 .6rem; }
.pal { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .3rem; padding: .7rem; border-radius: 14px; border: 1px solid var(--hair); background: var(--paper2); }
.pal:hover { border-color: var(--ink2); } .pal[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
.pal:focus-visible { outline: 2px solid var(--sky-ink); }
.pal-sw { display: flex; height: 28px; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); } .pal-sw i { flex: 1; }
.pal b { font-size: .88rem; } .pal small { color: var(--ink2); font-size: .74rem; line-height: 1.3; }

/* Light fills keep dark text in every palette (Noir included) */
.vdoc, .vdoc small, .vd-tab, .wkg-d.today, .un-list li.u-today .un-t, .un-list li.u-late .un-t, .ev-d, .aid-top > div:first-child span { color: #1D1C1B; }
.ovs .kick, .gpa-big .kick, .mt .kick, .gl .kick, .ovs span, .gpa-big span, .mt > span, .gl span { color: inherit; opacity: .8; }
.vdoc .pdrop, .vdoc .pdf-pill { color: var(--ink); }
/* Folder colours (document vault tabs): Tally's sand, greige, sky, rouge, sage and stone */
.fc-0 { --fc: #F8F0DA; } .fc-1 { --fc: #EFEDE9; } .fc-2 { --fc: #E6F2FC; } .fc-3 { --fc: #FBE9E6; } .fc-4 { --fc: #EBF4E4; } .fc-5 { --fc: #E4E1DC; }
