/* ===== base =====
   7DegreeMarketing Panel — "Seyir Defteri" (bearing-instrument) redesign.
   Koyu-öncelikli, Linear-tarzı sıkı/yoğun grid + sarı-siyah + pusula/bearing imza.
   Kaynak: design-spec.md (v2, pivot uygulanmış). Build adımı yok, saf CSS. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }

:root, html[data-theme="dark"] {
  /* ── Nötr — koyu tema VARSAYILAN (dark-first). Linear'ın nötr/soğuk grafit dili. ── */
  --ink-950: #0b0b0d;
  --ink-900: #131317;
  --ink-800: #1b1b21;
  --ink-700: #24242c;
  --hairline: #2e2e37;
  --hairline-strong: #3a3a45;

  --text-100: #f2efe6;
  --text-300: #c7c3b6;
  --text-500: #8d8a80;
  --text-700: #7a7668;

  /* ── Altın — tek marka vurgusu ── */
  --gold-300: #ffe28a;
  --gold-500: #f5c518;
  --gold-600: #d99e0b;
  --gold-700: #a97906;
  --gold-ink: #1c1400;

  /* ── Durum renkleri ── */
  --ok-500: #3fae5c;
  --ok-ink: #dff4e4;
  --warn-500: #d99a3d;
  --warn-ink: #f8ecd8;
  --danger-500: #e2555a;
  /* .btn-danger:hover ZEMİNİ. #e2555a üzerinde beyaz metin 3,7:1 kalıyordu
     (WCAG AA 4,5:1). Tema denetimi hover durumunu gezmediği için yakalanmamıştı.
     Yalnız hover zemini koyulaşır; --danger-500 (metin/kenarlık) DEĞİŞMEZ. */
  --danger-600: #b0343a;
  --danger-ink: #fbdee0;
  --info-500: #2fb8ad;
  --info-ink: #d8f4f1;

  --elev-modal: 0 24px 48px -18px rgba(0,0,0,.6);

  /* ── Tipografi ── */
  /* TİPOGRAFİ (2026-08-11): Poppins başlıklarda (kullanıcı tercihi — geometrik, güçlü karakter),
     Inter gövde/veride (yoğun tablo ve sayılarda okunurluğu Poppins'ten belirgin yüksek; küçük
     puntoda rakamlar birbirine karışmaz). JetBrains Mono sayısal/kod alanlarda hizalı rakam verir. */
  --font-display: 'Poppins', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --fs-display: 32px;
  --fs-h1: 24px;
  --fs-h2: 18px;
  --fs-h3: 15px;
  --fs-body: 14px;
  --fs-sm: 13px;
  --fs-xs: 11px;
  --fs-mono-lg: 22px;

  --lh-tight: 1.1;
  --lh-snug: 1.35;
  --lh-body: 1.55;

  --fw-regular: 400;
  --fw-medium: 550;
  --fw-bold: 700;

  --tracking-tight: -0.01em;
  --tracking-label: 0.08em;

  /* ── Spacing / radius / motion ── */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 56px; --sp-10: 72px; --sp-11: 96px;

  --radius-1: 2px;
  --radius-2: 4px;
  --radius-3: 6px;
  --radius-4: 10px;
  --radius-full: 999px;

  --ease-instrument: cubic-bezier(0.2, 0, 0, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-linear: linear;

  --dur-instant: 100ms;
  --dur-fast: 160ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
  --dur-sequence: 900ms;

  /* ── LEGACY ALIAS KATMANI — app.js inline style'ları bunları kullanıyor, SİLME ── */
  --accent: var(--gold-500);
  --danger: var(--danger-500);
  --success: var(--ok-500);
  --warn: var(--warn-500);
  --warn-soft: var(--warn-ink);
  --muted: var(--text-500);
  --ink: var(--text-100);
  --ink-2: var(--text-300);
  --line: var(--hairline);
  --paper: var(--ink-950);
  --paper-2: var(--ink-800);
  --bg2: var(--ink-900);
  --surface-2: var(--ink-800);
  --green2: var(--ok-500);
  --mono: var(--font-mono);
  --serif: var(--font-display);
  --r: var(--radius-3);
  --r-lg: var(--radius-4);
  --radius: var(--radius-3);
  --s-3: var(--sp-3);
  --s-4: var(--sp-4);
  --s-8: var(--sp-8);
  --t: var(--dur-base) var(--ease-instrument);
}

html[data-theme="light"] {
  --ink-950: #17181c;
  --ink-900: #26272c;
  --ink-800: #3a3b42;
  --ink-700: #55565e;

  --paper-000: #fbf9f2;
  --paper-100: #f2efe4;
  --paper-200: #e8e3d3;
  --hairline: #ddd6c2;
  --hairline-strong: #cabf9f;

  --text-100: #17181c;
  --text-300: #46464c;
  --text-500: #625f52;
  --text-700: #7a7565;

  --gold-500: #d99e0b;
  --gold-600: #b8830a;
  /* KONTRAST (modernizasyon 2026-08-14): açık tema semantik renkleri daha önce yalnızca en açık
     yüzeye (--paper-000 #fbf9f2) göre ayarlanmıştı; en KOYU yüzeyde (--paper-200 #e8e3d3 — avatar,
     brand-mark, çip) 4.5:1'in altına düşüyorlardı (gold-700 4.27, ok-500 4.21, info-500 3.98,
     warn-500 3.85). Değerler en koyu yüzeyde >=4.55 olacak şekilde koyulaştırıldı; böylece daha
     açık tüm yüzeylerde de otomatik geçiyorlar. Ton korundu, yalnızca parlaklık düştü. */
  --gold-700: #845e05;
  --gold-ink: #241900;

  --ok-500: #22733c;
  --ok-ink: #ecf8ef;
  --warn-500: #8c5a13;
  --warn-ink: #fbf1de;
  --danger-500: #b6383d;
  --danger-600: #b6383d;   /* açık tema zaten 5,8:1 — davranış aynen korunur */
  --danger-ink: #fbe6e7;
  --info-500: #137169;
  --info-ink: #e4f6f4;

  --elev-modal: 0 20px 44px -16px rgba(23,24,28,.18);

  /* paper ailesi kanonik ismi temaya göre değiştiği için burada yeniden eşleniyor */
  --paper: var(--paper-000);
  --paper-2: var(--paper-200);
  --bg2: var(--paper-100);
  --surface-2: var(--paper-200);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-100);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] body { background: var(--paper-000); }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: var(--tracking-tight); }
a { color: var(--gold-500); }
html[data-theme="light"] a { color: var(--gold-700); }
svg { display: block; }
::selection { background: var(--gold-500); color: var(--gold-ink); }

/* ── Odak göstergesi — WCAG 2.4.13 uyumlu, her yüzeye karşı kontrastı doğrulanmış ── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}
html[data-theme="light"] :focus-visible { outline-color: var(--gold-700); }

.skip-link {
  position: fixed;
  top: -48px;
  left: var(--sp-3);
  z-index: 10000;
  background: var(--gold-500);
  color: var(--gold-ink);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-2);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  transition: top var(--dur-fast) var(--ease-instrument);
}
.skip-link:focus { top: var(--sp-3); }

/* ── Kaydırma çubuğu (ince, mat) ── */
* { scrollbar-width: thin; scrollbar-color: var(--hairline-strong) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: var(--radius-full); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ── prefers-reduced-motion: reduce — global kural ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Genel yardımcı sınıflar (utility) ── */
.hidden, .hide { display: none !important; }
/* Not (bugfix — chrome-devtools MCP ile teşhis edildi): genel bir ".show{display:block!important}"
   utility'si BİLEREK KALDIRILDI. Kod tabanında .show sınıfı yalnızca 3 elementte kullanılıyor
   (#app → grid, .load-overlay → flex, .load-mini → flex) ve hiçbiri block istemiyor; tek bir
   !important block kuralı bunların hepsini eziyordu (örn. #app.app.show grid yerine block olup
   sidebar'ın tam genişlik akışa girmesine, layout'un tamamen çökmesine yol açıyordu). Her bileşen
   kendi .show varyantını kendi selector'ünde tanımlıyor — bkz. #app.app.show (shell-nav),
   .load-overlay.show / .load-mini.show (overlays, sadece opacity/visibility/transform değiştiriyor,
   display'e hiç dokunmuyor çünkü taban kuralları zaten display:flex).
   Yeni bir öğeye .show class'ı eklenecekse, o öğenin KENDİ display değerini belirten özel bir
   `.öğe-sınıfı.show { display: ...; }` kuralı yazılmalı — bu genel utility'ye asla geri dönülmemeli. */
.dim { color: var(--text-500); }
.text-sm { font-size: var(--fs-sm); }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-3 { gap: var(--sp-3); }
.spacer { flex: 1 1 auto; }
.mb-4 { margin-bottom: var(--sp-4); }
.mt-4 { margin-top: var(--sp-4); }
.clickable { cursor: pointer; }
.accent { color: var(--gold-500); }
html[data-theme="light"] .accent { color: var(--gold-700); }
.lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); }

/* Tabular/mono rakam okuması — kredi, süre, tarih, tel, kod */
.cell-mono, .cc-num, .cc-dt, .sp-dur, .sp-num, .credit-meter-value,
.stat-value, .cc-stat-val, .um-credit-lbl, .uc-credit-val { font-variant-numeric: tabular-nums; }


/* ===== shell-nav =====
   App grid shell, sidebar, brand, nav, credit meter, sidebar user, main region,
   topbar, hamburger/off-canvas, bottom-nav, bottom-sheet, command palette,
   splash loader, login ekranı. */

/* ── App shell grid ── */
#app.app { display: none; grid-template-columns: 264px 1fr; min-height: 100vh; width: 100%; background: var(--ink-950); }
html[data-theme="light"] #app.app { background: var(--paper-000); }
/* !important yok: artık çakışan bir genel ".show" utility'si olmadığı için normal kaskad
   (ID + 2 class, #app.app'ten daha spesifik) bu kuralın kazanmasına yetiyor. */
#app.app.show { display: grid; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-4);
  background: var(--ink-900);
  border-right: 1px solid var(--hairline);
  overflow-y: auto;
  overscroll-behavior: contain;
}
html[data-theme="light"] .sidebar { background: var(--paper-100); }

.sidebar-brand { display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-1) var(--sp-2); }
.login-brand { display: flex; align-items: center; gap: var(--sp-3); }

.brand-mark {
  position: relative;
  width: 34px; height: 34px;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-800);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-2);
}
html[data-theme="light"] .brand-mark { background: var(--paper-200); }
.brand-mark::after {
  /* logodaki pivot noktası — ince halka, dolgu yok */
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
}
.brand-num { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 17px; color: var(--text-100); line-height: 1; }
.brand-degree { font-family: var(--font-display); font-size: 10px; color: var(--gold-500); align-self: flex-start; }
html[data-theme="light"] .brand-degree { color: var(--gold-700); }
.brand-name { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 13px; line-height: 1.25; }
.brand-degree-word { color: var(--gold-500); }
html[data-theme="light"] .brand-degree-word { color: var(--gold-700); }
.brand-mk { color: var(--text-100); }

.nav { display: flex; flex-direction: column; gap: var(--sp-5); flex: 1 1 auto; }
.nav-section { display: flex; flex-direction: column; gap: 1px; }
/* .admin-only: görünürlüğü tamamen app.js'in inline style.display atamasıyla yönetiliyor (bkz. enterApp()) — buradaki kural sadece sözleşme/coverage için, davranışı override etmez. */
.nav-section.admin-only { display: flex; }
.nav-section-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-500);
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
}
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-2);
  color: var(--text-300);
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: background var(--dur-fast) var(--ease-instrument), color var(--dur-fast) var(--ease-instrument);
}
.nav-item:hover { background: var(--ink-800); color: var(--text-100); }
html[data-theme="light"] .nav-item:hover { background: var(--paper-200); }
.nav-item.active {
  background: var(--ink-800);
  color: var(--text-100);
}
html[data-theme="light"] .nav-item.active { background: var(--paper-200); }
.nav-item.active::before {
  content: "";
  position: absolute; left: -1px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--gold-500);
  border-radius: var(--radius-1);
}
html[data-theme="light"] .nav-item.active::before { background: var(--gold-700); }
/* İkonlar artık glyph/emoji değil, Lucide SVG (tek stil, 1.75 stroke) — tasarım sistemi
   "Anti-Patterns: Emojis as icons" kuralı. Kap ölçüsü 16px sabit kalıyor ki hizalama bozulmasın. */
.nav-icon { width: 16px; height: 16px; text-align: center; flex: 0 0 auto; opacity: .85; display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 16px; height: 16px; }
.nav-item.active .nav-icon { opacity: 1; }
.btn-icon svg { width: 15px; height: 15px; }
.lf-icon svg { width: 17px; height: 17px; }
.nav-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-full);
  font-size: 10px; font-family: var(--font-mono); color: var(--text-500);
}
.nav-badge:empty { display: none; }
/* MUTABAKAT UYARISI: defter ile gerçek bakiye arasında fark varsa kırmızı sayaç.
   Renk TEK BAŞINA anlam taşımaz — sayı + title metni de var (WCAG "color-not-only"). */
.nav-badge.alarm {
  background: var(--danger-500, #ef4444);
  border-color: var(--danger-500, #ef4444);
  color: #fff;
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .nav-badge.alarm { animation: nav-badge-alarm 1.6s ease-in-out 3; }
}
@keyframes nav-badge-alarm {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.credit-meter { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--radius-3); }
.credit-meter-header { display: flex; align-items: center; justify-content: space-between; }
.credit-meter-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); }
.credit-meter-value { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-100); }
.credit-meter-bar { height: 4px; background: var(--hairline); border-radius: var(--radius-1); overflow: hidden; }
.credit-meter-fill { height: 100%; background: var(--gold-500); border-radius: var(--radius-1); transition: width var(--dur-slow) var(--ease-instrument), background var(--dur-fast); }
html[data-theme="light"] .credit-meter-fill { background: var(--gold-700); }
.credit-meter-fill.is-critical, .credit-meter-fill.critical { background: var(--danger-500); }
.credit-meter-used { font-size: var(--fs-xs); color: var(--text-500); }

.sidebar-user { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--hairline); }
.user-avatar {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-800); border: 1px solid var(--hairline-strong);
  font-size: 12px; font-weight: var(--fw-bold); color: var(--text-100);
}
html[data-theme="light"] .user-avatar { background: var(--paper-200); }
.user-info { flex: 1 1 auto; min-width: 0; }
.user-name { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-email { font-size: var(--fs-xs); color: var(--text-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; min-width: 44px; min-height: 44px;
  border: 1px solid transparent; border-radius: var(--radius-2);
  background: transparent; color: var(--text-300); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-instrument), border-color var(--dur-fast), color var(--dur-fast);
}
@media (min-width: 861px) { .icon-btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px; } }
.icon-btn:hover { background: var(--ink-800); color: var(--text-100); border-color: var(--hairline); }
html[data-theme="light"] .icon-btn:hover { background: var(--paper-200); }
.icon-btn svg { width: 16px; height: 16px; }

/* ── Main / topbar ── */
.main { display: flex; flex-direction: column; height: 100vh; min-height: 0; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--hairline);
  background: var(--ink-800);
  position: sticky; top: 0; z-index: 20;
  scroll-margin-top: 64px;
  min-width: 0; /* bugfix (qa v2 #2): flex item'ların content-tabanlı min-width:auto'su yatay
                   taşmaya izin veriyordu (dikey scrollbar viewport'tan pay aldığında özellikle
                   belirginleşiyordu, mobilde .inbox-status sağ kenardan taşıyordu) */
}
html[data-theme="light"] .topbar { background: var(--paper-000); }
.topbar-left { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; flex: 1 1 auto; }
.topbar-left > div { min-width: 0; }
.topbar-title { font-family: var(--font-display); font-size: var(--fs-h1); color: var(--text-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-sub { font-size: var(--fs-sm); color: var(--text-500); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }

.nav-toggle { display: none; }
@media (max-width: 860px) { .nav-toggle { display: inline-flex; } }

.sidebar-scrim {
  position: fixed; inset: 0; z-index: 899;
  background: rgba(0,0,0,.5);
}
.sidebar-scrim[hidden] { display: none; }

@media (max-width: 860px) {
  #app.app.show { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 900;
    width: min(300px, 84vw);
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease-instrument);
    box-shadow: var(--elev-modal);
  }
  .sidebar.is-open { transform: translateX(0); }
}
@media (min-width: 861px) { .sidebar-scrim { display: none !important; } }

.inbox-status { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 4px var(--sp-2); border: 1px solid var(--hairline); border-radius: var(--radius-2); cursor: pointer; font-size: var(--fs-xs); color: var(--text-500); }
.inbox-label { color: inherit; }
.inbox-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-700); }
.inbox-status.connected .inbox-dot { background: var(--ok-500); }
.theme-sun, .theme-moon { width: 16px; height: 16px; transition: opacity var(--dur-fast); }

.view-container {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--sp-6);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.view-container:focus-visible { outline: none; }

/* ── Bottom nav (mobil, ≤860px) ── */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .bottom-nav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
    height: 56px;
    background: var(--ink-900);
    border-top: 1px solid var(--hairline);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  html[data-theme="light"] .bottom-nav { background: var(--paper-100); }
  .bottom-nav-item {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    min-height: 44px;
    border: none; background: transparent; color: var(--text-500);
    font-family: var(--font-body); font-size: 10px;
    position: relative;
    border-radius: 0;
    padding: 0;
  }
  .bottom-nav-item .nav-label { font-size: 10px; }
  .bottom-nav-item.active { color: var(--gold-500); }
  html[data-theme="light"] .bottom-nav-item.active { color: var(--gold-700); }
  .bottom-nav-item.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--gold-500); }
  #app.app.show .view-container { padding-bottom: calc(56px + var(--sp-6)); }
}

/* ── "Daha fazla" bottom-sheet ── */
.bottom-sheet[hidden] { display: none; }
.bottom-sheet { position: fixed; inset: 0; z-index: 950; }
.bottom-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.bottom-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 70vh;
  background: var(--ink-900);
  border-top: 1px solid var(--hairline-strong);
  border-radius: var(--radius-4) var(--radius-4) 0 0;
  padding: var(--sp-2) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  animation: sheet-in var(--dur-slow) var(--ease-settle);
}
html[data-theme="light"] .bottom-sheet-panel { background: var(--paper-100); }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.bottom-sheet-handle { width: 36px; height: 4px; border-radius: var(--radius-full); background: var(--hairline-strong); margin: var(--sp-2) auto; }
.bottom-sheet-title { font-size: var(--fs-h3); font-family: var(--font-display); padding: 0 var(--sp-2) var(--sp-2); }
.bottom-sheet-body { display: flex; flex-direction: column; gap: 2px; }
.bottom-sheet-body .nav-item { padding: var(--sp-3); min-height: 44px; }

/* ── Komut paleti (⌘K) ── */
.command-palette[hidden] { display: none; }
.command-palette { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.command-palette-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.command-palette-panel {
  position: relative; width: min(560px, calc(100vw - var(--sp-6)));
  background: var(--ink-800);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-4);
  box-shadow: var(--elev-modal);
  overflow: hidden;
  animation: cmdk-in var(--dur-base) var(--ease-settle);
}
html[data-theme="light"] .command-palette-panel { background: var(--paper-000); }
@keyframes cmdk-in { from { opacity: 0; transform: scale(.97) translateY(-4px); } to { opacity: 1; transform: none; } }
.cmdk-input-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-bottom: 1px solid var(--hairline); color: var(--text-500); }
.cmdk-input { flex: 1 1 auto; border: none; background: transparent; color: var(--text-100); font-size: var(--fs-body); font-family: var(--font-body); outline: none; }
.cmdk-input::placeholder { color: var(--text-500); }
.cmdk-kbd { font-family: var(--font-mono); font-size: 11px; color: var(--text-500); border: 1px solid var(--hairline); border-radius: var(--radius-1); padding: 1px 6px; }
.cmdk-list { list-style: none; margin: 0; padding: var(--sp-2); max-height: 360px; overflow-y: auto; }
.cmdk-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-2); color: var(--text-300); font-size: var(--fs-sm); cursor: pointer; }
.cmdk-item.is-active { background: var(--ink-700); color: var(--text-100); }
html[data-theme="light"] .cmdk-item.is-active { background: var(--paper-200); }
.cmdk-item-ic { width: 18px; text-align: center; opacity: .8; }
.cmdk-empty { padding: var(--sp-4); text-align: center; color: var(--text-500); font-size: var(--fs-sm); }
.cmdk-trigger { position: relative; gap: var(--sp-2); }
.cmdk-trigger .cmdk-kbd { display: none; }
@media (min-width: 861px) { .cmdk-trigger { width: auto; padding: 0 var(--sp-2); } .cmdk-trigger .cmdk-kbd { display: inline-block; } }

/* ── Splash loader ── */
.loader { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); background: var(--ink-950); transition: opacity var(--dur-slow), visibility var(--dur-slow); }
html[data-theme="light"] .loader { background: var(--paper-000); }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-display); }
.loader-num { color: var(--gold-500); }
html[data-theme="light"] .loader-num { color: var(--gold-700); }
.loader-degree { color: var(--gold-500); font-size: .5em; align-self: flex-start; }
html[data-theme="light"] .loader-degree { color: var(--gold-700); }
.loader-text { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); }

/* ═══════════════════════════════════════════════════════════════
   LOGIN EKRANI — pusula kadranı, giriş koreografisi (design-spec §3)
   ═══════════════════════════════════════════════════════════════ */

/* bugfix (qa-report #2, design-spec §3.1): login teması site-geneli tema anahtarından
   BAĞIMSIZ, her zaman koyu render olmalı. #login-screen bir ID seçici olduğu için
   html[data-theme="light"] .xxx (attribute+class => (0,2,x) specificity) kurallarının
   TAMAMINDAN daha spesifiktir. Dark tema token setini burada yeniden bildirmek, alttaki
   login, compass, field ve brand kurallarının — ister "koyu" adlı bir değişken
   (--ink-900) ister "açık tema" adlı bir değişken (--paper-100, --gold-700) kullansınlar —
   kaskad/miras yoluyla hep bu koyu değerleri çözümlemesini sağlar; light temada login
   ekranına giren tek istisna .field input'un `background:transparent` literal override'ı
   olduğu için o, aşağıda ayrıca #login-screen kapsamlı bir kuralla geri alınıyor.
   UYARI: bu yorum bloğunda yıldız karakterinin hemen ardından eğik çizgi GELMESİN — bu ikili
   CSS block comment'i erken kapatır (önceki sürümde class-prefix örneklerinde tam bu ikili
   yanlışlıkla oluşmuştu; #login-screen kuralı hiç parse edilmeden atlanmış, login ekranı
   light temada koyu render olmamıştı — chrome-devtools MCP ile canlı doğrulandı, bkz. handback). */
#login-screen {
  --ink-950: #0b0b0d; --ink-900: #131317; --ink-800: #1b1b21; --ink-700: #24242c;
  --hairline: #2e2e37; --hairline-strong: #3a3a45;
  --text-100: #f2efe6; --text-300: #c7c3b6; --text-500: #8d8a80; --text-700: #5b584f;
  --gold-300: #ffe28a; --gold-500: #f5c518; --gold-600: #d99e0b; --gold-700: #f5c518; --gold-ink: #1c1400;
  --ok-500: #3fae5c; --ok-ink: #dff4e4;
  --warn-500: #d99a3d; --warn-ink: #f8ecd8;
  --danger-500: #e2555a; --danger-ink: #fbdee0;
  --info-500: #2fb8ad; --info-ink: #d8f4f1;
  --paper-000: #0b0b0d; --paper-100: #131317; --paper-200: #1b1b21;
}
#login-screen .field input, #login-screen .field select, #login-screen .field textarea { background: var(--ink-900); }

.login-screen {
  position: fixed; inset: 0; z-index: 900;
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--ink-950);
  transition: opacity 260ms var(--ease-instrument);
}
html[data-theme="light"] .login-screen { background: var(--paper-000); }
.login-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
/* GİRİŞ EKRANINDA YÜZEN BAR OLMAZ (denetim 2026-08-14): .load-mini z-index 9600 ile
   giriş ekranının (900) ÜSTÜNDE asılı kalıyordu. Asıl düzeltme JS tarafında barların
   kaldırılmasıdır (hideAllFloatingBars); bu kural emniyet kemeridir. */
body:has(#login-screen:not(.hide)) .load-mini,
body:has(#login-screen:not(.hide)) .load-overlay,
body:has(#login-screen:not(.hide)) #job-widget { display: none !important; }

.login-canvas {
  position: relative;
  background: var(--ink-900);
  padding: var(--sp-9) var(--sp-9) 0;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
html[data-theme="light"] .login-canvas { background: var(--paper-100); }

.compass-dial {
  position: absolute; top: var(--sp-6); right: var(--sp-6);
  width: 170px; height: 170px;
  opacity: 0;
  animation: compass-in 600ms var(--ease-instrument) 0ms both;
}
@keyframes compass-in { from { opacity: 0; } to { opacity: .12; } }
.compass-ring { fill: none; stroke: var(--hairline-strong); stroke-width: 1; }
.compass-ticks line { stroke: var(--hairline-strong); stroke-width: 1; }
.compass-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: var(--tracking-label); fill: var(--text-500); text-anchor: middle; }
.compass-needle { transform-origin: 100px 100px; transition: transform 320ms var(--ease-instrument); }
.compass-needle-line { stroke: var(--gold-500); stroke-width: 1.5; }
html[data-theme="light"] .compass-needle-line { stroke: var(--gold-700); }
.compass-needle { transform: rotate(var(--needle-angle, 0deg)); }
.compass-pivot { fill: var(--gold-500); }
html[data-theme="light"] .compass-pivot { fill: var(--gold-700); }

.login-brand { opacity: 0; animation: login-rise var(--dur-base) var(--ease-settle) 80ms both; }
.login-headline {
  margin-top: var(--sp-7);
  opacity: 0; animation: login-rise var(--dur-base) var(--ease-settle) 160ms both;
}
.login-headline h1 { font-size: var(--fs-display); line-height: var(--lh-tight); color: var(--text-100); font-weight: var(--fw-bold); max-width: 460px; }
.login-headline h1 em { font-style: normal; color: var(--gold-500); }
html[data-theme="light"] .login-headline h1 em { color: var(--gold-700); }
.login-headline p { margin-top: var(--sp-3); color: var(--text-500); max-width: 420px; line-height: var(--lh-body); }

.login-features { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-7); padding-bottom: var(--sp-8); }
.login-feature {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  opacity: 0; transform: translateX(-8px);
  animation: login-slide-in var(--dur-base) var(--ease-settle) both;
}
.login-feature:nth-child(1) { animation-delay: 260ms; }
.login-feature:nth-child(2) { animation-delay: 330ms; }
.login-feature:nth-child(3) { animation-delay: 400ms; }
.lf-icon { color: var(--gold-500); font-size: 15px; line-height: 1.4; }
html[data-theme="light"] .lf-icon { color: var(--gold-700); }
.lf-text { font-size: var(--fs-sm); color: var(--text-300); line-height: var(--lh-body); }
.lf-text strong { color: var(--text-100); font-weight: var(--fw-medium); }

.login-ruler {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding: var(--sp-2) 0;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: var(--tracking-label); color: var(--text-700);
  transform: scaleX(0); transform-origin: left;
  animation: ruler-draw 260ms var(--ease-instrument) 640ms both;
}
@keyframes ruler-draw { to { transform: scaleX(1); } }

.login-form { position: relative; display: flex; align-items: center; justify-content: center; background: var(--ink-950); border-left: 1px solid var(--hairline); }
html[data-theme="light"] .login-form { background: var(--paper-000); }
.login-form-inner { width: 100%; max-width: 380px; padding: var(--sp-6); }
.login-pill {
  display: inline-block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-500); border: 1px solid var(--hairline); border-radius: var(--radius-1); padding: 3px 8px;
  opacity: 0; animation: login-rise var(--dur-base) var(--ease-settle) 340ms both;
}
.login-form-inner h2 { font-size: var(--fs-h1); margin-top: var(--sp-3); color: var(--text-100); opacity: 0; animation: login-rise var(--dur-base) var(--ease-settle) 420ms both; }
.login-sub { color: var(--text-500); margin: 4px 0 var(--sp-6); font-size: var(--fs-sm); opacity: 0; animation: login-rise var(--dur-base) var(--ease-settle) 420ms both; }

.field { margin-bottom: var(--sp-4); opacity: 0; animation: login-rise var(--dur-base) var(--ease-settle) 480ms both; }
.login-form-inner .field:nth-of-type(2) { animation-delay: 530ms; }
.field label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); margin-bottom: 6px; }
.field input, .field select, .field textarea, .cc-textarea, .cc-select, .sp-num {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-body);
  color: var(--text-100); background: var(--ink-900);
  /* Alt çizgi --hairline ile 1.27:1 kalıyor ve kutunun nerede başladığı seçilmiyordu.
     --hairline-strong arayüz sınırları için WCAG 3:1 eşiğine çok daha yakın. */
  border: none; border-bottom: 1px solid var(--hairline-strong);
  padding: 9px 2px; outline: none;
  transition: border-color var(--dur-fast) var(--ease-instrument);
}
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea { background: transparent; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom: 2px solid var(--gold-500); padding-bottom: 8px; }
html[data-theme="light"] .field input:focus { border-bottom-color: var(--gold-700); }
.field-row { display: flex; gap: var(--sp-4); }
.field-row .field { flex: 1 1 0; }
.field-hint { font-size: var(--fs-xs); color: var(--text-500); margin-top: 6px; line-height: 1.5; }
.field-pw { position: relative; }
.pw-toggle {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-500); cursor: pointer;
}
.pw-eye, .pw-eye-off { transition: opacity 120ms; }

.caps-hint {
  margin-top: var(--sp-2); padding: var(--sp-2) var(--sp-3);
  background: var(--warn-ink); border-left: 2px solid var(--warn-500);
  font-size: var(--fs-xs); color: var(--ink-950);
  animation: slide-down 140ms var(--ease-instrument);
}
@keyframes slide-down { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* bugfix (qa-report #3, design-spec §3.3): giriş hatası şimdiye kadar sadece ~1s'de kaybolan
   bir toast'tı; spec input grubunun altında kalıcı, düz --danger-ink zeminli tek satır istiyor.
   Toast KORUNDU (app.js), bu sadece ek/kalıcı form-altı satır. */
.login-error {
  display: flex; align-items: center; gap: var(--sp-2);
  margin: -4px 0 var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
  background: var(--danger-ink); border-left: 2px solid var(--danger-500);
  border-radius: var(--radius-1);
  font-size: var(--fs-xs); color: var(--ink-950);
}
/* .hidden global utility (satır ~210, display:none!important) görünürlüğü yönetir */

.login-form-inner .btn-full {
  opacity: 0; animation: login-rise var(--dur-fast) var(--ease-settle) 560ms both;
}
.login-hint { margin-top: var(--sp-4); text-align: center; font-size: var(--fs-sm); opacity: 0; animation: login-rise var(--dur-base) var(--ease-settle) 620ms both; }
.login-hint a { color: var(--text-500); text-decoration: underline; }

@keyframes login-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes login-slide-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Hata/başarı mikro-etkileşimleri — CSS hazır, tetikleyici class (§7.4 kapsamı dışında bırakıldı, bkz. handback) */
.login-form-inner.is-error { animation: login-shake 180ms var(--ease-instrument); }
@keyframes login-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-3px); } }
.login-form-inner.is-error .compass-needle-line { stroke: var(--danger-500); }
.login-form-inner.is-success .compass-needle { transform: rotate(12deg); }

@media (prefers-reduced-motion: reduce) {
  .compass-dial, .login-brand, .login-headline, .login-feature, .login-ruler, .login-pill,
  .login-form-inner h2, .login-sub, .field, .login-form-inner .btn-full, .login-hint {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .compass-needle { transition: none; }
  .login-form-inner.is-error { animation: none; }
}

/* ── Responsive shell ── */
@media (max-width: 1024px) {
  #app.app.show { grid-template-columns: 224px 1fr; }
}
@media (max-width: 860px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-canvas { display: none; }
  .topbar { padding: var(--sp-3) var(--sp-4); }
  .topbar-sub { display: none; }
  .view-container { padding: var(--sp-4); }
  /* bugfix (qa v2 #2): dar viewport'ta metin rozeti (ör. "Sağlayıcı bağlı değil") sağ kenardan
     taşıyordu — mobilde sadece renkli nokta kalsın, tam durum metni ⌘K/ayarlar'da erişilebilir
     kalıyor (title tooltip + tıklanınca Ayarlar'a gidiyor, bilgi kaybolmuyor). */
  .inbox-status { padding: 4px; }
  .inbox-label { display: none; }
}


/* ===== controls =====
   Butonlar, form alanları, açılır menü, filtre çubuğu, sekme/pil kontrolleri. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  padding: 9px var(--sp-4); min-height: 36px;
  border: 1px solid var(--hairline); border-radius: var(--radius-2);
  background: transparent; color: var(--text-100);
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur-instant) var(--ease-instrument), border-color var(--dur-instant), color var(--dur-instant);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--gold-500); border-color: var(--gold-500); color: var(--gold-ink); }
.btn-primary:hover:not(:disabled) { background: var(--gold-600); border-color: var(--gold-600); }
.btn-outline { background: transparent; border-color: var(--hairline-strong); }
.btn-outline:hover:not(:disabled) { border-color: var(--gold-500); }
.btn-ghost { border-color: transparent; color: var(--text-300); }
.btn-ghost:hover:not(:disabled) { background: var(--ink-800); color: var(--text-100); }
html[data-theme="light"] .btn-ghost:hover:not(:disabled) { background: var(--paper-200); }
.btn-danger { background: transparent; border-color: var(--danger-500); color: var(--danger-500); }
.btn-danger:hover:not(:disabled) { background: var(--danger-600); color: #fff; }
.btn-sm { padding: 6px var(--sp-3); font-size: var(--fs-xs); min-height: 30px; }
.btn-full, .btn-block { width: 100%; }
.btn-icon { display: inline-flex; }

/* ── BASILI (:active) GERİ BİLDİRİMİ (modernizasyon 2026-08-14) ──────────────
   Stil sayfasında yalnızca 2 adet :active kuralı vardı; tıklanabilir öğelerin çoğu
   basıldığında hiçbir tepki vermiyordu. Yalnız `transform` kullanılıyor: ölçü
   küçülmesi düzeni kaydırmaz (anti-pattern "layout-shifting hovers"). Süre yok —
   basma geri bildirimi anlık olmalı; bırakınca mevcut geçiş değerine döner.
   prefers-reduced-motion global kuralı transform'u durdurmaz; bu kasıtlı:
   basma geri bildirimi süslemeden çok işlev, ve 1 karelik bir durum değişimi. */
.btn:active:not(:disabled),
.icon-btn:active,
.toolbar-btn:active,
.chip:active,
.sms-srv-opt:active,
.sms-server-item:active:not(:disabled) { transform: scale(0.97); }
.nav-item:active { transform: scale(0.99); }

/* Tablo hücrelerinde hizalı rakam: bu panel sayı gösteriyor — sütunlar kayarsa
   göz karşılaştırma yapamaz. Harfleri etkilemez, yalnız rakam genişliğini sabitler. */
.table tbody td, .cc-table tbody td,
.table thead th, .cc-table thead th { font-variant-numeric: tabular-nums; }

.toolbar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--sp-2); border: 1px solid transparent; border-radius: var(--radius-2); background: transparent; color: var(--text-300); cursor: pointer; font-size: var(--fs-sm); }
.toolbar-btn:hover { background: var(--ink-800); color: var(--text-100); }
html[data-theme="light"] .toolbar-btn:hover { background: var(--paper-200); }
.toolbar-sep { width: 1px; height: 20px; background: var(--hairline); margin: 0 var(--sp-2); }

.filter-bar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.search-input { position: relative; min-width: 220px; }
.search-input input {
  width: 100%; background: var(--ink-900); border: 1px solid var(--hairline); border-radius: var(--radius-2);
  padding: 8px var(--sp-3); font-size: var(--fs-sm); color: var(--text-100); outline: none;
  transition: border-color var(--dur-fast);
}
html[data-theme="light"] .search-input input { background: var(--paper-000); }
.search-input input:focus { border-color: var(--gold-500); }
html[data-theme="light"] .search-input input:focus { border-color: var(--gold-700); }
.cc-select, select.filter-select, .filter-select {
  background: var(--ink-900); border: 1px solid var(--hairline-strong); border-radius: var(--radius-2);
  padding: 8px var(--sp-3); font-size: var(--fs-sm); color: var(--text-100); outline: none; cursor: pointer;
}
html[data-theme="light"] .cc-select { background: var(--paper-000); }

.spin, .cc-spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--hairline-strong); border-top-color: var(--gold-500);
  animation: spin 700ms linear infinite; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  appearance: none; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--hairline); border-radius: var(--radius-1);
  padding: 3px 9px; font-size: var(--fs-xs); color: var(--text-300);
  background: transparent;
  transition: background var(--dur-fast) var(--ease-instrument), border-color var(--dur-fast), color var(--dur-fast);
}
/* bugfix (code-review #2): .chip her zaman <button> olarak render ediliyor; background/appearance
   sıfırlanmamıştı, tarayıcı varsayılan buton grisi (UA stylesheet) sızıyordu. .chip.active hiç
   tanımsızdı — seçili filtre (rol/durum/scope/kampanya tipi) görsel karşılığı yoktu. */
.chip:hover { background: var(--ink-800); color: var(--text-100); }
html[data-theme="light"] .chip:hover { background: var(--paper-200); }
.chip.active { background: var(--ink-800); border-color: var(--gold-500); color: var(--text-100); }
html[data-theme="light"] .chip.active { background: var(--paper-200); border-color: var(--gold-700); }
.chip-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.check-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.check-item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-300); cursor: pointer; }
.check-item-count { color: var(--text-500); font-size: var(--fs-xs); }

/* bugfix (code-review #1): [class*="role-"] wildcard KALDIRILDI — attribute-contains seçici
   ".um-role-ic"/".um-role-txt"/".um-role-check"/".uc-avatar role-*"/".um-avatar role-*" gibi
   class adlarının içinde geçen "role-" alt-dizisine de sızıyordu (ör. "um-ROLE-ic"), bu yüzden
   avatarlar ve rol satırları istenmeyen border/padding/font-size miras alıyordu. Artık sadece
   .role-badge hedefleniyor; .uc-avatar/.um-avatar kendi font-size'ını aşağıda tanımlıyor. */
.role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-1);
  padding: 2px 8px; font-size: var(--fs-xs); color: var(--text-300); background: transparent;
}
.role-badge.admin, .um-role-ic.role-admin, .uc-avatar.role-admin, .um-avatar.role-admin { color: var(--info-500); border-color: var(--info-500); }
.role-badge.yonetici, .um-role-ic.role-yonetici, .uc-avatar.role-yonetici, .um-avatar.role-yonetici { color: var(--gold-500); border-color: var(--gold-500); }
html[data-theme="light"] .role-badge.yonetici, html[data-theme="light"] .um-avatar.role-yonetici { color: var(--gold-700); border-color: var(--gold-700); }
/* Rozet/avatar renkleri açık temada krem zeminde soluk kalıyordu; koyu varyantlar */
html[data-theme="light"] .role-badge.admin, html[data-theme="light"] .um-role-ic.role-admin,
html[data-theme="light"] .uc-avatar.role-admin, html[data-theme="light"] .um-avatar.role-admin { color: var(--info-500); border-color: var(--info-500); }
html[data-theme="light"] .role-badge.callcenter, html[data-theme="light"] .um-role-ic.role-callcenter,
html[data-theme="light"] .um-avatar.role-callcenter { color: var(--warn-500); border-color: var(--warn-500); }
.role-badge.callcenter, .um-role-ic.role-callcenter, .um-avatar.role-callcenter { color: var(--warn-500); border-color: var(--warn-500); }
.role-badge.user, .um-role-ic.role-user, .uc-avatar.role-user, .um-avatar.role-user { color: var(--text-300); }
.uc-avatar, .um-avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-800); border: 1px solid var(--hairline-strong);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-100); flex: 0 0 auto;
}
html[data-theme="light"] .uc-avatar, html[data-theme="light"] .um-avatar { background: var(--paper-200); }
/* Açık temada --gold-500 krem zeminde 1.85:1 kalıyor (baş harf okunmuyor).
   Açık tema için koyulaştırılmış gold-700 kullanılır — koyu temada değişiklik yok. */
html[data-theme="light"] .role-badge.yonetici,
html[data-theme="light"] .um-role-ic.role-yonetici,
html[data-theme="light"] .uc-avatar.role-yonetici,
html[data-theme="light"] .um-avatar.role-yonetici { color: var(--gold-700); border-color: var(--gold-700); }

.dot, .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

/* ── Açılır menü (dropdown) ── */
.menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 60;
  min-width: 220px;
  background: var(--ink-700); border: 1px solid var(--hairline-strong); border-radius: var(--radius-3);
  box-shadow: var(--elev-modal);
  padding: var(--sp-2);
  display: none;
}
html[data-theme="light"] .menu-panel { background: var(--paper-000); }
.menu.open .menu-panel, .menu[data-open] .menu-panel, .open > .menu-panel { display: block; }
.menu-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); padding: var(--sp-2) var(--sp-2) 4px; }
.menu-item {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
  padding: var(--sp-2); border: none; background: none; color: var(--text-300);
  font-size: var(--fs-sm); text-align: left; border-radius: var(--radius-2); cursor: pointer;
  min-height: 36px;
}
.menu-item:hover { background: var(--ink-800); color: var(--text-100); }
html[data-theme="light"] .menu-item:hover { background: var(--paper-200); }
.menu-item[disabled] { opacity: .5; cursor: not-allowed; }
.menu-divider { height: 1px; background: var(--hairline); margin: var(--sp-1) 0; }
.menu-caret { font-size: 10px; color: var(--text-500); }
.mi-ic { width: 16px; text-align: center; }

.field-pw .reveal { display: inline; }
.check-item input[type="checkbox"], .check-item input[type="radio"] { accent-color: var(--gold-500); }


/* ===== data-surfaces =====
   Kartlar, KPI/stat, tablolar, rozetler, boş durum, skeleton, dense operational
   surfaces (Call Center, Kullanıcı Yönetimi, WhatsApp, Editör, Softphone). */

.section { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); }
/* flex-wrap (modernizasyon 2026-08-14): 375px'te başlık ile sağdaki meta/rozet grubu aynı
   satıra sıkışıp üst üste biniyordu ("Genel Bakış" + "son güncelleme · Canlı"). Sarma
   açılınca sağ grup kendi satırına iner; geniş ekranda yerleşim değişmez (zaten sığıyor). */
.section-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.section-title { font-family: var(--font-display); font-size: var(--fs-h2); color: var(--text-100); }

.card {
  background: var(--ink-800); border: 1px solid var(--hairline); border-radius: var(--radius-3);
  padding: var(--sp-4);
  transition: border-color var(--dur-fast) var(--ease-instrument);
}
html[data-theme="light"] .card { background: var(--paper-000); border-color: var(--hairline); }
.card:hover, .settings-card:hover, .editor-card:hover { border-color: var(--hairline-strong); }
.card-padded { padding: var(--sp-5); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-4); }
.stat-card, .cc-stat, .um-stat, .uc-credit {
  position: relative;
  background: var(--ink-800); border: 1px solid var(--hairline); border-radius: var(--radius-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 6px);
  transition: border-color var(--dur-fast) var(--ease-instrument);
}
html[data-theme="light"] .stat-card, html[data-theme="light"] .cc-stat, html[data-theme="light"] .um-stat, html[data-theme="light"] .uc-credit { background: var(--paper-000); }
.stat-card:hover, .cc-stat:hover { border-color: var(--hairline-strong); }
.stat-card::before, .cc-stat::before {
  content: ""; position: absolute; left: 0; top: var(--sp-3); bottom: var(--sp-3); width: 2px;
  background: var(--info-500);
}
.stat-card.success::before, .cc-stat.success::before { background: var(--ok-500); }
.stat-card.warn::before { background: var(--warn-500); }
.stat-card.danger::before { background: var(--danger-500); }
.stat-label, .cc-stat-lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); }
.stat-value, .cc-stat-val { font-family: var(--font-mono); font-size: var(--fs-mono-lg); font-weight: var(--fw-bold); color: var(--text-100); margin-top: 4px; }
.stat-detail { font-size: var(--fs-xs); color: var(--text-500); margin-top: 4px; }
.cc-stat-ic { display: none; } /* renkli ikon kutusu klişesi kaldırıldı — spec §4.2 */
.cc-stat-body { display: flex; flex-direction: column; }
.cc-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }

/* ── Tablo ── */
.table-wrap, .cc-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-3); }
.table, .cc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table thead th, .cc-table thead th {
  text-align: left; padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-500); border-bottom: 2px solid var(--hairline-strong);
  white-space: nowrap;
}
.table tbody td, .cc-table tbody td { padding: var(--sp-3); border-bottom: 1px solid var(--hairline); color: var(--text-300); position: relative; }
.table tbody tr:last-child td, .cc-table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td, .cc-table tbody tr:hover td { background: var(--ink-800); }
html[data-theme="light"] .table tbody tr:hover td, html[data-theme="light"] .cc-table tbody tr:hover td { background: var(--paper-200); }
.table tbody tr:hover td:last-child::after, .cc-table tbody tr:hover td:last-child::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--gold-500);
}
html[data-theme="light"] .table tbody tr:hover td:last-child::after { background: var(--gold-700); }
.cell-strong { color: var(--text-100); font-weight: var(--fw-medium); }
.cell-muted { color: var(--text-500); }
.table-actions { white-space: nowrap; text-align: right; }
.table-actions .icon-btn, .table-actions .btn { min-width: 32px; min-height: 32px; }

/* ── Mobil ≤860px: tablo→kart dönüşümü (TEK kural, design-spec §5) ──
   Yatay-scroll-tablo mobilde kullanılmaz. app.js her <td>'ye data-label="Sütun Adı"
   ekliyor; burada ::before{content:attr(data-label)} ile kolon etiketine çeviriyoruz.
   İlk 2 kolon (başlık + alt-başlık) tam genişlik ve etiketsiz kalır; kalanlar
   2 sütunlu 'etiket: değer' grid'i olur. Pipeline/kanban bu kurala dahil DEĞİL. */
@media (max-width: 860px) {
  .table-wrap, .cc-table-wrap { border: none; background: transparent; overflow: visible; }
  .table, .cc-table, .table tbody, .cc-table tbody { display: block; width: 100%; }
  .table thead, .cc-table thead { display: none; }
  .table tbody tr, .cc-table tbody tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--sp-3);
    background: var(--ink-800); border: 1px solid var(--hairline); border-radius: var(--radius-3);
    padding: var(--sp-3); margin-bottom: var(--sp-3);
  }
  html[data-theme="light"] .table tbody tr, html[data-theme="light"] .cc-table tbody tr { background: var(--paper-000); }
  .table tbody tr:last-child, .cc-table tbody tr:last-child { margin-bottom: 0; }
  .table tbody tr:hover td:last-child::after, .cc-table tbody tr:hover td:last-child::after { content: none; }
  .table tbody td, .cc-table tbody td { display: block; padding: 3px 0; border-bottom: none; min-height: 0; }
  .table tbody td:nth-child(1), .cc-table tbody td:nth-child(1),
  .table tbody td:nth-child(2), .cc-table tbody td:nth-child(2) { grid-column: 1 / -1; }
  .table tbody td:nth-child(1) { font-size: var(--fs-body); }
  .table tbody td:nth-child(n+3)[data-label]::before, .cc-table tbody td:nth-child(n+3)[data-label]::before {
    content: attr(data-label);
    display: block; margin-bottom: 2px;
    font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500);
  }
  .table tbody td.table-actions, .cc-table tbody td.table-actions {
    grid-column: 1 / -1; text-align: left; margin-top: var(--sp-2);
    display: flex; gap: var(--sp-2); flex-wrap: wrap;
  }
  .table tbody td.table-actions::before, .cc-table tbody td.table-actions::before { content: none; }
  /* Pipeline/kanban kapsam dışı — yatay scroll+snap ile kalır, dönüştürülmez. */
  .cc-table-wrap[data-no-card-transform], .table-wrap[data-no-card-transform] { overflow-x: auto; }
}

.cc-cell-agent { display: inline-flex; align-items: center; gap: var(--sp-2); }
.cc-cell-time, .cc-cell-dur, .cc-cell-phone { font-family: var(--font-mono); }
.cc-mini-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: var(--fw-bold); flex: 0 0 auto; }
html[data-theme="light"] .cc-mini-avatar { background: var(--paper-200); }
.cc-ext-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; border: 1px solid var(--hairline); border-radius: var(--radius-1); padding: 1px 6px; color: var(--text-500); }
.cc-count-pill { font-size: var(--fs-xs); color: var(--text-500); border: 1px solid var(--hairline); border-radius: var(--radius-full); padding: 2px 9px; }
.cc-queue-pill { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); border: 1px solid var(--hairline); border-radius: var(--radius-full); padding: 2px 8px; }
.cc-queue-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn-500); }
.cc-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-700); display: inline-block; }
.cc-agent-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-500); }
.cc-agent-status.on .cc-status-dot { background: var(--ok-500); }
.cc-agent-status.off .cc-status-dot { background: var(--text-700); }
.cc-scope { font-size: var(--fs-xs); color: var(--text-500); }

/* ── Rozetler — outline, dolgu YOK (soft-tint yasak) ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-1);
  padding: 2px 9px; font-size: var(--fs-xs); color: var(--text-300);
  background: transparent;
}
.badge.success, .cell-strong.success { color: var(--ok-500); border-color: var(--ok-500); }
.badge.warn { color: var(--warn-500); border-color: var(--warn-500); }
.badge.danger { color: var(--danger-500); border-color: var(--danger-500); }
.badge.info { color: var(--info-500); border-color: var(--info-500); }
.badge.accent { color: var(--gold-500); border-color: var(--gold-500); }
html[data-theme="light"] .badge.accent { color: var(--gold-700); border-color: var(--gold-700); }
/* bugfix (code-review #4): SMS/E-posta türü rozetleri app.js'te sabit hex inline style
   kullanıyordu (background:#e8f0fe/#fdeee8) — dark temada göz batan açık lekeler oluşturuyordu
   ve outline-only rozet dilini kırıyordu. Artık .badge sistemine ait tema-duyarlı ton class'ları. */
.badge.tone-sms { color: var(--info-500); border-color: var(--info-500); }
.badge.tone-email { color: var(--warn-500); border-color: var(--warn-500); }
.badge .badge-dot { background: currentColor; }
.success { color: var(--ok-500); }
.warn { color: var(--warn-500); }
.danger { color: var(--danger-500); }
.unlimited { color: var(--gold-500); font-weight: var(--fw-bold); }
html[data-theme="light"] .unlimited { color: var(--gold-700); }

.cc-disp-badge { display: inline-flex; border: 1px solid var(--hairline-strong); border-radius: var(--radius-1); padding: 2px 9px; font-size: var(--fs-xs); color: var(--text-300); }
.cc-disp-badge[data-tone="success"] { color: var(--ok-500); border-color: var(--ok-500); }
.cc-disp-badge[data-tone="danger"] { color: var(--danger-500); border-color: var(--danger-500); }
.cc-disp-badge[data-tone="warn"] { color: var(--warn-500); border-color: var(--warn-500); }
.cc-disp-badge[data-tone="muted"] { color: var(--text-500); }

.uc-presence, .live-pulse { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: var(--fw-medium); padding: 2px 9px; border-radius: var(--radius-full); border: 1px solid var(--hairline-strong); }
.uc-presence { flex: 0 0 auto; margin-left: auto; }
.uc-presence .uc-pres-dot { width: 6px; height: 6px; border-radius: 50%; }
.uc-presence.online { color: var(--ok-500); border-color: var(--ok-500); }
.uc-presence.online .uc-pres-dot { background: var(--ok-500); animation: pulse-dot 1.8s infinite; }
.uc-presence.offline { color: var(--text-500); }
.uc-presence.offline .uc-pres-dot { background: var(--text-700); }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(63,174,92,.5); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.connected .inbox-dot, .live-pulse .dot { animation: pulse-dot 1.8s infinite; }
@media (prefers-reduced-motion: reduce) { .uc-presence.online .uc-pres-dot, .connected .inbox-dot, .live-pulse .dot { animation: none; } }

/* ── Boş durum — pusula-çizgi SVG arka plan ── */
.empty, .cc-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--sp-9) var(--sp-4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='70' fill='none' stroke='%235b584f' stroke-width='1'/%3E%3Cline x1='100' y1='18' x2='100' y2='34' stroke='%235b584f' stroke-width='1'/%3E%3Cline x1='100' y1='166' x2='100' y2='182' stroke='%235b584f' stroke-width='1'/%3E%3Cline x1='18' y1='100' x2='34' y2='100' stroke='%235b584f' stroke-width='1'/%3E%3Cline x1='166' y1='100' x2='182' y2='100' stroke='%235b584f' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='2' fill='%235b584f'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center top var(--sp-4); background-size: 96px;
}
.empty-icon, .cc-empty-ic { font-size: 28px; color: var(--text-500); margin-bottom: var(--sp-3); opacity: .7; }
.empty-title, .cc-empty-title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--text-100); }
.empty-text, .empty-sub, .cc-empty-sub { color: var(--text-500); font-size: var(--fs-sm); margin-top: 4px; max-width: 380px; }

/* ── Skeleton — radar sweep ── */
.skel, .load-bar {
  position: relative; overflow: hidden;
  background: var(--ink-800); border-radius: var(--radius-2);
}
html[data-theme="light"] .skel, html[data-theme="light"] .load-bar { background: var(--paper-200); }
.skel::after, .load-bar-fill::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,.15), transparent);
  animation: sweep 1.4s linear infinite;
}
@keyframes sweep { from { left: -60%; } to { left: 110%; } }
.load-bar { height: 6px; }
.load-bar-fill { height: 100%; background: var(--gold-500); border-radius: var(--radius-2); position: relative; overflow: hidden; }
html[data-theme="light"] .load-bar-fill { background: var(--gold-700); }
@media (prefers-reduced-motion: reduce) { .skel::after, .load-bar-fill::after { animation: none; } }

.chart { display: flex; align-items: flex-end; gap: var(--sp-2); height: 140px; }
.chart-bar { flex: 1 1 0; background: var(--ink-700); border-radius: var(--radius-1) var(--radius-1) 0 0; position: relative; cursor: pointer; transition: background var(--dur-fast); }
html[data-theme="light"] .chart-bar { background: var(--paper-200); }
.chart-bar:hover, .chart-bar.active { background: var(--gold-500); }
html[data-theme="light"] .chart-bar:hover, html[data-theme="light"] .chart-bar.active { background: var(--gold-700); }
.chart-bar[data-tooltip]:hover::after {
  content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--ink-700); color: var(--text-100); font-size: var(--fs-xs); padding: 3px 7px; border-radius: var(--radius-1); white-space: nowrap; margin-bottom: 4px;
}
.chart-labels { display: flex; justify-content: space-between; margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-500); }

.settings-card, .editor-card { background: var(--ink-800); border: 1px solid var(--hairline); border-radius: var(--radius-3); padding: var(--sp-5); margin-bottom: var(--sp-4); }
html[data-theme="light"] .settings-card, html[data-theme="light"] .editor-card { background: var(--paper-000); }
.settings-card-title, .editor-card-title { font-family: var(--font-display); font-size: var(--fs-h2); color: var(--text-100); margin-bottom: var(--sp-2); }
.settings-card-desc { font-size: var(--fs-sm); color: var(--text-500); margin-bottom: var(--sp-4); max-width: 480px; }

/* ── Editör (HTML editör alanı) ── */
/* DÜZEN (madde 6): SOLDA dar "Temel bilgiler", SAĞDA geniş HTML editörü.
   Eskiden editör 260px'lik dar sütuna, yan panel geniş sütuna düşüyordu (ters). */
.editor-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-4); }
.editor-sidebar { order: -1; }            /* temel bilgiler SOLA */
.editor-main { order: 0; }                /* HTML editörü SAĞA (geniş) */
.editor-main { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.editor-sidebar { display: flex; flex-direction: column; gap: var(--sp-3); }
.editor-toolbar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2); border: 1px solid var(--hairline); border-radius: var(--radius-2); flex-wrap: wrap; }
.editor-toolbar.between { justify-content: space-between; }
/* Görsel (WYSIWYG) alan gövde yazı tipini kullanır — e-posta içeriği monospace yazılmaz.
   Monospace yalnızca HTML kaynak alanına (textarea.editor-area) uygulanır. */
.editor-area { min-height: 320px; border: 1px solid var(--hairline); border-radius: var(--radius-2); background: var(--ink-900); color: var(--text-100); padding: var(--sp-3); font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.6; }
textarea.editor-area { font-family: var(--font-mono); }
html[data-theme="light"] .editor-area { background: var(--paper-000); }
.editor-iframe-wrap { border: 1px solid var(--hairline); border-radius: var(--radius-2); overflow: hidden; background: #fff; }
.editor-iframe { width: 100%; height: 100%; min-height: 400px; border: none; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }

/* ── Kullanıcı yönetimi (um-*) ── */
.um-wrap { display: flex; flex-direction: column; gap: var(--sp-4); }
.um-hero { display: flex; align-items: center; gap: var(--sp-3); }
.um-hero-name { font-weight: var(--fw-medium); font-size: var(--fs-h3); color: var(--text-100); }
.um-hero-email { font-size: var(--fs-sm); color: var(--text-500); }
.um-section { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.um-sec-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); }
.um-sec-note { font-size: var(--fs-xs); color: var(--text-500); }
.um-roles { display: flex; flex-direction: column; gap: var(--sp-2); }
.um-role { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--radius-2); background: transparent; text-align: left; cursor: pointer; color: var(--text-300); }
.um-role.active { border-color: var(--gold-500); color: var(--text-100); }
html[data-theme="light"] .um-role.active { border-color: var(--gold-700); }
.um-role-ic { width: 24px; text-align: center; }
.um-role-txt { display: flex; flex-direction: column; }
.um-role-txt strong { color: var(--text-100); }
.um-role-txt span { font-size: var(--fs-xs); color: var(--text-500); }
.um-role-check { margin-left: auto; opacity: 0; color: var(--gold-500); }
html[data-theme="light"] .um-role-check { color: var(--gold-700); }
.um-role.active .um-role-check { opacity: 1; }
.um-credits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.um-credit { display: flex; align-items: center; gap: var(--sp-2); }
.um-credit-ic { width: 20px; text-align: center; }
.um-credit-lbl { font-size: var(--fs-xs); color: var(--text-500); }
.um-status { font-size: var(--fs-sm); color: var(--text-300); }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.user-card { background: var(--ink-800); border: 1px solid var(--hairline); border-radius: var(--radius-3); padding: var(--sp-4); transition: border-color var(--dur-fast); }
html[data-theme="light"] .user-card { background: var(--paper-000); }
.user-card:hover { border-color: var(--hairline-strong); }

/* ── Kişi 360 profili (uc-*) ── */
.uc-top { display: flex; align-items: center; gap: var(--sp-3); }
/* bugfix (code-review #3): .uc-id genişliğe göre büyüyordu, .uc-presence rozetini sıkıştırıyor/
   satırı taşırıyordu — sidebar'daki .user-name/.user-email deseniyle aynı ellipsis+min-width:0 */
.uc-id { flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); color: var(--text-500); }
.uc-name { font-weight: var(--fw-medium); color: var(--text-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.uc-actions { display: flex; gap: var(--sp-2); margin-left: auto; }
.uc-del { color: var(--danger-500); cursor: pointer; }
.uc-you { color: var(--gold-500); font-size: var(--fs-xs); }
html[data-theme="light"] .uc-you { color: var(--gold-700); }
.uc-bar { height: 4px; background: var(--hairline); border-radius: var(--radius-1); overflow: hidden; }
.uc-bar-fill { height: 100%; background: var(--gold-500); border-radius: var(--radius-1); transition: width var(--dur-slow); }
html[data-theme="light"] .uc-bar-fill { background: var(--gold-700); }
.uc-bar-fill.inf { background: var(--info-500); }
.uc-credit-top { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.uc-credit-ch { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.uc-credit-val { white-space: nowrap; }
.uc-credit-val { font-family: var(--font-mono); font-size: var(--fs-h3); color: var(--text-100); }
.uc-credit-ch { font-size: var(--fs-xs); color: var(--text-500); }
.uc-datachip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); border: 1px solid var(--hairline); border-radius: var(--radius-1); padding: 2px 7px; color: var(--text-500); }
.uc-credits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-3); }

/* ── Call Center (cc-*) — geniş yüzey ── */
.cc-panel, .cc-agent { display: flex; flex-direction: column; gap: var(--sp-4); }
.cc-cell-email { font-family: var(--font-mono); font-size: var(--fs-xs); }
.cc-card { background: var(--ink-800); border: 1px solid var(--hairline); border-radius: var(--radius-3); padding: var(--sp-4); }
html[data-theme="light"] .cc-card { background: var(--paper-000); }
.cc-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.cc-card-title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--text-100); }
.cc-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.cc-filter-fields { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cc-filter-exports { display: flex; gap: var(--sp-2); }
.cc-field, .cc-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.cc-field-hint { font-size: var(--fs-xs); color: var(--text-500); }
.cc-textarea { min-height: 90px; resize: vertical; }
.cc-note { font-size: var(--fs-sm); color: var(--text-500); margin-bottom: var(--sp-3); }
.cc-or { text-align: center; font-size: var(--fs-xs); color: var(--text-500); margin: var(--sp-2) 0; }
.cc-timer { font-family: var(--font-mono); font-size: var(--fs-h3); color: var(--text-100); }
.cc-attempts { font-size: var(--fs-xs); color: var(--text-500); }
.cc-callback { font-size: var(--fs-sm); color: var(--warn-500); }
.cc-caller, .cc-customer { font-weight: var(--fw-medium); color: var(--text-100); }
.cc-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink-700); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); }
html[data-theme="light"] .cc-avatar { background: var(--paper-200); }
.cc-status-line { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-500); }
.cc-status-line.ok .cc-status-dot { background: var(--ok-500); animation: pulse-dot 1.8s infinite; }
.cc-secure-ic { color: var(--ok-500); }
.cc-secure-note { font-size: var(--fs-xs); color: var(--text-500); }
.cc-admin { display: flex; flex-direction: column; gap: var(--sp-4); }
.cc-admin-head { display: flex; align-items: center; justify-content: space-between; }
.cc-save-btn { margin-top: var(--sp-3); }
.cc-state-btn { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--radius-2); background: transparent; color: var(--text-300); cursor: pointer; }
.cc-state-icon { font-size: 16px; }
.cc-state-title { font-weight: var(--fw-medium); color: var(--text-100); }
.cc-state-sub { font-size: var(--fs-xs); color: var(--text-500); }
.cc-station { border: 1px solid var(--hairline); border-radius: var(--radius-3); padding: var(--sp-4); }
.cc-station-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.cc-station-state { font-size: var(--fs-sm); color: var(--text-500); }
.cc-dial-zone { display: flex; flex-direction: column; gap: var(--sp-3); align-items: center; padding: var(--sp-6); }
.cc-call-btn {
  width: 160px; height: 160px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold-500); color: var(--gold-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2);
  position: relative;
}
html[data-theme="light"] .cc-call-btn { background: var(--gold-700); color: #fff; }
@media (max-width: 640px) { .cc-call-btn { width: 130px; height: 130px; } }
.cc-call-icon { font-size: 32px; }
.cc-call-label { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.cc-call-status { font-size: var(--fs-sm); color: var(--text-500); }
.cc-call-rings span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-500); animation: cc-ring 1.8s ease-out infinite; }
html[data-theme="light"] .cc-call-rings span { border-color: var(--gold-700); }
@keyframes cc-ring { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.25); opacity: 0; } }
.cc-tabs { display: inline-flex; gap: 4px; background: var(--ink-900); border: 1px solid var(--hairline); border-radius: var(--radius-2); padding: 3px; }
html[data-theme="light"] .cc-tabs { background: var(--paper-100); }
.cc-tab { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; cursor: pointer; padding: 6px var(--sp-3); border-radius: var(--radius-1); color: var(--text-500); font-size: var(--fs-sm); }
.cc-tab:hover { color: var(--text-100); }
.cc-tab.is-active { color: var(--gold-ink); background: var(--gold-500); }
html[data-theme="light"] .cc-tab.is-active { background: var(--gold-700); color: #fff; }
.cc-tab-ic { font-size: 14px; }
.cc-drop { border: 2px dashed var(--hairline-strong); border-radius: var(--radius-3); padding: var(--sp-7) var(--sp-4); text-align: center; }
.cc-drop.dragover { border-color: var(--gold-500); background: var(--ink-800); }
html[data-theme="light"] .cc-drop.dragover { background: var(--paper-200); }
.cc-drop-ic { font-size: 32px; margin-bottom: var(--sp-2); opacity: .8; }
.cc-drop-main { color: var(--text-300); font-size: var(--fs-sm); }
.cc-drop-pick { color: var(--gold-500); cursor: pointer; text-decoration: underline; font-weight: var(--fw-medium); }
html[data-theme="light"] .cc-drop-pick { color: var(--gold-700); }
.cc-drop-types { font-size: var(--fs-xs); color: var(--text-500); margin-top: 6px; letter-spacing: var(--tracking-label); }
.cc-drop-fname { font-size: var(--fs-sm); color: var(--gold-500); font-weight: var(--fw-medium); margin-top: var(--sp-2); word-break: break-all; }
html[data-theme="light"] .cc-drop-fname { color: var(--gold-700); }
.cc-upload, .cc-upload-lead { display: flex; flex-direction: column; gap: var(--sp-3); }
.cc-up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-4); }
.cc-up-btn { width: 100%; margin-top: var(--sp-4); }
.cc-up-result:empty { display: none; }
.cc-up-ok { margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--radius-3); border: 1px solid var(--ok-500); }
.cc-up-ok-head { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-100); }
.cc-up-ok-ic { font-size: 18px; color: var(--ok-500); }
.cc-up-ok-meta { font-size: var(--fs-xs); color: var(--text-500); margin-top: 6px; }
.cc-up-ok-agents { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); }
.cc-up-agent-chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); border: 1px solid var(--hairline); border-radius: var(--radius-1); padding: 2px 8px; }
.cc-up-agent-chip b { color: var(--gold-500); }
html[data-theme="light"] .cc-up-agent-chip b { color: var(--gold-700); }
@media (max-width: 900px) { .cc-up-grid { grid-template-columns: 1fr; } }
.cc-rec-actions { white-space: nowrap; }
.cc-rec-audio-row td { padding: var(--sp-2) var(--sp-3); }

/* ── Softphone bar ── */
.sp-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  background: var(--ink-800); border: 1px solid var(--hairline); border-radius: var(--radius-3);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); position: relative; overflow: hidden;
}
html[data-theme="light"] .sp-bar { background: var(--paper-000); }
.sp-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hairline-strong); }
.sp-bar[data-state="ready"]::before, .sp-bar[data-state="live"]::before { background: var(--ok-500); }
.sp-bar[data-state="busy"]::before { background: var(--warn-500); }
.sp-bar[data-state="error"]::before { background: var(--danger-500); }
.sp-status { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-medium); font-size: var(--fs-sm); color: var(--text-300); min-width: 0; }
.sp-ic { font-size: 15px; }
.sp-label { min-width: 0; }
.sp-hint { color: var(--text-500); font-weight: var(--fw-regular); }
.sp-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--text-700); }
.sp-bar[data-state="ready"] .sp-dot, .sp-bar[data-state="live"] .sp-dot { background: var(--ok-500); }
.sp-bar[data-state="busy"] .sp-dot { background: var(--warn-500); }
.sp-bar[data-state="error"] .sp-dot { background: var(--danger-500); }
.sp-dot-live { animation: pulse-dot 1.6s ease-out infinite; }
.sp-dur { font-family: var(--font-mono); font-weight: var(--fw-medium); background: var(--ink-900); border: 1px solid var(--hairline); border-radius: var(--radius-full); padding: 2px 11px; margin-left: 4px; color: var(--text-100); }
html[data-theme="light"] .sp-dur { background: var(--paper-100); }
.sp-dial { display: inline-flex; align-items: center; gap: var(--sp-2); }
.sp-num { width: 190px; }
.sp-actions { display: inline-flex; gap: var(--sp-2); }
@media (prefers-reduced-motion: reduce) { .sp-dot-live, .cc-call-rings span, .cc-status-line.ok .cc-status-dot { animation: none; } }


/* ===== overlays =====
   Modal, toast, yükleme overlay/mini widget. */

.modal-container { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); pointer-events: none; }
/* Modal YIĞINI: her modal kendi katmanında. Katman container'ı doldurup içeriği
   kendisi ortalar; kardeş modallar aksi halde flex ile yan yana dizilirdi.
   Alttaki katman .is-behind alır: hafifçe geri çekilir ve tıklama almaz. */
.modal-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); }
.modal-layer.is-behind { pointer-events: none; }
.modal-layer.is-behind .modal { transform: scale(.985); filter: brightness(.82) saturate(.9); transition: transform .18s ease, filter .18s ease; }
.modal-layer.is-behind .modal-backdrop { opacity: .5; }
@media (max-width: 720px) { .modal-layer { padding: 0; align-items: flex-end; } }
@media (prefers-reduced-motion: reduce) { .modal-layer.is-behind .modal { transition: none; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); cursor: pointer; }
.modal {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: 100%; max-width: 480px; max-height: calc(100vh - var(--sp-10));
  background: var(--ink-800); border: 1px solid var(--hairline-strong); border-radius: var(--radius-4);
  box-shadow: var(--elev-modal); overflow: hidden;
  pointer-events: auto;
}
html[data-theme="light"] .modal { background: var(--paper-000); }
.modal.modal-lg { max-width: 720px; }
.modal.modal-xl { max-width: 1040px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--hairline); flex-shrink: 0; }
.modal-title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--text-100); margin: 0; }
.modal-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; border-radius: var(--radius-2); background: transparent; color: var(--text-500); cursor: pointer; }
.modal-close:hover { background: var(--ink-700); color: var(--text-100); }
html[data-theme="light"] .modal-close:hover { background: var(--paper-200); }
.modal-body { padding: var(--sp-6); overflow-y: auto; flex: 1 1 auto; color: var(--text-300); line-height: var(--lh-body); }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3); padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--hairline); flex-shrink: 0; }
.confirm-send-summary { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--hairline); border-radius: var(--radius-2); background: var(--ink-900); font-size: var(--fs-sm); color: var(--text-300); }
html[data-theme="light"] .confirm-send-summary { background: var(--paper-100); }
.confirm-send-summary + .field-hint { margin-top: var(--sp-2); }

@media (max-width: 860px) {
  .modal-container { padding: 0; align-items: flex-end; }
  .modal { max-width: none; width: 100%; max-height: 92vh; border-radius: var(--radius-4) var(--radius-4) 0 0; }
}

.toast-container { position: fixed; top: var(--sp-5); right: var(--sp-5); z-index: 1200; display: flex; flex-direction: column; gap: var(--sp-3); pointer-events: none; max-width: min(380px, calc(100vw - var(--sp-8))); }
/* AI arama ilerleme barı (sağ-alt) */
.ai-progress { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 1250; width: 300px; max-width: calc(100vw - 32px); background: var(--paper, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: 14px; box-shadow: 0 12px 44px rgba(0,0,0,.20); padding: 14px 16px; }
.ai-progress-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.ai-progress-x { border: none; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-2, #94a3b8); padding: 0 2px; }
.ai-progress-x:hover { color: var(--ink, #334155); }
.ai-progress-pct { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
/* İlerleme barı (modernizasyon 2026-08-14):
   1) Zemin `rgba(0,0,0,.09)` idi — koyu temada görünmüyordu; token'a bağlandı.
   2) Dolgu `width` ile animasyonluydu (her karede layout hesabı). Artık `transform: scaleX()`
      kullanıyor — GSAP zaman çizelgesi bunu sürüyor (bkz. app.js barIlerlet).
   3) Ham hex gradyan (#3b82f6/#22c55e) semantik token'larla değiştirildi. */
.ai-progress-bar { height: 9px; border-radius: var(--radius-3); background: var(--ink-800); overflow: hidden; margin-bottom: 10px; }
html[data-theme="light"] .ai-progress-bar { background: var(--paper-200); }
.ai-progress-fill { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, var(--info-500), var(--ok-500)); border-radius: var(--radius-3); }
.ai-progress-head svg { width: 15px; height: 15px; flex: 0 0 auto; }
.ai-progress-head span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.ai-progress-head .ai-ok { color: var(--ok-500); }
.ai-progress-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2, #64748b); }
.ai-progress-meta b { font-variant-numeric: tabular-nums; }
.toast {
  display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--ink-800); border: 1px solid var(--hairline-strong); border-left: 3px solid var(--text-700);
  border-radius: var(--radius-2); box-shadow: var(--elev-modal); color: var(--text-300);
  font-size: var(--fs-sm); pointer-events: auto;
  animation: toast-in var(--dur-base) var(--ease-settle);
}
html[data-theme="light"] .toast { background: var(--paper-000); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast-icon { width: 20px; text-align: center; flex-shrink: 0; }
.toast.success { border-left-color: var(--ok-500); }
.toast.success .toast-icon { color: var(--ok-500); }
.toast.error { border-left-color: var(--danger-500); }
.toast.error .toast-icon { color: var(--danger-500); }
.toast.warn { border-left-color: var(--warn-500); }
.toast.warn .toast-icon { color: var(--warn-500); }
.toast.info { border-left-color: var(--info-500); }
.toast.info .toast-icon { color: var(--info-500); }
.toast.toast-exit { pointer-events: none; animation: toast-out var(--dur-fast) var(--ease-instrument) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

.load-overlay { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity var(--dur-base), visibility var(--dur-base); }
.load-overlay.show { opacity: 1; visibility: visible; }
.load-card { width: 100%; max-width: 380px; background: var(--ink-800); border: 1px solid var(--hairline-strong); border-radius: var(--radius-4); box-shadow: var(--elev-modal); padding: var(--sp-8) var(--sp-8) var(--sp-6); display: flex; flex-direction: column; align-items: center; text-align: center; }
html[data-theme="light"] .load-card { background: var(--paper-000); }
.load-icon { font-size: 32px; margin-bottom: var(--sp-3); animation: load-icon-pulse 1.6s ease-in-out infinite; }
@keyframes load-icon-pulse { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.05); } }
.load-title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--text-100); }
.load-sub { font-size: var(--fs-sm); color: var(--text-500); margin-top: 4px; }
.load-steps { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; margin-top: var(--sp-4); text-align: left; }
.load-step { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-500); }
.load-step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline-strong); flex: 0 0 auto; }
.load-step.done .load-step-dot, .load-step-dot.done { background: var(--ok-500); }
.load-step-label { flex: 1 1 auto; }
.load-hint { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-500); }
.load-pct { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--gold-500); margin-top: var(--sp-2); }
html[data-theme="light"] .load-pct { color: var(--gold-700); }
.load-min { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 30px; height: 30px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-2); background: transparent; color: var(--text-500); }
.load-min:hover { background: var(--ink-700); color: var(--text-100); }

.load-mini {
  position: fixed; right: var(--sp-6); bottom: var(--sp-6); z-index: 9600;
  display: flex; align-items: center; gap: var(--sp-3); max-width: 320px; padding: 10px 14px 10px 10px;
  background: var(--ink-800); border: 1px solid var(--hairline-strong); border-radius: var(--radius-full);
  box-shadow: var(--elev-modal); cursor: pointer; opacity: 0; transform: translateY(16px) scale(.96);
  pointer-events: none; transition: opacity var(--dur-base), transform var(--dur-base);
}
html[data-theme="light"] .load-mini { background: var(--paper-000); }
.load-mini.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.load-mini-ring { position: relative; width: 38px; height: 38px; flex-shrink: 0; }
.load-mini-ring svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.lm-track { fill: none; stroke: var(--hairline); stroke-width: 3; }
.lm-prog { fill: none; stroke: var(--gold-500); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
html[data-theme="light"] .lm-prog { stroke: var(--gold-700); }
.load-mini-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--gold-500); }
html[data-theme="light"] .load-mini-emoji { color: var(--gold-700); }
.load-mini-body { min-width: 0; }
.load-mini-title { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-100); white-space: nowrap; }
.load-mini-sub { font-size: var(--fs-xs); color: var(--text-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.load-mini-pct { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--gold-500); margin-left: 2px; }
html[data-theme="light"] .load-mini-pct { color: var(--gold-700); }
.load-mini.is-done .lm-prog, .load-mini.is-done .load-mini-emoji, .load-mini.is-done .load-mini-pct { color: var(--ok-500); stroke: var(--ok-500); }
.load-mini.is-fail .lm-prog, .load-mini.is-fail .load-mini-emoji, .load-mini.is-fail .load-mini-pct { color: var(--danger-500); stroke: var(--danger-500); }
/* VERİ YÜKLEME HATASI ŞERİDİ (denetim 2026-08-14) — boş liste ile "yüklenemedi" ayrımı.
   Sunucu 500 verdiğinde ekranda "Henüz kayıt yok" yazıyordu; artık sebep + tekrar dene. */
.load-error {
  display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-3);
  background: color-mix(in srgb, var(--danger-500) 10%, transparent);
  border: 1px solid var(--danger-500);
}
.load-error-ic { font-size: 16px; line-height: 1.35; color: var(--danger-500); }
.load-error-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.load-error-body strong { color: var(--danger-500); font-weight: var(--fw-bold); }
.load-error-body span { color: var(--text-500); word-break: break-word; }
.load-error .btn { flex: none; }
@media (max-width: 640px) { .load-error { flex-wrap: wrap; } .load-error .btn { width: 100%; } }

/* KAPAT düğmesi (denetim 2026-08-14): bar takılırsa / mobilde ekranı kaplarsa kullanıcı
   kapatabilmeli. 32px dokunma hedefi — mobilde parmakla erişilebilir. */
.load-mini-close {
  flex: none; width: 32px; height: 32px; margin-left: 2px; border: 0; border-radius: var(--radius-full);
  background: transparent; color: var(--text-500); font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.load-mini-close:hover, .load-mini-close:focus-visible { background: var(--ink-700); color: var(--text-100); }
html[data-theme="light"] .load-mini-close:hover { background: var(--paper-100); }
/* Mobil: bar ekranın altını kaplamasın — kenar boşluğu bırakılır, metin taşmaz. */
@media (max-width: 640px) {
  .load-mini { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); max-width: none; }
  .load-mini-sub { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .load-icon { animation: none; } }
.indeterminate { position: relative; overflow: hidden; }
.indeterminate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(245,197,24,.2), transparent); animation: sweep 1.2s linear infinite; }


/* ===== editor-dash =====
   HTML e-posta editörü — bkz. yukarıdaki .editor-* kuralları (data-surfaces).
   Bu bölüm mevcut dosya organizasyonu için korunuyor. */

.reveal { opacity: 0; transform: translateY(6px); transition: opacity var(--dur-base) var(--ease-instrument), transform var(--dur-base) var(--ease-instrument); }
/* .in de kabul edilir: eski/başka kod yolları bu sınıfı ekliyorsa içerik gizli kalmasın */
.reveal.enter, .reveal.in, .enter { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }


/* ===== gap: yükleme overlay + settings kartları + keyframes (yedekten, retokenize edilmedi) =====
   Ek keyframe/durum kuralları — bkz. yukarıdaki .load-* ve .settings-card kuralları. */

.done { color: var(--ok-500); }
.is-done { color: var(--ok-500); }
.is-fail { color: var(--danger-500); }
.dragover { border-color: var(--gold-500) !important; }


/* ===== açılır menü (toolbar declutter: İndir/Rapor, Segment) =====
   bkz. yukarıdaki .menu/.menu-panel/.menu-item kuralları (controls bölümü). */


/* ===== WhatsApp Inbox (Sükûnet + Aurora avatar + Native tik) ===== */

.wa-shell { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 220px); min-height: 520px; border: 1px solid var(--hairline); border-radius: var(--radius-3); overflow: hidden; }
.wa-list { border-right: 1px solid var(--hairline); overflow-y: auto; background: var(--ink-800); }
html[data-theme="light"] .wa-list { background: var(--paper-000); }
.wa-list-head { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--hairline); font-size: var(--fs-sm); color: var(--text-500); }
.wa-row1 { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); cursor: pointer; border-bottom: 1px solid var(--hairline); }
.wa-row1:hover { background: var(--ink-700); }
html[data-theme="light"] .wa-row1:hover { background: var(--paper-200); }
.wa-av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-700); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); flex-shrink: 0; }
html[data-theme="light"] .wa-av { background: var(--paper-200); }
.wa-name { font-weight: var(--fw-medium); color: var(--text-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-prev { font-size: var(--fs-xs); color: var(--text-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-mmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.wa-time { font-size: 10px; color: var(--text-500); }
.wa-unread { min-width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--gold-500); color: var(--gold-ink); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
html[data-theme="light"] .wa-unread { background: var(--gold-700); color: #fff; }
.wa-detail { display: flex; flex-direction: column; min-width: 0; }
.wa-dhead { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--hairline); }
.wa-back { display: none; }
.wa-dname { font-weight: var(--fw-medium); color: var(--text-100); }
.wa-dnum { font-size: var(--fs-xs); color: var(--text-500); }
.wa-owner { font-size: var(--fs-xs); color: var(--text-500); margin-left: auto; }
.wa-convo, .wa-scroll { flex: 1 1 auto; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.wa-daysep { text-align: center; font-size: var(--fs-xs); color: var(--text-500); margin: var(--sp-3) 0; }
.wa-msg { max-width: 70%; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-3); background: var(--ink-700); font-size: var(--fs-sm); color: var(--text-100); }
html[data-theme="light"] .wa-msg { background: var(--paper-200); }
.wa-msg.wa-by-us, .wa-msg.out { align-self: flex-end; background: var(--gold-500); color: var(--gold-ink); }
html[data-theme="light"] .wa-msg.wa-by-us, html[data-theme="light"] .wa-msg.out { background: var(--gold-700); color: #fff; }
.wa-cbody { line-height: var(--lh-body); }
.wa-cmeta, .wa-by { font-size: 10px; color: var(--text-500); margin-top: 2px; display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.wa-tick { color: var(--info-500); }
.wa-reply-bar { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--hairline); }
.wa-reply-input { flex: 1 1 auto; border: 1px solid var(--hairline); border-radius: var(--radius-full); padding: var(--sp-2) var(--sp-4); background: var(--ink-900); color: var(--text-100); outline: none; }
html[data-theme="light"] .wa-reply-input { background: var(--paper-100); }
.wa-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--gold-500); color: var(--gold-ink); cursor: pointer; flex-shrink: 0; }
html[data-theme="light"] .wa-send { background: var(--gold-700); color: #fff; }

@media (max-width: 860px) {
  .wa-shell { grid-template-columns: 1fr; height: calc(100vh - 160px); }
  .wa-list { display: flex; }
  .wa-detail { display: none; }
  .wa-shell.is-detail .wa-list { display: none; }
  .wa-shell.is-detail .wa-detail { display: flex; }
  .wa-back { display: inline-flex; }
}

/* ── Tıklamalı takvim (SMS Raporlar tarih seçici) ── */
.dpk-wrap { position: relative; }
.dpk-input { display: inline-flex; align-items: center; gap: 10px; justify-content: space-between; min-width: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font-size: 13px; color: var(--ink); cursor: pointer; }
.dpk-input:hover { border-color: var(--accent, #3858c8); }
.dpk-input .dpk-cal { opacity: .7; }
.dpk-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 200; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 10px; width: 250px; }
.dpk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dpk-nav { width: 30px; height: 30px; border: none; background: transparent; border-radius: 8px; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.dpk-nav:hover { background: var(--paper-2, rgba(0,0,0,.05)); }
.dpk-title { flex: 1; border: none; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); border-radius: 8px; padding: 6px; }
.dpk-title:hover { background: var(--paper-2, rgba(0,0,0,.05)); }
.dpk-wdrow { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 4px; }
.dpk-wd { text-align: center; font-size: 11px; color: var(--muted, #888); font-weight: 600; padding: 4px 0; }
.dpk-grid { display: grid; gap: 2px; }
.dpk-g7 { grid-template-columns: repeat(7,1fr); }
.dpk-g3 { grid-template-columns: repeat(3,1fr); gap: 6px; }
.dpk-cell { border: none; background: transparent; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 13px; height: 32px; display: flex; align-items: center; justify-content: center; }
.dpk-g3 .dpk-cell { height: 40px; }
.dpk-cell:hover { background: var(--paper-2, rgba(56,88,200,.1)); }
.dpk-cell.sel { background: var(--accent, #3858c8); color: #fff; font-weight: 600; }
.dpk-cell.dpk-empty { cursor: default; }
.dpk-cell.dpk-empty:hover { background: transparent; }
.dpk-foot { margin-top: 8px; text-align: right; border-top: 1px solid var(--line); padding-top: 8px; }
.dpk-clear { border: none; background: transparent; color: var(--muted, #888); font-size: 12px; cursor: pointer; }
.dpk-clear:hover { color: var(--accent, #3858c8); }

/* ── Sunucu seçici + canlı/ölü nokta (Ayarlar → Sunucu Seçimi) ── */
.sms-servers { display: flex; flex-direction: column; gap: 8px; }
/* DÜZELTME: burada --color-gray-… değişkenleri kullanılıyordu ama bu isimler tasarım
   sisteminde HİÇ TANIMLI DEĞİL (sistem ink ve paper token'larını kullanır). Tanımsız
   olduğu için yedek değerler (#fff, #e2e8f0) her iki temada da geçerli oluyordu ve KOYU
   temada panelin ortasında beyaz kartlar çıkıyordu. Ayrıca button rengi miras almadığından
   etiket siyah kalıp 1.33:1 kontrastla okunamıyordu.
   NOT: bu yorumda yıldız-eğik çizgi dizisi KULLANMA — yorumu erken kapatıp aşağıdaki
   kuralı geçersiz kılar (bu hata bir kez yaşandı). */
.sms-server-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--ink-800); color: var(--text-100); cursor: pointer; text-align: left; width: 100%; font: inherit; transition: border-color .15s, background .15s; }
html[data-theme="light"] .sms-server-item { background: var(--paper-000); }
.sms-server-item:hover { border-color: var(--gold-500); }
.sms-server-item.active { border-color: var(--gold-500); background: color-mix(in srgb, var(--gold-500) 9%, transparent); }
.sms-server-item:disabled { opacity: .6; cursor: default; }
.sms-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.sms-server-label { font-weight: 600; color: var(--text-100); }
.sms-server-detail { color: var(--text-500); font-size: 13px; }
/* Metin rengi tema-duyarlı olmalı: sabit #22c55e açık temada krem zemin üzerinde
   2.0:1 kalıyordu. --ok-500 açık temada koyulaşır (#24793f). */
.sms-server-active { margin-left: auto; color: var(--ok-500); font-weight: 600; font-size: 13px; }

/* ── Kullanıcı sunucu seçici (Hızlı Gönderim + Kampanya) ── */
.sms-server-picker { display: flex; gap: 8px; flex-wrap: wrap; }
/* Aynı yetim değişken hatası burada da vardı — bkz. .sms-server-item notu */
.sms-srv-opt { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--ink-800); color: var(--text-100); cursor: pointer; font: inherit; font-size: 13px; transition: border-color .15s, background .15s; }
html[data-theme="light"] .sms-srv-opt { background: var(--paper-000); }
.sms-srv-opt:hover { border-color: var(--gold-500); }
.sms-srv-opt.active { border-color: var(--gold-500); background: color-mix(in srgb, var(--gold-500) 10%, transparent); }
.sms-srv-opt .sms-srv-name { font-weight: 600; }
.sms-srv-opt .sms-srv-meta { font-size: 11.5px; color: var(--text-500); white-space: nowrap; }
.sms-srv-opt .sms-srv-meta:not(:empty)::before { content: '·'; margin-right: 5px; opacity: .5; }

/* ═══════════════════════════════════════════════════════════════
   SİSTEM SAĞLIĞI ŞERİDİ (tüm kullanıcılar — dashboard üstü)
   ═══════════════════════════════════════════════════════════════ */
.sys-health {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 12px 16px; margin-bottom: 14px;
  background: var(--paper, rgba(255,255,255,.03)); border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: var(--r-lg, 14px);
}
.sys-health-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-right: 6px; }
.sys-health-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.sys-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
/* Kanal ikonları artık SVG (emoji değil) — kap satır yüksekliğini bozmasın diye inline-flex. */
.sys-ico { opacity: .85; display: inline-flex; align-items: center; }
.sys-ico svg { width: 14px; height: 14px; }
.sys-name { color: var(--ink-2, #94a3b8); }
.sys-state { font-weight: 600; }

/* Grafik ızgarası — 4'lü pasta yan yana, dar ekranda alt alta */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 8px; }
.chart-cell {
  background: var(--paper, rgba(255,255,255,.03)); border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: var(--r-lg, 14px); padding: 12px 8px 6px;
}
.chart-cell-title { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.chart-cell-title svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* Günün özeti — TP1..TP4 hedef kartları */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tp-card {
  position: relative; padding: 14px 16px; border-radius: var(--r-lg, 14px);
  background: var(--paper, rgba(255,255,255,.03)); border: 1px solid var(--line, rgba(255,255,255,.08));
}
.tp-card.tp-good { border-color: rgba(34,197,94,.45); }
.tp-card.tp-bad { border-color: rgba(245,158,11,.45); }
.tp-card.tp-idle { opacity: .65; }
.tp-code { position: absolute; top: 10px; right: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; color: var(--ink-2, #94a3b8); }
.tp-title { font-size: 12.5px; color: var(--ink-2, #94a3b8); margin-bottom: 6px; }
.tp-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tp-bar { height: 6px; border-radius: 4px; background: rgba(0,0,0,.12); overflow: hidden; margin: 8px 0 8px; }
.tp-good .tp-fill { height: 100%; background: var(--ok-500); border-radius: 4px; transition: width .5s ease; }
.tp-bad .tp-fill { height: 100%; background: #f59e0b; border-radius: 4px; transition: width .5s ease; }
.tp-note { font-size: 11.5px; line-height: 1.5; color: var(--ink-2, #94a3b8); }
.tp-goal { opacity: .7; white-space: nowrap; }

/* Sağlık kötüyken pasifleşen hızlı-erişim butonları (madde 9) */
.is-disabled { opacity: .45; pointer-events: none; filter: grayscale(1); }


/* Kredi metresi — TÜM kanallar (madde 8) */
/* Başlık artık aç/kapa düğmesi: sidebar'da yer kaplamasın diye krediler katlanabilir.
   <button> olduğu için klavyeyle de erişilebilir (Enter/Space) ve aria-expanded taşır. */
.credit-meter-title {
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--ink-2, #94a3b8); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: inherit;
}
.credit-meter-title:hover { color: var(--text-100); }
.credit-meter-title:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.credit-caret { font-size: 12px; line-height: 1; transition: transform var(--dur-fast, .15s) ease; }
.credit-meter.is-collapsed .credit-caret { transform: rotate(-90deg); }
.credit-body { display: flex; flex-direction: column; gap: var(--sp-1); }
.credit-meter.is-collapsed .credit-body { display: none; }
.credit-meter.is-collapsed .credit-meter-title { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .credit-caret { transition: none; } }
.credit-row { margin-bottom: 12px; }
.credit-row:last-child { margin-bottom: 0; }
.credit-row.active .credit-row-label { color: var(--ink, #e2e8f0); font-weight: 600; }
.credit-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.credit-row-label { font-size: 12px; color: var(--ink-2, #94a3b8); display: inline-flex; align-items: center; gap: 6px; }
.credit-row-label svg { width: 13px; height: 13px; flex: 0 0 auto; }
.credit-row-value { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.credit-row-value.unlimited { color: var(--ok-500); }
.credit-row-value.low { color: var(--danger-500, #ef4444); }
.credit-row-used { font-size: 10.5px; color: var(--ink-2, #94a3b8); opacity: .8; margin-top: 4px; }

/* ═══ KOMUT PALETİ — 3 sütunlu işlem kartları (madde 9) ═══ */
.cmdk-sec { padding: 10px 14px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-2, #94a3b8); list-style: none; }
.cmdk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px 10px; list-style: none; }
@media (max-width: 640px) { .cmdk-grid { grid-template-columns: repeat(2, 1fr); } }
.cmdk-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px 12px; font: inherit; text-align: left; cursor: pointer;
  color: var(--ink, #e2e8f0); background: var(--paper-2, rgba(255,255,255,.04));
  border: 1px solid var(--line, rgba(255,255,255,.10)); border-radius: 12px;
  transition: border-color .15s, background .15s, transform .12s;
}
.cmdk-card:hover:not(:disabled) { border-color: var(--gold-500); background: color-mix(in srgb, var(--gold-500) 10%, transparent); transform: translateY(-1px); }
.cmdk-card.is-active { border-color: var(--gold-500); }
.cmdk-card:disabled, .cmdk-card.is-disabled { opacity: .4; filter: grayscale(1); cursor: not-allowed; }
.cmdk-card-ic { font-size: 18px; line-height: 1; }
.cmdk-card-lb { font-size: 12.5px; font-weight: 500; line-height: 1.35; }

/* ═══ CALL CENTER — TEK PARÇA PANEL ═══
   Sekmeler (Çağrı Raporları / Performans / …) panelin BAŞLIĞI, filtreler araç çubuğu,
   tablo gövde: hepsi tek çerçevenin içinde. Eskiden sekmeler sağ üstte ayrı bir ada,
   filtre ayrı bir satır, tablo ayrı bir kart olduğu için sayfa dağınık görünüyordu.

   Filtreler ARTIK KAYMIYOR: yatay kaydırma yüksek önemde bir erişilebilirlik kusuru
   (ui-ux-pro-max · Responsive/Horizontal Scroll) ve tarih kutusu ekrandan taşıp toplu
   indirme düğmelerini görünmez kılıyordu. Sığmayan alan alt satıra sarar. */
.cc-panel {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: var(--radius-3); overflow: hidden; gap: 0;
}
html[data-theme="light"] .cc-panel { background: var(--paper-000); }
.cc-panel > .cc-tabs {
  display: flex; flex-wrap: wrap; gap: 2px; background: transparent; border: 0;
  border-bottom: 1px solid var(--hairline); border-radius: 0;
  padding: var(--sp-2) var(--sp-3) 0; margin: 0;
}
.cc-panel > .cc-tabs .cc-tab {
  border-radius: var(--radius-1) var(--radius-1) 0 0; padding: 9px var(--sp-3);
  margin-bottom: -1px; border-bottom: 2px solid transparent;
}
.cc-panel > .cc-tabs .cc-tab.is-active,
html[data-theme="light"] .cc-panel > .cc-tabs .cc-tab.is-active {
  background: transparent; color: var(--text-100); font-weight: var(--fw-medium);
}
.cc-panel > .cc-tabs .cc-tab.is-active { border-bottom-color: var(--gold-500); }
html[data-theme="light"] .cc-panel > .cc-tabs .cc-tab.is-active { border-bottom-color: var(--gold-700); }
.cc-panel-body { display: flex; flex-direction: column; }
/* Panel içindeki alt kartlar kendi çerçevesini bırakır — çerçeve içinde çerçeve olmasın */
.cc-panel-body > .cc-card { background: transparent; border: 0; border-radius: 0; padding: var(--sp-4); }
/* Aynı panelde birden çok kart varsa (Ajanlar, Performans) araya ince ayraç */
.cc-panel-body > .cc-card + .cc-card { border-top: 1px solid var(--hairline); }
.cc-panel-body > .cc-toolbar:last-child { border-bottom: 0; }

.cc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3) var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--hairline);
}
.cc-toolbar-sub { background: var(--ink-900); }
html[data-theme="light"] .cc-toolbar-sub { background: var(--paper-100); }
/* flex: 1 1 auto — iç içe saran flex kutuları aksi halde içeriklerinden dar hesaplanıp
   "Filtrele" / "Dün" gibi son düğmeyi tek başına alt satıra atıyordu. */
.cc-filter-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 auto; }
.cc-filter-fields > * { flex: 0 0 auto; }
.cc-filter-fields .cc-select { min-width: 0; max-width: 190px; padding: 7px 10px; font-size: 12.5px; }
.cc-filter-fields input[type="date"].cc-select { width: 150px; }
.cc-filter-fields select.cc-select { max-width: 170px; }
.cc-filter-exports { display: flex; align-items: center; gap: var(--sp-2); flex: 0 0 auto; }

/* Günlük / aralık toplu indirme grupları */
.cc-dl-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 auto; }
.cc-dl-lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); }
.cc-dl-group .cc-select { max-width: 170px; padding: 7px 10px; font-size: 12.5px; }
@media (max-width: 720px) {
  .cc-filter-fields .cc-select, .cc-dl-group .cc-select { max-width: none; }
  .cc-toolbar { padding: var(--sp-3); }
}

/* ═══ SMS gönderim-bazlı log: yığılmış durum barı (madde 7) ═══ */
.sb-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--ink-800); }
html[data-theme="light"] .sb-bar { background: var(--paper-200); }
.sb-seg { display: block; height: 100%; transition: width .4s ease; }
.sb-seg.sb-ok { background: var(--ok-500); }
.sb-seg.sb-fail { background: var(--danger-500); }
.sb-seg.sb-wait { background: var(--warn-500); }
.sb-legend { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-2, #94a3b8); }
.sb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.sb-dot.sb-ok { background: var(--ok-500); }
.sb-dot.sb-fail { background: var(--danger-500); }
.sb-dot.sb-wait { background: var(--warn-500); }

/* ═══════════════════════════════════════════════════════════════
   PREFOOTER (hızlı erişim kartları) + FOOTER
   Tasarım: her kart ikon + başlık + AÇIKLAMA taşır (ne yaptığı belli).
   Footer, içerik kısa olsa bile HER ZAMAN en altta durur.
   ═══════════════════════════════════════════════════════════════ */
/* view-container'ı dikey flex yaparak footer'ı sona İTİYORUZ (margin-top:auto).
   Böylece sayfa daralınca footer yukarı çıkıp içeriğe yapışmaz. */
.view-container { display: flex; flex-direction: column; }
.view-container > .prefooter { margin-top: auto; }   /* içerik kısaysa footer'ı dibe it */

.prefooter {
  margin-top: auto; padding: 26px 0 4px;
  border-top: 1px solid var(--hairline, rgba(255,255,255,.08));
}
.prefooter-head { margin-bottom: 14px; }
.prefooter-title {
  margin: 0 0 3px; font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: -.01em; color: var(--text-100, #e8eaed);
}
.prefooter-sub { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-500, #93a0ae); }

.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.qa-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px; font: inherit; text-align: left; cursor: pointer;
  color: var(--text-100, #e8eaed);
  background: var(--ink-900, rgba(255,255,255,.03));
  border: 1px solid var(--hairline, rgba(255,255,255,.09));
  border-radius: 14px;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.qa-card:hover {
  border-color: var(--gold-500, #c9a227);
  background: var(--ink-800, rgba(255,255,255,.055));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.7);
}
.qa-card:active { transform: translateY(0); }
.qa-card-ic {
  flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px;
  font-size: 17px; border-radius: 11px;
  background: var(--ink-800, rgba(255,255,255,.06));
  border: 1px solid var(--hairline, rgba(255,255,255,.08));
  color: var(--text-100);
}
/* DÜZELTME: açık temada --ink-800 hâlâ KOYU gri (#3a3b42), ikon rengi ise --text-100 ile
   neredeyse siyah (#17181c) → 1.59:1, ikonlar kayboluyordu. Kart için açık-tema kuralı
   yazılmış ama ikon kutusu unutulmuştu. */
html[data-theme="light"] .qa-card-ic { background: var(--paper-100); color: var(--text-100); }
.qa-card-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.qa-card-title { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.qa-card-desc { font-size: 11.5px; line-height: 1.45; color: var(--text-500, #93a0ae); }
.qa-card-go { flex: 0 0 auto; opacity: .35; font-size: 15px; transition: opacity .16s, transform .16s; }
.qa-card:hover .qa-card-go { opacity: .9; transform: translateX(3px); }
.qa-card.is-disabled, .qa-card:disabled { opacity: .4; filter: grayscale(1); cursor: not-allowed; transform: none; box-shadow: none; }
html[data-theme="light"] .qa-card { background: var(--paper-000); }

.app-footer { padding: 18px 0 24px; text-align: center; }
.app-footer-copy { font-size: 11.5px; letter-spacing: .01em; color: var(--text-500, #93a0ae); opacity: .9; }

/* HTML editör — ikon araç çubuğu (metinsel düğmeler yerine) */
.toolbar-btn.tb-ico {
  display: inline-grid; place-items: center; width: 32px; height: 30px; padding: 0;
  line-height: 1; font-size: 13px;
}
.toolbar-btn.tb-ico svg { display: block; }

/* ═══════════════════════════════════════════════════════════════
   ŞABLON GALERİSİ · ÖNİZLEME · DEĞİŞKEN PALETİ
   Şablonlar sandbox'lı iframe'de GERÇEK genişlikte çizilir (masaüstü 680 / mobil 375),
   çünkü e-posta tasarımının mobilde nasıl kırıldığı ancak böyle görülür.
   ═══════════════════════════════════════════════════════════════ */

/* Galeri üst çubuğu + kategori süzgeci */
.tpl-gal-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.tpl-kats { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-kat { border: 1px solid var(--hairline); background: transparent; color: var(--text-500); cursor: pointer;
  padding: 5px 11px; border-radius: 999px; font-size: 12.5px; }
.tpl-kat:hover { color: var(--text-100); border-color: var(--hairline-strong); }
.tpl-kat.is-active { background: var(--gold-500); border-color: var(--gold-500); color: var(--gold-ink); }
html[data-theme="light"] .tpl-kat.is-active { background: var(--gold-700); border-color: var(--gold-700); color: #fff; }

/* Kart ızgarası — her kartta CANLI küçük önizleme */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-3);
  max-height: 64vh; overflow-y: auto; padding-right: 4px; }
.tpl-card { border: 1px solid var(--hairline); border-radius: var(--radius-3); overflow: hidden;
  background: var(--ink-800); display: flex; flex-direction: column; }
html[data-theme="light"] .tpl-card { background: var(--paper-000); }
.tpl-card:hover { border-color: var(--hairline-strong); }
.tpl-card.is-hidden { opacity: .55; }
.tpl-thumb { position: relative; height: 168px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--hairline); }
/* 680px'lik e-posta genişliği karta sığsın diye küçültülür — gerçek oranı korur */
.tpl-thumb-frame { width: 680px; height: 520px; border: 0; transform: scale(.34); transform-origin: 0 0; pointer-events: none; }
.tpl-thumb-hit { position: absolute; inset: 0; border: 0; cursor: pointer; background: transparent; color: transparent; font-size: 12px; }
.tpl-thumb-hit:hover { background: rgba(15,23,42,.55); color: #fff; }
.tpl-card-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tpl-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tpl-card-name { font-weight: var(--fw-medium); color: var(--text-100); font-size: 13.5px; }
.tpl-card-sub { font-size: 12px; color: var(--text-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-card-act { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; }

/* Cihaz seçici + önizleme sahnesi */
.tpl-prev-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.tpl-dev { display: inline-flex; gap: 4px; border: 1px solid var(--hairline); border-radius: var(--radius-2); padding: 3px; }
.tpl-dev-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius-1); color: var(--text-500); font-size: 12.5px; }
.tpl-dev-btn:hover { color: var(--text-100); }
.tpl-dev-btn.is-active { background: var(--gold-500); color: var(--gold-ink); }
html[data-theme="light"] .tpl-dev-btn.is-active { background: var(--gold-700); color: #fff; }
.tpl-ornek { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-500); cursor: pointer; }
.tpl-prev-stage { display: flex; justify-content: center; overflow: auto; padding: var(--sp-3);
  background: var(--ink-900); border: 1px solid var(--hairline); border-radius: var(--radius-2); }
html[data-theme="light"] .tpl-prev-stage { background: var(--paper-100); }
.tpl-frame { border: 1px solid var(--hairline); border-radius: var(--radius-1); background: #fff; max-width: 100%; }
.tpl-prev-meta { margin-top: var(--sp-3); font-size: 12.5px; color: var(--text-500); }

/* Galeri düzenleyici: solda form + HTML kaynağı, sağda canlı önizleme */
.tpl-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.tpl-ed-form { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
/* .field textarea alt-çizgi stilini ezmek için iki sınıflı seçici (özgüllük) gerekiyor */
.tpl-ed .tpl-ed-src, .tpl-ed textarea.tpl-ed-src {
  min-height: 260px; resize: vertical; font-family: var(--font-mono); font-size: 12px; line-height: 1.6;
  border: 1px solid var(--hairline); border-radius: var(--radius-2);
  background: var(--ink-900); color: var(--text-100); padding: var(--sp-3);
}
html[data-theme="light"] .tpl-ed .tpl-ed-src { background: var(--paper-000); }
.tpl-ed .tpl-ed-src:focus { border-color: var(--gold-500); outline: none; }
.tpl-ed-prev { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
@media (max-width: 980px) { .tpl-ed { grid-template-columns: minmax(0, 1fr); } }

/* Değişken paleti — sürüklenebilir çipler */
.mf-palette { border: 1px solid var(--hairline); border-radius: var(--radius-2); padding: var(--sp-3); background: var(--ink-900); }
html[data-theme="light"] .mf-palette { background: var(--paper-100); }
.mf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mf-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); }
/* En soluk katman (--text-700) burada 4.0:1'de kaliyordu; bunlar okunmasi gereken
   yardimci ETIKETLER, dekoratif degil -> bir ust katmana alindi. */
.mf-hint { font-size: 11.5px; color: var(--text-500); }
.mf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-chip { display: inline-flex; align-items: center; gap: 5px; cursor: grab; user-select: none;
  border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 5px 11px; font-size: 12px;
  background: var(--ink-800); color: var(--text-100); }
html[data-theme="light"] .mf-chip { background: var(--paper-000); }
.mf-chip::before { content: "⠿"; color: var(--text-700); font-size: 11px; }
.mf-chip:hover { border-color: var(--gold-500); }
.mf-chip:active { cursor: grabbing; }
.mf-chip.is-drag { opacity: .45; }
/* Bırakma hedefi vurgusu */
.mf-drop-on { outline: 2px dashed var(--gold-500); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .mf-chip { transition: none; } }

/* ═══════════════════════════════════════════════════════════════
   EDİTÖR POPOVER'I — native prompt() yerine sayfa içi panel
   position:fixed çünkü modal overflow:hidden; absolute olsaydı kırpılırdı.
   z-index modal katmanının (1000) üstünde.
   ═══════════════════════════════════════════════════════════════ */
.ed-pop {
  position: fixed; z-index: 1200; width: 300px; max-width: calc(100vw - 16px);
  background: var(--ink-800); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-3); box-shadow: var(--elev-modal); overflow: hidden;
}
html[data-theme="light"] .ed-pop { background: var(--paper-000); }
.ed-pop-head { padding: 10px 12px; border-bottom: 1px solid var(--hairline); font-size: 12.5px; font-weight: var(--fw-medium); color: var(--text-100); }
.ed-pop-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; max-height: 60vh; overflow-y: auto; }
.ed-pop-f { display: flex; flex-direction: column; gap: 4px; }
.ed-pop-f > span { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); }
.ed-pop-f input, .ed-pop-f select {
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-1); background: var(--ink-900);
  color: var(--text-100); padding: 7px 9px; font-size: 13px; font-family: inherit; width: 100%;
}
html[data-theme="light"] .ed-pop-f input, html[data-theme="light"] .ed-pop-f select { background: var(--paper-100); }
.ed-pop-f input:focus, .ed-pop-f select:focus { outline: none; border-color: var(--gold-500); }
.ed-pop-f.is-color input { padding: 2px; height: 30px; cursor: pointer; }
.ed-pop-uyari { font-size: 11.5px; color: var(--danger, #ef4444); line-height: 1.45; }
.ed-pop-prev { border-top: 1px dashed var(--hairline); padding-top: 9px; }
.ed-pop-prev-lb { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--text-500); margin-bottom: 5px; }
.ed-pop-prev > div { background: #fff; border-radius: var(--radius-1); padding: 8px; overflow: hidden; }
.ed-pop-foot { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--hairline); background: var(--ink-900); }
html[data-theme="light"] .ed-pop-foot { background: var(--paper-100); }
/* Eklenmiş buton/bağlantı düzenlenebilir olduğunu belli etsin */
.editor-area [data-btn] { cursor: pointer; outline: 1px dashed transparent; outline-offset: 3px; }
.editor-area [data-btn]:hover { outline-color: var(--gold-500); }


/* Placeholder rengi tarayıcı varsayılanına bırakılmıştı (metin renginin ~%54'ü) ve
   açık temada 3.2-4.4:1 aralığında kalıyordu. Artık tema token'ı ile net tanımlı. */
.field input::placeholder, .field textarea::placeholder,
.cc-textarea::placeholder, .cc-select::placeholder, .sp-num::placeholder,
.ed-pop-f input::placeholder, .tpl-ed-src::placeholder, .editor-area::placeholder,
input::placeholder, textarea::placeholder { color: var(--text-500); opacity: 1; }

/* Kanal renkleri - METIN icin tema-duyarli. Grafik dolgularinda canli tonlar korunur;
   yalniz metin/baslik kullaniminda acik temada koyulastirilmis varyant devreye girer. */
/* KOYU temada koyu maviler/morlar zeminde 2.4-2.8:1'e dusuyordu; metin icin
   acilmis tonlar kullanilir (grafik dolgulari CH_COLORS ile canli kalir). */
:root, html[data-theme="dark"] {
  --ch-email: #7f97e6; --ch-sms: #3fc47a; --ch-whatsapp: #3ee07d;
  --ch-voice: #f6aa08; --ch-callcenter: #cf5cb8;
}
html[data-theme="light"] {
  --ch-email: #2b449b; --ch-sms: #16713c; --ch-whatsapp: #147a3c;
  --ch-voice: #8a5c04; --ch-callcenter: #7a1c6b;
}

/* ACIK TEMA GIRDI YUZEYI - kritik duzeltme.
   Girdiler background: var(--ink-900) kullaniyordu; --ink-900 ACIK temada da KOYU
   (#26272c) kaldigi icin kutu siyah, metin ise --text-100 ile neredeyse siyah (#17181c)
   oluyordu -> yazilan deger gorunmuyordu (softphone numara alani, filtreler, form
   alanlari). Acik temada kagit yuzeyine cevrilir. */
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .cc-textarea,
html[data-theme="light"] .cc-select,
html[data-theme="light"] .sp-num,
html[data-theme="light"] .filter-select,
html[data-theme="light"] select.filter-select {
  background: var(--paper-000);
  color: var(--text-100);
}

/* Kampanya editoru onizleme cubugu + gelen kutusu satiri */
.ed-prev-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  flex-wrap: wrap; padding: 8px 0 10px; }
.ed-inbox { border: 1px solid var(--hairline); border-radius: var(--radius-2); padding: 10px 12px;
  margin-bottom: 10px; background: var(--ink-900); }
html[data-theme="light"] .ed-inbox { background: var(--paper-100); }
.ed-inbox-lb { font-size: 10.5px; text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-500); margin-bottom: 6px; }
.ed-inbox-row { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ed-inbox-from { font-size: 13px; font-weight: 600; color: var(--text-100); }
.ed-inbox-subj { font-size: 13px; color: var(--text-100); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-inbox-pre { font-size: 12px; color: var(--text-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Onizleme iframe'i gercek genislikte, ortalanmis */
.editor-iframe-wrap { display: flex; justify-content: center; }
#ed-preview { border: 1px solid var(--hairline); border-radius: var(--radius-2); background: #fff; }

/* Sablon uygulandiktan sonra "Geri al" seridi (icerik kaybini telafi eder) */
.tpl-undo { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; margin-bottom: 10px; border-radius: var(--radius-2);
  border: 1px solid var(--gold-500); background: var(--ink-900); font-size: 12.5px; color: var(--text-100); }
html[data-theme="light"] .tpl-undo { background: var(--paper-100); border-color: var(--gold-700); }

/* Hizli e-posta onizleme basligi */
.qe-prev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }

/* Gonderim onayinda e-posta onizlemesi */
.cs-prev { margin-top: 14px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.cs-prev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cs-inbox { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; margin-bottom: 10px;
  border: 1px solid var(--hairline); border-radius: var(--radius-2); background: var(--ink-900); min-width: 0; }
html[data-theme="light"] .cs-inbox { background: var(--paper-100); }

/* Bakiye guncellenince kisa vurgu (tam cizim yok, yalniz rakam degisir) */
.bal-flash { animation: bal-flash .9s ease-out; }
@keyframes bal-flash { 0% { color: var(--gold-500); } 100% { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .bal-flash { animation: none; } }

/* ══ OPERASYON MERKEZİ ══════════════════════════════════════════════
   Yeni görsel dil YOK: yüzey/kenar/aralık/hareket için panelin mevcut
   token'ları kullanılır (--ink-800 · --paper-000 · --hairline · --sp-*).
   DURUM YALNIZ RENKLE ANLATILMAZ (MASTER.md · renk körlüğü): her seviyenin
   kendi SVG ikonu, kendi METİN etiketi ve kendi KENAR ÇİZGİ BİÇİMİ vardır —
   çalışıyor=düz, dikkat=kesik, takıldı=çift çizgi. */

.ops-verdict {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-left: 3px solid var(--text-500);
  border-radius: var(--radius-3); padding: var(--sp-4);
  margin-bottom: var(--sp-6);
}
html[data-theme="light"] .ops-verdict { background: var(--paper-000); }
.ops-verdict.is-ok { border-left-style: solid; border-left-color: var(--ok-500); }
.ops-verdict.is-warn { border-left-style: dashed; border-left-color: var(--warn-500); }
.ops-verdict.is-crit { border-left-width: 4px; border-left-style: double; border-left-color: var(--danger-500); }
.ops-verdict-ic { flex: 0 0 auto; display: inline-flex; }
.ops-verdict-ic svg { width: 22px; height: 22px; }
.ops-verdict.is-ok .ops-verdict-ic { color: var(--ok-500); }
.ops-verdict.is-warn .ops-verdict-ic { color: var(--warn-500); }
.ops-verdict.is-crit .ops-verdict-ic { color: var(--danger-500); }
.ops-verdict.is-bekle .ops-verdict-ic { color: var(--text-500); }
.ops-verdict-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-verdict-title { font-family: var(--font-display); font-size: var(--fs-h2); color: var(--text-100); line-height: var(--lh-snug); }
.ops-verdict-sub { font-size: var(--fs-sm); color: var(--text-300); line-height: var(--lh-body); }

/* Sorun ve süren iş kartları — veri yoğun panelde tek sütuna sıkışmasın. */
.ops-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-3); }
.ops-item {
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-left: 3px solid var(--text-500);
  border-radius: var(--radius-3); padding: var(--sp-4);
  transition: border-color var(--dur-fast) var(--ease-instrument);
}
html[data-theme="light"] .ops-item { background: var(--paper-000); }
.ops-item:hover { border-color: var(--hairline-strong); }
.ops-item.is-kritik { border-left-width: 4px; border-left-style: double; border-left-color: var(--danger-500); }
.ops-item.is-uyari { border-left-style: dashed; border-left-color: var(--warn-500); }
.ops-item.is-run { border-left-style: solid; border-left-color: var(--info-500); }
.ops-item.is-kritik:hover { border-left-color: var(--danger-500); }
.ops-item.is-uyari:hover { border-left-color: var(--warn-500); }
.ops-item.is-run:hover { border-left-color: var(--info-500); }
.ops-item-head { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.ops-item-ic { display: inline-flex; }
.ops-item-ic svg { width: 16px; height: 16px; }
.ops-item.is-kritik .ops-item-ic { color: var(--danger-500); }
.ops-item.is-uyari .ops-item-ic { color: var(--warn-500); }
.ops-item.is-run .ops-item-ic { color: var(--info-500); }
.ops-item-sev { font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.ops-item.is-kritik .ops-item-sev { color: var(--danger-500); }
.ops-item.is-uyari .ops-item-sev { color: var(--warn-500); }
.ops-item.is-run .ops-item-sev { color: var(--info-500); }
.ops-item-title { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--text-100); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.ops-item-detail { font-size: var(--fs-sm); color: var(--text-300); line-height: var(--lh-body); overflow-wrap: anywhere; }
.ops-item-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: auto; padding-top: var(--sp-1); }

/* Süren iş: ilerleme + hız + tahmini bitiş */
.ops-job-bar { height: 8px; border-radius: var(--radius-full); background: var(--ink-700); overflow: hidden; }
html[data-theme="light"] .ops-job-bar { background: var(--paper-200); }
.ops-job-fill { height: 100%; background: var(--info-500); border-radius: var(--radius-full); transition: width var(--dur-base) var(--ease-instrument); }
.ops-job-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-xs); color: var(--text-300); font-variant-numeric: tabular-nums; }
.ops-job-meta strong { color: var(--text-100); }

/* Sağlayıcı / kanal satırları */
.ops-prov { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.ops-prov:last-child { border-bottom: none; }
.ops-prov-ic { display: inline-flex; flex: 0 0 auto; color: var(--text-500); }
.ops-prov-ic svg { width: 15px; height: 15px; }
.ops-prov-ad { color: var(--text-100); font-weight: var(--fw-medium); flex: 1 1 auto; min-width: 0; font-size: var(--fs-sm); }
.ops-prov-st { font-size: var(--fs-sm); color: var(--text-300); text-align: right; overflow-wrap: anywhere; }
.ops-prov-alt { background: var(--ink-900); }
html[data-theme="light"] .ops-prov-alt { background: var(--paper-100); }

/* Son olaylar */
.ops-ev { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.ops-ev:last-child { border-bottom: none; }
.ops-ev-txt { flex: 1 1 220px; min-width: 0; color: var(--text-300); font-size: var(--fs-sm); display: flex; flex-direction: column; overflow-wrap: anywhere; }
.ops-ev-not { color: var(--text-500); font-size: var(--fs-xs); }
.ops-ev-ts { flex: 0 0 auto; font-variant-numeric: tabular-nums; }

/* emptyState() bu ekranda SVG ikon alıyor (emoji ikon kullanılmaz — MASTER.md). */
.empty-icon svg { width: 28px; height: 28px; }

@media (max-width: 560px) {
  .ops-list { grid-template-columns: 1fr; }
  .ops-prov-st, .ops-ev-ts { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .ops-job-fill { transition: none; }
}
