/* ===== Değişkenler (renk, boşluk, köşe) — tek yer ===== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #1d1d1f;
  --text-2: #515154;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #0066cc;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --win: #0067c0;
  --mac: #6e6e73;
  --code-bg: #f2f2f5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 18px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --gap: 16px;
  --page: 1080px;
  --gutter: 16px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #161618; --glass: rgba(22, 22, 24, 0.72);
    --text: #f5f5f7; --text-2: #c7c7cc; --muted: #8e8e93; --line: rgba(255, 255, 255, 0.11);
    --accent: #2997ff; --accent-soft: rgba(41, 151, 255, 0.16); --win: #4cc2ff; --mac: #aeaeb2;
    --code-bg: #232326; --shadow: 0 0 0 1px rgba(255,255,255,.06); --shadow-hover: 0 0 0 1px rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #161618; --glass: rgba(22, 22, 24, 0.72);
  --text: #f5f5f7; --text-2: #c7c7cc; --muted: #8e8e93; --line: rgba(255, 255, 255, 0.11);
  --accent: #2997ff; --accent-soft: rgba(41, 151, 255, 0.16); --win: #4cc2ff; --mac: #aeaeb2;
  --code-bg: #232326; --shadow: 0 0 0 1px rgba(255,255,255,.06); --shadow-hover: 0 0 0 1px rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.5);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ===== Temel ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (max-width: 979px) { html:has(.subbar) { scroll-padding-top: 116px; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
main { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 48px; }

/* ===== Üst bar (cam) ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; display: block; }
.tools { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--text);
  display: grid; place-items: center; cursor: pointer; font: 600 12px var(--font); letter-spacing: .02em;
  transition: background .15s var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }

/* platform anahtarı (segment) */
.seg { display: flex; background: var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg a { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.picon { width: 16px; height: 16px; fill: currentColor; flex: none; }
@media (max-width: 480px) { body:has(.seg) .brand-text { display: none; } .seg a { padding: 5px 9px; font-size: 13px; gap: 5px; } .topbar-inner { gap: 8px; } }
@media (max-width: 380px) { .seg .picon { display: none; } .seg a { padding: 5px 7px; } .tools { gap: 0; } .icon-btn { width: 32px; } }

/* ===== Hero ===== */
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
.hero .lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--text-2); max-width: 640px; margin: 0 auto; line-height: 1.4; }
.hero-sm { padding: 40px 0 8px; }
.hero-sm h1 { font-size: clamp(32px, 5vw, 48px); }

/* ===== Platform kartları (ana sayfa) ===== */
.platforms { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin: 20px 0 40px; }
@media (min-width: 720px) { .platforms { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 980px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
.platform-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.platform-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.pc-icon .picon { width: 26px; height: 26px; }
.pc-windows .pc-icon { background: #0a7aff; }
.pc-macos .pc-icon { background: #636366; }
.pc-chromium .pc-icon { background: #28a745; }
.pc-name { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.pc-lead { color: var(--text-2); }
.pc-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill { background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--text-2); }
.pill b { color: var(--text); }
.pc-go { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.pc-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.platform-card:hover .pc-go svg { transform: translateX(3px); }

/* ===== Arama ===== */
.global-search { max-width: 560px; margin: 0 auto 8px; position: relative; z-index: 5; }
.global-search h2 { font-size: 22px; text-align: center; margin: 0 0 14px; letter-spacing: -0.02em; }
.search { position: relative; max-width: 560px; margin: 24px auto 0; }
.global-search .search { margin-top: 0; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 16px var(--font); outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.results { list-style: none; padding: 0; margin: 14px 0 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.results li + li { border-top: 1px solid var(--line); }
.results a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); }
.results a:hover, .results a:focus-visible { background: var(--accent-soft); text-decoration: none; }
.r-icon { font-size: 20px; width: 28px; text-align: center; flex: none; }
.r-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.r-name { font-weight: 600; }
.r-desc { color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; flex: none; }
.tag-windows { color: var(--win); background: color-mix(in srgb, var(--win) 14%, transparent); }
.tag-chromium { color: #1f9d55; background: color-mix(in srgb, #34c759 16%, transparent); }
.tag-macos { color: var(--mac); background: color-mix(in srgb, var(--mac) 18%, transparent); }

/* ===== Platform sayfası ===== */
.jump { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.jump a { padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: 15px; box-shadow: var(--shadow); }
.jump a:hover { text-decoration: none; background: var(--accent-soft); }
.section { margin-top: 44px; }
.section > h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.count { font-size: 14px; font-weight: 600; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 2px 10px; }
.category h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 26px 4px 10px; }
.cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: var(--r);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); min-width: 0;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.card:hover { text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.card-icon { font-size: 24px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--bg); border-radius: 11px; flex: none; }
.card-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-title { font-weight: 600; }
.card-desc { color: var(--text-2); font-size: 14px; line-height: 1.35; }
.card-date { font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.updated { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.r-date { font-size: 12px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cross { margin: 48px auto 0; text-align: center; color: var(--muted); }
.cross a { font-weight: 500; margin-left: 10px; }

/* monogram ikon */
.mono { font-weight: 650; font-size: 17px; letter-spacing: -0.01em;
  background: hsl(var(--h) 55% 50% / 0.13) !important; color: hsl(var(--h) 50% 36%); }
:root[data-theme="dark"] .mono { color: hsl(var(--h) 70% 72%); background: hsl(var(--h) 50% 55% / 0.18) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mono { color: hsl(var(--h) 70% 72%); background: hsl(var(--h) 50% 55% / 0.18) !important; } }
.r-icon.mono { height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.guide-icon.mono { font-size: 28px; }

/* resmi logo */
.has-logo { background: #fff !important; border: 1px solid var(--line); overflow: hidden; padding: 5px; }  /* koyu temada da beyaz: siyah çizgili logolar kaybolmasın */
.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.r-icon.has-logo { width: 28px; height: 28px; border-radius: 8px; padding: 3px; display: grid; }
.guide-icon.has-logo { padding: 9px; }

/* ===== Rehber sayfası ===== */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--text-2); }
.guide-head { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0 8px; }
.guide-icon { font-size: 34px; width: 64px; height: 64px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; flex: none; }
.guide-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 2px 0 8px; }
.guide-head .lead { font-size: 19px; color: var(--text-2); margin: 0; line-height: 1.45; }
.meta { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.meta li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--text-2); border: 1px solid var(--line); }
.twin { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 500; }
@media (max-width: 560px) { .guide-head { flex-direction: column; gap: 12px; } .guide-icon { width: 52px; height: 52px; font-size: 28px; border-radius: 14px; } }
.tr-notice { background: var(--accent-soft); color: var(--text); border-radius: var(--r-sm); padding: 10px 14px; font-size: 15px; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 20px; }
@media (min-width: 980px) { .guide-layout { grid-template-columns: minmax(0, 1fr) 230px; } .toc { order: 2; } }
.toc { display: none; }
@media (min-width: 980px) { .toc { display: block; position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; } }
.toc-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.toc ol { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.toc li a { display: block; padding: 5px 0 5px 10px; color: var(--text-2); border-left: 2px solid var(--line); }
.toc li a:hover { color: var(--text); border-color: var(--muted); text-decoration: none; }
.toc li a.active, .toc-panel a.active { color: var(--accent); border-color: var(--accent); font-weight: 500; }

/* mobil: navbar altındaki "Bu sayfada" çubuğu */
.subbar { border-top: 1px solid var(--line); position: relative; }
@media (min-width: 980px) { .subbar { display: none; } }
.toc-toggle {
  width: 100%; max-width: var(--page); margin: 0 auto; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 var(--gutter); border: 0; background: transparent; color: var(--text);
  font: 500 14px var(--font); cursor: pointer; text-align: left;
}
.toc-ic, .toc-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.toc-ic { color: var(--muted); }
.toc-label { color: var(--muted); flex: none; }
.toc-current { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-current:not(:empty)::before { content: "·"; color: var(--muted); margin-right: 8px; }
.toc-chev { margin-left: auto; color: var(--muted); transition: transform .2s var(--ease); }
.toc-toggle[aria-expanded="true"] .toc-chev { transform: rotate(180deg); }
.toc-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.12); max-height: min(70vh, 520px); overflow: auto; overscroll-behavior: contain;
}
.toc-panel ol { list-style: none; margin: 0 auto; padding: 6px 0 10px; max-width: var(--page); }
.toc-panel a { display: block; padding: 11px var(--gutter); color: var(--text); font-size: 15px; border-left: 3px solid transparent; }
.toc-panel a:hover { background: var(--accent-soft); text-decoration: none; }
.guide-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ===== Markdown içeriği ===== */
.prose { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px 20px 24px; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 720px) { .prose { padding: 12px 40px 36px; } }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 12px; padding-top: 4px; }
.prose h2:first-child { margin-top: 24px; }
.prose h3 { font-size: 20px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose h4 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--muted); }
.prose hr { display: none; }
.prose h2 { border-top: 1px solid var(--line); padding-top: 28px !important; }
.prose h2:first-child { border-top: 0; padding-top: 4px !important; }
.prose blockquote { margin: 16px 0; padding: 12px 16px 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text); font-size: 16px; }
.prose blockquote.tip { border-left-color: var(--accent); background: var(--accent-soft); border-color: transparent; border-left-color: var(--accent); }
.prose blockquote.warn { background: color-mix(in srgb, #ff9f0a 10%, transparent); border-color: transparent; border-left-color: #ff9f0a; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font: 0.88em var(--mono); background: var(--code-bg); padding: 0.15em 0.4em; border-radius: 6px; }
.prose pre { position: relative; background: var(--code-bg); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; margin: 0 0 16px; }
.prose pre code { background: none; padding: 0; font-size: 14px; line-height: 1.5; white-space: pre; overflow-wrap: normal; }
.mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; margin-right: 6px; vertical-align: -3px; }
.mark.yes { background: color-mix(in srgb, #34c759 18%, transparent); color: #1f8a43; }
.mark.no { background: color-mix(in srgb, #ff3b30 14%, transparent); color: #d12a20; }
.mark.part { background: color-mix(in srgb, #ff9f0a 18%, transparent); color: #b86e00; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font: 500 12px var(--font); padding: 4px 10px; border-radius: 999px; cursor: pointer; opacity: 0; transition: opacity .15s var(--ease);
}
.prose pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.copy-btn.ok { color: #1f9d55; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: normal; }
.prose th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose img { border-radius: var(--r-sm); border: 1px solid var(--line); display: block; margin: 12px 0; }
.prose details { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 14px; }
.prose summary { cursor: pointer; font-weight: 600; }

/* ===== Alt bilgi ===== */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--text-2); }
.footer p { margin: 0 0 8px; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 999px; margin-top: 20px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .platform-card:hover, .card:hover { transform: none; }
}

/* ===== Hamburger menü (sağdan açılan panel) ===== */
#menu-btn svg, #menu-close svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (max-width: 480px) { .icon-btn { width: 44px; height: 44px; } }
@media (max-width: 760px) { body:has(.seg) .brand-text { display: none; } }
body.menu-open { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.32); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(340px, 88vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0,0,0,.18);
  overflow-y: auto; overscroll-behavior: contain; outline: none;
  padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom));
  animation: drawer-in .22s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(16px); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.drawer-title { font-weight: 600; }
.drawer-group { padding: 10px 8px 6px; border-bottom: 1px solid var(--line); }
.drawer-group:last-child { border-bottom: 0; }
.drawer-label { margin: 6px 12px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.drawer-group a, .drawer-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--text); font: 15px var(--font); background: none; border: 0; cursor: pointer; text-align: left;
}
.drawer-group a:hover, .drawer-row:hover { background: var(--accent-soft); text-decoration: none; }
.drawer-group a[aria-current="page"] { color: var(--accent); font-weight: 500; }
.drawer .mi, .drawer .picon { width: 18px; height: 18px; flex: none; color: var(--muted); }
.drawer .picon { fill: currentColor; }
.mi { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drawer a[aria-current="page"] .picon, .drawer a[aria-current="page"] .mi { color: var(--accent); }
.drawer .ext { width: 14px; height: 14px; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.count-sm { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill-sm { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--bg); border-radius: 999px; padding: 2px 9px; }

/* ===== Cam (Liquid Glass) tasarım dili =====
   Saydam yüzey + bulanıklık + doygunluk, üstte ince parlak kenar (specular), yumuşak gölge.
   Bulanıklık yalnız üstte duran katmanlarda (bar, menü, paneller, arama); uzun listelerdeki
   kartlarda performans için yalnız saydamlık ve parlak kenar kullanılır. */
:root {
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-edge: rgba(0, 0, 0, 0.06);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.10), 0 1px 2px rgba(15, 23, 42, 0.06);
  --glass-blur: saturate(180%) blur(22px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --glass-bg: rgba(30, 30, 34, 0.55); --glass-bg-strong: rgba(28, 28, 32, 0.78);
    --glass-border: rgba(255, 255, 255, 0.12); --glass-edge: rgba(255, 255, 255, 0.06);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --glass-bg: rgba(30, 30, 34, 0.55); --glass-bg-strong: rgba(28, 28, 32, 0.78);
  --glass-border: rgba(255, 255, 255, 0.12); --glass-edge: rgba(255, 255, 255, 0.06);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

body { isolation: isolate; }

/* üst bar */
.topbar { background: var(--glass-bg); box-shadow: var(--glass-hi); border-bottom: 1px solid var(--glass-edge); }

/* bulanık katmanlar */
.drawer, .toc-panel, .results, .search input, .seg {
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.drawer {
  background: var(--glass-bg-strong); border-left: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), -20px 0 60px rgba(0, 0, 0, 0.18);
  top: 8px; right: 8px; bottom: 8px; border-radius: 26px; border: 1px solid var(--glass-border);
  width: min(340px, calc(100vw - 16px));
}
.drawer-head { border-bottom-color: var(--glass-edge); }
.drawer-group { border-bottom-color: var(--glass-edge); }
.drawer-group a:hover, .drawer-row:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.drawer-group a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: var(--glass-hi); }
.pill-sm { background: var(--glass-bg); box-shadow: var(--glass-hi); }
.drawer-backdrop { background: rgba(0, 0, 0, 0.22); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.toc-panel {
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-hi), var(--glass-shadow);
  left: 8px; right: 8px; top: calc(100% + 6px); border-radius: 20px;
}
.seg { background: var(--glass-bg); box-shadow: var(--glass-hi); border: 1px solid var(--glass-edge); }
.seg a[aria-current="page"] { background: var(--glass-bg-strong); box-shadow: var(--glass-hi), 0 2px 8px rgba(0,0,0,.12); }
.search input { background: var(--glass-bg); border-color: var(--glass-border); box-shadow: var(--glass-hi), var(--glass-shadow); }
.results { background: var(--glass-bg-strong); border: 1px solid var(--glass-border); box-shadow: var(--glass-hi), var(--glass-shadow); }
.icon-btn:hover { background: var(--glass-bg); box-shadow: var(--glass-hi); }

/* saydam kartlar (bulanıklıksız) */
.platform-card, .card, .prose, .jump a, .count, .meta li, .guide-icon, .toc-panel, .copy-btn {
  border: 1px solid var(--glass-border);
}
.platform-card, .card, .prose { background: var(--glass-bg); box-shadow: var(--glass-hi), var(--glass-shadow); }
.platform-card:hover, .card:hover { background: var(--glass-bg-strong); box-shadow: var(--glass-hi), var(--shadow-hover); }
.jump a, .count, .meta li, .pill { background: var(--glass-bg); box-shadow: var(--glass-hi); }
.card-icon:not(.has-logo):not(.mono), .guide-icon:not(.has-logo):not(.mono) { background: var(--glass-bg-strong); }
.prose .table-wrap { background: var(--glass-bg-strong); }
.prose pre { background: color-mix(in srgb, var(--code-bg) 85%, transparent); }

/* bulanıklık desteklemeyen tarayıcılar: daha opak zemin */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar, .drawer, .toc-panel, .results, .search input, .seg { background: var(--surface); }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .drawer, .toc-panel, .results, .search input, .seg, .platform-card, .card, .prose { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.search svg { z-index: 1; }
/* üst barın içindeki panel: iç içe backdrop-filter çalışmadığı için daha opak */
.toc-panel { background: var(--surface); }
.drawer-title { display: flex; align-items: center; gap: 10px; }
