/* ML Laboratuvarı — tasarım sistemi
 * Düzen: koyu sabit kenar çubuğu (öğrenme yolu) + açık içerik alanı; derslerde sekmeli adımlar,
 * alıştırmalarda solda görev / sağda editör. Renkler: lacivert kabuk, petrol mavisi vurgu, kehribar boşluk.
 */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-3: #e8ecf1;
  --ink: #0e1726;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e6ec;
  --line-2: #d0d7e0;
  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --accent-ink: #ffffff;
  --accent-soft: #e3f3f0;
  --accent-line: #9fd6cd;
  --hi: #e8a317;
  --hi-soft: #fdf3dc;
  --good: #15803d;
  --good-soft: #e6f5eb;
  --warn: #b45309;
  --warn-soft: #fdf1e1;
  --bad: #c0392b;
  --bad-soft: #fbe9e7;
  --info: #2563eb;
  --info-soft: #e9f0fd;
  --violet: #6d28d9;
  --violet-soft: #efe8fd;
  --shell: #0b1220;
  --shell-2: #111a2c;
  --shell-3: #1a2538;
  --shell-ink: #e6ebf3;
  --shell-muted: #8d99ae;
  --shell-line: #1e2a40;
  --shell-accent: #2dd4bf;
  --code-bg: #0d1424;
  --code-bg-2: #131c30;
  --code-ink: #dbe3f0;
  --code-gutter: #55637c;
  --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-read: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(14, 23, 38, 0.05);
  --sh-2: 0 1px 2px rgba(14, 23, 38, 0.04), 0 6px 20px rgba(14, 23, 38, 0.06);
  --sb-w: 288px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1a; --surface: #111827; --surface-2: #172033; --surface-3: #1f2a3e;
    --ink: #e6ebf2; --ink-2: #c3cbd8; --muted: #8d99ad; --line: #222d40; --line-2: #2e3c55;
    --accent: #2bb8a6; --accent-strong: #5fd4c4; --accent-ink: #04201d; --accent-soft: #0f2e2b; --accent-line: #1f6b62;
    --hi: #f2b632; --hi-soft: #33290f;
    --good: #4ade80; --good-soft: #10291a; --warn: #f5a524; --warn-soft: #33240e; --bad: #f87171; --bad-soft: #351819;
    --info: #7aa2ff; --info-soft: #172442; --violet: #b69cff; --violet-soft: #251c42;

    --code-bg: #0a101d; --code-bg-2: #0f1728;
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.3); --sh-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1a; --surface: #111827; --surface-2: #172033; --surface-3: #1f2a3e;
  --ink: #e6ebf2; --ink-2: #c3cbd8; --muted: #8d99ad; --line: #222d40; --line-2: #2e3c55;
  --accent: #2bb8a6; --accent-strong: #5fd4c4; --accent-ink: #04201d; --accent-soft: #0f2e2b; --accent-line: #1f6b62;
  --hi: #f2b632; --hi-soft: #33290f;
  --good: #4ade80; --good-soft: #10291a; --warn: #f5a524; --warn-soft: #33240e; --bad: #f87171; --bad-soft: #351819;
  --info: #7aa2ff; --info-soft: #172442; --violet: #b69cff; --violet-soft: #251c42;

  --code-bg: #0a101d; --code-bg-2: #0f1728;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.3); --sh-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ---------- Temel ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; font-weight: 750; }
h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.08rem; }
p { margin: 0; }
code, pre, kbd { font-family: var(--font-mono); font-size: 0.86em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 68ch; line-height: 1.6; }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100%; }
.main { min-width: 0; display: flex; flex-direction: column; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--shell); color: var(--shell-ink); display: flex; flex-direction: column; gap: 18px; padding: 18px 14px 16px; border-right: 1px solid var(--shell-line); scrollbar-width: thin; scrollbar-color: var(--shell-3) transparent; }
.sb-brand { display: flex; align-items: center; gap: 11px; color: var(--shell-ink); text-decoration: none; padding: 4px 8px; }
.sb-logo { color: var(--shell-accent); display: grid; }
.sb-name { display: flex; flex-direction: column; line-height: 1.2; }
.sb-name strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.sb-name small { color: var(--shell-muted); font-size: 0.74rem; font-weight: 500; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--shell-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.sb-link span { display: grid; }
.sb-link:hover { background: var(--shell-2); color: var(--shell-ink); }
.sb-link.on { background: var(--shell-3); color: var(--shell-ink); }
.sb-module { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: linear-gradient(160deg, var(--shell-2), var(--shell-3)); border: 1px solid var(--shell-line); }
.sb-mod-ring, .mp-ring, .pi-ring { position: relative; display: grid; place-items: center; flex: none; }
.sb-mod-ring span, .mp-ring span { position: absolute; font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-mod-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sb-mod-text small { color: var(--shell-accent); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.sb-mod-text strong { font-size: 0.9rem; }
.sb-mod-text span { color: var(--shell-muted); font-size: 0.76rem; }
.sb-lessons { display: flex; flex-direction: column; gap: 1px; }
.sb-sec { margin: 12px 10px 6px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--shell-muted); }
.sb-sec:first-child { margin-top: 0; }
.sb-lesson { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); color: #b9c3d3; text-decoration: none; font-size: 0.86rem; line-height: 1.3; position: relative; }
.sb-lesson:hover { background: var(--shell-2); color: var(--shell-ink); }
.sb-lesson.cur { background: var(--shell-3); color: #fff; font-weight: 600; }
.sb-lesson.cur::before { content: ""; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--shell-accent); }
.sb-lesson.done { color: var(--shell-muted); }
.sb-ring { display: grid; flex: none; }
.sb-lt { display: flex; gap: 8px; min-width: 0; }
.sb-ln { color: var(--shell-muted); font-family: var(--font-mono); font-size: 0.74rem; padding-top: 1px; flex: none; }
.sb-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--shell-line); font-size: 0.74rem; color: var(--shell-muted); display: flex; flex-direction: column; gap: 6px; }
.sb-reset { border: 0; background: none; color: var(--shell-muted); padding: 0; text-align: left; font-size: 0.74rem; text-decoration: underline; cursor: pointer; }
.sb-reset:hover { color: var(--shell-ink); }
.sidebar .ring-track { fill: none; stroke: var(--shell-3); stroke-width: 2.4; }
.sidebar .ring-val { fill: none; stroke: var(--shell-accent); stroke-width: 2.4; stroke-linecap: round; }
.sidebar .ring.done .ring-fill { fill: var(--shell-accent); }
.sidebar .ring.done .ring-check { color: var(--shell); }
.ring-track { fill: none; stroke: var(--surface-3); stroke-width: 2.6; }
.ring-val { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; transition: stroke-dasharray 0.4s ease; }
.ring.done .ring-fill { fill: var(--accent); }
.ring.done .ring-check { color: var(--accent-ink); }
.scrim { display: none; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tb-menu { display: none; border: 0; background: none; padding: 6px; margin-left: -6px; cursor: pointer; color: var(--ink); }
.crumbs { order: 1; display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .here { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--line-2); }
.tb-progress { order: 2; flex: 1; max-width: 380px; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tp-track { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.tp-track span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width 0.45s cubic-bezier(.2,.8,.2,1); }
.tb-progress.full .tp-track span { background: var(--good); }
.tp-label { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.tb-right { order: 3; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tb-progress + .tb-right, .tb-progress ~ .tb-right { margin-left: 0; }
.pychip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; max-width: 230px; }
.pychip .pytxt { overflow: hidden; text-overflow: ellipsis; }
.pychip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.pychip.is-loading .dot, .pychip.is-pkg .dot { background: var(--hi); animation: pulse 1s infinite alternate; }
.pychip.is-ready .dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.pychip.is-error { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.pychip.is-error .dot { background: var(--bad); }
@keyframes pulse { from { opacity: 0.35; } to { opacity: 1; } }
.lang { display: inline-flex; padding: 2px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.lang button { border: 0; background: transparent; padding: 3px 10px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; cursor: pointer; color: var(--muted); letter-spacing: 0.04em; }
.lang button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- Sayfa ---------- */
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 40px 28px; display: flex; flex-direction: column; gap: 32px; }
.page.lesson { max-width: 1280px; gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 28px 32px; }
.sec-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.sec-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec-head .muted { max-width: 70ch; margin-top: 4px; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 0.9rem; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn span[class=""], .btn > span:first-child:not(.run-label) { display: inline-grid; }
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.ghost { background: var(--surface); }
.btn.sm { padding: 6px 12px; font-size: 0.82rem; }
.btn.lg { padding: 12px 20px; font-size: 0.98rem; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.chip svg { display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- Ana sayfa ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding: 20px 0 8px; }
.hero-text { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); line-height: 1.08; }
.hero-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.86rem; color: var(--ink-2); font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts span { color: var(--accent); display: grid; }
.hero-card { background: var(--code-bg); border-radius: var(--r-lg); box-shadow: 0 24px 60px -20px rgba(11, 18, 32, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; overflow: hidden; color: var(--code-ink); transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.hc-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--code-bg-2); border-bottom: 1px solid #1c2740; }
.hc-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #2a3650; }
.hc-chrome span:first-child { background: #e5534b; } .hc-chrome span:nth-child(2) { background: #e3b341; } .hc-chrome span:nth-child(3) { background: #3fb950; }
.hc-chrome em { margin-left: 8px; font-style: normal; font-family: var(--font-mono); font-size: 0.74rem; color: #8b97ad; }
.hc-code { margin: 0; padding: 16px 18px 8px; font-size: 0.82rem; line-height: 1.75; white-space: pre; overflow: hidden; }
.hc-code .gut { display: inline-block; width: 1.8em; color: var(--code-gutter); }
.hc-chart { padding: 6px 18px 0; }
.hc-chart svg { width: 100%; height: 78px; display: block; }
.hc-area { fill: rgba(45, 212, 191, 0.14); }
.hc-line { fill: none; stroke: #2dd4bf; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.hc-dot { fill: #2dd4bf; }
.hc-pass { margin: 12px 16px 16px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; background: rgba(63, 185, 80, 0.12); color: #7ee2a0; font-size: 0.82rem; font-weight: 600; }
.hc-pass span { display: grid; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.stat { padding: 20px 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.84rem; font-weight: 500; }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.how-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sh-1); }
.how-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.how-n { position: absolute; top: 18px; right: 20px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--line-2); font-weight: 700; }
.how-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.mod-prog { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.mod-prog small { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.mod-prog .mp-ring span { font-size: 0.95rem; }
.mod-prog.big .mp-ring span { font-size: 1.3rem; }

/* Öğrenme yolu */
.path { display: flex; flex-direction: column; gap: 18px; }
.path-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.path-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.path-step { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-size: 0.8rem; font-weight: 800; }
.path-meta { margin-left: auto; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.path-list { list-style: none; margin: 0; padding: 0; }
.path-list li + li { border-top: 1px solid var(--line); }
.path-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 22px; color: var(--ink); text-decoration: none; transition: background 0.15s; }
.path-item:hover { background: var(--surface-2); }
.pi-ring b { position: absolute; font-size: 0.78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pi-body strong { font-size: 0.95rem; font-weight: 700; }
.pi-body small { color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.pi-meta { display: flex; align-items: center; gap: 6px; }
.pi-pct { width: 3.4em; text-align: right; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.path-item.done .pi-pct { color: var(--good); }
.page-head { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.prose.intro { color: var(--ink-2); }

/* Alt bilgi */
.foot { margin-top: 12px; padding: 22px 0 6px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.foot-brand { display: flex; gap: 10px; align-items: center; }
.foot-brand > span { color: var(--accent); display: grid; }
.foot-brand strong { color: var(--ink); font-size: 0.88rem; }
.foot-links { display: flex; gap: 16px; align-items: center; }
.foot-links a { color: var(--muted); }

/* ---------- Ders ---------- */
.lesson-head { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.steps-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; position: sticky; top: calc(var(--top-h, 58px) + 10px); z-index: 20; }
.step-tab { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px 18px; border: 0; border-left: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; }
.step-tab:first-child { border-left: 0; }
.step-tab:hover { background: var(--surface-2); }
.step-tab .st-ic { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.step-tab .st-ic svg { width: 20px; height: 20px; }
.step-tab .st-text { display: flex; flex-direction: column; line-height: 1.2; }
.step-tab .st-text small { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.step-tab .st-text strong { font-size: 0.92rem; font-weight: 700; }
.step-tab .st-sub { font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-tab.on { background: var(--surface); }
.step-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.step-tab.on .st-ic { background: var(--accent); color: var(--accent-ink); }
.step-tab.ok .st-ic { background: var(--good-soft); color: var(--good); }
.step-tab.on.ok .st-ic { background: var(--good); color: #fff; }
.step-tab.ok .st-sub { color: var(--good); font-weight: 600; }
.panel { display: flex; flex-direction: column; gap: 18px; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.step-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.foot-fwd { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Okuma metni */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; }
.prose li + li { margin-top: 5px; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-size: 0.84em; }
.prose pre { background: var(--code-bg); color: var(--code-ink); padding: 14px 16px; border-radius: var(--r); overflow-x: auto; margin: 0; line-height: 1.6; font-size: 0.92rem; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose .box { padding: 14px 16px; border-radius: var(--r); background: var(--info-soft); border-left: 3px solid var(--info); font-family: var(--font-ui); font-size: 0.92rem; line-height: 1.55; }
.prose .box.econ { background: var(--hi-soft); border-left-color: var(--hi); }
.prose kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface); font-size: 0.8em; }
.prose.reading { font-family: var(--font-read); font-size: 1.12rem; line-height: 1.7; color: var(--ink); max-width: 68ch; }
.prose.reading ul, .prose.reading ol { padding-left: 1.2em; }
.prose.reading b { font-weight: 600; }
.concept { padding: 36px 44px; }
.terms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.terms-h { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-right: 4px; }
.term { display: inline-flex; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.8rem; }
.term b { font-weight: 650; }
.term i { color: var(--muted); font-style: normal; }
.term i::before { content: "· "; }
.pgcard { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.pg-intro { color: var(--ink-2); max-width: 75ch; }
.takeaway { padding: 12px 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink); font-size: 0.92rem; }
.takeaway strong { color: var(--accent-strong); }

/* ---------- Kod laboratuvarı ---------- */
.labbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.lb-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lb-right { display: flex; gap: 8px; }
.ex-count { font-size: 0.86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ex-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.ex-dots .dot { width: 22px; height: 6px; border-radius: 99px; background: var(--surface-3); display: block; }
.ex-dots .dot.ok { background: var(--good); }
.cells { display: flex; flex-direction: column; gap: 18px; }
.ex { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; scroll-margin-top: calc(var(--top-h, 58px) + 90px); }
.ex.passed { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.ex-brief { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); min-width: 0; }
.ex-work { background: var(--code-bg); display: flex; flex-direction: column; min-width: 0; }
.ex-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ex-num { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.kind-fill .badge.kind { background: var(--hi-soft); color: var(--warn); border-color: color-mix(in srgb, var(--hi) 35%, transparent); }
.kind-edit .badge.kind { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.kind-debug .badge.kind { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.kind-challenge .badge.kind { background: var(--violet-soft); color: var(--violet); border-color: color-mix(in srgb, var(--violet) 25%, transparent); }
.ex-status { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.ex.passed .ex-status { background: var(--good); color: #fff; }
.ex-status svg { width: 15px; height: 15px; }
.ex-task { font-size: 0.95rem; line-height: 1.6; color: var(--ink); }
.ed-chrome { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 8px 16px; background: var(--code-bg-2); border-bottom: 1px solid #1c2740; }
.ed-file { font-family: var(--font-mono); font-size: 0.74rem; color: #8b97ad; }
.ed-tools { display: flex; gap: 4px; }
.ed-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #8b97ad; font-size: 0.76rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.ed-btn span { display: grid; }
.ed-btn:hover { background: #1c2740; color: #dbe3f0; }
.editor { flex: none; }
.ex-actions { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid #1c2740; background: var(--code-bg-2); }
.ex-actions .btn.ghost { background: transparent; border-color: #2a3650; color: #c9d3e3; }
.ex-actions .btn.ghost:hover:not(:disabled) { border-color: #4a5a78; }
.ex-actions .run { min-width: 108px; }
.kbd { margin-left: auto; font-size: 0.72rem; color: #6b7891; display: inline-flex; align-items: center; gap: 3px; }
.kbd kbd { font-size: 0.68rem; padding: 1px 5px; border-radius: 4px; border: 1px solid #2a3650; background: #0f1728; color: #9aa6bb; }
.ex.running .ex-actions { box-shadow: inset 0 2px 0 var(--hi); }
.output:empty { display: none; }
.output { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; background: var(--surface-2); border-top: 1px solid var(--line); color: var(--ink); }
.out-head { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.stdout, .value { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; overflow-x: auto; font-size: 0.82rem; line-height: 1.55; }
.value { border-left: 3px solid var(--accent); }
.fig { max-width: 100%; background: #fff; border-radius: 8px; border: 1px solid var(--line); align-self: flex-start; }
.dfwrap { overflow-x: auto; }
table.df { border-collapse: collapse; font-size: 0.8rem; font-variant-numeric: tabular-nums; background: var(--surface); }
table.df th, table.df td { padding: 5px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.df thead th { background: var(--surface-2); font-weight: 700; color: var(--ink-2); }
table.df tbody th { color: var(--muted); font-weight: 500; }
.hints { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: hint; font-size: 0.88rem; }
.hints:empty { display: none; }
.hints li { counter-increment: hint; display: flex; gap: 8px; padding: 9px 12px; border-radius: 8px; background: var(--hi-soft); border: 1px solid color-mix(in srgb, var(--hi) 30%, transparent); }
.hints li::before { content: counter(hint); flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--hi); color: #241a00; font-size: 0.7rem; font-weight: 800; margin-top: 2px; }
.feedback:empty { display: none; }
.feedback { display: flex; flex-direction: column; gap: 8px; }
.fb { padding: 11px 13px; border-radius: 8px; font-size: 0.88rem; line-height: 1.5; display: flex; flex-direction: column; gap: 5px; border: 1px solid transparent; }
.fb.good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.fb.good { display: block; }
.fb.good > p { margin-top: 4px; }
.fb.good::before { content: "✓ "; font-weight: 800; color: var(--good); }
.fb.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); display: block; }
.fb.err { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.fb.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.fb strong { font-weight: 700; }
.fb pre { margin: 4px 0 0; white-space: pre-wrap; font-size: 0.78rem; }
.fb details summary { cursor: pointer; color: var(--muted); font-size: 0.8rem; }
.errline code { background: var(--surface); padding: 1px 6px; border-radius: 4px; }
.predict { background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.predict-q { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 600; }
.predict .tag { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 800; color: var(--info); }
.predict-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 7px 12px; cursor: pointer; text-align: left; font-size: 0.88rem; transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: var(--accent); }
.opt.sel { border-color: var(--info); box-shadow: 0 0 0 2px color-mix(in srgb, var(--info) 25%, transparent); }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.shake { animation: shake 0.4s; color: var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Test */
.quiz { display: flex; flex-direction: column; gap: 22px; }
.q { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; padding-bottom: 0; }
.q-text { display: flex; gap: 12px; font-weight: 600; font-size: 1rem; }
.qn { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; }
.q.solved .qn { background: var(--good); border-color: var(--good); color: #fff; }
.q-opts { display: grid; gap: 8px; padding-left: 38px; }
.q-opts .opt { padding: 11px 14px; font-size: 0.92rem; }
.q-fb { padding-left: 38px; font-size: 0.9rem; }
.q-fb .good { color: var(--good); }
.q-fb .bad { color: var(--bad); }
.q-fb p + p { margin-top: 4px; color: var(--ink-2); }
.done-box { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line-2); }
.done-box p { color: var(--muted); font-size: 0.88rem; }
.done-box.ok { border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); background: var(--good-soft); }
.done-box.ok strong { color: var(--good); }
.db-ic { display: grid; flex: none; }

.modal { position: fixed; inset: 0; background: rgba(7, 11, 20, 0.55); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal-box { background: var(--surface); padding: 24px; border-radius: var(--r-lg); max-width: 420px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-2); }
.modal-box p { color: var(--ink-2); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 6px; }

/* ---------- CodeMirror ---------- */
.CodeMirror { height: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65; background: var(--code-bg); color: var(--code-ink); padding: 10px 0; }
.CodeMirror-gutters { background: var(--code-bg); border-right: 0; }
.CodeMirror-linenumber { color: var(--code-gutter); padding: 0 12px 0 8px; }
.CodeMirror-cursor { border-left: 2px solid #ffd166; }
.CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected { background: #233554 !important; }
.CodeMirror-activeline-background { background: #121b2e; }
.cm-s-default .cm-keyword { color: #c792ea; }
.cm-s-default .cm-builtin { color: #82aaff; }
.cm-s-default .cm-def { color: #82aaff; }
.cm-s-default .cm-variable { color: #dbe3f0; }
.cm-s-default .cm-variable-2 { color: #f2c27b; }
.cm-s-default .cm-number { color: #f78c6c; }
.cm-s-default .cm-string { color: #a5d6a7; }
.cm-s-default .cm-comment { color: #6f7f99; font-style: italic; }
.cm-s-default .cm-operator { color: #89ddff; }
.cm-s-default .cm-property { color: #dbe3f0; }
.cm-s-default .cm-meta { color: #ffcb6b; }
.cm-blank { background: var(--hi); color: #241a00 !important; border-radius: 3px; font-weight: 700; }
.CodeMirror-matchingbracket { color: #fff !important; text-decoration: underline; }

/* ---------- Oyun alanları ---------- */
.pg { display: flex; flex-direction: column; gap: 14px; }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.pg-panel { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pg-panel h4 { margin: 0; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 700; }
.pg-code { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: 8px; padding: 12px 14px; font-size: 0.82rem; line-height: 1.65; overflow-x: auto; white-space: pre; }
.pg-code .tk-k, .hc-code .tk-k { color: #c792ea; }
.pg-code .tk-s, .hc-code .tk-s { color: #a5d6a7; }
.pg-code .tk-n, .hc-code .tk-n { color: #f78c6c; }
.pg-code .tk-c { color: #6f7f99; font-style: italic; }
.pg-code .ln-row { display: block; padding: 0 6px; margin: 0 -6px; border-radius: 4px; }
.pg-code .ln-row.cur { background: #1f3352; box-shadow: inset 3px 0 0 #ffd166; }
.pg-code .gut { display: inline-block; width: 1.8em; color: var(--code-gutter); user-select: none; }
.pg-ctrls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.pg-ctrls label { display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.pg-ctrls label b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.pg-ctrls input[type="range"] { width: 180px; accent-color: var(--accent); }
.pg-ctrls select, .pg-ctrls input[type="number"] { font: inherit; font-size: 0.86rem; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.pg-ctrls .chk { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); }
.pg-note { font-size: 0.9rem; padding: 10px 14px; background: var(--surface-2); border-radius: 8px; min-height: 2.4em; border: 1px solid var(--line); }
.pg-console { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 0.82rem; min-height: 3em; white-space: pre-wrap; }
.vars { display: flex; flex-wrap: wrap; gap: 8px; min-height: 58px; align-content: flex-start; }
.varbox { display: flex; flex-direction: column; border: 1.5px solid var(--accent); border-radius: 8px; overflow: hidden; min-width: 92px; background: var(--surface); }
.varbox .vn { font-family: var(--font-mono); font-size: 0.72rem; background: var(--accent); color: var(--accent-ink); padding: 2px 8px; }
.varbox .vv { font-family: var(--font-mono); font-size: 0.98rem; padding: 4px 8px; font-weight: 600; }
.varbox.changed { border-color: var(--hi); box-shadow: 0 0 0 3px var(--hi-soft); }
.varbox.changed .vn { background: var(--hi); color: #241a00; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.tile small { color: var(--muted); font-size: 0.72rem; font-family: var(--font-mono); }
.tile b { font-size: 1.15rem; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.02em; }
.svgwrap { overflow-x: auto; }
.svgwrap svg { display: block; max-width: 100%; height: auto; }
.svgwrap text { font-family: var(--font-ui); fill: var(--muted); }
.cells-row { display: flex; gap: 4px; overflow-x: auto; padding: 18px 2px 20px; }
.lc { flex: none; width: 54px; text-align: center; position: relative; }
.lc .box { border: 1.5px solid var(--line-2); border-radius: 6px; padding: 8px 0; font-family: var(--font-mono); font-size: 0.84rem; background: var(--surface); font-variant-numeric: tabular-nums; }
.lc .ip, .lc .in { position: absolute; left: 0; right: 0; font-size: 0.7rem; font-family: var(--font-mono); color: var(--muted); }
.lc .ip { top: -17px; }
.lc .in { bottom: -18px; }
.lc .lb { font-size: 0.68rem; color: var(--muted); }
.lc.slice .box { background: var(--hi-soft); border-color: var(--hi); }
.lc.pick .box { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.machine { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: stretch; }
.machine .inbox, .machine .outbox { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.machine .outbox b { font-size: 1.9rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; align-self: flex-start; }
.tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); font-weight: 600; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; }
.steps button { border: 1px solid var(--line-2); background: var(--surface); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 0.86rem; font-weight: 500; }
.steps button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.wc-text { width: 100%; min-height: 96px; font: inherit; font-size: 0.9rem; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); resize: vertical; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 36px; gap: 8px; align-items: center; font-size: 0.82rem; }
.hbar code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .tr { height: 12px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar .tr span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.hbar b { font-variant-numeric: tabular-nums; text-align: right; }
details summary { cursor: pointer; font-size: 0.84rem; color: var(--muted); }

/* ---------- Yazar ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #0b3b5c); color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.02em; }
.avatar.xs { width: 22px; height: 22px; font-size: 0.56rem; }
.avatar.sm { width: 32px; height: 32px; font-size: 0.7rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.2rem; box-shadow: 0 0 0 4px var(--accent-soft); }
.sb-author { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 8px; border-radius: var(--r); background: var(--shell-2); border: 1px solid var(--shell-line); color: var(--shell-ink); text-decoration: none; }
.sb-author:hover { border-color: var(--shell-3); background: var(--shell-3); }
.sb-author .avatar { background: linear-gradient(135deg, var(--shell-accent), #1e5f8a); color: var(--shell); }
.sb-au-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sb-au-text small { color: var(--shell-accent); font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.sb-au-text strong { font-size: 0.84rem; }
.sb-au-text span { color: var(--shell-muted); font-size: 0.72rem; }
.byline { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; align-self: flex-start; box-shadow: var(--sh-1); }
.byline:hover { border-color: var(--line-2); }
.byline span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.byline strong { font-size: 0.86rem; }
.byline small { color: var(--muted); font-size: 0.74rem; }
.lesson-by { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.author-card { display: flex; flex-direction: column; gap: 16px; }
.ac-top { display: flex; gap: 16px; align-items: center; }
.ac-top h3 { font-size: 1.2rem; }
.ac-areas { margin-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.ac-text { color: var(--ink-2); line-height: 1.65; max-width: 70ch; }
.ac-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cite-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.cite { font-family: var(--font-read); font-size: 1rem; line-height: 1.6; color: var(--ink); padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; }
.foot-brand { align-items: center; }
.foot-brand > .avatar { color: #fff; }


/* ---------- AI çalışma masası ---------- */
.ex.kind-audit { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
.ex-top { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.ex-wide { display: block; }
.ex-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.kind-audit .badge.kind, .kind-check .badge.kind { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.kind-compare .badge.kind, .kind-interpret .badge.kind { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.kind-prompt .badge.kind, .kind-auditlog .badge.kind { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-line); }
.kind-colab .badge.kind { background: var(--hi-soft); color: var(--warn); border-color: color-mix(in srgb, var(--hi) 35%, transparent); }
.ai-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; gap: 12px; padding: 14px; box-shadow: var(--sh-1); }
.ai-card.compact { padding: 12px; gap: 10px; }
.ai-label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #2dd4bf); }
.msg { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; }
.msg .who { font-size: 0.76rem; font-weight: 700; color: var(--muted); padding-top: 9px; display: inline-flex; align-items: center; gap: 6px; }
.msg.solo { grid-template-columns: 1fr; gap: 6px; }
.msg.solo .who { padding-top: 0; }
.msg .bubble { border-radius: 12px; padding: 10px 14px; font-size: 0.92rem; line-height: 1.6; min-width: 0; }
.msg.user .bubble { background: var(--surface-2); border: 1px solid var(--line); }
.msg.ai .bubble { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ai-badge { display: inline-grid; color: #8b5cf6; }
.ai-badge svg { width: 18px; height: 18px; }
.ai-text p + p { margin-top: 6px; }
.ai-text code, .bubble code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 0.84em; }
.ai-code { background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 8px 0; overflow-x: auto; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; }
.ai-line { display: flex; gap: 0; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; padding: 1px 14px 1px 0; font: inherit; white-space: pre; border-left: 3px solid transparent; }
.ai-line .gut { flex: none; width: 2.6em; text-align: right; padding-right: 12px; color: var(--code-gutter); user-select: none; }
.ai-line code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.ai-code.selectable .ai-line { cursor: pointer; }
.ai-code.selectable .ai-line:hover { background: #18233a; }
.ai-line.sel { background: rgba(232, 163, 23, 0.16); border-left-color: var(--hi); }
.ai-line.right { background: rgba(192, 57, 43, 0.22); border-left-color: #f87171; }
.ai-code .tk-k { color: #c792ea; } .ai-code .tk-s { color: #a5d6a7; } .ai-code .tk-n { color: #f78c6c; } .ai-code .tk-c { color: #6f7f99; font-style: italic; }
.ai-claim { font-size: 0.86rem; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid #8b5cf6; }
.ai-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-col { border-radius: var(--r-lg); transition: box-shadow 0.15s; }
.cmp-col.picked .ai-card { border-color: var(--info); box-shadow: 0 0 0 2px color-mix(in srgb, var(--info) 25%, transparent); }
.cmp-col .msg { grid-template-columns: 1fr; gap: 4px; }
.cmp-col .msg .who { padding-top: 0; }
.choice-row, .reason-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reason-box { flex-direction: column; align-items: stretch; }
.reason-box .opt { padding: 10px 14px; }
.prompt-weak { display: flex; flex-direction: column; gap: 10px; }
.prompt-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.prompt-left { display: flex; flex-direction: column; gap: 8px; }
.lbl { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.prompt-ta, .log-ta { width: 100%; font: inherit; font-size: 0.92rem; line-height: 1.55; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); resize: vertical; }
.prompt-ta:focus, .log-ta:focus, .code-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ck-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ck-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 0.86rem; }
.ck-list li small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 1px; }
.ck-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 1px; }
.ck-list li.ok { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); background: var(--good-soft); }
.ck-list li.ok .ck-mark { border-color: var(--good); background: var(--good); box-shadow: inset 0 0 0 3px var(--good-soft); }
.ck-meta { display: flex; gap: 12px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.ck-auto { font-size: 0.74rem; font-weight: 700; color: var(--good); }
.ck-auto.miss { font-weight: 500; color: var(--muted); }
.audit-steps { margin: 0 0 10px; padding: 8px 12px; border: 1px dashed var(--line, #ccc); border-radius: 8px; font-size: 0.86rem; }
.audit-steps ul { margin: 4px 0 0; padding-left: 4px; list-style: none; }
.audit-steps li { margin: 2px 0; color: var(--muted); }
.audit-steps li.ok { color: var(--good); font-weight: 600; }
.ck-self { display: inline-flex; gap: 5px; align-items: center; font-size: 0.74rem; color: var(--muted); }
.prompt-strong { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.prompt-strong .msg.user .bubble { background: var(--accent-soft); border-color: var(--accent-line); }
.bubble.interp { line-height: 1.85; }
.sent { display: inline; border: 0; background: transparent; padding: 1px 2px; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 4px; border-bottom: 2px dotted var(--line-2); }
.sent:hover { background: var(--surface-2); }
.sent.sel { background: var(--hi-soft); border-bottom-color: var(--hi); }
.sent.bad { background: var(--bad-soft); border-bottom-color: var(--bad); }
.sent.okay { border-bottom-color: color-mix(in srgb, var(--good) 50%, transparent); }
.verdicts { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.verdicts:empty { display: none; }
.verdicts li.bad::marker { color: var(--bad); font-weight: 800; }
.verdicts li.okay::marker { color: var(--good); font-weight: 800; }
.colab-box { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.colab-left, .colab-right { display: flex; flex-direction: column; gap: 10px; }
.btn.colab { align-self: flex-start; background: #1f1f1f; color: #fff; border-color: #1f1f1f; }
.btn.colab:hover { background: #000; }
.colab-logo { display: inline-grid; place-items: center; width: 26px; height: 18px; border-radius: 9px; background: linear-gradient(90deg, #f9ab00 50%, #e37400 50%); color: #1f1f1f; font-size: 0.6rem; font-weight: 900; }
.nb-path { font-size: 0.76rem; color: var(--muted); }
.colab-steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.code-in { flex: 1; min-width: 180px; font-family: var(--font-mono); font-size: 0.9rem; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; }
.log-form { display: flex; flex-direction: column; gap: 14px; }
.log-field { display: flex; flex-direction: column; gap: 6px; }
.log-field label { display: flex; gap: 10px; align-items: flex-start; }
.log-field label strong { display: block; font-size: 0.92rem; }
.log-field label small { display: block; color: var(--muted); font-size: 0.8rem; }
.log-n { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: 0.78rem; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.flow-step { padding: 14px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.flow-step:first-child { border-left: 0; }
.flow-step b { font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.flow-step strong { font-size: 0.98rem; }
.flow-step span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 1180px) {
  .ex.kind-audit { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cmp-grid, .prompt-grid, .colab-box { grid-template-columns: 1fr; }
  .msg { grid-template-columns: 1fr; gap: 4px; }
  .msg .who { padding-top: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(3) { border-left: 0; }
  .flow-step:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.pb-parts { display: flex; flex-direction: column; gap: 8px; }
.pb-part { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); cursor: pointer; font-size: 0.86rem; }
.pb-part:hover { border-color: var(--line-2); }
.pb-part input { margin-top: 3px; accent-color: var(--accent); }
.pb-part small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; line-height: 1.45; }
.pb-out { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.6; min-height: 4em; }
.pb-meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pb-meter span { display: block; height: 100%; width: 0; background: var(--hi); border-radius: 99px; transition: width 0.3s; }
.pb-meter.ok span { background: var(--good); }
.pb-meter-lab { font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.pb-risks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.84rem; }
.pb-risks li { display: flex; gap: 8px; align-items: flex-start; }
.pb-ic { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; margin-top: 1px; }
.pb-risks li.open .pb-ic { background: var(--warn-soft); color: var(--warn); }
.pb-risks li.closed { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.pb-risks li.closed .pb-ic { background: var(--good-soft); color: var(--good); }

.hc-ask { margin: 12px 16px 0; padding: 9px 12px; border-radius: 10px; background: #18233a; font-size: 0.82rem; color: #c9d3e3; display: flex; gap: 8px; }
.hc-ask b { color: #8b97ad; font-weight: 700; }
.hc-code .bad-line { display: inline-block; background: rgba(248, 113, 113, 0.18); box-shadow: inset 3px 0 0 #f87171; padding: 0 6px; margin-left: -6px; border-radius: 3px; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--shell); border-radius: var(--r-lg); overflow: hidden; color: var(--shell-ink); }
.loop-step { position: relative; padding: 22px 22px 22px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--shell-line); }
.loop-step:first-child { border-left: 0; }
.loop-step:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 22px; color: var(--shell-accent); font-weight: 800; z-index: 1; }
.loop-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--shell-3); color: var(--shell-accent); font-weight: 800; font-size: 0.86rem; }
.loop-step strong { font-size: 1.05rem; }
.loop-step p { color: var(--shell-muted); font-size: 0.86rem; line-height: 1.55; }
@media (max-width: 1024px) { .loop { grid-template-columns: 1fr 1fr; } .loop-step:nth-child(3) { border-left: 0; } .loop-step:nth-child(n+3) { border-top: 1px solid var(--shell-line); } .loop-step::after { display: none; } }
@media (max-width: 720px) { .loop { grid-template-columns: 1fr; } .loop-step { border-left: 0; border-top: 1px solid var(--shell-line); } .loop-step:first-child { border-top: 0; } }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
  .ex { grid-template-columns: 1fr; }
  .ex-brief { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-100%); transition: transform 0.25s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.4); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(7, 11, 20, 0.5); z-index: 50; }
  .tb-menu { display: grid; }
  .topbar { padding: 0 20px; }
  .page { padding: 28px 24px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-card { transform: none; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .page { padding: 22px 16px; gap: 24px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .tb-progress { max-width: none; }
  .crumbs { display: none; }
  .pychip .pytxt { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .how-grid { grid-template-columns: 1fr; }
  .sec-head.row, .page-head { flex-direction: column; align-items: flex-start; }
  .steps-nav { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); position: static; }
  .step-tab { border-left: 0; border-top: 1px solid var(--line); padding: 10px 12px; }
  .step-tab:nth-child(even) { border-left: 1px solid var(--line); }
  .step-tab:nth-child(-n+2) { border-top: 0; }
  .step-tab .st-sub { display: none; }
  .concept { padding: 22px 20px; }
  .prose.reading { font-size: 1.04rem; }
  .card { padding: 20px; }
  .path-item { grid-template-columns: 34px minmax(0, 1fr); padding: 12px 16px; }
  .pi-meta { grid-column: 2; }
  .kbd { display: none; }
  .machine { grid-template-columns: 1fr; }
  .q-opts, .q-fb { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ================= Sadeleştirme katmanı (v3) ================= */
:root {
  --shell: var(--surface); --shell-2: var(--surface-2); --shell-3: var(--surface-3);
  --shell-ink: var(--ink); --shell-muted: var(--muted); --shell-line: var(--line); --shell-accent: var(--accent);
}
.sidebar { gap: 14px; }
.sb-lesson { color: var(--ink-2); gap: 9px; padding: 6px 10px; }
.sb-lesson.cur { background: var(--accent-soft); color: var(--accent-strong); }
.sb-lesson.cur::before { display: none; }
.sb-lesson.done { color: var(--muted); }
.sb-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 0.6rem; font-weight: 800; line-height: 1; }
.sb-lesson.part .sb-dot { border-color: var(--accent); background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%); }
.sb-lesson.done .sb-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sb-title { min-width: 0; }
.sb-prog { padding: 4px 10px; display: flex; flex-direction: column; gap: 6px; }
.sb-prog-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.sb-prog-top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sb-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.sb-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.sb-extra { margin-top: 6px; }
.sb-extra > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.sb-extra > summary::-webkit-details-marker { display: none; }
.sb-extra > summary::before { content: "▸"; font-size: 0.7rem; transition: transform .15s; }
.sb-extra[open] > summary::before { transform: rotate(90deg); }
.sb-by { color: var(--muted); text-decoration: none; }
.sb-by:hover { color: var(--accent-strong); }

.theme-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme-btn:hover { background: var(--surface-2); color: var(--ink); }

/* Ana sayfa: tek sütun, sakin */
.hero { grid-template-columns: 1fr; max-width: 760px; gap: 0; padding: 28px 0 4px; }
.hero-meta { color: var(--muted); font-size: 0.88rem; margin: 0; }
.loop { background: var(--surface); border: 1px solid var(--line); }
.loop-n { background: var(--accent-soft); }
.about .card, .cite-card, .how-card { box-shadow: none; }

/* Ders: hafif sekmeler, yapışkan değil */
.steps-nav { position: static; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.step-tab { background: transparent; border-left: 0; padding: 10px 12px 12px; }
.step-tab:hover { background: transparent; }
.step-tab .st-ic { width: 30px; height: 30px; background: transparent; border: 1px solid var(--line); }
.step-tab .st-ic svg { width: 17px; height: 17px; }
.step-tab.on { background: transparent; }
.step-tab.on::after { height: 2px; }
.step-tab.on .st-ic { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-line); }

.ex, .card { box-shadow: none; }

/* ================= Canlı renk katmanı (v4) ================= */
:root {
  --accent: #0d9488; --accent-strong: #0f766e; --accent-soft: #ddf7f2; --accent-line: #7ddccd;
  --c0: #0d9488; --c1: #2563eb; --c2: #7c3aed; --c3: #ea580c; --c4: #db2777;
  --c0-soft: #ddf7f2; --c1-soft: #e3ecff; --c2-soft: #efe7ff; --c3-soft: #ffeddf; --c4-soft: #fde6f1;
  --grad: linear-gradient(100deg, #0d9488 0%, #2563eb 50%, #7c3aed 100%);
  --bg: #f5f7fb;
}
:root[data-theme="dark"] {
  --accent: #2dd4bf; --accent-strong: #5eead4; --accent-ink: #042f2b; --accent-soft: #0d3330; --accent-line: #1d7a6f;
  --c0: #2dd4bf; --c1: #60a5fa; --c2: #a78bfa; --c3: #fb923c; --c4: #f472b6;
  --c0-soft: #0d3330; --c1-soft: #132a4d; --c2-soft: #261b4a; --c3-soft: #3a2010; --c4-soft: #3b1529;
  --grad: linear-gradient(100deg, #2dd4bf 0%, #60a5fa 50%, #c084fc 100%);
  --bg: #0a0e1a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #2dd4bf; --accent-strong: #5eead4; --accent-ink: #042f2b; --accent-soft: #0d3330; --accent-line: #1d7a6f;
    --c0: #2dd4bf; --c1: #60a5fa; --c2: #a78bfa; --c3: #fb923c; --c4: #f472b6;
    --c0-soft: #0d3330; --c1-soft: #132a4d; --c2-soft: #261b4a; --c3-soft: #3a2010; --c4-soft: #3b1529;
    --grad: linear-gradient(100deg, #2dd4bf 0%, #60a5fa 50%, #c084fc 100%);
    --bg: #0a0e1a;
  }
}
.c0 { --c: var(--c0); --cs: var(--c0-soft); } .c1 { --c: var(--c1); --cs: var(--c1-soft); }
.c2 { --c: var(--c2); --cs: var(--c2-soft); } .c3 { --c: var(--c3); --cs: var(--c3-soft); }
.c4 { --c: var(--c4); --cs: var(--c4-soft); }

/* Üst renk şeridi + logo */
.topbar { box-shadow: inset 0 -1px 0 var(--line); border-bottom: 0; }
.main::before { content: ""; display: block; height: 3px; background: var(--grad); }
.sb-logo { color: #fff; background: var(--grad); border-radius: 9px; width: 34px; height: 34px; place-items: center; }
.sb-logo svg { width: 20px; height: 20px; }

/* Kenar çubuğu: bölüm renkleri */
.sb-sec[class*=" c"], .sb-extra .sb-sec { color: var(--c, var(--muted)); }
.sb-lesson.cur { background: var(--cs, var(--accent-soft)); color: var(--c, var(--accent-strong)); }
.sb-lesson.cur .sb-ln { color: var(--c); }
.sb-lesson.part .sb-dot { border-color: var(--c, var(--accent)); background: linear-gradient(90deg, var(--cs) 50%, transparent 50%); }
.sb-lesson.done .sb-dot { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; }
.sb-bar span { background: var(--grad); }
.sb-link.on { background: var(--accent-soft); color: var(--accent-strong); }

/* Ana sayfa */
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--c1) 55%, transparent); }
.btn.primary:hover:not(:disabled) { background: var(--grad); filter: brightness(1.07); }
.loop-step:nth-child(1) { --c: var(--c0); --cs: var(--c0-soft); } .loop-step:nth-child(2) { --c: var(--c1); --cs: var(--c1-soft); }
.loop-step:nth-child(3) { --c: var(--c2); --cs: var(--c2-soft); } .loop-step:nth-child(4) { --c: var(--c3); --cs: var(--c3-soft); }
.loop-step { border-top: 3px solid var(--c); }
.loop-n { background: var(--c); color: #fff; }
.loop-step strong { color: var(--c); }
.loop-step:not(:last-child)::after { color: var(--c); }
.path-sec { border-top: 3px solid var(--c, var(--accent)); }
.path-head { background: color-mix(in srgb, var(--cs, var(--surface-2)) 60%, var(--surface)); }
.path-step { background: var(--c, var(--ink)); color: #fff; }
.path-head h3 { color: var(--c); }
.path-sec .ring-val { stroke: var(--c); }
.path-sec .ring.done .ring-fill { fill: var(--c); }
.byline .avatar, .avatar { background: var(--grad); color: #fff; }

/* Ders: renkli adım sekmeleri */
.step-tab:nth-child(1) { --c: var(--c0); --cs: var(--c0-soft); } .step-tab:nth-child(2) { --c: var(--c1); --cs: var(--c1-soft); }
.step-tab:nth-child(3) { --c: var(--c2); --cs: var(--c2-soft); } .step-tab:nth-child(4) { --c: var(--c3); --cs: var(--c3-soft); }
.step-tab .st-ic { background: var(--cs); color: var(--c); border: 0; }
.step-tab.on::after { background: var(--c); height: 3px; }
.step-tab.on .st-ic { background: var(--c); color: #fff; }
.step-tab.on .st-text strong { color: var(--c); }
.step-tab.ok .st-ic { background: var(--good-soft); color: var(--good); }
.tp-track span, .minibar span { background: var(--grad); }

/* Canlı tür rozetleri */
.ex .badge.kind { gap: 6px; border-color: transparent; background: var(--cs, var(--accent-soft)); color: var(--c, var(--accent-strong)); }
.ex.kind-run { --c: var(--c0); --cs: var(--c0-soft); }
.ex.kind-fill, .ex.kind-colab { --c: var(--c3); --cs: var(--c3-soft); }
.ex.kind-edit, .ex.kind-compare, .ex.kind-interpret { --c: var(--c1); --cs: var(--c1-soft); }
.ex.kind-debug, .ex.kind-audit, .ex.kind-check { --c: var(--c4); --cs: var(--c4-soft); }
.ex.kind-challenge, .ex.kind-prompt, .ex.kind-auditlog { --c: var(--c2); --cs: var(--c2-soft); }
.ex { border-top: 3px solid var(--c, var(--line)); }
.eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }

/* ================= Hero v2 ================= */
.hero.hero-v2 { position: relative; max-width: none; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 52px; align-items: center; padding: 44px 44px 40px; margin-top: 8px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--c2) 13%, transparent), transparent 70%), radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--c0) 12%, transparent), transparent 70%), var(--surface); }
.hero-v2 .hero-text { gap: 18px; }
.hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero-v2 h1 { font-size: clamp(2.2rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.hero-v2 h1 .grad { display: block; }
.hero-v2 .lead { font-size: 1.06rem; line-height: 1.65; color: var(--ink-2); max-width: 36em; margin: 0; }
.hero-stats { display: flex; gap: 0; margin: 4px 0 0; padding: 0; }
.hero-stats > div { padding: 0 22px; border-left: 1px solid var(--line-2); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-stats dd { margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.hero-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); padding: 4px 11px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.hero-chips li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }
.hero-by { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.86rem; text-decoration: none; align-self: flex-start; padding-top: 6px; border-top: 1px solid var(--line); width: 100%; }
.hero-by strong { color: var(--ink); }
.hero-by:hover strong { color: var(--accent-strong); }

.hero-demo { background: var(--code-bg); color: var(--code-ink); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(15, 23, 42, 0.55), 0 0 0 1px rgba(255,255,255,0.06) inset; font-size: 0.86rem; }
.hd-head { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--code-bg-2); color: #8b9ab3; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; }
.hd-dots { display: inline-flex; gap: 6px; }
.hd-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a465c; }
.hd-dots i:nth-child(1) { background: #ff5f57; } .hd-dots i:nth-child(2) { background: #febc2e; } .hd-dots i:nth-child(3) { background: #28c840; }
.hd-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.hd-ask { margin: 0; align-self: flex-end; max-width: 85%; background: #1d2a44; color: #dbe5f5; padding: 8px 12px; border-radius: 12px 12px 4px 12px; font-size: 0.84rem; }
.hd-code { margin: 0; display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.75; background: #0a1020; border-radius: 10px; padding: 10px 0; overflow-x: auto; }
.hd-ln { display: block; padding: 0 14px 0 0; white-space: pre; }
.hd-ln b { display: inline-block; width: 30px; text-align: right; margin-right: 14px; color: #4b5873; font-weight: 400; }
.hd-ln em { color: #a5e3a1; font-style: normal; }
.hd-ln.bad { background: rgba(244, 63, 94, 0.14); box-shadow: inset 3px 0 0 #f43f5e; }
.hd-ln.bad u { text-decoration: none; background: rgba(244, 63, 94, 0.35); color: #fff; border-radius: 3px; padding: 0 3px; }
.hd-flag, .hd-fix { margin: 0; font-size: 0.82rem; line-height: 1.5; padding: 8px 12px; border-radius: 8px; }
.hd-flag { background: rgba(244, 63, 94, 0.12); color: #fecdd3; }
.hd-flag strong { color: #fb7185; }
.hd-fix { background: rgba(45, 212, 191, 0.12); color: #ccfbf1; }
.hd-fix strong { color: #2dd4bf; }
.hd-fix code { font-family: var(--font-mono); font-size: 0.78rem; color: #5eead4; }
.hd-stages { list-style: none; margin: 0; padding: 12px 18px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.hd-stages li { text-align: center; font-size: 0.72rem; font-weight: 700; padding: 6px 4px; border-radius: 7px; color: #8b9ab3; background: rgba(255,255,255,0.04); position: relative; }
.hd-stages li.on { color: #fff; background: var(--c); }
@media (max-width: 1100px) { .hero.hero-v2 { grid-template-columns: 1fr; padding: 32px 28px; } .hero-demo { max-width: 560px; } }
@media (max-width: 720px) { .hero.hero-v2 { padding: 24px 18px; border-radius: 14px; } .hero-stats > div { padding: 0 14px; } }
.hero.hero-v2 { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr); gap: 44px; }
.hero-v2 h1 { font-size: clamp(2rem, 3vw, 2.85rem); }
.hero-demo { border: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 1100px) { .hero.hero-v2 { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; } .hero-demo { max-width: 560px; width: 100%; } }
@media (max-width: 720px) { .hero.hero-v2 { padding: 24px 18px; gap: 28px; } .hero-v2 h1 .grad { display: inline; } .hero-stats dt { font-size: 1.3rem; } .hd-code { font-size: 0.72rem; } }

/* ================= Hero v3: sade, ortalı ================= */
.hero.hero-v3 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: none; margin-top: 8px; padding: 64px 32px 56px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--c1) 9%, transparent), transparent 70%), var(--surface); }
.hero-author { display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); text-align: left; transition: border-color .15s; }
.hero-author:hover { border-color: var(--accent-line); }
.hero-author > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.hero-author strong { font-size: 0.92rem; font-weight: 700; }
.hero-author small { font-size: 0.76rem; color: var(--muted); }
.hero-v3 h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.07; letter-spacing: -0.035em; margin: 0; max-width: 16em; }
.hero-v3 h1 .grad { display: block; }
.hero-v3 .lead { font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); max-width: 40em; margin: 0; }
.hero-v3 .cta-row { justify-content: center; margin-top: 4px; }
.hero-v3 .hero-stats { margin-top: 10px; justify-content: center; }
.hero-v3 .hero-stats > div { text-align: center; padding: 0 28px; }
.hero-v3 .hero-stats > div:first-child { padding-left: 28px; }
.hero-note { margin: 0; font-size: 0.84rem; color: var(--muted); }
@media (max-width: 720px) { .hero.hero-v3 { padding: 36px 18px 32px; gap: 18px; } .hero-v3 h1 .grad { display: inline; } .hero-v3 .hero-stats > div, .hero-v3 .hero-stats > div:first-child { padding: 0 12px; } .hero-v3 .hero-stats dt { font-size: 1.3rem; } }
.hero-v3 h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 18em; }
.hero-v3 h1 .grad { margin-top: 6px; font-size: 0.72em; letter-spacing: -0.02em; }
.hero-eyebrow { margin: 10px 0 -8px; font-size: 0.8rem; }

/* ================= Modül 1 oyun alanları ================= */
.pg-svg { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.pg-svg .pg-frame { fill: none; stroke: var(--line); }
.pg-svg .pg-ref { stroke: var(--muted); stroke-dasharray: 4 4; }
.pg-svg .pg-axis { stroke: var(--line-2); }
.pg-svg .pg-dot { fill: var(--c1); fill-opacity: .55; }
.pg-svg .pg-dot.alt { fill: var(--c0); }
.pg-svg .pg-dot.hot { fill: var(--c4); fill-opacity: 1; }
.pg-svg .pg-lbl { fill: var(--muted); font-size: 11px; font-family: var(--font-sans); }
.pg-svg .pg-mark { stroke-width: 2.5; }
.pg-svg .pg-mark.mean { stroke: var(--c3); }
.pg-svg .pg-mark.med { stroke: var(--c2); }
.pg-check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; cursor: pointer; }
.pg-tablewrap { overflow-x: auto; margin: 10px 0; }
.pg-table { border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.pg-table th, .pg-table td { padding: 5px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pg-table th { font-weight: 700; color: var(--muted); font-size: 0.78rem; }
.pg-table td:first-child, .pg-table th:first-child { text-align: left; }
.pg-table tr.filled td { background: color-mix(in srgb, var(--c3) 14%, transparent); }
.pg-table td.one { color: var(--c1); font-weight: 800; }
.pg-table td.k { color: var(--muted); }
.tile.win b { color: var(--good); }
.sorter-score { font-weight: 700; font-size: 0.88rem; color: var(--muted); margin-bottom: 10px; }
.sorter { display: flex; flex-direction: column; gap: 10px; }
.sorter-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.sorter-row.ok { border-color: color-mix(in srgb, var(--good) 55%, var(--line)); }
.sorter-row.bad { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.sorter-text { margin: 0; font-weight: 600; }
.sorter-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.sorter-btns .chip { cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 99px; padding: 4px 12px; font: inherit; font-size: 0.82rem; font-weight: 600; }
.sorter-btns .chip.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); }
.sorter-why { margin: 0; font-size: 0.86rem; color: var(--ink-2); }
.sorter-row.ok .sorter-why { color: var(--good); }
.sorter-row.bad .sorter-why { color: var(--bad); }

/* ================= Çok modüllü gezinme ================= */
.sb-mods { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow-y: auto; }
.sb-mod { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.88rem; line-height: 1.3; }
.sb-mod:hover { background: var(--surface-2); color: var(--ink); }
.sb-mod.on { color: var(--ink); }
.sb-mod.cur { background: var(--accent-soft); color: var(--accent-strong); }
.sb-mod-n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 0.74rem; font-weight: 800; background: var(--surface-3); color: var(--ink-2); }
.sb-mod.on .sb-mod-n { background: var(--grad); color: #fff; }
.sb-mod-p { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sb-mods > .sb-bar { margin: 0 10px 6px; }
.sb-mods .sb-lessons { padding-left: 6px; margin-bottom: 8px; }

.home-mods { margin-top: 8px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mod-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: 16px; border: 1px solid var(--line); border-top: 3px solid var(--c); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.mod-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateY(-1px); }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-num { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }
.mc-pct { font-size: 0.8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.mod-card h3 { margin: 0; font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1.3; }
.mod-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.55; flex: 1; }
.mc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.mc-bar span { display: block; height: 100%; background: var(--c); }
.mc-go { font-weight: 700; font-size: 0.88rem; color: var(--c); }
.pg-svg { max-width: 680px; }

/* ================= Hero: laboratuvar geneli ================= */
.hero.hero-lab { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr); gap: 48px; align-items: center; max-width: none; margin-top: 8px; padding: 48px 44px; border-radius: 20px; border: 1px solid var(--line); text-align: left;
  background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--c2) 10%, transparent), transparent 70%), radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--c0) 10%, transparent), transparent 70%), var(--surface); }
.hl-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.hero-lab .hero-eyebrow { margin: 4px 0 -6px; }
.hero-lab h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
.hero-lab h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lab .lead { font-size: 1.04rem; line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 40em; }
.hero-lab .cta-row { margin-top: 2px; }
.hero-lab .hero-stats { margin-top: 6px; }
.unit-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 24px 50px -32px rgba(15, 23, 42, 0.35); }
.up-title { margin: 0 0 12px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.unit-panel ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.unit-panel li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 10px 8px; border-radius: 10px; }
.unit-panel li .c0, .unit-panel li.c0 { --c: var(--c0); --cs: var(--c0-soft); }
.up-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--cs); color: var(--c); }
.up-ic svg { width: 19px; height: 19px; }
.unit-panel li strong { display: block; font-size: 0.95rem; color: var(--c); margin-top: 1px; }
.unit-panel li small { display: block; font-size: 0.85rem; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.up-note { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.mc-topics { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 3px; font-size: 0.86rem; color: var(--ink-2); }
.mc-topics li::marker { color: var(--c); }
.page-author { margin-bottom: 18px; }
@media (max-width: 1100px) { .hero.hero-lab { grid-template-columns: minmax(0, 1fr); padding: 34px 28px; gap: 32px; } .unit-panel { max-width: 560px; } }
@media (max-width: 720px) {
  .hero.hero-lab { padding: 26px 18px; border-radius: 14px; }
  .hero-lab h1 { font-size: 1.95rem; }
  .hero-lab .cta-row { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-lab .cta-row .btn { justify-content: center; text-align: center; }
  .hero-lab .hero-stats { flex-wrap: wrap; row-gap: 12px; }
  .hero-lab .hero-stats > div { padding: 0 14px; }
  .hero-lab .hero-stats dt { font-size: 1.3rem; }
}
.page-author { display: inline-flex; width: fit-content; max-width: 100%; }
@media (max-width: 720px) {
  .hero-lab .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 0; width: 100%; }
  .hero-lab .hero-stats > div, .hero-lab .hero-stats > div:first-child { padding: 0 0 0 12px; border-left: 2px solid var(--line); }
}
@media (max-width: 720px) { .page-head .cta-row .btn { white-space: normal; max-width: 100%; text-align: left; } }
.about-grid { grid-template-columns: minmax(0, 1fr) !important; max-width: 820px; }

/* ================= Modül 2 oyun alanları ================= */
.pg-svg .pg-true { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 5 4; }
.pg-svg .pg-fit { fill: none; stroke: var(--c1); stroke-width: 2.4; }
.pg-svg .pg-fit.thin { stroke-width: 1.1; stroke-opacity: .55; }
.pg-svg .pg-line { fill: none; stroke-width: 2.4; }
.pg-svg .pg-line.a { stroke: var(--c0); }
.pg-svg .pg-line.b { stroke: var(--c3); }
.pg-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--ink-2); margin: 4px 0; }
.pg-legend .lg::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.pg-legend .lg.a::before { background: var(--c0); }
.pg-legend .lg.b::before { background: var(--c3); }
.pg-legend .lg.r::before { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 8px); }
.pg-svg.dart { max-width: 300px; }
.pg-svg.dart .ring { fill: none; stroke: var(--line-2); }
.pg-svg.dart .ring.r2 { fill: color-mix(in srgb, var(--c0) 12%, transparent); }
.pg-svg.dart .bull { fill: var(--c4); }
.kf-rounds { display: flex; flex-wrap: wrap; gap: 6px; }
.kf-rounds .chip { cursor: pointer; border: 1px solid var(--line); font: inherit; font-size: 0.8rem; padding: 4px 10px; }
.kf-rounds .chip.on { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-line); }
.kf-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 40px)); gap: 6px; margin: 12px 0; }
.kf-cell { display: grid; place-items: center; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--c1) 16%, var(--surface)); color: var(--ink-2); font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kf-cell.val { background: var(--c3); color: #fff; }
.pg-src { font-size: 0.78rem; color: var(--muted); margin: 6px 0 0; }

/* ================= Zengin kavram anlatımı ================= */
.prose.reading:has(.c-rich) { max-width: none; }
.c-rich { display: flex; flex-direction: column; gap: 30px; }
.c-rich > * + * { margin-top: 0 !important; }
.c-lead { font-size: 1.08rem; line-height: 1.7; color: var(--ink); max-width: 72ch; margin: 0; }
.c-sec { display: flex; flex-direction: column; gap: 14px; }
.c-sec > h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.12rem; letter-spacing: -0.01em; }
.c-n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; background: var(--cs, var(--accent-soft)); color: var(--c, var(--accent-strong)); flex: none; }
.c-sec > p, .c-sec > ul, .c-sec > ol { max-width: 72ch; margin: 0; }
.c-sec > ul, .c-sec > ol { padding-left: 1.25em; }
.c-fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 12px; }
.c-fig figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.c-fig figcaption b { color: var(--ink-2); }
.c-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.c-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.c-card { border: 1px solid var(--line); border-top: 3px solid var(--c, var(--accent)); border-radius: 12px; padding: 14px 14px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.c-card .c-ic { font-size: 1.3rem; line-height: 1; }
.c-card b { font-size: 0.95rem; color: var(--c, var(--ink)); }
.c-card p { margin: 0; font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.c-card .c-f { font-family: var(--font-mono); font-size: 0.82rem; background: var(--surface-2); border-radius: 6px; padding: 4px 8px; color: var(--ink); align-self: flex-start; }
.c-formula { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, var(--c1-soft), var(--surface) 70%); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.c-formula .eq { font-family: "Source Serif 4", Georgia, serif; font-size: 1.35rem; text-align: center; color: var(--ink); }
.c-formula .eq i { font-style: italic; }
.c-formula dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 0.88rem; }
.c-formula dt { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-weight: 600; color: var(--c1); }
.c-formula dd { margin: 0; color: var(--ink-2); }
.c-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.c-table th { background: var(--surface-2); text-align: left; font-weight: 700; color: var(--ink-2); padding: 9px 12px; font-size: 0.8rem; }
.c-table td { padding: 8px 12px; border-top: 1px solid var(--line); }
.c-table td.n, .c-table th.n { text-align: right; }
.c-table tr.hl td { background: color-mix(in srgb, var(--good) 12%, transparent); font-weight: 700; }
.c-table tr.bad td { color: var(--bad); }
.c-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: cs; }
.c-steps li { counter-increment: cs; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.c-steps li::before { content: counter(cs); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c1); color: #fff; font-weight: 800; font-size: 0.8rem; }
.c-steps li p { margin: 0; }
.c-steps code { font-size: 0.82em; }
.c-pit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.c-pit > div { border-radius: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--bad) 30%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, var(--surface)); }
.c-pit .x { display: block; font-weight: 700; color: var(--bad); margin-bottom: 4px; }
.c-pit .ok { display: block; color: var(--good); font-size: 0.88rem; margin-top: 6px; }
.c-pit p { margin: 0; font-size: 0.88rem; color: var(--ink-2); }
.c-sum { border-radius: 14px; padding: 16px 18px; background: var(--grad); color: #fff; }
.c-sum b { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.c-sum ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.c-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; }
.c-link strong { color: var(--ink); }
.c-link a { font-weight: 700; color: var(--accent-strong); text-decoration: none; }
.c-link a:hover { text-decoration: underline; }
.c-analogy { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; border-radius: 14px; padding: 14px 16px; background: var(--hi-soft); }
.c-analogy .big { font-size: 2.2rem; text-align: center; }
.c-analogy p { margin: 0; }
@media (max-width: 860px) { .c-two { grid-template-columns: minmax(0, 1fr); } }

/* Satır içi SVG şekilleri */
svg.cfig { width: 100%; height: auto; display: block; font-family: var(--font-ui); }
svg.cfig .ax { stroke: var(--line-2); stroke-width: 1.2; }
svg.cfig .ax.thick { stroke-width: 2.5; stroke: var(--ink-2); }
svg.cfig .gr { stroke: var(--line); stroke-width: 1; }
svg.cfig .tk { fill: var(--muted); font-size: 11px; }
svg.cfig .lb { fill: var(--ink); font-size: 12.5px; font-weight: 700; }
svg.cfig .lbw { fill: #fff; font-size: 12.5px; font-weight: 700; }
svg.cfig .lg { fill: var(--ink-2); font-size: 11.5px; }
svg.cfig .val { fill: var(--ink-2); font-size: 11.5px; font-weight: 600; }
svg.cfig .ann { fill: var(--ink-2); font-size: 11px; font-style: italic; }
svg.cfig .ann.bad { fill: var(--bad); font-style: normal; font-weight: 600; }
svg.cfig .ann.good { fill: var(--good); font-style: normal; font-weight: 600; }
svg.cfig .num { fill: var(--c1); font-size: 13px; font-weight: 800; }
svg.cfig path, svg.cfig .ref { fill: none; }
svg.cfig .l0 { stroke: var(--c0); stroke-width: 2; }
svg.cfig .l1 { stroke: var(--c1); stroke-width: 2; }
svg.cfig .l2 { stroke: var(--c2); stroke-width: 2; }
svg.cfig .l3 { stroke: var(--c3); stroke-width: 2; }
svg.cfig .thick { stroke-width: 3; }
svg.cfig .thin { stroke-width: 1.1; stroke-opacity: .5; }
svg.cfig .dash { stroke-dasharray: 5 4; }
svg.cfig .l6 { stroke: var(--muted); stroke-width: 1.6; }
svg.cfig .hair { stroke-width: 0.6; stroke-opacity: .7; }
svg.cfig .ref { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
svg.cfig .ref.thick { stroke-width: 2.6; stroke-dasharray: 7 5; stroke: var(--ink); }
svg.cfig .d0 { fill: var(--c0); fill-opacity: .75; } svg.cfig .d0.sm { fill-opacity: .45; }
svg.cfig .d1 { fill: var(--c1); fill-opacity: .7; }
svg.cfig .d3 { fill: var(--c3); }
svg.cfig .d4 { fill: var(--c4); }
svg.cfig .d6 { fill: var(--line-2); }
svg.cfig .bar.b0 { fill: var(--c0); } svg.cfig .bar.b1 { fill: var(--c1); } svg.cfig .bar.b2 { fill: var(--c2); } svg.cfig .bar.b3 { fill: var(--c3); } svg.cfig .bar.b4 { fill: var(--c4); }
svg.cfig .bar.b6 { fill: var(--line-2); }
svg.cfig .box { fill: var(--surface-2); stroke: var(--line); }
svg.cfig .box.soft { fill: var(--surface-2); }
svg.cfig .box.c0f { fill: var(--c0); stroke: none; } svg.cfig .box.c3f { fill: var(--c3); stroke: none; }
svg.cfig .box.c0s { fill: var(--c0-soft); stroke: var(--c0); } svg.cfig .box.c1s { fill: var(--c1-soft); stroke: var(--c1); }
svg.cfig .box.c2s { fill: var(--c2-soft); stroke: var(--c2); } svg.cfig .box.c3s { fill: var(--c3-soft); stroke: var(--c3); }
svg.cfig .box.c4s { fill: var(--c4-soft); stroke: var(--c4); }
svg.cfig .zone.z0 { fill: var(--c0-soft); opacity: .6; } svg.cfig .zone.z3 { fill: var(--c3-soft); opacity: .6; }
svg.cfig .ring { fill: none; stroke: var(--line-2); } svg.cfig .ring.in { fill: var(--c0-soft); }
svg.cfig .leak { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 5 4; }
svg.cfig .ok { stroke: var(--good); stroke-width: 2; }
/* rich concept: tam genişlik adımlar, UI yazı tipi bileşenler */
.c-rich .c-steps, .c-rich .c-steps li, .c-rich .c-steps li p { max-width: none; }
.c-rich ol.c-steps { padding-left: 0; margin-left: 0 !important; }
.c-rich h3, .c-rich .c-card, .c-rich .c-table, .c-rich figcaption, .c-rich .c-formula dl, .c-rich .c-pit, .c-rich .c-sum, .c-rich .c-link { font-family: var(--font-ui); }
.c-rich .c-card p, .c-rich .c-table td, .c-rich .c-pit p { font-size: 0.92rem; line-height: 1.55; }
@media (max-width: 640px) { .c-rich .c-table { display: block; overflow-x: auto; } .c-rich .c-table td, .c-rich .c-table th { min-width: 110px; } .c-rich .c-table td:first-child { min-width: 80px; } }
/* M0/M1 şekil ekleri: oklar, kod metni */
svg.cfig .arr { stroke: var(--ink-2); stroke-width: 1.6; fill: none; }
svg.cfig .arr.bad { stroke: var(--bad); }
svg.cfig .arr.good { stroke: var(--good); }
svg.cfig .arr.dash, svg.cfig .dash { stroke-dasharray: 5 4; }
svg.cfig .ah { fill: var(--ink-2); stroke: none; } svg.cfig .ah.bad { fill: var(--bad); } svg.cfig .ah.good { fill: var(--good); }
svg.cfig .mono { fill: var(--ink); font-family: var(--font-mono); font-size: 12px; }
svg.cfig .mono.bad { fill: var(--bad); font-weight: 700; }
svg.cfig .box.code { fill: var(--code-bg); stroke: var(--line); }
svg.cfig .box.code ~ .mono { fill: var(--code-ink); }
svg.cfig .box.c1f { fill: var(--c1); stroke: none; } svg.cfig .box.c2f { fill: var(--c2); stroke: none; } svg.cfig .box.c4f { fill: var(--c4); stroke: none; }
svg.cfig .d2 { fill: var(--c2); fill-opacity: .75; }
svg.cfig .dh { fill: none; stroke: var(--bad); stroke-width: 1.6; }
svg.cfig .l4 { stroke: var(--c4); stroke-width: 2; }
svg.cfig .bar.b6s { fill: var(--line-2); opacity: .5; }
svg.cfig .ring.deep { fill: var(--c1-soft); stroke: var(--c1); }
.c-rich .c-code { background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 12px 14px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.6; overflow-x: auto; margin: 0; white-space: pre; max-width: none; }
.c-rich .c-code code { background: none; color: inherit; padding: 0; font-size: inherit; }
.c-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-family: var(--font-ui); }
.c-vs > div { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; line-height: 1.5; min-width: 0; }
.c-vs > .bad { border-top: 3px solid var(--bad); } .c-vs > .good { border-top: 3px solid var(--good); }
.c-vs > .bad > b { color: var(--bad); } .c-vs > .good > b { color: var(--good); }
.c-vs p { margin: 0; }
@media (max-width: 640px) { .c-vs { grid-template-columns: 1fr; } }
.c-rich .c-note { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); margin: 0; }
.c-sum code { background: rgba(255,255,255,.22); color: inherit; border: 0; }
.hat { position: relative; display: inline-block; }
.hat::after { content: "^"; position: absolute; left: 50%; transform: translateX(-50%); top: -0.48em; font-size: 0.75em; line-height: 1; }
.c-vs .c-code { white-space: pre-wrap; word-break: break-word; }
/* Modül 3 oyun alanları */
.pg-svg .pg-bar.c0 { fill: var(--c0); } .pg-svg .pg-bar.c1 { fill: var(--c1); } .pg-svg .pg-bar.c2 { fill: var(--c2); }
.pg-svg .pg-bar.c3 { fill: var(--c3); } .pg-svg .pg-bar.c4 { fill: var(--c4); } .pg-svg .pg-bar.c6 { fill: var(--line-2); }
.pg-svg .pg-truemark { stroke: var(--ink); stroke-width: 2.2; }
.pg-svg .pg-region { stroke-width: 1.2; } .pg-svg .pg-region.a { fill: var(--c0-soft); stroke: var(--c0); } .pg-svg .pg-region.b { fill: var(--c3-soft); stroke: var(--c3); }
.pg-svg .pg-contour { fill: none; stroke: var(--line-2); stroke-width: 1.1; } .pg-svg .pg-contour.hot { stroke: var(--bad); stroke-width: 1.8; stroke-dasharray: 5 4; }
.pg-svg .pg-line.c0 { stroke: var(--c0); stroke-width: 2.6; } .pg-svg .pg-line.c1 { stroke: var(--c1); } .pg-svg .pg-line.c2 { stroke: var(--c2); }
.pg-svg .pg-line.c4 { stroke: var(--c4); } .pg-svg .pg-line.c6 { stroke: var(--muted); stroke-width: 1.8; }
.pg-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; font-family: var(--font-ui); }
.pg-checks .pg-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pg-swatch { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.pg-swatch.c0 { background: var(--c0); } .pg-swatch.c1 { background: var(--c1); } .pg-swatch.c2 { background: var(--c2); } .pg-swatch.c4 { background: var(--c4); } .pg-swatch.c6 { background: var(--muted); }
.pg-svg .pg-line.c3 { stroke: var(--c3); } .pg-swatch.c3 { background: var(--c3); }
.pg-svg path.pg-ref { fill: none; }
.tile.warn b { color: var(--c3); }
/* Yükleme çubukları / loading bars */
#bootbar, #loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; background: transparent; }
#bootbar span { position: absolute; top: 0; bottom: 0; width: 35%; background: var(--grad, #2346d8); border-radius: 0 2px 2px 0; animation: bootslide 1.1s ease-in-out infinite; }
@keyframes bootslide { 0% { left: -35%; } 100% { left: 100%; } }
#loadbar { opacity: 0; transition: opacity .25s; }
#loadbar.on { opacity: 1; }
#loadbar span { display: block; height: 100%; width: 0; background: var(--grad, #2346d8); border-radius: 0 2px 2px 0; transition: width .2s ease-out; box-shadow: 0 0 8px rgba(35, 70, 216, .45); }
.loading-page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 40vh; }
.loading-page .load-track { width: min(320px, 70vw); height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.loading-page .load-track > span { display: block; height: 100%; width: 4%; background: var(--grad, var(--c1)); transition: width .2s ease-out; }
.loading-page .load-count { font-family: var(--font-mono); font-size: 0.85em; }
@media (prefers-reduced-motion: reduce) { #bootbar span { animation: none; width: 100%; left: 0; opacity: .5; } }

/* Hesap ve senkron / Account and sync (assets/auth.js, yalnız songurmehmet.com) */
.acct { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 6px; border-bottom: 1px solid var(--shell-line); margin-bottom: 4px; }
.acct-login { border: 1px solid var(--shell-accent); background: transparent; color: var(--shell-ink); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; text-align: center; }
.acct-login:hover { background: var(--shell-accent); color: var(--shell); }
.acct-who { display: flex; align-items: center; gap: 8px; color: var(--shell-ink); font-weight: 600; font-size: 0.82rem; min-width: 0; }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-avatar { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--shell-accent); color: var(--shell); display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; }
.acct-status { color: var(--shell-muted); font-size: 0.72rem; }
.acct-status.bad { color: var(--bad); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.acct-modal { max-width: 460px; }
.acct-modal .btn { width: 100%; justify-content: center; }
.acct-google { display: inline-flex; align-items: center; gap: 10px; }
.g-logo { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; display: grid; place-items: center; font-size: 0.85rem; }
.acct-privacy { font-size: 0.78rem; color: var(--muted) !important; line-height: 1.45; border-top: 1px solid var(--line, rgba(0,0,0,.1)); padding-top: 10px; }
.acct-err { color: var(--bad) !important; font-size: 0.85rem; min-height: 0; margin: 0; }
.acct-err:empty { display: none; }
.acct-input { width: 100%; padding: 10px 12px; border-radius: var(--r, 8px); border: 1px solid var(--line, #ccd); background: var(--surface-2, #fff); color: var(--ink, #111); font: inherit; }
/* Giriş penceresi / Login window */
html.auth-locked, html.auth-locked body { overflow: hidden; }
.auth-gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; overflow-y: auto;
  background: rgba(7, 11, 20, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: gateFade .2s ease-out; }
@keyframes gateFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gateRise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.gate-card { --gate-grad: linear-gradient(120deg, #0d9488 0%, #2563eb 52%, #7c3aed 100%); width: 100%; max-width: 900px; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); background: var(--surface); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(7, 11, 20, 0.55), 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); animation: gateRise .25s ease-out; font-family: var(--font-ui); }
.gate-brand { position: relative; isolation: isolate; color: #fff; padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 28px; background: var(--gate-grad); }
.gate-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.2px); background-size: 18px 18px; mask-image: linear-gradient(160deg, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%); }
.gate-brand::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; z-index: -1; background: rgba(255,255,255,.12); }
.gate-mark { display: flex; align-items: center; gap: 12px; }
.gate-mark b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.gate-mark small { display: block; font-size: 0.78rem; opacity: .85; }
.gate-logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.18); box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset; color: #fff; }
.gate-pitch { display: flex; flex-direction: column; gap: 18px; margin-top: auto; }
.gate-pitch h2 { font-size: 1.55rem; line-height: 1.18; letter-spacing: -0.02em; margin: 0; color: #fff; font-weight: 800; }
.gate-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.gate-feats li { display: flex; gap: 12px; align-items: flex-start; }
.gate-feats b { display: block; font-size: 0.92rem; font-weight: 700; }
.gate-feats small { display: block; font-size: 0.8rem; opacity: .88; line-height: 1.4; margin-top: 1px; }
.gf-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.16); box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; }
.gate-author { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.14); align-self: flex-start; box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset; }
.gate-author:hover { background: rgba(255,255,255,.22); }
.gate-author b { display: block; font-size: 0.82rem; }
.gate-author small { display: block; font-size: 0.72rem; opacity: .85; }
.gate-av { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #2563eb; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; }
.gate-form { display: flex; flex-direction: column; padding: 18px 30px 22px; color: var(--ink); }
.gate-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.gate-x { border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.gate-x:hover { background: var(--surface-2); color: var(--ink); }
.gate-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.gate-lang button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.gate-lang button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.gate-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 0 6px; }
.gate-body h1 { font-size: 1.7rem; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.gate-sub { color: var(--ink-2); margin: 0 0 8px; line-height: 1.5; }
.gate-btns { display: flex; flex-direction: column; gap: 10px; }
.gate-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 18px; border-radius: 12px; font: inherit; font-size: 0.97rem; font-weight: 700; cursor: pointer; transition: transform .1s, box-shadow .15s, border-color .15s, filter .15s; }
.gate-btn:active:not(:disabled) { transform: translateY(1px); }
.gate-btn:disabled { opacity: .7; cursor: progress; }
.gate-btn.busy span:last-child::after { content: " …"; }
.gate-google { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.gate-google:hover:not(:disabled) { border-color: var(--accent-line); box-shadow: 0 4px 14px -6px rgba(14,23,38,.18); }
.gate-g { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; color: #fff; background: var(--gate-grad); }
.gate-email { background: var(--gate-grad); color: #fff; border: 0; box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--c1) 65%, transparent); }
.gate-email:hover:not(:disabled) { filter: brightness(1.07); }
.gate-ic { display: grid; place-items: center; flex: none; }
.gate-new { color: var(--muted); font-size: 0.84rem; margin: 2px 0 6px; text-align: center; }
.gate-kvkk { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.gate-kvkk .gate-ic { color: var(--accent); margin-top: 1px; }
.gate-kvkk p { margin: 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-2); }
.gate-kvkk a { color: var(--accent-strong); font-weight: 650; text-decoration: none; white-space: nowrap; }
.gate-kvkk a:hover { text-decoration: underline; }
.gate-consent { color: var(--muted); font-size: 0.74rem; margin: 2px 0 0; text-align: center; }
.gate-back { align-self: center; margin-top: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.84rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.gate-back:hover { color: var(--accent-strong); background: var(--surface-2); }
.gate-card .acct-err { text-align: center; }
@media (max-width: 760px) {
  .auth-gate { padding: 12px; align-items: start; }
  .gate-card { grid-template-columns: 1fr; border-radius: 18px; }
  .gate-brand { padding: 20px 22px; gap: 14px; }
  .gate-pitch h2 { font-size: 1.2rem; }
  .gate-feats, .gate-author { display: none; }
  .gate-form { padding: 12px 20px 18px; }
  .gate-body h1 { font-size: 1.4rem; }
}
.gate-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.gate-check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.gate-check a { color: var(--accent-strong); font-weight: 650; }
.gate-check.need { border-color: var(--bad); background: var(--bad-soft); }
.modal .gate-check { padding: 0; }

/* Ünite notu / Unit notice (ör. M0 Python önerisi) */
.unit-notice { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 18px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 28%, transparent); }
.un-ic { color: var(--info); flex: none; margin-top: 1px; }
.un-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.un-body strong { color: var(--ink); font-size: 0.98rem; }
.un-body p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 0.93rem; }
.un-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* Modül kilidi / Module lock */
.sb-mod.locked { opacity: .62; }
.sb-mod.locked .sb-mod-n { background: var(--surface-3); color: var(--muted); }
.sb-lock { display: grid; place-items: center; color: var(--muted); }
.mod-card.locked { opacity: .78; }
.mod-card.locked:hover { opacity: 1; }
.mc-lock { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; }
.mod-card.locked .mc-go { color: var(--muted); }
.locked-page .page-head { margin-bottom: 8px; }
.lock-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); max-width: 760px; }
.lock-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.lock-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.lock-body h2 { margin: 0; font-size: 1.3rem; }
.lock-body p { margin: 0; color: var(--ink-2); }
.lock-prog { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.lock-prog small { color: var(--muted); font-weight: 600; }
.lock-missing { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.88rem; color: var(--muted); }
.lock-missing .chip { text-decoration: none; color: var(--accent-strong); }
.lock-actions { margin-top: 4px; }
.lock-note { font-size: 0.82rem; color: var(--muted) !important; }
.lock-coming { margin-top: 26px; max-width: 760px; }
.lock-coming h3 { font-size: 1rem; margin: 0 0 8px; }
.acct-admin { font-size: 0.7rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; align-self: flex-start; }
.q-code { margin: 0 0 10px 34px; padding: 10px 14px; border-radius: 8px; background: var(--code-bg); color: var(--code-ink); font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.5; overflow-x: auto; }
.q-hint { color: var(--ink-2); font-size: 0.9rem; }
.sb-extra-n { margin-left: 6px; font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; }

.CodeMirror .cm-bugline { background: color-mix(in srgb, var(--warn, #e0a100) 18%, transparent); }

/* IDEA destek satırı: altbilginin hemen altında */
.foot-support { flex-basis: 100%; display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.foot-support p { margin: 0; max-width: 60ch; line-height: 1.5; }
.idea-logo { flex: none; line-height: 0; border-radius: 8px; }
.idea-logo img { display: block; height: 56px; width: auto; }
.idea-logo .idea-en { display: none; }
html[lang="en"] .idea-logo .idea-tr { display: none; }
html[lang="en"] .idea-logo .idea-en { display: block; }
:root[data-theme="dark"] .idea-logo { background: #fff; padding: 2px 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .idea-logo { background: #fff; padding: 2px 6px; } }
@media (max-width: 520px) { .foot-support { align-items: flex-start; } .idea-logo img { height: 48px; } }
