/* Düz tasarım: köşe yuvarlama ve gölge kullanılmaz */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --text: #1c1c1e;
  --muted: #6b6b72;
  --border: #e4e4df;
  --accent: #2f62d6;
  --accent-soft: #e6edfc;
  --accent-text: #ffffff;
  --ok: #138a5e;
  --ok-soft: #e2f4ec;
  --warn: #b86a00;
  --warn-soft: #fbf0dd;
  --danger: #c6363a;
  --danger-soft: #fbe5e5;
  --highlight: #fff1a8;
  --highlight-text: #1c1c1e;
  --lv-a1: #1f9d55; --lv-a2: #0f8f8f; --lv-b1: #2f62d6; --lv-b2: #7a4fd0; --lv-c1: #d0661f;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --surface: #1b1b1e; --surface-2: #232327; --text: #ececf0; --muted: #9b9ba5; --border: #2d2d33;
    --accent: #7ea3ff; --accent-soft: #1f2a44; --accent-text: #0f1424; --ok: #4fd1a0; --ok-soft: #133328;
    --warn: #f0b04a; --warn-soft: #3a2b12; --danger: #ff7b7f; --danger-soft: #3d1c1e; --highlight: #5a4a00; --highlight-text: #fff7cc; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113; --surface: #1b1b1e; --surface-2: #232327; --text: #ececf0; --muted: #9b9ba5; --border: #2d2d33;
  --accent: #7ea3ff; --accent-soft: #1f2a44; --accent-text: #0f1424; --ok: #4fd1a0; --ok-soft: #133328;
  --warn: #f0b04a; --warn-soft: #3a2b12; --danger: #ff7b7f; --danger-soft: #3d1c1e; --highlight: #5a4a00; --highlight-text: #fff7cc; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
/* hidden niteliği, display tanımlı bileşenlerde de her zaman gizlesin */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; color: var(--muted); font: inherit; font-size: .93rem; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-trigger:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link.active, .nav-trigger.active { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.nav-trigger[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.nav-caret { font-size: .75rem; }
.nav-count { display: inline-block; min-width: 18px; padding: 0 5px; font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; background: var(--accent); color: var(--accent-text); }
.nav-group { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 260px; background: var(--surface); border: 1px solid var(--text); padding: 6px; }
.nav-menu a { display: flex; flex-direction: column; padding: 8px 10px; color: var(--text); }
.nav-menu a small { color: var(--muted); font-size: .8rem; }
.nav-menu a:hover { background: var(--surface-2); text-decoration: none; }
.nav-menu a.active { background: var(--accent-soft); }
.nav-menu a.active .nav-menu-label { color: var(--accent); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.user-chip { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) {
  .topbar .container { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 6px; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .nav-group { position: static; }
  .nav-menu { left: 16px; right: 16px; min-width: 0; top: 100%; }
  .user-chip { display: none; }
}

main { padding: 26px 0 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
/* ızgara/esnek öğeler uzun tek satırlık başlıklar yüzünden genişlemesin (mobil taşmayı önler) */
.grid > *, .layout-side > *, .stack > *, .hero > *, .path-step { min-width: 0; }
.hero h1 { overflow-wrap: anywhere; }
@media (max-width: 960px) { .layout-side { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }

.card { background: var(--surface); border: 1px solid var(--border); padding: 18px; min-width: 0; }
.card h2 { margin-bottom: 12px; }
.card-link { display: block; color: inherit; transition: border-color .15s; }
.card-link:hover { text-decoration: none; border-color: var(--accent); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 1.6rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }
.empty { color: var(--muted); padding: 14px; border: 1px dashed var(--border); text-align: center; }

.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li + li { border-top: 1px solid var(--border); }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: inherit; }
.item:hover { text-decoration: none; }
.item:hover .item-title { color: var(--accent); }
.item-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.item-icon svg { width: 17px; height: 17px; }
.item-body { min-width: 0; flex: 1; }
.item-title { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.item-meta { display: flex; gap: 6px; align-items: center; flex: none; }
.check { width: 20px; height: 20px; display: inline-grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: .75rem; font-weight: 700; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 2px 8px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.lv { color: #fff; }
.badge.lv-A1 { background: var(--lv-a1); } .badge.lv-A2 { background: var(--lv-a2); } .badge.lv-B1 { background: var(--lv-b1); }
.badge.lv-B2 { background: var(--lv-b2); } .badge.lv-C1 { background: var(--lv-c1); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; padding: 4px 10px; border: 1px solid var(--border); font-size: .85rem; color: var(--text); background: var(--surface); }
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.progress { height: 8px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }
.level-row { display: grid; grid-template-columns: 48px 1fr 70px; align-items: center; gap: 10px; padding: 6px 0; color: inherit; }
.level-row:hover { text-decoration: none; }
.level-row small { text-align: right; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.small { padding: 5px 10px; font-size: .84rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.is-on { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
form.inline { display: inline; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; }
.alert { padding: 11px 14px; margin-bottom: 16px; font-size: .94rem; }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .brand { justify-content: center; margin-bottom: 18px; font-size: 1.25rem; }
.auth-card .brand-mark { width: 34px; height: 34px; }
.auth-foot { text-align: center; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.level-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.level-pick label { position: relative; }
.level-pick input { position: absolute; opacity: 0; inset: 0; }
.level-pick span { display: block; text-align: center; padding: 8px 0; border: 1px solid var(--border); font-weight: 600; cursor: pointer; }
.level-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.level-pick input:focus-visible + span { outline: 2px solid var(--accent); }

.lesson-head { margin-bottom: 16px; }
.lesson-head .chips { margin-top: 8px; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
audio { width: 100%; height: 40px; }
.audio-list { display: grid; gap: 8px; }
.audio-list label { font-size: .85rem; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }

.content { overflow-wrap: anywhere; }
.content p { margin: 0 0 .7em; }
.content h3, .content h4 { margin: 1.2em 0 .5em; font-size: 1.02rem; }
.content strong { font-weight: 650; }
.content .audionotes { background: var(--highlight); color: var(--highlight-text); padding: 0 3px; font-weight: 600; }
.content .grammarbox { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 10px 14px; margin: 18px 0 8px; }
.content ul, .content ol { padding-left: 1.3em; }
.content iframe { width: 100%; min-height: 420px; border: 1px solid var(--border); background: #fff; }
.content img { }
.content .audio { margin: 8px 0; }
.content table { border-collapse: collapse; width: 100%; }
.content td, .content th { border: 1px solid var(--border); padding: 6px 8px; }

.notes-grid { display: grid; gap: 14px; }
.note { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--border); }
.note img { width: 96px; height: 96px; object-fit: cover; }
.note h3 { margin: 0 0 6px; }
@media (max-width: 520px) { .note { grid-template-columns: 1fr; } }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pics figure { margin: 0; background: var(--surface-2); overflow: hidden; }
.pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pics figcaption { padding: 6px 10px; font-weight: 600; font-size: .9rem; text-transform: capitalize; }

.words { display: grid; gap: 10px; }
.word { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); }
.word-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.word-lemma { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.word-tr { color: var(--text); }
.word-ex { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.word-ex i { color: var(--text); font-style: normal; }
.word-line { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); border-left: 3px solid var(--border); padding-left: 10px; }
.word-line mark { background: var(--highlight); color: var(--highlight-text); padding: 0 2px; }

.q { padding: 14px; border: 1px solid var(--border); margin-bottom: 12px; }
.q-title { font-weight: 600; margin-bottom: 8px; }
.q label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; cursor: pointer; }
.q label:hover { background: var(--surface-2); }
.q input { margin-top: 4px; accent-color: var(--accent); }
.q.correct { border-color: var(--ok); background: var(--ok-soft); }
.q.wrong { border-color: var(--danger); background: var(--danger-soft); }
.q-feedback { font-size: .88rem; font-weight: 600; margin-top: 6px; }
.quiz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.score { font-weight: 700; }

.related-video { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; color: inherit; padding: 8px 0; }
.related-video:hover { text-decoration: none; }
.related-video:hover b { color: var(--accent); }
.thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); display: grid; place-items: center; color: var(--accent); }
.thumb svg { width: 26px; height: 26px; }
.reasons { font-size: .78rem; color: var(--muted); display: block; margin-top: 2px; }

.path-step { position: relative; padding-left: 26px; }
.path-step::before { content: ""; position: absolute; left: 8px; top: 30px; bottom: -18px; width: 2px; background: var(--border); }
.path-step:last-child::before { display: none; }
.path-dot { position: absolute; left: 0; top: 20px; width: 18px; height: 18px; border: 3px solid var(--accent); background: var(--surface); }
.path-step.done .path-dot { background: var(--ok); border-color: var(--ok); }
.path-group-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 2px; }

.flash-wrap { max-width: 560px; margin: 0 auto; }
.flashcard { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; padding: 28px 20px; }
.flashcard .lemma { font-size: 2.1rem; font-weight: 750; letter-spacing: -.01em; }
.flashcard .answer[hidden] { display: none; }
.flashcard .answer { display: flex; flex-direction: column; gap: 8px; }
.flash-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.flash-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--border); font-size: .9rem; }
.pager span { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.footer { color: var(--muted); font-size: .82rem; padding: 26px 0 34px; border-top: 1px solid var(--border); }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero h1 { margin-bottom: 4px; }
.streak { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.streak svg { width: 18px; height: 18px; }

[data-wordtips] .w { cursor: pointer; }
[data-wordtips] .w:hover { text-decoration: underline dotted var(--accent); text-underline-offset: 3px; }
[data-wordtips] .w.is-active { background: var(--accent-soft); color: var(--accent); }
.wordtip { position: absolute; z-index: 50; width: min(320px, calc(100vw - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--text); padding: 12px 14px; font-size: .92rem; line-height: 1.45; }
.wordtip[hidden] { display: none; }
.wordtip-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.wordtip-head b { font-size: 1.05rem; margin-right: 2px; }
.wordtip-close { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.wordtip-close:hover { color: var(--text); }
.wordtip-tr { font-weight: 600; margin-bottom: 6px; }
.wordtip-ex { color: var(--muted); font-size: .86rem; border-left: 3px solid var(--border); padding-left: 8px; margin-bottom: 8px; }
.wordtip-ex i { color: var(--text); font-style: normal; }
.wordtip-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.ai-note { font-size: .9rem; }
.ai-prompts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .ai-prompts { grid-template-columns: 1fr; } }
.ai-prompt { border: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ai-prompt h3 { margin: 0; }
.ai-prompt p { margin: 0; font-size: .88rem; }
.ai-prompt textarea { resize: vertical; font-size: .88rem; line-height: 1.45; min-height: 150px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.note-fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--text); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.note-fab:hover { background: var(--surface-2); }
.note-fab.has-note::after { content: ""; width: 8px; height: 8px; background: var(--accent); }
.note-fab[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.note-drawer { position: fixed; top: 59px; right: 0; bottom: 0; z-index: 30; width: 360px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 70px; background: var(--surface); border-left: 1px solid var(--border); }
.note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.note-title { display: flex; flex-direction: column; min-width: 0; }
.note-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-drawer textarea { flex: 1; resize: none; font-size: .95rem; line-height: 1.55; min-height: 120px; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; flex-wrap: wrap; }
.note-links { display: flex; align-items: center; gap: 10px; }
@media (min-width: 1180px) { body.note-open main, body.note-open .footer { padding-right: 360px; } }
@media (max-width: 760px) {
  .note-drawer { top: auto; left: 0; width: auto; height: 58vh; border-left: 0; border-top: 1px solid var(--text); padding-bottom: 66px; }
}

.notes-list { display: grid; gap: 12px; }
.note-item { border: 1px solid var(--border); background: var(--surface); padding: 14px 16px; }
.note-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.note-item-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; }
.note-item-actions { display: flex; gap: 8px; margin-top: 10px; }

.level-block { border: 1px solid var(--border); background: var(--surface); }
.level-block > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.level-block > summary::-webkit-details-marker { display: none; }
.level-block > summary::after { content: "+"; margin-left: auto; font-weight: 700; color: var(--muted); }
.level-block[open] > summary::after { content: "−"; }
.level-block > summary .muted { font-size: .88rem; }
.level-block-body { padding: 0 16px 16px; }
.type-block { box-shadow: none; }
.type-block h2 small { font-weight: 400; font-size: .85rem; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.section-title:first-child { margin-top: 0; }
.section-title small { color: var(--muted); font-size: .88rem; font-weight: 400; }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.step-head h2 { margin-bottom: 4px; }
.step-no { font-weight: 400; }
.chip.chip-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.lesson-meta { margin-bottom: 4px; }
.lesson-meta a { color: inherit; }
.video-switch { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.lesson-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lesson-pager .card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.lesson-pager .next { text-align: right; }
.lesson-pager b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .lesson-pager { grid-template-columns: 1fr; } .lesson-pager .next { text-align: left; } }
.review-card { display: flex; flex-direction: column; gap: 8px; }
.review-card h3 { margin: 0; }
.card h3 { margin-bottom: 10px; }
.offline-bar { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--border); padding: 8px 16px; font-size: 14px; text-align: center; }
@media (display-mode: standalone) { .footer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); } }
