/* ==========================================================================
   CARS OF FERRO — tasarım sistemi v5 "OBSİDYEN"
   --------------------------------------------------------------------------
   Çizgi: markanın kendi çizgisi. Obsidyen zemin, tek vurgu altın, ince hatlar.
   Paylaşım sayfası (share.html) zaten bu dildeydi; panel v4'te beyaz-mavi bir
   iş yazılımıydı. İki yüz arasındaki ayrım müşteriye "iki ayrı ürün" gibi
   görünüyordu — v5 ikisini tek dile getirir.

   Neden KOYU varsayılan:
   · Ekranın yarısı kamera görüntüsü ve araç fotoğrafı. Beyaz zeminde 16:9 koyu
     bir kare "delik" gibi durur; obsidyen zeminde görüntü zeminin devamı olur.
   · Galeri akşam da çalışır. Aydınlık odada beyaz panel, karanlık odada koyu
     panel doğrudur; vardiyanın büyük kısmı ikincisidir.
   · Altın yalnız koyu zeminde altın görünür. Beyazda hardal olur — bu yüzden
     açık temada altın koyulaştırılır (#A8821C), aynı ton tekrarlanmaz.

   Kurallar (v4'ten devralınan ve korunan):
   · Tek vurgu rengi. İkinci bir marka rengi YOKTUR; yeşil/kırmızı/amber yalnız
     DURUM anlatır, süs değildir.
   · Hareket transform + opacity üzerinde; renk/gölge animasyonu yok.
   · prefers-reduced-motion ve prefers-reduced-transparency'ye uyulur.
   · Hiçbir sınıf adı v4'ten kaldırılmadı: 26 sayfa bu adları kullanıyor.
   ========================================================================== */

/* ==========================================================================
   1. BELİRTEÇLER
   ========================================================================== */
:root {
  /* -- hareket -------------------------------------------------------- */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --spring: var(--ease-out);          /* motion.js gerçek yay eğrisiyle EZER */
  --spring-bounce: var(--ease-out);
  --press: 90ms; --release: 320ms; --fast: 150ms; --base: 220ms; --slow: 300ms; --lux: 560ms;

  /* -- ölçü ----------------------------------------------------------- */
  --radius: 16px; --radius-sm: 12px; --radius-lg: 22px;
  --sidebar: 266px; --topbar: 66px;
  --gutter: 30px;

  /* -- obsidyen (varsayılan) ------------------------------------------
     Saf siyah (#000) kullanılmaz: hat rengi rgba(255,255,255,.07) saf siyahta
     kayboluyor, kartın nerede bittiği görünmüyordu. #08080A hattı taşır.      */
  --bg: #08090b;
  --bg-deep: #000;                    /* kamera kuyusu: kadrajın nerede bittiği görünsün */
  --surface: #101216;
  --surface-2: #16191f;
  --surface-3: #1e2128;
  --surface-4: #262a33;
  --surface-glass: rgba(13,15,19,.74);
  --line: #23262e;
  --line-strong: #31353f;
  --line-gold: rgba(217,184,92,.30);

  /* Metin SICAK beyaz. Saf #fff obsidyende titrer (simultane kontrast);
     #F2F0EB aynı okunaklıkta ama göz yormaz ve altınla aynı aileden. */
  --text: #f4f2ee;
  --muted: #9aa0aa;
  --faint: #666c77;

  /* -- altın: tek vurgu ------------------------------------------------ */
  --accent: #d9b85c;                  /* Brand.goldD */
  --accent-hover: #f0dca0;            /* Brand.goldHi */
  --accent-deep: #8a6d1e;             /* Brand.goldLo */
  --accent-soft: rgba(217,184,92,.13);
  --accent-line: rgba(217,184,92,.44);
  --accent-glow: rgba(217,184,92,.22);
  --gold-grad: linear-gradient(135deg, #f0dca0 0%, #d9b85c 38%, #8a6d1e 100%);
  /* marka = vurgu: iki ayrı altın tutmak ikisini de zamanla kaydırıyordu */
  --brand: var(--accent); --brand-soft: var(--accent-soft);
  /* v4 adları (asistan sohbeti bunlara bağlı) */
  --gold: var(--accent); --gold-2: var(--accent-hover); --gold-deep: var(--accent-deep);
  --gold-soft: var(--accent-soft); --gold-line: var(--accent-line);

  /* -- birincil eylem --------------------------------------------------
     Koyu temada birincil düğme ALTIN: obsidyen zeminde beyaz düğme "ışık
     lekesi" gibi patlıyor ve sayfadaki tek vurgu rengi anlamını yitiriyordu. */
  --primary: #d9b85c; --primary-hover: #f0dca0; --on-primary: #14110a;

  /* -- durum renkleri (koyu zemine göre ayarlı) ------------------------ */
  --ok: #44d08a;   --ok-soft: rgba(68,208,138,.13);
  --warn: #efa847; --warn-soft: rgba(239,168,71,.13);
  --danger: #f25c5c; --danger-soft: rgba(242,92,92,.13);
  --info: #7396ff; --info-soft: rgba(115,150,255,.13);
  --purple: #a88cff; --purple-soft: rgba(168,140,255,.13);
  --gray-soft: rgba(154,160,170,.12);
  --live: #44d08a;                    /* "canlı" noktası ok rengiyle aynı ailede */

  /* -- yükselti --------------------------------------------------------
     Koyu zeminde gölge işe yaramaz (siyah üstüne siyah). Yükselti HAT ve
     iç ışıkla anlatılır; gölge yalnız gerçekten yüzen katmanda (modal). */
  --shadow-sm: 0 1px 0 rgba(255,255,255,.02) inset;
  --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 18px 40px -28px rgba(0,0,0,.9);
  --shadow-lg: 0 40px 90px -30px rgba(0,0,0,.92), 0 0 0 1px rgba(255,255,255,.06);
  --ring-gold: 0 0 0 1px var(--accent-line), 0 0 28px -8px var(--accent-glow);

  --side-bg: #0c0e11; --side-line: #1c1f26;
  color-scheme: dark;
}

/* -- açık tema: "kağıt lüks" ------------------------------------------
   v4'ün soğuk beyaz-mavisi değil: sıcak kağıt zemin, koyulaştırılmış altın.
   Aynı ton koyuda parlar, açıkta hardal olur — bu yüzden altın burada
   #A8821C'ye iner ve metin ile arasında 4.5:1 kontrast kalır. */
:root[data-theme="light"] {
  --bg: #f7f6f3;
  --bg-deep: #000;                    /* kamera kuyusu açık temada da siyahtır */
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --surface-3: #f1f0ec;
  --surface-4: #e7e4dc;
  --surface-glass: rgba(255,255,255,.80);
  --line: #e4e1da;
  --line-strong: #d3cfc5;
  --line-gold: rgba(168,134,42,.32);

  --text: #14161a;                    /* Brand.ink */
  --muted: #5e636c;
  --faint: #9a9fa8;

  --accent: #a8862a;                  /* Brand.gold */
  --accent-hover: #8a6d1e;            /* Brand.goldLo */
  --accent-deep: #8a6d1e;
  --accent-soft: rgba(168,134,42,.12);
  --accent-line: rgba(168,134,42,.44);
  --accent-glow: rgba(168,134,42,.18);
  --gold-grad: linear-gradient(135deg, #d9b85c 0%, #a8862a 58%, #8a6d1e 100%);

  --primary: #14161a; --primary-hover: #000; --on-primary: #ffffff;

  --ok: #17794a;   --ok-soft: #e6f2ec;
  --warn: #a96410; --warn-soft: #fbf1e2;
  --danger: #b92b2b; --danger-soft: #fdecec;
  --info: #2f5fe0; --info-soft: #e9effc;
  --purple: #6b4fd8; --purple-soft: #efeafb;
  --gray-soft: #eeece6;
  --live: #17794a;

  --shadow-sm: 0 1px 2px rgba(20,19,15,.05);
  --shadow: 0 4px 18px -10px rgba(20,19,15,.22), 0 1px 2px rgba(20,19,15,.05);
  --shadow-lg: 0 30px 70px -26px rgba(20,19,15,.34), 0 2px 8px rgba(20,19,15,.07);
  --ring-gold: 0 0 0 1px var(--accent-line), 0 0 22px -10px var(--accent-glow);

  --side-bg: #f1f0ec; --side-line: #e0ddd4;
  color-scheme: light;
}

/* ==========================================================================
   2. TABAN
   ========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 14.5px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-optical-sizing: auto;
  font-feature-settings: "cv05" 1, "ss03" 1;   /* tek katlı a/g: rakam-harf karışmasın */
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Başlıklar Montserrat: otomotiv afişi karakteri, sıkı harf aralığı.
   Gövde ve RAKAMLAR Inter'de kalır — Montserrat'ın tablo rakamı desteği
   güvenilir değil; para sütununun hizası biçimden önce gelir. */
h1, h2, h3, h4, .cmd-head .hi, .vcard .title, .chat-head .ttl, .mkt-scen h3, .mkt-item h3 {
  font-family: Montserrat, Inter, -apple-system, system-ui, sans-serif;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.032em; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 600; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* Kaydırma çubuğu da arayüzün parçası: koyu temada beyaz bir çubuk
   sayfanın kenarında duran tek açık yüzey oluyordu. */
* { scrollbar-width: thin; scrollbar-color: var(--surface-4) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: content-box; }

.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); letter-spacing: .04em; }
.wordmark { font-family: Montserrat, Inter, sans-serif; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
/* Rakamlar HER YERDE tablo hizalı: para sütunu kayarsa göz toplamı okuyamaz. */
.stat .v, .num, .t .num, .price, .metric .v, .kv .i .v, .money { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   3. BASILABİLİR ÖĞELER — dokunma geri bildirimi
   Basış ANINDA küçülür (90 ms), bırakışta yay ile döner. Gecikme hissi
   buradan doğar: tıklamanın karşılığı sunucudan değil, parmaktan gelmeli.
   ========================================================================== */
.btn, .vcard, .seg button, .tabs button, .check-row, .choice label, .stat.clickable,
.list a.li, .icon-btn, .user-chip, .nav a, .gallery .ph, .check, .task-card, .row-link,
.rail-tile, .quick a, .tile.clickable, .chip {
  transition: transform var(--release) var(--spring), background-color var(--fast) ease,
              border-color var(--fast) ease, color var(--fast) ease,
              box-shadow var(--base) var(--ease-out), opacity var(--fast) ease;
}
.btn:active, .seg button:active, .tabs button:active, .check-row:active, .choice label:active,
.stat.clickable:active, .list a.li:active, .icon-btn:active, .user-chip:active, .nav a:active,
.check:active, .task-card:active, .quick a:active, .tile.clickable:active {
  transform: scale(.97); transition-duration: var(--press); transition-timing-function: ease-out;
}
.vcard:active, .gallery .ph:active, .rail-tile:active { transform: scale(.99); transition-duration: var(--press); }

/* ==========================================================================
   4. YERLEŞİM
   ========================================================================== */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

/* -- yan menü ----------------------------------------------------------
   KAYDIRILMAZ. Hiçbir ekranda menü kaydırılmaz — menüyü kaydırmak, aradığın
   şeyin görünmediği anlamına gelir ve aramayı iki işe böler. Bunun bedeli
   şudur: menü SIĞMALI. O yüzden 20 sayfa gruplandı ve akordiyon aynı anda TEK
   grubu açık tutar.
   Sayım (app.js → NAV): 11 üst satır + en kalabalık grubun (Finans) 4 alt
   satırı. Varsayılan ölçüde ≈ 11x42 + 4x36 + marka 87 + alt yazı 29 + 10
   ≈ 760 px. Bu yüzden aşağıdaki iki yükseklik sorgusunun eşikleri NAV'a
   bağlıdır: orta kademe ≈ 680 px, dar kademe ≈ 610 px ister. Üst düzeye yeni
   bir satır eklenirse (≈ +44 px) bu üç sayı yeniden hesaplanır — yoksa menü
   taşar ve `overflow:hidden` yüzünden son başlık SESSİZCE kırpılır.           */
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 40;
  background: var(--side-bg); border-right: 1px solid var(--side-line);
  display: flex; flex-direction: column; padding: 0 12px 10px;
  overflow: hidden;              /* kaydırma YOK */
}
/* Marka levhası: nişan kendi çerçevesinde durur. Serbest duran bir PNG'ye
   parıltı gölgesi vermek ucuz görünüyordu; nişanı bir plakete oturtmak
   otomotiv rozetinin kendi dilidir. */
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--side-line); flex: none; }
.brand .mark { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.brand .mark img { width: 27px; height: 27px; object-fit: contain; display: block; }
.brand img { width: 27px; height: 27px; object-fit: contain; }
.brand .name { font-size: 13px; line-height: 1.2; letter-spacing: .16em; }
.brand .sub { font-size: 10.5px; color: var(--faint); margin-top: 3px; letter-spacing: .1em; text-transform: uppercase; }

.nav { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
/* Başlık satırı (grup) ve tek sayfa satırı aynı ölçüdedir: menüde iki farklı
   satır yüksekliği olması listeyi düzensiz gösteriyordu. */
.nav a.nav-t, .nav .nav-p {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px; border: 0; background: transparent; cursor: pointer;
  border-radius: 11px; color: var(--muted); font-family: inherit; font-size: 14.5px; font-weight: 500;
  letter-spacing: -.01em; text-align: left; min-height: 42px;
}
.nav a.nav-t svg, .nav .nav-p > svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .6; flex: none; transition: opacity var(--fast) ease, color var(--fast) ease; }
.nav a.nav-t > span:not(.cnt), .nav .nav-p > span:not(.cnt) { flex: 1; min-width: 0; }
/* HOVER DOLGU DEĞİLDİR. Satırın arkasını griye boyamak (var(--surface-2)) menüyü
   "düz HTML" gibi gösteriyordu: aynı gri, aynı anda, her satırda. Panelin geri
   kalanında tıklanabilir satır bunu ALTIN KENARLA söyler (`table.t tr.click`);
   menü de aynı dili konuşur — metin ve ikon canlanır, solda 2 px altın kenar
   açılır, zemin sade kalır. */
.nav a.nav-t::before, .nav .nav-p::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px;
  border-radius: 0 2px 2px 0; background: var(--accent); opacity: 0;
}
.nav a.nav-t:hover, .nav .nav-p:hover { color: var(--text); }
.nav a.nav-t:hover::before, .nav .nav-p:hover::before { opacity: .55; }
.nav a.nav-t:hover svg, .nav .nav-p:hover > svg { opacity: 1; color: var(--accent); }
/* Aktif satırın levhası: eskiden bu görüntüyü KAYAN bir kutu (motion.js → .ind)
   çiziyordu ve satırdan satıra süzülüyordu. Aynı görüntü, hareket yok. */
.nav a.nav-t.active {
  color: var(--text); font-weight: 600; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.05);
}
.nav a.nav-t.active::before { opacity: 1; }
.nav a.nav-t.active svg { opacity: 1; color: var(--accent); }
/* Grup açıkken ya da içinde bulunduğun sayfa oradayken başlık vurgulanır. */
.nav-g.open > .nav-p, .nav-g.icinde > .nav-p { color: var(--text); }
.nav-g.icinde > .nav-p > svg { opacity: 1; color: var(--accent); }
.nav .chev { width: 15px !important; height: 15px !important; opacity: .32 !important; transition: transform var(--base) var(--ease-out), opacity var(--fast) ease; }
.nav-g.open .chev { transform: rotate(90deg); opacity: .7 !important; color: var(--accent); }
.nav .nav-p:hover .chev { opacity: .6 !important; }
/* Açılır kapanır alt liste: 0fr → 1fr ızgara hilesi. Yükseklik animasyonu için
   sabit bir yükseklik bilmek gerekmez, içerik ne kadarsa o kadar açılır. */
.nav-c { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--base) var(--ease-out); }
.nav-c > div { overflow: hidden; position: relative; padding: 2px 0 6px; }
.nav-g.open .nav-c { grid-template-rows: 1fr; }
/* Açık grup tek bir NESNE gibi okunur: başlık ve alt satırlar aynı zeminde
   toplanır. Girinti tek başına "bunlar bir arada" demiyordu. */
.nav-g { border-radius: 13px; transition: background var(--base) ease; }
.nav-g.open { background: rgba(255,255,255,.022); }
:root[data-theme="light"] .nav-g.open { background: rgba(0,0,0,.022); }

.nav-c a {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 40px; border-radius: 10px; min-height: 36px;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  opacity: 0; transform: translateX(-7px);
  transition: opacity var(--base) ease, transform var(--base) var(--ease-out),
              background var(--fast) ease, color var(--fast) ease, box-shadow var(--fast) ease;
}
/* Kademeli giriş: satırlar yukarıdan aşağı sırayla belirir. Hepsi aynı anda
   düşünce açılış "bir blok patladı" gibi duruyordu. */
.nav-g.open .nav-c a { opacity: 1; transform: none; }
.nav-g.open .nav-c a:nth-child(1) { transition-delay: 40ms; }
.nav-g.open .nav-c a:nth-child(2) { transition-delay: 75ms; }
.nav-g.open .nav-c a:nth-child(3) { transition-delay: 110ms; }
.nav-g.open .nav-c a:nth-child(4) { transition-delay: 145ms; }
.nav-g.open .nav-c a:nth-child(5) { transition-delay: 180ms; }
/* RAY: her satır kendi parçasını çizer — böylece satır yüksekliği değişse de
   (kısa ekranda sıkışma) çizgi asla havada kalmaz. Son satırda ray noktada
   BİTER; başlıktan aşağı sarkan boş bir çizgi "devamı var" der, yoktur. */
.nav-c a::before { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--side-line); }
.nav-c a:last-child::before { bottom: 50%; }
/* NOKTA: rayın üstünde oturur. Boşken içi zemin rengiyle doludur (ray arkasından
   geçmiş gibi görünmesin), aktif olunca altın dolar ve halka açar. */
.nav-c a::after {
  content: ''; position: absolute; left: 18.5px; top: 50%; margin-top: -3.5px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--side-bg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow var(--fast) ease, background var(--fast) ease, transform var(--release) var(--spring);
}
.nav-c a:hover { color: var(--text); }
.nav-c a:hover::after { box-shadow: inset 0 0 0 1.5px var(--accent); }
.nav-c a.active { color: var(--text); font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav-c a.active::after { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: scale(1.14); }
.nav-c .cnt { margin-left: auto; }

/* KAYAN GÖSTERGE YOK. Menüde tek hareketli parça olarak bir levha satırdan satıra
   süzülüyordu (motion.js → slider). İki satırken göze çarpmıyordu; üst düzey satır
   sayısı artınca her gezinmede menünün yarısını kat eden bir kutuya dönüştü ve
   dikkati gidilen sayfadan animasyonun kendisine çekti. Aktif satır artık kendi
   levhasını taşır — görüntü aynı, hareket yok. `.seg`/`.tabs` göstergeleri durur.  */
.nav .cnt { font-size: 10.5px; font-weight: 700; min-width: 20px; text-align: center; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.nav a.active .cnt, .nav-g.icinde > .nav-p .cnt { background: var(--accent); color: var(--on-primary); }
.sidebar .foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--side-line); font-size: 9.5px; color: var(--faint); letter-spacing: .18em; text-transform: uppercase; flex: none; }
/* Menü kaydırılmayacağına göre KISA EKRANDA SIĞMALI. Ölçüldü: 620 px yükseklikte
   (1366x768 dizüstü, tarayıcı çubukları düşülünce kalan) son başlık alt yazının
   altında kalıyordu. Satırlar orantılı olarak sıkışır — kaydırma çubuğu çıkmaz.
   Eşikler üst satır sayısı 8'den 11'e çıkınca yukarı alındı (780→880, 660→720):
   eski eşiklerle 661-697 px aralığındaki ekranlarda menü taşıyordu.            */
/* KADEME 1 — tam ölçü kısalmadan önce: satır yüksekliği ve punto SABİT kalır,
   yalnız ikincil boşluklar (alt satır, marka çerçevesi, satır arası) sıkışır.
   Sebebi: menü 8 satırdan 11'e çıkınca 1440x900'lük bir ekranda son başlık alt
   yazının altında kalıyordu ve tek çare 42 px'lik satırları 38'e indirmekti —
   ama o kademe menüyü görünür biçimde küçültüyor, panel "sıkışmış" duruyordu.
   Bu ara kademe aynı yeri boşluktan kazanır, tipografiye dokunmadan. */
@media (max-height: 830px) {
  .brand { padding: 15px 8px 14px; margin-bottom: 6px; }
  .brand .mark { width: 42px; height: 42px; }
  .nav { gap: 1px; }
  .nav-c a { min-height: 32px; }
  .sidebar .foot { padding-top: 11px; }
}
@media (max-height: 790px) {
  .brand { padding: 13px 8px 13px; margin-bottom: 5px; }
  .brand .mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand .mark img { width: 24px; height: 24px; }
  .nav a.nav-t, .nav .nav-p { min-height: 38px; padding: 8px 12px; font-size: 14px; }
  .nav-c a { min-height: 32px; padding: 6px 12px 6px 40px; font-size: 13px; }
  .sidebar .foot { padding-top: 11px; }
}
@media (max-height: 726px) {
  .brand { padding: 10px 8px; }
  .brand .mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand .sub { display: none; }
  .nav a.nav-t, .nav .nav-p { min-height: 34px; padding: 6px 11px; font-size: 13.5px; }
  .nav a.nav-t svg, .nav .nav-p > svg { width: 17px; height: 17px; }
  .nav-c a { min-height: 29px; padding: 4px 11px 4px 38px; font-size: 12.5px; }
  .sidebar .foot { padding-top: 8px; font-size: 9px; }
}

/* -- üst çubuk --------------------------------------------------------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter);
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar .search { flex: 1; max-width: 480px; position: relative; }
.topbar .search input { width: 100%; height: 42px; padding: 0 46px 0 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); outline: none; transition: border-color var(--fast) ease, box-shadow var(--base) var(--ease-out), background var(--fast) ease; font-size: 14px; }
.topbar .search input::placeholder { color: var(--faint); }
.topbar .search input:focus { border-color: var(--accent-line); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.topbar .search svg { position: absolute; left: 14px; top: 13px; width: 17px; height: 17px; stroke: var(--faint); fill: none; stroke-width: 1.8; pointer-events: none; }
/* Kısayol rozeti alanın İÇİNDE durur: yer tutucu metne "(/)" yazmak alanı
   uzatıyor ve dar ekranda ilk kırpılan şey ipucu oluyordu. */
.topbar .search::after { content: '/'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: ui-monospace, monospace; font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; pointer-events: none; }
.search-results { position: absolute; top: 46px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; transform-origin: top center; animation: pop var(--base) var(--ease-out); }
.search-results a { display: flex; gap: 11px; align-items: center; padding: 12px 15px; border-bottom: 1px solid var(--line); font-size: 14px; }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--surface-2); }
.search-results .k { font-size: 9.5px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; width: 42px; font-weight: 700; }
.topbar .spacer { flex: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; position: relative; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; border: 2px solid var(--surface-glass); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 3px 12px 3px 3px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; }
.user-chip:hover { background: var(--surface-2); border-color: var(--line); }
/* Avatar altın halkalı: kullanıcı kimliği sayfadaki tek "kişisel" nesnedir. */
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--surface-3); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 11px; letter-spacing: .04em; flex: none; box-shadow: inset 0 0 0 1px var(--accent-line); }
.user-chip .n { font-weight: 600; font-size: 13.5px; line-height: 1.15; }
.user-chip .r { font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }

.content { padding: var(--gutter) var(--gutter) 80px; max-width: 1560px; width: 100%; }
.content > .page { animation: rise var(--base) var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(4px); } }
.hamburger { display: none; }

/* -- telefon: alt çubuk ------------------------------------------------
   Gezinme ALT çubuktan yürür; sol üstteki hamburger başparmağın en uzak
   köşesidir. Sık kullanılan dört sayfa doğrudan, gerisi "Menü" çekmecesinde. */
.tabbar { display: none; }
@media (max-width: 1060px) {
  :root { --gutter: 16px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: var(--sidebar); transform: translateX(-100%); transition: transform var(--slow) var(--ease-drawer); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .content { padding: 16px 14px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { padding: 0 12px; }
  .user-chip .n, .user-chip .r { display: none; }
  /* Parmak hedefi 46 px — ama menü çekmecede de KAYDIRILMADIĞI için bu ancak
     yükseklik VARSA geçerlidir. 11 üst satır + açık grubun 4 alt satırı 46 px'te
     ≈ 845 px eder; 667 px'lik bir telefonda son başlık sessizce kırpılırdı.
     Kısa ekranda yukarıdaki kademeler (max-height 880/720) geçerli kalır:
     sıkışmış satır, görünmeyen satırdan iyidir. */
  @media (min-height: 881px) {
    .sidebar .nav a, .sidebar .nav .nav-p { min-height: 46px; }
  }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--surface-glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button {
    appearance: none; border: 0; background: none; cursor: pointer; font-family: inherit;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 58px; padding: 8px 4px 6px; color: var(--muted); min-width: 0;
    font-size: 10.5px; font-weight: 500; line-height: 1.1; text-decoration: none;
    -webkit-tap-highlight-color: transparent; position: relative;
  }
  /* Etiket taşmaz, kısalır: menü gruplandığında adlar uzadı ("Tüm araçlar",
     "Canlı izleme") ve beş sekme 430 px ekranda çubuğu genişletiyordu. */
  .tabbar a span, .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: var(--accent); }
  .tabbar a.active svg { stroke-width: 2.2; }
  .tabbar a.active::before { content: ''; position: absolute; top: 0; left: 50%; width: 22px; height: 2px; border-radius: 0 0 3px 3px; background: var(--accent); transform: translateX(-50%); }
  .tabbar a:active, .tabbar button:active { background: var(--surface-2); }
  .tabbar .cnt { position: absolute; top: 6px; margin-left: 20px; background: var(--danger); color: #fff; border-radius: 999px; min-width: 16px; height: 16px; font-size: 10px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
}
.backdrop { position: fixed; inset: 0; background: rgba(4,4,6,.62); backdrop-filter: blur(2px); z-index: 55; animation: fade var(--base) ease-out; }
.stagger > * { animation: rise var(--slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); }

/* ==========================================================================
   5. BAŞLIK · KART · IZGARA
   ========================================================================== */
/* Sayfa başlığı panelin karşılama şeridiyle AYNI dili konuşur: iri Montserrat
   başlık, altında tek satır bağlam, sağda eylemler. Eylemler varsayılan olarak
   ARKAPLANSIZDIR — beş dolu düğme yan yana gelince hiçbiri diğerinden önemli
   görünmüyordu; dolu olan yalnız asıl eylemdir (.primary / .accent / .danger). */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 11px; font-size: 26px; letter-spacing: -.032em; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: 13px; }
.page-head .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* ⚠ DENENDİ VE GERİ ALINDI: eylemleri arkaplansız (hayalet) yapmak.
   Amaç hiyerarşiydi — "dolu olan yalnız asıl eylem olsun". Sonuç: ikincil
   eylemler okunmaz oldu, düğme oldukları anlaşılmıyordu. Hiyerarşi artık
   DOLGUYLA değil, RENKLE kuruluyor: ikincil düğmelerin zemini ve kenarı var
   ama rengi nötr; asıl eylem altın. İkisi de düğme gibi görünür. */
.page-head .actions .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.page-head .actions .btn:not(.primary):not(.accent):not(.danger):not(.success) {
  background: var(--surface-2); border-color: var(--line-strong); color: var(--text);
}
.page-head .actions .btn:not(.primary):not(.accent):not(.danger):not(.success):hover {
  background: var(--surface-3); border-color: var(--faint);
}
.page-head .actions .btn.primary, .page-head .actions .btn.accent { font-weight: 650; }
.page-head .actions .seg button { height: 34px; font-size: 13.5px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
:root[data-theme="light"] .card { box-shadow: var(--shadow-sm); }
.card .card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-height: 52px; }
.card .card-h h2 { font-size: 15px; font-weight: 600; letter-spacing: -.008em; }
.card .card-h > .small, .card .card-h > .muted { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.card .card-b { padding: 20px; }
.card .card-h h2 { display: flex; align-items: center; gap: 10px; }
/* Bölüm başlığındaki altın işaretin aynısı: panel, kart ve sayfa aynı dili
   konuşsun. İşaret bir süs değil, "burada yeni bir bölüm başlıyor" demektir. */
.card .card-h h2::before { content: ''; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); flex: none; }
.card .card-b.tight { padding: 0; }
/* Kartın üst hattında altın bir iplik: hiyerarşide "bu kutu önemli" demenin
   renk kullanmayan yolu. Dolgu ya da kalın kenarlık kutuyu ağırlaştırıyordu. */
.card.lead::before { content: ''; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }

.grid { display: grid; gap: 14px; }
.g1 { grid-template-columns: minmax(0,1fr); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.g23 { grid-template-columns: 2fr 1fr; }
.g32 { grid-template-columns: 1fr 2fr; }
.g21 { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
@media (max-width: 1240px) { .g5, .g6 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px) { .g2, .g3, .g23, .g32, .g21 { grid-template-columns: 1fr; } .g4, .g5, .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* -- özet kutusu (ui.stat) --------------------------------------------- */
/* Özet kutuları panelin finans levhasıyla AYNI nesnedir: ızgara yalnız özet
   kutusu içeriyorsa hepsi tek levhaya birleşir.
   ⚠ Hat, ızgara BOŞLUĞUYLA çizilmez — hücre KENARIYLA çizilir. Sebebi ölçüldü:
   boşluk yöntemi levha zeminini hat renginde gösterdiği için, ızgaranın son
   satırında boş kalan izler gri bloklar gibi duruyordu (araç detayında 7 kutu
   3 sütuna sığmıyor, Kasa'da 3 kutu 4 sütunluk ızgarada). Kenar + negatif kenar
   boşluğu + `overflow:hidden`: dıştaki fazla çizgiler kırpılır, boş iz ise
   yalnızca sade yüzey olarak kalır. Sayfanın kendi sütun sayısı korunur. */
.grid:has(> .stat):not(:has(> .card:not(.stat))) {
  gap: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.grid:has(> .stat):not(:has(> .card:not(.stat))) > .stat {
  border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0; border-radius: 0; box-shadow: none;
}
.stat { padding: 17px 19px 19px; display: flex; flex-direction: column; gap: 9px; position: relative; overflow: hidden; }
.stat .l { font-size: 11.5px; color: var(--faint); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.stat .v { font-size: clamp(21px, 1.62vw, 30px); font-weight: 700; letter-spacing: -.042em; margin-top: 0; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 13px; color: var(--muted); margin-top: -2px; }
.stat.accent .v { color: var(--accent); }
.stat.green .v { color: var(--ok); }
.stat.amber .v { color: var(--warn); }
.stat.red .v { color: var(--danger); }
.stat.blue .v { color: var(--info); }
.stat.clickable { cursor: pointer; }
/* Tıklanabilir kutu, tıklanamayandan HAREKETLE ayrılır: koyu zeminde renk
   farkı okunmuyor, 1 px yukarı kalkma okunuyor. */
@media (hover: hover) and (pointer: fine) {
  .stat.clickable:hover { background: var(--surface-2); }
  .stat.clickable:hover .v { color: var(--accent); }
}

/* ==========================================================================
   6. KOMUTA PANELİ (Panel sayfası)
   Yönetici tek ekrandan galeriye hakim olur. Sıra bilinçlidir:
   GALERİ (kamera + canlı varlık) → PARA → BUGÜN → AKIŞ.
   ========================================================================== */

/* -- karşılama şeridi --------------------------------------------------- */
.cmd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.cmd-head .hi { font-size: 31px; font-weight: 700; letter-spacing: -.027em; line-height: 1.12; }
.cmd-head .hi b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.cmd-head .dt { color: var(--muted); font-size: 13px; margin-top: 6px; letter-spacing: .02em; }
/* Hızlı erişim: ARKAPLANSIZ. Beş dolu düğme sağ üstte bir "düğme duvarı"
   kuruyordu ve hiçbiri diğerinden önemli görünmüyordu. Şimdi hepsi sade metin,
   yalnız BİR tanesi altın — asıl eylem odur. */
.quick { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.quick a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 11px; color: var(--muted); font-size: 13.5px; font-weight: 500; border: 1px solid transparent; white-space: nowrap; }
.quick a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .62; }
.quick a:hover { color: var(--text); background: var(--surface-2); }
.quick a:hover svg { opacity: 1; color: var(--accent); }
.quick a.lead { color: var(--accent); font-weight: 600; }
.quick a.lead svg { opacity: 1; }
.quick a.lead:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.quick .sep { width: 1px; height: 18px; background: var(--line); margin: 0 8px; flex: none; }

/* -- canlı durum rozeti ------------------------------------------------- */
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; position: relative; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live); opacity: .5; animation: nabiz 2.4s var(--ease-out) infinite; }
@keyframes nabiz { 0% { transform: scale(.6); opacity: .6; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.live-dot.off { background: var(--faint); } .live-dot.off::after { display: none; }
.live-dot.alarm { background: var(--danger); } .live-dot.alarm::after { border-color: var(--danger); animation-duration: 1s; }

/* -- kamera şeridi: sürekli akan slider --------------------------------
   16 kamerayı kutu kutu göstermek panelin işi DEĞİL — o kamera sayfasının işi.
   Burada üç kare akar; yönetici bakışını kaldırmadan tüm kanallar önünden
   geçer. Abonelik SABİTTİR (şerit dönerken yeniden abone OLUNMAZ): dahua
   hub'ı son abone ayrılınca NVR bağlantısını anında kapatıyor, her kaydırmada
   abonelik değiştirmek NVR'a saniyede bir aç-kapa yaptırırdı ve içeri giren
   kare siyah başlardı. */
.rail { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); }
.rail-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.rail-h .ttl { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.rail-h .grow { flex: 1; min-width: 12px; }
.rail-h .k { display: inline-flex; align-items: baseline; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.rail-h .k b { font-size: 16px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rail-h .k.ic b { color: var(--ok); } .rail-h .k.dis b { color: var(--warn); } .rail-h .k.arac b { color: var(--info); }
.rail-vp { overflow: hidden; padding: 12px; }
.rail-track { display: flex; gap: 12px; will-change: transform; }
.rail-track.kay { transition: transform var(--lux) var(--ease-in-out); }
.rail-tile {
  flex: 0 0 calc((100% - (var(--gor) - 1) * 12px) / var(--gor));
  position: relative; border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid var(--line); cursor: zoom-in; isolation: isolate;
}
/* Kutucuk oranı İLK KAREDEN gelir (--oran, şeridin tamamına birden yazılır):
   NVR alt akışı D1 yani 4:3; 16/9 bir kutuya `contain` ile oturtulunca yanlarda
   siyah bant kalıyor ve üç kare bir "film şeridi" değil, üç delik gibi duruyordu.
   Oran kaynağa eşitlenince bant kalmaz ve takip kutuları da görüntüye oturur
   (`cover` kırpardı: kırpılan kadrajda kutu koordinatı kayar). */
.rail-tile .fr { position: relative; aspect-ratio: var(--oran, 1.3333); background: #000; }
.rail-tile img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity var(--base) ease, filter var(--slow) ease, transform var(--lux) var(--ease-out); }
.rail-tile .cam-ov { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
/* Kadraj altı şerit: adın görüntünün üstünde yüzmesi için degrade — ayrı bir
   bar açmak 16:9'u bozuyor ve üç kare arasındaki hizayı kaydırıyordu. */
.rail-tile .bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 22px 11px 9px; font-size: 11.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.82)); pointer-events: none; }
.rail-tile .bar .nm { font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.rail-tile .bar .ch { color: rgba(255,255,255,.62); font-size: 10.5px; font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.rail-tile .say { position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.rail-tile .say.uzun { border-color: rgba(255,95,95,.5); color: #ffb4b4; }
.rail-tile .durum { position: absolute; inset: 0; display: grid; place-items: center; color: #6c7078; font-size: 11.5px; text-align: center; padding: 10px; pointer-events: none; letter-spacing: .02em; }
.rail-tile.bekle img { opacity: .22; filter: grayscale(1); }
.rail-tile.kopuk img { opacity: .08; }
.rail-tile.alarmli { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger), 0 0 30px -6px rgba(255,95,95,.5); }
/* Kutucuk dar: 1000 birimlik viewBox 335 px'e inince 19 px etiket 6 px olur ve
   okunmaz bir leke bırakır. Şeritte KUTU gösterilir, kimlik etiketi kamera
   ekranına aittir. */
.rail-tile .cam-ov text { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rail-tile:hover { border-color: var(--accent-line); box-shadow: var(--ring-gold); }
  .rail-tile:hover img { transform: scale(1.02); }
}
.rail-nav { display: inline-flex; gap: 4px; }
.rail-nav button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color var(--fast) ease, border-color var(--fast) ease, background var(--fast) ease; }
.rail-nav button:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-3); }
.rail-nav button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Nokta göstergesi: kaç kamera var ve şerit nerede. Altın olan, o an GİREN
   karedir — duran değil; şerit akıyorsa göz akışın yönünü arar. */
.rail-dots { display: flex; gap: 4px; align-items: center; }
.rail-dots i { width: 5px; height: 5px; border-radius: 999px; background: var(--surface-4); transition: background var(--base) ease, width var(--base) var(--ease-out); }
.rail-dots i.on { background: var(--accent); width: 16px; }
.rail-bos { padding: 44px 20px; text-align: center; color: var(--muted); }

/* -- finans levhası ------------------------------------------------------
   v5'te beş ayrı "metrik kutusu" + beş ayrı "çini kutusu" = on serbest
   dikdörtgen vardı; iki sıra üst üste gelince ekran kutu duvarına dönüyordu.
   Şimdi TEK bir levha: üst kat büyük rakamlar (para), alt kat sessiz sayaçlar
   (operasyon). Ayraçlar ızgara BOŞLUĞUDUR (gap:1px + zemin rengi) — böylece
   satır kaydığında hat asla yanlış yerde kalmaz.                            */
.board { background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board .cells { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 1px; }
.board .cell { background: var(--surface); padding: 17px 19px 19px; display: flex; flex-direction: column; gap: 9px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.board .cell .l { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.board .cell .l svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.board .cell .v { font-size: clamp(21px, 1.62vw, 30px); font-weight: 700; letter-spacing: -.042em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .cell .s { font-size: 12.5px; color: var(--muted); margin-top: -2px; }
.board .cell.lead .l { color: var(--accent); }
.board .cell.lead .v { color: var(--accent); }
.board .cell.ok .v { color: var(--ok); }
.board .cell.warn .v { color: var(--warn); }
.board .cell.bad .v { color: var(--danger); }
a.cell { cursor: pointer; transition: background var(--fast) ease; }
a.cell:hover { background: var(--surface-2); }
.board .tier { display: grid; grid-template-columns: repeat(var(--m, 5), minmax(0, 1fr)); gap: 1px; margin-top: 1px; }
.board .tier a { background: var(--surface-2); padding: 13px 19px; display: flex; align-items: baseline; gap: 9px; min-width: 0; transition: background var(--fast) ease; }
.board .tier a:hover { background: var(--surface-3); }
.board .tier .n { font-size: 16.5px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; flex: none; }
.board .tier .k { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .tier a:hover .n { color: var(--accent); }
@media (max-width: 1280px) { .board .cells { grid-template-columns: repeat(3, minmax(0,1fr)); } .board .tier { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px) { .board .cells { grid-template-columns: repeat(2, minmax(0,1fr)); } .board .tier { grid-template-columns: repeat(2, minmax(0,1fr)); } .board .cell .v { font-size: 24px; } }

/* -- BÖLÜM BAŞLIĞI (editoryal) -------------------------------------------
   Her blok için ayrı bir "kart başlığı" çizmek sayfayı eşit ağırlıkta kutulara
   bölüyordu — panelin tamamı aynı tonda konuşuyordu. Başlık artık kutunun
   İÇİNDE değil, ÜSTÜNDE: küçük altın işaret, ad, sonra sayfayı kesen ince hat.
   Kutu sayısı azalır, hiyerarşi görünür.                                     */
.sec { display: flex; align-items: center; gap: 12px; margin: 2px 2px 12px; }
.sec::before { content: ''; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); flex: none; }
.sec h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; flex: none; }
.sec .hat { flex: 1; height: 1px; background: var(--line); }
.sec .meta { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); flex: none; }
.sec a.meta:hover { color: var(--accent); }

/* -- HAT-AYRAÇLI YÜZEY ---------------------------------------------------
   Levhadaki teknikle aynı: ızgara BOŞLUĞU hattır (gap:1px + zemin rengi).
   Satır kenarlığı yerine boşluk kullanmak, satır kaydığında ya da son satır
   silindiğinde asla fazladan/eksik çizgi bırakmaz.                          */
.panel { background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; gap: 1px; }
.panel > * { background: var(--surface); }
.panel > .bos { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* -- dikkat gerektirenler ------------------------------------------------
   v5'te "uyarı hapları" şeridi kaldırıldı: renkli haplar sıralandığında ekran
   şeker kutusuna dönüyor ve hiçbiri acil görünmüyordu. Yerine tek bir LİSTE:
   her satırın bir ikonu, bir sayısı ve gidilecek bir yeri var.               */
.attn a { display: flex; align-items: center; gap: 15px; padding: 15px 18px; }
.attn .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.attn .ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.attn a.bad .ic { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 28%, transparent); }
.attn a.warn .ic { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 28%, transparent); }
.attn a.ok .ic { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 28%, transparent); }
.attn .g { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.attn .t { font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.attn .d { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.attn .n { font-size: 22px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; flex: none; }
.attn a.bad .n { color: var(--danger); } .attn a.warn .n { color: var(--warn); }
.attn .go { flex: none; color: var(--faint); display: grid; }
.attn .go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.attn a:hover .go { color: var(--accent); }

/* -- SENİ BEKLEYEN (hero şeridi) ------------------------------------------
   Randevu bir kayıt değil, bir SÖZDÜR: birisi seni belli bir saatte bekliyor.
   Alt kartta kırmızı bir satır olarak durması, sözü unutmakla aynı şey.
   Şerit ayrıca NE YAPILACAĞINI yazar — yönlendirmeyen uyarı yalnız kaygıdır. */
.hero-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.hero-al {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
/* Soldan içeri sızan renk yıkaması: dolgu bir kutu yerine ışık gibi. Dolu renkli
   bir şerit ekranın en üstünde "hata mesajı" gibi duruyordu; bu, haber gibi. */
.hero-al::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--hw, transparent) 0%, transparent 42%); opacity: .5; }
.hero-al::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hb, var(--line-strong)); }
.hero-al.gecti { --hw: var(--danger-soft); --hb: var(--danger); }
.hero-al.simdi { --hw: var(--accent-soft); --hb: var(--accent); }
.hero-al.yakin { --hw: var(--warn-soft); --hb: var(--warn); }
.hero-al .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--hb); position: relative; z-index: 1; }
.hero-al .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-al .g { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-al .k { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hb); }
.hero-al .t { font-family: Montserrat, Inter, sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.hero-al .t .ay { font-family: Inter, sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.hero-al .d { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hero-al .act { display: flex; align-items: center; gap: 10px; flex: none; position: relative; z-index: 1; }
.hero-al .act .ok { color: var(--faint); display: grid; transition: transform var(--base) var(--ease-out), color var(--fast) ease; }
.hero-al .act .ok svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .hero-al:hover { border-color: var(--hb); }
  .hero-al:hover .act .ok { color: var(--hb); transform: translateX(4px); }
}
.hero-daha { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12.5px; }
.hero-daha:hover { border-color: var(--accent-line); color: var(--accent); }
.hero-daha svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* -- STOK ŞERİDİ ----------------------------------------------------------
   Burası bir ARABA galerisi: yeni gelen aracı metin satırı olarak yazmak,
   vitrini kapalı tutmak demek. Kapak fotoğrafı büyük, fiyat altında. */
.stok { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.stok-k { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); transition: transform var(--release) var(--spring), border-color var(--fast) ease, box-shadow var(--base) var(--ease-out); }
.stok-k .img { aspect-ratio: 4/3; background: var(--bg-deep); display: grid; place-items: center; overflow: hidden; }
.stok-k .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-out); }
.stok-k .img svg { width: 34px; height: 34px; stroke: var(--faint); fill: none; stroke-width: 1.3; }
.stok-k .b { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; }
.stok-k .t { font-family: Montserrat, Inter, sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.stok-k .m { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.stok-k .p { font-size: 14.5px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
  .stok-k:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--ring-gold); }
  .stok-k:hover .img img { transform: scale(1.05); }
}

/* "Listeye giremeyenler" bloğu: uyarı değil BEYAN, o yüzden sessiz bir kutu. */
.bilinmiyor-kutu { margin-top: 10px; padding: 13px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.bilinmiyor-kutu > .small { margin-bottom: 8px; }
.bilinmiyor-kutu a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.bilinmiyor-kutu a:hover .muted { color: var(--accent); }

/* Nabız yeni bir şey getirdiğinde o bölge bir kez yanar: sayfa yenilenmediği
   için değişimin NEREDE olduğu başka türlü anlaşılmıyor. */
@keyframes yanip { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 100% { box-shadow: 0 0 0 10px transparent; } }
.yandi { animation: yanip 1.1s var(--ease-out); border-radius: var(--radius); }
@media (max-width: 760px) { .hero-al { flex-wrap: wrap; } .hero-al .act { width: 100%; justify-content: flex-end; } }

/* -- AI GÜN AÇILIŞI -------------------------------------------------------
   Sayıları SIRALAYAN bir cümle. Sayı üretmez (ai/assistant.js → GUN_SISTEM).
   Çalışmazsa kart hiç görünmez: brifing yoksa panel yine çalışır.            */
.ai-band { display: flex; gap: 14px; align-items: flex-start; padding: 15px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(120deg, var(--accent-soft), transparent 55%), var(--surface); margin-bottom: 18px; }
.ai-band .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--accent); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ai-band .ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ai-band .g { flex: 1; min-width: 0; }
.ai-band .k { font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.ai-band .m { font-size: 14px; line-height: 1.6; color: var(--text); }
.ai-band.bekle .m { color: transparent; background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 40%, var(--surface-3) 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 6px; min-height: 22px; }

/* -- canlı olay dizesi --------------------------------------------------- */
.ticker { max-height: 320px; overflow-y: auto; }
.ticker .ti { display: flex; align-items: center; gap: 12px; padding: 13px 18px; font-size: 13.5px; transition: background var(--fast) ease; background: var(--surface); }
.ticker .ti:hover { background: var(--surface-2); }
.ticker .ti.yeni { animation: girisSol var(--slow) var(--ease-out); }
@keyframes girisSol { from { opacity: 0; transform: translateX(-10px); } }
.ticker .ti .grow { flex: 1; min-width: 0; }
.ticker .ti .tm { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* -- çini (küçük bilgi karosu) ------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.tile .l { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-size: 18px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 11.5px; color: var(--faint); }
a.tile { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { a.tile:hover { border-color: var(--accent-line); background: var(--surface-3); } a.tile:hover .v { color: var(--accent); } }

/* ==========================================================================
   7. BUTONLAR
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; position: relative;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--surface-3); border-color: var(--faint); } }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none !important; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* İkon yalnız küçük ve ikon-butonlarda: normal boy butonda metin zaten yazıyor,
   ikon süs oluyordu ve satırı şişiriyordu. */
.btn:not(.sm):not(.icon-only) > svg { display: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); } }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-primary); font-weight: 650; }
.btn.success { background: var(--ok); border-color: var(--ok); color: #05130a; font-weight: 650; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 38%, var(--line-strong)); background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); } }
.btn.ghost { border-color: transparent; background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { background: var(--surface-2); border-color: var(--line); } }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; gap: 6px; }
.btn.sm svg { width: 13px; height: 13px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn.busy { color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--muted); border-right-color: transparent; animation: spin .5s linear infinite; }
.btn.primary.busy::after, .btn.accent.busy::after { border-color: var(--on-primary); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-btn { height: 74px; border-radius: 14px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ==========================================================================
   8. FORM
   ========================================================================== */
.form { display: grid; gap: 20px 18px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form.c1 { grid-template-columns: 1fr; }
@media (max-width: 700px) { .form, .form.c3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
/* Alanların kendisi de küçülebilmeli: uzun seçenek metni olan bir <select>,
   `width:100%` olsa bile en-az genişliğiyle kabı zorlar. */
.field > input, .field > select, .field > textarea, .input { min-width: 0; max-width: 100%; }
.field.span { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: 0; display: flex; align-items: center; gap: 5px; }
.field label .req { color: var(--danger); font-size: 15px; line-height: 0; }
.field .hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.input, .field input, .field select, .field textarea {
  height: 46px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface-2); outline: none; width: 100%; font-size: 15px;
  transition: border-color var(--fast) ease, box-shadow var(--base) var(--ease-out), background var(--fast) ease;
}
/* HATA DURUMU: eksik alan bildirim balonuyla değil, KENDİ YERİNDE söylenir.
   v4'te "Zorunlu alanları doldurun" diye bir bildirim çıkıyordu; kullanıcı
   hangi alanın eksik olduğunu formu tarayarak bulmak zorundaydı. */
.field.hata input, .field.hata select, .field.hata textarea { border-color: var(--danger); background: var(--danger-soft); }
.field.hata input:focus, .field.hata select:focus, .field.hata textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.field.hata > label { color: var(--danger); }
.field .field-err { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--danger); animation: rise var(--fast) var(--ease-out); }
.field .field-err::before { content: '!'; width: 15px; height: 15px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.field textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.55; border-radius: 12px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input[type="file"] { padding: 7px 10px; height: auto; }
.field input[type="range"] { height: auto; padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
.field input[type="checkbox"], .check input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--accent); margin: 0; flex: none; }
/* Tarih/saat seçicinin takvim ikonu koyu temada siyah kalıyor ve görünmüyordu. */
:root:not([data-theme="light"]) .field input[type="date"]::-webkit-calendar-picker-indicator,
:root:not([data-theme="light"]) .field input[type="month"]::-webkit-calendar-picker-indicator,
:root:not([data-theme="light"]) .field input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.check { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface-2); font-size: 14px; }
.check:hover { background: var(--surface-3); }
.check:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.check .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
/* Form bölümü: yalnız yazı değil, üstünde hat ve önünde altın işaret —
   uzun formda "nerede ne var" ancak bölümlerle okunur. */
.section-title { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 6px; }
.section-title::before { content: ''; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); flex: none; }
.section-title:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

.seg { position: relative; display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--surface-2); gap: 2px; isolation: isolate; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 0 17px; height: 38px; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.active { color: var(--text); font-weight: 650; }
.seg:not(.has-ind) button.active { background: var(--surface-4); }
.seg .ind { position: absolute; top: 3px; left: 0; height: calc(100% - 6px); width: 0; border-radius: 9px; background: var(--surface-4); box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform var(--slow) var(--ease-in-out), width var(--slow) var(--ease-in-out); z-index: 0; }
.seg.sm button { height: 26px; padding: 0 10px; font-size: 12px; }
.choice { display: flex; gap: 6px; flex-wrap: wrap; }
.choice label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--muted); background: var(--surface-2); }
.choice label:hover { color: var(--text); border-color: var(--faint); }
.choice label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--on-primary); font-weight: 650; }
.choice input { display: none; }
.tire-opt label:has(input[value="KOTU"]:checked) { background: var(--danger); border-color: var(--danger); color: #fff; }
.tire-opt label:has(input[value="ORTA"]:checked) { background: var(--warn); border-color: var(--warn); color: #17140a; }
.tire-opt label:has(input[value="IYI"]:checked) { background: var(--info); border-color: var(--info); color: #08101f; }
.tire-opt label:has(input[value="MUKEMMEL"]:checked) { background: var(--ok); border-color: var(--ok); color: #05130a; }

/* ==========================================================================
   9. TABLO
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background var(--fast) ease; }
.t tbody tr:hover { background: var(--surface-2); }
.t tr.click { cursor: pointer; }
.t tr.click:active td { background: var(--surface-3); }
/* Tıklanabilir satır, listelerdeki gibi solunda altın bir kenar açar. Tablo
   satırının tıklanabilir olduğu yalnız imleçten anlaşılıyordu. */
@media (hover: hover) and (pointer: fine) {
  .t tbody tr.click td { transition: box-shadow var(--fast) ease; }
  .t tbody tr.click:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
}
.t tbody tr.click:hover { background: var(--surface-2); }
.t .num, .num { text-align: right; }
.t .mono, .mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .02em; }
.t td.actions { text-align: right; white-space: nowrap; }
/* `.icon-btn` grid (yani blok) seviyesindedir: bir hücreye üç tane konunca
   yan yana değil ALT ALTA diziliyor ve satır üç kat uzuyordu. */
.t td.actions > .icon-btn { display: inline-grid; vertical-align: middle; }
.t tfoot td { font-weight: 650; background: var(--surface-2); }
.t td > svg, .li > svg, svg.ic, .kv svg, .small svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; color: var(--muted); }
svg.ic { width: 14px; height: 14px; }
/* Plaka gerçek plakaya benzer: beyaz zemin, mavi şerit yerine altın hat —
   taklit değil, alıntı. Listede gözün ilk yakaladığı şey plakadır. */
.plate { display: inline-block; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-3); font-size: 13.5px; color: var(--text); white-space: nowrap; }

/* ==========================================================================
   10. ROZET
   ========================================================================== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--gray-soft); color: var(--muted); letter-spacing: .01em; }
.badge.green { background: var(--ok-soft); color: var(--ok); }
.badge.amber { background: var(--warn-soft); color: var(--warn); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.blue { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-alert { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 7px; }
.pill-alert.warn { background: var(--warn-soft); color: var(--warn); }
.pill-alert.danger { background: var(--danger-soft); color: var(--danger); }
.pill-alert.info { background: var(--info-soft); color: var(--info); }

/* ==========================================================================
   11. ARAÇ KARTLARI · GALERİ · DETAY
   ========================================================================== */
.vgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
@media (hover: hover) and (pointer: fine) {
  .vcard:hover { border-color: var(--accent-line); box-shadow: var(--ring-gold); transform: translateY(-3px); }
  .vcard:hover .img img { transform: scale(1.04); }
}
/* Araç fotoğrafı zeminden DAHA koyu bir kuyuda durur: fotoğrafın kendi
   kenarı kaybolmasın, kart bir vitrin gibi okunsun. */
.vcard .img { aspect-ratio: 16/10; background: var(--bg-deep); position: relative; overflow: hidden; display: grid; place-items: center; color: var(--faint); }
.vcard .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-out); }
.vcard .img > svg, #coverBox svg { width: 46px; height: 46px; stroke: currentColor; fill: none; stroke-width: 1.2; opacity: .3; }
.vcard .body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 7px; }
.vcard .title { font-weight: 600; font-size: 15.5px; letter-spacing: -.012em; }
.vcard .meta { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; flex-wrap: wrap; }
.vcard .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line); }
.vcard .price { font-weight: 650; font-size: 15.5px; letter-spacing: -.022em; }
.vcard .alerts { display: flex; gap: 5px; flex-wrap: wrap; }
.vcard.faded .img, .vcard.faded .title, .vcard.faded .meta, .vcard.faded .foot { opacity: .5; }
.vcard.faded { border-style: dashed; }
.gauge { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.gauge > i { display: block; height: 100%; border-radius: 4px; background: var(--ok); transform-origin: left; animation: grow .7s var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }
.gauge.low > i { background: var(--danger); } .gauge.mid > i { background: var(--warn); }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero .stat .v { font-size: 18px; word-break: break-word; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px,1fr)); gap: 10px; }
.gallery .ph { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .gallery .ph:hover { border-color: var(--accent-line); box-shadow: var(--ring-gold); } }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdf-tile { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--muted); background: var(--surface-3); }
.pdf-tile span { font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.gallery .ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; }
.gallery .ph .k { position: absolute; top: 6px; left: 6px; }
.gallery .ph .ph-rm { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; }
.gallery .ph .ph-rm:hover { background: var(--danger); }
.gallery .ph.cover .ph-rm { right: 58px; }
.gallery .ph.hl { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery .ph.cover::after { content: 'Kapak'; position: absolute; top: 6px; right: 6px; font-size: 10px; background: var(--accent); color: var(--on-primary); padding: 2px 7px; border-radius: 5px; font-weight: 700; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px,1fr)); gap: 4px 20px; }
.kv .i { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv .i .k { font-size: 11.5px; color: var(--muted); font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.kv .i .v { font-weight: 500; font-size: 14.5px; }

.tabs { position: relative; display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 14px 16px; font-weight: 500; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); font-weight: 650; }
.tabs:not(.has-ind) button.active { border-bottom-color: var(--accent); }
.tabs .ind { position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; background: var(--accent); border-radius: 2px; transition: transform var(--slow) var(--ease-in-out), width var(--slow) var(--ease-in-out); }
.tabs button .cnt { margin-left: 7px; font-size: 11.5px; background: var(--gray-soft); padding: 1px 6px; border-radius: 999px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline { display: flex; flex-direction: column; }
.timeline .ev { display: grid; grid-template-columns: 125px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.timeline .ev:last-child { border-bottom: 0; }
.timeline .ev .t { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline .ev .who { color: var(--faint); font-size: 11.5px; margin-top: 1px; }
.lightbox { position: fixed; inset: 0; background: rgba(3,3,4,.94); backdrop-filter: blur(6px); z-index: 200; display: grid; place-items: center; cursor: zoom-out; animation: fade var(--base) ease-out; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 10px; animation: pop var(--slow) var(--ease-out); box-shadow: 0 40px 120px -30px rgba(0,0,0,1); }
.lightbox .cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; }

/* ==========================================================================
   12. MODAL — form akışı
   v4'te modal "başlık + alanlar + iki düğme"ydi: düz bir HTML formu gibi
   duruyordu. Modal bir SAYFADIR; başlığı, bölümleri, nefes alan alanları ve
   sabit bir alt çubuğu olmalı. Ayrıca doğrulama SATIR İÇİNDE olur — eksik
   alanı bildiren bir bildirim balonu, hangi alanın eksik olduğunu göstermez.
   ========================================================================== */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 26px; background: rgba(4,4,6,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity var(--fast) ease-out; }
.modal {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 22px;
  width: 100%; max-width: 680px; max-height: calc(100vh - 52px); min-width: 0;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform-origin: center; transition: transform var(--slow) var(--spring), opacity var(--base) ease-out;
  position: relative; overflow: hidden;
}
/* Üst kenarda altın iplik: pencerenin "bizim" olduğunu söyleyen tek işaret. */
.modal::before { content: ''; position: absolute; left: 26px; right: 26px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .8; }
@starting-style { .modal-wrap { opacity: 0; } .modal { transform: scale(.965) translateY(12px); opacity: 0; } }
.modal-wrap.closing { opacity: 0; transition-duration: var(--fast); }
.modal-wrap.closing .modal { transform: scale(.98) translateY(4px); opacity: 0; transition: transform var(--fast) ease-out, opacity var(--fast) ease-out; }
.modal.wide { max-width: 1040px; } .modal.narrow { max-width: 460px; }
.modal .m-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); flex: none; }
.modal .m-h h2 { font-family: Montserrat, Inter, sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -.024em; display: flex; align-items: center; gap: 11px; line-height: 1.25; }
.modal .m-h h2::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); flex: none; }
.modal .m-h .sub { font-size: 13px; color: var(--muted); margin-top: 6px; padding-left: 17px; line-height: 1.45; }
.modal .m-b { padding: 24px; overflow-y: auto; flex: 1; }
/* Alt çubuk yapışkandır ve zemini ayrıdır: uzun formda düğmeler gözden kaybolmaz. */
.modal .m-f { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); flex: none; }
.modal .m-f .btn { height: 44px; padding: 0 20px; font-size: 14.5px; }
.modal .m-f .btn.primary, .modal .m-f .btn.accent, .modal .m-f .btn.danger, .modal .m-f .btn.success { min-width: 132px; }
.modal .m-f .grow, .modal .m-f .spacer { margin-right: auto; }
@media (max-width: 600px) {
  .modal-wrap { padding: 0; align-items: end; }
  .modal { border-radius: 22px 22px 0 0; max-height: 94vh; transition: transform var(--slow) var(--ease-drawer), opacity var(--base) ease-out; }
  @starting-style { .modal { transform: translateY(100%); opacity: 1; } }
  .modal-wrap.closing .modal { transform: translateY(100%); opacity: 1; transition: transform var(--base) var(--ease-drawer); }
  .modal .m-h, .modal .m-b, .modal .m-f { padding-left: 18px; padding-right: 18px; }
  .modal .m-f { flex-wrap: wrap; }
  .modal .m-f .btn { flex: 1; min-width: 0 !important; }
}
/* Telefonda çekmece: üstte tutamak, başparmakla kapatılabilir hissi. */
@media (max-width: 600px) {
  .modal::after { content: ''; position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 99px; background: var(--line-strong); }
  .modal .m-h { padding-top: 26px; }
}

#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 11px 15px; border-radius: 12px; background: var(--surface-4); border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; box-shadow: var(--shadow-lg); max-width: 400px; font-size: 13px; transform: translateY(12px) scale(.98); opacity: 0; transition: transform var(--slow) var(--spring), opacity var(--base) ease-out; cursor: pointer; }
.toast.show { transform: none; opacity: 1; }
.toast.hide { transform: translateY(6px) scale(.98); opacity: 0; transition-duration: var(--fast); }
.toast.err { background: var(--danger); border-color: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); border-color: var(--ok); color: #05130a; }
@media (max-width: 600px) { #toasts { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); } .toast { max-width: none; } }

.skeleton { display: grid; gap: 14px; }
.skeleton .sk { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 42%, var(--surface) 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ==========================================================================
   13. YARDIMCILAR · LİSTE · BİLDİRİM
   ========================================================================== */
.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .ic { font-size: 24px; margin-bottom: 9px; opacity: .45; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .b { font-weight: 650; } .right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.pos { color: var(--ok); } .neg { color: var(--danger); }
.grow { flex: 1; min-width: 0; }
.list { display: flex; flex-direction: column; }
.list .li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background var(--fast) ease; }
.list .li:last-child { border-bottom: 0; }
.list .li:hover { background: var(--surface-2); }
.list .li .grow { flex: 1; min-width: 0; }
.list .li .ttl { font-weight: 500; font-size: 14.5px; }
.list .li .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.list .li .kapak { width: 64px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--bg-deep); flex: none; display: grid; place-items: center; border: 1px solid var(--line); }
.list .li .kapak img { width: 100%; height: 100%; object-fit: cover; }
.list .li .kapak svg { width: 20px; height: 20px; stroke: var(--faint); fill: none; stroke-width: 1.5; }
.notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notif-item:last-child { border-bottom: 0; }
.notif-item .lv { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--faint); }
.notif-item .lv.danger { background: var(--danger); box-shadow: 0 0 10px -1px var(--danger); }
.notif-item .lv.warn { background: var(--warn); }
.notif-item .lv.info { background: var(--info); }
.dropzone { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: background var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease; font-size: 13px; background: var(--surface-2); }
.dropzone:hover, .dropzone.over { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.progress { height: 4px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); transition: width .6s var(--ease-out); }
.map { height: 330px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.leaflet-container { font: inherit; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row:last-child { border-bottom: 0; }
.check-row:hover { background: var(--surface-2); }
.check-row .box { width: 21px; height: 21px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: background var(--fast) ease, border-color var(--fast) ease, transform var(--release) var(--spring-bounce); background: var(--surface-2); }
.check-row .box svg { width: 13px; height: 13px; stroke: #05130a; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.check-row.done .box { background: var(--ok); border-color: var(--ok); transform: scale(1.06); }
.check-row.done .ttl { text-decoration: line-through; color: var(--muted); }
.check-row .ttl { font-weight: 500; flex: 1; transition: color var(--fast) ease; }
.kbd { font-family: ui-monospace, monospace; font-size: 11px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; color: var(--muted); background: var(--surface-2); }
.verif { display: flex; gap: 6px; flex-wrap: wrap; }
.masked { color: var(--faint); letter-spacing: .12em; }
.sparkbar { display: flex; align-items: flex-end; gap: 4px; height: 58px; }
.sparkbar i { flex: 1; background: var(--surface-3); border-radius: 3px 3px 0 0; position: relative; min-height: 2px; transform-origin: bottom; animation: growY .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); transition: background var(--fast) ease; }
@keyframes growY { from { transform: scaleY(0); } }
.sparkbar i:hover { background: var(--accent-soft); }
.sparkbar i.cur { background: var(--accent); }

/* -- giriş ekranı --------------------------------------------------------
   Giriş, sistemin ilk izlenimi. Kart obsidyen kuyuda yüzer; altın yalnız
   markada ve birincil düğmede görünür. */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: var(--bg); position: relative; overflow: hidden; }
.login-wrap::before { content: ''; position: absolute; width: 780px; height: 780px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%); opacity: .5; pointer-events: none; animation: fade 1.2s ease-out; }
.login { width: 100%; max-width: 396px; text-align: center; animation: rise .55s var(--ease-out); position: relative; }
.login img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 6px 26px var(--accent-glow)); }
.login .name { font-size: 12.5px; color: var(--text); }
.login .sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; margin-bottom: 28px; letter-spacing: .06em; }
.login .box { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 22px; padding: 26px; text-align: left; box-shadow: var(--shadow-lg); }
.login .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 12px; color: var(--muted); }
.login .foot button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; padding: 4px 0; }
.login .foot button:hover { color: var(--accent); }

/* ==========================================================================
   14. GÖREVLER · AKIŞ · SÜRELER · GÜNDEM
   ========================================================================== */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr; } }
/* Pano sütunu bir "kuyu"dur: kartlar onun içinde yüzer. Sütun başlığı bölüm
   başlığıyla aynı dili konuşur — renkli nokta durumu söyler, sayı yükü. */
.kanban .col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 220px; }
.kanban .col-h { display: flex; align-items: center; gap: 9px; padding: 4px 4px 13px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.kanban .col-h::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--k, var(--faint)); flex: none; }
.kanban .col:nth-child(1) { --k: var(--faint); }
.kanban .col:nth-child(2) { --k: var(--info); }
.kanban .col:nth-child(3) { --k: var(--ok); }
.kanban .col-h > :last-child { margin-left: auto; font-size: 11.5px; letter-spacing: 0; color: var(--faint); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.task-card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; margin-bottom: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 7px; }
@media (hover: hover) and (pointer: fine) { .task-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); } }
.task-card .ttl { font-weight: 500; font-size: 14.5px; line-height: 1.38; }
.task-card .meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.task-card.overdue { border-left: 3px solid var(--danger); }
.task-card .who { display: inline-flex; align-items: center; gap: 6px; }
.task-card .who i { width: 21px; height: 21px; border-radius: 999px; background: var(--surface-3); display: grid; place-items: center; font-size: 10px; font-weight: 650; color: var(--muted); font-style: normal; }
.prio { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.prio.URGENT { background: var(--danger); box-shadow: 0 0 8px -1px var(--danger); }
.prio.HIGH { background: var(--warn); } .prio.NORMAL { background: var(--info); } .prio.LOW { background: var(--faint); }

.feed { display: flex; flex-direction: column; }
.feed .fi { display: grid; grid-template-columns: 32px 1fr auto; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.feed .fi:last-child { border-bottom: 0; }
.feed .fi .av { width: 29px; height: 29px; border-radius: 999px; background: var(--surface-3); display: grid; place-items: center; font-size: 10.5px; font-weight: 650; color: var(--muted); margin-top: 1px; }
.feed .fi .tx { font-size: 12.8px; line-height: 1.45; min-width: 0; }
.feed .fi .tx .k { font-weight: 650; color: var(--text); }
.feed .fi .tm { font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Tarih rayı: dolu bir "rozet" yerine sütun. Dolu hap her satırda bir renk
   lekesi bırakıyor ve liste alacalı görünüyordu; sayı büyük, birim küçük,
   önem rengi soldaki 2 px çubukta. */
.deadline { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 20px; position: relative; }
.deadline::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 0 2px 2px 0; background: var(--dl, var(--line-strong)); }
.deadline.lv-danger { --dl: var(--danger); } .deadline.lv-warn { --dl: var(--warn); } .deadline.lv-info { --dl: var(--info); }
.deadline .d { min-width: 46px; text-align: center; flex: none; line-height: 1; }
.deadline .d b { display: block; font-family: Montserrat, Inter, sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--dl, var(--text)); }
.deadline .d small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.deadline .g { flex: 1; min-width: 0; }
.deadline .g b { font-weight: 600; font-size: 14.5px; }
.deadline .g small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.deadline .go { flex: none; color: var(--faint); display: grid; }
.deadline .go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deadline:hover .go { color: var(--accent); }

/* Gündem bir ZAMAN ÇİZELGESİDİR: saat solda sabit sütunda, olaylar bir rayda
   dizilir. Yan menüdeki alt liste rayıyla aynı dil — sistem tek bir şey söylüyor. */
.agenda-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; position: relative; }
.agenda-item .saat { width: 46px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.agenda-item .ray { width: 11px; flex: none; align-self: stretch; position: relative; }
.agenda-item .ray::before { content: ''; position: absolute; left: 5px; top: -14px; bottom: -14px; width: 1px; background: var(--line); }
.agenda-item:first-child .ray::before { top: 50%; }
.agenda-item:last-child .ray::before { bottom: 50%; }
.agenda-item .ray::after { content: ''; position: absolute; left: 1.5px; top: 50%; margin-top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ag, var(--line-strong)); }
.agenda-item.t-gorev { --ag: var(--accent); } .agenda-item.t-cekici { --ag: var(--info); } .agenda-item.t-arama { --ag: var(--purple); }
.agenda-item.gecikti { --ag: var(--danger); }
.agenda-item .tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--gray-soft); color: var(--muted); flex: none; }

/* ==========================================================================
   15. YAPAY ZEKÂ ASİSTANI — ChatGPT tarzı sohbet (pages/assistant.js)

   v5.1'de bu bölüm baştan yazıldı. Eski düzen "sol liste + balonlar + alta
   yapışık kutu"ydu ve iki şeyi yanlış yapıyordu:
   (1) ASİSTANIN CEVABI DA BALONDAYDI. Okunan asıl metin ekranın yarısına
       sıkışıyor, içindeki tablo/grafik balonu deforme ediyordu. Artık balon
       yalnız SORUNUN işaretidir (kısa, sağda); cevap ortalanmış tek sütunda
       sayfanın kendisi gibi akar. Okunabilir satır uzunluğu ~72 karakterdir,
       bu yüzden sütun 768 px'te tavanlanır — geniş ekranda metni kenardan
       kenara yaymak "çok yer var" demek değil, "okunmuyor" demektir.
   (2) YAZI ALANI TEK SATIRLIK BİR KUTUYDU. Şimdi bir KART: ek şeridi, metin,
       ve altında araç çubuğu (ek / dikte / gönder) aynı çerçevenin içinde.
   ========================================================================== */
.gpt { display: grid; grid-template-columns: var(--gpt-side, 272px) 1fr; gap: 0; height: calc(100vh - var(--topbar) - 44px); min-height: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.gpt.kapali { --gpt-side: 0px; }

/* ---------- kenar çubuğu ---------- */
.gpt-side { display: flex; flex-direction: column; gap: 9px; min-width: 0; min-height: 0; padding: 11px 10px 10px; background: var(--side-bg); border-right: 1px solid var(--line); overflow: hidden; transition: opacity var(--base) ease; }
.gpt.kapali .gpt-side { opacity: 0; pointer-events: none; padding-left: 0; padding-right: 0; }
.gs-top { display: flex; align-items: center; justify-content: space-between; }
.gs-ic { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: color var(--fast) ease, background var(--fast) ease; }
.gs-ic svg { width: 18px; height: 18px; }
.gs-ic:hover { color: var(--text); background: var(--surface-3); }
.gs-ic.sm { width: 26px; height: 26px; border-radius: 7px; opacity: 0; flex: none; }
.gs-ic.sm svg { width: 14px; height: 14px; }
.gs-new { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: border-color var(--fast) ease, background var(--fast) ease; }
.gs-new svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.gs-new:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.gs-ara { display: flex; align-items: center; gap: 7px; padding: 0 10px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; transition: border-color var(--fast) ease; }
.gs-ara:focus-within { border-color: var(--accent-line); }
.gs-ara svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.gs-ara input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--text); font-size: 13px; }
.gs-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -4px; padding: 0 4px; display: flex; flex-direction: column; }
.gs-obek { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); padding: 13px 8px 5px; }
/* Tıklanabilir satır bunu SÖYLER: solda altın kenar (yan menüyle aynı dil), dolgu değil. */
.gs-item { display: flex; align-items: center; gap: 2px; padding: 8px 6px 8px 10px; border-radius: 9px; cursor: pointer; position: relative; color: var(--muted); }
.gs-item::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity var(--fast) ease; }
.gs-item:hover { color: var(--text); }
.gs-item:hover::before { opacity: .55; }
.gs-item:hover .gs-ic.sm { opacity: 1; }
.gs-item.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.gs-item.active::before { opacity: 1; }
.gs-item .ad { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-bos { color: var(--faint); font-size: 12.5px; line-height: 1.6; padding: 16px 8px; }
.gs-foot { border-top: 1px solid var(--line); padding-top: 8px; }
.gs-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.gs-link svg { width: 16px; height: 16px; flex: none; }
.gs-link:hover { color: var(--text); background: var(--surface-2); }
.gs-link.active { color: var(--accent); background: var(--accent-soft); }

/* ---------- ana sütun ---------- */
.gpt-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); position: relative; }
/* Sürükle-bırak işareti KAYDIRMA ALANINA çizilir (yazı kutusuna değil): dosya oraya bırakılır.
   `.gpt-main::before/::after` boş durumun dikey ortalama payları için ayrılmıştır. */
.gpt-main.birak .gpt-scroll::after { content: 'Bırakın, ekleyeyim'; position: absolute; inset: 10px; z-index: 5; display: grid; place-items: center; border: 2px dashed var(--accent-line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--accent); font-weight: 650; letter-spacing: .01em; pointer-events: none; }
.gpt-top { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex: none; }
.gpt-top .grow { flex: 1; }
.gt-ttl { font-family: Montserrat, var(--font); font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-ic.kenar-ac { display: none; } .gpt.kapali .gs-ic.kenar-ac { display: grid; }
.gs-ic.mobil-ac { display: none; }
.gt-ses { display: flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; transition: background var(--fast) ease, border-color var(--fast) ease, opacity var(--fast) ease; }
.gt-ses svg { width: 16px; height: 16px; }
.gt-ses:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.gt-ses.pasif { opacity: .45; border-color: var(--line-strong); background: transparent; color: var(--muted); }

.gpt-scroll { flex: 1; min-height: 0; position: relative; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.gpt-thread { max-width: 768px; margin: 0 auto; padding: 26px 22px 10px; display: flex; flex-direction: column; gap: 22px; }
.gpt-thread.br { max-width: 940px; gap: 14px; }
/* Boş sohbet: karşılama + yazı kutusu bir GRUP olarak dikey ortalanır (ChatGPT'nin açılışı).
   ⚠ `justify-content:center` İLE YAPILAMAZ: sütunun ilk çocuğu başlık çubuğudur ve o da ortalanır —
   ölçüldü, başlık ekranın 1/3'üne iniyordu. Doğrusu grubun ALTINA ve ÜSTÜNE eşit birer esnek pay
   koymaktır; başlık `order:-1` ile paydan önce kalır. Kaydırma alanı burada içeriği kadar yer
   kaplar (`flex:0 1 auto`), yoksa payın bir kısmı onun içinde kalır ve grup yukarı kayar. */
.gpt-main.bos .gpt-top { order: -1; }
.gpt-main.bos::before, .gpt-main.bos::after { content: ''; flex: 1 1 0; min-height: 0; }
.gpt-main.bos .gpt-scroll { flex: 0 1 auto; }
.gpt-main.bos .gpt-oneri { display: flex; }
.gpt-hello { text-align: center; padding: 8px 12px 0; }
.gpt-hello .mark { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 17px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); box-shadow: var(--ring-gold); }
.gpt-hello .mark svg { width: 26px; height: 26px; }
.gpt-hello h2 { font-size: 25px; letter-spacing: -.03em; margin-bottom: 9px; }
.gpt-hello p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 520px; margin: 0 auto; }

/* ---------- turlar ---------- */
.tur { display: flex; gap: 13px; animation: rise var(--base) var(--ease-out) both; }
.tur.user { justify-content: flex-end; }
.tur.user .balon { max-width: 86%; padding: 11px 16px; border-radius: 19px 19px 5px 19px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14.5px; line-height: 1.6; }
.tur.user .balon p { margin: 0 0 6px; } .tur.user .balon p:last-child { margin: 0; }
.tur.ai .avatar { width: 28px; height: 28px; flex: none; margin-top: 1px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); }
.tur.ai .avatar svg { width: 15px; height: 15px; }
.tur.ai .govde { min-width: 0; flex: 1; font-size: 14.5px; line-height: 1.68; }
.tur.ai.sesli .avatar { border-color: var(--accent-line); background: var(--accent-soft); }
.tur.ai.fail .govde { color: var(--danger); }
.tur.sys { justify-content: center; }
.tur.sys span { font-size: 12.5px; color: var(--muted); padding: 4px 14px; border: 1px dashed var(--line-strong); border-radius: 999px; }
/* Akarken imleç: "bitti mi hâlâ yazıyor mu" sorusunun cevabı, dönen çarktan daha sakin. */
.tur.ai.calisiyor .txt p:last-child::after { content: ''; display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--accent); animation: imlec 1s steps(2) infinite; }
@keyframes imlec { 50% { opacity: 0; } }
.tur .txt p { margin: 0 0 11px; } .tur .txt p:last-child { margin-bottom: 0; }
.tur .txt ul, .tur .txt ol { margin: 8px 0 11px; padding-left: 21px; } .tur .txt li { margin: 4px 0; }
.tur .txt b.h { display: block; margin: 14px 0 5px; font-size: 15px; }
.tur .txt code { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--surface-3); padding: 1.5px 6px; border-radius: 6px; }
.tur .txt pre { position: relative; background: var(--surface-2); border: 1px solid var(--line); padding: 13px 15px; border-radius: 12px; overflow-x: auto; font-size: 12.5px; margin: 10px 0; }
.pre-kopya { position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-3); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity var(--fast) ease; }
.pre-kopya svg { width: 14px; height: 14px; }
.tur .txt pre:hover .pre-kopya { opacity: 1; }
.pre-kopya:hover { color: var(--accent); border-color: var(--accent-line); }
.tur .txt .table-wrap { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; }
.tur .txt .t th, .tur .txt .t td { padding: 8px 12px; font-size: 13px; }
.tur .txt .t th { position: static; }
.tur .st { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.tur .txt:empty + .st { margin-top: 0; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
/* Cevap altı eylemler: üzerine gelinince görünür — her cevabın altında duran üç düğme,
   okunan metnin ritmini bölüyordu. Dokunmatikte hover yok, orada hep görünür. */
.tur-alt { display: flex; gap: 2px; margin-top: 9px; opacity: 0; transition: opacity var(--fast) ease; }
.tur.ai:hover .tur-alt, .tur-alt:focus-within { opacity: 1; }
.tur-ic { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; transition: color var(--fast) ease, background var(--fast) ease; }
.tur-ic svg { width: 15px; height: 15px; }
.tur-ic:hover { color: var(--text); background: var(--surface-2); }
.tur-ic.aktif { color: var(--accent); background: var(--accent-soft); }

/* ---------- mesajdaki ekler ---------- */
.msg-ek { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.msg-ek .e-img { position: relative; display: block; width: 116px; height: 116px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-3); }
.msg-ek .e-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-ek .e-dosya { display: inline-flex; align-items: center; gap: 7px; max-width: 230px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 12.5px; text-decoration: none; }
.msg-ek .e-dosya svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.msg-ek .e-dosya span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Okunamayan ek SESSİZCE normal görünmez: modelin görmediği bir fotoğraf, bakılmış sanılmamalı. */
.e-uyari { position: absolute; top: 5px; right: 5px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; font-style: normal; }
.msg-ek .e-dosya .e-uyari { position: static; width: 16px; height: 16px; font-size: 11px; }

/* ---------- alt bölge: öneriler + yazı kartı ---------- */
.gpt-bottom { flex: none; position: relative; padding: 4px 22px 14px; max-width: 812px; width: 100%; margin: 0 auto; }
.gpt-jump { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer; box-shadow: var(--shadow); }
.gpt-jump svg { width: 16px; height: 16px; }
.gpt-jump:hover { border-color: var(--accent-line); color: var(--accent); }
.gpt-oneri { display: none; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.oneri { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; cursor: pointer; transition: border-color var(--fast) ease, color var(--fast) ease, background var(--fast) ease; }
.oneri svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.oneri span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oneri:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.oneri:active { transform: scale(.975); }

/* Yazı alanı bir KUTU değil bir KART: ek şeridi, metin ve araç çubuğu aynı çerçevede. */
.composer { border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface-2); padding: 8px 8px 7px; transition: border-color var(--fast) ease, box-shadow var(--base) var(--ease-out); }
.composer:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.composer textarea { display: block; width: 100%; resize: none; min-height: 30px; max-height: 220px; padding: 7px 10px 4px; border: 0; background: transparent; outline: none; color: var(--text); font: inherit; font-size: 15px; line-height: 1.55; }
.composer textarea::placeholder { color: var(--faint); }
.cmp-alt { display: flex; align-items: center; gap: 4px; padding-top: 3px; }
.cmp-alt .grow { flex: 1; }
.cmp-ic { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; transition: color var(--fast) ease, background var(--fast) ease; }
.cmp-ic svg { width: 18px; height: 18px; }
.cmp-ic:hover { color: var(--text); background: var(--surface-3); }
.cmp-ic.aktif { color: var(--danger); background: var(--danger-soft); animation: nabiz 1.4s ease-in-out infinite; }
@keyframes nabiz { 50% { opacity: .55; } }
.cmp-ipucu { font-size: 11.5px; color: var(--faint); margin-right: 6px; }
.cmp-gonder { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gold-grad); color: #17140a; cursor: pointer; flex: none; transition: opacity var(--fast) ease, transform var(--press) ease; }
.cmp-gonder svg { width: 18px; height: 18px; stroke-width: 2.4; }
.cmp-gonder:disabled { opacity: .3; cursor: default; background: var(--surface-4); color: var(--muted); }
.cmp-gonder:not(:disabled):active { transform: scale(.92); }
.cmp-gonder.dur { background: var(--surface-4); color: var(--text); }
.cmp-not { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 9px; }
.cmp-not b { color: var(--muted); font-weight: 650; }
.cmp-ekler { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 4px 7px; }
.cmp-ek { position: relative; display: flex; align-items: center; gap: 7px; max-width: 190px; padding: 5px 26px 5px 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-3); font-size: 12px; }
.cmp-ek img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.cmp-ek .dk { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-4); color: var(--muted); flex: none; }
.cmp-ek .dk svg { width: 16px; height: 16px; }
.cmp-ek .ad { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-ek button { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-4); color: var(--muted); cursor: pointer; }
.cmp-ek button svg { width: 11px; height: 11px; stroke-width: 2.6; }
.cmp-ek button:hover { background: var(--danger); color: #fff; }

/* ---------- onay kartı / paneller / brifing (biçim korunur) ---------- */
.chat-action { margin-top: 13px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 14px; padding: 13px 15px; }
.chat-action .ttl { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.chat-action .sum { white-space: pre-wrap; font-size: 13.5px; }
.chat-action .btns { display: flex; gap: 8px; align-items: center; margin-top: 11px; flex-wrap: wrap; }
.chat-action .res { margin-top: 8px; font-size: 13px; }
.chat-action .res a { color: var(--accent); font-weight: 650; text-decoration: underline; }
.chat-action.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); } .chat-action.ok .ttl { color: var(--ok); }
.chat-action.no { border-color: var(--line-strong); background: var(--surface-3); } .chat-action.no .ttl { color: var(--muted); }
.pnl { margin-top: 13px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: var(--surface-2); }
.pnl-h { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 11px; }
.pnl-bars .row { display: grid; grid-template-columns: minmax(80px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 3px 0; font-size: 12.5px; }
.pnl-bars .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.pnl-bars .b { height: 12px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.pnl-bars .b i { display: block; height: 100%; border-radius: 999px; transition: width var(--slow) var(--ease-out); }
.pnl-bars .v { font-variant-numeric: tabular-nums; font-weight: 650; }
.pnl-line { width: 100%; height: 200px; display: block; }
.pnl-line .ax { stroke: var(--line-strong); stroke-width: 1; }
.pnl-line .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pnl-line .pt { fill: var(--surface); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pnl-xl { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); padding: 4px 4px 0; }
.pnl-pie { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pnl-pie .pie { width: 152px; height: 152px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.pnl-pie .leg { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.pnl-pie .leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.pnl-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; }
.pnl-kpi .k { padding: 11px 13px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.pnl-kpi .l { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pnl-kpi .v { font-size: 19px; font-weight: 650; letter-spacing: -.028em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.pnl-kpi .s { font-size: 11.5px; color: var(--faint); }
.brief { border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; background: var(--surface-2); }
.brief.unread { border-color: var(--accent-line); }
.brief .bh { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.brief .bb { font-size: 13.5px; line-height: 1.6; }
.brief .bb p { margin: 0 0 6px; }
.brief .bb ul { margin: 4px 0; padding-left: 20px; }
.brief .bb b.h { display: block; margin: 11px 0 4px; font-size: 14.5px; }

/* ==========================================================================
   15b. CANLI SESLİ MOD (server/ai/ses.js köprüsü)
   Tam ekran bir KATMANDIR, yan panel değil: konuşurken kullanıcı ekrana değil
   karşısındaki işe bakar; o an ona lazım olan tek şey "duyuyor mu, konuşuyor mu,
   nasıl kapatırım". Küre bu üç sorunun görsel cevabıdır.
   ========================================================================== */
.ses-kat { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); animation: fade var(--base) ease both; }
.ses-kat.kapaniyor { animation: fade var(--fast) ease reverse both; }
.ses-kart { width: min(440px, 92vw); text-align: center; padding: 34px 26px 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-lg); }
.ses-orb { --lv: 0; position: relative; width: 148px; height: 148px; margin: 4px auto 24px; display: grid; place-items: center; }
.ses-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent-line); opacity: .5; }
/* Halkalar mikrofon seviyesine göre açılır: "sesim gidiyor mu" sorusunun anlık cevabı. */
.ses-orb span:nth-child(1) { transform: scale(calc(1 + var(--lv) * .34)); transition: transform 90ms linear; }
.ses-orb span:nth-child(2) { inset: 16px; opacity: .3; transform: scale(calc(1 + var(--lv) * .22)); transition: transform 140ms linear; }
.ses-orb span:nth-child(3) { inset: 30px; border: 0; background: var(--gold-grad); opacity: .94; transform: scale(calc(.94 + var(--lv) * .16)); transition: transform 90ms linear; box-shadow: 0 0 44px -6px var(--accent-glow); }
.ses-orb.konusuyor span:nth-child(3) { animation: konus 1.15s var(--ease-in-out) infinite; }
.ses-orb.sessiz span:nth-child(3) { background: var(--surface-4); box-shadow: none; }
@keyframes konus { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.06); } }
.ses-durum { font-size: 15px; font-weight: 600; letter-spacing: -.01em; min-height: 22px; }
.ses-durum.iyi { color: var(--accent); }
.ses-durum.mesgul { color: var(--info); }
.ses-durum.kotu { color: var(--danger); }
.ses-dokum { margin-top: 14px; max-height: 128px; overflow-y: auto; text-align: left; display: flex; flex-direction: column; gap: 7px; }
.ses-dokum .d { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 8px 12px; border-radius: 11px; background: var(--surface-2); }
.ses-dokum .d b { color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.ses-dokum .d.ai { color: var(--text); border: 1px solid var(--line); }
.ses-btns { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.ses-b { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 550; cursor: pointer; }
.ses-b svg { width: 17px; height: 17px; }
.ses-b:hover { border-color: var(--accent-line); }
.ses-b.pasif { color: var(--muted); }
.ses-b.kirmizi { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); color: var(--danger); }
.ses-not { margin-top: 15px; font-size: 11.5px; color: var(--faint); line-height: 1.5; }

/* ---------- dar ekran ---------- */
.gpt-golge { display: none; }
@media (max-width: 1060px) {
  /* Telefonda kenar çubuğu bir ÇEKMECEDİR: 272 px'lik sabit sütun, okunan sütunu yok ederdi. */
  .gpt { grid-template-columns: 1fr; height: calc(100vh - var(--topbar) - 26px); }
  .gpt-side { position: absolute; z-index: 30; inset: 0 auto 0 0; width: 278px; opacity: 0; transform: translateX(-100%); pointer-events: none; transition: transform var(--slow) var(--ease-drawer), opacity var(--base) ease; box-shadow: var(--shadow-lg); padding-left: 10px; padding-right: 10px; }
  .gpt.mobil .gpt-side { opacity: 1; transform: none; pointer-events: auto; }
  .gpt-golge { display: block; position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity var(--base) ease; }
  .gpt.mobil .gpt-golge { opacity: 1; pointer-events: auto; }
  .gs-ic.kenar-ac { display: none !important; }
  .gs-ic.mobil-ac { display: grid; }
  .gpt-thread { padding: 18px 14px 8px; gap: 18px; }
  .gpt-bottom { padding: 4px 14px 12px; }
  .cmp-ipucu { display: none; }
  /* Dokunmatikte hover yoktur: cevap altı eylemler ve ek silme hep görünür. */
  .tur-alt { opacity: 1; }
  .gs-ic.sm { opacity: 1; }
  .msg-ek .e-img { width: 96px; height: 96px; }
}

/* ==========================================================================
   16. AI TELEFON ARAMASI (pages/aiarama.js)
   v4'te bu sınıflar HİÇ tanımlı değildi: görüşme dökümü biçimsiz akıyordu.
   ========================================================================== */
.aia-dokum { display: flex; flex-direction: column; gap: 9px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.aia-s { padding: 10px 13px; border-radius: 13px; font-size: 13px; line-height: 1.55; max-width: 86%; border: 1px solid var(--line); background: var(--surface-2); }
.aia-s .k { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
/* Asistan sağda ve altın: dökümü okuyan kişi kimin konuştuğunu tek bakışta
   ayırmalı — iki taraf aynı hizada yazılınca "kim dedi" karışıyordu. */
.aia-s.ASISTAN { margin-left: auto; background: var(--accent-soft); border-color: var(--accent-line); }
.aia-s.ASISTAN .k { color: var(--accent); }
.aia-s.MUSTERI, .aia-s.KISI { margin-right: auto; }
.aia-s.SISTEM { max-width: 100%; text-align: center; background: transparent; border-style: dashed; color: var(--muted); font-size: 12px; }
.aia-pre { white-space: pre-wrap; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; max-height: 340px; overflow: auto; color: var(--muted); }
.aia-bos { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.aia-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.aia-senaryo { display: flex; flex-direction: column; gap: 10px; }
.aia-adimlar { display: flex; flex-direction: column; gap: 7px; counter-reset: adim; }
.aia-soru { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-size: 13px; line-height: 1.5; }
.aia-soru::before { counter-increment: adim; content: counter(adim); flex: none; width: 21px; height: 21px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.aia-zorunlu { color: var(--danger); font-weight: 650; font-size: 11.5px; }
.aia-araclar { display: flex; flex-wrap: wrap; gap: 6px; }

/* ==========================================================================
   17. RUHSAT (Araç Tescil Belgesi)
   Belgenin kendi düzeni: iki sütun, kodlu hücreler. Ekran elindeki kâğıtla
   satır satır karşılaştırılabilsin diye belgenin RENKLERİ korunur — bu blok
   bilerek temadan bağımsızdır.
   ========================================================================== */
.ruhsat-doc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #6f6fd8; padding: 10px; border-radius: 12px; }
.ruhsat-doc .r-col { background: #fff; border-radius: 7px; padding: 6px; display: flex; flex-direction: column; gap: 0; }
.ruhsat-doc .r-row { display: flex; border-bottom: 1px solid #9a9ad8; }
.ruhsat-doc .r-row:last-child { border-bottom: 0; }
.ruhsat-doc .r-cell { flex: 1 1 0; min-width: 0; padding: 4px 7px 5px; border-right: 1px solid #9a9ad8; position: relative; }
.ruhsat-doc .r-cell:last-child { border-right: 0; }
.ruhsat-doc .r-cell.r-w2 { flex: 1 1 100%; }
.ruhsat-doc .r-lbl { font-size: 8.6px; line-height: 1.25; font-weight: 700; color: #26264f; text-transform: uppercase; letter-spacing: .015em; min-height: 21px; }
.ruhsat-doc .r-code { color: #6f6fd8; font-weight: 800; }
.ruhsat-doc .r-in { width: 100%; border: 0; border-bottom: 1px dotted #c3c3e6; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: #111; padding: 2px 0 1px; border-radius: 0; }
.ruhsat-doc .r-in:focus { outline: 0; border-bottom-color: #6f6fd8; background: #f2f2fc; }
.ruhsat-doc textarea.r-in { resize: vertical; line-height: 1.35; font-size: 12px; }
.ruhsat-doc .r-cell.r-suspect { background: #fff8e1; }
.ruhsat-doc .r-cell.r-suspect .r-in { border-bottom-color: #e0a800; }
.ruhsat-doc .r-warn { position: absolute; top: 3px; right: 5px; width: 14px; height: 14px; border-radius: 50%; background: #e0a800; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; cursor: help; }
@media (max-width: 900px) { .ruhsat-doc { grid-template-columns: 1fr; } }

/* ==========================================================================
   18. PİYASA ANALİZİ (rapor sayfası)

   Rapor UZUN: yedi bölüm, üç tablo, 42 kaynak, ~3.500 kelime. Hepsi tek
   akışta alt alta dizilince ekran bir "veri duvarı" oluyordu: her şey aynı
   görsel ağırlıkta, hiçbir şey okunmuyor ve asıl soruya — "bugün ne
   yapacağım" — cevap veren bölüm (envanter kararları) üç ekran aşağıda
   kalıyordu. Sayfa bu yüzden ÜÇ katmana ayrıldı:
     1) KARAR   — günün hükmü + altı rakam + karar tahtası (süzülebilir)
     2) RAPOR   — kanıt; bölüm bölüm SEKMELİ, aynı anda tek bölüm akar
     3) KÜNYE   — metodoloji ve sınırlar; katlanır
   Yazdırırken hepsi açılır (pages/piyasa.js → #print): kâğıtta sekme yoktur.
   ========================================================================== */

/* -- 1. katman: günün hükmü -------------------------------------------- */
/* Bant ALTIN kenarlıdır, kırmızı değil: sayfanın en üstündeki dolu kırmızı
   şerit "sistem bozuldu" diye okunuyor (panelde ölçülmüş bir ders). Kırmızı
   burada yalnız VERİYİ anlatır — rakam, rozet, karar. */
.mkt-hero { position: relative; padding: 22px 24px 24px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.mkt-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.mkt-hero h2 { margin: 0 0 12px; font-size: clamp(19px, 1.5vw, 24px); font-weight: 650; letter-spacing: -.028em; line-height: 1.3; max-width: 42ch; }
.mkt-hero > p { margin: 0; font-size: 14px; line-height: 1.72; color: var(--muted); max-width: 74ch; }
.mkt-hero b, .mkt-flip b { color: var(--text); font-weight: 650; }
.mkt-flip { margin-top: 14px; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid var(--line-gold); font-size: 13.2px; line-height: 1.68; max-width: 78ch; }
.mkt-flip b:first-child { color: var(--accent); }

/* -- 1. katman: karar tahtası ------------------------------------------ */
/* Kararlar tabloda 9 satır × 3 sütundu; "AL / ÇIK" hükmü orta sütunda bir
   rozetti ve göz onu satır satır aramak zorundaydı. Kart olarak hüküm ÖNCE
   gelir, kartlar hükme göre sıralanır (önce alınacaklar) ve süzülür. */
.mkt-filt { margin: 0 0 14px; }
.mkt-filt button b { margin-left: 6px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .5; }
.mkt-filt button.active b { opacity: 1; }
.mkt-filt button .d { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--faint); }
.mkt-filt button.t-green .d { background: var(--ok); }
.mkt-filt button.t-red .d { background: var(--danger); }
.mkt-filt button.t-amber .d { background: var(--warn); }
.mkt-filt button.t-blue .d { background: var(--info); }
.mkt-card { display: flex; flex-direction: column; gap: 7px; padding: 15px 17px 17px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.mkt-card[hidden] { display: none; }
.mkt-card .vr { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mkt-card h3 { margin: 0; font-size: 14.5px; font-weight: 650; line-height: 1.34; letter-spacing: -.014em; }
.mkt-card p { margin: 0; font-size: 12.8px; line-height: 1.66; color: var(--muted); }
.mkt-card p b, .mkt-card h3 b { color: var(--text); font-weight: 650; }
.mkt-card.t-green { border-left-color: var(--ok); }      .mkt-card.t-green .vr { color: var(--ok); }
.mkt-card.t-red { border-left-color: var(--danger); }    .mkt-card.t-red .vr { color: var(--danger); }
.mkt-card.t-amber { border-left-color: var(--warn); }    .mkt-card.t-amber .vr { color: var(--warn); }
.mkt-card.t-blue { border-left-color: var(--info); }     .mkt-card.t-blue .vr { color: var(--info); }

/* -- 2. katman: rapor sekmeleri ---------------------------------------- */
/* Sekme şeridi YAPIŞKANDIR: bölüm uzun, okurken "başka bölüme geç" ihtiyacı
   sayfanın ortasında doğuyor ve yukarı kaydırmak okumayı bölüyordu. */
.mkt-lede { margin: 0 0 16px; font-size: 13.8px; color: var(--muted); line-height: 1.72; max-width: 82ch; }
.mkt-tabs { position: sticky; top: var(--topbar); z-index: 12; background: var(--bg); padding-top: 6px; margin-bottom: 16px; }
.mkt-panel { margin-bottom: 16px; }
/* ⚠ Bölüm başlığındaki sağ meta KÜÇÜLEBİLİR olmalı: app.css'te `.sec .meta`
   `flex: none`dur ve "9 karar · Uygulanabilir" 430 px'lik ekranda sayfayı
   445 px'e çıkarıyordu (ölçüldü, yatay kaydırma). Dar ekranda tamamen düşer —
   başlığın kendisi zaten aynı şeyi söylüyor. */
.mkt-board > .sec > .meta, .mkt-rapor > .sec > .meta { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 620px) { .mkt-board > .sec > .meta, .mkt-rapor > .sec > .meta { display: none; } }
.mkt-no { display: inline-block; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; font-weight: 700; color: var(--accent); vertical-align: 1px; }

/* -- madde: solda sinyal, sağda metin ---------------------------------- */
/* Sinyal artık dolu rozet DEĞİL: her maddenin başında iki dolgulu etiket
   durunca sayfa rozet tarlasına dönüyordu. Ton ince bir kenar + küçük
   büyük-harf etiketle söylenir; anlam aynı, gürültü yok. */
.mkt-item { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.mkt-item:last-child { border-bottom: 0; }
.mkt-item .sig { position: relative; padding-left: 12px; }
.mkt-item .sig::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.mkt-item .tag { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.mkt-item .ek { display: block; margin-top: 4px; font-size: 11.5px; color: var(--faint); }
.mkt-item.t-red .sig::before { background: var(--danger); }   .mkt-item.t-red .tag { color: var(--danger); }
.mkt-item.t-green .sig::before { background: var(--ok); }     .mkt-item.t-green .tag { color: var(--ok); }
.mkt-item.t-amber .sig::before { background: var(--warn); }   .mkt-item.t-amber .tag { color: var(--warn); }
.mkt-item.t-blue .sig::before { background: var(--info); }    .mkt-item.t-blue .tag { color: var(--info); }
.mkt-item h3 { margin: 0 0 8px; font-size: 15px; font-weight: 650; line-height: 1.38; letter-spacing: -.012em; max-width: 62ch; }
.mkt-item p { margin: 0 0 9px; font-size: 13.4px; line-height: 1.75; color: var(--muted); max-width: 74ch; }
.mkt-item p b { color: var(--text); font-weight: 650; }
.mkt-p { margin: 0 0 10px; font-size: 13.6px; line-height: 1.75; color: var(--muted); max-width: 76ch; }
.mkt-p:last-child { margin-bottom: 0; }
.mkt-p b { color: var(--text); font-weight: 650; }

/* -- kaynak satırı: katlanır ------------------------------------------- */
/* Her maddenin altında beş bağlantı yan yana akıyordu; okunan metinden çok
   yer kaplıyorlardı. Sayı görünür kalır, bağlantılar istendiğinde açılır. */
.mkt-src { font-size: 11.5px; color: var(--faint); }
.mkt-src > summary { display: inline-flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--faint); font-weight: 600; letter-spacing: .03em; }
.mkt-src > summary::-webkit-details-marker { display: none; }
.mkt-src > summary::before { content: '◆'; font-size: 8px; color: var(--line-strong); }
.mkt-src > summary:hover { color: var(--text); border-color: var(--line-strong); }
.mkt-src[open] > summary { color: var(--muted); }
.mkt-src[open] > summary::before { color: var(--accent); }
.mkt-src > div { margin-top: 9px; line-height: 1.75; }
.mkt-src a, .mkt-srcs a { color: var(--faint); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.mkt-src a:hover, .mkt-srcs a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.mkt-read { color: var(--accent); font-weight: 700; }

/* -- tablo: uzun not satırın ALTINA iner -------------------------------- */
/* Beş sütunun sonuncusu paragraf uzunluğundaydı ("Ferro Cars notu"); sayı
   sütunları o yüzden sıkışıyor ve tablo yatay kayıyordu. Not artık aynı
   satırın ikinci katı: rakamlar hizalı kalır, gerekçe altında okunur. */
.mkt-cap { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.mkt-t td b { color: var(--text); font-weight: 650; }
.mkt-t tbody.rw:hover td { background: var(--surface-2); }
.mkt-t.has-nt tbody.rw > tr:first-child > td { border-bottom: 0; padding-bottom: 5px; }
.mkt-t.has-nt tbody.rw > tr.nt > td { padding: 0 16px 14px; border-bottom: 1px solid var(--line); font-size: 12.8px; line-height: 1.68; color: var(--muted); }
.mkt-t.has-nt tbody.rw:last-child > tr.nt > td { border-bottom: 0; }

/* -- senaryo kartı ------------------------------------------------------ */
.mkt-scen { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.mkt-scen.lead { border-color: var(--warn); background: var(--warn-soft); }
.mkt-scen h3 { margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -.014em; line-height: 1.32; }
.mkt-scen .prob { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* İhtimal ÇUBUKLA da gösterilir: üç kartın hangisinin ağır bastığı yazıyı
   okumadan görünsün ("ana senaryo" cümlenin sonunda kayboluyordu). */
.mkt-scen .bars { display: inline-flex; gap: 2px; flex: none; }
.mkt-scen .bars i { width: 11px; height: 4px; border-radius: 2px; background: var(--surface-4); }
.mkt-scen .bars i.on { background: var(--muted); }
.mkt-scen.lead .bars i { background: color-mix(in srgb, var(--warn) 22%, transparent); }
.mkt-scen.lead .bars i.on { background: var(--warn); }
.mkt-scen p { margin: 0; font-size: 12.8px; line-height: 1.68; color: var(--muted); }
.mkt-scen p b, .mkt-scen .act b:not(:first-child) { color: var(--text); font-weight: 650; }
.mkt-scen .act { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: 12.8px; line-height: 1.68; }
.mkt-scen .act b:first-child { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* -- tetikleyici listesi ------------------------------------------------ */
.mkt-trig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px 24px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.2px; }
.mkt-trig:last-child { border-bottom: 0; }
.mkt-trig.hd { padding: 11px 18px; background: var(--surface-2); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.mkt-trig .if { display: flex; gap: 11px; line-height: 1.6; }
.mkt-trig .if .n { flex: none; width: 21px; height: 21px; margin-top: 1px; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.mkt-trig .then { padding-left: 16px; border-left: 2px solid var(--accent-line); color: var(--muted); line-height: 1.68; }
.mkt-trig .then i { font-style: normal; font-weight: 650; color: var(--accent); }
.mkt-trig b { color: var(--text); font-weight: 650; }

/* -- kaynak dizini ------------------------------------------------------ */
.mkt-srch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mkt-srch input { max-width: 320px; }
.mkt-srch .lgnd { font-size: 11.5px; color: var(--faint); }
.mkt-srcs { columns: 3; column-gap: 30px; margin: 0; padding-left: 20px; }
.mkt-srcs li { break-inside: avoid; font-size: 12.5px; line-height: 1.6; padding: 4px 0; }
.mkt-srcs li[hidden] { display: none; }
.mkt-bos { padding: 8px 2px; font-size: 13px; color: var(--muted); }

/* -- 3. katman: künye --------------------------------------------------- */
.mkt-foot { margin-top: 20px; max-width: 88ch; font-size: 12.8px; line-height: 1.72; color: var(--muted); }
.mkt-foot > summary { list-style: none; cursor: pointer; padding: 11px 0; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.mkt-foot > summary::-webkit-details-marker { display: none; }
.mkt-foot > summary:hover { color: var(--text); }
.mkt-foot p { margin: 0 0 10px; }
.mkt-foot b { color: var(--text); }

@media (max-width: 1240px) { .mkt-srcs { columns: 2; } }
@media (max-width: 900px) {
  .mkt-hero { padding: 18px 18px 20px 19px; }
  .mkt-item { grid-template-columns: 1fr; gap: 10px; padding: 15px 16px; }
  .mkt-item .sig { display: flex; align-items: baseline; gap: 10px; }
  .mkt-item .ek { margin-top: 0; }
  .mkt-trig { grid-template-columns: 1fr; }
  .mkt-trig.hd { display: none; }
  .mkt-trig .then { padding-left: 14px; }
  .mkt-srcs { columns: 1; }
}
/* Kâğıtta sekme ve süzgeç yoktur; bölümlerin hepsi açık basılır
   (pages/piyasa.js → beforeprint kancası gizli bölümleri ve katlanmış
   kaynakları açar, baskı bitince geri kapatır).
   ⚠ Baskıda palet AÇIĞA çevrilir. Varsayılan tema obsidyendir; olduğu gibi
   basılınca 14 sayfa koyu zemin çıkıyor: hem okunmuyor hem kartuşu bitiriyor.
   Değerler açık temanın kendi değerleridir (:root[data-theme="light"]) —
   ikinci bir palet UYDURULMAZ, ayrışırsa hangisinin doğru olduğu bilinemez.
   Kapsam yalnız bu sayfanın kökü (.page.mkt); uygulamanın geri kalanı
   etkilenmez. */
@media print {
  /* Kâğıdın kendisi (kenar boşlukları dahil) beyaz olsun: tuvali boyayan
     `:root`tur, gövdeye beyaz vermek onu çevirmez. `:has` ile YALNIZ bu
     rapor açıkken uygulanır; başka sayfaların baskısı değişmez. */
  :root:has(.page.mkt) { background: #fff; }
  .mkt-tabs, .mkt-filt, .mkt-srch { display: none !important; }
  .mkt-hero, .mkt-card, .mkt-panel, .mkt-scen, .mkt-item, .mkt-trig { break-inside: avoid; }
  .page.mkt {
    --bg: #fff; --surface: #fff; --surface-2: #faf9f6; --surface-3: #f1f0ec; --surface-4: #e7e4dc;
    --line: #e4e1da; --line-strong: #d3cfc5; --line-gold: rgba(168,134,42,.32);
    --text: #14161a; --muted: #5e636c; --faint: #7b808a;
    --accent: #a8862a; --accent-soft: rgba(168,134,42,.12); --accent-line: rgba(168,134,42,.44);
    --ok: #17794a; --ok-soft: #e6f2ec; --warn: #a96410; --warn-soft: #fbf1e2;
    --danger: #b92b2b; --danger-soft: #fdecec; --info: #2f5fe0; --info-soft: #e9effc;
    --gray-soft: #eeece6;
    background: #fff; color: var(--text);
  }
  .page.mkt .card, .page.mkt .mkt-hero, .page.mkt .mkt-card { box-shadow: none; }
}

/* ==========================================================================
   19. TOPLU RUHSAT YÜKLEME (pages/ruhsat-toplu.js)
   ========================================================================== */
.tr-prog { height: 4px; border-radius: 999px; background: var(--surface-3); margin-top: 11px; overflow: hidden; }
.tr-prog i { display: block; height: 100%; background: var(--accent); transition: width var(--base) var(--ease-out); }
.tr-head, .tr-row { display: grid; grid-template-columns: 26px 190px minmax(210px, 1fr) minmax(250px, 1.15fr); gap: 14px; align-items: start; }
.tr-head { padding: 6px 14px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tr-row { padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.tr-row.tr-conflict { border-color: var(--danger); background: var(--danger-soft); }
.tr-pick { padding-top: 3px; }
.tr-pick input { width: 17px; height: 17px; accent-color: var(--accent); }
.tr-doc { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.tr-doc img { width: 100%; max-height: 108px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.tr-pdf { width: 100%; height: 62px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); }
.tr-name { max-width: 100%; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-st { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--gray-soft); color: var(--muted); }
.tr-st.ok { background: var(--ok-soft); color: var(--ok); }
.tr-st.warn { background: var(--warn-soft); color: var(--warn); }
.tr-st.err { background: var(--danger-soft); color: var(--danger); }
.tr-st.info { background: var(--info-soft); color: var(--info); }
.tr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.tr-f { display: flex; flex-direction: column; gap: 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tr-f input { width: 100%; font: inherit; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.tr-f input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tr-f.sus input { border-color: var(--warn); background: var(--warn-soft); }
.tr-fields > button { grid-column: 1 / -1; justify-self: start; }
.tr-match select { width: 100%; }
.tr-bar { height: 6px; border-radius: 999px; background: var(--surface-3); margin: 10px 0 6px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: var(--ok); transition: width var(--base) var(--ease-out); }
.tr-bar.warn i { background: var(--warn); }
.tr-bar.err i { background: var(--danger); }
.tr-why { font-size: 11.5px; line-height: 1.6; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tr-why + .tr-why { margin-top: 5px; }
.tr-why.warn { color: var(--warn); }
.tr-why.err { color: var(--danger); }
.tr-tag { background: var(--ok-soft); color: var(--ok); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 650; }
.tr-tag.no { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 1100px) {
  .tr-head { display: none; }
  .tr-row { grid-template-columns: 26px minmax(0, 1fr); }
  .tr-doc { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .tr-doc img, .tr-pdf { width: 120px; }
  .tr-fields, .tr-match { grid-column: 2; }
}

/* ==========================================================================
   20. KAMERALAR
   Görüntü zemini HER YERDE saf siyah: NVR karesi 704x576 (4:3), kutucuk 16:9.
   object-fit:contain ile yanlarda bant kalır; o bant zeminle aynı renkte
   olursa kadrajın nerede bittiği görünmez.
   ========================================================================== */
.bolge-duzen { display: grid; grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr); gap: 14px; }
.bolge-tuval { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; align-self: start; border: 1px solid var(--line); }
.bolge-tuval img { display: block; width: 100%; height: auto; }
.bolge-tuval svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.bolge-yan { min-width: 0; }
@media (max-width: 760px) { .bolge-duzen { grid-template-columns: 1fr; } }

/* -- canlı duvar ---------------------------------------------------------
   v5'te her kutucuk KENDİ çerçevesi + ALTINDA ayrı bir ad çubuğuydu: on altı
   kanalda on altı çerçeve ve on altı çubuk, yani ekranın kayda değer bir kısmı
   görüntü değil KUTU KENARIYDI. Duvar artık kesintisiz — ad kadrajın içinde
   yüzer (panelin kamera şeridiyle aynı dil, `.rail-tile`) ve çerçeve yalnız
   DURUM anlatır: sessizse görünmez, uyarı varsa kırmızı halkalanır.
   ------------------------------------------------------------------------ */
.cam-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cam-tools select.sm { height: 32px; max-width: 210px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 9px; padding: 0 10px; font-size: 13px; min-width: 0; }

/* Üst şerit: kadrajda O AN kim var. Sayı büyük, etiket küçük — göz rakamı
   arar. İç/dış ayrımı, kameraların alanı etiketliyse belirir (bkz. camera.js):
   etiketsiz kurulumda "0 içeride" sayı değil, yanlış bilgidir. */
.cam-hud { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 12px 17px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cam-hud .grow { flex: 1; min-width: 8px; }
.cam-hud .k { display: inline-flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.cam-hud .k b { font-size: 23px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.032em; }
.cam-hud .k.arac b { color: var(--info); }
.cam-hud .bl { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cam-hud .bl b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.cam-hud .ayr { color: var(--line-strong); }

.cam-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; }
.cam { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); isolation: isolate; cursor: zoom-in; transition: border-color var(--fast) ease, box-shadow var(--fast) ease; }
/* Oran İLK KAREDEN gelir ve duvarın tamamına yazılır (--oran): tek tek
   yazılsaydı satırlar farklı yükseklikte olur, ızgara tırtıklanırdı. */
.cam-view { position: relative; aspect-ratio: var(--oran, 1.3333); background: #000; }
.cam-view img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity var(--base) ease, filter var(--slow) ease; }
.cam-durum { position: absolute; inset: 0; display: grid; place-items: center; color: #6c7078; font-size: 11.5px; text-align: center; padding: 10px; pointer-events: none; letter-spacing: .02em; }
.cam.bekle .cam-view img { opacity: .22; filter: grayscale(1); }
.cam.kopuk .cam-view img { opacity: .08; }
/* Ad çubuğu kadrajın İÇİNDE yüzer: ayrı bir bar açmak kutucuk başına 34 px
   yiyordu ve 16 kanalda bu, bir sıra görüntü demekti. */
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 26px 11px 9px; font-size: 11.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.84)); pointer-events: none; }
.cam-bar .nm { font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.cam-bar .ch { margin-left: auto; color: rgba(255,255,255,.55); font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cam-bar .grow { flex: 1; }
.cam .say { position: absolute; top: 9px; left: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,.16); font-variant-numeric: tabular-nums; }
.cam .say::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--live); }
.cam .say.uzun { border-color: rgba(255,95,95,.5); color: #ffb4b4; }
.cam .say.uzun::before { background: var(--danger); }
.cam.alarmli { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger), 0 0 34px -8px rgba(255,95,95,.55); }
.cam.alarmli .cam-bar { background: linear-gradient(transparent, rgba(120,12,12,.88)); }
@media (hover: hover) and (pointer: fine) { .cam:hover { border-color: var(--accent-line); box-shadow: var(--ring-gold); } }
@media (max-width: 900px) { .cam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cam-grid { grid-template-columns: 1fr; } }

.cam-tek { background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.cam-tek img { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; display: block; }
.cam-tek .cam-ov { position: absolute; inset: 0; }
.cam-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Kutu etiketi görüntünün üstünde okunmalı: kontur (paint-order) olmadan
   açık zeminli karede beyaz yazı kayboluyor. */
.cam-ov text { font-size: 19px; font-weight: 600; letter-spacing: .2px; paint-order: stroke; stroke: rgba(0,0,0,.72); stroke-width: 4px; stroke-linejoin: round; }

/* v4 şeridi (kullanımdan kalktı, sınıf adı silinmez: 26 sayfa bu adları paylaşır) */
.cam-say { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 13px; font-size: 12.5px; }
.cam-say .k { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted); }
.cam-say .k b { font-size: 21px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.028em; }

/* -- hareket sekmesi ----------------------------------------------------- */
/* Gün başlığı: ölçülmüş sayıların birleştirilmiş tek cümlesi (modelden
   gelmez). Başlık gibi okunur ki sayfaya girince ilk okunan şey o olsun. */
.cam-cumle { font-family: Montserrat, Inter, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.018em; line-height: 1.45; margin: 2px 2px 16px; display: flex; align-items: baseline; gap: 11px; }
.cam-cumle::before { content: ''; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); flex: none; position: relative; top: -4px; }
@media (max-width: 560px) { .cam-cumle { font-size: 16px; } }

/* Süzgeç çipleri: dokuz davranış etiketi yerine dört GRUP (+ cihaz, plaka).
   Renk noktası satırdaki rayla aynı dili konuşur. */
.cam-cip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 11px; }
.cam-cip .cip { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: color var(--fast) ease, border-color var(--fast) ease, background var(--fast) ease; }
.cam-cip .cip:hover { color: var(--text); border-color: var(--line-strong); }
.cam-cip .cip.on { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.cam-cip .cip[data-ton]::before { content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; background: var(--line-strong); }
.cam-cip .cip[data-ton="red"]::before { background: var(--danger); }
.cam-cip .cip[data-ton="accent"]::before { background: var(--accent); }
.cam-cip .cip[data-ton="blue"]::before { background: var(--info); }

/* Olay satırı: soldaki ince ray grubu söyler. Etiket başına emoji koymak
   (📱🚬🧽) paneli karışık ikon setine sürüklüyordu; renk hem sessiz hem tutarlı. */
.list .li.olay { gap: 13px; padding-left: 21px; position: relative; }
.list .li.olay::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-strong); }
.list .li.olay[data-ton="red"]::before { background: var(--danger); }
.list .li.olay[data-ton="accent"]::before { background: var(--accent); }
.list .li.olay[data-ton="blue"]::before { background: var(--info); }
.list .li.olay.yeni { animation: pop var(--base) var(--ease-out); background: var(--accent-soft); }
.olay .zm { flex: none; min-width: 46px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.olay .ttl { font-size: 14px; font-weight: 550; }
.olay .ig-lnk { color: var(--accent); font-weight: 600; }
/* Tekrar rozeti: "aynı kamerada aynı olay kaç kez". Rakam sessiz kalmalı —
   olayın kendisinden daha görünür olursa liste sayaç tablosuna döner. */
.tkr { margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.olay .zm .ara { color: var(--line-strong); margin: 0 2px; }
.olay .kapak { width: 62px; height: 42px; }
#camAkis .li.yeni, .cam-akis .li.yeni { animation: pop var(--base) var(--ease-out); background: var(--accent-soft); }
.cam-akis { margin-top: 20px; }
.cam-alt { display: flex; align-items: center; gap: 11px; margin-top: 11px; flex-wrap: wrap; }

/* Dikkat çekenler: TABLO DEĞİL KART. Gözün aradığı şey satır değil, o
   karedeki kişidir; küçük resmi bir tablo hücresine sıkıştırmak onu bakılamaz
   hale getiriyordu. Karesi olmayan olay kartta da görünür (üstteki renk rayı),
   yalnız foto kuyusu hiç açılmaz — boş siyah dikdörtgen bırakmaz. */
.dikkat { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 10px; }
.dk { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.dk::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2; background: var(--line-strong); }
.dk[data-ton="red"]::before { background: var(--danger); }
.dk[data-ton="accent"]::before { background: var(--accent); }
.dk[data-ton="blue"]::before { background: var(--info); }
.dk-foto { aspect-ratio: 16 / 10; background: var(--bg-deep); }
.dk-foto:empty { display: none; }
.dk-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-b { padding: 11px 13px 13px; }
.dk-t { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.dk-s { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Ölçek listesi: ad + çubuk + sayı. Aynı biçim hem "ilgi gören araçlar" hem
   "kamera bazında" için kullanılır — iki ayrı tablo yerine tek dil. */
.olcek { display: flex; flex-direction: column; }
.og { display: grid; grid-template-columns: minmax(130px, 1.3fr) minmax(50px, 1.6fr) minmax(112px, auto); align-items: center; gap: 15px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.og:last-child { border-bottom: 0; }
a.og { color: inherit; transition: background var(--fast) ease; }
a.og:hover { background: var(--surface-2); }
a.og:hover .og-ad { color: var(--accent); }
.og-ad { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.og-bar i { display: block; height: 100%; min-width: 3px; background: var(--accent); border-radius: 999px; }
.og-n { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.og-n b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 650; }
@media (max-width: 640px) { .og { grid-template-columns: 1fr auto; } .og-bar { grid-column: 1 / -1; order: 3; } }

/* Yüz ve plaka şeritleri: ikisi de "olay" değil KİMLİK okumasıdır, bu yüzden
   birleşik akışta değil KENDİ biçimlerinde okunur. Akışa karıştıklarında
   kapının önünden geçen her araç/yüz bir satır üretip asıl olayı gömüyordu. */
.yuz-ozet { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 13px; }
.yuz-ozet .k { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 12.5px; }
.yuz-ozet .k b { font-size: 19px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.028em; }

.yuz-serit { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.yz { flex: 0 0 116px; }
.yz-foto { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--line); }
.yz.bilinen .yz-foto { border-color: var(--accent-line); }
.yz-foto img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.yz-ad { margin-top: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yz:not(.bilinen) .yz-ad { color: var(--muted); font-weight: 500; }
.yz-alt { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.plk-serit { display: flex; gap: 9px; flex-wrap: wrap; }
.plk { display: flex; flex-direction: column; gap: 6px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: inherit; }
a.plk:hover { border-color: var(--accent-line); background: var(--surface-3); }
.plk-alt { font-size: 11.5px; color: var(--faint); }
.og.kapi { grid-template-columns: 1fr auto; }

/* Olay ayrıntısı: listeden çıkarılan sütunlar SİLİNMEDİ, bir tık arkasında. */
.olay.tik { cursor: pointer; }
.olay-kare { background: var(--bg-deep); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.olay-kare img { width: 100%; max-height: 58vh; object-fit: contain; display: block; cursor: zoom-in; }
.kv-liste { display: flex; flex-direction: column; }
.kv-s { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv-s:last-child { border-bottom: 0; }
.kv-s > span { flex: 0 0 104px; color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.kv-s > b { font-weight: 550; min-width: 0; }

/* "Tüm kayıtlar": eski Davranış/Cihaz sekmelerinin tam tabloları. Kapalı durur —
   istenen sadeleşme bu verinin YOK OLMASI değil, öne çıkmamasıydı. */
.cam-tum { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cam-tum > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; color: var(--muted); transition: color var(--fast) ease, background var(--fast) ease; }
.cam-tum > summary::-webkit-details-marker { display: none; }
.cam-tum > summary::before { content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); margin-left: 3px; transition: transform var(--base) var(--ease-out); flex: none; }
.cam-tum[open] > summary::before { transform: rotate(45deg); }
.cam-tum > summary:hover { color: var(--text); background: var(--surface-2); }
.cam-tum[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); }
.cam-tum-b { padding: 4px 16px 16px; }

/* ÖLÇÜLMÜYOR ≠ SIFIR (takvimin `bilinmiyor` bloğuyla aynı kanun). Kesikli
   çerçeve bilinçli: bu bir ÖLÇÜM değil, ölçümün eksik olduğunun kaydıdır ve
   dolu bir kartla aynı görünmemelidir. */
.cam-bilinmiyor { margin-top: 20px; padding: 15px 17px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: 13px; color: var(--muted); }
.cam-bilinmiyor > b { display: block; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 9px; }
.cam-bilinmiyor ul { margin: 0 0 11px; padding-left: 19px; line-height: 1.75; }

/* Saat dağılımı: gün 24 çubukla TAM çizilir. Yalnız dolu saatleri basmak
   günü sıkıştırıyor ve "sabah kimse yoktu" bilgisini yok ediyordu. */
.cam-bars { display: flex; align-items: flex-end; gap: 3px; height: 124px; }
.cam-bars .b { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.cam-bars .b i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .9; }
.cam-bars .b.bos i { background: var(--line-strong); opacity: 1; min-height: 3px; }
.cam-bars .b span { font-size: 10px; color: var(--faint); height: 12px; font-variant-numeric: tabular-nums; }

/* Bölge düzenleyicinin yan sütunu: modal içindeki bu alanlar `.field`
   sarmalayıcısı olmadan duruyor, biçimlerini kendileri taşır. */
.bolge-satir { padding: 9px 0; border-bottom: 1px solid var(--line); }
.bolge-satir:last-child { border-bottom: 0; }
.bolge-yan input, .bolge-yan select { height: 34px; min-width: 0; max-width: 100%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 9px; padding: 0 10px; font-size: 13px; }
.bolge-yan select { width: 100%; }
.bolge-yan input:focus, .bolge-yan select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* -- motorlu lens ------------------------------------------------------- */
.lens { margin-top: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.lens.mesgul { opacity: .5; }
.lens-h { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.lens-h .grow { flex: 1; }
.lens-satir { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.lens-satir label { width: 84px; flex: none; font-size: 12.5px; font-weight: 600; }
.lens-satir input[type="range"] { flex: 1 1 140px; min-width: 100px; accent-color: var(--accent); }
.lens-satir .lens-v { width: 44px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.lens-satir .icon-btn { flex: none; font-size: 15px; line-height: 1; }
.lens-ipucu { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lens-alt { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.lens-yok { margin-top: 11px; padding: 10px 13px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.lens-durum { font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) { .lens-ipucu { display: none; } .lens-satir label { width: 62px; } }

/* -- yüzler -------------------------------------------------------------
   Kırpma oranı sabit (1:1): yüzler farklı boyutta gelir, ızgara zıplamasın. */
.yuz-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 12px; }
.yuz-kart { overflow: hidden; }
.yuz-kart .yuz-foto { aspect-ratio: 1; background: var(--bg-deep); display: flex; align-items: center; justify-content: center; }
.yuz-kart .yuz-foto img { width: 100%; height: 100%; object-fit: cover; }
.yuz-ad { font-weight: 650; margin-bottom: 2px; }
.yuz-ad.musteri { color: var(--muted); font-weight: 500; }

/* ==========================================================================
   21. BASKI VE ERİŞİLEBİLİRLİK
   ========================================================================== */
.print-only { display: none; }
@media print {
  .sidebar, .topbar, .tabbar, .btn, .actions, .rail, .quick { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; max-width: none; }
  .print-only { display: block; }
  .card { border-color: #ddd; box-shadow: none; break-inside: avoid; }
  body { background: #fff; color: #000; }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* Hareket azaltma: animasyon SÜRESİ kısılır ama geri bildirim KALDIRILMAZ —
   tıklamanın karşılıksız kalması erişilebilirlik değil, kırık arayüzdür. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: 120ms !important; }
  .modal, .toast, .content > .page, .stagger > * { transform: none !important; }
  .rail-track.kay { transition-duration: 200ms !important; }
  .live-dot::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .modal-wrap, .login .box, .tabbar, .rail-tile .say { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255,255,255,.18); --line-strong: rgba(255,255,255,.32); --muted: #b9b5ac; }
  :root[data-theme="light"] { --line: #cfc9bb; --line-strong: #a9a294; --muted: #45413a; }
}

/* ==========================================================================
   22. SATIR ETKİLEŞİMİ
   Tıklanabilir satır, tıklanamayandan AYIRT EDİLEBİLMELİ. Yalnız arkaplanın
   bir ton açılması bunu söylemiyor — satırın solunda altın bir kenar belirir
   ve varsa ok öne kayar: "buraya gidilir".
   ========================================================================== */
.attn a, .deadline, .agenda-item, .list a.li, .board .tier a, a.cell {
  transition: background var(--fast) ease, box-shadow var(--base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .attn a:hover, .deadline:hover, .agenda-item:hover, .list a.li:hover {
    background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent);
  }
  .board .tier a:hover, a.cell:hover { box-shadow: inset 0 2px 0 var(--accent); }
  .attn a .go svg, .list a.li .go svg { transition: transform var(--base) var(--ease-out); }
  .attn a:hover .go svg { transform: translateX(3px); }
  .deadline:hover .d { transform: scale(1.04); }
  .list a.li:hover .kapak { border-color: var(--accent-line); }
}
.deadline .d { transition: transform var(--release) var(--spring); }
.list a.li .kapak { transition: border-color var(--fast) ease; }

/* ==========================================================================
   23. ARAÇ KARTI — KÜNYE ŞERİDİ (pages/vehicle-detail.js)
   --------------------------------------------------------------------------
   Araç kartının işi "her şeyi bir bakışta göstermek". Eskiden burada tek bir
   kapak fotoğrafı ve yedi kutuluk bir sayı ızgarası vardı: fotoğraflara bakmak
   için sekme, muayene tarihine bakmak için başka sekme gerekiyordu. Şimdi
   solda gezilebilir galeri, sağda künye var; ikisi aynı yükseklikte durur.
   ========================================================================== */
.vhero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 18px; align-items: stretch; }
@media (max-width: 1080px) { .vhero { grid-template-columns: 1fr; } }

.vgal { overflow: hidden; display: flex; flex-direction: column; background: var(--bg-deep); }
.vg-st { position: relative; flex: 1; min-height: 300px; display: grid; place-items: center; background: var(--bg-deep); }
/* `contain`: kadraj kırpılmaz. Araç fotoğrafında kırpma, hasarın tam da
   kırpılan köşede kalmasıdır — kapak güzel görünsün diye bilgi atılmaz. */
.vg-st img { width: 100%; height: 100%; max-height: 430px; object-fit: contain; display: block; cursor: zoom-in; }
.vg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(8,9,11,.62); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; transition: background var(--fast) ease, transform var(--fast) var(--ease-out); }
.vg-nav:hover { background: rgba(8,9,11,.88); transform: translateY(-50%) scale(1.07); }
.vg-nav svg { width: 18px; height: 18px; }
.vg-nav.p { left: 10px; } .vg-nav.n { right: 10px; }
.vg-cnt { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(8,9,11,.68); backdrop-filter: blur(8px); font-size: 12px; font-variant-numeric: tabular-nums; color: #fff; }
.vg-cnt svg { width: 13px; height: 13px; }
.vg-cap { position: absolute; left: 12px; bottom: 10px; right: 90px; font-size: 12px; color: #e9e6df; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.vg-yok { display: grid; gap: 10px; justify-items: center; color: var(--faint); font-size: 13px; padding: 40px; }
.vg-yok svg { width: 30px; height: 30px; }
.vg-rail { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; background: var(--surface); border-top: 1px solid var(--line); }
.vg-rail::-webkit-scrollbar { display: none; }
.vg-rail img { width: 74px; height: 54px; object-fit: cover; border-radius: 8px; cursor: pointer; flex: none; opacity: .5; border: 1px solid transparent;
  transition: opacity var(--fast) ease, border-color var(--fast) ease, transform var(--base) var(--ease-out); }
.vg-rail img:hover { opacity: .85; }
.vg-rail img.on { opacity: 1; border-color: var(--accent); transform: translateY(-2px); }

/* Künye: `ui.stat` kutuları yerine hat-ayraçlı ızgara. Yedi ayrı kart, yedi
   ayrı kutu kenarı demekti; burada okunacak şey sayılar, kutular değil. */
.vk-g { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.vk-i { background: var(--surface); padding: 13px 15px; min-width: 0; }
.vk-i .k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.vk-i .v { font-size: 17px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-i .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.vk-i .s .gauge { margin-top: 6px; }

/* Özet listesindeki ikon kutusu — satırın ne hakkında olduğunu söyler. */
.list .li .ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.list .li .ic svg { width: 17px; height: 17px; }
.list a.li:hover .ic { color: var(--accent); }
.list .li > svg { width: 16px; height: 16px; color: var(--faint); flex: none; }

/* Paylaşım kipi: iki seçenek de DÜĞME gibi görünür, farkı yazısı anlatır.
   "Tek cihaz" bilinçli bir seçimdir; radyo düğmesi olarak gizlenirse
   kullanıcı linkin neden ikinci kişide açılmadığını anlamaz. */
.pay-kip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .pay-kip { grid-template-columns: 1fr; } }
.pay-kip .pk { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color var(--fast) ease, background var(--fast) ease; }
.pay-kip .pk:hover { border-color: var(--line-strong); }
.pay-kip .pk.on { border-color: var(--accent-line); background: var(--accent-soft); }
.pay-kip .pk input { position: absolute; opacity: 0; pointer-events: none; }
.pay-kip .pk b { display: block; font-size: 14px; }
.pay-kip .pk span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* Uyarı kutusu (paylaşım penceresi, kurulum uyarıları). */
.uyari { background: var(--warn-soft); border: 1px solid var(--warn); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 12.5px; line-height: 1.6; }
