/* ═══════════════ Daftar — dizayn tizimi ═══════════════
   Ochiq rejim: katak daftar, siyoh-ko'k, qizil ruchka.
   Qorong'i rejim: sinf doskasi va bo'r. */

:root {
  --paper: #F5F7FB;
  --sheet: #FFFFFF;
  --grid: #DFE6F2;
  --line: #CBD5E6;
  --ink: #1D3B8F;
  --ink-soft: #E7ECF8;
  --text: #15213F;
  --muted: #5A6886;
  --red: #D62839;
  --red-soft: #FBE7E9;
  --marker: #FFE14D;
  --green: #13855C;
  --green-soft: #E2F4EC;
  --on-ink: #FFFFFF;
  --shadow: 0 1px 0 var(--line), 0 6px 18px -12px rgba(21, 33, 63, .35);
  --r-s: 6px;
  --r-m: 10px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --gap: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #1C2925;
  --sheet: #23332E;
  --grid: #2B3D37;
  --line: #3A5049;
  --ink: #F1E3A0;
  --ink-soft: #33463F;
  --text: #ECF0EA;
  --muted: #A3B4AB;
  --red: #FF8E8E;
  --red-soft: #4A3233;
  --marker: #E8CB3D;
  --green: #84DDAD;
  --green-soft: #284339;
  --on-ink: #1C2925;
  --shadow: 0 1px 0 var(--line);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.5 var(--font);
  color: var(--text);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
img, video, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 .8em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.green { color: var(--green); }
.hand { font-family: var(--hand); font-weight: 700; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: var(--gap); } .mt2 { margin-top: calc(var(--gap) * 2); } .mb { margin-bottom: var(--gap); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.hidden { display: none !important; }

/* ── Tugmalar ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-s);
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--ink); padding: 0 10px; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--red); }
.btn.quiet.red { color: var(--red); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }

/* ── Formalar ── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-s);
  border: 1.5px solid var(--line); background: var(--sheet); outline: none;
}
.input:focus { border-color: var(--ink); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-error { color: var(--red); font-size: 14px; margin: -4px 0 12px; min-height: 0; }

/* ── Varaq (asosiy sirt) ── */
.sheet {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow); padding: 18px;
}
.sheet + .sheet, .sheet + .block, .block + .sheet { margin-top: 14px; }
.margin-sheet { position: relative; padding-left: 34px; }
.margin-sheet::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 20px; width: 1.5px;
  background: var(--red); opacity: .55;
}
.ruled > * { border-bottom: 1px solid var(--grid); }
.ruled > *:last-child { border-bottom: 0; }

/* ── O'quvchi ilovasi karkasi ── */
.app { max-width: 600px; margin: 0 auto; padding: 0 14px calc(84px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  margin: 0 -14px 14px; padding: 10px 14px; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--grid);
}
.brand { font-family: var(--hand); font-weight: 700; font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; }
.topbar .back { font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--sheet); font-weight: 600; font-size: 14px;
  text-decoration: none; color: var(--text);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center; background: var(--sheet); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-in { display: flex; width: 100%; max-width: 600px; }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px;
  font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on svg { stroke-width: 2.2; }

/* ── Kunlik varaq (bosh sahifa) ── */
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.day-num { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.task {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--text);
}
.task .box {
  flex: none; width: 26px; height: 26px; border: 1.5px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--hand); font-size: 24px; color: var(--red); line-height: 1;
}
.task.done .title { color: var(--muted); }
.task .title { font-weight: 600; }
.task .meta { font-size: 13px; color: var(--muted); }
.task .xp { font-size: 13px; font-weight: 700; color: var(--muted); }

.mark { background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); padding: 0 2px; }
.bar { height: 10px; border-radius: 5px; background: var(--ink-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.bar.marker > i { background: var(--marker); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stats > div { padding: 4px 10px; border-left: 1px solid var(--grid); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.stats span { font-size: 12px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 92px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m);
  text-decoration: none; color: var(--text); position: relative;
}
.tile .ico { font-size: 22px; line-height: 1; }
.tile b { font-weight: 600; }
.tile small { color: var(--muted); }
.tile .badge { position: absolute; top: 10px; right: 10px; }
.badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
}
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px;
  background: var(--ink-soft); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.plain { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ── Qizil ruchka bahosi (asosiy "imzo" element) ── */
.grade {
  font-family: var(--hand); font-weight: 700; color: var(--red); line-height: 1; display: inline-block;
  transform: rotate(-6deg);
}
.grade.big { font-size: 64px; }
.grade.mid { font-size: 34px; }
.grade.ring { border: 2.5px solid var(--red); border-radius: 50%; width: 1.5em; height: 1.5em; display: inline-grid; place-items: center; }
.stamp-in { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp { from { transform: scale(1.8) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }

/* ── O'quv xaritasi ── */
.map { position: relative; padding-left: 8px; }
.map::before { content: ""; position: absolute; left: 25px; top: 18px; bottom: 18px; border-left: 2px dashed var(--line); }
.map-day { position: relative; display: flex; gap: 14px; padding: 10px 0; }
.map-node {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--sheet); border: 2px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted);
}
.map-day.today .map-node { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.map-day.done .map-node { border-color: var(--green); color: var(--green); }
.map-day.locked { opacity: .55; }
.map-body { flex: 1; min-width: 0; }
.map-body h3 { margin: 6px 0 8px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px;
  border: 1.5px solid var(--line); border-radius: 19px; background: var(--sheet);
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px;
}
.chip.done { border-color: var(--green); }
.chip.review { border-style: dashed; border-color: var(--ink); }
.chip.retry { border-color: var(--red); }
.chip.locked { color: var(--muted); pointer-events: none; }
.chip > span:not(.g):not(.small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.chip .g { font-family: var(--hand); font-size: 20px; color: var(--red); line-height: 1; }

.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--line);
  background: var(--sheet); font-weight: 600; font-size: 14px; cursor: pointer;
}
.seg button.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ── Dars matni ── */
.prose { font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 18px; margin-top: 18px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 .9em; }
.prose li { margin: 3px 0; }
.prose blockquote {
  margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--ink); background: var(--ink-soft);
  border-radius: 0 var(--r-s) var(--r-s) 0;
}
.prose code { background: var(--ink-soft); padding: 1px 5px; border-radius: 4px; }
.media { margin: 12px 0; border-radius: var(--r-m); overflow: hidden; }
.media iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.media audio { width: 100%; }

/* ── Savollar ── */
.qcard { padding: 16px 0; border-top: 1px solid var(--grid); }
.qcard:first-child { border-top: 0; }
.qnum { font-family: var(--hand); font-size: 24px; color: var(--muted); line-height: 1; margin-right: 6px; }
.qprompt { font-weight: 600; font-size: 16px; margin-bottom: 10px; display: flex; align-items: baseline; }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--sheet); cursor: pointer; font-weight: 500;
}
.opt.sel { border-color: var(--ink); background: var(--ink-soft); }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
.words { display: flex; flex-wrap: wrap; gap: 8px; min-height: 46px; padding: 8px; border: 1.5px dashed var(--line); border-radius: var(--r-s); }
.words.pool { border-style: solid; border-color: transparent; padding: 0; min-height: 0; margin-top: 8px; }
.word { min-height: 36px; padding: 0 12px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--sheet); font-weight: 600; cursor: pointer; }
.word.used { visibility: hidden; }
.verdict { margin-top: 8px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.verdict .mk { font-family: var(--hand); font-size: 26px; line-height: .8; }

.result-head { display: flex; align-items: center; gap: 18px; }

/* ── Ro'yxatlar va reyting ── */
.list > * { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--grid); text-decoration: none; color: var(--text); }
.list > *:last-child { border-bottom: 0; }
.place { width: 28px; text-align: center; font-weight: 700; color: var(--muted); }
.place.top { font-family: var(--hand); font-size: 26px; color: var(--red); }
.avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-soft); color: var(--ink); font-weight: 700; font-size: 14px;
}
.avatar.big { width: 64px; height: 64px; font-size: 22px; }
.me-row { background: linear-gradient(90deg, transparent, var(--ink-soft) 30%, var(--ink-soft) 70%, transparent); }

/* ── Profil: davomat jadvali (katakchalar) ── */
.heat { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; grid-auto-columns: 12px; gap: 3px; overflow-x: auto; }
.heat i { width: 12px; height: 12px; border-radius: 2px; background: var(--grid); }
.heat i.on { background: var(--ink); }
.heat i.today { outline: 1.5px solid var(--red); }
.ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ach > div { text-align: center; padding: 12px 6px; border: 1px dashed var(--line); border-radius: var(--r-m); }
.ach > div.got { border: 1.5px solid var(--ink); background: var(--ink-soft); }
.ach .e { font-size: 28px; line-height: 1.1; filter: grayscale(1); opacity: .45; }
.ach .got .e { filter: none; opacity: 1; }
.ach b { display: block; font-size: 12px; margin-top: 4px; line-height: 1.25; }

.skill { display: grid; grid-template-columns: 100px 1fr 40px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }

/* ── Chat ── */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 12px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.msg small { display: block; opacity: .65; font-size: 11px; margin-top: 2px; }
.composer { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 10px 0; background: var(--paper); }

/* ── Kirish ekrani ── */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 8vh 18px 40px; }
.auth-brand { font-family: var(--hand); font-weight: 700; font-size: 64px; color: var(--ink); line-height: .9; }
.auth-tag { font-size: 17px; color: var(--muted); margin: 6px 0 26px; max-width: 30ch; }
.switch-link { display: block; margin-top: 16px; text-align: center; }

/* ── Kurs va tarif tanlash ── */
.choice { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--sheet); cursor: pointer; width: 100%; text-align: left; }
.choice + .choice { margin-top: 10px; }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice .em { font-size: 30px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { padding: 14px 12px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--sheet); cursor: pointer; text-align: left; position: relative; }
.plan.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan b { font-size: 17px; display: block; }
.plan .per { font-size: 12px; color: var(--muted); }
.plan .save { position: absolute; top: -9px; right: 10px; background: var(--marker); color: #15213F; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.price-line { display: flex; justify-content: space-between; padding: 6px 0; }
.price-total { font-size: 22px; font-weight: 700; }
.strike { text-decoration: line-through; color: var(--muted); }
.card-no { font-size: 22px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ── Toast va modal ── */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 100; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: var(--r-m);
  background: var(--text); color: var(--paper); font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
  animation: toastIn .2s ease-out;
}
.toast.err { background: var(--red); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(15, 22, 40, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--sheet);
  border-radius: 14px 14px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: sheetUp .22s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) { .modal-back { align-items: center; } .modal { border-radius: 14px; } }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }
.loader { display: grid; place-items: center; padding: 60px 0; color: var(--muted); }
.loader::after { content: ""; width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════ Xodimlar paneli (kurator, admin) ═══════════════ */
.staff { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--sheet); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: block; padding: 0 10px 4px; }
.side .role { padding: 0 10px 16px; font-size: 13px; color: var(--muted); }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-s);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px;
}
.side nav a:hover { background: var(--ink-soft); }
.side nav a.on { background: var(--ink); color: var(--on-ink); }
.side nav a .badge { margin-left: auto; }
.side nav .sep { height: 1px; background: var(--grid); margin: 10px 4px; }
.main { padding: 22px 28px 60px; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.main-head h1 { margin: 0; }
.mobile-top { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; }
.kpi b { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.alert b { color: var(--red); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.grid2 > .sheet, .grid2 > div > .sheet:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters .input { width: auto; min-width: 150px; min-height: 38px; padding: 6px 10px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart .col i { width: 100%; max-width: 26px; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart .col span { font-size: 10px; color: var(--muted); }
.qedit { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; background: var(--sheet); }
.qedit + .qedit { margin-top: 10px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

@media (max-width: 860px) {
  .staff { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .staff.menu-open .side { transform: none; }
  .mobile-top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; padding: 10px 14px; background: var(--sheet); border-bottom: 1px solid var(--line); }
  .main { padding: 16px 14px 60px; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .tiles { grid-template-columns: 1fr; } .ach { grid-template-columns: repeat(2, 1fr); } }
