/* Yerleşim: solda bölüm rayı, ortada okuma sütunu (~70ch); oynatıcılar
   koyu "enstrüman ekranı" olarak her iki temada da sabit kalır.
   Renk mantığı: inspiryum = mavi, ekspiryum = kehribar; sitenin her
   zamanlama şekli bu iki rengi kullanır. */
:root {
  --bg: #F2F5F4;
  --surface: #FFFFFF;
  --surface-2: #E8EEED;
  --ink: #13212A;
  --muted: #55646C;
  --line: #D3DCDB;
  --accent: #0E5C70;
  --accent-ink: #FFFFFF;
  --insp: #2D6CB3;
  --exp: #BF7322;
  --alert: #A9402D;
  --ok: #2C7A4E;
  --screen: #0A0F1D;
  --screen-ink: #C9DCE4;
  --screen-line: #1E2A3C;
  --focus: #F0A43A;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Literata", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
  --side: 268px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1418; --surface: #151D22; --surface-2: #1B262C; --ink: #E2EBED; --muted: #94A4AB;
    --line: #27353D; --accent: #5DB2C6; --accent-ink: #062027; --insp: #72A8EA; --exp: #E6A458;
    --alert: #E8765F; --ok: #6CC08F; --screen: #070B15; --screen-ink: #C9DCE4; --screen-line: #1A2537;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1418; --surface: #151D22; --surface-2: #1B262C; --ink: #E2EBED; --muted: #94A4AB;
  --line: #27353D; --accent: #5DB2C6; --accent-ink: #062027; --insp: #72A8EA; --exp: #E6A458;
  --alert: #E8765F; --ok: #6CC08F; --screen: #070B15; --screen-ink: #C9DCE4; --screen-line: #1A2537;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.62;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1[tabindex="-1"]:focus { outline: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; font-stretch: 78%; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; font-weight: 750; font-stretch: 85%; margin-top: 2.2rem; }
h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 92%; margin-top: 1.5rem; }
p { margin: 0.7rem 0; }
ul, ol { padding-left: 1.3rem; margin: 0.6rem 0; }
li { margin: 0.25rem 0; }
.mono, code { font-family: var(--f-mono); font-size: 0.88em; }
[hidden] { display: none !important; }
.eyebrow { font-family: var(--f-display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- İskelet ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { flex: none; }
.brand b { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: 1.12rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand small { display: block; font-family: var(--f-display); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.search { margin-left: auto; position: relative; flex: 1 1 260px; max-width: 360px; min-width: 0; }
.search input {
  width: 100%; font: 500 0.95rem var(--f-display); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 34px;
}
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-results {
  position: absolute; right: 0; left: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 12px 32px rgba(0,0,0,.14); max-height: 60vh; overflow: auto; padding: 6px; z-index: 40;
}
.search-results a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-family: var(--f-display); }
.search-results a:hover, .search-results a.on { background: var(--surface-2); }
.search-results a small { display: block; color: var(--muted); font-size: 0.78rem; }
.menu-btn, .qbtn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; cursor: pointer; color: var(--ink); }

.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 60px); }
.sidebar {
  border-right: 1px solid var(--line); background: var(--surface);
  position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); align-self: start; height: calc(100vh - 58px - env(safe-area-inset-top, 0px)); overflow: auto;
  padding: 18px 14px 40px max(14px, env(safe-area-inset-left, 0px));
}
.nav-group { margin-bottom: 16px; }
.nav-group > .eyebrow { display: block; padding: 0 10px 4px; }
.sidebar a {
  display: block; padding: 6px 10px; border-radius: 7px; text-decoration: none; color: var(--ink);
  font-family: var(--f-display); font-size: 0.95rem; font-weight: 500; line-height: 1.3;
}
.sidebar a:hover { background: var(--surface-2); }
.sidebar a.on { background: var(--accent); color: var(--accent-ink); font-weight: 650; }

main {
  min-width: 0;
  padding-block: 28px 80px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.page { max-width: 1060px; margin: 0 auto; }
.read { max-width: 72ch; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 64ch; }
.crumbs { font-family: var(--f-display); font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.page-head { margin-bottom: 18px; }
.page-head h1 { margin: 4px 0 10px; }
.foot {
  margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted);
  font-family: var(--f-display); font-size: 0.85rem; display: flex; gap: 8px 24px; flex-wrap: wrap;
}
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.pager a { flex: 1 1 220px; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: var(--ink); font-family: var(--f-display); background: var(--surface); }
.pager a:hover { border-color: var(--accent); }
.pager a small { display: block; color: var(--muted); font-size: 0.78rem; }
.pager a.next { text-align: right; }

/* ---------- Yapı taşları ---------- */
.callout {
  border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0; margin: 1.1rem 0;
}
.callout.warn { border-left-color: var(--alert); }
.callout.ok { border-left-color: var(--ok); }
.callout > .eyebrow { display: block; margin-bottom: 2px; color: var(--accent); }
.callout.warn > .eyebrow { color: var(--alert); }
.callout.ok > .eyebrow { color: var(--ok); }
.callout p:first-of-type { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-display); font-size: 0.76rem; font-weight: 650;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; background: var(--surface);
}
.tag.i { color: var(--insp); border-color: color-mix(in srgb, var(--insp) 45%, transparent); }
.tag.e { color: var(--exp); border-color: color-mix(in srgb, var(--exp) 45%, transparent); }
.tag.b { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tbl { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
@media (max-width: 720px) { .tbl.wide table { min-width: 640px; } }

.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.box h3 { margin-top: 0; }
.box > p:last-child { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.kv dt { font-family: var(--f-display); font-weight: 700; font-size: 0.86rem; color: var(--muted); padding-top: 2px; }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 6px; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  font-family: var(--f-display); font-weight: 650; font-size: 0.92rem; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 5px 11px; font-size: 0.84rem; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Oynatıcı (enstrüman ekranı) ---------- */
.player {
  --gut: 44px;
  background: var(--screen); color: var(--screen-ink); border-radius: 14px; padding: 14px 14px 12px;
  margin: 1.2rem 0; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; min-width: 0;
}
.p-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-play {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: #F0A43A; color: #1A1206; display: grid; place-items: center;
}
.p-play:hover { filter: brightness(1.08); }
.p-title { min-width: 0; flex: 1 1 200px; }
.p-title b { font-family: var(--f-display); font-weight: 750; font-stretch: 88%; font-size: 1.08rem; display: block; color: #F4F8FA; }
.p-title span { font-family: var(--f-mono); font-size: 0.74rem; color: #8FA6B3; }
.p-ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.p-ctrl button, .p-ctrl label {
  font-family: var(--f-display); font-size: 0.78rem; font-weight: 600; color: #C9DCE4; background: transparent;
  border: 1px solid #2A3A50; border-radius: 999px; padding: 4px 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.p-ctrl button[aria-pressed="true"] { background: #C9DCE4; color: #0A0F1D; border-color: #C9DCE4; }
.p-time { font-family: var(--f-mono); font-size: 0.78rem; color: #8FA6B3; min-width: 86px; text-align: right; }
.p-stack { position: relative; margin-top: 12px; cursor: pointer; }
.p-phase { display: flex; height: 18px; position: relative; }
.p-phase div {
  position: absolute; top: 0; height: 100%; border-radius: 3px; font-family: var(--f-display); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; padding-left: 5px; overflow: hidden; white-space: nowrap; line-height: 18px; color: #0A0F1D;
}
.p-phase .i { background: #72A8EA; }
.p-phase .e { background: #E6A458; }
.p-wave, .p-spec { display: block; width: 100%; }
.p-wave { height: 84px; margin-top: 6px; }
.p-spec-wrap { position: relative; margin-top: 4px; padding-left: 44px; }
.p-spec { height: 170px; border-radius: 4px; image-rendering: auto; }
.p-axis { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; font-family: var(--f-mono); font-size: 0.64rem; color: #7F95A3; }
.p-axis span { position: absolute; right: 4px; transform: translateY(-50%); }
.p-wave-wrap { padding-left: 44px; }
.p-phase-wrap { padding-left: 44px; }
.p-head {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #F0A43A; left: var(--gut); pointer-events: none; opacity: 0; transition: opacity .2s;
}
.p-foot { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 8px; font-family: var(--f-mono); font-size: 0.7rem; color: #7F95A3; }
.player.compact .p-spec { height: 110px; }
.player.compact .p-wave { height: 56px; }
@media (max-width: 560px) { .player { --gut: 34px; } .p-spec { height: 130px; } .p-wave { height: 64px; } .p-spec-wrap, .p-wave-wrap, .p-phase-wrap { padding-left: 34px; } .p-axis { width: 32px; } }

/* ---------- Ses kütüphanesi kartları ---------- */
.lib-group { margin-top: 28px; }
.lib-group > h2 { margin: 0 0 4px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-top: 12px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: var(--ink); min-width: 0;
}
.card:hover { border-color: var(--accent); }
.card canvas { display: block; width: 100%; height: 64px; background: var(--screen); }
.card .c-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card b { font-family: var(--f-display); font-weight: 750; font-stretch: 90%; font-size: 1.04rem; }
.card i { font-style: normal; font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); }
.card p { margin: 2px 0 6px; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.card .tags { margin-top: auto; }

/* ---------- Ana sayfa ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-stretch: 72%; line-height: 0.98; }
.hero .player { margin: 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 14px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.path h3 { margin: 2px 0 8px; }
.path ol { margin: 0; padding-left: 1.2rem; }
.path li { font-family: var(--f-display); font-size: 0.97rem; }
.four { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 12px; }
.four .box b { font-family: var(--f-display); font-size: 1.05rem; display: block; margin-bottom: 4px; }
.four .box p { margin: 0; font-size: 0.93rem; line-height: 1.5; }

/* ---------- Diyagramlar ---------- */
.fig { margin: 1.2rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; overflow-x: auto; }
.fig svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.fig figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.fig svg text { font-family: var(--f-display); fill: var(--ink); }
.fig .s-muted { fill: var(--muted); }
.fig .s-line { stroke: var(--line); }
.fig .s-ink { stroke: var(--ink); }
.fig .s-acc { stroke: var(--accent); }
.fig .f-acc { fill: var(--accent); }
.fig .f-insp { fill: var(--insp); }
.fig .f-exp { fill: var(--exp); }
.fig .f-surface { fill: var(--surface-2); }
.fig .f-alert { fill: var(--alert); }

/* ---------- Vaka ---------- */
.case { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-areas: "map vig" "map ply"; gap: 16px 20px; align-items: start; }
.case > .torso { grid-area: map; }
.case > .vignette { grid-area: vig; }
.case > .case-ply { grid-area: ply; min-width: 0; }
.case-ply .player { margin-top: 0; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; grid-template-areas: "vig" "map" "ply"; } .case .torso svg { max-width: 250px; } }
.torso { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.torso svg { width: 100%; height: auto; display: block; max-width: 340px; margin: 0 auto; }
.torso .body { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; }
.torso .lung { fill: color-mix(in srgb, var(--accent) 10%, var(--surface)); stroke: color-mix(in srgb, var(--accent) 40%, var(--line)); stroke-width: 1.5; }
.torso .spine { stroke: var(--line); stroke-width: 3; stroke-dasharray: 4 5; }
.torso .pt circle:not(.hit) { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; cursor: pointer; }
.torso .pt circle.hit { fill: transparent; stroke: none; cursor: pointer; }
.torso .pt text { font-family: var(--f-display); font-size: 12px; font-weight: 700; fill: var(--accent); pointer-events: none; }
.torso .pt.heard circle:not(.hit) { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.torso .pt.on circle:not(.hit) { fill: var(--accent); }
.torso .pt.on text { fill: var(--accent-ink); }
.torso .pt:focus-visible circle:not(.hit) { stroke: var(--focus); stroke-width: 4; }
.torso .side { font-family: var(--f-display); font-size: 12px; font-weight: 700; fill: var(--muted); letter-spacing: 0.1em; }
.vignette { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.vignette p { margin: 0.4rem 0; }
.q { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.q h3 { margin: 0 0 8px; font-size: 1.05rem; }
.opts { display: grid; gap: 8px; }
.opt {
  text-align: left; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font-family: var(--f-body); font-size: 0.97rem; line-height: 1.4; color: var(--ink);
}
.opt:hover:not([disabled]) { border-color: var(--accent); }
.opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.opt.wrong { border-color: var(--alert); background: color-mix(in srgb, var(--alert) 10%, var(--surface)); }
.opt[disabled] { cursor: default; }
.why { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); font-size: 0.95rem; }
.why b { font-family: var(--f-display); }
.score { font-family: var(--f-display); font-weight: 700; }

/* ---------- Form (bulgu yazma) ---------- */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 16px; }
.field label { display: block; font-family: var(--f-display); font-weight: 650; font-size: 0.86rem; margin-bottom: 4px; }
.field select, .field input {
  width: 100%; font: 0.95rem var(--f-display); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.out { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.out p { font-size: 1.04rem; margin: 6px 0 10px; }

/* ---------- Sözlük ---------- */
.gloss { display: grid; gap: 10px; margin-top: 14px; }
.gloss .box b { font-family: var(--f-display); font-size: 1.05rem; }
.gloss .box i { font-style: normal; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.gloss .box p { margin: 4px 0 0; font-size: 0.95rem; }

/* ---------- Zaman çizelgesi ---------- */
.tl { list-style: none; padding: 0; margin: 18px 0; border-left: 2px solid var(--line); }
.tl li { position: relative; padding: 0 0 16px 22px; margin: 0; }
.tl li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl .yr { font-family: var(--f-mono); font-weight: 500; color: var(--accent); font-size: 0.9rem; display: block; }

/* ---------- Kaynaklar ---------- */
.refs { font-size: 0.92rem; line-height: 1.5; padding-left: 1.4rem; }
.refs li { margin: 6px 0; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 35; top: calc(58px + env(safe-area-inset-top, 0px)); left: 0; bottom: auto; width: min(86vw, 320px);
    height: calc(100vh - 58px - env(safe-area-inset-top, 0px)); height: calc(100dvh - 58px - env(safe-area-inset-top, 0px));
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.25);
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }
  .sidebar.open { transform: none; }
  .brand small { display: none; }
}
@media (max-width: 640px) {
  .qbtn { display: inline-flex; margin-left: auto; }
  .search { display: none; }
  .topbar.searching .search {
    display: block; position: absolute; top: 100%; left: 0; right: 0; max-width: none; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  }
  .topbar.searching .search svg { left: calc(max(16px, env(safe-area-inset-left, 0px)) + 11px); top: 26px; }
  .topbar.searching .search-results { left: 16px; right: 16px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Sade teori katmanları ---------- */
.essence {
  font-family: var(--f-display); font-size: clamp(1.18rem, 2.4vw, 1.42rem); font-weight: 650; font-stretch: 90%; line-height: 1.32;
  border-left: 5px solid var(--accent); padding: 2px 0 4px 16px; margin: 6px 0 20px; max-width: 58ch; text-wrap: pretty;
}
.essence .eyebrow { display: block; margin-bottom: 4px; color: var(--accent); }
.keys-wrap { margin: 0 0 8px; }
.keys-wrap > .eyebrow { display: block; margin-bottom: 8px; }
.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.keys li {
  position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px 10px 44px; font-size: 1rem; line-height: 1.5;
}
.keys li::before {
  content: ""; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
}
.keys li::after {
  content: ""; position: absolute; left: 20px; top: 16px; width: 5px; height: 9px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.analogy {
  background: color-mix(in srgb, var(--exp) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--exp) 35%, var(--line));
  border-radius: 12px; padding: 12px 16px; margin: 1rem 0;
}
.analogy > .eyebrow { display: block; color: var(--exp); margin-bottom: 2px; }
.analogy p { margin: 0; font-size: 1.02rem; }
.listen {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; margin: 2px 8px 2px 0;
  font-family: var(--f-display); font-weight: 650; font-size: 0.88rem; color: var(--accent);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 999px; padding: 6px 12px;
}
.listen:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.listen svg { flex: none; }
details.deep { margin: 2rem 0 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
details.deep > summary {
  cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 44px 14px 16px; position: relative;
  font-family: var(--f-display); font-weight: 750; font-size: 1.05rem;
}
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary .muted { font-weight: 500; font-size: 0.84rem; }
details.deep > summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.5rem; font-weight: 500; color: var(--accent); }
details.deep[open] > summary::after { content: "−"; }
details.deep[open] > summary { border-bottom: 1px solid var(--line); }
.deep-body { padding: 4px 16px 16px; font-size: 0.96rem; }
.deep-body h3 { margin-top: 1.1rem; }
.myth { display: grid; gap: 10px; margin-top: 12px; }
.myth .m { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.myth .m > div { padding: 10px 14px; min-width: 0; }
.myth .m p { margin: 2px 0 0; font-size: 0.97rem; line-height: 1.5; }
.myth .no { background: color-mix(in srgb, var(--alert) 8%, var(--surface)); border-right: 1px solid var(--line); }
.myth .no .eyebrow { color: var(--alert); }
.myth .yes .eyebrow { color: var(--ok); }
.myth .no p { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--alert) 55%, transparent); }
@media (max-width: 620px) { .myth .m { grid-template-columns: 1fr; } .myth .no { border-right: 0; border-bottom: 1px solid var(--line); } }

@media (max-width: 640px) { .fig:not(.torso) > svg { min-width: 540px; } .fig { -webkit-overflow-scrolling: touch; } }

/* ---------- v4: gezinme, dersler, pratik ---------- */
.topnav { display: flex; gap: 2px; margin-left: 18px; }
.topnav a { font-family: var(--f-display); font-weight: 650; font-size: 0.92rem; color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.topnav a:hover { color: var(--ink); background: var(--surface-2); }
.topnav a.on { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1180px) { .topnav { display: none; } }
.nav-mod { margin: 0 0 2px; }
.nav-mod > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; }
.nav-mod > summary::-webkit-details-marker { display: none; }
.nav-mod > summary:hover { background: var(--surface-2); }
.nav-mod > summary > span:nth-child(2) { flex: 1; min-width: 0; }
.nav-count { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.nav-mod a { padding-left: 40px !important; font-size: 0.9rem !important; position: relative; }
.nav-mod a.done::before { content: ""; position: absolute; left: 22px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--ok); }
.m-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--accent); font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; flex: none; }
.mprog { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; max-width: 320px; margin-top: 6px; }
.mprog span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.mprog.big { height: 8px; flex: 1 1 200px; margin: 0; }
.prog-sum { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: 0.9rem; margin: 6px 0 18px; }
.modules { display: grid; gap: 14px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.m-head { display: flex; gap: 12px; align-items: flex-start; }
.m-head .m-no { width: 34px; height: 34px; font-size: 1rem; border-radius: 9px; background: var(--accent); color: var(--accent-ink); }
.m-head h2 { margin: 2px 0 2px; font-size: 1.25rem; }
.m-head p { margin: 0; }
.m-list { list-style: none; padding: 0; margin: 10px 0 0 46px; display: grid; gap: 2px; }
.m-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; font-family: var(--f-display); }
.m-list li:last-child { border-bottom: 0; }
.m-list li.done a::after { content: " ✓"; color: var(--ok); }
.lesson-head .mprog { max-width: 260px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 6px; }
.toc .eyebrow { margin-right: 4px; }
.toc button { font-family: var(--f-display); font-size: 0.84rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.toc button:hover { border-color: var(--accent); }
.selfcheck { margin-top: 28px; }
.selfcheck > h2 { margin-top: 0; }
.done-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
a.path { text-decoration: none; color: var(--ink); display: block; }
a.path:hover { border-color: var(--accent); }
a.path p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.mod-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.mod { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.mod:hover { border-color: var(--accent); }
.mod .m-no { grid-row: span 3; width: 30px; height: 30px; background: var(--accent); color: var(--accent-ink); }
.mod b { font-family: var(--f-display); font-size: 1.02rem; }
.mod p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.mod .mono { font-size: 0.74rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; color: var(--muted); background: transparent; border: 0; padding: 6px 13px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg.big { margin: 4px 0 18px; }
.seg.big button { font-size: 0.95rem; padding: 9px 16px; }
@media (max-width: 560px) { .seg.big { display: flex; border-radius: 12px; } .seg.big button { flex: 1 1 auto; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.torso .seg { display: flex; width: max-content; margin: 0 auto 8px; }
.torso .heart { fill: color-mix(in srgb, var(--alert) 14%, var(--surface)); stroke: color-mix(in srgb, var(--alert) 35%, var(--line)); stroke-width: 1.5; }
.spec-q { position: relative; background: var(--screen); border-radius: 12px; padding: 12px 12px 12px 64px; margin-bottom: 12px; }
.spec-q canvas { display: block; width: 100%; height: 220px; border-radius: 4px; }
.sq-axis { position: absolute; left: 8px; top: 12px; bottom: 12px; width: 50px; font-family: var(--f-mono); font-size: 0.66rem; color: #7F95A3; }
.sq-axis span { position: absolute; right: 4px; transform: translateY(-50%); }
.fc-wrap { max-width: 640px; margin: 0 auto; }
.fc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; min-height: 220px; cursor: pointer; box-shadow: 0 1px 0 var(--line); }
.fc .player { cursor: default; margin: 10px 0 0; }
.fc-big { font-size: 1.8rem; margin: 18px 0; }
.fc-big2 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; line-height: 1.4; margin: 14px 0; }
.fc-back { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 12px; }
.fc-back h3 { margin: 2px 0 6px; }
.fc-btns { justify-content: center; margin: 14px 0 6px; }
.btn[disabled] { opacity: 0.45; cursor: default; }
.cheat { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cheat .box h2 { margin: 0 0 8px; font-size: 1.15rem; }
.cheat .tbl { margin: 0; }
.lab { background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 14px; padding: 14px 16px; margin: 1.6rem 0; }
.lab > .eyebrow { color: var(--accent); }
.lab h3 { margin: 2px 0 4px; }
.lab-ctrl { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 10px 0; }
.lab-ctrl label { display: grid; gap: 4px; font-family: var(--f-display); font-weight: 650; font-size: 0.88rem; min-width: 180px; flex: 1 1 180px; }
.lab-ctrl label b { font-weight: 500; color: var(--accent); }
.lab-ctrl input[type="range"] { width: 100%; accent-color: var(--accent); }
.lab-out { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 0.97rem; min-height: 3em; }
.lab .player { margin-bottom: 0; }

.torso .pt:focus { outline: none; }
.mod-grid { margin-top: 12px; }
.sq-phase { position: relative; height: 18px; margin-bottom: 6px; }

.m-list a { text-decoration: none; color: var(--ink); }
.m-list a:hover { color: var(--accent); text-decoration: underline; }
.q h3 { text-wrap: pretty; }
.case .vignette { min-width: 0; }

/* ---------- Üç kural ve zincir kutusu (v5) ---------- */
.rules { display: grid; gap: 10px; margin: 1rem 0 1.4rem; }
.rule { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.rule .r-no { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.rule b { font-family: var(--f-display); font-size: 1.06rem; display: block; line-height: 1.35; }
.rule p { margin: 4px 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.chain { margin: 0.4rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 14px 16px; }
.chain > .eyebrow { display: block; margin-bottom: 10px; color: var(--accent); }
.chain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chain-grid > div { border-top: 3px solid var(--line); padding-top: 8px; min-width: 0; }
.chain-grid > div:nth-child(1) { border-top-color: var(--exp); }
.chain-grid > div:nth-child(2) { border-top-color: var(--insp); }
.chain-grid > div:nth-child(3) { border-top-color: var(--accent); }
.chain-grid b { font-family: var(--f-display); font-size: 0.92rem; }
.chain-grid p { margin: 4px 0 0; font-size: 0.94rem; line-height: 1.5; }
.chain-more { margin: 10px 0 0; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 640px) { .chain-grid { grid-template-columns: minmax(0, 1fr); } }

/* Açılış mesajı: betik çalışınca yerini sayfa alır */
.boot { max-width: 60ch; margin: 40px auto; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--f-display); }
.boot p { margin: 0.4rem 0; }

/* Vaka listesi: konu bağlantıları */
.case-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.case-jump a { font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); color: var(--ink); }
.case-jump a:hover { border-color: var(--accent); }
h2[id^="cg-"] { scroll-margin-top: 72px; }

/* ---------- Sade oynatıcı (v7) ---------- */
.p-play { width: 52px; height: 52px; }
.p-play svg { width: 20px; height: 20px; }
.p-specbtn[aria-pressed="true"] { background: #C9DCE4; color: #0A0F1D; border-color: #C9DCE4; }
.player.nospec { --gut: 0px; }
.player.nospec .p-spec-wrap, .player.nospec .p-meta { display: none; }
.player.nospec .p-wave-wrap, .player.nospec .p-phase-wrap { padding-left: 0; }
.player.nospec .p-wave { height: 104px; }
.player.nospec.compact .p-wave { height: 76px; }
.p-foot { justify-content: flex-end; }
.p-foot .p-meta { margin-right: auto; }
@media (max-width: 560px) {
  .p-play { width: 56px; height: 56px; }
  .p-title { flex-basis: calc(100% - 72px); }
  .p-ctrl { width: 100%; }
  .p-time { margin-left: auto; }
  .player.nospec .p-wave { height: 88px; }
}
@media (max-width: 560px) { .p-phase div { font-size: 0.6rem; letter-spacing: 0.02em; padding-left: 3px; } }

/* ---------- Vaka: telefonda dinleme akışı (v7) ---------- */
@media (max-width: 860px) {
  .case { display: flex; flex-direction: column; gap: 14px; }
  .case > .vignette { order: 1; } .case > .torso { order: 2; } .case > .case-ply { order: 3; }
  .case .torso svg { max-width: 300px; }
  .case > .case-ply { position: sticky; bottom: 0; z-index: 15; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .case-ply .player { margin: 0; box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28); }
  .case-ply .player .p-foot, .case-ply .player .p-title span, .case-ply .player .p-loop, .case-ply .player .p-specbtn { display: none; }
  .case-ply .player .p-top { flex-wrap: nowrap; }
  .case-ply .player .p-title { flex: 1 1 auto; }
  .case-ply .player .p-ctrl { width: auto; }
  .case-ply .player .p-wave { height: 56px; }
  .case-ply .player .p-stack { margin-top: 8px; }
  .case-ply .player.nospec .p-spec-wrap { display: none; }
}
@media (max-width: 860px) { .case-ply .player .p-time { font-size: 0.72rem; min-width: 0; white-space: nowrap; } }

/* ---------- Gezinme (v7): geniş ekranda sol menü yalnızca derslerde ---------- */
@media (min-width: 1181px) {
  body:not(.side-on) .shell { grid-template-columns: minmax(0, 1fr); }
  body:not(.side-on) .sidebar { display: none; }
}
.topmore { position: relative; }
.topmore > summary { list-style: none; cursor: pointer; font-family: var(--f-display); font-weight: 650; font-size: 0.92rem; color: var(--muted); padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.topmore > summary::-webkit-details-marker { display: none; }
.topmore > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }
.topmore > summary:hover, .topmore[open] > summary { color: var(--ink); background: var(--surface-2); }
.topmore-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); padding: 8px; display: grid; gap: 1px; }
.topmore-menu .eyebrow { padding: 8px 10px 2px; }
.topmore-menu a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-size: 0.93rem; }
.topmore-menu a:hover { background: var(--surface-2); }

/* ---------- Ders başı: özet ve "Akılda kalsın" tek blok (v7) ---------- */
.essence { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--r); padding: 14px 18px 14px 16px; margin: 6px 0 18px; max-width: none; }
.essence:has(+ .keys-wrap) { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; padding-bottom: 8px; }
.essence + .keys-wrap { background: var(--surface); border: 1px solid var(--line); border-top: 1px dashed var(--line); border-left: 5px solid var(--accent); border-radius: 0 0 var(--r) var(--r); padding: 10px 18px 14px 16px; margin: 0 0 18px; }
.essence + .keys-wrap > .eyebrow { margin-bottom: 4px; }
.essence + .keys-wrap .keys { gap: 2px; }
.essence + .keys-wrap .keys li { background: none; border: 0; border-radius: 0; padding: 4px 0 4px 28px; font-size: 0.98rem; }
.essence + .keys-wrap .keys li::before { left: 0; top: 8px; width: 17px; height: 17px; }
.essence + .keys-wrap .keys li::after { left: 6px; top: 11px; width: 4px; height: 8px; }
@media (max-width: 640px) {
  .essence { font-size: 1.1rem; padding: 12px 14px; }
  .essence + .keys-wrap { padding: 8px 14px 12px; }
  .essence + .keys-wrap .keys li { font-size: 0.95rem; }
  .toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-right: -16px; }
  .toc::-webkit-scrollbar { display: none; }
  .toc button { white-space: nowrap; flex: none; }
  .toc .eyebrow { flex: none; }
}

/* ---------- Ana sayfa (v7): hızlı dinleme ve roller ---------- */
.hero { align-items: start; }
.quick { min-width: 0; display: grid; gap: 10px; }
.quick > .eyebrow { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-display); font-weight: 650; font-size: 0.88rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.quick .player { margin: 0; }
.roles .role { display: flex; flex-direction: column; }
.roles .role ol { margin: 4px 0 12px; padding-left: 1.2rem; color: var(--ink); }
.roles .role li { font-family: var(--f-display); font-size: 0.95rem; margin: 3px 0; }
.roles .role .go { margin-top: auto; align-self: flex-start; font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; color: var(--accent); }
.roles .role .go::after { content: " →"; }
.roles .role:hover { border-color: var(--accent); }
@media (max-width: 640px) { .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-bottom: 2px; } .chips::-webkit-scrollbar { display: none; } .chip { flex: none; } }
@media (max-width: 640px) {
  .filters { display: grid; gap: 8px; }
  .filters .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .filters .seg::-webkit-scrollbar { display: none; }
  .filters .seg button { flex: none; white-space: nowrap; }
}

/* ---------- Ders çerçevesi (v8): soru, kısa cevap, sonda özet ---------- */
.frame { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--r); padding: 14px 18px 14px 16px; margin: 6px 0 14px; }
.frame .eyebrow { display: block; color: var(--accent); margin-bottom: 3px; }
.frame .fq { font-family: var(--f-display); font-size: clamp(1.16rem, 2.3vw, 1.38rem); font-weight: 650; font-stretch: 90%; line-height: 1.3; margin: 0 0 12px; max-width: 46ch; text-wrap: pretty; }
.frame .fa-l { border-top: 1px dashed var(--line); padding-top: 10px; }
.frame .fa { margin: 0; font-size: 1.02rem; line-height: 1.58; max-width: 66ch; text-wrap: pretty; }
.lesson-body > h2 { scroll-margin-top: 84px; }
.ozet { margin: 2.2rem 0 1.4rem; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: var(--r); padding: 14px 18px 12px; }
.ozet > .eyebrow { margin-bottom: 6px; color: var(--accent); }
.ozet .keys { gap: 4px; }
.ozet .keys li { background: none; border: 0; border-radius: 0; padding: 4px 0 4px 30px; font-size: 1rem; }
.ozet .keys li::before { left: 0; top: 8px; width: 18px; height: 18px; }
.ozet .keys li::after { left: 6px; top: 11px; }
@media (max-width: 640px) {
  .frame { padding: 12px 14px; }
  .frame .fq { font-size: 1.12rem; }
  .ozet { padding: 12px 14px 10px; }
}
.course-frame { margin: 6px 0 22px; }
.course-frame .box > .eyebrow { display: block; color: var(--accent); margin-bottom: 6px; }
.course-frame ol { margin: 0; padding-left: 1.2em; }
.course-frame li { margin: 2px 0; line-height: 1.45; }
.chain-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chain-grid.c4 > div:nth-child(2) { border-top-color: var(--ok); }
.chain-grid.c4 > div:nth-child(3) { border-top-color: var(--insp); }
.chain-grid.c4 > div:nth-child(4) { border-top-color: var(--accent); }
.chain-grid > div.nc p { color: var(--muted); }
@media (max-width: 1100px) { .chain-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .chain-grid.c4 { grid-template-columns: minmax(0, 1fr); } }
.fig .pair { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.fig .pair > svg { flex: 1 1 280px; max-width: 360px; min-width: 0; }

/* ---------- Üyelik (v9) ---------- */
.mtop { display: inline-flex; align-items: center; }
.m-top { font-family: var(--f-display); font-weight: 650; font-size: 0.9rem; color: var(--accent); text-decoration: none; padding: 6px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); white-space: nowrap; margin-right: 6px; }
.m-top:hover { background: var(--surface-2); }
.langbtn { font-family: var(--f-display); font-weight: 750; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; margin-right: 6px; min-height: 34px; }
.langbtn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .m-top { font-size: 0.8rem; padding: 5px 8px; } .mtop .m-top { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; } }
a.locked::after, li.locked > a::after { content: ""; display: inline-block; width: 10px; height: 11px; margin-left: 6px; vertical-align: -1px; background: currentColor; opacity: 0.5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5zm1.3 0h3.4V3.5a1.7 1.7 0 0 0-3.4 0z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5zm1.3 0h3.4V3.5a1.7 1.7 0 0 0-3.4 0z'/%3E%3C/svg%3E") center/contain no-repeat; }
.tag.lock { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.member-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 8px 0 18px; }
.member-card h2 { margin-top: 0; font-size: 1.25rem; }
.m-ben { margin: 0 0 16px; padding-left: 1.2em; }
.m-ben li { margin: 3px 0; }
.m-login { display: grid; gap: 12px; max-width: 520px; }
.m-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; font-size: 1rem; }
.m-google svg { background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; }
.m-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.86rem; }
.m-or::before, .m-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.m-email label, .m-prof > label { display: block; font-family: var(--f-display); font-weight: 650; font-size: 0.92rem; margin: 10px 0 4px; }
.m-row { display: flex; gap: 8px; flex-wrap: wrap; }
.m-row input, .m-prof input[type="text"] { flex: 1 1 220px; min-height: 44px; font: inherit; font-size: 1rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.m-prof input[type="text"] { width: 100%; box-sizing: border-box; }
.m-small { font-size: 0.86rem; margin: 2px 0 0; }
.m-msg { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 10px; padding: 10px 12px; margin: 4px 0; }
.m-prof fieldset { border: 0; padding: 0; margin: 12px 0 4px; }
.m-prof legend { font-family: var(--f-display); font-weight: 650; font-size: 0.92rem; margin-bottom: 6px; }
.m-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.m-role { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; background: var(--bg); min-height: 40px; box-sizing: border-box; }
.m-role:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.m-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; line-height: 1.45; }
.m-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.m-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; }
.m-dl dt { font-family: var(--f-display); font-weight: 650; color: var(--muted); }
.m-dl dd { margin: 0; }
.m-del { margin-top: 14px; }
.m-del summary { cursor: pointer; color: var(--alert); font-family: var(--f-display); font-weight: 650; }
.btn.danger { background: var(--alert); color: #fff; border-color: var(--alert); }
.pv-bar { background: color-mix(in srgb, var(--exp) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--exp) 40%, var(--line)); border-radius: var(--r); padding: 10px 14px; margin: 0 0 14px; font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.legal h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.brand > span { min-width: 0; overflow: hidden; }
.brand b { display: block; overflow: hidden; text-overflow: ellipsis; }
.m-short { display: none; }
@media (max-width: 640px) {
  .mtop { margin-left: auto; }
  .mtop:empty + .langbtn { margin-left: auto; }
  .mtop:not(:empty) ~ .qbtn, .langbtn ~ .qbtn { margin-left: 0; }
  .m-long { display: none; } .m-short { display: inline; }
  .langbtn { padding: 5px 8px; margin-right: 4px; }
  .topbar { gap: 8px; }
}

/* ---------- Eşit satır uzunluğu (v9): metin iki yana yaslı, heceleme açık ----------
   Ölçü tek: okuma sütunu 68ch; kutular ve özetler de bu sütunu doldurur. */
html { -webkit-hyphenate-limit-before: 3; -webkit-hyphenate-limit-after: 3; }
.read, .lesson-body { max-width: 68ch; }
.lede { max-width: 68ch; }
.frame .fa, .frame .fq { max-width: none; }
.read p, .read li, .read dd, .lede, .frame .fa, .callout p, .box p, .member-card p, .member-card li,
.deep-body p, .deep-body li, .keys li, .ozet li, .m .no p, .m .yes p, .fig figcaption, .c-body p, .case-story, .story, .vignette p, .why {
  text-align: justify; text-align-last: start;
  -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3;
  overflow-wrap: break-word; text-wrap: wrap;
}
.read td, .read th, .btns, .tags, .m-ben li { text-align: start; hyphens: manual; }
.frame .fq, .essence, .read p.fq, .read .btns, .read p.btns { text-align: start; hyphens: manual; }
/* v10: atlas sayfasında "Başka bir hasta" */
.hasta-row { margin: 10px 0 2px; }
.hasta-row #hasta-not { font-size: .88rem; }
.hasta-acik { font-size: .88rem; margin: 0 0 14px; }

/* v11.4: vaka bulgu haritası */
.torso .pt.abn circle:not(.hit) { stroke: var(--alert); stroke-width: 4; }
.torso .pt.abn text { fill: var(--alert); }
.torso .pt.abn.on text { fill: var(--accent-ink); }
.case-map { margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .92rem; }
.case-map ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }
.case-map p { margin: 0; font-size: .85rem; }

/* ---------- v12: vaka gönderimi, yönetim, gerçek kayıtlı vakalar, onam formu ---------- */
.kt-app { margin-top: 18px; }
.kt-form fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 16px; margin: 0 0 16px; background: var(--surface); min-width: 0; }
.kt-form legend { font-family: var(--f-display); font-weight: 750; padding: 0 6px; }
.kt-l { display: block; font-family: var(--f-display); font-weight: 650; font-size: 0.9rem; margin: 10px 0 4px; }
.kt-form input:not([type="checkbox"]):not([type="file"]), .kt-form textarea, .kt-form select, .yn select, .yn textarea, .yn input:not([type="checkbox"]):not([type="file"]) { width: 100%; box-sizing: border-box; min-height: 42px; font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.kt-form textarea, .yn textarea { min-height: 0; line-height: 1.45; resize: vertical; }
.kt-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 720px) { .kt-grid3 { grid-template-columns: 1fr; } }
.kt-rec { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.kt-err { color: var(--alert); }
.kt-small { font-size: 0.86rem; }
.kt-steps li { margin: 6px 0; }
.kt-tabs { margin-bottom: 12px; }
.kt-sub { margin: 10px 0; }
.kt-subh { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.kt-kvk ul { margin: 6px 0; }
.tag.kt-d-yeni, .tag.kt-d-inceleniyor { color: var(--exp); border-color: color-mix(in srgb, var(--exp) 45%, transparent); }
.tag.kt-d-duzeltme, .tag.kt-d-ret { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 45%, transparent); }
.tag.kt-d-kabul, .tag.kt-d-yayinlandi, .tag.real { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.yn-list { display: grid; gap: 8px; }
.yn-row { display: grid; gap: 4px; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
div.yn-row { cursor: default; }
.yn-row .btns { margin: 4px 0 0; }
.yn-sub h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.yn-rec { margin: 10px 0; }
.yn-pair { display: flex; gap: 6px; }
.yn-syn { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 12px; }
.yn-syn label span { display: block; font-size: 0.84rem; color: var(--muted); margin-bottom: 2px; }
.yn-q { margin: 10px 0; }
.yn .seg.big { margin-bottom: 12px; }
.case-credit { font-size: 0.9rem; color: var(--ok); margin: 6px 0; }
.torso .pt.na { opacity: 0.3; cursor: not-allowed; }
.torso .seg.mod { margin-top: 8px; display: flex; justify-content: center; }
.player.real .p-note { color: var(--ok); }
.onam-form h1 { font-size: 1.35rem; line-height: 1.3; }
.onam-form h2 { font-size: 1.02rem; margin: 1.1rem 0 0.3rem; }
.onam-sig { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.onam-sig th { text-align: left; font-weight: 600; width: 40%; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.onam-sig td { border-bottom: 1px solid var(--ink); }
@media print {
  .topbar, .sidebar, .foot, .no-print, .pv-bar { display: none !important; }
  .shell, main, .page { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .onam-form { max-width: none; }
  .onam-form h2 { break-after: avoid; }
  .onam-sig { break-inside: avoid; }
}
