/* =====================================================================
   INDEX — the student life operating system
   Grid paper, chunky black outlines with hard shadows, keycap navigation,
   folder-tab dividers, a real corkboard and little retro browser windows.
   Bright and sweet: pink, lime, violet, butter, sky, orange, mint, lilac.
   Bricolage Grotesque for headings, Inter for reading, Space Mono for labels.
   ===================================================================== */
:root, [data-theme="index"] {
  --bg: #F4F1EA; --grid: rgb(86 132 255 / .14); --paper: #FFFFFF; --paper2: #F8F5EF; --paper3: #EDE8DE;
  --ink: #111111; --ink2: #4B4B57; --ink3: #8B8B96; --line: #111111; --shadow: #111111; --hair: #E3DDD1;
  --pink: #FF8FB1; --pink-s: #FFE2EB; --lime: #C8F169; --lime-s: #EFFBD4; --violet: #7B61FF; --violet-s: #E7E1FF;
  --butter: #FFD84D; --butter-s: #FFF4C6; --sky: #63B3FF; --sky-s: #DDEEFF; --orange: #FF8A4C; --orange-s: #FFE4D4;
  --mint: #6FD6A0; --mint-s: #DAF6E7; --lilac: #C9B6FF; --lilac-s: #F1EBFF; --white: #FFFFFF; --white-s: #F8F5EF; --red: #E5484D;
  --r: 14px; --r-sm: 10px; --b: 2px solid var(--line); --sh: 4px 4px 0 var(--shadow); --sh-sm: 2px 2px 0 var(--shadow);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
[data-theme="night"] {
  --bg: #15151C; --grid: rgb(120 150 255 / .07); --paper: #1F1F28; --paper2: #26262F; --paper3: #30303B;
  --ink: #F4F1EA; --ink2: #C2C0CB; --ink3: #8B8B96; --line: #F4F1EA; --shadow: #000000; --hair: #34343F;
  --pink-s: #4A2734; --lime-s: #2F3A1B; --violet-s: #2D2754; --butter-s: #463C14; --sky-s: #1D3550; --orange-s: #4A2A19; --mint-s: #1A3C2C; --lilac-s: #352D52; --white: #2A2A34; --white-s: #26262F;
  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 (bright), --cs (soft) and --ct (text on it). */
.c-pink { --c: var(--pink); --cs: var(--pink-s); } .c-lime { --c: var(--lime); --cs: var(--lime-s); } .c-violet { --c: var(--violet); --cs: var(--violet-s); --ct: #fff; }
.c-butter { --c: var(--butter); --cs: var(--butter-s); } .c-sky { --c: var(--sky); --cs: var(--sky-s); } .c-orange { --c: var(--orange); --cs: var(--orange-s); }
.c-mint { --c: var(--mint); --cs: var(--mint-s); } .c-lilac { --c: var(--lilac); --cs: var(--lilac-s); } .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); font: 400 .94rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; } h3 { font: 700 .98rem/1.25 var(--sans); }
h1 em, h2 em { font-style: normal; background: var(--c, var(--lime)); color: #111; padding: 0 .18em; border: var(--b); border-radius: 8px; box-shadow: var(--sh-sm); display: inline-block; transform: rotate(-1.5deg); margin-left: .1em; }
h2 em { padding: 0 .14em; border-radius: 6px; box-shadow: none; border-width: 1.5px; transform: none; }
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: #1E8A4C; font-weight: 700; } .neg { color: var(--red); font-weight: 700; } .late { color: var(--red); font-weight: 600; }
[data-theme="night"] .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(--lime); color: #111; }
:focus-visible { outline: 3px solid var(--violet); 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: 700 .68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.hl-pink { background: var(--pink); color: #111; padding: 0 .3em; border-radius: 4px; }
kbd { font: 700 .72rem var(--mono); padding: .12rem .4rem; border-radius: 6px; background: var(--paper); border: 1.5px solid var(--line); 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: 2px dashed var(--ink3); 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: .4rem; padding: .55rem 1rem; border-radius: 10px; border: var(--b); background: var(--bb); color: var(--ink); font: 700 .84rem/1.1 var(--sans); text-decoration: none; cursor: pointer; box-shadow: var(--sh-sm); transition: transform .1s, box-shadow .1s; white-space: nowrap; user-select: none; }
.btn[class*="c-"] { --bb: var(--c); color: #111; } .btn.c-violet { color: #fff; } .btn.c-white { color: var(--ink); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }
.btn.solid { --bb: #111; color: #fff; }
[data-theme="night"] .btn.solid { --bb: var(--lime); color: #111; border-color: var(--lime); }
.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 .7rem; font-size: .78rem; border-radius: 8px; }
.btn.lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.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(--line); }
.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: 3px solid var(--violet); }
.u-link { all: unset; cursor: pointer; font: 700 .76rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.u-link:hover { color: var(--violet); } .u-link:focus-visible { outline: 3px solid var(--violet); }
.link-plain { all: unset; cursor: pointer; } .link-plain:hover b, .link-plain:hover { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; } .link-plain:focus-visible { outline: 3px solid var(--violet); }
.link { all: unset; cursor: pointer; color: var(--violet); font-weight: 700; 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:focus { outline: none; box-shadow: var(--sh-sm); border-color: var(--violet); }
.input.sm { padding: .35rem .55rem; font-size: .85rem; width: auto; border-width: 1.5px; border-radius: 8px; }
.input.big-in { font: 800 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="night"] select.input, [data-theme="night"] 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: 700 .7rem var(--mono); text-transform: uppercase; letter-spacing: .05em; 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: 1.5px solid #111; transition: transform .15s; }
.switch input:checked, input.tog:checked { background: var(--lime); } .switch input:checked::after, input.tog:checked::after { transform: translateX(20px); }
.segs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 11px; background: var(--paper); border: var(--b); box-shadow: var(--sh-sm); }
.segs button { all: unset; cursor: pointer; padding: .35rem .7rem; border-radius: 7px; font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink2); }
.segs button:hover { color: var(--ink); background: var(--paper2); }
.segs button[aria-pressed="true"] { background: #111; color: #fff; }
[data-theme="night"] .segs button[aria-pressed="true"] { background: var(--lime); color: #111; }
.segs button:focus-visible { outline: 3px solid var(--violet); }
.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: .28rem .65rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 700 .72rem var(--mono); }
.chip[class*="c-"] { background: var(--c); color: #111; } .chip.c-white { color: var(--ink); }
.chip.on, .chip[aria-pressed="true"], .chip:has(input:checked) { background: #111; color: #fff; }
.chip input { display: none; } .chip .ic { width: 13px; height: 13px; }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .5rem; border-radius: 6px; font: 700 .66rem var(--mono); text-transform: uppercase; letter-spacing: .04em; background: var(--paper2); color: var(--ink2); white-space: nowrap; border: 1.5px solid var(--hair); }
.tag.doing { background: var(--butter); color: #111; border-color: #111; }
.pill { display: inline-flex; align-items: center; padding: .3rem .8rem; border-radius: 99px; background: var(--paper); border: var(--b); font: 700 .78rem var(--mono); }
.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: 10px; border-radius: 99px; background: var(--paper3); border: 1.5px solid var(--line); overflow: hidden; margin: .45rem 0; }
.meter i { display: block; height: 100%; background: var(--mc, var(--violet)); border-right: 1.5px solid var(--line); transition: width .4s; }
.meter i[style="width:0.0%"] { border: 0; }
.m-violet { --mc: var(--violet); } .m-lime { --mc: var(--lime); } .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(--lime); color: #111; }
.when { display: flex; gap: .4rem; }
.cb, .td-cb, .req-cb { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--line); 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: var(--b); border-radius: var(--r); padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--sh); min-width: 0; }
.card.flat { padding: .3rem .6rem; }
.card.has-strip { padding-top: 1.55rem; }
.card.has-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--c); border-bottom: var(--b); border-radius: calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.card-head h2 small { font: 700 .72rem var(--mono); }
.sub-h { font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); margin: 1rem 0 .4rem; }
.sec-h { font-size: 1.3rem; }
.win { position: relative; background: var(--paper); border: var(--b); border-radius: 12px; box-shadow: var(--sh); overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: .6rem; padding: .4rem .7rem; background: var(--c); border-bottom: var(--b); color: var(--ct, #111); }
.win-bar b { font: 700 .74rem var(--mono); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-dots { display: flex; gap: 5px; } .win-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #111; background: #fff; }
.win-x { display: grid; place-items: center; width: 20px; height: 18px; border: 1.5px solid #111; border-radius: 5px; background: #fff; color: #111; font: 700 .8rem/1 var(--sans); }
.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: 700 .74rem var(--mono); text-transform: uppercase; transform: rotate(var(--rot)); box-shadow: var(--sh-sm); background: var(--c); color: #111; }
.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: 2px dashed var(--line); border-radius: 12px; background: repeating-linear-gradient(45deg, var(--paper) 0 10px, var(--paper2) 10px 20px); color: var(--ink); cursor: pointer; }
.pdrop:hover, .pdrop.drag { background: var(--lime-s); }
.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: 3px solid var(--violet); }
.polaroid { position: relative; margin: 0; padding: 8px 8px 0; background: #fff; border: 1.5px solid #111; box-shadow: 3px 4px 0 rgb(0 0 0 / .85); 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: #111; 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: 1.5px solid var(--line); background: var(--orange-s); font: 700 .72rem var(--mono); }
.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: 3px solid var(--violet); }
.note-band { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; border-radius: 12px; border: var(--b); background: var(--c, var(--butter)); color: #111; 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: 1.5px dashed 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: 1.5px solid var(--line); } .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: 700 .66rem var(--mono); 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: 1.5px dashed 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: 1.5px solid #111; background: var(--c, var(--violet)); color: var(--ct, #111); font: 700 .64rem var(--mono); text-transform: uppercase; white-space: nowrap; }
.kb-course.c-violet, .tag-code.c-violet { color: #fff; }
.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; }

/* ---------- The top bar: keycaps ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: var(--b); }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; padding: .55rem clamp(.8rem, 2vw, 1.6rem) .35rem; max-width: 1560px; margin: 0 auto; }
.tb-date { font: 700 .72rem var(--mono); text-transform: uppercase; color: var(--ink2); }
.tb-brand { text-decoration: none; flex: none; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem .3rem .4rem; border: var(--b); border-radius: 11px; background: #111; color: #fff; box-shadow: 3px 3px 0 var(--violet); }
.wordmark svg { width: 28px; height: 28px; } .wordmark b { font: 800 1.25rem/1 var(--display); letter-spacing: -.02em; }
[data-theme="night"] .wordmark { background: var(--paper2); border-color: var(--line); }
.wordmark.big { padding: .5rem 1.1rem; box-shadow: 6px 6px 0 var(--violet); } .wordmark.big b { font-size: clamp(3rem, 7vw, 5rem); }
.hkeys { order: 3; flex: 1 0 100%; min-width: 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .2rem .2rem .6rem; }
.hkeys::-webkit-scrollbar { display: none; }
.hk { flex: 1 0 auto; justify-content: center; display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .7rem .44rem; border: var(--b); border-radius: 11px; background: var(--c); color: var(--ct, #111); text-decoration: none; font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .02em; box-shadow: 0 5px 0 var(--shadow), inset 0 -3px 0 rgb(0 0 0 / .12), inset 0 2px 0 rgb(255 255 255 / .45); transition: transform .12s, box-shadow .12s; position: relative; }
.hk .ic { width: 16px; height: 16px; }
.hk:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--shadow), inset 0 -3px 0 rgb(0 0 0 / .12), inset 0 2px 0 rgb(255 255 255 / .45); }
.hk[aria-current="page"] { transform: translateY(4px); box-shadow: 0 1px 0 var(--shadow), inset 0 3px 0 rgb(0 0 0 / .15); }
.hk[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transform: translateX(-50%); }
.hk:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.tb-tools { display: flex; align-items: center; gap: .4rem; flex: none; margin-left: auto; }
.tb-btn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: var(--b); background: var(--paper); color: var(--ink); box-shadow: var(--sh-sm); }
.tb-btn:hover { background: var(--lime); color: #111; } .tb-btn[aria-current="page"] { background: var(--lime); color: #111; }
.tb-btn .ic { width: 18px; height: 18px; } .tb-btn:focus-visible { outline: 3px solid var(--violet); }
.tb-timer { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; border-radius: 10px; border: var(--b); background: var(--lilac); color: #111; text-decoration: none; font: 700 .82rem var(--mono); box-shadow: var(--sh-sm); }
.tb-timer.on { background: var(--lime); animation: pulse 2s infinite; } .tb-timer.on.m-short, .tb-timer.on.m-long { background: var(--sky); }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgb(123 97 255 / .25), var(--sh-sm); } }
.search { position: relative; display: flex; align-items: center; gap: .4rem; padding: 0 .7rem; height: 38px; border-radius: 10px; background: var(--paper); border: var(--b); width: 170px; color: var(--ink3); }
.search:focus-within { box-shadow: var(--sh-sm); }
.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(360px, 90vw); display: none; padding: .4rem; border-radius: 12px; background: var(--paper); border: var(--b); box-shadow: var(--sh); 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: 8px; color: var(--ink); }
.search-res button:hover, .search-res button:focus-visible { background: var(--lime-s); }
.demo-band { position: relative; z-index: 60; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; padding: .4rem 1rem; background: #111; color: #fff; font: 700 .74rem var(--mono); text-align: center; }
.demo-band a, .demo-band .demo-cta { color: var(--lime); font-weight: 700; }
.hub { width: 100%; max-width: 1560px; margin: 0 auto; padding: 1.6rem clamp(.8rem, 2.4vw, 1.8rem) 3rem; }
.foot { max-width: 1560px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.2rem clamp(.8rem, 2.4vw, 1.8rem) 2rem; border-top: 2px dashed var(--ink3); font: 700 .72rem var(--mono); color: var(--ink2); text-transform: uppercase; }
.foot .wordmark { transform: scale(.8); transform-origin: left; box-shadow: none; } .foot a { color: var(--ink2); }

/* ---------- Hub header and folder tabs ---------- */
.hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hh-tag { display: inline-block; padding: .2rem .55rem; border: var(--b); border-radius: 7px; background: var(--c); color: var(--ct, #111); font: 700 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; box-shadow: var(--sh-sm); margin-bottom: .7rem; }
.hh-title { font: 800 clamp(2.3rem, 5vw, 3.6rem)/.95 var(--display); letter-spacing: -.035em; }
.hh-title em { --c: var(--pink); }
.hh-lede { color: var(--ink2); max-width: 64ch; margin: .7rem 0 0; }
.hh-actions { display: flex; gap: .5rem; }
.ftabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 6px 4px 0; position: relative; z-index: 1; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { flex: none; position: relative; margin-right: -6px; padding: .6rem 1.4rem .75rem; border: var(--b); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--fc); color: #111; text-decoration: none; font: 700 .76rem var(--mono); text-transform: uppercase; letter-spacing: .02em; transform: translateY(6px); transition: transform .15s; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .08); }
.ftab:hover { transform: translateY(2px); }
.ftab[aria-current="page"] { transform: none; z-index: 3; box-shadow: none; padding-bottom: .9rem; }
.ftab:focus-visible { outline: 3px solid var(--violet); z-index: 4; }
.fc-0 { --fc: #F9C6D3; } .fc-1 { --fc: #D7C9AE; } .fc-2 { --fc: #A9C8E6; } .fc-3 { --fc: #F6E3B4; } .fc-4 { --fc: #B9E6C2; } .fc-5 { --fc: #D7CCFA; }
.tab-body { --tb: #F9C6D3; position: relative; z-index: 2; margin-top: -2px; padding: 1.5rem clamp(.8rem, 2vw, 1.6rem) 1.7rem; background: var(--tb); border: var(--b); border-radius: 0 18px 18px 18px; box-shadow: var(--sh); display: grid; gap: 1.3rem; }
.ftabs:has(.fc-0[aria-current]) + .tab-body { --tb: #F9C6D3; } .ftabs:has(.fc-1[aria-current]) + .tab-body { --tb: #D7C9AE; } .ftabs:has(.fc-2[aria-current]) + .tab-body { --tb: #A9C8E6; }
.ftabs:has(.fc-3[aria-current]) + .tab-body { --tb: #F6E3B4; } .ftabs:has(.fc-4[aria-current]) + .tab-body { --tb: #B9E6C2; } .ftabs:has(.fc-5[aria-current]) + .tab-body { --tb: #D7CCFA; }
[data-theme="night"] .tab-body { background: color-mix(in oklab, var(--tb) 18%, var(--bg)); }
[data-theme="night"] .ftab { background: color-mix(in oklab, var(--fc) 70%, var(--bg)); }
.tab-body > * { min-width: 0; }
.tab-body .kick, .tab-body > .filters .muted, .tab-body > p.small { color: #2B2B33; }
[data-theme="night"] .tab-body .kick, [data-theme="night"] .tab-body > .filters .muted, [data-theme="night"] .tab-body > p.small { color: var(--ink2); }
.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; }

/* ---------- Index Home: the board ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.4rem; align-items: start; }
.hg-side { display: grid; gap: 1.2rem; }
.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 { position: relative; aspect-ratio: 16 / 11; min-height: 520px; min-width: 760px; 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="night"] .b-white { background: linear-gradient(115deg, #2A2A33, #24242C); } [data-theme="night"] .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: 700 1.05rem var(--mono); 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: 700 .7rem var(--mono); text-transform: uppercase; 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: 3px solid var(--violet); outline-offset: 4px; }
.pc-note { min-height: 15%; padding: 1.6rem .9rem .9rem; background: var(--c); color: #111; box-shadow: 2px 8px 14px rgb(0 0 0 / .28); clip-path: polygon(0 0, 100% 0, 100% 88%, 90% 100%, 0 100%); border-radius: 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: 1.5px solid #111; border-radius: 4px; box-shadow: 3px 6px 0 rgb(0 0 0 / .8); 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: 1.5px solid #111; 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: 2px solid #111; 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: 1.5px solid #111; box-shadow: 3px 6px 0 rgb(0 0 0 / .85); 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: 700 .78rem var(--mono); color: #111; cursor: text; }
.pc-pinned { box-shadow: 4px 8px 14px rgb(0 0 0 / .35); }
.pp-img { border: 1.5px solid #111; 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; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%) rotate(calc(var(--rot) * -1)); display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 10px; background: #fff; border: 1.5px solid #111; box-shadow: var(--sh-sm); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5; white-space: nowrap; }
.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: 1.5px solid #111; } .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: 2px solid #111; cursor: nwse-resize; opacity: 0; } .pc:hover .pc-size, .pc:focus-within .pc-size { opacity: 1; }
.semcover { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: var(--b); box-shadow: var(--sh); background: var(--violet); }
.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: 700 .7rem var(--mono); text-transform: uppercase; opacity: .9; } .sc-hi { font: 800 2.1rem/1 var(--display); letter-spacing: -.03em; } .sc-term { justify-self: start; margin-top: .3rem; padding: .15rem .5rem; border-radius: 6px; background: var(--lime); color: #111; border: 1.5px solid #111; font: 700 .72rem var(--mono); text-transform: uppercase; }
.semcover .sticker { top: 12px; right: 12px; }
.sc-btn { position: absolute; z-index: 3; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 8px; background: #fff; color: #111; border: 1.5px solid #111; font: 700 .7rem var(--mono); text-transform: uppercase; cursor: pointer; box-shadow: var(--sh-sm); }
.sc-btn:focus-within { outline: 3px solid var(--violet); }
.sc-edit { position: absolute; z-index: 3; top: 10px; left: 112px; background: #fff; color: #111; border-color: #111; }
.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: #111; 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: 700 .62rem var(--mono); text-transform: uppercase; }
.un-h { display: flex; align-items: center; gap: .4rem; font: 700 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; 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: 64px; padding: .25rem .3rem; border: 1.5px solid #111; border-radius: 8px; background: var(--c); color: var(--ct, #111); font: 700 .62rem var(--mono); text-transform: uppercase; }
.un-t.c-violet { color: #fff; } .un-t b { font-size: .82rem; }
.un-list li.u-today .un-t, .un-list li.u-soon .un-t { box-shadow: 2px 2px 0 var(--red); }
.un-foot { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; border-top: 1.5px dashed var(--hair); padding-top: .7rem; }
.un-foot .chip { text-decoration: none; }
.capture .cap-spark { position: absolute; top: -12px; right: 18px; transform: rotate(12deg); }
.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 .6rem; border: 1.5px solid var(--line); border-radius: 9px; background: var(--butter-s); 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: #111; box-shadow: var(--sh-sm); text-decoration: none; }
.ovs b, .mt b, .gl b { font: 800 1.9rem/1 var(--display); } .ovs span, .mt > span, .gl span { font: 700 .66rem var(--mono); text-transform: uppercase; } .mt small { opacity: .75; }
.ovs.c-violet, .gpa-big.c-violet, .mt.c-violet, .gl.c-violet { color: #fff; }
.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: 700 .78rem var(--mono); box-shadow: var(--sh-sm); }
.course.c-violet .cr-code { color: #fff; }
.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: #fff; }
.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: 1.5px dashed 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: 2px dashed var(--line); 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: 700 .68rem var(--mono); text-transform: uppercase; 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: 1.5px dashed 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: 800 3rem/1 var(--display); } .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: 1.5px solid #111; 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: 1.5px solid var(--line); font: 700 .72rem var(--mono); }
.kb-list { display: grid; gap: .55rem; }
.kb-card { position: relative; display: grid; gap: .3rem; padding: .65rem .7rem .4rem; border: 1.5px solid var(--line); 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: 700 .62rem var(--mono); text-transform: uppercase; color: var(--ink2); }
.kb-t b { font-weight: 700; font-size: .9rem; }
.kb-meta { display: flex; justify-content: space-between; align-items: center; font: 700 .68rem var(--mono); } .kb-meta .due { display: flex; gap: .25rem; align-items: center; } .kb-card.u-late .due { color: var(--red); }
.wt { padding: .05rem .35rem; border-radius: 5px; background: var(--violet); color: #fff; }
.kb-score { display: flex; align-items: center; gap: .35rem; font: 700 .68rem var(--mono); } .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: 700 .7rem var(--mono); 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: #fff; } .ex-count b { font: 800 3.4rem/1 var(--display); } .ex-count span { font: 700 .7rem var(--mono); text-transform: uppercase; }
.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: 700 .64rem var(--mono); 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: 1.5px solid #111; border-radius: 8px; background: var(--c); color: var(--ct, #111); box-shadow: 2px 2px 0 #111; cursor: pointer; display: grid; align-content: start; overflow: hidden; font-size: .78rem; }
.tb-b.c-violet { color: #fff; } .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: 3px solid var(--violet); }
.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: 700 .66rem var(--mono); text-transform: uppercase; 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: 1.5px solid #111; 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: 700 .7rem var(--mono); text-transform: uppercase; padding-top: .3rem; } .wkg-d b { font: 800 1rem var(--display); }
.wkg-d.today { background: var(--lime); border: 1.5px solid #111; 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: 4px 4px 0 #111; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .15s; }
.notebook.c-violet { color: #fff; } .notebook.c-white { background: var(--paper); color: var(--ink); }
.notebook:hover { transform: translateY(-4px) rotate(-1deg); } .notebook.on { transform: translateY(-6px); box-shadow: 4px 8px 0 #111; 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: 700 .64rem var(--mono); text-transform: uppercase; 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: 3px solid var(--violet); }
.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: 700 .66rem var(--mono); }
.nc-tags { font: 700 .66rem var(--mono); color: var(--violet); }
[data-theme="night"] .note-card, [data-theme="night"] .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: 800 1.7rem/1 var(--display); } .lb-box span { font: 700 .66rem var(--mono); text-transform: uppercase; } .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: 1.5px solid #111; background: var(--lb); color: #111; font: 700 .72rem var(--mono); 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: 700 .74rem var(--mono); } .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: 6px 6px 0 #111; 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: 700 .68rem var(--mono); text-transform: uppercase; 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: 3px solid var(--violet); 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: 700 1.1rem var(--mono); } .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: 1.5px dashed 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: 1.5px solid #111; font: 700 .64rem var(--mono); text-transform: uppercase; 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: #111; } .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: 4px 4px 0 #111, 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: 3px solid var(--violet); }
.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: 1.5px solid #111; border-radius: 5px; background: #fff; color: #111; font: 700 .58rem var(--mono); text-transform: uppercase; 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: 1.5px solid var(--line); 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: 700 .66rem var(--mono); text-transform: uppercase; }
.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: rgb(255 255 255 / .6); }
[data-theme="night"] .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: 700 .62rem var(--mono); text-transform: uppercase; }
.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: 700 .66rem var(--mono); text-transform: uppercase; } .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: 1.5px dashed 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: 2px solid var(--line); 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: 2.5px solid #111; border-radius: 22px; box-shadow: 8px 8px 0 #111; overflow: hidden; color: #111; container-type: inline-size; }
.sid-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5cqi 5.5cqi 4cqi;
  background: radial-gradient(circle at 92% 8%, var(--butter) 0 13%, transparent 13.5%), radial-gradient(circle at 105% 105%, var(--pink) 0 30%, transparent 30.5%), linear-gradient(135deg, var(--lilac) 0%, #E8DEFF 55%, #FFE2EB 100%); }
.sid-face::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(17 17 17 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(17 17 17 / .06) 1px, transparent 1px); background-size: 4.5cqi 4.5cqi; pointer-events: none; }
.sid-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.sid-uni { font: 800 4.2cqi/1 var(--display); letter-spacing: -.02em; padding: 1cqi 2.2cqi; background: #fff; border: 2px solid #111; border-radius: 2cqi; box-shadow: 2px 2px 0 #111; max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sid-chip { width: 11cqi; height: 8.5cqi; border-radius: 1.8cqi; border: 2px solid #111; background: linear-gradient(90deg, transparent 32%, #111 32% 36%, transparent 36% 64%, #111 64% 68%, transparent 68%), linear-gradient(transparent 45%, #111 45% 55%, transparent 55%), linear-gradient(135deg, #F5D06A, #E0A93B); }
.sid-main { position: relative; flex: 1; display: grid; grid-template-columns: 26cqi 1fr; gap: 4.5cqi; align-items: center; margin-top: 2.5cqi; min-height: 0; }
.sid-photo { position: relative; aspect-ratio: 4 / 5; border: 2.5px solid #111; border-radius: 3cqi; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 3px 3px 0 #111; display: grid; }
.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: repeating-linear-gradient(45deg, #fff 0 8px, #F4F1EA 8px 16px); } .sid-ph .ic { width: 12cqi; height: 12cqi; } .sid-ph small { font: 700 2.6cqi var(--mono); text-transform: uppercase; }
.sid-cam { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 7.5cqi; height: 7.5cqi; border-radius: 50%; background: var(--lime); border: 2px solid #111; } .sid-cam .ic { width: 4cqi; height: 4cqi; }
.sid-photo:hover .sid-cam { background: var(--butter); } .sid-photo:focus-within { outline: 3px solid var(--violet); }
.sid-info { display: grid; align-content: center; gap: .2rem; min-width: 0; }
.sid-label { justify-self: start; font: 700 2.4cqi var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: .5cqi 1.6cqi; background: #111; color: #fff; border-radius: 1.2cqi; }
.sid-name { font: 800 6.4cqi/1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.sid-pro { font: 700 2.6cqi var(--mono); }
.sid-info dl { margin: 1.5cqi 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqi 2cqi; }
.sid-info dt { font: 700 2.1cqi var(--mono); text-transform: uppercase; opacity: .65; } .sid-info dd { margin: 0; font: 700 3cqi/1.15 var(--sans); overflow-wrap: anywhere; }
.sid-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 3cqi; margin-top: 2cqi; font: 700 2.6cqi var(--mono); }
.barcode { height: 5.5cqi; width: 36cqi; fill: #111; background: #fff; padding: 2px 4px; border: 1.5px solid #111; border-radius: 4px; }
.sid-back { background: linear-gradient(135deg, #111 0 100%); color: #fff; justify-content: center; gap: 3cqi; }
.sid-back::before { background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px); }
.sid-back .sid-label { background: var(--lime); color: #111; 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; padding: 2cqi; border: 2px solid #fff; border-radius: 2cqi; } .sid-stats b { font: 800 6cqi/1 var(--display); color: var(--lime); } .sid-stats span { font: 700 2.2cqi var(--mono); text-transform: uppercase; }
.sid-back p { position: relative; margin: 0; font-size: 3cqi; } .sid-brand { font: 700 2.4cqi var(--mono) !important; text-transform: uppercase; opacity: .6; }
.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: 1.5px solid #111; 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: 1.5px solid var(--line); 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: 1.5px solid #111; 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: 700 .64rem var(--mono); text-transform: uppercase; 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: 3px solid var(--violet); }
.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: 700 .64rem var(--mono); text-transform: uppercase; 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: 700 .74rem var(--mono); } .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: 700 .64rem var(--mono); text-transform: uppercase; 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: 1.5px solid #111; background: var(--c); color: #111; 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: 700 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); padding: 0 .3rem; }
.mp-d { display: grid; align-content: center; font: 700 .78rem var(--mono); text-transform: uppercase; } .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(--ink3); 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: 1.5px solid #111; } .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: 1.5px solid #111; 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: 1.5px solid #111; border-radius: 8px; background: var(--lime); color: #111; font: 700 .8rem var(--mono); 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: 1.5px solid #111; border-radius: 8px; background: var(--orange); color: #111; font: 700 .62rem var(--mono); text-transform: uppercase; } .g-date b { font: 800 1.2rem/1 var(--display); }
.result { font: 700 .78rem var(--mono); padding: .15rem .45rem; border-radius: 6px; border: 1.5px solid #111; } .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: 6px 6px 0 #111; }
.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: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .pomo-face small { font: 700 .66rem var(--mono); text-transform: uppercase; 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: 700 .7rem var(--mono); text-transform: uppercase; } .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: 1.5px dashed var(--hair); }
.ci-row > span { font: 700 .72rem var(--mono); text-transform: uppercase; }
.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: 1.5px solid var(--line); 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: 700 .68rem var(--mono); text-transform: uppercase; 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: 1.5px dashed 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: 700 .64rem var(--mono); text-transform: uppercase; 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: 1.5px dashed 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: #111; 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: #fff; }
.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: 700 .62rem var(--mono); text-transform: uppercase; 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: 1.5px solid var(--line); border-radius: 10px; background: var(--paper2); width: 100%; box-sizing: border-box; }
.mn-d { font: 700 .64rem var(--mono); text-transform: uppercase; 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: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); }
.ev-d { display: grid; justify-items: center; width: 46px; padding: .2rem; border: 1.5px solid #111; border-radius: 8px; background: var(--ec, var(--butter)); color: #111; font: 700 .6rem var(--mono); text-transform: uppercase; } .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: 1.5px solid #111; } .ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev .r-t { min-width: 140px; }
.rsvp { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.rsvp button { all: unset; cursor: pointer; padding: .2rem .5rem; font: 700 .62rem var(--mono); text-transform: uppercase; } .rsvp button + button { border-left: 1.5px solid var(--line); }
.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: 700 .64rem var(--mono); text-transform: uppercase; 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: 700 .7rem var(--mono); } .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: 700 .54rem var(--mono); text-transform: uppercase; 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 #111; }
.cal-d small { font: 700 .6rem var(--mono); 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: 1.5px solid var(--line); 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: 1.5px solid #111; background: var(--sky); color: #111; font: 700 .62rem var(--mono); text-transform: uppercase; } .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: 1.5px dashed 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: 6px 6px 0 var(--shadow); }
.g-n { position: absolute; top: .6rem; right: .8rem; font: 700 .72rem var(--mono); color: var(--ink3); }
.g-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c); border: var(--b); color: #111; } .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(--line); stroke-width: 2; }
.chart .axis { fill: var(--ink2); font: 700 11px var(--mono); }
.chart .hit { fill: transparent; } .chart .mark:focus { outline: none; } .chart .mark:hover .bar-mark { opacity: .8; }
.c1 { --c: var(--violet); } .c2 { --c: var(--lime); } .c3 { --c: var(--sky); } .c4 { --c: var(--pink); } .c5 { --c: var(--butter); } .c6 { --c: var(--orange); }
.bar-mark { fill: var(--c, var(--violet)); stroke: var(--line); stroke-width: 1.5; } .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(--line); stroke-width: 2; }
.donut-seg { fill: var(--c); stroke: var(--line); stroke-width: 1.5; } .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: 800 1.3rem var(--display); } .donut-mid span { font: 700 .62rem var(--mono); text-transform: uppercase; 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: 700 .68rem var(--mono); text-transform: uppercase; 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: 1.5px solid var(--line); }
.tip { position: fixed; z-index: 4500; transform: translate(-50%, -100%); background: #111; color: #fff; padding: .35rem .6rem; border-radius: 7px; font: 700 .74rem var(--mono); 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: 8px 8px 0 #111; }
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: 1.5px dashed 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: 700 .62rem var(--mono); text-transform: uppercase; 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: 2px solid #111; 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: 700 .7rem var(--mono); }
.ed-add { width: 100px; height: 100px; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; cursor: pointer; font: 700 .64rem var(--mono); text-transform: uppercase; 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 #111; 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 #111; 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: 8px 8px 0 #111 !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); border-right: var(--b); background: #C99863; background-image: radial-gradient(circle at 70% 60%, rgb(90 55 25 / .35) 0 1.4px, transparent 2px), radial-gradient(circle at 20% 30%, rgb(255 255 255 / .14) 0 1.5px, transparent 2px); background-size: 13px 7px, 9px 11px; box-shadow: inset 0 0 0 14px #B98552; }
.aa-board { position: absolute; inset: 0; }
.aa-note { position: absolute; padding: 1.2rem 1rem; width: 170px; background: var(--butter); border: 1.5px solid #111; font: 700 .95rem var(--sans); box-shadow: 3px 6px 0 rgb(0 0 0 / .5); color: #111; }
.aa-note.n1 { top: 12%; left: 10%; transform: rotate(-5deg); } .aa-note.n2 { top: 16%; right: 12%; background: var(--pink); transform: rotate(4deg); } .aa-note.n3 { top: 44%; left: 46%; background: var(--lime); transform: rotate(-2deg); }
.aa-pol { position: absolute; top: 36%; left: 12%; width: 150px; padding: 8px 8px 0; background: #fff; border: 1.5px solid #111; transform: rotate(6deg); box-shadow: 3px 6px 0 rgb(0 0 0 / .5); } .aa-pol i { display: block; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, #FFD84D 0 18%, transparent 19%), linear-gradient(#63B3FF 55%, #6FD6A0 55%); } .aa-pol b { display: block; padding: .4rem 0 .5rem; text-align: center; font: 700 .72rem var(--mono); color: #111; }
.aa-over { position: relative; z-index: 2; padding: 1.4rem; background: var(--paper); border: var(--b); border-radius: 18px; box-shadow: 8px 8px 0 #111; max-width: 520px; }
.aa-lede { margin: .9rem 0; font-size: 1.02rem; color: var(--ink2); }
.aa-keys { display: flex; flex-wrap: wrap; gap: .4rem; }
.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) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .search { width: 140px; }
}
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; } .hg-side { grid-template-columns: 1fr 1fr; } .hg-side .semcover, .hg-side .mini-stats { grid-column: auto; }
  .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: 720px) {
  body { font-size: .92rem; }
  .tb-row { flex-wrap: wrap; gap: .5rem; padding: .5rem .7rem .4rem; }
  .hk { flex: none; padding: .42rem .6rem .4rem; } .search { display: none; } .tb-date { display: none; }
  .hub { padding: 1rem .7rem 2rem; } .tab-body { padding: 1rem .6rem 1.1rem; border-radius: 0 14px 14px 14px; gap: 1rem; }
  .card { padding: 1rem; } .card.has-strip { padding-top: 1.45rem; } .hh-title { font-size: 2.2rem; }
  .hg-side { grid-template-columns: 1fr; }
  .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; } }
@media (max-width: 1240px) and (min-width: 721px) { .hk { padding: .45rem .5rem .42rem; font-size: .64rem; gap: .3rem; } .hkeys { gap: .35rem; } .hk .ic { width: 14px; height: 14px; } }
.ci-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; align-items: start; }
