/* aituQ — topographic HUD */
:root {
  --bg: #010803; --panel: #051B0D; --deep: #0B331A; --line: #3F6C50; --frame: #0A7131;
  --muted: #6E9E7E; --neon: #0BF77F; --mint: #64FAAE; --white: #F7FBF8; --wm-mid: #4CF8A3; --code: #3B8252;
  --u: calc(min(100vw, 100svh) / 1080);
  --cut: max(10px, calc(var(--u) * 18));
  --head: "Montserrat", "Arial Black", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --halo: 0 0 14px var(--bg), 0 0 5px var(--bg);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--white); font-family: var(--mono);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom); -webkit-tap-highlight-color: transparent;
}
a { color: var(--mint); text-decoration-color: var(--frame); text-underline-offset: 3px; }
a:hover { color: var(--neon); }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 400; }
h1 {
  font-family: var(--head); font-weight: 900; font-style: italic; letter-spacing: -0.01em;
  font-size: clamp(32px, calc(var(--u) * 84), 64px); text-shadow: var(--halo); text-wrap: balance;
}
h2 { font-family: var(--head); font-weight: 800; font-style: italic; font-size: 24px; }
h3 { font-size: 14px; font-weight: 500; color: var(--muted); }
p { margin: 0 0 8px; }
code { font-family: var(--mono); color: var(--mint); font-size: .92em; }
.muted { color: var(--muted); }
.wrap { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 max(16px, 6vw) 56px; text-shadow: var(--halo); }
.panel, .btn, .tag, input, textarea, select { text-shadow: none; }
@media (min-width: 900px) { .wrap { padding: 0 24px 64px; } }
[hidden] { display: none !important; }
.inline { display: inline; }

/* ---------- background layers ---------- */
#topo { position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
#topo.on { opacity: 1; }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06; background-repeat: repeat; }
@media (prefers-reduced-motion: no-preference) { .grain { animation: grain .5s steps(1) infinite; } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-1%, 3%); } }

/* HUD readouts: wide screens only */
.hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; font-size: 12px; color: var(--muted); display: none; }
@media (min-width: 1024px) { .hud { display: block; } }
.hud-corner { position: absolute; width: 22px; height: 22px; border-color: var(--neon); border-style: solid; border-width: 0; opacity: .8; }
.hud-corner.tl { top: 26px; left: 28px; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.tr { top: 26px; right: 28px; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-corner.bl { bottom: 26px; left: 28px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-corner.br { bottom: 26px; right: 28px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hud-bl, .hud-br { position: absolute; bottom: 34px; display: flex; gap: 16px; text-shadow: var(--halo); }
.hud-bl { left: 60px; } .hud-br { right: 60px; }
.hud b { color: var(--neon); font-weight: 500; }

/* ---------- header ---------- */
.top { position: relative; z-index: 4; max-width: 760px; margin: 0 auto; padding: 18px max(16px, 6vw) 6px; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
@media (min-width: 900px) { .top { padding: 22px 24px 6px; } }
.wordmark {
  position: relative; font-family: var(--head); font-weight: 900; font-style: italic; font-size: 28px; line-height: 1; text-decoration: none;
  padding: 6px 12px 7px; filter: drop-shadow(0 0 .04em rgba(11, 247, 127, .55)) drop-shadow(0 0 .3em rgba(11, 247, 127, .28));
}
.wordmark span, .wordmark::before, .wordmark::after {
  background: linear-gradient(90deg, var(--white) 0%, var(--white) 22%, var(--wm-mid) 36%, var(--neon) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark { border: 1px solid var(--frame); clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.hud-scn { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; display: none; }
@media (min-width: 640px) { .hud-scn { display: inline; } }
.nav { display: flex; gap: 6px 16px; align-items: center; margin-left: auto; font-size: 14px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a:focus-visible { color: var(--neon); }
.nav .nav-new { color: var(--neon); }
.me { color: var(--white); font-weight: 500; }
.flash { position: relative; z-index: 4; max-width: 712px; margin: 10px max(16px, 6vw) 0; padding: 10px 14px; background: var(--deep); border-left: 4px solid var(--neon); color: var(--white); }
@media (min-width: 760px) { .flash { margin: 10px auto 0; } }
.flash .slash { color: var(--neon); }
.foot { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 24px max(16px, 6vw) 48px; display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: var(--frame); text-underline-offset: 3px; min-height: 32px; }
.linklike:hover { color: var(--neon); }

/* glitch: wordmark on load, primary button on hover */
.glitch-host { position: relative; }
.wordmark::before, .wordmark::after, .btn.primary::before {
  content: attr(data-text); position: absolute; pointer-events: none; opacity: 0;
}
.wordmark::before, .wordmark::after { left: 12px; top: 6px; mix-blend-mode: screen; }
.wordmark.g1::before, .wordmark.g2::before { opacity: .9; animation: glitchA .1s steps(1) 1; }
.wordmark.g1::after, .wordmark.g2::after { opacity: .9; animation: glitchB .1s steps(1) 1; }
.wordmark.g1 span, .wordmark.g2 span { animation: shake .1s steps(1) 1; display: inline-block; }
@keyframes glitchA { 0% { clip-path: inset(10% 0 60% 0); transform: translateX(-.07em); } 50% { clip-path: inset(55% 0 20% 0); transform: translateX(.05em); } }
@keyframes glitchB { 0% { clip-path: inset(65% 0 5% 0); transform: translateX(.09em); } 50% { clip-path: inset(20% 0 50% 0); transform: translateX(-.06em); } }
@keyframes shake { 0% { transform: translateX(.03em); } 50% { transform: translateX(-.03em); } }

/* ---------- section label ---------- */
.label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin: 0 0 10px; text-shadow: var(--halo); }
.label > span { color: var(--neon); font-weight: 700; letter-spacing: 0; }
.label > b { color: var(--white); font-weight: 700; }
.label > b::after { content: ""; display: inline-block; vertical-align: middle; width: clamp(28px, calc(var(--u) * 90), 90px); height: 1px; background: var(--frame); margin-left: 10px; }
.label a { color: var(--muted); letter-spacing: .05em; text-transform: none; }

/* ---------- panels: 45° cut corners, 1px frame, neon strip ---------- */
.panel { position: relative; isolation: isolate; }
.panel::before, .panel::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.panel::before { inset: 0; background: var(--frame); }
.panel::after { inset: 1px; background: linear-gradient(var(--neon), var(--neon)) no-repeat calc(var(--cut) * .55) 0 / max(28px, calc(var(--u) * 54)) 3px, rgba(5, 27, 13, .94); }

/* ---------- hero ---------- */
.hero { padding: 28px 0 12px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(1, 8, 3, .86), transparent); pointer-events: none; }
.lead { margin-top: 12px; color: var(--muted); max-width: 52ch; text-shadow: var(--halo); }
.sessions { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; display: grid; gap: 4px; }
.sessions li { display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: baseline; color: var(--white); }
.sessions li em { font-style: normal; font-size: 13px; color: var(--muted); }
.sessions li.st-open em, .sessions li.st-live em { color: var(--neon); }
.sessions li.st-past { color: var(--muted); }
.sessions li.st-past span { text-decoration: line-through; text-decoration-color: var(--line); }
.sessions.big { font-size: 16px; margin-top: 14px; text-shadow: var(--halo); }
.meta { margin-top: 12px; color: var(--muted); }
.desc { margin-top: 12px; white-space: pre-line; max-width: 60ch; border-left: 2px solid var(--frame); padding-left: 12px; text-shadow: var(--halo); }
.empty { color: var(--muted); margin-top: 12px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 14px; margin-top: 8px; }
.card { display: block; text-decoration: none; color: var(--white); padding: 18px 20px 16px; transition: transform .2s ease; }
.card:hover { color: var(--white); transform: translateY(-2px); }
.card:hover::before { background: var(--neon); }
.card-head { display: flex; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.card.is-open .state { color: var(--neon); }
.card h2 { font-size: clamp(24px, 6vw, 32px); margin-top: 6px; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; margin-top: 14px; font-size: 14px; flex-wrap: wrap; }
.cta { font-family: var(--head); font-weight: 900; font-style: italic; color: var(--neon); font-size: 16px; }
.muted-cta { color: var(--mint); }
.mine { color: var(--white); }
.mine .num { font-family: var(--head); font-weight: 900; font-style: italic; font-size: 22px; color: var(--neon); margin-right: 4px; }
.count { color: var(--muted); }
.count b, .nodes { color: var(--white); font-weight: 700; }

/* ---------- blocks ---------- */
.block { margin-top: 30px; }
.notice, .mine-block, .countdown { padding: 16px 20px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-size: 15px; font-weight: 500; min-height: 44px; padding: 10px 16px; border: 1px solid var(--frame);
  background: rgba(5, 27, 13, .9); color: var(--white); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { border-color: var(--neon); color: var(--neon); }
.btn:active { transform: translateY(1px); }
.btn i { font-style: normal; font-family: var(--mono); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.primary {
  position: relative; isolation: isolate; overflow: hidden; border: 0; color: var(--bg); background: var(--neon);
  font-family: var(--head); font-weight: 900; font-style: italic; font-size: 16px; padding: 12px 20px;
  box-shadow: 0 0 14px rgba(11, 247, 127, .35);
}
.btn.primary::before { inset: 12px 20px; color: var(--bg); mix-blend-mode: multiply; }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(247, 251, 248, .55), transparent); transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn.primary::after { animation: scan 7s linear infinite; }
  .btn.primary:hover::before { opacity: .7; animation: glitchA .1s steps(1) 2; }
}
@keyframes scan { 0%, 88% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn.primary:hover { background: var(--mint); color: var(--bg); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.actions form { margin: 0; }
.small-note { margin-top: 10px; font-size: 14px; }

/* ---------- my place, countdown ---------- */
.mine-pos { display: flex; align-items: center; gap: 18px; }
.mine-pos .num { font-family: var(--head); font-weight: 900; font-style: italic; font-size: clamp(48px, calc(var(--u) * 96), 72px); line-height: 1; color: var(--neon); text-shadow: 0 0 18px rgba(11, 247, 127, .35); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mine-pos div { display: grid; gap: 2px; }
.mine-pos b { font-size: 16px; }
.mine-pos span:not(.num) { color: var(--muted); font-size: 14px; }
.countdown .num { font-size: clamp(30px, calc(var(--u) * 64), 52px); white-space: nowrap; }
details.swap summary { list-style: none; }
details.swap summary::-webkit-details-marker { display: none; }
.swapform { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
select, input[type=text], input[type=number], input[type=datetime-local], input:not([type]), textarea {
  font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--frame); background: var(--panel); color: var(--white); max-width: 100%; border-radius: 0;
}
textarea { width: 100%; resize: vertical; }
input.tiny { width: 70px; padding: 4px 8px; }
::placeholder { color: var(--muted); opacity: .8; }

/* ---------- queue rail ---------- */
.qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.qhead .label { margin: 0; }
.qhead > span { font-size: 14px; }
.admin-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding: 12px 14px; }
.admin-bar form { margin: 0; }
details.adm { width: 100%; }
details.adm summary { list-style: none; }
details.adm summary::-webkit-details-marker { display: none; }
.admform { display: grid; gap: 8px; margin-top: 8px; }
.dl { display: flex; gap: 8px; flex-wrap: wrap; }
.rail { margin-top: 14px; display: grid; gap: 14px; }
.group { padding: 14px 16px 10px; }
.group.st-past { opacity: .72; }
.ghead { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--deep); }
.chip { font-style: normal; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.chip-open, .chip-live { color: var(--neon); }
.chip-live::before { content: "● "; }
.row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px 6px 0; min-height: 48px; }
.row + .row { border-top: 1px solid var(--deep); }
.pos { font-family: var(--head); font-weight: 900; font-style: italic; font-size: 26px; text-align: right; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pos i { font-style: italic; color: var(--frame); }
.who { display: flex; gap: 4px 10px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.who .name { font-weight: 500; overflow-wrap: anywhere; }
.tag { font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--bg); background: var(--neon); padding: 1px 6px; }
.tag.dim { background: transparent; color: var(--muted); padding: 0; }
.comment { font-style: normal; font-size: 13px; color: var(--mint); }
.comment::before { content: "// "; color: var(--frame); }
.row.free .pos { color: var(--line); }
.row.free .pos i { color: var(--deep); }
.row.st-done .name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--frame); }
.row.st-done .pos { color: var(--frame); }
.row.st-skipped .name, .row.st-skipped .pos { color: var(--muted); }
.row.now { background: linear-gradient(90deg, rgba(11, 247, 127, .16), rgba(11, 247, 127, .02)); box-shadow: inset 3px 0 0 var(--neon); }
.row.now .pos { color: var(--neon); }
.row.next .pos { color: var(--mint); }
.row.me .name::after { content: " ◂ ты"; color: var(--neon); font-size: 13px; }
.rowadmin summary { list-style: none; cursor: pointer; color: var(--muted); padding: 8px 10px; font-weight: 700; min-width: 44px; text-align: center; }
.rowadmin summary::-webkit-details-marker { display: none; }
.rowadmin[open] { grid-column: 1 / -1; display: grid; gap: 8px; padding: 6px 0 8px 62px; font-size: 14px; }
.rowadmin form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.takebtn { font: inherit; font-size: 14px; min-height: 36px; padding: 4px 14px; border: 1px solid var(--neon); background: transparent; color: var(--neon); cursor: pointer; }
.takebtn:hover { background: var(--neon); color: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  .row.now { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { box-shadow: inset 3px 0 0 var(--neon); } 50% { box-shadow: inset 3px 0 0 var(--neon), 0 0 18px rgba(11, 247, 127, .25); } }
}

/* ---------- notes ---------- */
.noteform { display: grid; gap: 10px; margin: 12px 0 18px; justify-items: start; }
.notes { display: grid; gap: 12px; }
.note { padding: 14px 18px; }
.note header { display: flex; gap: 4px 8px; align-items: baseline; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.note header b { color: var(--white); }
.note header time { margin-left: auto; }
.note p { margin: 8px 0 0; white-space: pre-line; }

/* ---------- schedule ---------- */
.schedule { display: grid; gap: 22px; margin-top: 8px; }
.sday h2 { margin-bottom: 8px; text-shadow: var(--halo); }
.sitem { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--white); padding: 12px 16px; margin-top: 8px; }
.sitem:hover { color: var(--white); }
.sitem:hover::before { background: var(--neon); }
.sitem.kind-lecture { opacity: .62; }
.stime { font-family: var(--head); font-weight: 900; font-style: italic; font-size: 18px; min-width: 58px; display: grid; line-height: 1.1; color: var(--neon); }
.stime small { font-family: var(--mono); font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
.sbody { display: grid; gap: 2px; }
.sbody span { font-size: 13px; color: var(--muted); }

/* ---------- forms, prose ---------- */
.form { display: grid; gap: 18px; margin-top: 8px; max-width: 540px; }
.form label { display: grid; gap: 6px; }
.form small { color: var(--muted); font-size: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.form legend { padding: 0; margin-bottom: 6px; }
.kinds { display: flex !important; gap: 8px 18px; flex-wrap: wrap; }
.kinds label { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
#sessions label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--panel); border: 1px solid var(--frame); min-height: 44px; }
input[type=radio], input[type=checkbox] { accent-color: var(--neon); width: 18px; height: 18px; }
.form .btn { justify-self: start; }
.login { padding-top: 28px; max-width: 560px; }
.login h1 { margin-bottom: 14px; }
.steps { padding-left: 22px; }
.steps li + li { margin-top: 10px; }
.steps li::marker { color: var(--neon); font-weight: 700; }
.prose { max-width: 660px; padding-top: 28px; }
.prose h1 { margin-bottom: 14px; }
.prose h2 { margin-top: 26px; margin-bottom: 8px; color: var(--neon); font-size: 20px; }
.prose p { color: var(--white); text-shadow: var(--halo); }

@media (max-width: 480px) {
  .row { grid-template-columns: 44px 1fr auto; gap: 8px; }
  .pos { font-size: 22px; }
  .rowadmin[open] { padding-left: 0; }
  .card { padding: 16px 16px 14px; }
}
@media (max-height: 700px) and (max-width: 640px) {
  .hero { padding-top: 16px; }
  .block { margin-top: 22px; }
  .lead { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- action log ---------- */
.flag { font-weight: 700; color: var(--bg); background: var(--mint); padding: 0 5px; font-size: 12px; letter-spacing: .04em; }
.logtable { padding: 6px 14px; font-size: 13px; }
.logrow { display: grid; grid-template-columns: 96px 84px 1fr; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--deep); }
.logrow:first-child { border-top: 0; }
.logrow .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.logrow .d { color: var(--neon); font-variant-numeric: tabular-nums; }
.logrow .a, .logrow .r, .logrow .ip { grid-column: 3; }
.logrow .r { color: var(--muted); }
.logrow .ip { font-size: 12px; overflow-wrap: anywhere; }
.logrow.flagged { box-shadow: inset 3px 0 0 var(--mint); padding-left: 8px; }
.logrow.refused .u b { color: var(--muted); }
@media (max-width: 480px) { .logrow { grid-template-columns: 1fr 1fr; } .logrow .u, .logrow .a, .logrow .r, .logrow .ip { grid-column: 1 / -1; } }

/* ---------- group work ---------- */
.team { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--deep); }
.team .label { margin-bottom: 6px; }
.team-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.team-list li::before { content: "▸"; color: var(--neon); }
.topicform { margin-top: 12px; }
.who .topic { flex-basis: 100%; font-style: normal; font-size: 13px; color: var(--mint); }
.who .topic.none { color: var(--muted); }
.course-head { margin: 18px 0 0; }
.cards > .course-head:first-child { margin-top: 0; }

/* ---------- subjects and weeks ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin-top: 8px; }
.tile { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--white); padding: 18px 20px 16px; min-height: 150px; transition: transform .2s ease; }
.tile:hover { color: var(--white); transform: translateY(-2px); }
.tile:hover::before { background: var(--neon); }
.tile h2 { font-size: clamp(22px, 5vw, 28px); }
.tile-code { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.tile.is-open .tile-code, .tile.is-open .tile-state { color: var(--neon); }
.tile-state { margin: 0; font-size: 14px; color: var(--muted); }
.tile-mine { margin: 0; font-size: 14px; color: var(--mint); }
.tile-ev { margin: 0; font-size: 14px; }
.tile-ev b { color: var(--neon); font-weight: 500; margin-right: 4px; }
.tile-ev em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 6px; }
.tile-foot { margin: 6px 0 0; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.tile.week.past { opacity: .62; }
.pickform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pickform label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

/* ---------- number grid ---------- */
.numgrid-title { margin: 14px 0 6px; font-size: 14px; }
.numgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-width: 520px; }
.numgrid .num { font: inherit; font-family: var(--head); font-weight: 900; font-style: italic; font-size: 18px; min-height: 44px; border: 1px solid var(--neon); background: transparent; color: var(--neon); cursor: pointer; }
.numgrid .num:hover { background: var(--neon); color: var(--bg); }
.numgrid .num.taken { border-color: var(--deep); color: var(--line); cursor: not-allowed; background: rgba(5, 27, 13, .6); }
.numgrid .num.mine { background: var(--neon); color: var(--bg); }
.pairpick { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.numgrid .num.quota { border-color: var(--mint); color: var(--mint); border-style: dashed; }
.numgrid .num.quota:disabled { opacity: .45; cursor: not-allowed; }
.numgrid .num:disabled:not(.taken):not(.mine) { opacity: .45; cursor: not-allowed; }

/* ---------- priority (gold) numbers ---------- */
:root { --gold: #F5C542; }
.numgrid .num.gold { border-color: var(--gold); color: var(--gold); border-style: solid; }
.numgrid .num.gold.taken { background: rgba(245, 197, 66, .12); color: var(--gold); opacity: .8; }
.numgrid .num.gold:not(:disabled):hover { background: var(--gold); color: var(--bg); }
.row.gold .pos, .row.gold .pos i { color: var(--gold); }
.row.gold { box-shadow: inset 3px 0 0 var(--gold); }
