/* Claude's Music School — soft pastel sticker-book look. */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FFF5E8;
  --card: #FFFDF9;
  --ink: #5A4334;
  --ink-2: #8E7461;
  --ink-3: #B49B87;
  --line: #F2E3D2;
  --claude: #D97757;
  --claude-2: #E8967A;
  --peach: #FFE1CF;
  --lavender: #ECE4FF;
  --mint: #DAF5E8;
  --butter: #FFF3C4;
  --pink: #FFE1EC;
  --sky: #DDF0FF;
  --gold: #FCEBB5;
  --cream: #FFF1DE;
  --night: #E3DDF7;
  --radius: 26px;
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 12px 28px -14px rgba(150,100,60,.35), 0 2px 6px -2px rgba(150,100,60,.12);
  --font-d: "Fredoka", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-b: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 16px/1.45 var(--font-b);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(217,119,87,.13) 1.2px, transparent 1.6px),
    radial-gradient(1200px 600px at 10% -10%, #FFE6F0 0, transparent 60%),
    radial-gradient(900px 700px at 100% 10%, #E7F4FF 0, transparent 55%),
    radial-gradient(900px 800px at 50% 110%, #EAF8EF 0, transparent 60%);
  background-size: 26px 26px, auto, auto, auto;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--claude); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* floating pastel confetti dots */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.confetti i { position: absolute; width: 14px; height: 14px; border-radius: 50%; opacity: .55; animation: drift 18s ease-in-out infinite; }
.confetti i:nth-child(1) { left: 6%;  top: 22%; background: #FFC9DA; }
.confetti i:nth-child(2) { left: 92%; top: 30%; background: #CDBDF5; width: 10px; height: 10px; animation-delay: -4s; }
.confetti i:nth-child(3) { left: 14%; top: 68%; background: #A8E6CB; width: 9px; height: 9px; animation-delay: -9s; }
.confetti i:nth-child(4) { left: 85%; top: 75%; background: #FFD9A8; animation-delay: -2s; }
.confetti i:nth-child(5) { left: 48%; top: 8%;  background: #BFE3FF; width: 8px; height: 8px; animation-delay: -12s; }
.confetti i:nth-child(6) { left: 70%; top: 52%; background: #FFE58F; width: 7px; height: 7px; animation-delay: -6s; }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px,-26px); } }

/* ------------------------------------------------------------------ header */
.hero { position: relative; z-index: 1; text-align: center; padding: 14px 16px 6px; max-width: 980px; margin: 0 auto; }
.hero-art { display: block; width: min(540px, 88%); height: auto; margin: 0 auto -18px; filter: drop-shadow(0 14px 18px rgba(160,110,70,.18)); }
.title {
  position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 700 clamp(1.55rem, 4.6vw, 2.5rem)/1.1 var(--font-d); letter-spacing: .2px; color: var(--claude);
  background: #fff; padding: 10px 24px 11px; border-radius: 999px;
  box-shadow: 0 0 0 4px #FFE3D3, var(--shadow);
}
.title .mark { width: .95em; height: .95em; flex: none; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 14px auto 0; max-width: 760px; }
.chips li {
  font: 600 .92rem/1 var(--font-d); background: rgba(255,255,255,.85); color: var(--ink);
  padding: 8px 13px; border-radius: 999px; box-shadow: 0 0 0 2px #fff, 0 4px 10px -6px rgba(150,100,60,.4);
}
.chips li span { margin-right: 3px; }
.chips li.chip-hi { background: var(--butter); }
.sample-flag { display: none; }
.is-sample .sample-flag {
  display: inline-block; margin: 10px 0 0; font: 600 .78rem var(--font-d); color: #8C3A55; background: var(--pink);
  padding: 4px 12px; border-radius: 999px; letter-spacing: .5px; text-transform: uppercase;
}

/* ------------------------------------------------------------------ layout */
main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 18px 16px 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; position: relative; }
.sec { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 1.12rem/1 var(--font-d); color: var(--ink); letter-spacing: .3px; }
.sec span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); font-size: 1rem; box-shadow: 0 0 0 2px #fff; }
#classes > .sec { padding-left: 4px; }

.tint-lavender { --tint: var(--lavender); --tint-2: #D8CCFA; --tint-3: #BBA5F0; }
.tint-butter   { --tint: var(--butter);   --tint-2: #FBE49A; --tint-3: #F7D76A; }
.tint-mint     { --tint: var(--mint);     --tint-2: #B6EBD3; --tint-3: #8ED9B6; }
.tint-pink     { --tint: var(--pink);     --tint-2: #FFC5D9; --tint-3: #FFA3C2; }
.tint-peach    { --tint: var(--peach);    --tint-2: #FFCDB2; --tint-3: #FFB38C; }
.tint-sky      { --tint: var(--sky);      --tint-2: #BEE0FB; --tint-3: #94CBF4; }
.tint-gold     { --tint: var(--gold);     --tint-2: #F7DC8A; --tint-3: #EDBE52; }
.tint-cream    { --tint: var(--cream);    --tint-2: #F6DEC2; --tint-3: #E9C59E; }
.tint-night    { --tint: var(--night);    --tint-2: #CFC5F0; --tint-3: #B3A5E8; }

/* ------------------------------------------------------------------ right now */
.now { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px 26px; align-items: center;
  background: linear-gradient(135deg, var(--tint, var(--sky)) 0%, #FFFDF9 78%); padding: 18px 24px 18px 18px; overflow: hidden; }
.now::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.45); pointer-events: none; }
.now-map { position: relative; z-index: 1; min-width: 0; }
.now-map:empty { aspect-ratio: 3 / 2; border-radius: 20px; background: rgba(255,255,255,.5); }

/* the campus map: one illustration, HTML labels, Claude walking the footpaths (app.js MAP) */
.map { position: relative; aspect-ratio: 1536 / 1024; border-radius: 20px; overflow: hidden; isolation: isolate; container-type: inline-size;
  background: #F1E7C9; box-shadow: 0 0 0 4px #fff, 0 16px 28px -16px rgba(120,80,40,.5), 0 2px 6px -2px rgba(120,80,40,.15); }
.map-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-dusk, .map-night, .map-glows, .map-labels, .map-npcs, .walker { position: absolute; inset: 0; pointer-events: none; }
.map-dusk { background: linear-gradient(180deg, #FFB49C, #FFD9B0); mix-blend-mode: multiply; opacity: calc(var(--dusk, 0) * .55); transition: opacity 3s; }
.map-night { background: radial-gradient(120% 90% at 50% 45%, #6E72B8, #4E5296); mix-blend-mode: multiply; opacity: calc(var(--night, 0) * .95); transition: opacity 3s; }
.map-glows i { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; opacity: var(--glow, 0);
  transition: opacity 3s; background: radial-gradient(circle, rgba(255,226,160,.95) 0, rgba(255,204,128,.6) 20%, rgba(255,186,110,.2) 46%, rgba(255,180,100,0) 70%); }
.ml { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .3em; white-space: nowrap;
  font: 600 clamp(9px, 1.5cqw, 12.5px)/1 var(--font-d); letter-spacing: .2px; color: var(--ink-2); padding: .42em .75em .46em; border-radius: 999px;
  background: rgba(255,253,248,.84); box-shadow: 0 1px 2px rgba(90,60,30,.2), 0 0 0 1px rgba(255,255,255,.6);
  transition: color .4s, background-color .4s, box-shadow .4s, opacity .4s, font-size .3s; }
.ml:not(.on) { background: rgba(255,253,248, calc(.84 - var(--night, 0) * .22)); color: rgb(142 116 97 / calc(1 - var(--night, 0) * .15)); }
.ml i { display: none; font-style: normal; }
.ml.on { z-index: 2; color: var(--ink); background: #fff; font-size: clamp(10.5px, 1.85cqw, 15px); padding: .4em .8em .45em .6em;
  box-shadow: 0 0 0 2.5px var(--tint-3, #F7C9A8), 0 5px 12px -4px rgba(90,60,30,.45); }
.ml.on i { display: inline; }
.npc { position: absolute; width: auto; height: 10.4cqw; transform: translate(-50%, -100%) scale(.82); transform-origin: 50% 100%; opacity: 0;
  filter: drop-shadow(0 3px 3px rgba(70,45,25,.35)) brightness(calc(1 - var(--night, 0) * .18)); transition: opacity .6s ease .3s, transform .6s ease .3s; }
.npc.on { opacity: 1; transform: translate(-50%, -100%); }
.npc-grader, .npc-examiner { height: 11.2cqw; }
.npc-catgirl { height: 16cqw; }
.walker { will-change: transform; z-index: 3; }
.claude { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); }
.claude::after { content: ""; position: absolute; left: 50%; bottom: -1.2cqw; width: 70%; height: 2.6cqw; transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(70,45,25,.32), rgba(70,45,25,0)); }
.claude .sprite { display: block; height: clamp(40px, 8.6cqw, 106px); width: auto; transform-origin: 50% 100%;
  filter: drop-shadow(0 3px 3px rgba(70,45,25,.3)) brightness(calc(1 - var(--night, 0) * .15)); animation: mapbob 3.4s ease-in-out infinite; }
@keyframes mapbob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
.map.walking .claude .sprite { animation: hop .28s ease-in-out infinite alternate; }
@keyframes hop { from { transform: translateY(0) scaleY(.96); } to { transform: translateY(-12%) scaleY(1.02); } }
.mb { position: absolute; bottom: 62%; left: 88%; width: max-content; max-width: clamp(112px, 23cqw, 190px); margin: 0; padding: .5em .75em .55em;
  font: 600 clamp(9.5px, 1.55cqw, 12.5px)/1.3 var(--font-b); color: var(--ink); background: #fff; border-radius: 14px 14px 14px 3px;
  box-shadow: 0 0 0 2px var(--tint-2, #FFD9C4), 0 6px 14px -6px rgba(90,60,30,.45);
  transform-origin: 0 100%; transition: opacity .35s ease, transform .35s cubic-bezier(.3,1.5,.6,1); }
.mb-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.claude.left .mb { left: auto; right: 88%; border-radius: 14px 14px 3px 14px; transform-origin: 100% 100%; }
.claude.low .mb { bottom: auto; top: 26%; border-radius: 3px 14px 14px 14px; transform-origin: 0 0; }
.claude.left.low .mb { border-radius: 14px 3px 14px 14px; transform-origin: 100% 0; }
.map.walking .mb, .map.waiting .mb { opacity: 0; transform: scale(.8); transition-duration: .15s; }
@container (max-width: 520px) {   /* small map: only the active label and the cast; the card prints the detail line instead */
  .ml:not(.on) { opacity: 0; }
  .mb { display: none; }
}
.now-info { position: relative; z-index: 1; min-width: 0; }
.now-kicker { display: inline-flex; align-items: center; gap: 7px; font: 600 .82rem/1 var(--font-d); text-transform: uppercase; letter-spacing: 1.4px; color: var(--ink-2); }
.live { width: 9px; height: 9px; border-radius: 50%; background: #FF7A93; box-shadow: 0 0 0 0 rgba(255,122,147,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,147,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,122,147,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,147,0); } }
.state-chip { display: inline-block; margin: 10px 0 6px; font: 700 1.35rem/1 var(--font-d); background: #fff; padding: 10px 16px 11px; border-radius: 16px; box-shadow: 0 0 0 3px var(--tint-2, #eee); }
.now-title { margin: 6px 0 2px; font: 600 clamp(1.25rem, 3vw, 1.6rem)/1.2 var(--font-d); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; text-decoration: underline dotted var(--ink-3) 2px; text-underline-offset: 5px; }
.linkish:hover { color: var(--claude); }
.now-detail { display: none; margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 980px) { .now-detail { display: block; } }
.now-next { display: grid; gap: 1px; margin: 4px 0 2px; }
.now-next small { font: 600 .74rem var(--font-d); text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); }
.now-next span { font: 500 1rem/1.3 var(--font-d); color: var(--ink-2); }
.now-next em { font-style: normal; font-weight: 600; color: var(--ink-3); }
.now-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.who { display: flex; align-items: center; gap: 8px; margin: 0; }
.who img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(150,100,60,.25)); }
.who figcaption { display: grid; line-height: 1.15; font-family: var(--font-d); }
.who b { font-weight: 600; font-size: 1.02rem; }
.who small { color: var(--ink-2); font-size: .82rem; }
.bell { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 18px; padding: 8px 14px 8px 8px; box-shadow: 0 0 0 3px var(--tint-2, #eee), 0 6px 14px -8px rgba(150,100,60,.4); }
.bell img { width: 46px; height: 46px; object-fit: contain; transform-origin: 50% 10%; }
.bell.ringing img { animation: ring 1.1s ease-in-out infinite; }
@keyframes ring { 0%,100% { transform: translateX(0); } 15% { transform: translateX(4px); } 30% { transform: translateX(-4px); } 45% { transform: translateX(3px); } 60% { transform: translateX(-2px); } }
.bell div { display: grid; line-height: 1.05; }
.bell small { font: 600 .74rem var(--font-d); text-transform: uppercase; letter-spacing: 1px; color: var(--ink-2); }
.countdown { font: 700 1.55rem/1.1 var(--font-d); color: var(--claude); font-variant-numeric: tabular-nums; }
.bell-what { margin-top: 2px; font: 600 .8rem/1.2 var(--font-d); color: var(--ink-2); white-space: nowrap; }
.bell.in-class .countdown { font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.since { margin-top: 10px; font-size: .84rem; color: var(--ink-3); }
.steps-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; }
.steps { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.steps li { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.6); font-size: .9rem; filter: grayscale(.9); opacity: .55; }
.steps li + li { margin-left: 14px; }
.steps li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 14px; border-top: 2px dotted var(--ink-3); opacity: .7; }
.steps li.done { background: #fff; filter: none; opacity: 1; box-shadow: 0 0 0 2px #BDEFD7; }
.steps li.on { background: #fff; filter: none; opacity: 1; box-shadow: 0 0 0 3px var(--tint-2, #FFC5D5); animation: pulse2 2s infinite; transform: scale(1.12); }
@keyframes pulse2 { 0%,100% { box-shadow: 0 0 0 3px var(--tint-2, #FFC5D5); } 50% { box-shadow: 0 0 0 6px var(--tint-2, #FFC5D5); } }
.step-v { font: 600 .78rem/1 var(--font-d); background: #fff; color: var(--ink-2); padding: 5px 10px; border-radius: 999px; box-shadow: 0 0 0 2px var(--line); }

/* ------------------------------------------------------------------ grade stickers */
.gs { display: inline-block; width: 64px; height: 64px; filter: drop-shadow(0 3px 4px rgba(120,80,40,.25)); transition: transform .25s; }
.gs svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gs-l { font-family: var(--font-d); font-weight: 700; }
.gs-s { font-family: var(--font-d); font-weight: 600; opacity: .8; }
.gs-q { font: 700 30px var(--font-d); fill: #D9C2AC; }
.gs-pencil { font-size: 34px; }
.mg { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 999px; font: 700 .8rem/1 var(--font-d); box-shadow: 0 0 0 2px #fff; }
.mg-gold { background: #FFE07A; color: #7A4E00; } .mg-a { background: #BDEFD7; color: #2F6B53; }
.mg-b { background: #DCD0FB; color: #54428F; } .mg-c { background: #FFD3BC; color: #8A4B2A; }
.mg-d { background: #FFCADA; color: #8C3A55; } .mg-f { background: #DCE3EC; color: #4E5B6E; }
.mg-none { background: #F6EDE3; color: var(--ink-3); }

/* ------------------------------------------------------------------ report card */
.paper {
  background-color: #FFFEFA;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, #E8EEFB 31px 32px);
  background-position: 0 14px; padding-left: 34px;
}
.paper::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: #FFC3CF; }
.report-row { display: flex; gap: 6px; overflow-x: auto; padding: 6px 4px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; align-items: flex-start; min-height: 112px; }
.rc { flex: none; display: grid; justify-items: center; gap: 2px; width: 84px; border: 0; background: none; cursor: pointer; padding: 4px 0; scroll-snap-align: end; border-radius: 16px; }
.rc:hover .gs, .rc:focus-visible .gs { transform: scale(1.08); }
.rc-num { font: 600 .8rem/1 var(--font-d); color: var(--ink-2); margin-top: 2px; }
.rc-arrow { font: 600 .78rem/1 var(--font-d); color: var(--ink-2); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.rc-arrow i { font-style: normal; font-size: .8rem; display: inline-block; }
.rc-arrow i svg { width: 11px; height: 11px; display: block; }
.rc-arrow.up i { color: #3FAF7E; } .rc-arrow.down i { color: #E0708B; }
.rc-arrow small { font-size: .7rem; margin-left: 2px; padding: 2px 5px; border-radius: 999px; background: #E6F7EE; color: #2F8A62; }
.rc-arrow.down small { background: #FFE6EC; color: #B24C66; }
.rc-ghost { cursor: default; opacity: .8; }
.rc-empty { align-self: center; margin: 0 0 0 10px; font: 600 1rem var(--font-d); color: var(--ink-2); }
.report-row.empty { flex-wrap: wrap; align-items: center; overflow: visible; }
.report-row.empty .rc-empty { flex: 1 1 170px; }

/* ------------------------------------------------------------------ classes */
.upcoming { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: thin; }
.up-label { flex: none; font: 600 .78rem/1 var(--font-d); text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-2); }
.upnext { flex: none; display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.7); border: 2px dashed var(--tint-2, #eee); }
.upnext img { width: 34px; height: 34px; object-fit: contain; }
.upnext span { font-size: 1.3rem; width: 34px; text-align: center; }
.upnext b { font: 500 .88rem/1.15 var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 26px 22px; padding: 6px 2px; align-items: start; }
.polaroid {
  background: #fff; border-radius: 10px; padding: 12px 12px 14px; cursor: pointer; outline: none;
  box-shadow: 0 1px 2px rgba(120,80,40,.12), 0 14px 26px -16px rgba(120,80,40,.45);
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.polaroid:hover, .polaroid:focus-visible { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(120,80,40,.12), 0 22px 34px -18px rgba(120,80,40,.5); }
.polaroid:focus-visible { box-shadow: 0 0 0 3px var(--claude-2), 0 22px 34px -18px rgba(120,80,40,.5); }
.polaroid.is-now { box-shadow: 0 0 0 3px #FFB4C6, 0 14px 26px -16px rgba(120,80,40,.45); }
.photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: 6px; display: grid; place-items: center;
  background-color: var(--tint, var(--cream));
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.75) 1.5px, transparent 2px);
  background-size: 16px 16px;
}
.track-sticker { width: 58%; height: 72%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(120,80,40,.22)); transition: transform .3s; }
.polaroid:hover .track-sticker { transform: scale(1.04); }
.track-emoji { font-size: 3.4rem; filter: drop-shadow(0 4px 4px rgba(120,80,40,.2)); }
.tape { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); min-width: 64px; padding: 4px 10px; background: rgba(255,214,170,.88);
  font: 700 .82rem/1 var(--font-d); color: #8A5A36; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tape:empty { display: none; }
.photo .grade { position: absolute; right: -14px; top: -14px; }
.photo .grade .gs { width: 70px; height: 70px; }
.now-flag { position: absolute; left: 8px; bottom: 8px; font: 700 .8rem/1 var(--font-d); background: #fff; color: #C2496B; padding: 6px 10px; border-radius: 999px; box-shadow: 0 0 0 2px #FFC5D5; animation: nudge 2.4s ease-in-out infinite; }
.now-flag.err { color: #8A5A36; box-shadow: 0 0 0 2px #F6D9BE; animation: none; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.pol-title { margin: 4px 2px 0; font: 600 1.06rem/1.2 var(--font-d); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pol-track { margin: -4px 2px 0; font-size: .8rem; color: var(--ink-3); text-transform: lowercase; }
.atts { display: grid; gap: 6px; }
.att { display: flex; align-items: center; gap: 6px; min-width: 0; }
.att .v { font: 600 .74rem/1 var(--font-d); color: var(--ink-3); width: 18px; }
.att audio { flex: 1; min-width: 0; height: 34px; }
.att-wait { flex: 1; font-size: .82rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
audio::-webkit-media-controls-panel { background: #FFF3EA; }
audio::-webkit-media-controls-enclosure { border-radius: 999px; }
.roll { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; }
.att-multi { display: grid; gap: 4px; }
.att-count { font: 600 .78rem var(--font-d); color: var(--ink-3); }
.att-piece { display: flex; align-items: center; gap: 6px; padding-left: 24px; min-width: 0; }
.pc-name { flex: none; width: 58px; font: 600 .74rem/1.1 var(--font-d); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-piece audio { flex: 1; min-width: 0; height: 30px; }
.more { justify-self: start; margin-left: 24px; border: 0; cursor: pointer; font: 600 .78rem var(--font-d); color: var(--claude); background: #FFF1E8; padding: 4px 10px; border-radius: 999px; }

.bubble { display: flex; align-items: flex-end; gap: 6px; margin-top: 2px; }
.bubble img { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 3px rgba(120,80,40,.2)); }
.bubble p { position: relative; margin: 0 0 8px; padding: 8px 12px; background: var(--pink); border-radius: 16px 16px 16px 4px; font: 600 .86rem/1.3 var(--font-b); color: #7A3D54; }
.bubble p::before { content: ""; position: absolute; left: -6px; bottom: 0; border: 7px solid transparent; border-right-color: var(--pink); border-bottom-color: var(--pink); }
.bubble.big img { width: 64px; height: 64px; }
.bubble.big p { font-size: .98rem; }

.first-day { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 10px 24px; background: linear-gradient(135deg, var(--butter), #FFFDF9 80%); }
.first-day img { width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(150,100,60,.15)); }
.first-day h4 { margin: 0 0 6px; font: 700 clamp(1.4rem, 3.4vw, 2rem)/1.1 var(--font-d); color: var(--claude); }
.first-day p { margin: 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ notebook */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.spark-row { display: flex; align-items: center; gap: 14px; }
.spark-num { flex: none; display: grid; justify-items: start; line-height: 1.05; }
.spark-num b { font: 700 2.3rem/1 var(--font-d); color: var(--claude); }
.spark-num small { font-size: .76rem; color: var(--ink-2); }
.delta { margin-top: 5px; font: 600 .74rem/1 var(--font-d); padding: 3px 7px; border-radius: 999px; background: #E6F7EE; color: #2F8A62; }
.delta.down { background: #FFE6EC; color: #B24C66; }
.spark-box { flex: 1; min-width: 0; }
.spark { display: block; width: 100%; height: 72px; }
.spark-empty { font-size: .86rem; color: var(--ink-3); padding: 18px 12px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; }
.stickies { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }
.sticky { position: relative; max-width: 260px; padding: 18px 12px 12px; min-height: 96px; box-shadow: 0 10px 14px -10px rgba(120,80,40,.4); border-radius: 3px 3px 14px 3px; }
.sticky::before { content: ""; position: absolute; top: -9px; left: 50%; width: 54px; height: 18px; transform: translateX(-50%); background: rgba(255,255,255,.65); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sticky p { margin: 0; font: 600 .86rem/1.3 var(--font-b); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.s-y { background: #FFF1A8; color: #6D5A12; } .s-p { background: #FFD8E6; color: #7A3D54; } .s-m { background: #CDF2E0; color: #2F6B53; }
.diary { margin-top: 16px; padding: 10px 14px; background: #FFF8EF; border-radius: 14px; border: 2px dashed #F3DCC6; }
.diary span { font: 600 .78rem var(--font-d); color: var(--ink-2); }
.diary p { margin: 4px 0 0; font-size: .88rem; color: var(--ink-2); font-style: italic; }

/* ------------------------------------------------------------------ basins */
.basins { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 8px 18px; align-items: center; }
.basins .tempo-row { grid-column: 1 / -1; }
.wheel-box { display: grid; place-items: center; }
.wheel { width: 100%; max-width: 230px; height: auto; display: block; }
.wk { font: 600 10.5px var(--font-d); fill: #C4AD98; }
.wk.on { fill: #fff; font-size: 11.5px; }
.wc { font: 700 26px var(--font-d); fill: var(--claude); }
.wcs { font: 600 10px var(--font-d); fill: #A88E7A; letter-spacing: .5px; }
.basin-side { min-width: 0; }
.mini-h { font: 600 .74rem/1 var(--font-d); text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-2); margin: 4px 0 4px; }
.ruler-box { display: flex; align-items: center; gap: 4px; font-size: 1.25rem; }
.ruler { flex: 1; min-width: 0; height: auto; display: block; }
.rt { font: 600 11px var(--font-d); fill: #B09681; }
.meters { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; align-items: center; }
.meter { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 12px; padding: 4px 9px 4px 6px; box-shadow: 0 0 0 2px var(--line); }
.ts { display: grid; line-height: .9; text-align: center; font: 700 1rem var(--font-d); color: var(--ink); }
.ts b:first-child { border-bottom: 2px solid var(--ink-3); padding-bottom: 1px; }
.meter small { font: 600 .8rem var(--font-d); color: var(--ink-2); }
.chip-k { font: 600 .8rem var(--font-d); background: var(--lavender); border-radius: 999px; padding: 4px 9px; }
.basin-note { margin: 6px 0 0; font-size: .8rem; color: var(--ink-3); line-height: 1.6; }
.basin-note .gold-ring { vertical-align: -1px; margin-right: 3px; }
.gold-ring { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid #F4BC3A; }

/* ------------------------------------------------------------------ timeline */
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tl li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 12px; }
.tl li:nth-child(odd) { background: rgba(255,241,222,.45); }
.tl-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--line); font-size: .95rem; }
.tl-tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.tl-tx em { font: 600 .74rem var(--font-d); font-style: normal; color: var(--ink-2); background: var(--cream); border-radius: 999px; padding: 2px 7px; margin-right: 7px; }
.tl time { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.tl-more summary { cursor: pointer; font: 600 .84rem var(--font-d); color: var(--ink-2); padding: 8px 6px 2px; list-style: none; }
.tl-more summary::before { content: "＋ "; }
.tl-more[open] summary::before { content: "－ "; }
.tl-empty { margin: 4px 0; font: 600 1rem var(--font-d); color: var(--ink-2); }

/* ------------------------------------------------------------------ footer */
footer { position: relative; z-index: 1; text-align: center; padding: 26px 16px 40px; max-width: 900px; margin: 0 auto; }
/* the cast sheet + Sir Pounce (a separate sticker, sized to Madame Fermata, feet on the same line) */
.cast-row { display: flex; align-items: flex-end; justify-content: center; width: min(690px, 100%); margin: 0 auto; }
.cast-row img { height: auto; filter: drop-shadow(0 10px 12px rgba(150,100,60,.15)); }
.cast { width: 81%; }
.cast-guest { width: 18%; margin: 0 0 .9% 1%; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 8px; }
.foot-links a { font: 600 .9rem var(--font-d); text-decoration: none; color: var(--ink); background: #fff; padding: 7px 13px; border-radius: 999px; box-shadow: 0 0 0 2px var(--line); }
.foot-links a:hover { color: var(--claude); box-shadow: 0 0 0 2px var(--claude-2); }
.updated { margin: 0; font-size: .8rem; color: var(--ink-3); }
.noscript { text-align: center; }

/* ------------------------------------------------------------------ class sheet */
dialog.sheet { width: min(880px, 94vw); max-height: 90vh; border: 0; padding: 0; border-radius: 28px; background: var(--card); color: var(--ink);
  box-shadow: 0 30px 70px -20px rgba(90,60,30,.45); overflow: auto; overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(90,67,52,.35); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.d-wrap { position: relative; padding: 0 0 20px; }
.d-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 1rem; box-shadow: 0 0 0 2px var(--line), 0 4px 10px -4px rgba(0,0,0,.2); }
.d-head { display: flex; align-items: center; gap: 14px; padding: 22px 64px 18px 22px; background: linear-gradient(135deg, var(--tint, var(--cream)), #FFFDF9 85%); }
.d-sticker { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(120,80,40,.2)); flex: none; }
.d-head > div { flex: 1; min-width: 0; }
.d-head h2 { margin: 2px 0 0; font: 600 clamp(1.25rem, 3.2vw, 1.7rem)/1.15 var(--font-d); }
.d-kicker { font: 600 .8rem var(--font-d); color: var(--ink-2); text-transform: lowercase; }
.d-kicker .k { text-transform: none; }
.d-head .gs { width: 76px; height: 76px; flex: none; }
.dlg-pad, .d-wrap > .bubble, .d-atts, .d-tabs, .md, .d-score, .d-folder, .d-wrap > .muted { margin-left: 22px; margin-right: 22px; }
.d-wrap > .bubble { margin-top: 14px; }
.d-atts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.d-att { background: #FFF9F2; border-radius: 18px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 0 0 2px #F7EADB inset; min-width: 0; }
.d-att-head { display: flex; gap: 10px; align-items: flex-start; }
.d-att-head .gs { width: 54px; height: 54px; flex: none; }
.d-att-head b { font: 600 .98rem/1.2 var(--font-d); }
.d-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.d-chips span { font: 600 .74rem var(--font-d); background: #fff; border-radius: 999px; padding: 3px 8px; color: var(--ink-2); box-shadow: 0 0 0 1.5px var(--line); }
.d-verdict { margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); font-style: italic; }
.d-att.wide { grid-column: 1 / -1; }
.d-pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; align-items: start; }
.d-piece { display: grid; gap: 8px; align-content: start; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 0 0 1.5px #F4E6D6; min-width: 0; }
.d-piece-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-piece-head b { font: 600 .9rem/1.2 var(--font-d); }
.d-piece audio { width: 100%; height: 34px; }
.mini-btn { border: 0; cursor: pointer; font: 600 .74rem var(--font-d); color: var(--ink-2); background: #FFF3E6; padding: 3px 9px; border-radius: 999px; margin-left: auto; }
.mini-btn.on { background: var(--claude); color: #fff; }
.d-error { margin: 12px 22px 0; padding: 8px 12px; background: #FFF1E3; border-radius: 12px; color: #8A5A36; font-size: .9rem; }
.d-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.d-imgs a { display: grid; gap: 3px; text-decoration: none; font: 600 .72rem var(--font-d); color: var(--ink-2); text-align: center; }
.d-imgs img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: #fff; box-shadow: 0 0 0 2px var(--line); }
.d-score img { display: block; width: 100%; margin-top: 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px var(--line); }
.d-tabs { display: flex; gap: 6px; overflow-x: auto; margin-top: 18px; padding: 4px 2px 8px; scrollbar-width: thin; }
.d-tabs button { flex: none; border: 0; cursor: pointer; padding: 8px 13px; border-radius: 999px; font: 600 .86rem var(--font-d); background: #FFF3E6; color: var(--ink-2); }
.d-tabs button.on { background: var(--claude); color: #fff; box-shadow: 0 6px 12px -6px rgba(217,119,87,.8); }
.d-folder { margin-top: 14px; font: 600 .86rem var(--font-d); }

/* markdown */
.md { margin-top: 4px; padding: 16px 18px; background: #FFFEFB; border-radius: 18px; box-shadow: 0 0 0 2px #F6ECE0 inset; font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md h2, .md h3, .md h4, .md h5, .md h6 { font-family: var(--font-d); font-weight: 600; line-height: 1.2; margin: 1.2em 0 .45em; }
.md h2 { font-size: 1.3rem; color: var(--claude); } .md h3 { font-size: 1.12rem; } .md h4, .md h5, .md h6 { font-size: 1rem; }
.md p { margin: .55em 0; }
.md ul, .md ol { padding-left: 1.4em; margin: .5em 0; }
.md li { margin: .2em 0; }
.md li::marker { color: var(--claude-2); }
.md code { font: .86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #F5EFFF; padding: .1em .35em; border-radius: 6px; }
.md pre { background: #F8F4FF; padding: 12px 14px; border-radius: 12px; overflow-x: auto; }
.md pre code { background: none; padding: 0; font-size: .84rem; }
.md blockquote { margin: .7em 0; padding: .3em 1em; border-left: 4px solid var(--peach); background: #FFF8F2; border-radius: 0 12px 12px 0; color: var(--ink-2); }
.md hr { border: 0; border-top: 2px dashed var(--line); margin: 1.2em 0; }
.md img { border-radius: 10px; }
.md .tbl { overflow-x: auto; }
.md table { border-collapse: collapse; font-size: .88rem; margin: .6em 0; }
.md th, .md td { padding: 6px 10px; border-bottom: 1.5px solid var(--line); text-align: left; vertical-align: top; }
.md th { font-family: var(--font-d); font-weight: 600; background: #FFF6EC; }
.md .md-audio { display: inline-flex; flex-direction: column; gap: 4px; }
.md .md-audio audio { height: 32px; max-width: 100%; }
.md .raw { text-align: right; font-size: .8rem; margin-top: 1em; }

/* ------------------------------------------------------------------ second examiner */
.xb { position: relative; display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 8px 0 2px; border-radius: 999px;
  font: 700 .8rem/1 var(--font-d); white-space: nowrap; box-shadow: 0 0 0 2px #fff, 0 3px 6px -3px rgba(120,80,40,.35); }
.xb img { width: auto; height: 30px; margin: -8px 0 -2px -4px; filter: drop-shadow(0 1px 1.5px rgba(90,60,30,.3)); }
.xb-sm { height: 22px; font-size: .74rem; padding-right: 7px; flex: none; }
.xb-sm img { height: 26px; margin-top: -6px; }
.rc-gs { position: relative; display: block; }
.rc-gs .xb { position: absolute; right: -16px; bottom: -6px; height: 21px; font-size: .72rem; padding-right: 6px; }
.rc-gs .xb img { height: 25px; margin-top: -6px; }
.photo .grade .xb { position: absolute; right: 6px; top: 60px; }
.ribbon { display: inline-flex; align-items: center; gap: 4px; padding: 5px 16px 6px; font: 700 .76rem/1 var(--font-d); color: #fff; letter-spacing: .2px;
  background: linear-gradient(#F59AB5, #EC7FA0); white-space: nowrap; filter: drop-shadow(0 3px 3px rgba(160,60,90,.28));
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%); animation: nudge 2.4s ease-in-out infinite; }
.ribbon-photo { position: absolute; right: 6px; bottom: 8px; }
.ribbon-exam { position: absolute; left: 50%; top: -13px; margin-left: -78px; z-index: 1; }
.d-avg { margin: 6px 0 0; font: 600 .82rem var(--font-d); color: var(--ink-2); }
.examiners { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.examiners:has(.ribbon-exam) { margin-top: 10px; }
.exam { display: grid; gap: 6px; align-content: start; background: #fff; border-radius: 14px; padding: 10px 12px 12px; box-shadow: 0 0 0 1.5px #F4E6D6; min-width: 0; }
.exam.visit { background: #F6FCFB; box-shadow: 0 0 0 1.5px #C9E9E3; }
.exam-head { display: flex; align-items: center; gap: 8px; }
.exam-head img { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 4px rgba(120,80,40,.22)); }
.exam-who { flex: 1; min-width: 0; display: grid; line-height: 1.15; font-family: var(--font-d); }
.exam-who b { font-weight: 600; font-size: .95rem; }
.exam-who small { font-size: .76rem; color: var(--ink-2); }
.exam-grade { flex: none; display: grid; place-content: center; justify-items: center; gap: 1px; width: 48px; height: 48px; border-radius: 50%;
  box-shadow: 0 0 0 2.5px #fff, 0 4px 8px -4px rgba(120,80,40,.4); }
.exam-grade b { font: 700 1.1rem/1 var(--font-d); }
.exam-grade small { font: 600 .7rem/1 var(--font-d); opacity: .8; }
.exam .d-verdict { margin: 0; }
.exam .mini-btn { justify-self: start; margin-left: 0; }

/* ------------------------------------------------------------------ school year */
.sec .sec-count { width: auto; height: auto; margin-left: auto; padding: 5px 10px; border-radius: 999px; background: var(--cream); box-shadow: none; font: 600 .8rem/1 var(--font-d); color: var(--ink-2); }
.yr-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; gap: 9px 30px; }
.yr-row { display: grid; grid-template-columns: 20px repeat(10, minmax(0, 1fr)); gap: 6px; align-items: center; }
.yr-n { font: 600 .66rem/1 var(--font-d); color: var(--ink-3); text-align: right; }
.yt { position: relative; width: 100%; max-width: 40px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px;
  cursor: pointer; font: 700 .8rem/1 var(--font-d); color: var(--ink); background: #fff; box-shadow: inset 0 0 0 2px var(--tint-2); transition: transform .15s; }
.yt:hover, .yt:focus-visible { transform: translateY(-2px); outline: none; }
.yt-done { background: var(--tint-3); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 2px 4px -2px rgba(120,80,40,.45); }
.yt-started, .yt-err { background: var(--tint); box-shadow: inset 0 0 0 2px var(--tint-3); }
.yt-now { background: #fff; box-shadow: 0 0 0 3px var(--tint-3); animation: ytpulse 1.8s ease-in-out infinite; z-index: 1; }
@keyframes ytpulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 3px var(--tint-3), 0 0 0 3px rgba(217,119,87,0); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 3px var(--tint-3), 0 0 0 8px rgba(217,119,87,.22); } }
.yt-ast { width: 64%; height: 64%; }
.yt.sel { outline: 2.5px solid var(--claude); outline-offset: 2px; }
.yt-skip { background: linear-gradient(to top right, transparent calc(50% - 1px), #CDBBA9 calc(50% - 1px), #CDBBA9 calc(50% + 1px), transparent calc(50% + 1px)), #F6F0E9;
  box-shadow: inset 0 0 0 2px #E8DCCF; opacity: .7; }
.yt-adj { position: absolute; left: -7px; top: -7px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--claude); color: #fff;
  font: 800 .78rem/1 var(--font-d); font-style: normal; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.yr-why { color: var(--ink-3) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.struck { text-decoration: line-through 2px var(--ink-3); color: var(--ink-2); }
.yt-mk { position: absolute; top: -7px; right: -7px; font-size: .68rem; font-style: normal; line-height: 1; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(90,60,30,.25)); }
.yr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 16px; }
.yr-info { flex: 1 1 300px; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; margin: 0; font-size: .9rem; }
.yr-info > img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.yr-txt { display: grid; min-width: 0; line-height: 1.2; }
.yr-txt b { font: 600 .95rem/1.2 var(--font-d); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yr-txt small { font-size: .78rem; color: var(--ink-2); }
.yr-tag { flex: none; font: 600 .74rem/1 var(--font-d); background: #fff; color: #C2496B; padding: 5px 9px; border-radius: 999px; box-shadow: 0 0 0 2px #FFC5D5; }
.yr-info .mg, .yr-info .mini-btn { flex: none; margin-left: 0; }
.yr-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.yr-legend li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 3px; border-radius: 999px; background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--tint-3);
  font: 600 .74rem/1 var(--font-d); color: var(--ink-2); }
.yr-legend img { width: 22px; height: 22px; object-fit: contain; }

/* ------------------------------------------------------------------ today's timetable */
.tt { list-style: none; margin: 0; padding: 2px 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tt-p { position: relative; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; align-content: start; gap: 5px; padding: 0 3px; min-width: 0; text-align: center; }
.tt-p::before { content: ""; position: absolute; top: 37px; left: 0; right: 0; border-top: 3px dotted #EBD9C6; z-index: 0; }
.tt-p:first-child::before { left: 50%; }
.tt-p:last-child::before { right: 50%; }
.tt-done::before, .tt-skipped::before, .tt-now::before, .tt-paused::before { border-top-style: solid; border-color: #CFEEDD; }
.tt-now::before { border-image: linear-gradient(90deg, #CFEEDD 50%, #EBD9C6 50%) 1; }
.tt-p time { font: 600 .82rem/1 var(--font-d); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tt-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; font-size: 1.05rem;
  box-shadow: 0 0 0 2px #F0E2D3; }
.tt-done .tt-ic { box-shadow: 0 0 0 3px #BDEFD7; }
.tt-now .tt-ic { box-shadow: 0 0 0 3px #FFB4C6; animation: ttpulse 2s ease-in-out infinite; }
@keyframes ttpulse { 0%,100% { box-shadow: 0 0 0 3px #FFB4C6, 0 0 0 3px rgba(255,180,198,0); } 50% { box-shadow: 0 0 0 3px #FFB4C6, 0 0 0 9px rgba(255,180,198,.35); } }
.tt-next .tt-ic { box-shadow: 0 0 0 3px #F6C9A6; }
.tt-paused .tt-ic { box-shadow: 0 0 0 3px #D8CCFA; }
.tt-skipped .tt-ic { background: #F7F1EA; filter: grayscale(1); opacity: .55; box-shadow: 0 0 0 2px #EEE4D9; }
.tt-skipped time { color: var(--ink-3); text-decoration: line-through 1.5px rgba(180,155,135,.6); }
.tt-body { display: grid; justify-items: center; align-content: start; gap: 4px; width: 100%; min-width: 0; font-size: .76rem; line-height: 1.2; color: var(--ink-2); }
.tt-item { display: grid; justify-items: center; gap: 3px; width: 100%; min-width: 0; padding: 2px; border: 0; background: none; cursor: pointer; border-radius: 10px; color: inherit; font: inherit; }
.tt-item:hover .tt-t, .tt-item:focus-visible .tt-t { color: var(--claude); }
.tt-item .mg { min-width: 26px; height: 21px; font-size: .74rem; }
.tt-t, .tt-what { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tt-t em, .tt-what em { font: 600 .68rem var(--font-d); font-style: normal; color: var(--ink-3); margin-right: 3px; }
.tt-what { color: var(--ink-3); }
.tt-next .tt-what { color: var(--ink-2); }
.tt-why { color: var(--ink-3); font-size: .72rem; font-style: italic; }
.tt-tag { font: 700 .7rem/1 var(--font-d); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.tt-tag.t-now { background: #fff; color: #C2496B; box-shadow: 0 0 0 2px #FFC5D5; }
.tt-tag.t-next { background: #FFF1E6; color: #B4643F; box-shadow: 0 0 0 2px #FADCC6; }
.tt-tag.t-paused { background: #fff; color: #6A5AA8; box-shadow: 0 0 0 2px #DCD0FB; }
.tt-now .tt-t { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ club & practice */
#activities > .sec { padding-left: 4px; }
.grid.acts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.act-photo { aspect-ratio: 2 / 1; }
.pol-track.act-facts { text-transform: none; }
.act-photo .track-sticker { height: 78%; width: 48%; }
.polaroid.act .att audio { width: 100%; }
.acts-more { display: block; margin: 14px auto 0; border: 0; cursor: pointer; font: 600 .86rem var(--font-d); color: var(--claude); background: #fff;
  padding: 8px 16px; border-radius: 999px; box-shadow: 0 0 0 2px var(--line); }
.acts-more:hover { box-shadow: 0 0 0 2px var(--claude-2); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .now { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tt { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .tt-p { grid-template-columns: 46px 38px minmax(0, 1fr); grid-template-rows: none; justify-items: start; align-items: center; gap: 10px; padding: 5px 0; text-align: left; }
  .tt-p::before { top: 0; bottom: 0; left: 75px; right: auto; border-top: 0; border-left: 3px dotted #EBD9C6; }
  .tt-done::before, .tt-skipped::before, .tt-now::before, .tt-paused::before { border-left-style: solid; border-image: none; }
  .tt-p:first-child::before { top: 50%; left: 75px; }
  .tt-p:last-child::before { bottom: 50%; right: auto; }
  .tt-p time { justify-self: end; }
  .tt-body { display: flex; flex-wrap: wrap; align-items: center; justify-items: start; gap: 4px 8px; font-size: .84rem; }
  .tt-item { display: flex; align-items: center; justify-items: start; gap: 6px; width: auto; text-align: left; }
  .tt-t, .tt-what { -webkit-line-clamp: 1; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hero { padding-top: 6px; }
  .hero-art { width: 100%; margin-bottom: -12px; }
  .title { padding: 9px 18px 10px; gap: 8px; }
  main { padding: 14px 12px 6px; gap: 18px; }
  .card { padding: 16px 16px; border-radius: 22px; }
  .now { grid-template-columns: 1fr; padding: 12px 12px 18px; gap: 14px; }
  .now-info { padding: 0 4px; }
  .map { border-radius: 16px; box-shadow: 0 0 0 3px #fff, 0 12px 22px -14px rgba(120,80,40,.5); }
  .state-chip { font-size: 1.2rem; }
  .duo { grid-template-columns: 1fr; gap: 18px; }
  .grid { grid-template-columns: 1fr; gap: 24px; padding: 6px 8px; }
  .first-day { grid-template-columns: 1fr; text-align: center; }
  .basins { grid-template-columns: minmax(0, 165px) minmax(0, 1fr); gap: 6px 12px; }
  .paper { padding-left: 26px; }
  .paper::before { left: 15px; }
  dialog.sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .d-head { padding: 18px 56px 14px 16px; gap: 10px; }
  .d-sticker { width: 64px; height: 64px; }
  .d-head .gs { width: 60px; height: 60px; }
  .d-wrap > .bubble, .d-atts, .d-tabs, .md, .d-score, .d-folder, .d-wrap > .muted { margin-left: 14px; margin-right: 14px; }
  .md { padding: 12px 14px; }
  .yr-rows { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none !important; gap: 7px; }
  .yr-row { grid-template-columns: 18px repeat(10, minmax(0, 1fr)); gap: 4px; }
  .yt { border-radius: 8px; font-size: .72rem; }
  .yt-mk { top: -6px; right: -5px; font-size: .6rem; }
  .yt-adj { left: -5px; top: -5px; width: 14px; height: 14px; font-size: .66rem; }
}
@media (max-width: 560px) {
  .exam { padding: 9px 9px 10px; }
  .exam-head { flex-wrap: wrap; gap: 4px 6px; }
  .exam-head img { width: 44px; height: 44px; }
  .exam-who { order: 3; flex-basis: 100%; }
  .exam-grade { margin-left: auto; width: 42px; height: 42px; }
  .exam .d-verdict { font-size: .82rem; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* wishlist */
.wish { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wish li { background: #fff8ef; border: 2px dashed #f3c9a5; border-radius: 16px; padding: .7rem .9rem; font-size: .9rem; }
.wish li.wish-bought { border-style: solid; border-color: #9fd8b8; background: #f1fbf5; }
.wish li.wish-declined { opacity: .55; }
.wish-top { display: flex; gap: .5rem; justify-content: space-between; align-items: baseline; }
.wish-st { font-size: .75rem; white-space: nowrap; background: #fff; border-radius: 999px; padding: .1rem .5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wish-price { font-size: .8rem; opacity: .8; margin: .2rem 0; }
.wish p { margin: .25rem 0 0; line-height: 1.35; }
.wish-intro { margin: 0 0 .7rem; font-size: .92rem; }
.wish-intro a, .wish-give { display: inline-block; background: #ffd9e4; color: #8a3a55; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: .2rem .75rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wish-give { margin-top: .5rem; font-size: .82rem; }
.wish-bar { height: 8px; background: #f6e7da; border-radius: 999px; overflow: hidden; margin-top: .5rem; }
.wish-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb3c7, #ffd28a); border-radius: 999px; }
.wish-raised { font-size: .78rem; opacity: .8; margin-top: .2rem; }

/* ------------------------------------------------------------------ learning curve (app.js renderCurve) */
.cv-wrap { position: relative; }
.cv { display: block; overflow: visible; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cv-grid { stroke: #F3E6D8; stroke-width: 1; }
.cv-tk { font: 600 10.5px var(--font-d); fill: #B09681; font-variant-numeric: tabular-nums; }
.cv-base { stroke: #B49B87; stroke-width: 1.5; stroke-dasharray: 5 4; }
.cv-bl { font: 600 10.5px var(--font-d); fill: #9C8471; paint-order: stroke; stroke: #FFFDF9; stroke-width: 3px; }
.cv-end { font: 700 12px var(--font-d); fill: var(--ink); paint-order: stroke; stroke: #FFFDF9; stroke-width: 3px; }
.cv-pt { cursor: pointer; outline: none; }
.cv-pt > :last-child { transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.cv-pt.on > :last-child, .cv-pt:focus-visible > :last-child { transform: scale(1.4); }
.cv-tip { position: absolute; z-index: 3; transform: translateX(-50%); min-width: 132px; max-width: 220px; padding: 8px 11px 9px;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 2px var(--line), 0 10px 22px -12px rgba(120,80,40,.45);
  font-size: .8rem; line-height: 1.3; pointer-events: none; }
.cv-tip .mini-btn { pointer-events: auto; margin: 6px 0 0; }
.cv-tip-top { display: flex; align-items: center; gap: 6px; }
.cv-tip-top b { font: 700 1.15rem/1 var(--font-d); color: var(--ink); }
.cv-tip-top .mg { height: 20px; min-width: 26px; font-size: .72rem; }
.cv-tip-t { margin: 4px 0 2px; font-weight: 700; color: var(--ink); }
.cv-tip small { display: block; color: var(--ink-2); }
.cv-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 13px; margin: 6px 0 0; padding: 0 0 0 26px;
  font: 600 .76rem var(--font-d); color: var(--ink-2); }
.cv-legend li { display: inline-flex; align-items: center; gap: 5px; }
.cv-legend svg { height: 13px; width: auto; overflow: visible; }
.cv-legend .cv-none { opacity: .6; }
.cv-legend small { font-size: .68rem; color: var(--ink-3); }
.cv-empty { font-size: .86rem; color: var(--ink-3); padding: 34px 12px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; }

/* ------------------------------------------------------------------ sticker book (app.js renderStickers) */
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 10px 4px; justify-items: center; padding: 2px 0; }
.stk { position: relative; width: 56px; height: 56px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent; }
.stk-art { position: relative; display: block; width: 100%; height: 100%; transition: transform .25s; }
.stk-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stk-on .stk-art { filter: drop-shadow(0 3px 4px rgba(120,80,40,.25)); }
.stk-f { fill: var(--tint-2, #F6DEC2); stroke: var(--tint-3, #E9C59E); }
.stk-art i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 26px; line-height: 1; }
.stk-off .stk-art i { filter: grayscale(1) brightness(0); opacity: .12; }
.stk:hover .stk-art, .stk:focus-visible .stk-art, .stk.sel .stk-art { transform: scale(1.1); }
.stk.sel::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--claude); }
.sb-info { display: flex; align-items: center; gap: 10px; min-height: 60px; margin-top: 14px; padding: 8px 12px;
  border-radius: 16px; background: #FFF8EF; border: 2px dashed #F3DCC6; font-size: .9rem; }
.sb-emo { flex: none; font-size: 1.7rem; line-height: 1; }
.sb-emo.off { filter: grayscale(1); opacity: .4; }
.sb-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.sb-txt b { font: 600 .95rem var(--font-d); color: var(--ink); }
.sb-txt small { font-size: .8rem; color: var(--ink-2); }
.sb-txt .sb-when { color: var(--ink-3); }
.sb-info .mini-btn { flex: none; margin-left: 0; }
@media (max-width: 760px) {
  .sb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 2px; }
  .stk { width: 52px; height: 52px; }
  .stk-art i { font-size: 23px; }
}

/* A second student, with an independent place on campus. */
.astra-walker { position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: transform 1s ease-in-out; }
.astra-sprite { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); height: clamp(40px, 8.6cqw, 106px); width: auto; pointer-events: auto; }
.astra-tag { position: absolute; left: 0; top: 3px; transform: translateX(-50%); white-space: nowrap; background: #f1eaff; border: 1px solid #d2bfea; border-radius: 12px; padding: 1px 5px; font: 600 10px var(--font-d); color: #705296; }
#classmates-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.classmate { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 18px; background: #fff4e9; }
.classmate.mate-astra { background: #f2edff; }
.classmate img { object-fit: contain; flex: none; }
.classmate b { font: 600 1.1rem var(--font-d); }
.classmate small { display: block; color: var(--ink-2); font-size: .78rem; }
.classmate p { margin: 3px 0; font-size: .8rem; }
.classmate a { color: #9b5c87; font-size: .8rem; }
.student-scores { display: flex; gap: 7px; margin: 6px 0; font: 600 .8rem var(--font-d); }
.student-scores span { padding: 3px 8px; border-radius: 12px; background: #ffeadf; color: #a65739; }
.student-scores .astra-score { background: #eee5fc; color: #735494; }
.student-label { display: block; font: 600 .75rem var(--font-d); color: #b46b50; margin: 7px 0 3px; }
.astra-ink { color: #8564ac; }
.diary-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.sb-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.stk { width: min(100%, 56px); height: auto; aspect-ratio: 1; }
@media (max-width: 760px) {
  #classmates-body { gap: 6px; }
  .classmate { padding: 7px 6px; gap: 5px; }
  .classmate img { width: 42px; height: 52px; }
  .classmate b { font-size: .98rem; }
  .classmate p, .classmate a, .classmate small { font-size: .7rem; }
  .sb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stk { width: 56px; }
}
@media (prefers-reduced-motion: reduce) { .astra-walker { transition: none; } }
