/* Yazı tipleri siteden sunulur; dışarıya istek gitmez. -ext dosyaları ğ, ş, İ gibi harfleri taşır. */
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-serif-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-serif-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-400-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plex-mono-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(fonts/plex-sans-400-700-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(fonts/plex-sans-400-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================
   10 Parmak
   Yön: daktilo kâğıdı ve mürekkep. Sakin, kesin, biraz resmî.
   Tek parlak öğe yazma alanı ve klavyedir; geri kalan her şey sessizdir.
   İmza: yanıp sönen yazma imleci (logoda ve yazma alanında, başka yerde değil).
   Ölçüler 4 px ızgarada. İki yazı tipi: arayüz için Plex Sans, metin ve sayılar için Plex Mono.
   Vurgu rengi (sarı) yalnızca sıradaki tuşta ve ana düğmede kullanılır.
   ========================================================== */

@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }

:root {
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-head: var(--font-body);

  --bg: #0d0d0d;
  --surface: #161514;
  --surface-2: #1f1d1c;
  --surface-3: #2a2826;
  --ink: #e9e3db;
  --ink-2: #aea79e;
  --ink-3: #847d76;
  --line: rgba(233, 227, 219, .09);
  --line-2: rgba(233, 227, 219, .18);
  --mark: #f39a4b;
  --mark-ink: #1a1105;
  --mint: #6fcf97;
  --gold: #e6b422;
  --ok: #6fcf97;
  --okbg: rgba(111, 207, 151, .13);
  --bad: #f4655f;
  --badbg: rgba(244, 101, 95, .14);
  /* Eski betiklerin kullandığı adlar: hepsi mürekkebe bağlı, gradyan yok */
  --brand: var(--ink);
  --brand-2: var(--ink);
  --brand-ink: var(--surface);
  --brand-soft: var(--surface-2);
  --brand-glow: transparent;

  /* Parmak bölgeleri: klavyedeki tek çok renkli yer, her renk bir parmak */
  --f0: #4a2f2b; --f1: #4a3a26; --f2: #474120; --f3: #2b4229;
  --f4: #23404a; --f5: #303357; --f6: #402f4f; --f7: #4b2c3f; --f8: #2e2b25;

  --r-key: 6px;
  --r-ctl: 8px;
  --r-card: 12px;
  --r-panel: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
html[data-colors="blue"] { --ok: #2c56d6; --okbg: rgba(44, 86, 214, .12); --bad: #b65300; --badbg: rgba(214, 112, 0, .14); }
html[data-colors="purple"] { --ok: #6d34b0; --okbg: rgba(109, 52, 176, .12); --bad: #8f6200; --badbg: rgba(222, 170, 0, .2); }

html[data-colors="blue"] { --ok: #9bb4ff; --okbg: rgba(155, 180, 255, .14); --bad: #ffb36b; --badbg: rgba(255, 179, 107, .14); }
html[data-colors="purple"] { --ok: #d3a8ff; --okbg: rgba(211, 168, 255, .14); --bad: #ffe07a; --badbg: rgba(255, 224, 122, .14); }

/* ---------- Temel ---------- */

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-body); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 3.6vw, 36px); letter-spacing: -.02em; }
h2 { font-size: 22px; }
h3 { font-size: 16px; letter-spacing: 0; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--surface-3); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.5; }
.container { width: min(100% - 48px, 1120px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.mt { margin-top: 16px; }
[data-reveal] { opacity: 1; transform: none; }
.eyebrow, .blob, .bg-grid, .header-cta, .t-icon, .r-icon, .lvl-dot { display: none !important; }

/* Bağlantılar: ince alt çizgi */
.inline-link, .prose a, .notice a, .source-list a, .form-small a, .account-card p a, .practice-wrap .section p a, .faq a, .fact-list a, .how-list a, .buy-small a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease);
}
.inline-link:hover, .prose a:hover, .notice a:hover, .source-list a:hover, .faq a:hover { text-decoration-color: var(--ink); }

/* ---------- Düğmeler ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease); touch-action: manipulation; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn .icon { width: 16px; height: 16px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-primary { background: var(--mark); border-color: var(--mark); color: var(--mark-ink); }
.btn-primary:hover { background: #f0c800; border-color: #f0c800; }
.btn-ghost { background: transparent; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; background: transparent; border-style: dashed; color: var(--ink-3); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }
.icon-btn .i-volume, .icon-btn[aria-pressed="true"] .i-mute, .icon-btn .i-shrink, body.focus-mode .icon-btn .i-expand { display: none; }
.icon-btn[aria-pressed="true"] .i-volume, body.focus-mode .icon-btn .i-shrink { display: block; }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.hero-actions, .today-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ---------- Üst menü ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.site-header.is-scrolled { border-color: var(--line-2); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo-svg { width: 34px; height: 24px; flex: none; overflow: visible; }
.logo-svg .l-caret { fill: var(--ink); animation: caret-blink 1.15s steps(1) infinite; }
.logo-svg .l-zero { fill: var(--mark); stroke: var(--ink); stroke-width: 6; }
.logo-svg .l-bump { fill: var(--mark-ink); }
.logo-text { font-weight: 500; font-size: 20px; letter-spacing: -.02em; line-height: 1; }
.logo-text small, .logo-mark { display: none; }
@keyframes caret-blink { 55% { opacity: 0; } }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 10px; border-radius: var(--r-ctl); color: var(--ink-2); font-size: 15px; text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn .i-close, .menu-open .menu-btn .i-menu { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.layout-btn, .account-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: transparent; color: var(--ink-2); font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.layout-btn:hover, .account-btn:hover { background: var(--surface-2); color: var(--ink); }
.layout-btn b { font: 500 13px var(--font-mono); color: var(--ink); }
.account-btn { color: var(--ink); font-weight: 500; }
.account-btn .icon { width: 16px; height: 16px; color: var(--mint); }
.account-btn span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Alt bölüm ---------- */

.site-footer { margin-top: 96px; border-top: 1px solid var(--line-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 40px 0 24px; }
.footer-brand { max-width: 400px; }
.footer-brand p { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 24px; max-width: 480px; }
.footer-nav a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 0 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* ---------- Feuille imzası (rozet rengi sabit, şerit site temasına uyar) ---------- */
.fe-imza-serit {
  --fe-zemin: var(--bg);
  --fe-cizgi: var(--line);
  display: flex; justify-content: center;
  padding: 22px 16px 26px;
  background: var(--fe-zemin);
  border-top: 1px solid var(--fe-cizgi);
}
.fe-imza {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 12px 22px 12px 24px;
  border-radius: 999px;
  background: #121110;
  border: 1px solid rgba(244, 238, 231, .55);
  color: #F4EEE7; text-decoration: none;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .2s ease, transform .2s ease;
}
.fe-imza:hover { border-color: #F39A4B; }
.fe-imza:active { transform: scale(.98); }
.fe-imza:focus-visible { outline: 2px solid #F39A4B; outline-offset: 3px; }
.fe-imza__marka { display: inline-flex; align-items: center; gap: 9px; }
.fe-imza__isaret { width: 28px; height: auto; flex: none; }
.fe-imza__marka b { font-size: 19px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.fe-imza__marka i { font-style: normal; color: #F39A4B; }
.fe-imza__ayrac { width: 1px; height: 24px; background: rgba(244, 238, 231, .3); }
.fe-imza__yazi { font-size: 15px; font-weight: 500; color: rgba(244, 238, 231, .88); white-space: nowrap; }
.fe-imza__yazi em { font-style: normal; font-weight: 600; color: #F39A4B; }
.fe-imza__ok { width: 16px; height: 16px; color: rgba(244, 238, 231, .8); flex: none; transition: color .2s ease, transform .2s ease; }
.fe-imza:hover .fe-imza__ok { color: #F39A4B; transform: translate(1px, -1px); }
@media (max-width: 480px) {
  .fe-imza { gap: 12px; padding: 10px 16px 10px 18px; }
  .fe-imza__isaret { width: 22px; }
  .fe-imza__marka b { font-size: 16px; }
  .fe-imza__ayrac { height: 20px; }
  .fe-imza__yazi { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .fe-imza, .fe-imza__ok { transition: none; } }

/* ---------- Ortak bölümler ---------- */

.section { padding-top: 64px; }
.section-head { margin-bottom: 16px; }
.section-head p { margin-top: 4px; color: var(--ink-2); max-width: 640px; }
.page-hero { padding: 48px 0 24px; }
.page-hero .lead { margin-top: 12px; max-width: 600px; color: var(--ink-2); font-size: 17px; }
.page-hero .container:has(> .hero-side) { display: grid; grid-template-columns: 1fr minmax(240px, 360px); column-gap: 48px; align-items: center; }
.page-hero .container:has(> .hero-side) > :not(.hero-side) { grid-column: 1; }
.hero-side { grid-column: 2; grid-row: 1 / span 3; aspect-ratio: 3 / 2; }
.card, .heat-card, .chart-card, .soon-card, .finger-map, .calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.card-pad, .heat-card, .chart-card, .soon-card, .finger-map { padding: 24px; }
.card-title { font-size: 18px; }
.card-note { margin: 4px 0 16px; color: var(--ink-2); font-size: 14px; }
.chip, .best-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); color: var(--ink-2); font: 400 13px var(--font-mono); }
.best-chip .icon { width: 16px; height: 16px; color: var(--ink-3); }
.notice { display: flex; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink-2); font-size: 14px; }
.notice b { color: var(--ink); font-weight: 500; }
.notice .icon { margin-top: 2px; color: var(--ink-3); }
.source-list { display: grid; gap: 4px; margin: 12px 0 0; padding-left: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--ink); color: var(--bg); font-size: 14px; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-card); background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.photo figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 4px; background: rgba(22, 21, 19, .6); color: #efebe3; font: 400 12px var(--font-mono); }
.wide-photo { height: clamp(180px, 24vw, 300px); margin-bottom: 24px; }
.home-photo { margin: 32px 0 0; height: clamp(200px, 28vw, 360px); background: #0b0a09; }
.home-photo img { object-position: center 62%; }

/* Çizgili listeler: adımlar, bilgi satırları, bağlantı satırları */
.steps-row, .fact-list, .how-list, .posture-list, .link-rows, .text-rows, .lesson-rows, .buy-list, .history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.step, .fact-list li, .how-list li, .posture-list li, .buy-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.step { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.step h3, .fact-list b, .how-list b, .posture-list b { color: var(--ink); font-weight: 500; }
.fact-list li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline; }
.fact-list b { font: 500 15px var(--font-mono); }
.how-list, .posture-list { counter-reset: n; }
.how-list li, .posture-list li { position: relative; padding-left: 36px; counter-increment: n; }
.how-list li::before, .posture-list li::before { content: counter(n); position: absolute; left: 0; top: 12px; width: 20px; color: var(--ink-3); font: 400 13px/1.85 var(--font-mono); text-align: right; }
.link-rows a, .text-rows a, .lesson-rows a { display: grid; align-items: baseline; gap: 16px; min-height: 48px; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .15s var(--ease); }
.link-rows a:hover, .text-rows a:hover, .lesson-rows a:hover { background: var(--surface-2); }
.link-rows a { grid-template-columns: 260px 1fr 20px; }
.link-rows b { font-weight: 500; }
.link-rows span, .text-rows .t-start { color: var(--ink-2); font-size: 15px; }
.link-rows .icon { align-self: center; color: var(--ink-3); }
.text-rows a { grid-template-columns: 32px 200px 1fr auto; }
.text-rows b, .lesson-rows b { font-weight: 500; }
.text-rows .t-start { font: 400 13px var(--font-mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-rows a { grid-template-columns: 32px 1fr auto; align-items: center; }
.l-no { color: var(--ink-3); font: 400 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.l-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font: 400 13px var(--font-mono); }
.l-status .icon { width: 14px; height: 14px; }
.l-status.is-done { color: var(--mint); }
.lesson-rows .is-locked a { color: var(--ink-3); }
.lesson-rows .is-locked b { font-weight: 400; }

.faq { display: grid; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font: 400 18px/1.3 var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; max-width: 720px; color: var(--ink-2); font-size: 15px; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-2); }
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.data-table th { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); font-weight: 400; font-size: 13px; text-align: left; }
.data-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.data-table td:first-child { color: var(--ink); white-space: nowrap; }
.data-table td:first-child b { font-weight: 500; }
.data-table td:nth-child(2) { color: var(--ink); font: 400 14px/1.7 var(--font-mono); white-space: nowrap; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.rule { padding: 16px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule b.big { display: block; font: 500 22px/1.3 var(--font-mono); letter-spacing: -.02em; }
.rule h3 { margin-top: 4px; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.rule p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.score-bars { display: grid; gap: 8px; }
.score-bar { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: baseline; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; isolation: isolate; }
.score-bar::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--w); background: var(--surface-2); }
.score-bar b { font: 500 22px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.score-bar span { font-weight: 500; }
.score-bar small { grid-column: 2; color: var(--ink-2); font-size: 14px; }
.prose > * { max-width: 720px; }
.prose h2 { margin-top: 32px; }
.prose p, .prose ul { margin-top: 8px; color: var(--ink-2); }
.prose ul { display: grid; gap: 4px; padding-left: 20px; }
.prose .updated { color: var(--ink-3); font-size: 14px; }
.notfound { padding: 96px 0 32px; }
.notfound .code { color: var(--ink-3); font: 400 16px var(--font-mono); }
.notfound h1 { margin-top: 8px; }
.notfound p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Segment seçici, anahtar ---------- */

.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: transparent; }
.seg button { position: relative; z-index: 1; min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; cursor: pointer; transition: color .15s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.seg button:disabled { opacity: .5; cursor: default; }
.seg-pill { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 6px; background: var(--surface-3); transition: transform .2s var(--ease), width .2s var(--ease), height .2s var(--ease); }
.switch { position: relative; flex: none; width: 44px; height: 24px; border: 0; border-radius: 99px; background: var(--surface-3); cursor: pointer; transition: background-color .15s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: transform .15s var(--ease); }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.swatches { display: flex; gap: 8px; }
.swatch { display: flex; width: 48px; height: 28px; padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: none; cursor: pointer; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch i { flex: 1; }

/* ---------- Ekran klavyesi: sayfanın renkli olan tek yeri ---------- */

.kb { --kh: 44px; --kg: 4px; display: grid; gap: var(--kg); padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface-2); user-select: none; }
.kb-row { display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); }
.key { position: relative; display: grid; place-items: center; height: var(--kh); margin: 0 calc(var(--kg) / 2); border: 1px solid var(--line-2); border-radius: var(--r-key); background: var(--surface); color: var(--ink); font: 500 14px/1 var(--font-mono); transition: transform .08s var(--ease), background-color .15s var(--ease); }
.key span { position: relative; z-index: 1; }
.key.mod { background: transparent; color: var(--ink-3); font: 400 11px/1 var(--font-body); overflow: hidden; }
.key.enter-top { height: calc(var(--kh) + var(--kg) + 1px); border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; z-index: 1; }
.key.enter-bottom { height: calc(var(--kh) + var(--kg) + 1px); margin-top: calc(-1 * var(--kg) - 1px); border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.key.bump::after { content: ""; position: absolute; bottom: 6px; width: 10px; height: 2px; border-radius: 1px; background: currentColor; opacity: .5; }
.kb.finger-colors .key[data-finger="0"] { background: var(--f0); }
.kb.finger-colors .key[data-finger="1"] { background: var(--f1); }
.kb.finger-colors .key[data-finger="2"] { background: var(--f2); }
.kb.finger-colors .key[data-finger="3"] { background: var(--f3); }
.kb.finger-colors .key[data-finger="4"] { background: var(--f4); }
.kb.finger-colors .key[data-finger="5"] { background: var(--f5); }
.kb.finger-colors .key[data-finger="6"] { background: var(--f6); }
.kb.finger-colors .key[data-finger="7"] { background: var(--f7); }
.kb.finger-colors .key[data-finger="8"] { background: var(--f8); }
.key.is-next { background: var(--mark) !important; border-color: var(--mark-ink); color: var(--mark-ink); }
.key.is-pressed { transform: translateY(1px); }
.key.is-wrong { background: var(--bad) !important; border-color: var(--bad); color: #fff; }
.key.is-dim { opacity: .3; }
.key.is-focus { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 2; }
.kb-compact { --kh: 32px; padding: 8px; }
.kb-compact .key { font-size: 12px; }
.kb-compact .key.mod { font-size: 9px; }
.f-0 { background: var(--f0); } .f-1 { background: var(--f1); } .f-2 { background: var(--f2); } .f-3 { background: var(--f3); }
.f-4 { background: var(--f4); } .f-5 { background: var(--f5); } .f-6 { background: var(--f6); } .f-7 { background: var(--f7); } .f-8 { background: var(--f8); }

/* ---------- Yazma alanı ---------- */

.practice-wrap, .lesson-wrap, .account-wrap { padding-top: 32px; }
.practice-head, .lesson-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.practice-head p { margin-top: 4px; color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.toolbar .group { display: flex; align-items: center; gap: 8px; }
.toolbar .group-label { color: var(--ink-3); font-size: 14px; }
.toolbar .tools { display: flex; gap: 8px; margin-left: auto; }
.live-row { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.ring-card, .live-stat { display: flex; flex-direction: column; justify-content: center; padding: 12px 20px; border-left: 1px solid var(--line); }
.ring-card { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; border-left: 0; }
.ring { width: 36px; height: 36px; }
.ring svg { width: 36px; height: 36px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--surface-3); }
.ring .bar { stroke: var(--ink); transition: stroke-dashoffset .25s linear; }
.ring-card.is-low .ring .bar { stroke: var(--bad); }
.ring-time, .live-stat b { font: 500 22px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ring-card.is-low .ring-time { color: var(--bad); }
.ring-label, .live-stat small { color: var(--ink-3); font-size: 13px; }
.live-stat b em { margin-left: 4px; color: var(--ink-3); font: 400 13px var(--font-body); letter-spacing: 0; }
.target-track { height: 4px; margin-top: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.target-track span { display: block; width: 0; height: 100%; background: var(--ink); transition: transform .2s var(--ease); }
.target-card.is-passed b { color: var(--mint); }
.target-card.is-passed .target-track span { background: var(--mint); }

.stage { padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--surface); transition: border-color .15s var(--ease); }
.stage.is-focused { border-color: var(--ink); }
.stage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.stage-which, .drill-live { color: var(--ink-3); font: 400 13px var(--font-mono); }
.drill-live b { color: var(--ink); font-weight: 500; }
.stage-progress { flex: 1; max-width: 200px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.stage-progress span { display: block; width: 0; height: 100%; background: var(--ink); }
.text-window { --lh: 2em; position: relative; height: calc(var(--lh) * 3); overflow: hidden; font: 400 24px var(--font-mono); line-height: var(--lh); cursor: text; }
.text-flow { position: relative; color: var(--ink-3); white-space: pre-wrap; word-break: normal; overflow-wrap: normal; transition: transform .25s var(--ease); }
.text-flow .ch { border-radius: 2px; }
.text-flow .ch.ok { color: var(--ink); }
html[data-colors="blue"] .text-flow .ch.ok, html[data-colors="purple"] .text-flow .ch.ok { color: var(--ok); }
.text-flow .ch.bad { color: var(--bad); background: var(--badbg); }
.caret, .drill-caret { position: absolute; left: 0; top: 0; width: 2px; height: 1.3em; background: var(--ink); pointer-events: none; transition: transform .08s linear; }
.caret.idle, .drill-caret { animation: caret-blink 1.15s steps(1) infinite; }
.text-window.no-focus .caret { opacity: 0; }
.focus-hint { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); font: 500 15px var(--font-body); opacity: 0; pointer-events: none; transition: opacity .15s var(--ease); }
.focus-hint span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); }
.text-window.no-focus .focus-hint { opacity: 1; }
.typing-input, .drill-input { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; font-size: 16px; opacity: 0; resize: none; caret-color: transparent; cursor: text; }
.stage-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.guide-line { display: flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ink-2); font-size: 15px; }
.guide-line .key-badge { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--mark-ink); border-radius: var(--r-key); background: var(--mark); color: var(--mark-ink); font: 500 15px var(--font-mono); }
.guide-line .finger-dot { width: 12px; height: 12px; border: 1px solid var(--line-2); border-radius: 50%; }
.guide-line.warn { color: var(--bad); }
.kbd-hints { display: flex; gap: 16px; color: var(--ink-3); font-size: 13px; }
kbd { padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--ink-2); font: 400 12px var(--font-mono); }
.kb-wrap { margin-top: 16px; }
.finger-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 12px; color: var(--ink-3); font-size: 13px; }
.finger-legend span { display: inline-flex; align-items: center; gap: 6px; }
.finger-legend i { width: 10px; height: 10px; border: 1px solid var(--line-2); border-radius: 50%; }
.finger-legend span.active { color: var(--ink); font-weight: 500; }
.exam-banner { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.exam-banner b { color: var(--ink-2); font-weight: 500; }
.side-cards, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-top: 16px; }
.two-col { grid-template-columns: 1.4fr 1fr; }
.two-col > div { display: grid; gap: 16px; }
.side-cards h3 { margin-top: 4px; font-size: 18px; }
.side-cards p, .side-cards .letter-chips { margin-top: 8px; }
.side-cards .btn { margin-top: 16px; }
.today-phase { color: var(--ink-3); font-size: 13px; }
.empty-note { color: var(--ink-3); font-size: 14px; }
body.focus-mode .site-header, body.focus-mode .site-footer, body.focus-mode .practice-head, body.focus-mode .below-stage, body.focus-mode .practice-wrap > .section { display: none; }

/* ---------- Pencereler ve sonuç ---------- */

dialog { width: 100%; max-width: min(100% - 32px, 680px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(22, 21, 19, .55); }
dialog[open] { animation: rise .2s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.sheet { position: relative; max-height: calc(100dvh - 32px); padding: 32px; overflow: auto; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--surface); }
.sheet-close { position: absolute; top: 16px; right: 16px; }
.sheet h2 { padding-right: 48px; font-size: 22px; }
.sheet .sub { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 24px; }
.result-big b { display: block; font: 500 64px/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.result-big small { color: var(--ink-3); font-size: 14px; }
.level-tag, .record-tag, .badge-soon { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; color: var(--ink-2); font: 400 13px var(--font-mono); }
.level-tag .icon, .record-tag .icon, .badge-soon .icon { width: 14px; height: 14px; }
.level-tag.is-pass { color: var(--mint); }
.level-tag.is-fail { color: var(--bad); }
.result-advice { margin-top: 8px; color: var(--ink-2); }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.result-grid div { padding: 12px 16px; border-left: 1px solid var(--line); }
.result-grid div:first-child { border-left: 0; }
.result-grid small { display: block; color: var(--ink-3); font-size: 13px; }
.result-grid b { font: 500 18px/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.result-block { margin-top: 24px; }
.result-block h3 { margin-bottom: 8px; font-size: 14px; color: var(--ink-3); font-weight: 400; }
.result-note { margin-top: 12px; color: var(--ink-3); font-size: 13px; }
.letter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.letter-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-radius: 6px; background: var(--badbg); color: var(--bad); }
.letter-chip b { font: 500 16px var(--font-mono); }
.letter-chip small { font-size: 12px; }
.wrong-words { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font: 400 14px var(--font-mono); color: var(--ink-2); }
.wrong-words s { color: var(--bad); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.share-row > span { margin-right: auto; color: var(--ink-3); font-size: 14px; }
.settings-list { display: grid; margin-top: 16px; border-top: 1px solid var(--line-2); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting b { display: block; font-weight: 500; font-size: 15px; }
.setting small { display: block; color: var(--ink-3); font-size: 13px; }
.custom-area { width: 100%; min-height: 160px; margin-top: 16px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--bg); font: 400 15px/1.6 var(--font-body); resize: vertical; }
.confetti { position: fixed; z-index: 300; top: 0; left: 0; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; }

/* Klavye düzeni seçimi */
.layout-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.layout-choices button { display: block; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--bg); text-align: left; cursor: pointer; transition: border-color .15s var(--ease); }
.layout-choices button:hover, .layout-choices button[aria-pressed="true"] { border-color: var(--ink); }
.layout-choices b { display: block; font-weight: 500; font-size: 18px; }
.layout-choices span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.layout-choices.small { gap: 8px; margin-top: 0; }
.layout-choices.small button { padding: 12px; }
.layout-choices.small b { font-size: 15px; }
.layout-kb { margin-top: 12px; pointer-events: none; }
.layout-kb.kb { --kh: 20px; --kg: 2px; padding: 4px; border-radius: 8px; }
.layout-kb .key { border-radius: 3px; font-size: 8px; }
.layout-kb .key.mod span { display: none; }
.layout-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

/* ---------- Program ---------- */

.program-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 24px; }
.big-ring { position: relative; width: 140px; height: 140px; }
.big-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring circle { fill: none; stroke-width: 12; }
.big-ring .track { stroke: var(--surface-3); }
.big-ring .bar { stroke: var(--ink); transition: stroke-dashoffset .6s var(--ease); }
.big-ring .center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.big-ring .center b { font: 500 36px/1 var(--font-mono); }
.big-ring .center small { color: var(--ink-3); font-size: 12px; max-width: 80px; }
.today-title { margin-top: 4px; font-size: 22px; }
.today-task { margin-top: 8px; max-width: 560px; color: var(--ink-2); }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.phase { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.phase.current { border-color: var(--ink); }
.phase small { color: var(--ink-3); font: 400 13px var(--font-mono); }
.phase h3 { margin-top: 4px; }
.phase .bar { height: 4px; margin-top: 12px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.phase .bar span { display: block; width: 0; height: 100%; background: var(--ink); }
.days { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.day { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-3); font: 400 15px var(--font-mono); cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.day:hover { border-color: var(--line-2); }
.day.done { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.day.today { border: 1px dashed var(--ink); color: var(--ink); }
.day.selected { outline: 2px solid var(--ink); outline-offset: 2px; }
.day-detail { min-height: 72px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.day-detail b { display: block; color: var(--ink); font-weight: 500; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.stat-tile { padding: 16px 20px; border-left: 1px solid var(--line); }
.stat-tile:first-child { border-left: 0; }
.stat-tile .icon { display: none; }
.stat-tile b { display: block; font: 500 28px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-tile span { color: var(--ink-3); font-size: 13px; }
.stats-row { margin-top: 16px; }
.chart-card .head, .soon-card .head, .finger-map .controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: 240px; margin-top: 16px; overflow: visible; }
.chart-svg .grid line { stroke: var(--line); }
.chart-svg .grid text, .chart-svg .xl text { fill: var(--ink-3); font: 400 11px var(--font-mono); }
.chart-svg .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .area { fill: var(--surface-2); }
.chart-svg .pt { fill: var(--surface); stroke: var(--ink); stroke-width: 2; cursor: pointer; }
.chart-tip { position: absolute; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font: 400 12px var(--font-mono); white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s var(--ease); }
.chart-tip.on { opacity: 1; }
.empty { display: grid; place-items: center; gap: 12px; padding: 40px 16px; color: var(--ink-3); text-align: center; }
.empty .icon { width: 24px; height: 24px; }
.history { margin-top: 16px; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.history b { color: var(--ink); font: 500 14px var(--font-mono); }
.heat .key[data-heat] { background: color-mix(in srgb, var(--bad) calc(var(--heat) * 100%), var(--surface)) !important; }
.heat .key[data-heat].hot { color: #fff; }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-3); font-size: 12px; }
.heat-legend i { width: 96px; height: 4px; border-radius: 99px; background: var(--bad); opacity: .6; }
.soon-card .rows { display: grid; gap: 8px; margin-top: 16px; }
.soon-card .rows div { display: flex; align-items: center; gap: 12px; }
.soon-card .rows i { height: 8px; border-radius: 99px; background: var(--surface-3); }
.soon-card .rank { width: 20px; color: var(--ink-3); font: 400 13px var(--font-mono); }
.reset-row { margin-top: 24px; }

/* ---------- Rehber ---------- */

.finger-buttons { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin-top: 16px; }
.finger-buttons button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: transparent; color: var(--ink-2); font-size: 12px; cursor: pointer; transition: border-color .15s var(--ease); }
.finger-buttons button:hover, .finger-buttons button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.finger-buttons i { width: 20px; height: 28px; border: 1px solid var(--line-2); border-radius: 10px 10px 6px 6px; }
.finger-buttons button:nth-child(1) i, .finger-buttons button:nth-child(8) i { height: 20px; }
.finger-buttons button:nth-child(3) i, .finger-buttons button:nth-child(6) i { height: 32px; }
.finger-buttons button:nth-child(9) i { width: 28px; height: 16px; }
.finger-info { min-height: 48px; margin-top: 12px; color: var(--ink-2); }
.formula-grid, .tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.formula, .tip { padding: 16px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.formula small { color: var(--ink-3); font-size: 13px; }
.formula h3, .tip h3 { margin-top: 4px; }
.formula .eq { margin-top: 12px; color: var(--ink); font: 400 13px/1.5 var(--font-mono); }
.formula p, .tip p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.calc { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-top: 16px; padding: 24px; }
.calc label { display: block; font-size: 14px; }
.calc output { float: right; font: 500 14px var(--font-mono); }
.calc input[type="range"] { width: 100%; margin: 8px 0 16px; accent-color: var(--ink); }
.calc-result { min-width: 180px; padding: 16px 24px; border-left: 1px solid var(--line); text-align: center; }
.calc-result b { display: block; font: 500 48px/1 var(--font-mono); letter-spacing: -.04em; }
.calc-result span, .calc-result em { display: block; color: var(--ink-3); font-size: 13px; font-style: normal; }
.scale { display: grid; border-top: 1px solid var(--line-2); }
.scale-row { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.scale-row .rng { font: 500 15px var(--font-mono); }
.scale-row h3 { font-size: 15px; }
.scale-row p { color: var(--ink-2); font-size: 14px; }
.scale-row.you h3::after { content: " · senin seviyen"; color: var(--mint); font-weight: 400; }
.scale-row .you-tag, .scale-meter { display: none; }

/* ---------- Kurs ve ders ---------- */

.course-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; color: var(--ink-2); font: 400 13px var(--font-mono); }
.course-progress .btn { font-family: var(--font-body); }
.course-track { width: 200px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.course-track span { display: block; width: 0; height: 100%; background: var(--ink); }
.course-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; margin-top: 24px; }
.unit { margin-bottom: 40px; }
.unit h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 18px; }
.unit h2 span { color: var(--ink-3); font: 400 13px var(--font-mono); }
.buy-box { position: sticky; top: 84px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--surface); }
.buy-box h2 { font-size: 18px; }
.buy-box p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.buy-list { margin: 16px 0; }
.buy-list li { padding: 8px 0; font-size: 14px; }
.buy-box .btn { width: 100%; }
.code-form { margin-top: 16px; }
.code-form label, .account-form label, .field-label, .account-danger label { display: block; margin: 16px 0 4px; font-size: 14px; font-weight: 500; }
.code-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code-form input, .account-form input, .account-danger input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--bg); font-size: 16px; }
.code-form input { font: 400 15px var(--font-mono); text-transform: uppercase; }
.code-form input:focus, .account-form input:focus, .account-danger input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.code-form .btn { width: auto; }
.code-note, .form-note { min-height: 20px; margin-top: 8px; color: var(--bad) !important; font-size: 13px !important; }
.buy-small, .form-small { margin-top: 8px; color: var(--ink-3) !important; font-size: 13px !important; }
.lesson-no { color: var(--ink-3); font: 400 13px var(--font-mono); }
.lesson-head h1 { margin-top: 4px; }
.lesson-tools { display: flex; align-items: center; gap: 8px; }
.lesson-about { max-width: 720px; margin: 0 0 16px; color: var(--ink-2); }
.lesson-tip { display: flex; gap: 12px; max-width: 720px; margin: 0 0 24px; padding-left: 12px; border-left: 2px solid var(--line-2); color: var(--ink-2); font-size: 15px; }
.lesson-tip b { flex: none; color: var(--ink-3); font-weight: 400; }
.posture { max-width: 720px; margin: 0 0 24px; }
.posture h2 { margin-bottom: 8px; font-size: 18px; }
.drill-window { position: relative; margin: 8px 0; font: 400 26px/2 var(--font-mono); cursor: text; }
.drill-window .text-flow { transform: none !important; overflow-wrap: break-word; }
.drill-result { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); }
.drill-result > div { flex: 1; min-width: 220px; }
.drill-result b { display: block; font: 500 15px var(--font-mono); }
.drill-result span { color: var(--ink-2); font-size: 14px; }
.drill-result.is-pass b { color: var(--mint); }
.drill-result.is-fail b { color: var(--bad); }
.lesson-end { margin-top: 32px; padding: 32px 0; border-top: 1px solid var(--line-2); }
.lesson-end p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Hesap ---------- */

.account-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.account-card { padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--surface); }
.account-card h1 { margin: 4px 0 16px; font-size: 28px; }
.account-tabs { display: grid; width: 100%; margin-bottom: 20px; }
.account-form small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.account-form .btn { width: 100%; margin-top: 16px; }
.form-warn { margin-top: 16px; padding-left: 12px; border-left: 2px solid var(--line-2); color: var(--ink-2); font-size: 14px; }
.form-warn b { color: var(--ink); font-weight: 500; }
.account-sync { color: var(--ink-2); margin-bottom: 16px; }
.account-danger { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.account-danger summary { color: var(--ink-3); font-size: 14px; cursor: pointer; }
.account-danger p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.account-danger .btn { margin-top: 8px; color: var(--bad); }
.account-side .photo { aspect-ratio: 16 / 9; margin-bottom: 24px; }
.account-side h2 { margin-bottom: 8px; font-size: 18px; }

/* ---------- Duyarlı ---------- */

@media (max-width: 1000px) {
  .nav { position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line-2); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s var(--ease), transform .15s var(--ease); }
  .nav a { padding: 12px 8px; font-size: 16px; }
  .menu-open .nav { opacity: 1; pointer-events: auto; transform: none; }
  .menu-btn { display: inline-grid; }
  .course-layout, .account-grid, .two-col, .side-cards { grid-template-columns: 1fr; }
  .buy-box { position: static; order: -1; }
  .page-hero .container:has(> .hero-side) { grid-template-columns: 1fr; row-gap: 24px; }
  .hero-side { grid-column: 1; grid-row: auto; }
  .rule-grid, .formula-grid, .tips-grid, .phases { grid-template-columns: 1fr 1fr; }
  .finger-buttons { grid-template-columns: repeat(5, 1fr); }
  .live-row { grid-template-columns: 1fr 1fr; }
  .live-row > :nth-child(3) { border-left: 0; }
  .live-row > :nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .stat-tile:nth-child(3) { border-left: 0; }
  .stat-tile:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .container { width: min(100% - 32px, 1120px); }
  .section { padding-top: 48px; }
  .page-hero { padding-top: 32px; }
  .step, .fact-list li { grid-template-columns: 1fr; gap: 4px; }
  .link-rows a { grid-template-columns: 1fr 20px; gap: 4px 12px; }
  .link-rows span { grid-column: 1; grid-row: 2; }
  .link-rows .icon { grid-row: 1 / span 2; }
  .text-rows a { grid-template-columns: 32px 1fr auto; }
  .text-rows .t-start { display: none; }
  .rule-grid, .formula-grid, .tips-grid, .phases, .layout-choices { grid-template-columns: 1fr; }
  .toolbar .group { width: 100%; }
  .toolbar .seg { width: 100%; }
  .toolbar .group-label { display: none; }
  .toolbar .tools { margin-left: 0; }
  .stage { padding: 16px; }
  .text-window { font-size: 18px; }
  .drill-window { font-size: 19px; }
  .kbd-hints { display: none; }
  .kb { --kh: 28px; --kg: 2px; padding: 6px; }
  .key { border-radius: 4px; font-size: 11px; }
  .key.mod span { display: none; }
  .sheet { padding: 24px 16px; }
  .result-hero { grid-template-columns: 1fr; gap: 12px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-grid div:nth-child(3) { border-left: 0; }
  .result-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .program-hero { grid-template-columns: 1fr; justify-items: start; }
  .days { grid-template-columns: repeat(6, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; border-top: 1px solid var(--line); }
  .scale-row { grid-template-columns: 1fr; gap: 0; }
  .finger-buttons { grid-template-columns: repeat(3, 1fr); }
  .account-btn span { max-width: 64px; }
  .layout-btn { padding: 0 8px; }
  .course-track { width: 100%; }
}

/* ---------- Kullanım düzeltmeleri ---------- */

/* Klavye sorusu: ekranı kapatmayan ince şerit */
.layout-bar { border-bottom: 1px solid var(--line-2); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.layout-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; }
.layout-bar b { color: var(--ink); font-weight: 500; }
.layout-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Ana sayfa: nereden başlamalı */
.start-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.start-strip a { display: block; padding: 12px 20px; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .15s var(--ease); }
.start-strip a:first-child { border-left: 0; }
.start-strip a:hover { background: var(--surface-2); }
.start-strip b { display: block; font-weight: 500; font-size: 15px; }
.start-strip span { display: block; color: var(--ink-2); font-size: 13px; }
body.focus-mode .start-strip { display: none; }

/* Kurs: yöntem açıklaması kapalı gelir */
.how-details { margin-bottom: 32px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.how-details summary { display: flex; justify-content: space-between; padding: 12px 20px; font-weight: 500; cursor: pointer; list-style: none; }
.how-details summary::-webkit-details-marker { display: none; }
.how-details summary::after { content: "+"; color: var(--ink-3); font: 400 18px/1.3 var(--font-mono); }
.how-details[open] summary::after { content: "−"; }
.how-details .how-list { margin: 0 20px 8px; }

/* Sonuçtan sonra sıradaki adım */
.next-step { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.next-step b { display: block; color: var(--ink); font-weight: 500; }
.next-step a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.lesson-wrap .stage-progress { max-width: 160px; margin-left: auto; }
.stage-progress span { transition: width .3s var(--ease); }

@media (max-width: 1000px) {
  /* Telefonda dersler önce gelir; satın alma kutusu listenin altına iner */
  .buy-box { order: 2; }
  .page-hero .hero-side { display: none; }
}
@media (max-width: 700px) {
  .start-strip { grid-template-columns: 1fr; }
  .start-strip a { border-left: 0; border-top: 1px solid var(--line); }
  .start-strip a:first-child { border-top: 0; }
}

/* Dokunmatik ekran: parmakla basılan her şey en az 44 px yüksek */
@media (pointer: coarse), (max-width: 700px) {
  .icon-btn { width: 40px; height: 44px; }
  .layout-btn, .account-btn { height: 44px; }
  .btn-sm { min-height: 44px; }
  .seg button { min-height: 40px; }
  .footer-nav { gap: 0 24px; }
  .footer-nav a { padding: 12px 0; }
  .site-header .logo { padding: 10px 0; }
}
@media (max-width: 700px) {
  /* Seçenekler sığmazsa alt satıra iner; sağdan kesilmez */
  #examStyle { grid-auto-flow: row; width: 100%; }
}

/* ==========================================================
   Matbaa teması — tek tema, gece
   Dünya: matbaa, daktilo, resmî evrak. Siyah kâğıt, açık mürekkep, tek vurgu kalem turuncusu.
   Renkler Feuille Studio paletinden gelir; imza rozetiyle aynı turuncu kullanılır.
   Başlıklar serif (Plex Serif); arayüz Plex Sans, yazı alanı Plex Mono.
   Görseller gravür; negatife çevrilip kâğıda basılmış gibi durur, kutusu ve çerçevesi yoktur.
   Turuncu vurgudur: birincil düğme, imleç, sıradaki tuş. Başka yerde kullanılmaz.
   ========================================================== */
:root {
  --font-head: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --accent: #f39a4b; --accent-hover: #ffb066; --accent-ink: #1a1105; --accent-text: #f39a4b;
  --accent-soft: rgba(243, 154, 75, .13);
}

h1, h2 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.005em; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
h2 { font-size: 24px; }
.page-hero h1, .practice-head h1, .lesson-head h1 { padding-left: 16px; border-left: 4px solid var(--accent); }
.page-hero .lead, .practice-head p { padding-left: 20px; }
.account-card h1, .notfound h1 { font-family: var(--font-head); }

/* Çift cetvel: matbaa çizgisi */
.site-header { border-bottom: 3px double var(--line-2); }
.site-footer { border-top: 3px double var(--line-2); }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.logo-svg .l-zero { fill: var(--accent); }
.logo-svg .l-bump { fill: var(--accent-ink); }
.nav a[aria-current="page"] { background: none; border-radius: 0; box-shadow: inset 0 -2px 0 var(--accent); color: var(--ink); }
.inline-link, .prose a, .notice a, .source-list a, .faq a, .fact-list a, .how-list a, .next-step a { text-decoration-color: var(--accent-text); }
.course-track span, .stage-progress span { background: var(--accent); }
.start-strip a:hover b, .link-rows a:hover b { color: var(--accent-text); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline-color: var(--accent-text); }

/* Gravürler */
.gravur { margin: 0; }
.gravur img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 94%, transparent), linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 94%, transparent), linear-gradient(to bottom, #000 88%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
.gravur img, .head-art { filter: invert(1) sepia(.25); mix-blend-mode: screen; opacity: .85; }
.hero-side.gravur { aspect-ratio: auto; }
.page-hero .container:has(> .hero-side.gravur) { grid-template-columns: 1fr minmax(240px, 340px); }
.account-side .gravur { max-width: 320px; margin-bottom: 16px; }
.side-art { float: right; width: min(300px, 36%); margin: 0 0 16px 32px; }
.notfound { display: grid; grid-template-columns: 1fr minmax(220px, 360px); gap: 48px; align-items: center; }
.head-art { width: 132px; height: auto; margin: -20px 8px -12px auto; }
.practice-head .best-chip { align-self: flex-end; }
body.focus-mode .head-art { display: none; }

@media (max-width: 900px) {
  .head-art { display: none; }
  .notfound { grid-template-columns: 1fr; }
  .notfound-art { max-width: 280px; }
  .side-art { float: none; width: 220px; margin: 0 0 16px; }
}
@media (max-width: 700px) {
  .page-hero h1, .practice-head h1, .lesson-head h1 { padding-left: 12px; border-left-width: 3px; }
  .page-hero .lead, .practice-head p { padding-left: 15px; }
}
@media (max-width: 700px) {
  /* Dar ekranda üst menü taşmasın: klavye düğmesi yalnızca harfi gösterir */
  .header-inner { gap: 12px; }
  .layout-btn span { display: none; }
  .layout-btn { min-width: 40px; justify-content: center; }
}

/* ---------- Seviye testi ---------- */
.plan-list { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: plan; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.plan-list li { counter-increment: plan; border-top: 1px solid var(--line); }
.plan-list li:first-child { border-top: 0; }
.plan-list a { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; padding: 12px 16px; color: var(--ink); text-decoration: none; transition: background-color .15s var(--ease); }
.plan-list a::before { content: counter(plan); grid-row: span 2; color: var(--accent-text); font: 500 18px/1.4 var(--font-head); }
.plan-list a:hover { background: var(--surface-2); }
.plan-list b { font-weight: 500; }
.plan-list span { grid-column: 2; color: var(--ink-2); font-size: 14px; }
.level-scale b { min-width: 96px; font-family: var(--font-head); }
.prose-note { max-width: 720px; margin-top: 16px; color: var(--ink-2); font-size: 15px; }

/* ---------- Logo: yaza|yaza ---------- */
.logo-text { display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 500; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.logo-caret { display: inline-block; width: 2px; height: 1.05em; margin: 0 3px; border-radius: 1px; background: var(--accent-text); animation: caret-blink 1.15s steps(1) infinite; }

/* ---------- Sınav metinleri: arama, biçim, sıralama ---------- */
.text-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.text-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.text-search .icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.text-search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); font-size: 15px; }
.text-search input:focus { outline: 2px solid var(--accent-text); outline-offset: 0; }
.text-count { margin-bottom: 8px; color: var(--ink-3); font: 400 13px var(--font-mono); }
.text-empty { padding: 24px 8px; color: var(--ink-2); }
.t-best { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; color: var(--ink-2); }
.t-best.is-pass { color: var(--ok); }
.t-best .icon { width: 14px; height: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  .text-search { max-width: none; flex-basis: 100%; }
  .text-tools .seg { width: 100%; }
  #textSort { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  #textFormat { grid-auto-flow: row; }
  .text-tools .btn { width: 100%; }
  .text-search input { height: 44px; font-size: 16px; }
}
.text-rows .l-status { white-space: nowrap; }
@media (max-width: 700px) {
  .text-rows .l-status { flex-direction: column; align-items: flex-end; gap: 2px; }
  .text-rows .t-best { margin-right: 0; }
}

/* ---------- Logo: çizim yolu olarak yaza|yaza ---------- */
.logo-yazi { display: block; height: 23px; width: auto; flex: none; fill: currentColor; }
.logo-imlec { fill: var(--accent-text); animation: caret-blink 1.15s steps(1) infinite; }
.site-footer .logo-yazi { height: 20px; }
@media (max-width: 700px) { .logo-yazi { height: 21px; } }
@media (prefers-reduced-motion: reduce) { .logo-imlec { animation: none; } }

/* ---------- Telefonda kapalı (assets/common.js sonu) ---------- */
/* Betik çalışana kadar telefonda içerik görünmesin; betik karar verince ya kart çıkar ya da örtü kalkar. */
@media (not (any-pointer: fine)) and ((max-width: 767px) or (max-height: 767px)) {
  html:not(.mobil-acik)::after { content: ""; position: fixed; inset: 0; z-index: 9998; background: var(--bg); }
}
html.mobil-kapali, html.mobil-kapali body { overflow: hidden; }
.mobil-kapi {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: var(--bg); color: var(--ink);
  overflow-y: auto;
}
.mobil-kapi__kart {
  width: min(100%, 420px); display: grid; gap: 14px; justify-items: start;
  padding: 28px 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-ctl, 6px);
}
.mobil-kapi__logo { margin: 0 0 6px; font: 600 22px/1 var(--font-head); letter-spacing: -.01em; }
.mobil-kapi__logo span { color: var(--accent, var(--ink)); font-weight: 400; }
.mobil-kapi h2 { margin: 0; font: 600 24px/1.25 var(--font-head); text-wrap: balance; }
.mobil-kapi p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.mobil-kapi .mobil-kapi__adres { width: 100%; padding: 10px 12px; border: 1px dashed var(--line-2); font: 500 15px var(--font-mono); color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.mobil-kapi .btn { width: 100%; }
.mobil-kapi .mobil-kapi__not { font-size: 13px; color: var(--ink-3); }

/* ---------- Çerez izni (assets/common.js sonu) ---------- */
.cerez-kutu {
  position: fixed; z-index: 9000;
  left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(420px, calc(100% - 32px));
  display: grid; gap: 10px; padding: 18px 20px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-ctl, 8px);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .35);
}
.cerez-kutu h2 { margin: 0; font: 600 17px/1.3 var(--font-head); }
.cerez-kutu p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.cerez-kutu__dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cerez-kutu__link { justify-self: start; color: var(--ink-3); font-size: 13px; text-underline-offset: 3px; }
.cerez-kutu__link:hover { color: var(--ink); }

/* ---------- Hoş geldin ekranı (assets/common.js sonu) ---------- */
html.hosgeldin-acik { overflow: hidden; }
html.hosgeldin-acik .cerez-kutu { display: none; }
.hosgeldin {
  position: fixed; inset: 0; z-index: 9500;
  display: grid; place-items: center; padding: 24px 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  overflow: auto;
}
.hosgeldin__kart {
  width: min(720px, 100%);
  display: grid; gap: 14px; padding: 28px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-ctl, 8px);
  box-shadow: 0 24px 64px -28px rgba(0, 0, 0, .45);
  animation: hosgeldinGir .32s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes hosgeldinGir { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.hosgeldin__ust { margin: 0; font: 600 20px/1 var(--font-head); letter-spacing: -.01em; }
.hosgeldin__ust span { color: var(--ink-3); font-weight: 400; }
.hosgeldin h2 { margin: 0; font: 600 clamp(22px, 3.4vw, 28px)/1.2 var(--font-head); text-wrap: balance; }
.hosgeldin__alt { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.hosgeldin__adim { display: grid; gap: 14px; }
.hosgeldin__secenekler { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hosgeldin__secenekler > button {
  position: relative; display: grid; gap: 4px; padding: 16px 18px; text-align: left;
  background: var(--bg); color: inherit; font: inherit; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-ctl, 8px);
  transition: border-color .16s, transform .16s, background .16s;
}
.hosgeldin__secenekler > button:hover { border-color: var(--ink); transform: translateY(-2px); }
.hosgeldin__secenekler > button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hosgeldin__secenekler b { font: 600 16px/1.3 var(--font-head); }
.hosgeldin__secenekler small { color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.hosgeldin__no { position: absolute; top: 14px; right: 16px; color: var(--ink-3); font: 400 12px var(--font-mono); }
.hosgeldin__secenekler--iki > button { gap: 8px; }
.hosgeldin__secenekler--iki .layout-kb { margin-top: 4px; }
.hosgeldin__geri, .hosgeldin__gec {
  justify-self: start; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--ink-3); font: 400 14px var(--font-body, inherit);
  text-decoration: underline; text-underline-offset: 3px;
}
.hosgeldin__geri:hover, .hosgeldin__gec:hover { color: var(--ink); }
@media (max-width: 640px) {
  .hosgeldin__kart { padding: 22px 18px; }
  .hosgeldin__secenekler { grid-template-columns: 1fr; }
  .hosgeldin__no { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hosgeldin__kart { animation: none; }
  .hosgeldin__secenekler > button:hover { transform: none; }
}

/* ---------- Başlıkta hesap girişi ---------- */
.header-uye { box-shadow: 0 0 0 1px var(--accent-soft), 0 6px 18px -10px var(--accent); }
.header-uye:focus-visible { outline-offset: 3px; }
.account-btn--giris { border-color: transparent; color: var(--ink-2); }
.account-btn--giris:hover { border-color: var(--line-2); color: var(--ink); }
@media (max-width: 820px) { .account-btn--giris { display: none; } }
