/* Ochiq dars — Avloniy instituti brend ranglari: to'q ko'k #002D6D, oltin #CFB023,
   harakat ko'ki #1F6FD0 (lms.avloniy.uz bilan bir xil palitra). */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f1f3fa;
  --grid: transparent;
  --surface: #ffffff;
  --ink: #181c2e;
  --ink-2: #5a6175;
  --ink-3: #6e7694;
  --line: #e4e7f2;
  --board: #002d6d;
  --board-2: #001f4d;
  --chalk: #ffffff;
  --chalk-2: #b8c6e0;
  --brand: #002d6d;
  --brand-ink: #ffffff;
  --brand-soft: #e3edf9;
  --pen: #cfb023;
  --pen-ink: #9a7f10;
  --siyoh: #1f6fd0;
  --accent: #cfb023;
  --live: #d6333f;
  --ok: #1f8a55;
  --warn: #b26a12;
  --l1: #d6333f; --l2: #e2a845; --l3: #1f6fd0; --l4: #002d6d;
  --radius: 14px;
  --nav-h: 64px;
  --font: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10131f; --grid: transparent; --surface: #1b1f31; --ink: #f2f6ff; --ink-2: #a9b0c9; --ink-3: #8e96ac;
    --line: #2a3048; --board: #0c1f45; --board-2: #102a5c; --chalk: #f2f6ff; --chalk-2: #a9b8d8; --brand: #8fb8f0; --brand-ink: #0c0f1d; --brand-soft: #1d2a48;
    --pen: #e8cc82; --pen-ink: #e8cc82; --siyoh: #8fb8f0; --accent: #e8cc82; --live: #ef5a62; --ok: #63b98a; --warn: #e0a24a;
    --l1: #ef5a62; --l2: #e8b14f; --l3: #5b9bea; --l4: #8fb8f0;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink);
  background-color: var(--paper);
  font: 15px/1.5 var(--font);
  font-variant-ligatures: no-common-ligatures;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--siyoh); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14.5px; font-weight: 650; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--siyoh); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.app { max-width: 680px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
.app.wide { max-width: 1240px; }
.top {
  position: sticky; top: 0; z-index: 10; background: var(--board); color: var(--chalk); border-bottom: 3px solid var(--accent);
  padding: calc(12px + env(safe-area-inset-top)) 16px 14px; display: flex; align-items: center; gap: 12px;
}
.top .title { flex: 1; min-width: 0; }
.top .title h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .title .sub { font-size: 12.5px; color: var(--chalk-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .back { background: none; border: 0; color: inherit; padding: 6px; margin-left: -6px; cursor: pointer; display: flex; }
.mark { width: 32px; height: 32px; flex: none; }
.page { padding: 16px; display: grid; gap: 12px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 2px 0; }
.section-h h2 { font-size: 15px; font-weight: 700; color: var(--ink); }
.section-h .muted { font-variant-numeric: tabular-nums; }

.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface);
  border-top: 1px solid var(--line); display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav .in { display: flex; width: 100%; max-width: 680px; }
.nav a {
  flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11.5px; color: var(--ink-3); position: relative;
}
.nav a svg { width: 22px; height: 22px; }
.nav a.on { color: var(--board); font-weight: 650; }
.nav a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--pen); }
@media (prefers-color-scheme: dark) { .nav a.on { color: var(--brand); } }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 2px rgba(24, 28, 46, .04); }
.card.tight { padding: 0; overflow: hidden; }
a.card { color: inherit; display: block; }
a.card:active { background: var(--brand-soft); }

/* Dars kartasi: chapda vaqt, qizil hoshiya chizig'idan keyin dars */
.lesson, a.card.lesson { display: grid; grid-template-columns: 50px 1fr; gap: 0; padding: 14px 16px; }
.lesson .time { font-variant-numeric: tabular-nums; padding-top: 1px; }
.lesson .time b { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.lesson .time span { font-size: 12px; color: var(--ink-3); }
.lesson .what { min-width: 0; border-left: 2px solid var(--pen); padding-left: 14px; }
.lesson .subj { font-weight: 700; font-size: 16px; line-height: 1.3; }
.lesson .topic { color: var(--ink-2); margin-top: 3px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lesson .who { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.lesson .foot { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--ink-2); align-items: center; }
.room { display: inline-flex; align-items: center; font-weight: 700; font-size: 12px; padding: 1px 7px; border: 1.5px solid currentColor; border-radius: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Efirdagi dars — qora doska */
.lesson.is-live { background: var(--board); border-color: var(--board); color: var(--chalk); box-shadow: 0 14px 28px -18px rgba(0, 45, 109, .7); }
.lesson.is-live .time span, .lesson.is-live .who { color: var(--chalk-2); }
.lesson.is-live .topic, .lesson.is-live .foot { color: #dce5f5; }
.lesson.is-live .room { color: var(--chalk); }
a.lesson.is-live:active { background: var(--board-2); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--brand-soft); color: var(--board); font-weight: 650; }
.tag.live { background: var(--live); color: #fff; }
.tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.tag.done { background: transparent; color: var(--ok); padding-left: 0; }
.tag.grey { background: transparent; color: var(--ink-3); padding-left: 0; font-weight: 500; }
.lesson.is-live .tag.done { color: #e8cc82; }
@keyframes blink { 50% { opacity: .25; } }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.input, select.input, textarea.input {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; min-height: 48px; outline: none;
}
textarea.input { min-height: 88px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--board); box-shadow: 0 0 0 3px var(--brand-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--board); background: var(--board); color: var(--chalk);
  font-weight: 650; cursor: pointer; width: 100%;
}
@media (prefers-color-scheme: dark) { .btn { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } }
.btn svg.i { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--board); }
.btn.quiet { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn.danger { background: var(--surface); border-color: var(--line); color: var(--live); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sm { min-height: 36px; padding: 0 12px; width: auto; font-size: 13.5px; }
.err { color: var(--live); font-size: 13.5px; min-height: 1em; }
.choice { display: grid; gap: 8px; }
.choice label { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.choice input { accent-color: var(--board); width: 18px; height: 18px; }
.choice label:has(input:checked) { border-color: var(--board); box-shadow: inset 3px 0 0 var(--board); }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 4px; border-radius: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--board); color: var(--chalk); font-weight: 650; }

/* Kirish: tepada doska */
.login-wrap { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.login-board { background: var(--board); color: var(--chalk); border-bottom: 4px solid var(--accent); padding: calc(40px + env(safe-area-inset-top)) 24px 36px; }
.login-board .in { max-width: 420px; margin: 0 auto; display: grid; gap: 18px; }
.login-board .brand { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 16px; }
.login-board .brand .mark { width: 40px; height: 40px; }
.login-board h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.login-board p { margin: 0; color: var(--chalk-2); font-size: 15px; max-width: 36ch; }
.login { padding: 24px 20px 40px; max-width: 420px; width: 100%; margin: 0 auto; display: grid; gap: 18px; align-content: start; }

.player { position: sticky; top: 0; z-index: 9; background: #000; aspect-ratio: 16 / 9; width: 100%; }
.player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.player .state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #d6dbe1; font-size: 14px; text-align: center; padding: 20px; }
.player .bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; align-items: center; padding: 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 12.5px; }
.player .bar .sp { flex: 1; }
.player .bar button { background: rgba(255,255,255,.16); border: 0; color: #fff; border-radius: 6px; padding: 5px 9px; font-size: 12px; cursor: pointer; }
.player .bar button.on { background: #fff; color: #000; }
.watch { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.meter { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--siyoh); width: 0; transition: width .4s; }

.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; animation: blink 1.4s infinite; }

/* Efir boshqaruvi (dars egasi) */
.bcast { display: flex; align-items: center; gap: 12px; border-left: 4px solid var(--ink-3); }
.bcast.on { border-left-color: var(--live); }
.bcast .grow { flex: 1; min-width: 0; }
.bcast .grow b { display: block; font-weight: 700; }
.bcast .grow span { font-size: 13px; color: var(--ink-3); }

/* Kuzatuv varaqasi */
.domain { display: grid; gap: 10px; }
.domain > h3 { font-size: 15px; font-weight: 700; margin: 8px 2px 0; }
.crit .ct { display: flex; gap: 10px; align-items: baseline; }
.crit .ct b { font-size: 12px; color: var(--pen-ink); font-weight: 700; min-width: 22px; }
.crit .ct h3 { font-size: 15.5px; flex: 1; }
.crit .q { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 12px 32px; }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.levels button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 2px 8px; cursor: pointer;
  display: grid; gap: 2px; justify-items: center;
}
.levels button b { font-size: 19px; font-weight: 800; }
.levels button span { font-size: 11px; color: var(--ink-3); }
.levels button.on { color: #fff; border-color: transparent; }
.levels button.on span { color: rgba(255,255,255,.88); }
.levels button.on.v1 { background: var(--l1); } .levels button.on.v2 { background: var(--l2); }
.levels button.on.v3 { background: var(--l3); } .levels button.on.v4 { background: var(--l4); }
.crit .desc { margin-top: 10px; font-size: 13px; color: var(--ink-2); border-left: 3px solid var(--pen); padding: 2px 0 2px 10px; }
.crit .more { background: none; border: 0; color: var(--siyoh); font-size: 12.5px; padding: 8px 0 0; cursor: pointer; }
.crit .all { margin-top: 6px; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.crit .all div { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.progress-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); margin: 8px 2px 0; }
.progress-line span:first-child { font-size: 17px; font-weight: 800; color: var(--ink); }

.big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12.5px; color: var(--ink-3); }
.kpi:first-child { background: var(--board); border-color: var(--board); color: var(--chalk); }
.kpi:first-child .l { color: var(--chalk-2); }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 34px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { height: 8px; background: var(--brand-soft); border-radius: 4px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--siyoh); border-radius: 4px; }
@media (prefers-color-scheme: dark) { .bar-row .track i { background: var(--brand); } }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 650; }
.fb { display: grid; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); }
.fb:first-child { border-top: 0; }
.fb .h { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
.fb .h b { font-weight: 650; }
.fb .h .tnum { font-weight: 800; color: var(--board); }
.fb p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.fb p em { font-style: normal; color: var(--ink-3); font-size: 12px; display: block; }
.useful { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); justify-self: start; }
.useful.on { border-color: var(--ok); color: var(--ok); font-weight: 650; }

.rank { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.rank:first-child { border-top: 0; }
.rank .no { color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 700; }
.rank:nth-child(-n+3) .no { color: var(--pen-ink); }
.rank .nm { min-width: 0; }
.rank .nm b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .nm span { font-size: 12px; color: var(--ink-3); }
.rank .sc { text-align: right; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.rank.me { background: var(--brand-soft); }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.parts div { border-left: 3px solid var(--board); padding: 2px 0 2px 9px; }
.parts div:nth-child(2) { border-color: var(--accent); }
.parts div:nth-child(3) { border-color: var(--siyoh); }
.parts b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.parts span { font-size: 11.5px; color: var(--ink-3); }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th, table.t td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12.5px; color: var(--ink-3); font-weight: 650; border-top: 0; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.empty { text-align: center; color: var(--ink-3); padding: 28px 16px; font-size: 14px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); background: var(--board); color: var(--chalk); padding: 11px 16px; border-radius: 10px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }
.pinbox { font-size: 30px; font-weight: 800; letter-spacing: .2em; font-variant-numeric: tabular-nums; text-align: center; padding: 10px; border: 1.5px dashed var(--board); border-radius: 10px; color: var(--board); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; font-weight: 650; font-size: 14px; }
.list-row .grow span { font-size: 12px; color: var(--ink-3); }

.panel-grid { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .app.wide .kpis { grid-template-columns: repeat(5, 1fr); }
  .panel-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
}
/* Kompyuterda pastki menyu sarlavha ostiga ko'chadi */
@media (min-width: 760px) {
  .app { display: flex; flex-direction: column; padding-bottom: 24px; }
  .top { position: static; order: 0; padding-top: 16px; padding-bottom: 16px; }
  .nav { position: sticky; top: 0; order: 1; border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
  #main { order: 2; }
  .nav .in { gap: 4px; }
  .nav a { flex: 0 0 auto; flex-direction: row; height: 50px; gap: 8px; font-size: 14px; padding: 0 14px; white-space: nowrap; }
  .nav a.on::before { left: 14px; right: 14px; }
  /* sarlavha va menyu ekran kengligida, mazmun o'rtada */
  .app, .app.wide { max-width: none; }
  #main { width: 100%; max-width: 680px; margin: 0 auto; }
  .app.wide #main { max-width: 1240px; }
  .app.wide:has(.mapwrap) #main { max-width: none; }
  .top { padding-left: max(16px, calc((100vw - 680px) / 2 + 16px)); padding-right: max(16px, calc((100vw - 680px) / 2 + 16px)); }
  .app.wide .top { padding-left: max(16px, calc((100vw - 1240px) / 2 + 16px)); padding-right: max(16px, calc((100vw - 1240px) / 2 + 16px)); }
  .nav .in { max-width: 680px; margin: 0 auto; padding: 0; }
  .app.wide .nav .in { max-width: 1240px; }
  .nav a svg { width: 18px; height: 18px; }
  .nav a.on::before { top: auto; bottom: 0; border-radius: 3px 3px 0 0; }
  .toast { bottom: 24px; }
  .page { padding: 20px 16px; }
}

/* Xarita */
.mapwrap { position: relative; height: calc(100vh - 66px - var(--nav-h) - env(safe-area-inset-bottom)); min-height: 420px; }
#map { position: absolute; inset: 0; background: #e9edf5; }
#map.placing { cursor: crosshair; }
.app.wide:has(.mapwrap) { max-width: none; padding-bottom: 0; }
.map-legend { position: absolute; left: 10px; bottom: 14px; z-index: 500; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; font-size: 12.5px; }
.map-legend div { display: flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lg.live { background: var(--live); } .lg.act { background: var(--board); } .lg.obs { background: var(--siyoh); } .lg.sch { background: #8fa3c4; }
.map-note { position: absolute; left: 50%; transform: translateX(-50%); top: 12px; z-index: 600; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 8px 10px 8px 14px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; width: max-content; max-width: calc(100% - 24px); box-shadow: 0 8px 20px -12px rgba(0,0,0,.35); }
.mk-cluster { background: var(--board); color: var(--chalk); border-radius: 50%; display: flex !important; align-items: center; justify-content: center; font: 700 12.5px var(--font); border: 3px solid rgba(255,255,255,.85); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.mk-school { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: flex !important; align-items: center; justify-content: center; color: #fff; font: 800 12px var(--font); }
.mk-school.act { background: var(--board); } .mk-school.obs { background: var(--siyoh); }
.mk-school.live { background: var(--live); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214,51,63,.55); } 70% { box-shadow: 0 0 0 16px rgba(214,51,63,0); } 100% { box-shadow: 0 0 0 0 rgba(214,51,63,0); } }
.leaflet-container { font: 13px/1.4 var(--font); }
.pp { display: grid; gap: 3px; min-width: 210px; }
.pp > b { font-size: 14px; }
.pp > span { color: #5a6175; font-size: 12.5px; }
.pp em { font-style: normal; color: #6e7694; font-size: 12.5px; margin-top: 4px; }
.pp-ls { display: grid; gap: 4px; margin-top: 8px; }
.pp-ls a { display: grid; grid-template-columns: 42px 1fr auto; gap: 6px; align-items: baseline; padding: 6px 8px; border: 1px solid #e4e7f2; border-radius: 8px; color: #181c2e; }
.pp-ls a.on { border-color: #d6333f; background: #fdeef0; }
.pp-ls a b { font-variant-numeric: tabular-nums; }
.pp-ls a span { font-size: 12.5px; }
.pp-ls a i { font-style: normal; font-size: 11.5px; color: #6e7694; }
.pp-ls a.on i { color: #d6333f; font-weight: 700; }
@media (min-width: 760px) { .mapwrap { height: calc(100vh - 72px - 50px); } }

/* Dars kartasi (ro'yxat) */
a.card.lcard { display: grid; gap: 6px; padding: 14px 16px; color: inherit; }
.lc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lc-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.lc-top .room { margin-left: auto; }
.lc-subj { font-size: 17px; font-weight: 700; line-height: 1.3; }
.lc-topic { color: var(--ink-2); font-size: 14px; }
.lc-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 2px 0 0; font-size: 13.5px; }
.lc-meta dt { color: var(--ink-3); }
.lc-meta dd { margin: 0; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-note { font-size: 13px; color: var(--ink-2); }
.lc-action { margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; background: var(--board); color: var(--chalk); font-weight: 650; font-size: 14px; }
a.card.lcard.is-live { background: var(--board); border-color: var(--board); color: var(--chalk); box-shadow: 0 14px 28px -18px rgba(0, 45, 109, .7); }
.lcard.is-live .lc-meta dt, .lcard.is-live .lc-note, .lcard.is-live .lc-topic { color: var(--chalk-2); }
.lcard.is-live .lc-meta dd { color: var(--chalk); }
.lcard.is-live .room { color: var(--chalk); }
.lcard.is-live .lc-action { background: var(--accent); color: #1b1600; }
.section-h p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.how { border-left: 4px solid var(--accent); }
.how-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.how-x { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.how ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.how ol b { color: var(--ink); }

.map-base { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); }
.map-base button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.map-base button.on { background: var(--board); color: var(--chalk); }

.countdown { text-align: center; padding: 22px 16px; background: var(--board); border-color: var(--board); color: var(--chalk); }
.countdown .cd-l { font-size: 14px; color: var(--chalk-2); }
.countdown .cd-v { font-size: 56px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0; }
.countdown .cd-s { font-size: 13px; color: var(--chalk-2); max-width: 34ch; margin: 0 auto; }
.countdown.off { background: var(--surface); border-color: var(--line); color: var(--ink); }
.countdown.off .cd-l, .countdown.off .cd-s { color: var(--ink-3); }
