/* =====================================================================
   Zevo Nakliyat - Yönetim paneli
   Düşük varyasyon, orta-yüksek yoğunluk: açık zemin, etiketli sabit sidebar,
   beyaz paneller ve 1px kenarlar; renk yalnızca veride ve sayaçlarda.
   ===================================================================== */

:root {
  --ground: #f5f4f1;        /* markanın taş zemininden açık ton */
  --surface: #ffffff;
  --raised: #faf9f7;
  --active: #e9e6e0;        /* menüde etkin satır */
  --border: #e6e3dd;
  --rule: #efede8;
  --control: #d3cfc7;
  --text: #14232e;          /* marka lacivertinden mürekkep */
  --muted: #59636c;         /* 6.1:1 beyaz üzerinde */
  --faint: #6b7079;
  --primary: #14232e;
  --primary-hover: #0b1820;
  --accent: #e8581a;        /* yalnızca veri: grafik çubuğu, seçili seri */
  --accent-soft: #fbe3d6;
  --positive: #247b50;
  --negative: #b4232a;
  --pill-wait-bg: #fff4dd;   --pill-wait-ink: #7a4a00;
  --pill-call-bg: #e8eef4;   --pill-call-ink: #1f3a52;
  --pill-done-bg: #dcf5e5;   --pill-done-ink: #0b3d20;
  --pill-off-bg: #eeedea;    --pill-off-ink: #454b52;
  --pill-info-bg: #ece9f8;   --pill-info-ink: #352b6b;
  --pill-bad-bg: #ffe9e6;    --pill-bad-ink: #831c1e;
  --radius-card: 8px; --radius-control: 6px; --radius-chip: 4px;
  --gap: 16px; --pad: 20px; --side: 236px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-title: 24px; --fs-section: 16px; --fs-kpi: 26px; --fs-body: 14px; --fs-small: 12.5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
code, .mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.block { display: block; }
.nowrap { white-space: nowrap; }
.dash { color: var(--faint); }
.tone-warn { color: var(--pill-wait-ink); font-weight: 600; }
.tone-bad { color: var(--negative); font-weight: 600; }
.tone-good { color: var(--positive); font-weight: 600; }

/* ---------- Kabuk ---------- */
.adm { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.adm--bare { display: block; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; background: var(--ground); border-right: 1px solid var(--border); overflow-y: auto; }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; text-decoration: none; }
.side__brand strong { display: block; font-size: 14px; font-weight: 700; }
.side__brand small { display: block; color: var(--muted); font-size: var(--fs-small); }
.side__group { margin: 18px 10px 6px; font-size: var(--fs-small); color: var(--muted); }
.side__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: var(--radius-control); text-decoration: none; color: var(--text); }
.side__nav a i { font-size: 17px; color: var(--muted); }
.side__nav a:hover { background: var(--raised); }
.side__nav a[aria-current="page"] { background: var(--active); font-weight: 600; }
.side__nav a[aria-current="page"] i { color: var(--text); }
.count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.side__foot { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; }
.side__site { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--muted); text-decoration: none; border-radius: var(--radius-control); }
.side__site:hover { background: var(--raised); color: var(--text); }
.side__user { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--border); }
.side__who { min-width: 0; flex: 1; }
.side__who strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__who small { display: block; color: var(--muted); font-size: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #dfe6ec; color: #1f3a52; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.canvas { padding: 28px 32px 64px; width: 100%; max-width: 1360px; }
.canvas--narrow { max-width: 460px; margin: 0 auto; padding-top: 10vh; }
.titlerow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.titlerow h1 { font-size: var(--fs-title); font-weight: 700; }
.titlerow__sub { margin: 4px 0 0; color: var(--muted); }
.titlerow__actions, .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Paneller ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--pad); min-width: 0; }
.panel + .panel, .panel + .grid-main, .grid-main + .panel, .tabs + .panel, .kpis + .grid-main { margin-top: var(--gap); }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.panel__head h2 { font-size: var(--fs-section); font-weight: 600; }
.panel__head h2 .muted { font-weight: 500; margin-left: 6px; }
.panel__foot { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel--notice { border-color: #fde68a; background: #fffbeb; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.stack { display: grid; gap: var(--gap); }

/* KPI şeridi: tek panel, bölmelerle */
.kpis { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.kpi { padding: 16px 20px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--rule); }
.kpi__label { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.kpi__value { font-size: var(--fs-kpi); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi__value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.kpi__note { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-small); }
.kpi a { text-decoration: none; }
.kpi a:hover .kpi__value { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--gap); }
.tabs a { padding: 6px 12px; border-radius: var(--radius-control); text-decoration: none; color: var(--muted); font-weight: 500; }
.tabs a:hover { color: var(--text); background: var(--raised); }
.tabs a[aria-current="page"] { background: var(--active); color: var(--text); font-weight: 600; }

/* ---------- Tablo ---------- */
.tablewrap { overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 0 10px 8px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * { margin-left: 10px; }
.table .actions form { display: inline; }
.table tbody tr:hover td { background: var(--raised); }
.table td small { color: var(--muted); }
.rowlink { text-decoration: none; }
.rowlink:hover strong, .rowlink:hover { text-decoration: underline; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who strong { display: block; }
.who small { display: block; color: var(--muted); font-size: 12.5px; }
.thumb { width: 48px; height: 36px; object-fit: cover; border-radius: 4px; display: block; background: var(--rule); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.pager__links { display: flex; gap: 6px; }
.empty { margin: 8px 0; padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--control); border-radius: var(--radius-card); }

/* ---------- Durum etiketleri ---------- */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; }
.pill--wait { background: var(--pill-wait-bg); color: var(--pill-wait-ink); }
.pill--call { background: var(--pill-call-bg); color: var(--pill-call-ink); }
.pill--done { background: var(--pill-done-bg); color: var(--pill-done-ink); }
.pill--off { background: var(--pill-off-bg); color: var(--pill-off-ink); }
.pill--info { background: var(--pill-info-bg); color: var(--pill-info-ink); }
.pill--bad { background: var(--pill-bad-bg); color: var(--pill-bad-ink); }

/* Hızlı durum düğmeleri (Bekliyor / Arandı / Tamamlandı) */
.seg { display: inline-flex; border: 1px solid var(--control); border-radius: var(--radius-control); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 4px 9px; font: 500 12.5px/1.4 var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--control); }
.seg button:hover { background: var(--raised); color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-control); border: 1px solid transparent; font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.btn i { font-size: 16px; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: var(--surface); border-color: var(--control); color: var(--text); }
.btn--secondary:hover { border-color: var(--text); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--raised); }
.btn--danger { background: var(--negative); color: #fff; }
.btn--danger-ghost { background: transparent; border-color: #efc2c0; color: var(--negative); }
.btn--danger-ghost:hover { background: var(--pill-bad-bg); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--text); font: 600 13px/1.4 var(--font); text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { text-decoration-color: var(--text); }
.linkbtn--danger { color: var(--negative); }
.iconbtn { width: 32px; height: 32px; border: 0; background: transparent; border-radius: var(--radius-control); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 18px; }
.iconbtn:hover { background: var(--active); color: var(--text); }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 16px; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 12px; }
.form--inline .field { min-width: 180px; }
.form__end { display: flex; justify-content: flex-end; gap: 8px; }
.form__bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; margin: 20px calc(-1 * var(--pad)) calc(-1 * var(--pad)); padding: 12px var(--pad); background: var(--surface); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.spacer { flex: 1; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label { font-weight: 600; font-size: 13.5px; }
.req { color: var(--negative); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea, .search input, .control {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: 400 14px/1.4 var(--font);
}
.field textarea { height: auto; padding: 9px 11px; line-height: 1.5; resize: vertical; }
.field textarea.mono { font-size: 13px; }
.field select { appearance: auto; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .control:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(20, 35, 46, .12); } /* taste-skill-ignore: odak halkası */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--negative); }
.hint { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.hint--error { color: var(--negative); font-weight: 600; }
.charcount { font-size: 12px; color: var(--muted); justify-self: end; margin-top: -2px; }
.charcount.is-over { color: var(--negative); font-weight: 600; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; min-height: 38px; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: var(--control); position: relative; cursor: pointer; transition: background-color .15s ease; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: translate .15s ease; }
.switch input:checked { background: var(--positive); }
.switch input:checked::after { translate: 14px 0; }
.upload { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.upload__preview { width: 160px; height: 110px; object-fit: cover; border-radius: var(--radius-control); border: 1px solid var(--border); }
.iconfield { display: flex; align-items: center; gap: 10px; }
.iconfield i { font-size: 24px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-control); flex: none; }
.search { position: relative; }
.search i { position: absolute; left: 10px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input { height: 32px; width: 240px; padding-left: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select, .filters input { height: 32px; border: 1px solid var(--control); border-radius: var(--radius-control); padding: 0 10px; font: 400 13.5px var(--font); background: var(--surface); }
.code-input { font-size: 20px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; max-width: 220px; }

/* Ayar satırları */
.settings { display: grid; }
.setting { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--border); }
.setting:first-child { border-top: 0; padding-top: 4px; }
.setting__label h2 { font-size: var(--fs-section); font-weight: 600; margin-bottom: 6px; }
.setting__label p { margin: 0 0 8px; color: var(--muted); }
.setting__panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--pad); min-width: 0; }
.setting--danger .setting__panel { border-color: #efc2c0; }
.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.secret { padding: 2px 6px; background: var(--raised); border: 1px solid var(--border); border-radius: 4px; word-break: break-all; }
.qr { width: 220px; height: 220px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); }
.qr svg { width: 100%; height: 100%; display: block; }
.codes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.codes li { padding: 8px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); font: 600 15px ui-monospace, Consolas, monospace; text-align: center; letter-spacing: .05em; }

/* Anahtar-değer */
.kv { margin: 0; display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Notlar */
.note { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-control); font-size: 13.5px; }
.note--error { background: var(--pill-bad-bg); color: var(--pill-bad-ink); }
.note--info { background: var(--pill-call-bg); color: var(--pill-call-ink); }
.note--warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.note--ok { background: var(--pill-done-bg); color: var(--pill-done-ink); }

/* Liste satırları (sağlık kontrolü, son talepler vb.) */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 0; }
.checks i { font-size: 18px; margin-top: 1px; }
.checks .ok i { color: var(--positive); }
.checks .bad i { color: var(--negative); }
.checks .warn i { color: #b7791f; }
.checks small { display: block; color: var(--muted); }

/* Grafik */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 400 11.5px var(--font); fill: var(--muted); }
.chart .bar-human { fill: var(--accent); }
.chart .bar-bot { fill: #cfd6dc; }
.chart .grid { stroke: var(--rule); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--c); vertical-align: -1px; }
.barlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.barlist li { display: grid; gap: 4px; }
.barlist__top { display: flex; justify-content: space-between; gap: 12px; }
.barlist__top span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist__track { height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.barlist__fill { height: 100%; background: #9aa6b0; }
.barlist li:first-child .barlist__fill { background: var(--text); }

/* Detay */
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-head h2 { font-size: 20px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.lines li:last-child { border-bottom: 0; font-weight: 700; }

/* ---------- Giriş ekranı ---------- */
.auth { display: grid; gap: 20px; }
.auth__brand { display: flex; justify-content: center; }
.auth__card { padding: 28px; }
.auth__card h1 { font-size: 20px; margin-bottom: 8px; }
.auth__card .form { margin: 16px 0; }

/* ---------- Bildirimler ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 8px; width: min(380px, calc(100vw - 40px)); }
.toast { display: grid; grid-template-columns: 22px 1fr 28px; gap: 10px; align-items: start; padding: 12px 12px 12px 14px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(20, 35, 46, .12); animation: toast-in .25s ease both; } /* taste-skill-ignore: yüzen bildirim */
.toast p { margin: 2px 0 0; }
.toast > i { font-size: 20px; margin-top: 1px; }
.toast--success > i { color: var(--positive); }
.toast--error { border-color: #efc2c0; }
.toast--error > i { color: var(--negative); }
.toast--warning > i { color: #b7791f; }
.toast--info > i { color: var(--pill-call-ink); }
.toast.is-leaving { opacity: 0; translate: 0 8px; transition: opacity .2s ease, translate .2s ease; }
@keyframes toast-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ---------- Dar ekran ---------- */
@media (max-width: 1100px) {
  .grid-main, .grid-3 { grid-template-columns: 1fr; }
  .setting { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; translate: -100% 0; transition: translate .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .18); } /* taste-skill-ignore: açılır menü */
  .side.is-open { translate: 0 0; }
  .topbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 30; height: 52px; padding: 0 12px; background: var(--ground); border-bottom: 1px solid var(--border); }
  .topbar__title { font-weight: 600; }
  .canvas { padding: 20px 16px 48px; }
  .titlerow h1 { font-size: 21px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .formgrid, .grid-2 { grid-template-columns: 1fr; }
  .codes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search input { width: 100%; }
}

/* Google sonuç ön izlemesi */
.serp { margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--raised); max-width: 640px; font-family: Arial, sans-serif; }
.serp p { margin: 0; }
.serp__label { font: 600 12.5px var(--font); color: var(--muted); margin-bottom: 8px !important; }
.serp__url { color: #202124; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp__title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin: 3px 0 !important; }
.serp__desc { color: #4d5156; font-size: 14px; line-height: 1.55; }

/* Tarih aralığı seçici (bağlantı segmenti) */
.seg__a { padding: 5px 10px; font: 500 12.5px/1.4 var(--font); color: var(--muted); text-decoration: none; background: var(--surface); }
.seg__a + .seg__a { border-left: 1px solid var(--control); }
.seg__a:hover { color: var(--text); background: var(--raised); }
.seg__a[aria-current="page"] { background: var(--primary); color: #fff; }

/* Zengin metin editörü (TinyMCE) panelin kontrol diline uyar */
.tox.tox-tinymce { border: 1px solid var(--control); border-radius: var(--radius-control); }
.tox .tox-toolbar__primary, .tox .tox-editor-header { background: var(--raised) !important; }
.tox .tox-statusbar { border-top-color: var(--rule) !important; }
textarea[data-editor="html"] { min-height: 320px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* Demo modu: giriş ekranındaki demo kutusu ve panel içi bilgi notu */
.auth__demo h2 { font-size: 16px; margin-bottom: 6px; }
.auth__demo .kv { margin: 12px 0 16px; }
.demo-note { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.demo-note i { font-size: 18px; flex: none; }
