:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-io: cubic-bezier(.645, .045, .355, 1); --bar: #1b1e26; --bar-h: 56px; --rail-w: 72px; --side-w: 316px; --bg: #eef0f2; }
body { background: var(--bg); font-size: 14px; }
body.big { font-size: 15.5px; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.faint { color: var(--faint); }
.muted { color: var(--mute); }
.empty { text-align: center; color: var(--mute); padding: 28px 0; }
.ok { color: var(--sage-ink); } .ko { color: var(--rose-ink); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
@keyframes sx { from { transform: scaleX(0); } }

/* Buttons */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--fg); background: var(--bg); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 16px; height: 16px; }
.btn.ghost { --bg: #fff; --fg: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 32px; padding: 0; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #2a2e38; } .btn.ghost:hover { background: #f7f6f2; box-shadow: 0 0 0 1px var(--faint); } }
.ib { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; }
.ib:hover { background: rgba(18,20,26,.06); }

/* Top bar */
.bar { position: fixed; inset: 0 0 auto; height: var(--bar-h); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 12px; background: var(--bar); color: #fff; }
.bar-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.78); cursor: pointer; text-decoration: none; transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out); }
.bar-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.bar-btn:active { transform: scale(.94); }
.cnt { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font: 600 10.5px/17px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bar); }
.bar-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-left: 4px; }
.bar-brand .key { color: var(--ink); background: #fff; box-shadow: inset 0 -2px 0 #d9d6cf, 0 1px 0 #b9b6ae; min-width: 34px; height: 28px; font-size: 12px; }
.bar-brand b { font-weight: 600; letter-spacing: -.01em; }
.bar-mob { display: none; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.year { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; margin-right: 6px; border: 0; border-radius: 8px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); font-size: 13px; cursor: pointer; }
.year .ic { width: 15px; height: 15px; }
.bar-search { display: flex; align-items: center; gap: 10px; width: 260px; height: 34px; padding: 0 6px 0 12px; margin-right: 8px; border: 0; border-radius: 9px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.55); font-size: 13.5px; text-align: left; cursor: pointer; transition: background-color 150ms ease; }
.bar-search:hover { background: rgba(255,255,255,.12); }
.bar-search span:nth-child(2) { flex: 1; }
.bar-search .ic { width: 16px; height: 16px; }
.bar-search .kbd { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.6); }
.bar-me { display: flex; align-items: center; gap: 4px; margin-left: 6px; padding: 3px; border: 0; border-radius: 99px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }
.bar-me .av { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.bar-me .ic { width: 15px; height: 15px; }

/* Rail */
.rail { position: fixed; left: 0; top: var(--bar-h); bottom: 0; width: var(--rail-w); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0; background: #fff; border-right: 1px solid var(--line); }
.rl { position: relative; display: grid; justify-items: center; gap: 3px; width: 58px; padding: 8px 0 6px; border-radius: 12px; color: var(--mute); text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.rl .ic { width: 22px; height: 22px; }
.rl-t { font-size: 10px; font-weight: 500; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.rl:hover { background: var(--paper); color: var(--ink); }
.rl.on { color: var(--accent-ink); background: var(--accent-soft); }
.rl.on::before { content: ""; position: absolute; left: -7px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.rl-out { margin-top: auto; }

/* Shell */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 18px; align-items: start; padding: calc(var(--bar-h) + 18px) 18px 24px calc(var(--rail-w) + 18px); max-width: 1500px; transition: grid-template-columns 300ms var(--ease-io); }
.side-off .shell, .no-side .shell { grid-template-columns: minmax(0, 1fr) 0; gap: 0; }
.side-off .side { opacity: 0; pointer-events: none; transform: translateX(16px); }
.no-side .side { display: none; }
.shell { overflow-x: clip; }
.main { min-width: 0; }
.main.enter > * { animation: up 340ms var(--ease-out) both; }
.main.enter > *:nth-child(2) { animation-delay: 40ms; } .main.enter > *:nth-child(3) { animation-delay: 80ms; }
.main.enter .stg > * { animation: up 300ms var(--ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 25ms); }
.card { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(18,20,26,.06), var(--shadow-sm); }

/* Breadcrumb */
.crumbs { display: flex; align-items: stretch; height: 40px; margin-bottom: 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(18,20,26,.06); overflow: hidden; }
.cr { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 22px 0 16px; font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.cr .ic { width: 15px; height: 15px; }
.cr + .cr { margin-left: -10px; padding-left: 24px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); }
.cr1 { background: var(--lilac-ink); z-index: 3; }
.cr2 { background: #8f7ff0; z-index: 2; }
.cr3 { color: var(--ink-2); font-weight: 500; font-style: italic; font-family: var(--serif); font-size: 17px; background: transparent; clip-path: none; }
.cr1:hover, .cr2:hover { filter: brightness(1.08); }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #2a2e38 0%, #3b3f4c 55%, #4a4458 100%); margin-bottom: 14px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(255,90,44,.35), transparent 60%), radial-gradient(40% 90% at 0% 100%, rgba(122,90,248,.3), transparent 60%); pointer-events: none; }
.hero-in { position: relative; display: flex; align-items: center; gap: 22px; padding: 28px 28px 22px; }
.hero-av { width: 92px !important; height: 92px !important; font-size: 28px !important; box-shadow: 0 0 0 4px rgba(255,255,255,.18) !important; flex: none; }
.hero-t { flex: 1; min-width: 0; }
.hero h1 { margin: 0; font: 400 34px/1.08 var(--serif); font-style: italic; letter-spacing: -.01em; }
.hero p { margin: 6px 0 10px; color: rgba(255,255,255,.75); font-size: 14px; }
.hero p b { color: #fff; font-weight: 600; text-transform: uppercase; font-size: 12.5px; letter-spacing: .04em; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: #f5a623; color: #3a2600; font-size: 12px; font-weight: 600; }
.hero-acts { align-self: flex-start; display: flex; gap: 6px; }
.hb { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.hb:hover { background: rgba(255,255,255,.2); }
.hb:active { transform: scale(.94); }
.hero-prog { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(0,0,0,.18); font-size: 12.5px; color: rgba(255,255,255,.75); }
.hp-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.hp-bar span, .u-bar span, .sc-bar span, .take-bar span, .gbar span, .au-bar span { display: block; height: 100%; border-radius: 99px; background: #fff; transform: scaleX(var(--p)); transform-origin: left; transition: transform 500ms var(--ease-out); }
.enter .hp-bar span, .enter .u-bar span, .enter .gbar span, .enter .au-bar span { animation: sx 800ms var(--ease-out) 200ms both; }
.hero-prog b { color: #fff; }

/* Panel */
.panel { background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(18,20,26,.06), var(--shadow-sm); padding: 22px; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.ph p { margin: 4px 0 0; color: var(--mute); }
.backbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; margin: -6px -6px 18px; border-radius: 12px; background: var(--paper); }
.sub-h { margin: 28px 0 12px; font-size: 15px; font-weight: 600; }

/* Tests list */
.tests { display: grid; }
.test { display: flex; align-items: center; gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; border-radius: 10px; transition: background-color 150ms ease; }
.test:last-child { border-bottom: 0; }
.test:hover { background: var(--paper); }
.t-b { flex: 1; min-width: 0; }
.t-b b { display: block; font-weight: 600; }
.t-b small { color: var(--mute); font-size: 12.5px; }
.t-ring { --p: 0; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--sage-ink) calc(var(--p) * 360deg), var(--line-2) 0); }
.t-ring span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 12.5px; font-weight: 600; }
.t-ring.big { width: 92px; height: 92px; }
.t-ring.big span { width: 76px; height: 76px; font-size: 24px; letter-spacing: -.03em; }
.test.pend .t-ring { background: var(--line-2); }
.old { display: flex; gap: 22px; align-items: center; }
.old h2 { margin: 0; }

/* Quiz */
.qsum { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; padding: 18px; margin-bottom: 18px; border-radius: 14px; background: linear-gradient(180deg, #fbfaf7, #f4f2ed); box-shadow: inset 0 0 0 1px var(--line-2); }
.qs-b h2 { margin: 2px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.qs-b p { margin: 0; color: var(--ink-2); }
.qnav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.qn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: transform 160ms var(--ease-out); }
.qn:active { transform: scale(.92); }
.qn.ok { background: var(--sage); color: var(--sage-ink); }
.qn.ko { background: var(--rose); color: var(--rose-ink); }
.qlist { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; }
.qa { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0; margin: 0; padding: 8px; border: 0; border-radius: 14px; background: #f1f3f5; scroll-margin: 90px; min-width: 0; }
.qa.flash { animation: flash 1.2s var(--ease-out); }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.qa-n { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; float: none; font-size: 13.5px; }
.qa-n b { font-weight: 500; color: var(--ink-2); }
.qa-b { padding: 16px 18px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(18,20,26,.05); min-width: 0; }
.qa-q { margin: 0; font-size: 15px; line-height: 1.5; }
.qa-hint { margin: 10px 0 12px; color: var(--rose-ink); font-style: italic; font-size: 13.5px; }
.opts { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 6px; }
.opts li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.opts li .ic { width: 16px; height: 16px; margin-top: 2px; stroke-width: 2.4; }
.opts li .dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.opts li span { flex: 1; }
.opts li small { flex: none; font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.06); }
.opts li.right { background: #e3f1e1; color: #2e6b30; box-shadow: inset 0 0 0 1px #bfdcbc; }
.opts li.wrong { background: var(--rose); color: var(--rose-ink); box-shadow: inset 0 0 0 1px #efc3b9; }
.qa-s { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
.qfoot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line-2); }
.qfoot > span { margin-right: auto; }
.take-h h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.take-h p { margin: 4px 0 12px; }
.take-bar { display: block; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-bottom: 18px; }
.take-bar span { background: var(--accent); }
.opts.pick { display: grid; gap: 6px; }
.opts.pick label { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font-size: 14px; transition: box-shadow 150ms ease, background-color 150ms ease; }
.opts.pick input { position: absolute; opacity: 0; }
.rd { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); transition: box-shadow 180ms var(--ease-out); }
.opts.pick input:checked + .rd { box-shadow: inset 0 0 0 5.5px var(--accent); }
.opts.pick label:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.opts.pick input:focus-visible + .rd { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .opts.pick label:hover { box-shadow: inset 0 0 0 1px var(--faint); } }
.tgl { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; }
.sw { position: relative; flex: none; width: 36px; height: 22px; border-radius: 99px; background: var(--line); transition: background-color 200ms ease; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease-io); }
.tgl input:checked + .sw { background: var(--sage-ink); }
.tgl input:checked + .sw::after { transform: translateX(14px); }
.tgl input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Contents */
.units { display: grid; gap: 10px; }
.unit { border-radius: 14px; background: #f6f7f8; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.unit summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.unit summary::-webkit-details-marker { display: none; }
.u-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.u-t { flex: 1; min-width: 0; }
.u-t b { display: block; font-weight: 600; }
.u-t small { color: var(--mute); font-size: 12.5px; }
.u-bar { width: 120px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; flex: none; }
.u-bar span { background: var(--sage-ink); }
.u-ch { color: var(--faint); transition: transform 240ms var(--ease-io); }
.unit[open] .u-ch { transform: rotate(180deg); }
.unit ul { list-style: none; margin: 0; padding: 4px 10px 12px; display: grid; gap: 4px; }
.unit[open] ul { animation: up 260ms var(--ease-out); }
.unit li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(18,20,26,.04); }
.ck { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: #fff; cursor: pointer; transition: background-color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out); }
.ck:active { transform: scale(.88); }
.ck .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.unit li.done .ck { background: var(--sage-ink); box-shadow: none; }
.unit li.done .it-t b { color: var(--mute); }
.it-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; }
.it-ic .ic { width: 17px; height: 17px; }
.k-video { background: var(--lilac); color: var(--lilac-ink); } .k-pdf { background: var(--rose); color: var(--rose-ink); } .k-link { background: var(--sky); color: var(--sky-ink); } .k-test { background: var(--butter); color: var(--butter-ink); }
.it-t { flex: 1; min-width: 0; }
.it-t b { display: block; font-weight: 500; }
.it-t small { color: var(--mute); font-size: 12.5px; }

/* Deliveries */
.dl { display: grid; gap: 10px; }
.dv { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: #f6f7f8; box-shadow: inset 0 0 0 1px var(--line-2); }
.dv.sent { background: #f2f8f1; }
.dv-b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dv-b b { font-weight: 600; }
.dv-b small { color: var(--mute); font-size: 12.5px; display: flex; align-items: center; gap: 4px; }
.dv-b small.ok { color: var(--sage-ink); }
.dv-b small .ic { width: 14px; height: 14px; }
.dp { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--line-2); color: var(--mute); font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.dp.soon { background: #f5a623; color: #3a2600; }
.dp.past { background: #e6e8eb; color: #8a909b; }
label.btn { cursor: pointer; }

/* Grades */
.gr-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.gr-k { padding: 14px; border-radius: 12px; background: var(--paper); }
.gr-k small { display: block; color: var(--mute); font-size: 12.5px; }
.gr-k b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.tbl { overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--mute); padding: 10px 14px; background: #f8f8f6; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line-2); }
.tbl td:last-child { display: flex; align-items: center; gap: 10px; }
.tbl .c { text-align: center; }
.gbar { display: block; width: 90px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.gbar span { background: var(--sage-ink); }
.gbar span.bad { background: var(--rose-ink); }

/* Agenda */
.ag { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cal { padding: 14px; }
.cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-g small { font-size: 11.5px; color: var(--faint); padding: 4px 0; }
.cd { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font-size: 13.5px; cursor: pointer; transition: background-color 150ms ease; }
.cd:hover { background: var(--paper); }
.cd.out { color: var(--faint); }
.cd.today span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; }
.cd i { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--lilac-ink); }
.cd.has { font-weight: 600; }
.up { display: grid; gap: 8px; }
.up-i { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--paper); }
.up-i > span:nth-child(2) { flex: 1; }
.up-i b { display: block; font-weight: 500; }
.up-i small { color: var(--mute); font-size: 12.5px; }
.date { flex: none; display: grid; place-content: center; width: 44px; height: 46px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: center; font-size: 11px; color: var(--mute); line-height: 1.1; }
.date b { font-size: 17px; color: var(--ink); }
.date.big { width: 58px; height: 62px; }
.date.big b { font-size: 24px; }

/* Links, forum, events, gallery, resources */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lk { display: grid; justify-items: start; gap: 6px; padding: 18px; border: 0; text-align: left; cursor: pointer; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.lk:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.lk-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sky); color: var(--sky-ink); margin-bottom: 6px; }
.threads { display: grid; }
.th { display: flex; align-items: center; gap: 12px; padding: 14px 8px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; border-radius: 10px; transition: background-color 150ms ease; }
.th:hover { background: var(--paper); }
.th-b { flex: 1; min-width: 0; }
.th-b b { display: block; font-weight: 600; }
.th-b small { color: var(--mute); font-size: 12.5px; }
.th-n { display: flex; align-items: center; gap: 5px; color: var(--mute); font-size: 13px; }
.th-n .ic { width: 15px; height: 15px; }
.ft { margin: 0 0 16px; font-size: 22px; letter-spacing: -.02em; }
.posts { display: grid; gap: 10px; }
.post { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--paper); }
.post.teach { background: var(--lilac); }
.post > div { flex: 1; min-width: 0; }
.post-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-h small { margin-left: auto; font-size: 12px; }
.post p { margin: 6px 0 0; line-height: 1.55; }
.reply { display: grid; gap: 10px; justify-items: end; margin-top: 16px; }
.reply textarea, .form input, .form select, .form textarea { width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: inherit; resize: vertical; }
.reply textarea:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.evs { display: grid; gap: 12px; }
.ev { display: flex; align-items: flex-start; gap: 16px; padding: 16px; }
.ev > div { flex: 1; min-width: 0; }
.ev b { font-size: 15px; }
.ev small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.ev small .ic { width: 13px; height: 13px; }
.ev p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.5; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gi { position: relative; aspect-ratio: 4 / 3; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; display: flex; align-items: flex-end; padding: 10px; color: #fff; text-align: left; font-size: 12.5px; font-weight: 500; transition: transform 300ms var(--ease-out); }
.gi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.35)); }
.gi span { position: relative; z-index: 1; }
.gi:hover { transform: scale(1.02); }
.photo { aspect-ratio: 16 / 10; border-radius: 12px; margin-bottom: 14px; }
.res { display: grid; gap: 8px; }
.rs { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--paper); }
.g1 { background: linear-gradient(135deg, #ff5a2c, #ff9a6b 55%, #f6d4a8); } .g2 { background: linear-gradient(135deg, #5a4bb0, #8f7ff0 60%, #d9d2ff); } .g3 { background: linear-gradient(135deg, #12141a, #3b3550 55%, #ff5a2c); } .g4 { background: linear-gradient(135deg, #2a5f91, #5fa2d8 60%, #cfe6f7); } .g5 { background: linear-gradient(135deg, #2f6b4a, #6fb08a 60%, #e0ebe3); } .g6 { background: linear-gradient(135deg, #8a6a12, #d8b04a 60%, #f6edcc); } .g7 { background: linear-gradient(135deg, #12141a, #2a5f91 70%, #5fa2d8); } .g8 { background: linear-gradient(135deg, #a33a28, #e07a63 60%, #f8e1dc); }

/* Forms, guide, campus */
.form { display: grid; gap: 14px; }
.form label:not(.tgl) { display: grid; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.form-f, .m-f { display: flex; justify-content: flex-end; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.me-h, .mail-h, .teach { display: flex; align-items: center; gap: 14px; }
.me-h b, .mail-h b, .teach b { display: block; font-size: 16px; }
.teach > div { flex: 1; }
.av.lg { width: 52px; height: 52px; font-size: 16px; }
.guide h3 { margin: 22px 0 8px; font-size: 15px; }
.guide p { margin: 0; line-height: 1.6; color: var(--ink-2); max-width: 720px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; color: var(--ink-2); }
.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sage); color: var(--sage-ink); font-size: 11px; font-weight: 700; }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nw { display: flex; gap: 12px; padding: 16px; }
.nw-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); }
.nw b { font-weight: 600; }
.nw p { margin: 4px 0 6px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.nw small { font-size: 12px; }
.aules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.au { display: grid; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: inherit; transition: transform 250ms var(--ease-out), box-shadow 250ms ease; }
.au:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.au-c { height: 92px; display: flex; align-items: flex-end; padding: 12px; color: #fff; font: 400 20px/1.05 var(--serif); font-style: italic; }
.au-b { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px; }
.au-b b { display: block; font-size: 13px; font-weight: 500; }
.au-b small { color: var(--mute); font-size: 12px; }
.au-bar { height: 4px; margin: 4px 12px 14px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.au-bar span { background: var(--ink); }
.mates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mt { display: grid; justify-items: center; gap: 6px; padding: 18px 10px; border: 0; cursor: pointer; text-align: center; transition: transform 200ms var(--ease-out); }
.mt:hover { transform: translateY(-2px); }
.mt b { font-size: 13.5px; font-weight: 500; }
.mt small { font-size: 12px; }
small.on { color: var(--sage-ink); }

/* Side */
.side { display: grid; gap: 12px; position: sticky; top: calc(var(--bar-h) + 18px); transition: opacity 250ms ease, transform 300ms var(--ease-out); min-width: 0; }
.sm { overflow: hidden; }
.sm-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #e6e8eb; color: var(--ink-2); }
.sm-h .ic { width: 16px; height: 16px; color: var(--mute); }
.sm-i { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; text-align: left; font-size: 14px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.sm-i:hover { background: #f6f7f8; }
.sm-i.on { background: var(--accent); color: #fff; font-weight: 500; }
.sm-i span { flex: 1; }
.sm-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); font: 600 11px/20px var(--sans); font-style: normal; text-align: center; }
.sm-i.on .sm-n { background: rgba(255,255,255,.25); color: #fff; }
.sm-dd .sm-i { background: #19b2c8; color: #fff; }
.sm-dd .sm-i:hover { background: #17a3b7; }
.dd-ic { width: 15px; height: 15px; transition: transform 240ms var(--ease-io); }
.sm-dd.open .dd-ic { transform: rotate(180deg); }
.sm-sub button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 14px 9px 30px; border: 0; background: transparent; color: #0d6e7c; font-size: 13.5px; text-align: left; cursor: pointer; }
.sm-sub button:hover { background: #e2f6f8; }
.sm-sub .ic { width: 15px; height: 15px; }
.sm-sub { display: block; max-height: 0; overflow: hidden; background: #f1fbfc; transition: max-height 300ms var(--ease-io); }
.sm-dd.open .sm-sub { max-height: 160px; }
.sc { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; padding: 14px 16px; border: 0; border-radius: 14px; text-align: left; font-size: 18px; cursor: pointer; overflow: hidden; transition: transform 200ms var(--ease-out), box-shadow 200ms ease; }
.sc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sc:active { transform: scale(.98); }
.sc b { flex: 1; font-weight: 500; letter-spacing: -.01em; }
.sc-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18); }
.sc-go { opacity: .7; transition: transform 200ms var(--ease-out); }
.sc:hover .sc-go { transform: translateX(3px); }
.sc-green { background: #5b9e4d; color: #fff; }
.sc-purple { background: #6b4fb0; color: #fff; }
.sc-cream { background: #fcf3dc; color: #a37a16; box-shadow: inset 0 0 0 1px #f2e3b8; }
.sc-cream .sc-ic { background: #f6e6b8; }
.sc-pct { font-size: 15px; font-weight: 600; }
.sc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); }
.sb { overflow: hidden; }
.sb-h { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: var(--accent-ink); color: #fff; font-size: 15px; }
.sb-h b { font-weight: 500; }
.sb-all { color: rgba(255,255,255,.8); font-size: 12.5px; text-decoration: none; }
.sb-all:hover { color: #fff; }
.sb-avs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.sb-av { position: relative; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform 160ms var(--ease-out); }
.sb-av:hover { transform: translateY(-2px); }
.sb-av .av { width: 40px; height: 40px; font-size: 12px; box-shadow: none; }
.sb-av.on::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 2px #fff; }
.sb-d { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; transition: background-color 150ms ease; }
.sb-d:first-of-type { border-top: 0; }
.sb-d:hover { background: #f8f8f6; }
.sb-d b { display: block; font-weight: 600; color: #6b7280; font-size: 14px; }
.sb-d small { color: var(--ink-2); font-size: 13px; }

/* Footer & tabs */
.foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: var(--rail-w); padding: 12px 18px; border-top: 1px solid var(--line); background: #e9ebee; font-size: 13.5px; color: var(--mute); }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-out { display: flex; align-items: center; gap: 6px; }
.foot-out .ic { width: 15px; height: 15px; }
.langs { display: flex; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.langs button { height: 30px; padding: 0 12px; border: 0; background: #fff; color: var(--mute); font-size: 13px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.langs button[aria-checked="true"] { background: #7d868f; color: #fff; }
.foot-demo { margin-left: auto; font-weight: 500; color: var(--accent-ink) !important; }
.foot-key { min-width: 32px; height: 26px; font-size: 11px; }
.tabs-m { display: none; }

/* Layers */
.ov { position: fixed; inset: 0; z-index: 100; opacity: 0; transition: opacity 200ms var(--ease-out); }
.ov.open { opacity: 1; }
.ov.closing { opacity: 0; transition-duration: 150ms; pointer-events: none; }
.ov-modal, .ov-search { display: grid; place-items: center; padding: 16px; background: rgba(18,20,26,.4); }
.ov-search { place-items: start center; padding-top: 12vh; }
.modal { position: relative; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); outline: none; transform: translateY(8px) scale(.97); transition: transform 220ms var(--ease-out); }
.modal h2 { margin: 10px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.modal p { line-height: 1.55; color: var(--ink-2); }
.m-h { position: absolute; top: 12px; right: 12px; }
.mc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.pg-big { display: flex; align-items: center; gap: 18px; margin: 14px 0 18px; }
.pg-r { display: grid; grid-template-columns: 1fr 100px 30px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.pg-r .u-bar { width: auto; }
.mail-x { padding: 14px; border-radius: 12px; background: var(--paper); margin: 16px 0; }
.video-m { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 12px; margin-bottom: 12px; background: linear-gradient(135deg, #1d2029, #3b3550); color: #fff; }
.video-m .ic { width: 42px; height: 42px; fill: currentColor; }
.pop { position: fixed; width: 320px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); outline: none; transform: translateY(-6px) scale(.97); transform-origin: top right; transition: transform 200ms var(--ease-out); }
.ov.open .modal, .ov.open .pop, .ov.open .search { transform: none; }
.pop-h { padding: 10px 10px 6px; font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.pop-i, .pop-m, .pop-n, .pop-foot { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-decoration: none; text-align: left; font-size: 14px; cursor: pointer; transition: background-color 120ms ease; }
.pop-i:hover, .pop-m:hover, .pop-n:hover, .pop-foot:hover { background: var(--paper); }
.pop-i .ic { color: var(--mute); }
.pop-ck { margin-left: auto; color: var(--sage-ink) !important; }
.pop-n { display: grid; gap: 2px; }
.pop-n.row { display: flex; }
.pop-n b { font-weight: 500; }
.pop-n small { color: var(--mute); font-size: 12.5px; }
.pn-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--paper); color: var(--ink-2); flex: none; }
.pn-ic .ic { width: 15px; height: 15px; }
.pop-m > span:nth-child(2) { flex: 1; min-width: 0; }
.pop-m b { display: block; font-weight: 500; font-size: 13.5px; }
.pop-m small { display: block; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-m > small { flex: none; }
.pop-foot { justify-content: center; border-top: 1px solid var(--line-2); border-radius: 0 0 9px 9px; margin-top: 4px; color: var(--accent-ink); font-weight: 500; }
.pop-row { display: flex; align-items: center; }
.fav { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--faint); cursor: pointer; transition: color 150ms ease, transform 200ms var(--ease-out); }
.fav.on { color: var(--accent); }
.fav.on .ic { fill: currentColor; }
.fav:active { transform: scale(.85); }
.pop-me { display: grid; justify-items: center; gap: 4px; padding: 16px 10px 12px; text-align: center; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.search { width: 100%; max-width: 560px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; outline: none; transform: translateY(-6px) scale(.98); transition: transform 200ms var(--ease-out); }
.s-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--mute); }
.s-in input { flex: 1; height: 54px; border: 0; outline: 0; font-size: 16px; background: transparent; }
.s-l { max-height: 50vh; overflow-y: auto; padding: 6px; }
.s-i { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.s-i:hover { background: var(--paper); }
.toasts { position: fixed; left: 50%; bottom: 22px; z-index: 200; display: grid; gap: 8px; justify-items: center; transform: translateX(-50%); pointer-events: none; max-width: calc(100vw - 24px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(6px); transition-duration: 160ms; }
.toast .ic { color: var(--accent); width: 16px; height: 16px; }
.scrim { display: none; }

/* Responsive */
@media (max-width: 1180px) {
  :root { --side-w: 280px; }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .news, .links { grid-template-columns: 1fr 1fr; }
  .bar-search { width: 200px; }
}
@media (max-width: 900px) {
  :root { --bar-h: 54px; }
  .bar { padding: 0 10px; }
  .bar-brand, .year, .bar-search, .bar-right .bar-btn { display: none; }
  .bar-mob { display: block; position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; letter-spacing: .02em; }
  .bar-mob::before { content: "– "; opacity: .5; } .bar-mob::after { content: " –"; opacity: .5; }
  .rail { transform: translateX(-100%); transition: transform 300ms var(--ease-out); width: 240px; align-items: stretch; padding: 14px 10px; box-shadow: var(--shadow-lg); }
  .rl { display: flex; gap: 12px; width: auto; padding: 12px; justify-items: start; }
  .rl-t { font-size: 14px; }
  .rl.on::before { display: none; }
  .drawer .rail { transform: none; }
  .scrim { display: block; position: fixed; inset: var(--bar-h) 0 0; z-index: 35; background: rgba(18,20,26,.35); opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease-out); }
  .drawer .scrim { opacity: 1; pointer-events: auto; }
  .shell, .side-off .shell, .no-side .shell { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: calc(var(--bar-h) + 12px) 12px 20px; }
  .side, .side-off .side { position: static; opacity: 1; pointer-events: auto; transform: none; }
  .no-side .side { display: none; }
  .crumbs { display: none; }
  .hero { border-radius: 14px; }
  .hero-in { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .hero-av { width: 56px !important; height: 56px !important; font-size: 18px !important; }
  .hero h1 { font-size: 24px; }
  .hero-acts { position: absolute; top: 12px; right: 12px; }
  .hero-t { padding-right: 34px; min-width: 0; flex-basis: calc(100% - 80px); }
  .hero-acts [data-act=toggle-side] { display: none; }
  .hero-prog { padding: 10px 18px; }
  .panel { padding: 16px; border-radius: 14px; }
  .qa { grid-template-columns: minmax(0, 1fr); }
  .qa-n { flex-direction: row; justify-content: space-between; align-items: center; padding: 6px 8px 10px; }
  .qa-b { padding: 14px; }
  .qsum { grid-template-columns: auto 1fr; padding: 14px; }
  .t-ring.big { width: 74px; height: 74px; } .t-ring.big span { width: 60px; height: 60px; font-size: 19px; }
  .ag { grid-template-columns: minmax(0, 1fr); }
  .gal { grid-template-columns: 1fr 1fr; }
  .news, .links { grid-template-columns: minmax(0, 1fr); }
  .gr-top { grid-template-columns: 1fr 1fr; }
  .gr-top .gr-k:last-child { grid-column: 1 / -1; }
  .row2 { grid-template-columns: 1fr; }
  .u-bar { width: 60px; }
  .dv { flex-wrap: wrap; }
  .dv .btn, .dv label.btn { width: 100%; }
  .foot { margin-left: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .foot-demo { margin-left: 0; }
  .tabs-m { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabs-m a, .tabs-m button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border: 0; background: transparent; color: var(--mute); font-size: 10.5px; font-weight: 500; text-decoration: none; transition: color 150ms ease, transform 160ms var(--ease-out); }
  .tabs-m a:active, .tabs-m button:active { transform: scale(.94); }
  .tabs-m .ic { width: 22px; height: 22px; }
  .tabs-m a.on { color: var(--accent-ink); }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .ov-modal { place-items: end stretch; padding: 0; }
  .modal { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition-duration: 320ms; }
  .pop { left: 10px; right: 10px !important; top: calc(var(--bar-h) + 6px) !important; width: auto; }
  .ov-search { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .main.enter > *, .main.enter .stg > * { animation: none; }
}
