/* Versed Teach — same family as Versed Play: dark, lime, pink, Unbounded + Space Grotesk. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0E0D17; --bg2: #16152A; --card: #1E1C33; --card2: #262445; --line: #2E2B4A; --text: #F4F2FF; --muted: #9A97B8; --dim: #5E5B7E;
  --lime: #C6FF3D; --pink: #FF4FA3; --cyan: #3DF2FF; --amber: #FFB020; --violet: #8B7BFF; --green: #3DFF9A; --red: #FF5C5C; --ink: #0E0D17;
  --radius: 18px; --shadow: 0 10px 30px rgba(0,0,0,.35); --pop: 4px 4px 0 var(--pink);
  --ease: cubic-bezier(.16,1,.3,1);
  --display: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); background: var(--bg); color: var(--text); min-height: 100dvh; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60% 40% at 80% -10%, rgba(139,123,255,.25), transparent 60%), radial-gradient(50% 35% at 0% 100%, rgba(198,255,61,.12), transparent 60%);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--cyan); }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.01em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: .5rem 1rem; border-radius: 10px; z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 14px; font-weight: 700; transition: transform .12s var(--ease), box-shadow .12s, background .15s; user-select: none; white-space: nowrap; border: 2px solid transparent; text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: var(--pop); }
.btn-primary:hover { background: #d6ff6b; }
.btn-dark { background: var(--text); color: var(--ink); border-color: var(--text); box-shadow: var(--pop); }
.btn-coral { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: 4px 4px 0 var(--lime); }
.btn-coral:hover { background: #ff6cb3; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-ghost:active { box-shadow: none; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255,92,92,.4); }
.btn-danger:hover { background: rgba(255,92,92,.12); }
.btn-danger:active { box-shadow: none; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .4rem .6rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1; }
.btn-icon:hover { color: var(--text); border-color: var(--violet); }
.btn-icon:disabled { opacity: .3; }

.input { width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--bg2); outline: none; transition: border-color .15s, box-shadow .15s; color: var(--text); }
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(198,255,61,.15); }
textarea.input { min-height: 8rem; resize: vertical; font-family: var(--body); }
select.input { appearance: none; }
label.field { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin: .9rem 0 .35rem; text-transform: uppercase; letter-spacing: .08em; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 200px; }
.cols { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.err { color: var(--red); font-weight: 600; font-size: .9rem; min-height: 1.3em; margin-top: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(198,255,61,.15); color: var(--lime); white-space: nowrap; }
.pill.pink { background: rgba(255,79,163,.18); color: var(--pink); }
.pill.amber { background: rgba(255,176,32,.18); color: var(--amber); }
.pill.violet { background: rgba(139,123,255,.2); color: var(--violet); }
.pill.dim { background: var(--card2); color: var(--muted); }
.pill button { color: inherit; font-size: .9em; opacity: .7; padding: 0 0 0 .2rem; }
.pill button:hover { opacity: 1; }

.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: none; color: var(--text); font-family: var(--display); font-size: .95rem; letter-spacing: .02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 1rem; box-shadow: 2px 2px 0 var(--pink); }
.brand .teal { color: var(--lime); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; max-width: 1180px; margin: 0 auto; }
.nav { display: flex; gap: .25rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; padding: .45rem .8rem; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.active { color: var(--ink); background: var(--lime); }
.nav a.ext { color: var(--dim); }
.wrap { max-width: 1180px; margin: 0 auto; padding: .5rem 1.25rem 2rem; }
.has-ad { padding-bottom: 56px; }

/* promo strip — small, static, bottom of page; entries live in /ads.json */
.ad-slot { position: fixed; left: 0; right: 0; bottom: 0; height: 44px; background: var(--bg2); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 0 .75rem; z-index: 50; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; }
.ad-slot .ad-label { flex: none; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; }
.ad-house { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--muted); font-size: .78rem; max-width: 640px; min-width: 0; }
.ad-house img { width: 24px; height: 24px; flex: none; image-rendering: pixelated; object-fit: contain; }
.ad-house .ad-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-house .ad-cta { flex: none; color: var(--lime); font-weight: 700; white-space: nowrap; }
.ad-house:hover .ad-text { color: var(--text); }

.toast { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 700; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: 90vw; }

/* page headers */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .75rem 0 1.25rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.page-head h1 span { color: var(--lime); }
.page-head .sub { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
.crumb { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .25rem; margin-bottom: 1rem; }
.tabs a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .85rem; padding: .45rem .9rem; border-radius: 9px; }
.tabs a.active { background: var(--card2); color: var(--text); }

/* landing */
.hero { padding: 3rem 0 2rem; max-width: 720px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05; margin-bottom: 1rem; }
.hero h1 span { color: var(--lime); }
.hero .lines { display: grid; gap: .5rem; font-size: 1.1rem; color: var(--muted); margin-bottom: 1.75rem; }
.hero .lines b { color: var(--text); }
.hero .lines li { list-style: none; display: flex; gap: .75rem; align-items: flex-start; }
.hero .lines li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); margin-top: .5em; box-shadow: 2px 2px 0 var(--pink); }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .fine { margin-top: 1.25rem; font-size: .85rem; color: var(--dim); }
.features { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1rem 0 2rem; }
.features .card { padding: 1rem 1.1rem; }
.features .card b { display: block; font-family: var(--display); font-size: .85rem; margin-bottom: .3rem; }
.features .card span { color: var(--muted); font-size: .88rem; }

/* class list */
.class-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.class-card { display: flex; flex-direction: column; gap: .5rem; }
.class-card a.title { color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.class-card a.title:hover { color: var(--lime); }
.class-card .meta { color: var(--muted); font-size: .85rem; }
.class-card .tools { display: flex; gap: .35rem; margin-top: auto; padding-top: .5rem; }
.class-card .tools .sp { flex: 1; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty b { display: block; color: var(--text); font-family: var(--display); margin-bottom: .5rem; }

/* grid */
.grid-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-height: calc(100dvh - 240px); }
table.grid { border-collapse: separate; border-spacing: 0; min-width: 100%; font-variant-numeric: tabular-nums; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; text-align: center; white-space: nowrap; }
table.grid thead th { position: sticky; top: 0; background: var(--card2); z-index: 3; font-size: .8rem; font-weight: 700; padding: .5rem .5rem; vertical-align: bottom; }
table.grid thead th.corner { left: 0; z-index: 4; text-align: left; }
table.grid tbody th { position: sticky; left: 0; background: var(--card); z-index: 2; text-align: left; padding: 0 .75rem; font-weight: 700; min-width: 160px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
table.grid tbody th a { color: var(--text); text-decoration: none; }
table.grid tbody th a:hover { color: var(--lime); }
table.grid tbody th .flg { display: inline-block; margin-left: .35rem; font-size: .65rem; color: var(--pink); vertical-align: middle; }
table.grid tbody th .flg.up { color: var(--green); }
table.grid tbody th .flg.custom { color: var(--violet); }
table.grid tfoot th, table.grid tfoot td { position: sticky; bottom: 0; background: var(--card2); z-index: 2; font-size: .8rem; color: var(--muted); padding: .45rem .5rem; border-bottom: 0; }
table.grid tfoot th { left: 0; z-index: 3; text-align: left; }
table.grid th.a { min-width: 96px; }
table.grid th.a button { color: var(--text); font-weight: 700; padding: .15rem .35rem; border-radius: 8px; display: block; width: 100%; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.grid th.a button:hover { background: rgba(198,255,61,.12); color: var(--lime); }
table.grid th.a small { display: block; color: var(--dim); font-weight: 600; font-size: .68rem; }
table.grid th.add button { color: var(--lime); font-weight: 800; padding: .3rem .6rem; border-radius: 8px; white-space: nowrap; }
table.grid th.add button:hover { background: rgba(198,255,61,.12); }
table.grid td.cell { width: 96px; }
table.grid td.cell input { width: 100%; height: 40px; text-align: center; background: transparent; border: 0; outline: none; padding: 0 .4rem; color: var(--text); font-weight: 600; }
table.grid td.cell input:focus { background: rgba(198,255,61,.12); box-shadow: inset 0 0 0 2px var(--lime); }
table.grid td.cell input.over { color: var(--amber); }
table.grid td.cell input::placeholder { color: var(--line); }
table.grid td.avg { font-weight: 800; padding: 0 .75rem; min-width: 84px; font-family: var(--display); font-size: .85rem; }
table.grid td.avg.green, .band.green { color: var(--green); }
table.grid td.avg.amber, .band.amber { color: var(--amber); }
table.grid td.avg.pink, .band.pink { color: var(--pink); }
table.grid td.avg.none, .band.none { color: var(--dim); font-weight: 500; }
table.grid th.avg-h { min-width: 84px; }
.grid-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; font-size: .8rem; color: var(--dim); }
.legend { display: inline-flex; gap: .8rem; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .3rem; }

/* overview */
.ov { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ov .card h2 { font-size: .95rem; font-weight: 800; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.ov .card h2 .n { margin-left: auto; font-family: var(--body); font-size: .8rem; color: var(--muted); font-weight: 600; }
.ov ul { list-style: none; display: grid; gap: .4rem; }
.ov li { display: flex; align-items: center; gap: .6rem; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; font-size: .9rem; }
.ov li a { color: var(--text); text-decoration: none; font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov li a:hover { color: var(--lime); }
.ov li .d { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov .none { color: var(--dim); font-size: .88rem; }
.ov .slip h2 { color: var(--pink); } .ov .impr h2 { color: var(--green); } .ov .miss h2 { color: var(--amber); }

/* student */
.stu { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 800px) { .stu { grid-template-columns: 1fr; } }
.stu h2 { font-size: .95rem; font-weight: 800; margin-bottom: .75rem; }
.bigpct { font-family: var(--display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.spark { width: 100%; height: 110px; display: block; }
.spark .l { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark .a { fill: url(#sg); }
.spark .g { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.spark .p { fill: var(--lime); }
.spark .p.last { fill: var(--pink); }
.spark .t { fill: var(--dim); font-size: 9px; font-family: var(--body); }
.scores { list-style: none; display: grid; gap: .35rem; }
.scores li { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; font-size: .9rem; }
.scores li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.scores li .nm small { display: block; color: var(--dim); font-weight: 500; font-size: .75rem; }
.scores li .sc { font-variant-numeric: tabular-nums; color: var(--muted); }
.scores li .pc { font-weight: 800; font-family: var(--display); font-size: .8rem; min-width: 3.5rem; text-align: right; }
.flags { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.flags .pill.off { background: var(--card2); color: var(--muted); cursor: pointer; }
.flags .pill.off:hover { color: var(--text); }
.flags .pill.on { cursor: pointer; }
.notes { list-style: none; display: grid; gap: .5rem; margin-top: .75rem; }
.notes li { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes li time { display: flex; justify-content: space-between; gap: .5rem; color: var(--dim); font-size: .72rem; margin-bottom: .25rem; }
.notes li time button { color: var(--dim); font-size: .75rem; }
.notes li time button:hover { color: var(--red); }

/* settings */
.set { display: grid; gap: 1rem; max-width: 720px; }
.set h2 { font-size: .95rem; font-weight: 800; margin-bottom: .25rem; }
.set .desc { color: var(--muted); font-size: .88rem; margin-bottom: .75rem; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.set input[type=number] { max-width: 120px; }
.danger { border-color: rgba(255,92,92,.35); }

/* dialogs */
.dlg { margin: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); padding: 0; width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); box-shadow: var(--shadow); }
.dlg.wide { width: min(760px, calc(100vw - 2rem)); }
.dlg::backdrop { background: rgba(5,4,12,.7); backdrop-filter: blur(3px); }
.dlg form, .dlg .body { padding: 1.25rem; }
.dlg h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: .35rem; }
.dlg .desc { color: var(--muted); font-size: .9rem; }
.dlg .foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.dlg .foot .left { margin-right: auto; }
.dlg label.field:first-of-type { margin-top: 1rem; }
.dlg .file { display: block; margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.dlg input[type=file] { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.prev { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: .75rem; }
.prev table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.prev th, .prev td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prev th { position: sticky; top: 0; background: var(--card2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prev td.num { text-align: right; font-variant-numeric: tabular-nums; }
.prev .new { color: var(--lime); font-weight: 700; }
.prev .skip { color: var(--dim); }
.check { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--lime); }

@media (max-width: 640px) {
  .topbar { padding: .75rem 1rem; }
  .wrap { padding: .25rem .75rem 2rem; }
  .nav a { padding: .4rem .6rem; font-size: .85rem; }
  .nav a.ext { display: none; }
  .hero { padding: 1.5rem 0 1rem; }
  table.grid tbody th { min-width: 120px; max-width: 150px; font-size: .85rem; }
  table.grid td.cell { width: 72px; }
  .grid-wrap { max-height: none; }
  .ad-house .ad-cta { display: none; }
}

/* print — one class grid on A4 */
@page { size: A4 landscape; margin: 12mm; }
@media print {
  html, body { background: #fff !important; color: #000 !important; background-image: none !important; }
  .topbar, .nav, .actions, .tabs, .ad-slot, .grid-foot, .skip, .toast, .crumb, .no-print { display: none !important; }
  .has-ad { padding-bottom: 0; }
  .wrap { max-width: none; padding: 0; }
  .page-head { margin: 0 0 6mm; }
  .page-head h1 { color: #000; font-size: 16pt; }
  .page-head h1 span { color: #000; }
  .page-head .sub { color: #444; }
  .grid-wrap { overflow: visible; border: 0; border-radius: 0; background: none; max-height: none; }
  table.grid { width: 100%; font-size: 9pt; border: 1px solid #000; }
  table.grid th, table.grid td { border: 1px solid #000 !important; position: static !important; background: #fff !important; color: #000 !important; padding: 2pt 4pt; }
  table.grid thead th { background: #eee !important; }
  table.grid th.add, table.grid th.a button small { display: none; }
  table.grid th.a button { color: #000; padding: 0; }
  table.grid td.cell input { height: auto; color: #000; font-weight: 500; }
  table.grid td.avg { font-family: var(--body); color: #000 !important; }
  table.grid td.avg.pink { font-weight: 800; text-decoration: underline; }
  table.grid tbody th .flg { display: none; }
}


/* ---------- round 2: mark, pixel decoration, footer ---------- */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.brand .logo { width: 30px; height: 30px; border-radius: 0; background: none; box-shadow: none; image-rendering: pixelated; }
.ico svg, .btn svg, .pill .ico svg { width: 18px; height: 18px; vertical-align: -4px; }
.btn-icon.ico { padding: .35rem .45rem; }
.btn-icon.ico svg { width: 16px; height: 16px; vertical-align: -3px; }
.site-foot { max-width: 1180px; margin: 2rem auto 0; padding: 1rem 1.25rem 1.5rem; color: var(--dim); font-size: .8rem; text-align: center; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.site-foot span { color: var(--text); }
.foot-deco { display: flex; justify-content: center; align-items: flex-end; gap: 1.25rem; margin-bottom: .6rem; opacity: .9; }
.foot-deco img { image-rendering: pixelated; height: 34px; width: auto; }
.hero { position: relative; }
.hero-desk { position: absolute; right: -180px; top: 2rem; width: 222px; height: auto; opacity: .95; pointer-events: none; }
@media (max-width: 1100px) { .hero-desk { position: static; display: block; width: 150px; margin-bottom: .5rem; } }
.features .card img { display: block; height: 30px; width: auto; margin-bottom: .6rem; }
.empty img { display: block; margin: 0 auto .75rem; height: auto; width: 68px; }
.tabs a .n { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 999px; background: var(--card2); color: var(--muted); font-size: .72rem; margin-left: .25rem; }
.tabs a.active .n { background: var(--lime); color: var(--ink); }

/* topbar account */
.account { display: inline-flex; align-items: center; margin-left: .25rem; }
.acct-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem .35rem .55rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .82rem; max-width: 220px; }
.acct-btn:hover { border-color: var(--violet); }
.acct-btn svg { width: 16px; height: 16px; flex: none; }
.acct-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.ok { background: var(--green); } .dot.busy { background: var(--amber); } .dot.bad { background: var(--red); } .dot.off { background: var(--dim); }
.acct-menu h2 { overflow-wrap: anywhere; }
.sync-line { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; margin: .35rem 0 .9rem; }
.menu-list { display: grid; gap: .5rem; }
.menu-list .btn { justify-content: flex-start; }

/* banner */
.banner { max-width: 1180px; margin: .25rem auto .5rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(90deg, rgba(198,255,61,.12), rgba(139,123,255,.12)); font-size: .88rem; display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner[hidden] { display: none; }
.banner b { color: var(--lime); }
.banner-act { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .banner { margin: .25rem .75rem .5rem; } }

/* sign in / sign up */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px); gap: 2rem; align-items: start; padding: 2rem 0 1rem; }
.auth-wrap.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth-intro h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.08; margin-bottom: 1rem; }
.auth-intro h1 span { color: var(--lime); }
.auth-intro .lines { display: grid; gap: .5rem; font-size: 1rem; color: var(--muted); margin-bottom: 1.25rem; }
.auth-intro .lines b { color: var(--text); }
.auth-intro .lines li { list-style: none; display: flex; gap: .75rem; align-items: flex-start; }
.auth-intro .lines li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); margin-top: .5em; box-shadow: 2px 2px 0 var(--pink); }
.auth-intro .desk { display: block; width: 166px; height: auto; margin-bottom: 1rem; }
.auth-card { padding: 1.5rem; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.15rem; font-weight: 800; }
.auth-card .desc { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.auth-card label.field:first-of-type { margin-top: 1rem; }
.auth-card .btn-block { margin-top: .75rem; }
.auth-card .check { align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.auth-card .check input { flex: none; margin-top: .15rem; }
.auth-alt { margin-top: 1rem; font-size: .85rem; color: var(--muted); text-align: center; }
@media (max-width: 800px) { .auth-wrap { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1rem; } .auth-intro .desk { width: 120px; } }

/* notes */
.notes-card { margin-bottom: 1rem; border-color: rgba(198,255,61,.35); }
.notes-card h2 { display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 800; color: var(--lime); }
.notes-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.search { position: relative; display: block; flex: 1 1 200px; max-width: 360px; }
.search .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; display: inline-flex; }
.search .input { padding: .55rem .9rem .55rem 2.3rem; border-radius: 12px; }
.notes li.none { background: none; border: 0; padding: .25rem 0; color: var(--dim); font-size: .88rem; }
.notes li time a { color: var(--text); text-decoration: none; font-weight: 700; }
.notes li time a:hover { color: var(--lime); }
.notes.big li { font-size: .95rem; padding: .75rem 1rem; }
.notes.big li time { font-size: .78rem; margin-bottom: .4rem; }
.notes.big li time .pill { font-size: .66rem; padding: .1rem .5rem; vertical-align: 1px; }
.notes-page { max-width: 820px; }
.notes-tools { display: flex; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; flex-wrap: wrap; }
.notes-page .notes { margin-top: 0; margin-bottom: .75rem; }
table.grid tbody th { display: flex; align-items: center; gap: .35rem; height: 40px; border-right: 1px solid var(--line); }
table.grid tbody th .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.grid tbody th .flg svg { width: 10px; height: 10px; vertical-align: 0; }
table.grid tbody th .qn { flex: none; display: inline-flex; align-items: center; gap: .15rem; color: var(--dim); padding: .2rem .3rem; border-radius: 8px; font-size: .7rem; font-weight: 700; opacity: .55; }
table.grid tbody th .qn svg { width: 15px; height: 15px; }
table.grid tbody th .qn.has, table.grid tbody th:hover .qn, table.grid tbody th .qn:focus-visible { opacity: 1; }
table.grid tbody th .qn.has { color: var(--lime); }
table.grid tbody th .qn:hover { background: rgba(198,255,61,.14); color: var(--lime); }
@media print { table.grid tbody th { display: table-cell; } table.grid tbody th .qn { display: none; } }

/* privacy page */
.prose { max-width: 760px; font-size: .98rem; }
.prose h2 { font-size: 1.05rem; font-weight: 800; margin: 1.75rem 0 .6rem; color: var(--lime); }
.prose p, .prose ul { color: var(--muted); margin-bottom: .75rem; line-height: 1.55; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose b { color: var(--text); }
