/* ==========================================================================
   ZPL → PNG · tasarım sistemi
   Renkler ve ölçüler :root değişkenlerinde; koyu tema sistem tercihine göre.
   ========================================================================== */

:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e3e7ee;
  --border-strong: #cbd2dd;
  --accent: #4361ee;
  --accent-hover: #3650d4;
  --accent-soft: #eef1ff;
  --accent-text: #ffffff;
  --danger: #d1343b;
  --danger-soft: #fdecec;
  --success: #15803d;
  --success-soft: #e8f7ee;
  --code-bg: #0b1220;
  --code-text: #e2e8f0;
  --code-muted: #94a3b8;
  --chip-bg: #eef1f6;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-md: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 28px -16px rgb(15 23 42 / 0.18);
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 9px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e14;
    --surface: #131822;
    --surface-2: #171d29;
    --text: #e6eaf2;
    --muted: #8b95a7;
    --border: #232b3a;
    --border-strong: #334055;
    --accent: #7a93ff;
    --accent-hover: #93a7ff;
    --accent-soft: #1b2340;
    --accent-text: #0b0e14;
    --danger: #ff7b80;
    --danger-soft: #3a1b1f;
    --success: #4ade80;
    --success-soft: #142a1d;
    --code-bg: #070a10;
    --code-text: #dbe3f0;
    --code-muted: #6b7689;
    --chip-bg: #1d2431;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.35), 0 16px 36px -16px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0e14;
  --surface: #131822;
  --surface-2: #171d29;
  --text: #e6eaf2;
  --muted: #8b95a7;
  --border: #232b3a;
  --border-strong: #334055;
  --accent: #7a93ff;
  --accent-hover: #93a7ff;
  --accent-soft: #1b2340;
  --accent-text: #0b0e14;
  --danger: #ff7b80;
  --danger-soft: #3a1b1f;
  --success: #4ade80;
  --success-soft: #142a1d;
  --code-bg: #070a10;
  --code-text: #dbe3f0;
  --code-muted: #6b7689;
  --chip-bg: #1d2431;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.35), 0 16px 36px -16px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* ---- Temel ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -200px, var(--accent-soft), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.018em; margin: 0; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; margin-top: 28px; }
h4 { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---- Üst bar ---- */
.top { padding: 14px 0 0; }

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 8px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand::before {
  content: "Z";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 16px -6px var(--accent);
}
.brand span { color: var(--muted); font-weight: 500; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; }
.nav-link {
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav-link:hover { color: var(--text); background: var(--chip-bg); text-decoration: none; }
.primary-link {
  color: var(--accent-text);
  background: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}
.primary-link:hover { background: var(--accent-hover); color: var(--accent-text); }
.nav-user {
  color: var(--muted);
  font-size: 13px;
  padding: 0 8px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead { margin: 0 0 4px; color: var(--muted); font-size: 16px; }
.top .wrap:last-child { padding-bottom: 6px; }

/* ---- Yüzeyler ---- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 8px;
}
@media (max-width: 880px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
  min-width: 0;
}
.panel + .panel { margin-top: 20px; }
.grid > .panel + .panel { margin-top: 0; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tools { display: flex; gap: 4px; }

/* ---- Düğmeler ---- */
button, .file-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 100ms ease, box-shadow 150ms ease;
}
button:hover, .file-btn:hover { border-color: var(--muted); }
button:active, .file-btn:active { transform: translateY(1px); }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 8px 18px -10px var(--accent);
}
button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

button.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
button.ghost:hover { color: var(--text); background: var(--chip-bg); border-color: transparent; }

button.danger { color: var(--danger); }
button.danger:hover { background: var(--danger-soft); border-color: var(--danger); }

.block { width: 100%; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check small { font-weight: 400; color: var(--muted); }

.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---- Form alanları ---- */
textarea {
  display: block;
  width: 100%;
  min-height: 340px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: 13.5px/1.6 var(--mono);
  tab-size: 2;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea::placeholder { color: var(--muted); opacity: 0.7; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.dragging { border-color: var(--accent); border-style: dashed; background: var(--accent-soft); }

.field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 550; font-size: 14px; }
.field small { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.select select {
  appearance: none;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 34px 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.kbd-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
}

.status { min-height: 1.6em; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.status.error { color: var(--danger); }
.status.ok { color: var(--success); }

/* ---- Önizleme ---- */
.results { display: grid; gap: 16px; }
.empty {
  margin: 0;
  padding: 56px 20px;
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.label-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.label-card .img-wrap {
  display: flex;
  justify-content: center;
  padding: 18px;
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 16px 16px;
}
.label-card img {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 0.08), 0 10px 24px -12px rgb(15 23 42 / 0.3);
}
.label-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ---- Kod blokları ---- */
code { font-family: var(--mono); font-size: 0.9em; }
p code, dd code, .hint code, h4 code, h3 code {
  background: var(--chip-bg);
  color: var(--text);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.86em;
}

pre {
  margin: 0;
  padding: 16px 18px;
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid #111827;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  tab-size: 2;
}
pre code { background: none; color: inherit; padding: 0; font-size: 1em; }

pre { position: relative; }
pre:has(> .copy-btn) { padding-top: 42px; }
pre .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--code-text);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 7px;
  box-shadow: none;
  opacity: 0.8;
}
pre .copy-btn:hover { opacity: 1; background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.28); }
pre .copy-btn:focus-visible { outline-color: var(--code-text); }

/* ---- API bölümü ---- */
.api { margin-top: 28px; padding-bottom: 8px; }
.api > h2 { font-size: 20px; margin-bottom: 6px; }
.api > p { color: var(--muted); max-width: 760px; margin: 0 0 16px; }
.api > pre { margin-bottom: 20px; }

.api-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(170px, max-content) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.api-list dt,
.api-list dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.api-list dt { font-weight: 600; background: var(--surface-2); }
.api-list dd { color: var(--muted); }
.api-list > :nth-last-child(-n+2) { border-bottom: 0; }

.api .muted { margin: 0 0 4px; }

/* ---- Sekmeler ---- */
.tabs { margin-top: 10px; }
.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--chip-bg);
  border-radius: 11px;
  margin-bottom: 14px;
  max-width: 100%;
}
.tab {
  min-height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}
.tab:hover { color: var(--text); background: transparent; }
.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
}
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tabs [role="tabpanel"] p.muted { margin: 0 0 12px; font-size: 14px; }

/* ---- Hesap sayfası ---- */
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 22px;
  margin: 0;
  font-size: 14px;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.keys { display: grid; gap: 8px; margin-top: 16px; }
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.key-meta { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.key-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.key-actions .small { font-size: 12.5px; padding: 0 8px; }
.key-meta .muted { font-size: 12.5px; overflow-wrap: anywhere; }

.key-once {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid var(--success);
  background: var(--success-soft);
  border-radius: var(--radius);
}
.key-once p { margin: 0; }
.key-warn { font-weight: 600; color: var(--success); font-size: 14px; }
.key-value {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: all;
}
.key-once button { justify-self: start; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1 1 260px; }
.grow { flex: 1 1 260px; }

.alert {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.alert.error { color: var(--danger); border-color: transparent; background: var(--danger-soft); }
.alert.success { color: var(--success); border-color: transparent; background: var(--success-soft); }

/* ---- Kimlik formları ---- */
.narrow { max-width: 440px; margin-top: 28px; }
.narrow .panel { padding: 28px; }
.narrow h1 { margin: 0 0 6px; }
.narrow .panel > .muted { margin: 0 0 22px; font-size: 14px; }
.narrow .panel > p.muted.center { margin: 18px 0 0; font-size: 14px; }

/* ---- Alt bilgi ---- */
.foot {
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---- Erişilebilirlik ---- */
.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;
}

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .panel { padding: 18px; border-radius: 14px; }
  .narrow .panel { padding: 22px; }
  .api-list { grid-template-columns: minmax(0, 1fr); }
  .api-list dt { padding-bottom: 4px; border-bottom: 0; }
  .api-list dd { padding-top: 0; }
  .api-list > :nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .api-list > :last-child { border-bottom: 0; }
  .actions { gap: 8px; }
  .nav-user { display: none; }
  .primary-link { margin-left: 0; }
  h1 { font-size: 22px; }
}

/* ==========================================================================
   Dokümantasyon
   ========================================================================== */
.docs {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 24px;
}
.toc {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.toc-title { margin: 0 0 6px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.toc a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.toc a:hover { color: var(--text); background: var(--chip-bg); text-decoration: none; }

.doc { min-width: 0; padding-bottom: 40px; }
.doc-hero { padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.doc-hero h1 { font-size: 32px; margin-bottom: 8px; }
.doc-hero .lead { margin: 0 0 16px; max-width: 640px; }

.doc-section { padding-top: 28px; scroll-margin-top: 20px; }
.doc-section > h2 { font-size: 22px; margin-bottom: 12px; }
.doc-section > p { color: var(--text); max-width: 720px; }
.doc-section h3 { margin-top: 20px; margin-bottom: 8px; }
.doc-section pre { margin: 12px 0 0; }

.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 14px 14px 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.callout {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  max-width: 720px;
}
.callout.warn { border-left-color: var(--danger); background: var(--danger-soft); }

.note { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 720px; }

.bullets { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* ---- API'yi dene ---- */
.try {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.try-row { display: flex; flex-wrap: wrap; gap: 14px; }
.try-row > .field { flex: 1 1 200px; }
.try .field > span { font-size: 13.5px; }
.try textarea { min-height: 220px; }
.field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}
.field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.key-input { display: flex; gap: 8px; align-items: stretch; }
.key-input input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: var(--mono);
  font-size: 13.5px;
}
.key-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.key-input button { min-height: 42px; }

.try-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.try-actions .primary { margin-left: auto; }

.try-status { margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); word-break: break-word; }
.try-status.ok { color: var(--success); background: var(--success-soft); border-color: transparent; }
.try-status.error { color: var(--danger); background: var(--danger-soft); border-color: transparent; }

.try-result { display: grid; gap: 14px; margin-top: 14px; }
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.button-link:hover { background: var(--chip-bg); text-decoration: none; }

@media (max-width: 880px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .toc-title { width: 100%; margin: 0 4px 2px; }
  .toc a { padding: 5px 9px; font-size: 13px; }
  .doc-hero h1 { font-size: 26px; }
  .try { padding: 16px; }
  .try-actions .primary { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   Hesap alanı: sol menü + içerik
   ========================================================================== */
.app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 40px;
}
.side {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.side-title {
  margin: 10px 10px 4px;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.side-title:first-child { margin-top: 4px; }
.side a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.side a:hover { color: var(--text); background: var(--chip-bg); text-decoration: none; }
.side a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 650;
}
.content { min-width: 0; display: grid; gap: 20px; align-content: start; }
.content .panel { margin: 0; }
.content > .panel h1 { font-size: 22px; margin-bottom: 8px; }
.content > .panel h2 { margin-bottom: 6px; }
.content #password-form { max-width: 440px; }

@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px;
  }
  .side-title { display: none; }
  .side a { padding: 7px 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
