/* Kasa Paneli — nötr koyu palet. Rakam = içerik; çevresi sessiz. Ham renk yalnızca :root'ta.
   Mobil öncelikli: temel kurallar telefon, min-width sorguları büyütür. */

:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --bg: #121212;
  --surface: #1b1b1b;
  --raised: #222222;
  --line: #2c2c2c;
  --line-strong: #3a3a3a;
  --text: #f4f4f5;
  --text-2: #a3a3a8;
  --text-3: #6f6f75;
  --on-accent: #ffffff;

  --pos: #22c55e;
  --neg: #f87171;
  --warn: #fbbf24;
  --blue: #60a5fa;
  --accent: #a78bfa;
  --accent-fill: #8b5cf6;

  --pos-soft: color-mix(in srgb, var(--pos) 14%, transparent);
  --neg-soft: color-mix(in srgb, var(--neg) 14%, transparent);
  --warn-soft: color-mix(in srgb, var(--warn) 14%, transparent);
  --blue-soft: color-mix(in srgb, var(--blue) 14%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --hover: color-mix(in srgb, var(--text) 6%, transparent);
  --focus: color-mix(in srgb, var(--accent) 65%, transparent);

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 9px;
  --r-pill: 999px;
  --ctl: 44px;
  --nav-w: 236px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --t-xs: 12px;
  --t-sm: 13px;
  --t-base: 15px;
  --t-md: 17px;
  --t-lg: clamp(20px, 1.2rem + 1vw, 24px);
  --t-hero: clamp(26px, 1.4rem + 1.6vw, 34px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 var(--t-base)/1.5 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a, summary, [role="tab"] { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--r-pill); background: var(--accent-fill); color: var(--on-accent); font-weight: 600; }
.skip:focus-visible { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- kabuk ---------- */
.app { min-height: 100dvh; }
.shell { min-height: 100dvh; }
.nav { display: none; }
.main { min-width: 0; width: 100%; padding: 16px 14px calc(var(--tab-h) + var(--safe-b) + 20px); }
@media (min-width: 900px) { .main { max-width: 1360px; justify-self: stretch; } }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-2); font-size: 11px; font-weight: 600; min-height: 44px; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab:hover { color: var(--text); }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--nav-w) 1fr; }
  .tabbar { display: none; }
  .nav {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; padding: 22px 14px;
    border-right: 1px solid var(--line); background: var(--surface);
  }
  .main { padding: 28px 32px 56px; }
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-fill); display: grid; place-items: center; color: var(--on-accent); flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: var(--t-xs); color: var(--text-2); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; transition: background-color .15s, color .15s; }
.nav-link svg { width: 20px; height: 20px; flex: none; }
.nav-link:hover { background: var(--hover); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.nav-spacer { flex: 1; }
.nav-user { padding: 12px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-2); }
.nav-user strong { display: block; color: var(--text); font-weight: 600; }

/* ---------- sayfa başlığı ---------- */
.page-head { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.page-title { margin: 0; font-size: var(--t-lg); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.page-sub { margin: 2px 0 0; color: var(--text-2); font-size: var(--t-sm); }
.head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (min-width: 640px) {
  .page-head { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
}
.live { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-xs); color: var(--text-2); padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--r-pill); min-height: 32px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 3px var(--pos-soft); }
.live[data-state="stale"] .live-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.live[data-state="off"] .live-dot { background: var(--neg); box-shadow: none; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px 0 6px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: var(--t-sm); font-weight: 500; margin-bottom: 8px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--text); background: var(--raised); }

/* ---------- durum ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-xs); font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); white-space: nowrap; min-height: 28px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status[data-on="1"] { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, transparent); background: var(--pos-soft); }
.status[data-on="1"]::before { background: var(--pos); box-shadow: 0 0 0 3px var(--pos-soft); }

/* ---------- çip ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 9px; border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); white-space: nowrap; }
.chip[data-tone="pos"] { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 40%, transparent); background: var(--pos-soft); }
.chip[data-tone="neg"] { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, transparent); background: var(--neg-soft); }
.chip[data-tone="warn"] { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.chip[data-tone="blue"], .chip[data-tone="mut"] { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, transparent); background: var(--blue-soft); }
.chip[data-tone="ops"], .chip[data-tone="info"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
button.chip { min-height: 32px; transition: background-color .15s, color .15s; }
button.chip:hover { color: var(--text); background: var(--raised); }
button.chip[aria-pressed="true"] { color: var(--text); background: var(--raised); border-color: var(--line-strong); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.kpi { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-top { display: flex; align-items: center; gap: 7px; font-size: var(--t-xs); font-weight: 500; color: var(--text-2); }
.kpi-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone, var(--text-3)) 18%, transparent); color: var(--tone, var(--text-2)); flex: none; }
.kpi-ico svg { width: 13px; height: 13px; }
.kpi[data-tone="pos"] { --tone: var(--pos); }
.kpi[data-tone="neg"] { --tone: var(--neg); }
.kpi[data-tone="warn"] { --tone: var(--warn); }
.kpi[data-tone="blue"], .kpi[data-tone="mut"] { --tone: var(--blue); }
.kpi[data-tone="ops"], .kpi[data-tone="info"] { --tone: var(--accent); }
.kpi-value { font-size: 20px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-foot { font-size: var(--t-xs); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Özet şeridi (25 Eyl 2026): alt satırda etiket + rakam, büyük rakam tonu, mor tonlu vurgu kartı. */
.kpi-sub { display: flex; align-items: baseline; gap: 6px; }
.kpi-sub-val { font-weight: 600; color: var(--text); }
.kpi-sub-val[data-tone="accent"] { color: var(--accent); }
.kpi-sub-val[data-tone="pos"] { color: var(--pos); }
.kpi[data-vtone="pos"] .kpi-value { color: var(--pos); }
.kpi[data-vtone="neg"] .kpi-value { color: var(--neg); }
.kpi[data-vtone="warn"] .kpi-value { color: #ff9a3c; }
.kpi[data-card="accent"] { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.kpi[data-card="accent"] .kpi-top { color: color-mix(in srgb, var(--accent) 55%, var(--text-2)); }

/* ---------- kartlar ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; } }
.card { display: block; width: 100%; text-align: left; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: inherit; min-width: 0; transition: border-color .15s, transform .12s; }
a.card:hover, button.card:hover { border-color: var(--line-strong); }
a.card:active, button.card:active { transform: scale(.995); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font-size: var(--t-md); font-weight: 700; letter-spacing: -.01em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
.card-sub { margin: 2px 0 12px; font-size: var(--t-xs); color: var(--text-2); }

/* iki ana rakam: kapsayıcı genişse yan yana, darsa alt alta; rakam ASLA kısaltılmaz,
   yazı boyutu kapsayıcıya göre küçülür (mono karakter ≈ 0,6em, en uzun değer ~15 karakter) */
.card, #kasa-panel { container-type: inline-size; }
.hero { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@container (min-width: 520px) { .hero { grid-template-columns: 1fr 1fr; } }
.hero-item { background: var(--raised); padding: 12px 14px; min-width: 0; container-type: inline-size; }
.hero-label { font-size: var(--t-xs); color: var(--text-2); font-weight: 500; margin: 0 0 4px; }
.hero-value { font-size: clamp(15px, calc((100cqw - 28px) / 9), 34px); font-weight: 600; line-height: 1.1; white-space: nowrap; letter-spacing: -.02em; }
.hero-foot { font-size: var(--t-xs); color: var(--text-2); margin-top: 4px; }
.hero-item[data-tone="blue"] .hero-value { color: var(--blue); }
.hero-item[data-tone="pos"] .hero-value { color: var(--pos); }
.hero-item[data-tone="neg"] .hero-value { color: var(--neg); }
.hero-item[data-tone="muted"] .hero-value { color: var(--text-2); font-size: var(--t-md); font-weight: 500; }

/* küçük istatistik ızgarası */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-top: 14px; }
@container (max-width: 360px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { min-width: 0; }
.stat-label { display: block; font-size: var(--t-xs); color: var(--text-2); margin-bottom: 1px; }
.stat-value { font-size: var(--t-base); font-weight: 600; white-space: nowrap; display: block; }
.tone-pos { color: var(--pos); }
.tone-neg { color: var(--neg); }
.tone-warn { color: var(--warn); }
.tone-blue, .tone-mut { color: var(--blue); }
.tone-accent, .tone-ops { color: var(--accent); }

/* meta satırları (hakediş, hesaplar) */
.meta { margin-top: 14px; border-top: 1px solid var(--line); }
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-row .k { color: var(--text-2); min-width: 0; }
.meta-row .v { font-weight: 600; white-space: nowrap; }
.meta-row .v small { font-family: var(--font); font-weight: 500; color: var(--text-2); font-size: var(--t-xs); margin-left: 6px; }
.warn-banner { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 12px; border-radius: var(--r-md); font-size: var(--t-sm); font-weight: 600; color: var(--neg); background: var(--neg-soft); border: 1px solid color-mix(in srgb, var(--neg) 40%, transparent); }
.warn-banner svg { width: 16px; height: 16px; flex: none; }
.card[data-pasif="1"] { border-color: color-mix(in srgb, var(--neg) 45%, var(--line)); }
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 520px) { .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-foot { margin-top: 12px; font-size: var(--t-xs); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- bölüm / liste ---------- */
.section { margin: 20px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-title { margin: 0; font-size: var(--t-base); font-weight: 600; }
.section-sub { margin: 0; font-size: var(--t-xs); color: var(--text-2); }
.box { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 54px; }
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; overflow-wrap: anywhere; }
.row-sub { font-size: var(--t-xs); color: var(--text-2); overflow-wrap: anywhere; }
.row-amt { font-size: var(--t-base); font-weight: 600; white-space: nowrap; }
.empty { padding: 32px 16px; text-align: center; color: var(--text-2); font-size: var(--t-sm); }

/* ---------- defter (günsonu / mutabakat gün kartı — set detayı vb. için saklanır) ---------- */
.days { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .days { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; } }
.ledger { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ledger[data-today="1"] { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.ledger-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.ledger-date { margin: 0; font-size: var(--t-base); font-weight: 600; }
.ledger-date small { display: block; font-size: var(--t-xs); color: var(--text-2); font-weight: 500; }
.ledger-total { padding: 8px 16px 14px; }
.ledger-total { container-type: inline-size; }
.ledger-total .hero-value { font-size: clamp(18px, calc((100cqw - 32px) / 9), 34px); }
.ledger-lines { border-top: 1px solid var(--line); padding: 6px 0; }
.line { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 7px 16px; font-size: var(--t-sm); }
.line-sign { font-weight: 700; text-align: center; color: var(--text-3); font-family: var(--mono); }
.line-sign[data-s="1"] { color: var(--pos); }
.line-sign[data-s="-1"] { color: var(--neg); }
.line-label { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.line-label small { display: block; color: var(--text-2); font-size: var(--t-xs); }
.line-value { font-weight: 600; white-space: nowrap; }
.line.sub { padding-top: 2px; padding-bottom: 2px; }
.line.sub .line-label { color: var(--text-2); font-size: var(--t-xs); padding-left: 10px; }
.line.sub .line-value { font-weight: 500; color: var(--text-2); font-size: var(--t-xs); }
.line.result { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.line.result .line-label { font-weight: 600; }
.line.result .line-value { font-size: var(--t-md); }
.ledger-foot { display: flex; gap: 8px 14px; flex-wrap: wrap; padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--text-2); }

/* ---------- ilerleme ---------- */
.bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--pos); transform-origin: left; }
.bar[data-tone="warn"] > span { background: var(--warn); }
.bar[data-tone="neg"] > span { background: var(--neg); }

/* ---------- sekmeler ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font-weight: 600; font-size: var(--t-sm); white-space: nowrap; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--raised); color: var(--text); }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: var(--t-xs); font-weight: 600; color: var(--text-2); }
.input, .select, .textarea { width: 100%; min-height: var(--ctl); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font-size: 16px; transition: border-color .15s; -webkit-appearance: none; appearance: none; }
.textarea { padding: 10px 14px; resize: vertical; min-height: 72px; }
.input::placeholder { color: var(--text-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--accent-fill); box-shadow: 0 0 0 3px var(--focus); }
.input[aria-invalid="true"] { border-color: var(--neg); }
.form-err { color: var(--neg); font-size: var(--t-sm); min-height: 1.2em; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.seg button { min-height: 40px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-weight: 600; font-size: var(--t-sm); transition: background-color .15s, color .15s; }
.seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--c, var(--accent)) 20%, transparent); color: var(--c, var(--accent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--accent)) 45%, transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl); padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--raised); color: var(--text); font-weight: 600; font-size: var(--t-sm); white-space: nowrap; transition: background-color .15s, transform .12s, border-color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: color-mix(in srgb, var(--text) 12%, var(--surface)); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-fill) 85%, #fff); }
.btn-danger { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, transparent); background: var(--neg-soft); }
.btn-danger:hover { background: color-mix(in srgb, var(--neg) 22%, transparent); }
.btn-sm { min-height: 36px; padding: 0 12px; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.btn-icon svg { width: 16px; height: 16px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.search { position: relative; }
.search .input { padding-left: 40px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--text-2); pointer-events: none; }

/* ---------- dialog ---------- */
dialog.sheet { border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; background: var(--surface); color: var(--text); padding: 0; margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92dvh; box-shadow: 0 -12px 40px rgba(0, 0, 0, .4); overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .58); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.sheet-title { margin: 0; font-size: var(--t-md); font-weight: 700; }
.sheet-body { padding: 16px 18px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; max-height: 80dvh; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 600px) {
  dialog.sheet { margin: auto; width: min(520px, calc(100vw - 24px)); border-radius: var(--r-lg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
  .sheet-body { padding-bottom: 18px; }
}

/* ---------- giriş ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(380px, 100%); padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { margin: 0; font-size: var(--t-lg); }
.login-card p { margin: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); transform: translate(-50%, 12px); z-index: 60; padding: 10px 16px; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-weight: 600; font-size: var(--t-sm); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: calc(100vw - 32px); text-align: center; }
.toast[data-show="1"] { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="neg"] { background: var(--neg); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* ---------- ayrıntı / anahtar-değer ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--t-sm); margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.secret { display: inline-flex; align-items: center; gap: 8px; }
.secret button { border: 1px solid var(--line); background: var(--raised); color: var(--text-2); border-radius: var(--r-pill); font-size: 11px; font-weight: 600; padding: 0 9px; min-height: 28px; }
.secret button:hover { color: var(--text); }
.only-mobile { display: block; }
.only-desktop { display: none; }
@media (min-width: 700px) { .only-desktop { display: block; } .only-mobile { display: none; } }
.acc-card { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.acc-card:first-child { border-top: 0; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-sm); }
.table th { text-align: left; padding: 10px 14px; font-size: var(--t-xs); font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; background: var(--surface); }
.table tbody tr:first-child td { border-top: 0; }
.table .r { text-align: right; }
.table .strong { font-weight: 700; font-size: var(--t-base); }
.table td.wrap { white-space: normal; overflow-wrap: anywhere; min-width: 260px; }
.table .cell-sub { display: block; font-size: 11px; color: var(--text-2); font-family: var(--font); font-weight: 400; }
.table tr[data-today="1"] td { background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.table tr.total td { background: var(--raised); font-weight: 700; border-top: 2px solid var(--line-strong); }
.table tr.detail td { background: var(--raised); white-space: normal; padding: 8px 14px 12px 40px; }
.detail-list { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-xs); color: var(--text-2); }
.detail-list span { display: inline-flex; gap: 6px; align-items: baseline; }
.detail-list b { color: var(--text); font-weight: 600; }
.table.rows-link tbody tr:not(.total) { cursor: pointer; }
.table.rows-link tbody tr:not(.total):hover td { background: var(--raised); }
.row-link { font-weight: 600; }
.row-link:hover { text-decoration: underline; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-family: var(--mono); font-variant-numeric: tabular-nums; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.table-note { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--text-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table.sticky th:first-child, .table.sticky td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.rangebar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.rangebar-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rangebar-dates .field { width: auto; }
.rangebar-dates .input { min-height: 40px; width: 150px; padding: 0 10px; }
.rangebar-dates .input::-webkit-calendar-picker-indicator { filter: invert(.7); }
.range-info { font-size: var(--t-xs); margin-left: 4px; }
@media (min-width: 900px) { .rangebar { flex-direction: row; align-items: center; justify-content: space-between; } }
.loading { padding: 40px; text-align: center; color: var(--text-2); }
.skeleton { height: 120px; border-radius: var(--r-lg); background: var(--surface); animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .5; } to { opacity: 1; } }

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

/* ---- Genel bakış kasa kartı (24 Eyl 2026, Downloads/kasa-karti.html) ---- */
.kc-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { .kc-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; } }
.kc { display: flex; flex-direction: column; gap: 11px; padding: 16px 18px; border-radius: 16px; background: #121317; border-color: #262830; }
.kc[data-pasif="1"] { border-color: #6b2424; }
.kc-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid #262830; }
.kc-eyebrow { font-size: 11px; letter-spacing: 4px; color: #8b8f99; }
.kc-name { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: 4px; line-height: 1; color: #fff; text-align: center; overflow-wrap: anywhere; }
.kc-status { display: flex; align-items: center; gap: 10px; margin-top: 2px; flex-wrap: wrap; justify-content: center; }
.kc-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #0f1f16; border: 1px solid #1f4a30; color: #3ddc84; }
.kc-pill i { width: 8px; height: 8px; border-radius: 999px; background: #3ddc84; }
.kc-pill[data-on="0"] { background: #2a1212; border-color: #6b2424; color: #ff8080; }
.kc-pill[data-on="0"] i { background: #ff6b6b; }
.kc-seen { font-size: 12px; color: #8b8f99; }
/* Kasa kartı v2 (25 Eyl 2026): bölünmüş rozet (durum | hesap sayısı), kutu alt satırı, sıra/pay, kehribar teslimat. */
.kc-pill { padding: 0; gap: 0; overflow: hidden; }
.kc-pill-l { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; }
.kc-pill-r { padding: 4px 10px; background: #153323; color: #fff; border-left: 1px solid #1f4a30; }
.kc-pill-r b { font-weight: 700; }
.kc-pill-r span { color: #7fd8a4; }
.kc-pill-r .kc-pill-of { color: #6d9a80; }
.kc-pill[data-on="0"] .kc-pill-r { background: #3a1616; border-left-color: #6b2424; }
.kc-pill[data-on="0"] .kc-pill-r span { color: #ff8080; }
.kc-pill[data-on="0"] .kc-pill-r .kc-pill-of { color: #b56a6a; }
.kc-tile-foot-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.kc-tile-foot-row > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-kom { font-weight: 600; color: #b39dff; }
.kc-rank { color: #ffd08a; }
.kc-tile[data-tone="amber"] .kc-tile-value { color: #ffb547; }
.kc-tile[data-tone="orange"] .kc-tile-foot { color: #b08a5a; }
.kc-warn { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #2a1212; border: 1px solid #6b2424; border-radius: 10px; color: #ff8080; }
.kc-warn svg { flex: none; width: 20px; height: 20px; }
.kc-warn-title { font-size: 13px; font-weight: 700; }
.kc-warn-sub { font-size: 11px; color: #d39a9a; }
.kc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kc-tile { container-type: inline-size; padding: 9px 12px; background: #191b21; border-radius: 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; border: 1px solid transparent; }
.kc-tile-label { font-size: 11px; letter-spacing: 1.5px; font-weight: 600; color: #8b8f99; }
.kc-tile-value { font-size: clamp(14px, calc((100cqw - 4px) / 6.2), 19px); font-weight: 700; color: #d3d6dd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-tile-foot { font-size: 11px; color: #8b8f99; }
.kc-tile[data-tone="pos"] .kc-tile-value { color: #3ddc84; }
.kc-tile[data-tone="neg"] .kc-tile-value { color: #ff6b6b; }
.kc-tile[data-tone="accent"] .kc-tile-value { color: #b39dff; }
.kc-tile[data-tone="orange"] { background: #1f150a; border-color: #5a3a14; }
.kc-tile[data-tone="orange"] .kc-tile-label { color: #ffd08a; }
.kc-tile[data-tone="orange"] .kc-tile-value { color: #ff9a3c; }
.kc-tile[data-tone="purple"] { background: #14111f; border-color: #2a2440; }
.kc-tile[data-tone="purple"] .kc-tile-label { color: #c8b8ff; }
.kc-tile[data-tone="purple"] .kc-tile-value { color: #b39dff; }
.kc-tile[data-tone="green"] { background: #0f1f16; border-color: #1f4a30; }
.kc-tile[data-tone="green"] .kc-tile-label { color: #7fd8a4; }
.kc-tile[data-tone="green"] .kc-tile-value { color: #3ddc84; }
.kc-tile[data-tone="red"] { background: #2a1212; border-color: #6b2424; }
.kc-tile[data-tone="red"] .kc-tile-label { color: #ff8080; }
.kc-tile[data-tone="red"] .kc-tile-value { color: #ff6b6b; }
.kc-tile[data-tone="red"] .kc-tile-foot { color: #d39a9a; }
.kc-box { display: flex; flex-direction: column; padding: 2px 12px; background: #0f1014; border: 1px solid #1f2128; border-radius: 10px; }
.kc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid #1f2128; }
.kc-row:last-child { border-bottom: 0; }
.kc-row-label { font-size: 12px; font-weight: 600; color: #9aa0ac; }
.kc-row-sub { font-size: 10px; color: #6d7280; }
.kc-row-value { font-size: 15px; font-weight: 600; color: #9aa0ac; white-space: nowrap; }
.kc-row-value.tone-blue { color: #7cc4ff; }
.kc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid #1f2128; font-size: 11px; color: #6d7280; flex-wrap: wrap; }
.kc-foot b { color: #d3d6dd; font-weight: 600; }

/* ---------- Kasa detay v2 (25 Eyl 2026, kasa-detay.html) ---------- */
.kd-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 0 0 16px; }
.kd-head-l { justify-self: start; }
.kd-head-r { justify-self: end; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kd-center { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.kd-eyebrow { font-size: 11px; letter-spacing: 4px; color: #8b8f99; }
.kd-name { margin: 0; font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: 5px; line-height: 1; color: #fff; overflow-wrap: anywhere; }
.kd-sub { margin: 0; font-size: 12px; color: #8b8f99; }
.kd-user { padding: 7px 12px; background: #16171c; border: 1px solid #262830; border-radius: 999px; font-size: 12px; color: #b4b8c2; white-space: nowrap; }
.kd-hero { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.kd-hero-card { padding: 18px 22px; background: #16171c; border: 1px solid #262830; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; container-type: inline-size; }
.kd-hero-label { font-size: 11px; letter-spacing: 1.5px; font-weight: 600; color: #8b8f99; }
.kd-hero-value { font-size: clamp(22px, calc((100cqw - 44px) / 8), 40px); font-weight: 700; line-height: 1; color: #d3d6dd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-hero-foot { font-size: 12px; color: #8b8f99; }
.kd-formula { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.kd-formula i { font-style: normal; color: #4a4e58; }
.kd-formula .tone-text { color: #d3d6dd; }
.kd-hero-card[data-tone="blue"] { background: #0f1a2a; border-color: #1f3a5a; }
.kd-hero-card[data-tone="blue"] .kd-hero-label { color: #8fc3f0; }
.kd-hero-card[data-tone="blue"] .kd-hero-value { color: #7cc4ff; }
.kd-hero-card[data-tone="red"] { background: #1e1113; border-color: #5a2028; }
.kd-hero-card[data-tone="red"] .kd-hero-label { color: #ff9d9d; }
.kd-hero-card[data-tone="red"] .kd-hero-value { color: #ff6b6b; }
.kd-hero-card[data-tone="green"] { background: #0f1f16; border-color: #1f4a30; }
.kd-hero-card[data-tone="green"] .kd-hero-label { color: #7fd8a4; }
.kd-hero-card[data-tone="green"] .kd-hero-value { color: #3ddc84; }
.kd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kd-tiles .kc-tile { padding: 14px 16px; border: 1px solid #262830; border-radius: 12px; }
.kd-tiles .kc-tile-value { font-size: clamp(16px, calc((100cqw - 4px) / 6.2), 22px); }
.kd-tiles .kc-tile-foot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-bottom { display: grid; grid-template-columns: 1fr; gap: 12px; }
.kd-list { display: flex; flex-direction: column; background: #121317; border: 1px solid #262830; border-radius: 12px; overflow: hidden; }
.kd-list-head { padding: 10px 16px; font-size: 11px; letter-spacing: 1.5px; font-weight: 600; color: #8b8f99; border-bottom: 1px solid #1f2128; }
.kd-list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #1f2128; font-size: 13px; }
.kd-list-row:last-child { border-bottom: 0; }
.kd-list-label { color: #d3d6dd; min-width: 0; }
.kd-list-r { display: flex; gap: 10px; align-items: center; flex: none; }
.kd-list-val { font-weight: 600; color: #fff; }
.kd-list-r small { font-size: 11px; color: #6d7280; }
.kd-y-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kd-y-title { font-size: 14px; font-weight: 600; color: #fff; }
.kd-y-sub { font-size: 11px; color: #8b8f99; }
.kd-y-amt { font-size: 16px; font-weight: 700; }
@media (min-width: 760px) {
  .kd-hero { grid-template-columns: 1.2fr 1fr; }
  .kd-bottom { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) { .kd-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 640px) and (max-width: 999px) { .kd-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .kd-head { grid-template-columns: 1fr auto; grid-template-areas: "l r" "c c"; }
  .kd-head-l { grid-area: l; }
  .kd-head-r { grid-area: r; }
  .kd-center { grid-area: c; padding-bottom: 12px; border-bottom: 1px solid #262830; }
  .kd-user { display: none; }
  .kd-hero-card[data-tone="red"], .kd-hero-card[data-tone="green"] { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 16px; }
  .kd-hero-card[data-tone="red"] .kd-hero-value, .kd-hero-card[data-tone="green"] .kd-hero-value { font-size: 20px; }
  .kd-hero-card[data-tone="red"] .kd-hero-foot, .kd-hero-card[data-tone="green"] .kd-hero-foot { display: none; }
}

/* ---------- Blokeler v2 (25 Eyl 2026, blokeler.html) ---------- */
.bl-kpis { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 900px) { .bl-kpis { grid-template-columns: 1.1fr 2fr 1fr; gap: 12px; } }
.bl-kpi { padding: 14px 18px; background: #16171c; border: 1px solid #262830; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bl-kpi-label { font-size: 11px; letter-spacing: 1.5px; font-weight: 600; color: #8b8f99; }
.bl-kpi-label-row { display: flex; justify-content: space-between; }
.bl-kpi-value { font-size: 28px; font-weight: 700; line-height: 1; color: #d3d6dd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-kpi-foot { font-size: 12px; color: #8b8f99; }
.bl-kpi[data-tone="orange"] { background: #1f150a; border-color: #5a3a14; }
.bl-kpi[data-tone="orange"] .bl-kpi-label { color: #ffd08a; }
.bl-kpi[data-tone="orange"] .bl-kpi-value { color: #ff9a3c; }
.bl-kpi[data-tone="orange"] .bl-kpi-foot { color: #b08a5a; }
.bl-kpi[data-tone="red"] .bl-kpi-value { color: #ff6b6b; }
.bl-kpi-dist { gap: 10px; }
.bl-bar-chart { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.bl-bar-chart span { display: block; min-width: 2px; }
.bl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #d3d6dd; }
.bl-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bl-legend-item i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.bl-legend-item b { font-weight: 600; }
.only-mobile-inline { display: none; color: #8b8f99; }
.bl-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bl-sort { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #8b8f99; }
.bl-sort-label { margin-right: 4px; }
.bl-sort-btn { padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #8b8f99; font: inherit; font-size: 12px; cursor: pointer; }
.bl-sort-btn[aria-pressed="true"] { background: #16171c; border-color: #262830; color: #d3d6dd; }
.bl-sort-btn:focus-visible, .bl-group-head:focus-visible, .bl-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bl-groups { display: flex; flex-direction: column; gap: 10px; }
.bl-group { background: #121317; border: 1px solid #262830; border-radius: 12px; overflow: hidden; }
.bl-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 12px 18px; background: #16171c; border: 0; border-bottom: 1px solid transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bl-group[data-open="1"] .bl-group-head { border-bottom-color: #262830; }
.bl-group-l, .bl-group-r { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bl-group-r { gap: 14px; flex: none; }
.bl-group-name { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.bl-group-count, .bl-group-sublabel { font-size: 12px; color: #8b8f99; }
.bl-group-sum { font-size: 16px; font-weight: 700; color: #ff9a3c; }
.bl-caret { font-size: 12px; color: #6d7280; }
.bl-top { padding: 2px 8px; background: #2a1212; border: 1px solid #6b2424; border-radius: 6px; font-size: 11px; color: #ff8080; white-space: nowrap; }
.bl-row { display: grid; grid-template-columns: 1.5fr 1.8fr 1fr 2fr 1fr; gap: 0 16px; align-items: center; padding: 12px 18px; font-size: 14px; border-bottom: 1px solid #1f2128; }
.bl-row:last-child { border-bottom: 0; }
.bl-row-head { padding: 8px 18px; font-size: 11px; letter-spacing: 1.5px; font-weight: 600; color: #6d7280; }
.bl-row .r { text-align: right; }
.bl-bank { color: #d3d6dd; }
.bl-holder { font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.bl-amt { font-weight: 700; text-align: right; color: #ff9a3c; white-space: nowrap; }
.bl-note { min-width: 0; }
.bl-note-plain { font-size: 12px; color: #8b8f99; }
.bl-note-chip { display: inline-block; padding: 3px 8px; background: #14111f; border: 1px solid #2a2440; border-radius: 6px; font-size: 11px; color: #c8b8ff; overflow-wrap: anywhere; }
.bl-age { text-align: right; font-size: 12px; color: #8b8f99; white-space: nowrap; }
.bl-row[data-old="1"] .bl-age { color: #ff8080; }
.bl-more { display: block; width: 100%; padding: 10px 18px; background: transparent; border: 0; border-top: 1px solid #1f2128; color: #7cc4ff; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
@media (max-width: 699px) {
  .bl-kpi-value { font-size: 24px; }
  .bl-legend { gap: 4px 10px; font-size: 11px; }
  .bl-legend-item b { display: none; }
  .only-mobile-inline { display: inline; }
  .bl-group-sublabel, .bl-caret { display: none; }
  .bl-group-head { padding: 10px 14px; }
  .bl-row-head { display: none; }
  .bl-row { grid-template-columns: 1fr auto; grid-template-areas: "holder amt" "bank age" "note note"; gap: 4px 10px; padding: 12px 14px; }
  .bl-holder { grid-area: holder; font-size: 15px; }
  .bl-amt { grid-area: amt; font-size: 17px; }
  .bl-bank { grid-area: bank; font-size: 12px; color: #8b8f99; }
  .bl-age { grid-area: age; }
  .bl-note { grid-area: note; }
  .bl-note-plain { display: none; }
}

/* ---- Google OTP girişi (24 Eyl 2026) ---- */
.otp-setup { display: flex; flex-direction: column; gap: 12px; }
.otp-qr { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: var(--r-md); }
.otp-qr svg { width: 184px; height: 184px; display: block; }
.otp-secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.otp-secret code { flex: 1 1 auto; font-size: 14px; letter-spacing: .06em; word-break: break-all; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.otp-input { font-family: var(--mono); font-size: 24px; letter-spacing: .35em; text-align: center; }

/* ---- Aktiflik süreleri (24 Eyl 2026) ---- */
.ak-box { padding: 4px 14px; }
.ak-day { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ak-day:last-child { border-bottom: 0; }
.ak-day-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: var(--t-sm); }
.ak-day[data-today="1"] .ak-day-head strong { color: var(--warn); }
.ak-sum { font-size: var(--t-xs); color: var(--text-2); }
.ak-strip { position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--raised) 0 8px, var(--surface) 8px 16px); overflow: hidden; border: 1px solid var(--line); }
.ak-seg { position: absolute; top: 0; bottom: 0; }
.ak-seg[data-s="on"] { background: var(--pos); }
.ak-seg[data-s="off"] { background: var(--neg); }
.ak-seg[data-s="none"] { background: transparent; }
.ak-ticks { position: relative; height: 14px; margin-top: 3px; font-size: 10px; color: var(--text-3); font-family: var(--mono); }
.ak-ticks span { position: absolute; transform: translateX(-50%); }
.ak-ticks span:first-child { transform: none; }
.ak-ticks span:last-child { transform: translateX(-100%); }
.ak-detail { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* GARANTI: kasa kimlik çizgisi (kart üstü) + eski-veri uyarısı */
.kc[data-kasa="tarz"] { border-top: 3px solid #ef4444; }
.kc[data-kasa="hamdibaba"] { border-top: 3px solid #22c55e; }
.kc-warn[data-tone="warn"] { background: rgba(245, 180, 60, .1); color: #f5d76e; }
