/* =====================================================================
   Inklyuziv ta'lim platformasi — BDTU
   Ranglar: siyoh #13233A, BDTU ko'ki #0B6FA3, BDTU to'q sariq #E8682A,
   tuman #F2F5F8, yaproq #2E7D32. Shrift: Source Sans 3 (o'zbek lotini ʻ ʼ bilan).
   WCAG 2.2 AA: kontrast >= 4.5:1, fokus ko'rinadi, nishonlar >= 44px.
   Rejimlar: data-font, data-contrast, data-motion, data-spacing, data-dyslexia
   ===================================================================== */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/SourceSans3-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/SourceSans3-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400 800; font-display: swap; src: url("../fonts/SourceSans3-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400 800; font-display: swap; src: url("../fonts/SourceSans3-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ink: #13233A;
  --bg: #F2F5F8;
  --surface: #ffffff;
  --surface-2: #E9EEF3;
  --text: #13233A;
  --muted: #55657A;
  --border: #D5DDE5;
  --border-strong: #8A99AA;
  --primary: #0B6FA3;
  --primary-hover: #0A5F8C;
  --primary-soft: #E4F1F8;
  --on-primary: #ffffff;
  --brand: #E8682A;
  --brand-on-dark: #F28C38;
  --accent: #C2410C;
  --accent-soft: #FDEEE5;
  --success: #2E7D32;
  --success-soft: #E7F4E8;
  --warning: #8A4B00;
  --warning-soft: #FFF4DE;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --locked: #66758A;
  --focus: #F28C38;
  --r-lg: 20px; --r: 12px; --r-sm: 8px;
  --radius: var(--r); --radius-sm: var(--r-sm);
  --shadow: 0 1px 2px rgba(19, 35, 58, .06);
  --lift: 0 12px 32px -12px rgba(19, 35, 58, .28);
  --tap: 44px;
  --lh: 1.6; --ls: normal; --ws: normal;
  font-size: 100%;
}
html[data-font="large"] { font-size: 118.75%; }
html[data-font="xlarge"] { font-size: 137.5%; }
html[data-dyslexia="1"] { --font: "Atkinson Hyperlegible", system-ui, sans-serif; }
html[data-spacing="1"] { --lh: 1.9; --ls: .03em; --ws: .12em; }
html[data-contrast="1"] {
  --ink: #000; --bg: #000; --surface: #000; --surface-2: #111; --text: #fff; --muted: #f0f0f0;
  --border: #fff; --border-strong: #fff; --primary: #ffd400; --primary-hover: #fff200; --primary-soft: #1a1a00;
  --on-primary: #000; --brand: #ffd400; --brand-on-dark: #ffd400; --accent: #ffd400; --accent-soft: #1a1a00;
  --success: #7CFC9A; --success-soft: #001a08; --warning: #ffd400; --warning-soft: #1a1400; --danger: #ff8a80; --danger-soft: #1a0000;
  --locked: #ddd; --focus: #00e5ff; --shadow: none; --lift: none;
}
html[data-contrast="1"] img:not(.keep-color) { filter: grayscale(.2) contrast(1.1); }
html[data-motion="1"] *, html[data-motion="1"] *::before, html[data-motion="1"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.125rem;
  line-height: var(--lh); letter-spacing: var(--ls); word-spacing: var(--ws);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--text); letter-spacing: -.005em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2vw, 2.85rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }
main { flex: 1; padding: 32px 0 72px; }
main.flush { padding: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand img { height: 46px; width: auto; }
.brand b { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search input { width: 100%; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--border-strong); padding: 0 16px 0 44px; font: inherit; font-size: .95rem; background: var(--surface); color: var(--text); }
.header-search input:focus { border-color: var(--primary); outline: 3px solid var(--focus); outline-offset: 1px; }
.header-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.utility { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.utility .btn { min-height: 42px; padding: 0 16px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; font-size: .95rem; }
.avatar:hover { color: #fff; background: var(--primary); }
.subnav { border-top: 1px solid var(--border); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button.linklike {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav a:hover, .nav button.linklike:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--brand); }
.btn.menu-toggle, .show-sm { display: none !important; }
@media (max-width: 980px) {
  .header-search { display: none; }
  .btn.menu-toggle { display: inline-flex !important; }
  .show-sm { display: inline-flex !important; }
  .hide-sm { display: none !important; }
  .utility .a11y-toggle span { display: none; }
  .subnav { border-top: 0; }
  .nav { display: none; flex-direction: column; align-items: stretch; padding: 8px 20px 16px; border-top: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a, .nav button.linklike, .nav form { width: 100%; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brand); }
}
@media (max-width: 520px) { .brand small { display: none; } .brand b { font-size: .95rem; } .brand img { height: 38px; } }

/* ---------- A11y panel ---------- */
.a11y-panel { background: var(--ink); color: #fff; }
.a11y-panel[hidden] { display: none; }
.a11y-panel legend { color: #fff; }
.a11y-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 16px 0 18px; align-items: center; }
.a11y-grid fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.a11y-grid legend { font-weight: 600; margin-right: 10px; float: left; font-size: .95rem; }
.seg { display: inline-flex; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; overflow: hidden; }
.seg button { min-height: var(--tap); min-width: var(--tap); padding: 0 14px; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.seg button + button { border-left: 1.5px solid rgba(255,255,255,.35); }
.seg button[aria-pressed="true"] { background: var(--brand-on-dark); color: #13233A; }
html[data-contrast="1"] .a11y-panel { border-bottom: 2px solid #fff; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 22px;
  border-radius: var(--r-sm); border: 2px solid transparent; font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  cursor: pointer; background: var(--primary); color: var(--on-primary); line-height: 1.2; text-align: center;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--primary-hover); color: var(--on-primary); text-decoration: none; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.08rem; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #22375a; color: #fff; }
.btn-brand { background: var(--brand); color: #13233A; }
.btn-brand:hover { background: #F28C38; color: #13233A; }
.btn-light { background: #fff; color: #13233A; }
.btn-light:hover { background: #E9EEF3; color: #13233A; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #256a29; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--locked); border-color: var(--border); cursor: not-allowed; }
html[data-contrast="1"] .btn-success, html[data-contrast="1"] .btn-danger, html[data-contrast="1"] .btn-ink,
html[data-contrast="1"] .btn-brand, html[data-contrast="1"] .btn-light { color: #000; background: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.field { margin-bottom: 20px; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: .92rem; margin: -2px 0 8px; }
.field .hint-below { margin: 6px 0 0; font-size: .88rem; line-height: 1.4; }
.grid-2, .grid-3 { align-items: start; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: inherit;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { border-color: var(--primary); outline: 3px solid var(--focus); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.error-text { color: var(--danger); font-weight: 600; font-size: .92rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: var(--tap); padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); flex: 0 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }

/* ---------- Anketa bloklari ---------- */
.form-block { border: 0; padding: 0; margin: 0 0 8px; }
.form-block + .form-block { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 6px; }
.form-block > legend { font-size: 1.2rem; font-weight: 700; padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.form-block > legend + * { clear: both; }
.check-row { display: flex; flex-wrap: wrap; gap: 0 22px; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.card + .card { margin-top: 20px; }
.card-title { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.stack > * + * { margin-top: 20px; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.page-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.breadcrumbs { font-size: .92rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Bosh sahifa ---------- */
.home-hero { background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.home-hero .in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.home-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); line-height: 1.05; letter-spacing: -.015em; font-weight: 700; margin-bottom: 20px; max-width: 13ch; }
.home-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.hero-search { display: flex; gap: 8px; max-width: 540px; margin-bottom: 22px; }
.hero-search input { flex: 1; min-width: 0; min-height: 56px; border: 2px solid var(--ink); border-radius: var(--r-sm); padding: 0 18px; font: inherit; font-size: 1.05rem; background: var(--surface); color: var(--text); }
.hero-search input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.hero-search .btn { min-height: 56px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .98rem; }
.hero-visual { position: relative; min-height: 520px; }
.hero-photo { position: absolute; inset: 0 0 0 12%; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.path-card { position: absolute; left: 0; bottom: 36px; width: min(340px, 86%); background: var(--surface); border-radius: var(--r); box-shadow: var(--lift); padding: 20px 22px; border: 1px solid var(--border); }
.path-card .t { font-size: 1rem; font-weight: 800; margin: 0 0 2px; }
.path-card .course { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.path-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: .95rem; }
.path-row .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.path-row .dot svg { width: 14px; height: 14px; }
.path-row.done .dot { background: var(--success); color: #fff; }
.path-row.now .dot { background: var(--brand); color: #13233A; }
.path-row.lock .dot { background: var(--surface-2); color: var(--locked); }
.path-row .bar { grid-column: 2 / 4; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.path-row .bar span { display: block; height: 100%; background: var(--brand); }
.path-row.done .bar span { background: var(--success); }
.path-row .pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.path-row.lock { color: var(--locked); }
@media (max-width: 920px) {
  .home-hero .in { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .hero-visual { min-height: 400px; }
  .hero-photo { inset: 0 0 80px 0; }
  .path-card { bottom: 0; left: 16px; }
}

.band { padding: 64px 0; }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: #C9D3DE; }
.band-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.section-head h2 { margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.band-ink .section-head p { color: #C9D3DE; }
html[data-contrast="1"] .band-ink { border-top: 2px solid #fff; border-bottom: 2px solid #fff; }

.access-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.access-list li { padding: 4px 28px 4px 0; }
.access-list li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.access-list .fi { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-on-dark); color: #13233A; margin-bottom: 16px; }
.access-list .fi svg { width: 26px; height: 26px; }
.access-list h3 { font-size: 1.1rem; margin-bottom: 8px; }
.access-list p { font-size: .98rem; margin: 0; }
@media (max-width: 980px) { .access-list { grid-template-columns: 1fr 1fr; gap: 28px 0; } .access-list li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .access-list { grid-template-columns: 1fr; } .access-list li, .access-list li + li { padding: 0; border-left: 0; } }

.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; counter-reset: s; }
.journey::before { content: ""; position: absolute; left: 22px; right: 12%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 14px); }
.journey li { position: relative; padding-right: 24px; counter-increment: s; }
.journey li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); font-weight: 800; margin-bottom: 18px; }
.journey li:last-child::before { background: var(--brand); border-color: var(--brand); color: #13233A; }
.journey h3 { font-size: 1.1rem; margin-bottom: 6px; }
.journey p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 22px; }
  .journey::before { left: 22px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--border-strong) 0 8px, transparent 8px 14px); }
  .journey li { padding-left: 66px; } .journey li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Kurs kartalari ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.course-card { position: relative; display: flex; flex-direction: column; }
.course-card .cover { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--ink); position: relative; }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.course-card:hover .cover img { transform: scale(1.04); }
.course-card .cover .tag { position: absolute; left: 12px; top: 12px; background: var(--surface); color: var(--text); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.course-card .body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-card .org { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.course-card .org img { width: 22px; height: 22px; object-fit: contain; }
.course-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.course-card h3 a { color: var(--text); text-decoration: none; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card h3 a:hover { text-decoration: underline; }
.course-card .meta { color: var(--muted); font-size: .9rem; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.course-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--r); }
.course-card .foot { margin-top: 4px; }

/* ---------- Badges, progress ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-prog { background: var(--primary-soft); color: var(--primary); }
.badge-new { background: var(--surface-2); color: var(--text); }
.badge-lock { background: var(--surface-2); color: var(--locked); }
.badge-warn { background: var(--warning-soft); color: var(--warning); }
.badge-err { background: var(--danger-soft); color: var(--danger); }
.badge-count { background: var(--brand); color: #13233A; min-width: 22px; justify-content: center; padding: 0 6px; }
html[data-contrast="1"] .badge { border-color: currentColor; }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.progress.ok > span { background: var(--success); }
.progress-label { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: 6px; gap: 8px; }
.progress-label span:last-child { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
html[data-contrast="1"] .progress { border: 1px solid #fff; }

/* ---------- Kurs banneri ---------- */
.course-banner { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.course-banner .bg { position: absolute; top: 0; right: 0; width: 50%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.course-banner .in { position: relative; padding: 36px 0 40px; max-width: 700px; }
.course-banner h1 { color: #fff; margin-bottom: 12px; }
.course-banner p { color: #D3DCE6; font-size: 1.1rem; margin-bottom: 18px; max-width: 56ch; }
.course-banner .breadcrumbs, .course-banner .breadcrumbs a { color: #C9D3DE; }
.course-banner .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; color: #E5EBF1; font-size: .98rem; margin: 0; padding: 0; list-style: none; }
.course-banner .facts li { display: inline-flex; gap: 8px; align-items: center; }
.course-banner .facts svg { color: var(--brand-on-dark); }
.course-banner .ring-wrap { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.ring { --p: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand-on-dark) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); position: relative; font-weight: 800; flex: 0 0 auto; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink); }
.ring span { position: relative; font-size: .98rem; color: #fff; }
html[data-contrast="1"] .course-banner { border-bottom: 2px solid #fff; }
html[data-contrast="1"] .course-banner .bg { display: none; }
@media (max-width: 860px) { .course-banner .bg { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; } }

/* ---------- Modul / dars ro'yxati ---------- */
.module { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.module + .module { margin-top: 18px; }
.module-head { display: flex; gap: 18px; align-items: center; padding: 18px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.module-head .num { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.1rem; flex: 0 0 auto; }
.module.locked .module-head .num { background: var(--surface-2); color: var(--locked); }
.module.done .module-head .num { background: var(--success); color: #fff; }
.module-head .title { flex: 1; min-width: 200px; }
.module-head .title h2, .module-head .title h3 { margin: 0 0 2px; font-size: 1.15rem; }
.module-head .stat { min-width: 180px; }
.module.locked .module-head .title, .module.locked .module-head .title h2 { color: var(--locked); }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-item { display: flex; align-items: center; gap: 16px; padding: 14px 22px; min-height: 64px; }
.lesson-item + .lesson-item { border-top: 1px solid var(--border); }
.lesson-item .ico { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--border-strong); font-weight: 800; font-size: .9rem; color: var(--muted); }
.lesson-item.completed .ico { background: var(--success); border-color: var(--success); color: #fff; }
.lesson-item.in_progress .ico, .lesson-item.not_started .ico { border-color: var(--primary); color: var(--primary); }
.lesson-item.locked { color: var(--locked); }
.lesson-item .name { flex: 1; min-width: 0; }
.lesson-item .name a { font-weight: 700; text-decoration: none; color: var(--text); }
.lesson-item .name a:hover { text-decoration: underline; color: var(--primary); }
.lesson-item .parts { font-size: .86rem; color: var(--muted); display: flex; gap: 4px 14px; flex-wrap: wrap; margin-top: 2px; }
.lesson-item .parts span { display: inline-flex; align-items: center; gap: 5px; }
.lesson-item.test { background: var(--accent-soft); }
.lesson-item.test .ico { border-color: var(--accent); color: var(--accent); }
html[data-contrast="1"] .lesson-item.test { background: #111; }
svg.i { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; }

/* ---------- O'quv maketi: chapda dastur ---------- */
.learn-shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 32px; align-items: start; }
.syllabus { position: sticky; top: 134px; max-height: calc(100vh - 150px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.syllabus .head { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.syllabus .head a { font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.02rem; line-height: 1.3; display: block; margin-bottom: 10px; }
.syllabus .head a:hover { text-decoration: underline; }
.syl-mod { border-bottom: 1px solid var(--border); }
.syl-mod:last-child { border-bottom: 0; }
.syl-mod > summary { list-style: none; cursor: pointer; padding: 14px 20px; font-weight: 700; display: flex; gap: 10px; align-items: center; min-height: var(--tap); font-size: .98rem; }
.syl-mod > summary::-webkit-details-marker { display: none; }
.syl-mod > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: auto; flex: 0 0 auto; }
.syl-mod[open] > summary::after { transform: rotate(-135deg); }
.syl-mod ol { list-style: none; margin: 0; padding: 0 0 8px; }
.syl-mod li a, .syl-mod li > span { display: flex; gap: 10px; align-items: flex-start; padding: 9px 20px 9px 18px; text-decoration: none; color: var(--text); font-size: .95rem; line-height: 1.35; border-left: 3px solid transparent; }
.syl-mod li a:hover { background: var(--bg); }
.syl-mod li a[aria-current="page"] { background: var(--primary-soft); border-left-color: var(--primary); font-weight: 700; }
.syl-mod li > span { color: var(--locked); }
.syl-mod li svg { margin-top: 2px; }
.syl-mod .done svg { color: var(--success); }
.syl-mod .now svg { color: var(--primary); }
.lesson-main { min-width: 0; }
@media (max-width: 1000px) { .learn-shell { grid-template-columns: minmax(0, 1fr); } .syllabus { position: static; max-height: none; order: 2; } }

/* ---------- Dars ---------- */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 1000px) { .lesson-layout { grid-template-columns: minmax(0, 1fr); } }
.lesson-side { position: sticky; top: 134px; }
@media (max-width: 1000px) { .lesson-side { position: static; } }
.lesson-head { margin-bottom: 22px; }
.lesson-head .kicker { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.req-strip { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.req-strip .req { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); font-size: .92rem; font-weight: 600; }
.req-strip .req.done { background: var(--success-soft); border-color: transparent; color: var(--success); }
.req-strip .req .d { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); display: inline-grid; place-items: center; flex: 0 0 auto; }
.req-strip .req.done .d { border: 0; background: var(--success); color: #fff; }
.req-strip .req.done .d svg { width: 12px; height: 12px; }
html[data-contrast="1"] .req-strip .req { border-color: #fff; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.req-list .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); flex: 0 0 auto; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.req-list li.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.prose { font-size: 1.08rem; max-width: 70ch; }
.prose img { border-radius: var(--r-sm); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1em 0; padding: .6em 1em; background: var(--accent-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.lesson-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.lesson-section + .lesson-section { margin-top: 20px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 1.3rem; }
.section-title .step { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.section-title .step svg { width: 20px; height: 20px; }
.section-title .state { margin-left: auto; }
.done-note { display: flex; gap: 10px; align-items: center; background: var(--success-soft); color: var(--success); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 700; margin: 0; }
.video-wrap { position: relative; background: #000; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; }
.video-wrap video, .video-wrap iframe, .video-wrap > div { width: 100%; height: 100%; display: block; border: 0; }
details.transcript { margin-top: 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg); }
details.transcript summary { cursor: pointer; padding: 12px 16px; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; }
details.transcript > div { padding: 0 16px 16px; white-space: pre-wrap; max-height: 380px; overflow: auto; }
.next-panel { background: var(--ink); color: #fff; border-radius: var(--r); padding: 24px 28px; display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 20px; }
.next-panel .t { color: #fff; font-size: 1.25rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.next-panel .t svg { color: var(--brand-on-dark); width: 26px; height: 26px; }
.next-panel[hidden] { display: none; }
html[data-contrast="1"] .next-panel { border: 2px solid #fff; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Test ---------- */
.q { border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; background: var(--surface); }
.q + .q { margin-top: 16px; }
.q legend { font-weight: 700; font-size: 1.12rem; padding: 0; margin-bottom: 14px; display: block; width: 100%; line-height: 1.4; }
.q .qnum { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .9rem; margin-right: 10px; vertical-align: 1px; }
.opt { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--r-sm); margin-top: 10px; cursor: pointer; min-height: 56px; background: var(--surface); }
.opt:hover { border-color: var(--primary); }
.opt input { width: 22px; height: 22px; accent-color: var(--primary); flex: 0 0 auto; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 4px 0 0 var(--primary); }
.explain { margin-top: 12px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--warning-soft); color: var(--text); border-left: 4px solid var(--brand); }
.test-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 14px 0; margin-top: 24px; z-index: 5; }
.test-bar .in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.score { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.score-ring { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800;
  background: conic-gradient(var(--ring, var(--primary)) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; flex: 0 0 auto; }
.score-ring::before { content: ""; position: absolute; inset: 13px; background: var(--surface); border-radius: 50%; }
.score-ring span { position: relative; }
.levels { width: 100%; border-collapse: collapse; margin-top: 8px; }
.levels th, .levels td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.levels tr.me { background: var(--primary-soft); font-weight: 700; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; border-left: 4px solid currentColor; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--primary-soft); color: var(--primary); }
.alert ul { margin: 4px 0 0 18px; padding: 0; }
.alert a { color: inherit; font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.data thead th { text-align: left; background: var(--bg); padding: 12px 14px; font-size: .86rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data tbody th { text-align: left; padding: 12px 14px; font-weight: 700; border-bottom: 1px solid var(--border); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
.num-cell { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.stat { padding: 18px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: -1px; }
.stat .v { font-size: 2.1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Kabinet ---------- */
.welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.welcome h1 { margin: 0 0 4px; }
.welcome p { margin: 0; color: var(--muted); }
.continue { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.continue + .continue { margin-top: 18px; }
.continue .pic { position: relative; min-height: 190px; background: var(--ink); }
.continue .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.continue .info { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.continue h3 { margin: 0; font-size: 1.25rem; }
.continue h3 a { color: var(--text); text-decoration: none; }
.continue h3 a:hover { text-decoration: underline; }
.continue .next { color: var(--muted); font-size: .95rem; margin: 0; }
.continue .next strong { color: var(--text); }
.mod-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.mod-pills li { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 8px; background: var(--bg); font-size: .9rem; }
.mod-pills li.done { background: var(--success-soft); color: var(--success); }
.mod-pills li.lock { color: var(--locked); }
.mod-pills b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .continue { grid-template-columns: minmax(0, 1fr); } .continue .pic { min-height: 150px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D3DE; padding: 48px 0 28px; margin-top: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px 40px; align-items: start; }
.footer-row img { height: 76px; width: auto; }
.footer-row p { margin: 14px 0 0; max-width: 40ch; font-size: .95rem; }
.footer-row .h { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 18px; font-size: .9rem; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; } }
html[data-contrast="1"] .site-footer { border-top: 2px solid #fff; }

/* ---------- Kirish / ro'yxatdan o'tish ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 122px); }
.auth-shell .pic { position: relative; background: var(--ink); overflow: hidden; }
.auth-shell .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-shell .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,35,58,0) 40%, rgba(19,35,58,.85)); }
.auth-shell .pic .quote { position: absolute; left: 44px; right: 44px; bottom: 44px; color: #fff; font-size: 1.6rem; font-weight: 750; line-height: 1.25; max-width: 20ch; z-index: 1; }
.auth-shell .form { display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--surface); }
.auth-shell .form > div { width: 100%; max-width: 460px; }
.auth-shell h1 { font-size: 2rem; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-shell .pic { display: none; } }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } }
.side-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px; position: sticky; top: 134px; }
@media (max-width: 900px) { .side-nav { position: static; } }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 600; }
.side-nav a:hover { background: var(--bg); }
.side-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
html[data-contrast="1"] .side-nav a[aria-current="page"] { background: var(--primary); color: #000; }
.side-nav .sep { border-top: 1px solid var(--border); margin: 8px 4px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1.5px solid var(--border-strong); border-bottom: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--bg); }
.editor-toolbar button { min-height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.editor { min-height: 260px; padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 0 0 var(--r-sm) var(--r-sm); background: var(--surface); overflow: auto; }
.editor:focus { outline: 3px solid var(--focus); }
.editor.prose { max-width: none; }
.upload-progress { margin-top: 8px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border-strong); text-decoration: none; color: var(--text); font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.utility .btn[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: var(--tap); min-height: var(--tap); display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); text-decoration: none; }
.pagination [aria-current="page"] span { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.notif { padding: 14px 0; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif.unread a { font-weight: 700; }
.cert-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cert-card .medal { width: 60px; height: 60px; border-radius: 14px; background: var(--brand); color: #13233A; display: grid; place-items: center; flex: 0 0 auto; }

@media print { .site-header, .site-footer, .a11y-panel, .skip-link { display: none; } }
.hero-search .btn { flex: 0 0 auto; }

/* ---------- Boshqaruv: yo'riqnoma bloklari ---------- */
.howto { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--brand); border-radius: var(--r); padding: 20px 24px; margin-bottom: 22px; }
.howto h2 { font-size: 1.2rem; margin-bottom: 10px; }
.howto ol { margin: 0 0 16px; padding-left: 1.2em; }
.howto li { margin: 4px 0; }
.facts-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; font-size: .98rem; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; font-weight: 600; word-break: break-word; }
.side-nav a { align-items: flex-start; padding: 9px 12px; min-height: 52px; }
.side-nav a svg { margin-top: 3px; }
.side-nav a .d { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); line-height: 1.3; }
.side-nav a[aria-current="page"] .d { color: #C9D3DE; }
.todo { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.todo li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 20px; }
.todo .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--ink); color: #fff; }
.todo li.ok .n { background: var(--success); }
.todo h3 { margin: 0 0 2px; font-size: 1.08rem; }
.todo p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .todo li { grid-template-columns: 44px 1fr; } .todo li .btn { grid-column: 2; justify-self: start; } }

/* ---------- Masalalar to'plami ---------- */
.task { border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; margin-top: 16px; background: var(--surface); }
.task.is-passed { border-left: 5px solid var(--success); }
.task.is-failed { border-left: 5px solid var(--danger); }
.task.is-pending { border-left: 5px solid var(--brand); }
.task-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.task-head h3 { margin: 0 0 8px; font-size: 1.15rem; }
.task-body table { border-collapse: collapse; margin: 10px 0; width: auto; min-width: 50%; }
.task-body th, .task-body td { border: 1px solid var(--border); padding: 6px 10px; }
.task-body th { background: var(--bg); }
table.classify td { text-align: center; }
.radio-cell { display: inline-grid; place-items: center; min-width: var(--tap); min-height: var(--tap); cursor: pointer; }
.radio-cell input { width: 22px; height: 22px; accent-color: var(--primary); }
tr.row-wrong th { color: var(--danger); }
tr.row-wrong { background: var(--danger-soft); }
.task-solution summary { color: var(--primary); }
.task-edit { border: 1px solid var(--border); border-left: 5px solid var(--ink); border-radius: var(--r); padding: 18px 20px; margin: 14px 0 0; background: var(--bg); }
.word-import { padding: 16px 22px; background: var(--accent-soft); border-bottom: 1px solid var(--border); }
.word-import[hidden] { display: none; }
