@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: 'Inter', system-ui, "Segoe UI", Arial, sans-serif;
  color: #1e293b; background: #f8fafc; }
body { display: flex; flex-direction: column; }

/* ── üst çubuk ── */
.topbar { display: flex; align-items: center; gap: 24px; padding: 12px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff;
  flex: 0 0 auto; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); z-index: 10; }
.topbar .brand { font-weight: 700; font-size: 20px; letter-spacing: -.5px; white-space: nowrap; }
.topbar nav { flex: 1 1 auto; }
.topbar nav a { color: #cbd5e1; text-decoration: none; margin-right: 20px; font-weight: 500;
  padding: 6px 0; transition: all .2s; }
.topbar nav a.active, .topbar nav a:hover { color: #fff; border-bottom: 2px solid #3b82f6; }
.topinfo { font-size: 12px; color: #94a3b8; white-space: nowrap; font-variant-numeric: tabular-nums; }

main { flex: 1 1 auto; min-height: 0; }
/* İçerik sayfaları (harita dışı) içerikleri kadar uzar; küçülürlerse taşan
   içerik alttaki veri notunun ALTINDA kalıyor, not üstüne biniyordu. */
main:has(> .page) { flex: 1 0 auto; }

/* ── harita sayfası ── */
.viewer { display: flex; height: 100%; }
.sidebar { width: 340px; flex: 0 0 340px; padding: 20px 22px; overflow-y: auto;
  background: #fff; border-right: 1px solid #e2e8f0; }
.sidebar h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: #0f172a; letter-spacing: -.5px; }
.sidebar h3 { margin: 22px 0 8px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .05em; color: #64748b; font-weight: 600; }
.sidebar select, .sidebar input[type=search] { width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1;
  border-radius: 8px; font: inherit; font-size: 14px; background: #f8fafc; outline: none; }
.sidebar select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  color: #334155; margin: 7px 0; cursor: pointer; }
.chk input { margin: 0; width: 16px; height: 16px; accent-color: #3b82f6; cursor: pointer; }
.muted { color: #64748b; font-size: 13px; line-height: 1.5; }

.mapwrap { flex: 1 1 auto; display: flex; min-width: 0; }
#map { flex: 1 1 auto; min-height: 0; }
.idw-ovl { image-rendering: auto; }

/* Yönetici sayfasında harita ve indirme bölümleri birlikte yer alır. */
.admin-viewer { height: 760px; max-height: 85vh; min-height: 440px;
  border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; margin: 24px 0; }
.admin-viewer .segmented { flex-wrap: wrap; }
@media (max-width: 760px) {
  .admin-viewer { flex-direction: column; height: auto; max-height: none; }
  .admin-viewer .sidebar { width: 100%; flex: 0 0 auto; max-height: 440px; }
  .admin-viewer .mapwrap { flex: 0 0 420px; min-height: 420px; }
}

/* ── segment düğmeleri ── */
.segmented { display: flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff; }
.segmented button { flex: 1 1 auto; padding: 8px 6px; border: 0; background: #fff; font: inherit;
  font-size: 13px; font-weight: 500; color: #475569; cursor: pointer; border-right: 1px solid #e2e8f0; }
.segmented button:last-child { border-right: 0; }
.segmented button:hover { background: #f1f5f9; }
.segmented button.on { background: #3b82f6; color: #fff; }

.row { display: flex; gap: 10px; margin-top: 16px; }
button, .btn { padding: 8px 14px; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px;
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; color: #334155;
  text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #f1f5f9; border-color: #94a3b8; }
button:disabled { opacity: .5; cursor: default; }

/* ── özet kutuları ── */
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; }
.stat b { display: block; font-size: 18px; font-weight: 600; color: #0f172a;
  font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: #64748b; }

table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini td { padding: 4px 2px; border-bottom: 1px solid #f1f5f9; }
table.mini td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── lejant ── */
.lejant { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: #475569; }
.lejant i { width: 14px; height: 14px; border-radius: 3px; display: inline-block;
  vertical-align: -3px; margin-right: 4px; border: 1px solid rgba(0,0,0,.08); }

/* ── içerik sayfaları ── */
.page { padding: 20px 24px 40px; max-width: 1600px; margin: 0 auto; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.tool { display: flex; flex-direction: column; gap: 5px; }
.tool.grow { flex: 1 1 auto; }
.tool label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: #64748b; font-weight: 600; }
.tool select, .tool input[type=search] { padding: 8px 11px; border: 1px solid #cbd5e1;
  border-radius: 8px; font: inherit; font-size: 14px; background: #fff; min-width: 180px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; margin-bottom: 12px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  padding: 8px 14px; color: #64748b; }
.tabs button.on { color: #0f172a; border-bottom-color: #3b82f6; font-weight: 600; }

h3.sec, h2.sec { margin: 26px 0 10px; font-size: 15px; font-weight: 600; color: #0f172a; }
h2.sec { font-size: 20px; margin-top: 0; }

/* ── tablolar ── */
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { position: sticky; top: 0; background: #f8fafc; text-align: left; padding: 9px 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b;
  font-weight: 600; border-bottom: 1px solid #e2e8f0; white-space: nowrap; cursor: pointer; }
table.data th.num, table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td { padding: 7px 12px; border-bottom: 1px solid #f1f5f9; }
table.data tbody tr:hover { background: #f8fafc; }
table.data .sub { color: #94a3b8; font-size: 11px; }

.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag.idw { background: #fef3c7; color: #92400e; }
.tag.olcum { background: #dcfce7; color: #166534; }
.tag.sari { background: #fef08a; color: #713f12; }
.tag.turuncu { background: #fed7aa; color: #7c2d12; }
.tag.kirmizi { background: #fecaca; color: #7f1d1d; }

/* ── figürler ── */
.figbox { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px;
  overflow-x: auto; }
.figbox img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.figbox img[hidden] { display: none; }

.sapma-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.sapma-grid .kart { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.sapma-grid .kart h4 { margin: 0; padding: 9px 12px; font-size: 12px; font-weight: 600;
  background: #f8fafc; border-bottom: 1px solid #e2e8f0; color: #334155; }

.arsiv-liste { display: grid; gap: 22px; }
.arsiv-gun { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.arsiv-gun header { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.arsiv-gun header b { font-size: 15px; }
.arsiv-gun .icerik { padding: 12px; display: grid; gap: 12px; }
.arsiv-gun img { max-width: 100%; height: auto; display: block; }

.yukleniyor { padding: 40px; text-align: center; color: #94a3b8; font-size: 14px; }

/* ── yöntem/anlatım sayfası ── */
.yazi { max-width: 1000px; }
.yazi .kutu { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 16px 20px; font-size: 14px; line-height: 1.65; color: #334155; }
.yazi .kutu p { margin: 0 0 10px; }
.yazi .kutu p:last-child { margin-bottom: 0; }
.yazi .kutu ul { margin: 0; padding-left: 20px; }
.yazi .kutu li { margin-bottom: 7px; }
.yazi .kutu li:last-child { margin-bottom: 0; }
.yazi .uyari-kutu { background: #fffbeb; border-color: #fde68a; }
.yazi code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px;
  font-size: 12.5px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
table.esik { margin: 4px 0 14px; }
table.esik th, table.esik td { padding: 7px 12px; }

/* ── özet kutuları (geniş sayfa) ── */
.statgrid.wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px; }

/* ── arşiv: istasyon seçici ── */
.kota { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-top: 10px; }
.kota b { font-size: 16px; }

.arama-sonuc { max-height: 210px; overflow-y: auto; margin-top: 8px;
  border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.arama-sonuc:empty { display: none; }
.bulunan { padding: 7px 11px; border-bottom: 1px solid #f1f5f9; cursor: pointer;
  font-size: 13px; }
.bulunan:last-child { border-bottom: 0; }
.bulunan:hover { background: #eff6ff; }

.secili-bas { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 22px 0 8px; }
.secili-bas h3 { margin: 0; font-size: 12px; text-transform: uppercase;
  letter-spacing: .05em; color: #64748b; font-weight: 600; }
.mini-btn { padding: 3px 9px; font-size: 12px; }
.secili-liste { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.cip { display: inline-flex; align-items: center; gap: 6px; background: #e0f2fe;
  border: 1px solid #bae6fd; color: #075985; border-radius: 999px;
  padding: 3px 6px 3px 10px; font-size: 12.5px; }
.cip i { font-style: normal; color: #0369a1; opacity: .7; }
.cip button { border: 0; background: none; padding: 0 4px; font-size: 15px;
  line-height: 1; color: #0369a1; cursor: pointer; border-radius: 999px; }
.cip button:hover { background: #bae6fd; }

.tarih-satir { display: flex; gap: 10px; }
.tarih-satir label { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: #64748b; font-weight: 600; }
.tarih-satir input { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px;
  font: inherit; font-size: 14px; background: #fff; color: #1e293b; }

.gun-listesi { display: flex; flex-direction: column; gap: 6px;
  max-height: 240px; overflow-y: auto; }
.gun-listesi.genis { flex-direction: row; flex-wrap: wrap; max-height: none; }
.gun-kart { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 7px 11px; text-align: left; border-left-width: 4px; }
.gun-kart b { font-size: 13px; font-variant-numeric: tabular-nums; }
.gun-kart span { font-size: 11px; color: #64748b; }
.gun-kart.r-sarı { border-left-color: #eab308; }
.gun-kart.r-turuncu { border-left-color: #f97316; }
.gun-kart.r-kırmızı { border-left-color: #dc2626; }

/* ── arşiv yöneticisi ── */
.giris-kart { max-width: 420px; margin: 40px auto; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 26px 28px; }
.giris-kart .alan { display: flex; flex-direction: column; gap: 6px; margin: 16px 0;
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: #64748b; font-weight: 600; }
.giris-kart input { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  font: inherit; font-size: 15px; }
.giris-kart button { width: 100%; padding: 11px; background: #3b82f6; color: #fff;
  border-color: #3b82f6; font-weight: 600; }
.giris-kart button:hover { background: #2563eb; border-color: #2563eb; }
.hata { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.admin-secim { display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.admin-secim input[type=search] { width: 100%; padding: 9px 11px;
  border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-size: 14px; }

/* ── veri kapsamı notu (her sayfanın altında, base şablonundan) ── */
/* `main` flex:1 olduğu için footer flex:0 kalmalı; aksi hâlde harita
   sayfasında (.viewer height:100%) yükseklik hesabı bozulur. */
.veri-notu { flex: 0 0 auto; padding: 10px 24px; background: #f1f5f9;
  border-top: 1px solid #e2e8f0; color: #64748b; font-size: 12px; line-height: 1.5; }
.veri-notu strong { color: #475569; font-weight: 600; }
.veri-notu a { color: #2563eb; }

/* ── karşılaştırma + arşiv (static/karsilastirma.js) ── */
.karsi { max-width: 1480px; }
.karsi [hidden] { display: none !important; }
.k-giris-bas { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.k-giris-bas #sayfa-gorunumu { flex-shrink:0; max-width:100%; }
.k-giris-bas #sayfa-gorunumu button { padding:8px 14px; }
.karsi:not(.k-sade) .k-sade-aciklama { display:none; }
.karsi.k-sade .k-yalniz-detay { display:none !important; }
.karsi .k-kisa-yontem { margin:0 0 14px; line-height:1.5; }
.k-viewbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 20px; }
.karsi .k-kontrol .tool { min-width:0; max-width:100%; }
.karsi #arsiv-gun { width:100%; max-width:360px; min-width:0; text-overflow:ellipsis; }
.topinfo { overflow-wrap:anywhere; min-width:0; white-space:normal; max-width:400px; }
.k-station-status { padding:12px 14px; background:#eff6ff; border:1px solid #dbeafe; border-radius:10px; font-size:13px; line-height:1.6; margin-bottom:16px; }
.k-station-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-bottom:18px; }
.k-station-summary article { display:flex; flex-direction:column; gap:5px; background:white; border:1px solid #e2e8f0; border-top:3px solid; border-radius:12px; padding:14px; }
.k-station-summary strong { font-size:25px; color:#0f172a; }
.k-station-summary span,.k-station-summary small { color:#64748b; font-size:12px; }
.k-station-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:18px; margin-bottom:18px; }
#station-map { height:350px; z-index:0; background:#e8eef3; border:1px solid #dbe3eb; border-radius:12px; }
.k-station-detail { padding:16px; border:1px solid #e2e8f0; border-radius:12px; background:white; font-size:13px; min-width:0; }
.k-station-detail h4 { margin:0 0 4px; font-size:17px; }
.k-station-detail p { margin:6px 0 12px; }
.k-station-bar { display:grid; grid-template-columns:90px minmax(0,1fr) 75px; align-items:center; gap:8px; margin:8px 0; }
.k-station-bar > div { height:9px; border-radius:5px; background:#f1f5f9; }
.k-station-bar i { display:block; height:100%; border-radius:5px; }
.k-station-bar b { text-align:right; }
.k-cell-info { font-size:11.5px; line-height:1.6; border-top:1px solid #f1f5f9; padding-top:8px; }
.k-station-table { min-width:700px; }
.k-station-table td small { display:block; font-size:11px; color:#64748b; margin-top:4px; }
.k-station-table .k-fark-buyuk { color:#9f1239; font-weight:700; }
.k-station-table .k-selected { background:#eff6ff; }
.k-station-select { border:0; background:none; text-align:left; padding:0; color:#0f172a; font:inherit; cursor:pointer; }
.k-station-select:hover { text-decoration:underline; }
#station-search { min-width:230px; }
@media(max-width:700px) {
  .k-station-layout { grid-template-columns:1fr; }
  .k-station-summary { grid-template-columns:1fr; }
  #station-search { min-width:0; width:100%; }
  .k-viewbar .segmented { max-width:100%; flex-wrap:wrap; }
  #station-map { height:280px; }
  .karsi .k-kontrol .tool { width:100%; }
  .karsi #arsiv-gun { max-width:100%; }
  .topinfo { max-width:100%; white-space:normal; }
}
.k-giris h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.4px; color: #0f172a; }
.k-giris p { margin: 0 0 18px; max-width: 900px; color: #475569; font-size: 14px; line-height: 1.6; }

.k-kontrol { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 14px 22px; padding: 12px 14px; margin: 0 -14px 12px; background: rgba(248,250,252,.94);
  backdrop-filter: blur(6px); border-bottom: 1px solid #e2e8f0; }
.k-gunler { display: flex; gap: 6px; flex-wrap: wrap; }
.k-gun { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 64px;
  padding: 6px 10px; line-height: 1.2; }
.k-gun b { font-size: 13px; }
.k-gun span { font-size: 11px; color: #64748b; }
.k-gun.on { background: #0f172a; border-color: #0f172a; color: #fff; }
.k-gun.on span { color: #cbd5e1; }
.k-noktalar { display: flex; gap: 3px; margin-top: 2px; }
.k-noktalar .k-nokta { width: 7px; height: 7px; margin: 0; }
#arsiv-gun { min-width: 260px; max-width: 360px; }
.k-ufuk button { display: flex; flex-direction: column; align-items: center; line-height: 1.25; padding: 6px 12px; }
.k-ufuk button small { font-size: 10.5px; font-weight: 400; opacity: .75; }
.segmented.mini button { padding: 6px 11px; font-size: 12.5px; }

.k-nokta { display: inline-block; width: 10px; height: 10px; border-radius: 999px;
  background: var(--m, #64748b); margin-right: 7px; vertical-align: 0; flex: 0 0 auto; }
.k-nokta.bos { background: transparent; box-shadow: inset 0 0 0 1.5px var(--m, #94a3b8); opacity: .55; }

.k-bant { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 16px;
  margin-bottom: 18px; font-size: 13.5px; color: #334155; line-height: 1.6; }
.k-bant-ana b { color: #0f172a; }
.k-bant-ana > span { color: #64748b; }
.k-bant-ara { margin: 0 6px; color: #cbd5e1 !important; }
.k-bant-alt { color: #64748b; font-size: 12.5px; }
.k-bant-arsiv { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px;
  background: #ede9fe; color: #4c1d95; font-weight: 600; font-size: 11.5px; }

#icerik { transition: opacity .15s; }
#icerik.yukleniyor-k { opacity: .45; pointer-events: none; }

.k-bolum { margin: 0 0 30px; }
.k-bolum-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin-bottom: 10px; }
.k-bolum-bas h3 { margin: 0; font-size: 17px; font-weight: 650; color: #0f172a; letter-spacing: -.2px; }
.k-arac { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.k-arac-ad { font-size: 12px; color: #64748b; font-weight: 500; }
.k-arac input[type=search] { padding: 7px 11px; border: 1px solid #cbd5e1; border-radius: 8px;
  font: inherit; font-size: 13px; width: 200px; background: #fff; }
.k-ipucu-metin { margin: -4px 0 10px; font-size: 12.5px; color: #64748b; }
.k-bosluk { padding: 28px; text-align: center; color: #64748b; font-size: 13.5px;
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 12px; }

/* özet kartları */
.k-kartlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.k-kart { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 14px 16px 12px; display: flex; flex-direction: column; overflow: hidden; }
.k-kart::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--m); }
.k-kart header { display: flex; align-items: center; gap: 2px; font-size: 14px; color: #0f172a; }
.k-rozet { margin-left: auto; font-size: 11px; font-weight: 600; color: #166534; background: #dcfce7;
  padding: 2px 8px; border-radius: 999px; }
.k-buyuk { margin-top: 10px; font-size: 30px; font-weight: 700; color: #0f172a; letter-spacing: -.8px;
  font-variant-numeric: tabular-nums; line-height: 1.1; }
.k-buyuk small { font-size: 14px; font-weight: 500; color: #64748b; letter-spacing: 0; }
.k-alt { font-size: 12px; color: #64748b; margin-bottom: 10px; }
.k-satirlar { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 12.5px; }
.k-satirlar li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.k-satirlar li span { color: #64748b; }
.k-satirlar li b { color: #0f172a; font-weight: 600; font-variant-numeric: tabular-nums; }
.k-satirlar li.k-yer { color: #475569; margin-top: -5px; font-size: 12px; }
.k-bar { flex: 1 0 100%; height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.k-bar i { display: block; height: 100%; background: var(--m); border-radius: 999px; }
.k-kart footer { margin-top: auto; padding-top: 10px; border-top: 1px solid #f1f5f9; margin-top: 12px;
  font-size: 11.5px; color: #94a3b8; }
.k-kart-yok { background: #f8fafc; }
.k-kart-yok::before { opacity: .35; }
.k-yok-metin { margin: 12px 0 4px; font-size: 13px; color: #64748b; line-height: 1.55; }

/* haritalar */
.k-lejant { display: grid; gap: 6px; margin-bottom: 12px; }
.k-lj { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11.5px; color: #475569; }
.k-lj i { display: inline-block; width: 14px; height: 12px; border-radius: 3px; margin-right: 4px;
  vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }
.k-lj-bas { font-weight: 600; color: #334155; margin-right: 4px; }
.k-lj-yon { color: #64748b; font-style: italic; }
.k-haritalar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.k-harita, .k-sac { margin: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px 12px; }
.k-harita figcaption, .k-sac figcaption { display: flex; align-items: center; gap: 2px; font-size: 13.5px;
  color: #0f172a; margin-bottom: 6px; }
.k-hs { margin-left: auto; font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.k-tuval-kap, .k-sac-kap { position: relative; }
.k-tuval { position: relative; width: 100%; overflow: hidden; border-radius: 8px; }
.k-tuval canvas, .k-sac-kap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-sac-kap canvas:nth-child(2) { cursor: crosshair; touch-action: pan-y; }
.k-tuval.k-etkilesimli canvas:nth-child(2) { cursor: crosshair; touch-action: none; }
.k-tuval canvas.k-yakin { cursor: grab; }
.k-tuval canvas.k-surukleniyor { cursor: grabbing; }
.k-tuval canvas:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
.k-zoom { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex;
  align-items: center; gap: 3px; padding: 4px; border: 1px solid #dbe3ee;
  border-radius: 8px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.k-zoom button { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #e2e8f0;
  border-radius: 5px; background: #fff; color: #334155; cursor: pointer; font-size: 13px; }
.k-zoom button[data-zoom="artir"], .k-zoom button[data-zoom="azalt"] { font-size: 20px; }
.k-zoom button:hover:not(:disabled) { background: #eff6ff; border-color: #93c5fd; }
.k-zoom button:disabled { opacity: .4; cursor: default; }
.k-zoom button:focus-visible { outline: 2px solid #2a78d6; outline-offset: 1px; }
.k-zoom span { min-width: 36px; padding: 0 4px; font-size: 11px; color: #64748b;
  font-variant-numeric: tabular-nums; }
.k-harita-yok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center; font-size: 13px; color: #475569; background: rgba(248,250,252,.72);
  border-radius: 8px; pointer-events: none; }
.k-harita-yok[hidden] { display: none; }

/* grafikler */
.k-grafik { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 14px; }
.k-svg { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto;
  font-family: Inter, system-ui, sans-serif; }
.k-svg-izgara { stroke: #eef2f6; stroke-width: 1; }
.k-svg-sifir { stroke: #94a3b8; stroke-width: 1; }
.k-svg-eksen { fill: #64748b; font-size: 11.5px; }
.k-svg-eksen.on { fill: #0f172a; font-weight: 600; }
.k-svg-kucuk { font-size: 10px; fill: #94a3b8; }
.k-svg-etiket { fill: #334155; font-size: 12px; font-weight: 600; }
.k-svg-bant { fill: #f1f5f9; }
.k-svg-hit { cursor: pointer; }
.k-sacilim { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.k-sac-kap { max-width: 440px; margin: 0 auto; }

/* sapma tablosu */
.k-sapma td { white-space: nowrap; }
.k-sapma tbody tr { cursor: default; }
.k-fark { display: inline-block; min-width: 50px; margin-left: 6px; padding: 1px 7px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.k-sapma th .k-nokta, #skor .k-nokta { width: 8px; height: 8px; margin-right: 5px; }

.k-detay { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; }
.k-detay summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14px; color: #0f172a; }
.k-detay[open] summary { border-bottom: 1px solid #e2e8f0; }
.k-detay .tablewrap { border: 0; border-radius: 0 0 12px 12px; }
.k-sozluk { padding: 6px 18px 12px; font-size: 13.5px; color: #334155; line-height: 1.65; max-width: 980px; }
.k-sozluk p { margin: 8px 0; }

/* ipucu */
.k-ipucu { position: fixed; z-index: 1000; min-width: 210px; max-width: 300px; padding: 9px 11px;
  background: #0f172a; color: #e2e8f0; border-radius: 10px; font-size: 12.5px; pointer-events: none;
  box-shadow: 0 10px 25px -8px rgba(15,23,42,.45); }
.k-ip-bas { margin-bottom: 5px; color: #fff; }
.k-ip-bas span { color: #94a3b8; font-size: 11.5px; }
.k-ip-satir { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 1px 0; }
.k-ip-satir span { display: flex; align-items: center; color: #cbd5e1; }
.k-ip-satir b { color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.k-ip-satir em { font-style: normal; color: #94a3b8; font-size: 11.5px; min-width: 56px; text-align: right;
  font-variant-numeric: tabular-nums; }
.k-ip-satir .k-nokta { width: 8px; height: 8px; box-shadow: 0 0 0 1.5px #0f172a, 0 0 0 2.5px rgba(255,255,255,.5); }
.k-ip-not { margin-top: 5px; color: #94a3b8; font-size: 11px; }

/* arşiv kartları */
.k-arsiv { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.k-akart { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; }
.k-akart header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 13px 16px 8px; }
.k-akart-tarih b { display: block; font-size: 15px; color: #0f172a; }
.k-akart-tarih span { font-size: 12px; color: #64748b; }
.k-rozetler { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.k-tag-fark { background: #ede9fe; color: #4c1d95; }
.k-akart-harita { padding: 0 12px; min-height: 60px; }
.k-akart-govde { padding: 8px 16px 4px; }
.k-ozet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.k-ozet div { background: #f8fafc; border-radius: 8px; padding: 7px 10px; }
.k-ozet dt { font-size: 11px; color: #64748b; }
.k-ozet dd { margin: 0; font-size: 16px; font-weight: 650; color: #0f172a; font-variant-numeric: tabular-nums; }
.k-mae-bas { font-size: 11.5px; color: #64748b; margin-bottom: 5px; }
.k-mae-satir { display: grid; grid-template-columns: 84px 1fr 78px; gap: 8px; align-items: center;
  font-size: 12.5px; padding: 2px 0; }
.k-mae-satir span { display: flex; align-items: center; color: #334155; }
.k-mae-satir b { text-align: right; font-weight: 600; color: #0f172a; font-variant-numeric: tabular-nums; }
.k-mae-bar { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.k-mae-bar i { display: block; height: 100%; background: var(--m); border-radius: 999px; }
.k-enfark { font-size: 12.5px; color: #475569; margin: 10px 0 6px; line-height: 1.5; }
.k-ac { margin: auto 16px 14px; text-align: center; font-weight: 600; color: #1d4ed8; border-color: #bfdbfe;
  background: #eff6ff; }
.k-ac:hover { background: #dbeafe; border-color: #93c5fd; }

@media (max-width: 900px) {
  .k-haritalar { grid-template-columns: 1fr; }
  .k-kontrol { position: static; }
  #arsiv-gun { min-width: 0; max-width: 100%; }
}

@media (max-width: 900px) {
  .admin-secim { grid-template-columns: 1fr; }
  .viewer { flex-direction: column; }
  .sidebar { width: auto; flex: 0 0 auto; max-height: 46vh; border-right: 0;
    border-bottom: 1px solid #e2e8f0; }
  .topbar { flex-wrap: wrap; gap: 12px; }
}
