/* ŞarjOldu — tek dosya, derleme gerektirmez */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0a6cff;
  --brand-ink: #ffffff;
  --brand-soft: #e6f0ff;
  --dc: #7c3aed;
  --dc-soft: #f1eafe;
  --ac: #0891b2;
  --ac-soft: #e3f6fa;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #d97706;
  --warn-soft: #fdf3e2;
  --bad: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .18);
  --topbar: 60px;
  --bottombar: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121a2e;
    --surface-2: #1a2440;
    --text: #e8edf7;
    --muted: #94a3b8;
    --line: #26314f;
    --brand: #4d94ff;
    --brand-soft: #1a2c52;
    --dc: #a78bfa;
    --dc-soft: #2a2050;
    --ac: #22d3ee;
    --ac-soft: #0f3340;
    --ok: #4ade80;
    --ok-soft: #133524;
    --warn: #fbbf24;
    --warn-soft: #3a2c0e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--topbar);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--dc));
  color: #fff;
}
.logo b { color: var(--brand); font-weight: 800; }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topnav a, .topnav button.linklike {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500;
}
.topnav a:hover, .topnav a.active { background: var(--surface-2); color: var(--text); text-decoration: none; }

/* ---------- Alt gezinme (mobil) ---------- */
.bottomnav { display: none; }
@media (max-width: 860px) {
  .topnav { display: none; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    height: calc(var(--bottombar) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .bottomnav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); font-size: .72rem; font-weight: 600;
  }
  .bottomnav a.active { color: var(--brand); }
  .bottomnav a:hover { text-decoration: none; }
  body.has-bottomnav .page { padding-bottom: calc(var(--bottombar) + 24px); }
}

/* ---------- Genel bileşenler ---------- */
.page { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: .85rem; }
.btn-icon { width: 44px; padding: 0; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--bad); }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.input, select.input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit;
}
.input:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.field + .field { margin-top: 14px; }
.error { color: var(--bad); font-size: .85rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 2px; }

.alert { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.tag-dc { background: var(--dc-soft); color: var(--dc); }
.tag-ac { background: var(--ac-soft); color: var(--ac); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- Harita sayfası ---------- */
.map-app { position: relative; height: calc(100dvh - var(--topbar)); display: grid; grid-template-columns: 400px 1fr; }
#map { height: 100%; width: 100%; background: var(--surface-2); z-index: 1; }
.panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border-right: 1px solid var(--line); z-index: 2;
}
.panel-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.panel-body { overflow-y: auto; flex: 1; padding: 8px; }
.sheet-handle { display: none; }

.vehicle-pill {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; margin-bottom: 12px;
  border-radius: 14px; border: 1px dashed var(--line); background: var(--surface-2);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.vehicle-pill.set { border-style: solid; background: var(--brand-soft); border-color: transparent; }
.vehicle-pill .vp-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--brand); flex: none; }
.vehicle-pill strong { display: block; font-size: .92rem; }
.vehicle-pill span { font-size: .8rem; color: var(--muted); }

.station-item {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  width: 100%; padding: 12px; border-radius: 14px; border: 0; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.station-item:hover, .station-item.active { background: var(--surface-2); }
.station-item.incompatible { opacity: .5; }
.st-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: .7rem; color: #fff; line-height: 1.05; text-align: center;
}
.st-badge.dc { background: var(--dc); }
.st-badge.ac { background: var(--ac); }
.st-name { font-weight: 600; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.st-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.st-dist { font-weight: 700; font-size: .85rem; text-align: right; }
.st-dist small { display: block; font-weight: 500; color: var(--muted); }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty svg { margin: 0 auto 12px; color: var(--brand); }

.map-fab { position: absolute; right: 16px; bottom: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.fab {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer;
}
.fab.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.map-loading {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 500;
  background: var(--surface); padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 600; display: none;
}
.map-loading.show { display: block; }

/* Harita pinleri */
.pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.pin > span { transform: rotate(45deg); color: #fff; font-size: 10px; font-weight: 800; }
.pin.ac { background: var(--ac); }
.pin.dc { background: var(--dc); }
.pin.off { filter: grayscale(1); opacity: .55; }
.pin.dim { opacity: .45; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 25%, transparent); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: color-mix(in srgb, var(--brand) 25%, transparent) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--brand) !important; color: #fff !important; font-weight: 700; font-family: inherit; }

/* Detay çekmecesi */
.detail {
  position: absolute; z-index: 600; left: 416px; top: 16px; width: 380px; max-height: calc(100% - 32px);
  overflow-y: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px; display: none;
}
.detail.open { display: block; animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.detail-close { position: absolute; right: 12px; top: 12px; }
.conn-list { display: grid; gap: 8px; margin: 14px 0; }
.conn {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
}
.conn-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .72rem; }
.conn-ico.dc { background: var(--dc-soft); color: var(--dc); }
.conn-ico.ac { background: var(--ac-soft); color: var(--ac); }
.conn.no { opacity: .5; }
.compat-box { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-weight: 600; font-size: .9rem; }
.compat-box.yes { background: var(--ok-soft); color: var(--ok); }
.compat-box.no { background: var(--warn-soft); color: var(--warn); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-end; justify-content: center; background: rgba(2, 6, 23, .5); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .modal { align-items: center; } .modal-box { border-radius: 20px; } }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-grid button, .model-list button {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px;
  padding: 12px 8px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.brand-grid button:hover, .model-list button:hover { border-color: var(--brand); background: var(--brand-soft); }
.model-list { display: grid; gap: 8px; }
.model-list button { text-align: left; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; }

/* Mobil: liste alt çekmece olur */
@media (max-width: 860px) {
  .map-app { display: block; height: calc(100dvh - var(--topbar) - var(--bottombar) - env(safe-area-inset-bottom)); }
  #map { position: absolute; inset: 0; }
  .panel {
    position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
    border-right: 0; border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
    transition: height .25s ease;
  }
  .panel.collapsed { height: 132px; }
  .panel.expanded { height: calc(100% - 56px); }
  .sheet-handle { display: block; width: 100%; height: 22px; border: 0; background: transparent; cursor: grab; position: relative; }
  .sheet-handle::after { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; border-radius: 3px; background: var(--line); transform: translateX(-50%); }
  .panel-head { padding: 0 12px 10px; }
  .vehicle-pill { padding: 8px 10px; margin-bottom: 10px; }
  .vehicle-pill .vp-icon { width: 30px; height: 30px; }
  .vehicle-pill span#vpSub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .station-item { padding: 10px 8px; }
  .map-fab { bottom: calc(55% + 12px); transition: bottom .25s ease; }
  .panel.collapsed ~ .map-fab { bottom: 144px; }
  .panel.expanded ~ .map-fab { display: none; }
  .detail { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 82%; border-radius: 20px 20px 0 0; padding-bottom: 24px; }
}

/* Auth / form sayfaları */
.auth-wrap { min-height: calc(100dvh - var(--topbar)); display: grid; place-items: center; padding: 24px 16px 96px; }
.auth-card { width: 100%; max-width: 440px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--brand); }
.selected-vehicle { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--brand-soft); }

.garage-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.garage-item:last-child { border-bottom: 0; }
.spec { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

.station-hero { display: grid; gap: 20px; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 760px) { .station-hero { grid-template-columns: 1fr; } }
.mini-map { height: 260px; border-radius: var(--radius); overflow: hidden; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Ortak ek bileşenler ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--topbar) + 12px); transform: translateX(-50%); z-index: 3000;
  max-width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: 12px;
  background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem;
  transition: opacity .3s ease, transform .3s ease;
}
.toast.hide { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; }
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2500; max-width: 560px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .85rem;
}
@media (max-width: 860px) { .cookie { bottom: calc(var(--bottombar) + 12px); } }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer a { color: var(--muted); }
body.map-page .site-footer { display: none; }
.alert-error { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--text); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled { opacity: .45; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .input { height: 40px; width: auto; min-width: 140px; }
.filters .btn { height: 40px; }
.badge-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }

/* ---------- Rezervasyon slotları ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; }
.slot { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.slot small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); }
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot[aria-pressed="true"] small { color: #dbeafe; }
.date-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.date-tabs button { flex: none; min-width: 64px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; line-height: 1.2; }
.date-tabs button[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.live { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.live .tag { font-size: .8rem; padding: 4px 10px; }

/* ---------- Rota sayfası ---------- */
.route-app { display: grid; grid-template-columns: 420px 1fr; height: calc(100dvh - var(--topbar)); }
.route-panel { overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 16px; }
#routeMap { height: 100%; background: var(--surface-2); }
.place { position: relative; }
.place .input { padding-left: 40px; }
.place .dot { position: absolute; left: 14px; top: 17px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--brand); background: var(--surface); }
.place .dot.end { border-color: var(--dc); border-radius: 3px; }
.suggest { position: absolute; z-index: 50; left: 0; right: 0; top: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; }
.suggest button:hover, .suggest button:focus { background: var(--surface-2); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--brand); }
.range-row output { min-width: 48px; text-align: right; font-weight: 700; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.summary div { padding: 10px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.summary b { display: block; font-size: 1.1rem; }
.summary span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 8px 0 14px 44px; }
.timeline .tl-dot { position: absolute; left: 4px; top: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: var(--dc); }
.timeline .tl-dot.start { background: var(--brand); }
.timeline .tl-dot.end { background: var(--ok); }
.soc-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; position: relative; }
.soc-bar i { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--warn), var(--ok)); border-radius: 3px; }
@media (max-width: 860px) {
  .route-app { display: flex; flex-direction: column-reverse; height: auto; min-height: calc(100dvh - var(--topbar) - var(--bottombar)); }
  #routeMap { height: 42vh; }
  .route-panel { border-right: 0; padding-bottom: calc(var(--bottombar) + 24px); }
}

/* ---------- Yönetim paneli ---------- */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100dvh - var(--topbar)); }
.admin-nav { background: var(--surface); border-right: 1px solid var(--line); padding: 16px 10px; position: sticky; top: var(--topbar); height: calc(100dvh - var(--topbar)); overflow-y: auto; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.admin-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.admin-nav a.active { background: var(--brand-soft); color: var(--brand); }
.admin-nav .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 12px 6px; }
.admin-main { padding: 24px; min-width: 0; }
.admin-main .page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-main .page-head h1 { margin: 0; }
.conn-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.diff { font-size: .8rem; }
.diff del { color: var(--bad); }
.diff ins { color: var(--ok); text-decoration: none; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; display: flex; overflow-x: auto; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav .nav-label { display: none; }
  .admin-nav a { flex: none; }
  .admin-main { padding: 16px 16px 96px; }
  .conn-row { grid-template-columns: 1fr 1fr; }
}

/* Liste sekmeleri (araç seçilince) */
.list-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 4px 8px; border-radius: 12px; background: var(--surface-2); position: sticky; top: 0; z-index: 2; }
.list-tabs button { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.list-tabs button b { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--line); color: var(--text); font-size: .75rem; }
.list-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.list-tabs button[aria-selected="true"] b { background: var(--brand); color: #fff; }
.matrix { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.matrix summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; }
.matrix summary::-webkit-details-marker { display: none; }
.matrix ul { margin-top: 8px; max-height: 260px; overflow-y: auto; }
.geo-notice { margin: 8px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--text); font-size: .84rem; line-height: 1.45; }
.geo-notice .btn { margin-top: 8px; display: inline-flex; }
