/* Tabanca (Yakıt Ofisi Merkez) ile aynı dil: sakin zemin, 1px çizgiler, küçük yarıçaplar, tek boy kontroller;
   kimlik yeşil→mavi geçişli vurgu. Sistem temasını izler: koyu varsayılan, sistem açıksa açık tema.
   Temaya göre değişen her şey değişkende durur; kural ezmek yerine :root ezilir. */

/* Inter gelmeden yazılar bununla: Arial, Inter'in genişliğine büyütülmüş (arayüzün Türkçe yazılarında Inter/Arial 400'de
   1,047, 600-700'de 1,01-1,02 ölçüldü) ve dikey ölçüleri Inter'inki. Inter yalnız hemen gelirse kullanılır (App.razor:
   display=optional, sonraki açılışlarda önbellekten); gelmezse sayfa bu yedekle kalır, yazı sonradan değişip genişlikler
   (sekmeler, kutular) kaymaz. */
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Roboto");
    size-adjust: 103.5%;
    ascent-override: 93.6%;
    descent-override: 23.4%;
    line-gap-override: 0%;
}

:root {
    color-scheme: dark;
    --accent1: #74c69d;
    --accent2: #4ea8de;
    /* HGS geçişi (defter, harita): yakıttan ayrı renk. */
    --toll: #8b6fd6;
    --grad: linear-gradient(100deg, var(--accent1), var(--accent2));
    --on-accent: #06121a;
    --link: var(--accent1);
    --focus-ring: rgba(116, 198, 157, 0.18);

    --bg: #0d1318;
    --panel: #151d25;
    --panel-2: #1a232c;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --hover: rgba(127, 127, 127, 0.12);
    --text: #e6eef5;
    --text-2: #c2d0dc;
    --muted: #8aa0b2;

    --moving: #5fd09a;
    --idle: #e0a458;
    --parked: #4ea8de;
    --offline: #5f6f7d;
    --alarm: #e5484d;

    --ok-bg: rgba(116, 198, 157, 0.14);
    --ok-line: rgba(116, 198, 157, 0.4);
    --ok-fg: #8fd8b2;
    --warn-bg: rgba(224, 164, 88, 0.14);
    --warn-line: rgba(224, 164, 88, 0.4);
    --warn-fg: #ecbd82;
    --err-bg: rgba(229, 72, 77, 0.14);
    --err-line: rgba(229, 72, 77, 0.45);
    --err-fg: #ff9a9d;
    --info-bg: rgba(78, 168, 222, 0.12);
    --info-line: rgba(78, 168, 222, 0.35);
    --off-bg: rgba(138, 160, 178, 0.14);
    --off-fg: #9fb1c0;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
    --control-h: 38px;
    --radius: 10px;
    --topbar-h: 56px;
    --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
    --map-bg: #1b232b;
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --link: #1f7a4f;
        --focus-ring: rgba(35, 121, 78, 0.16);
        --bg: #eef0f3;
        --panel: #ffffff;
        --panel-2: #f6f7f9;
        --line: rgba(0, 0, 0, 0.1);
        --line-strong: rgba(0, 0, 0, 0.18);
        --hover: rgba(0, 0, 0, 0.05);
        --text: #16202a;
        --text-2: #33424f;
        --muted: #5b6b78;

        --moving: #23a06b;
        --idle: #d08a2c;
        --parked: #2b88c8;
        --offline: #9aa6b1;
        --alarm: #d93a3f;

        --ok-bg: rgba(116, 198, 157, 0.18);
        --ok-fg: #1b6b46;
        --warn-bg: rgba(224, 164, 88, 0.2);
        --warn-fg: #8a5a1d;
        --err-bg: rgba(217, 58, 63, 0.1);
        --err-line: rgba(217, 58, 63, 0.35);
        --err-fg: #a8262b;
        --off-bg: rgba(0, 0, 0, 0.06);
        --off-fg: #66737e;

        --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
        --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.16);
        --map-bg: #e4e7eb;
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    /* Dokunmatikte yalnız kaydırma: sayfa sıkıştırmayla ya da çift dokunuşla yakınlaşmaz (harita kendi içinde yakınlaşır). */
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 {
    margin: 0; width: fit-content; font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1:focus { outline: none; }
h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
p { margin: 0 0 12px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ── kontroller: input = select = buton, tek yükseklik ── */

.input, .search {
    width: 100%; height: var(--control-h); padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--panel); color: var(--text); font: inherit; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder, .search::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus, .search:focus { border-color: var(--accent1); box-shadow: 0 0 0 3px var(--focus-ring); }
select.input { padding-right: 8px; }
.input.compact { height: 32px; padding: 0 10px; }
.input.auto { width: auto; min-width: 11rem; }
.input.date { width: auto; height: 32px; padding: 0 8px; }
input[type="checkbox"] { width: 1.05em; height: 1.05em; margin: 0; accent-color: var(--accent1); cursor: pointer; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-h); padding: 0 16px;
    border: 0; border-radius: 8px; background: var(--grad); color: var(--on-accent); font: inherit; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; filter: none; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.secondary {
    background: none; border: 1px solid var(--line-strong); color: var(--text-2); font-weight: 600;
}
.btn.secondary:hover { color: var(--text); border-color: var(--muted); filter: none; }
.btn.danger { background: linear-gradient(100deg, #e0586f, #9d2235); color: #fff; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

.chip {
    display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line);
    border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--accent1); }
.chip.on { background: var(--grad); border-color: transparent; color: var(--on-accent); }
.chip.ghost { margin-left: auto; border-color: transparent; }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segmented button {
    height: 34px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button:hover { color: var(--text); }
.segmented button.on { background: var(--grad); color: var(--on-accent); }
.segmented .count { margin-left: 4px; opacity: 0.75; font-weight: 500; }

/* ── durum noktaları, rozetler ── */

.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--offline); }
.dot.moving { background: var(--moving); box-shadow: 0 0 0 3px color-mix(in srgb, var(--moving) 22%, transparent); }
.dot.idle { background: var(--idle); }
/* Kontak açık, motorun çalıştığı bilinmiyor: rölantinin rengi, içi boş. */
.dot.ignitionon { background: transparent; box-shadow: inset 0 0 0 2px var(--idle); }
.dot.powercut { background: var(--alarm); }
.dot.parked { background: var(--parked); }
.dot.offline, .dot.unknown { background: var(--offline); }
.dot.alarm { background: var(--alarm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alarm) 25%, transparent); }

.tag {
    display: inline-flex; align-items: center; justify-content: center; min-width: 76px; height: 22px; padding: 0 10px;
    border-radius: 999px; background: var(--off-bg); color: var(--off-fg); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tag.ok { background: var(--ok-bg); color: var(--ok-fg); }
.tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.health-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.health-list { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.health-list .tag { margin-right: 4px; }
.alarm-note { font-size: 13px; margin-top: 4px; padding: 4px 8px; border-left: 3px solid var(--line-strong); }
/* Sürüş puanı ağırlıkları (DrivingWeightsCard). */
.weights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; margin-bottom: 12px; }
.weights-grid .field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.weights-grid .input-suffix .input { width: 80px; }
/* Sürüş olayını puandan çıkarma (DrivingEventReview). */
.drive-review { font-size: 13px; margin-top: 4px; }
.drive-review .link-btn { padding: 0; border: 0; background: none; color: var(--accent2); font: inherit; font-weight: 600; cursor: pointer; }
.drive-rejected { padding: 4px 8px; border-left: 3px solid var(--line-strong); }
.drive-rejected .link-btn { margin-left: 6px; }
.drive-reject { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.drive-reject .input { flex: 1 1 220px; min-width: 0; }
.tl.rejected .tl-title { text-decoration: line-through; color: var(--muted); }
.note-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.note-form .input { flex: 1 1 240px; }
.button-row.end { justify-content: flex-end; flex-wrap: nowrap; }
.ai-actions { display: flex; flex-direction: column; gap: 4px; }
.driver-qr { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; flex-wrap: wrap; }
.driver-qr img { border-radius: 8px; background: #fff; padding: 6px; }
.driver-qr > div { flex: 1 1 200px; }
.health-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 8px; }
.tag.alarm { background: var(--err-bg); color: var(--err-fg); }

.badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--alarm); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}

/* ── bildirim kutuları ── */

.form-error, .form-ok, .notice {
    display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px;
    border: 1px solid var(--line); font-size: 13.5px;
}
.form-error { background: var(--err-bg); border-color: var(--err-line); color: var(--err-fg); }
.form-error::before { content: "!"; font-weight: 800; }
.form-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }
.form-ok::before { content: "✓"; font-weight: 800; }
.notice { background: var(--info-bg); border-color: var(--info-line); color: var(--text-2); margin: 0; }

.code {
    display: block; padding: 10px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line);
    color: var(--text); font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; overflow-x: auto;
}

.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; color: var(--muted); text-align: center; }
.empty svg { opacity: 0.45; margin-bottom: 4px; }

/* ── marka ── */

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 15.5px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo-mark {
    display: inline-flex; width: 30px; height: 30px; flex: none; border-radius: 9px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(78, 168, 222, 0.3);
}
.logo-mark img { width: 100%; height: 100%; display: block; }
/* Yazı logosu satır içi SVG (WordmarkSvg): rengi metin rengi, boyu buradan (642×158). */
.logo .wordmark { height: 24px; width: auto; aspect-ratio: 642 / 158; display: block; flex: none; }

/* ── üst çubuk ── */

.topbar {
    position: sticky; top: 0; z-index: 1000; height: var(--topbar-h); display: flex; align-items: center; gap: 22px;
    padding: 0 18px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.topbar .tabs { display: flex; align-items: center; gap: 2px; height: 100%; }
.tab {
    position: relative; display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 12px;
    color: var(--muted); font-weight: 600;
}
.tab svg { opacity: 0.85; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--text); }
.tab.active svg { color: var(--accent1); opacity: 1; }
.tab.active::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad);
}
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.user-menu { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 4px; border: 1px solid transparent;
    border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left;
}
.user-btn:hover, .user-menu:focus-within .user-btn { border-color: var(--line); background: var(--hover); }
.avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
    background: var(--grad); color: var(--on-accent); font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em;
}
.user-who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-name { font-weight: 600; font-size: 13px; }
.user-org { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.user-pop {
    display: none; position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 240px; padding: 6px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
}
.user-menu:focus-within .user-pop { display: block; }
.user-pop-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-pop form { margin: 0; }
.menu-item {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px;
    background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.menu-item:hover { background: var(--hover); text-decoration: none; }

/* mobil: hamburger + soldan çekmece (saf CSS onay kutusu) */
.nav-toggle, .hamburger, .drawer, .drawer-backdrop { display: none; }

/* ── sayfa iskeleti ── */

.page { min-height: 100vh; }
.content { max-width: 1280px; margin: 0 auto; padding: 24px 22px 48px; display: flex; flex-direction: column; gap: 16px; }
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 38px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.card > h2 .muted { font-weight: 500; }
.table-card { padding: 6px 0 0; overflow-x: auto; }
.table-card > h2 { padding: 10px 18px 4px; }
.table-card > .muted, .table-card > .empty { padding-left: 18px; padding-right: 18px; }
.table-card > p.muted { padding-bottom: 14px; }
/* Tablo başlığı solda, filtreler sağda (Envanter). */
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 18px 6px; }
.table-head h2 { margin: 0; }
.table-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.table-tools .input.compact { width: auto; min-width: 10rem; }
.table-card > .form-error { margin: 0 18px 12px; }
.table-card > .installer-editor, .table-card > .installer-note { margin: 12px 18px 18px; }
.stack.wide { max-width: none; }
.stack label.field { gap: 5px; }
.stack .form-row .btn { align-self: end; }
.stack textarea.input { height: auto; padding: 10px 12px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.check-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.stack .check-row label, .check-row label { display: inline-flex; align-items: center; gap: 6px; flex-direction: row; font-weight: 600; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* Dosya seçici düğme görünümünde; asıl input görünmez ama tıklanır. */
.file-btn { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.form-row.three { grid-template-columns: 1.2fr 0.8fr 1.2fr auto; }
.form-row.four { grid-template-columns: 1.2fr 1fr 1.2fr 0.8fr auto; }
.form-row.four:not(:has(> :nth-child(5))) { grid-template-columns: 1fr 1.2fr 0.8fr auto; }
/* Düğmesiz iki alan yan yana (araç ve cihaz düzenle formları). */
.form-row.two { grid-template-columns: 1fr 1fr; }

.table { width: 100%; border-collapse: collapse; }
.table th {
    padding: 10px 14px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted);
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 18px; }
.table th:last-child, .table td:last-child { padding-right: 18px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.table tr.inactive td { color: var(--muted); }
/* Satırın tamamı kaydın sayfasını açar (Araçlar, Cihazlar); ilk hücredeki bağlantı klavye ve yeni sekme için, sondaki ok gösterir. */
.table tr.link { cursor: pointer; }
/* Kart içinde ara başlık (araç ve cihaz detayındaki geçmiş). */
.card > .section-title { display: block; margin: 18px 0 8px; }
.cell-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--muted); }
.tree { display: inline-flex; align-items: center; gap: 6px; }
.input-suffix { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.input-suffix .input { width: 76px; }

.link-box {
    margin-top: 12px; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px;
    background: var(--info-bg); border: 1px solid var(--info-line);
}
.link-box .code { white-space: pre-wrap; word-break: break-all; }
.content > .form-error { margin: 0; }

/* ── harita sayfası ── */

.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.workspace { flex: 1; min-height: 0; display: flex; }

.sidebar { width: 360px; flex: none; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); z-index: 2; }

.stats { display: flex; gap: 6px; padding: 14px 14px 10px; }
/* Tek satır: sayı ve ad yan yana; kutu içeriği kadar yer alır, artan yer paylaşılır, sığmazsa ad kısalır (sayı kısalmaz). */
.stat {
    position: relative; display: flex; flex: 1 1 auto; min-width: 0; align-items: baseline; justify-content: center; gap: 5px;
    padding: 7px 8px 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit;
    color: inherit; white-space: nowrap; cursor: pointer; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--line)); }
.stat:hover { border-color: var(--line-strong); }
.stat.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--bg)); }
.stat.moving { --c: var(--moving); }
.stat.idle, .stat.ignitionon { --c: var(--idle); }
.stat.parked { --c: var(--parked); }
.stat.offline { --c: var(--offline); }
.stat.all { --c: var(--accent1); }
.stat-value { flex: none; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-label { min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Arama düğmesi yalnız telefonda kapalı panelde (arama kutusunun yerine). Arama sürüyorsa vurgulu. */
.search-toggle, .filter-toggle {
    display: none; flex: none; align-items: center; justify-content: center; width: 38px; padding: 0; border: 1px solid var(--line);
    border-radius: 10px; background: var(--bg); color: var(--text-2); cursor: pointer;
}
.search-toggle.on, .filter-toggle.on { border-color: var(--accent1); background: color-mix(in srgb, var(--accent1) 10%, var(--bg)); color: var(--accent1); }
/* Süzgeç düğmesi (telefonda): seçili süzgeç sayısı köşede; panel açıkken çerçevesi vurgulu. */
.filter-toggle { position: relative; }
.filter-toggle[aria-expanded="true"] { border-color: var(--accent1); }
.filter-count {
    position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--accent1); color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
}
.filter-empty { display: none; margin: 0 10px 8px; font-size: 12.5px; color: var(--muted); }
.filter-clear {
    display: block; margin: 0 10px 8px; padding: 0; border: 0; background: none; color: var(--accent1); font: inherit;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.fleet-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 14px 0; }
.fleet-total b { font-size: 15px; }

.filter-box { margin: 0 14px 8px; }
.search-box { position: relative; margin: 0 14px 10px; color: var(--muted); }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); }
.search { padding-left: 34px; }

.vehicle-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.vehicle {
    display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border: 0; border-radius: 10px;
    background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.vehicle:hover { background: var(--hover); }
.vehicle.selected { background: color-mix(in srgb, var(--accent1) 12%, transparent); box-shadow: inset 3px 0 0 var(--accent1); }
.v-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-alarm { color: var(--alarm); font-weight: 600; }
/* Görülmemiş alarm: adın yanında kırmızı nokta (durum satırı yerinde kalır). */
.v-name-row { display: flex; align-items: center; min-width: 0; }
.alarm-dot { flex: none; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--alarm);
    vertical-align: middle; box-shadow: 0 0 0 3px color-mix(in srgb, var(--alarm) 22%, transparent); }
.v-speed { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.v-speed small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }

.map-area { position: relative; flex: 1; min-width: 0; }
.map { position: absolute; inset: 0; background: var(--map-bg); }
/* Harita kabın içindeki kendi öğesinde: sayfa değişince o öğe yeni sayfanın kabına taşınır (sauron-basemap.js). Harita
   sayfası olmayan ekranda son boyunda, görünmeden bekler. */
.map-host { position: absolute; inset: 0; }
.map-parking { position: fixed; top: 0; left: 0; z-index: -1; visibility: hidden; pointer-events: none; overflow: hidden; }

@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--moving) 55%, transparent); } 60% { box-shadow: 0 0 0 6px transparent; } }

/* araç detayı */

.detail {
    position: absolute; z-index: 500; top: 54px; right: 12px; width: 370px; max-height: calc(100% - 66px); overflow-y: auto;
    padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg);
    animation: slide-in 0.18s ease-out;
}
@keyframes slide-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes slide-out { to { opacity: 0; transform: translateX(10px); } }
/* İçerik sarmalayıcısı: boyu izlenir (sauron-sheet.js), kart eski boyundan yenisine kayar; kayarken taşan kısım gizli. */
.detail-body { flex: none; display: flex; flex-direction: column; gap: inherit; }
.detail.sizing { overflow: hidden; }
/* Kapanış: kartın kopyası kayarak gider, asıl kart sunucu kaldırana dek gizli (sauron-sheet.js). */
.detail.ghost { pointer-events: none; animation: slide-out 0.16s ease-in forwards; }
.detail.gone { visibility: hidden; }
/* Düğmeler kartın görünen altında: kart küçülürken altta kalır (margin-top: auto), büyürken ve içerik kartı aşınca da
   (sticky). */
.live .detail > .detail-actions { flex: none; margin-top: auto; position: sticky; bottom: 0; z-index: 1; background: var(--panel); }
/* Sonradan gelen bilginin yeri (iskelet): gerçek satırla aynı yazı boyunda, yalnız soluk bir çubuk. */
.sk { display: inline-block; max-width: 100%; border-radius: 6px; background: var(--line); color: transparent; animation: sk-pulse 1s ease-in-out infinite alternate; }
.vpill.sk-pill { border-color: transparent; background: var(--line); animation: sk-pulse 1s ease-in-out infinite alternate; }
.vpill.sk-pill small, .vpill.sk-pill b { display: inline-block; color: transparent; }
@keyframes sk-pulse { from { opacity: 0.45; } to { opacity: 0.9; } }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.detail-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.detail-state { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
/* Ters geocoding adresi (Geocoding.cs) ve LocationIQ'nun istediği bağlantı. */
.detail-addr { margin-top: 4px; font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.addr-credit { margin-left: 4px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.tl-addr { font-size: 12.5px; color: var(--text-2); }
.detail-sub { font-size: 12px; color: var(--muted); }
.state-hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.state-hint.powercut { color: var(--alarm); font-weight: 600; }
/* Öğrenme sürecinde varsayılan bilgi (devir okumayan araçta motor akü voltajından öğrenilene kadar rölanti kontaktan). */
.assumed-note { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

.status-pill {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 999px;
    background: var(--off-bg); color: var(--text-2); font-size: 12.5px; font-weight: 600;
}
.status-pill.moving { background: color-mix(in srgb, var(--moving) 16%, transparent); color: var(--moving); }
.status-pill.idle { background: color-mix(in srgb, var(--idle) 16%, transparent); color: var(--idle); }
.status-pill.ignitionon { background: color-mix(in srgb, var(--idle) 8%, transparent); color: var(--idle); }
.status-pill.powercut { background: color-mix(in srgb, var(--alarm) 16%, transparent); color: var(--alarm); }
.status-pill.parked { background: color-mix(in srgb, var(--parked) 16%, transparent); color: var(--parked); }

.alert {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 10px; background: var(--err-bg); border: 1px solid var(--err-line);
}
.alert-title { font-weight: 700; color: var(--err-fg); }
.alert-sub { font-size: 12px; color: var(--err-fg); opacity: 0.85; }
/* Araç kartındaki alarm (Home.razor): kart düz; yalnız "Haritada gör" o günün geçmişini açar, alarm noktası haritada işaretli. */
.alert-main { flex: 1; min-width: 0; }
/* Alarmın adresi tek satır: sığmayan kısım üç noktayla kesilir (tamamı başlıkta); gelmeden yeri iskeletle tutulur. */
.alert-where { margin-top: 2px; font-size: 12px; color: var(--err-fg); opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-where .sk { background: color-mix(in srgb, var(--err-fg) 28%, transparent); }
.alert-map {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 4px 10px;
    border: 1px solid var(--err-line); border-radius: 7px;
    font-size: 12px; font-weight: 600; color: var(--err-fg); white-space: nowrap;
}
.alert-map svg { flex: none; }
.alert-map:hover { text-decoration: none; background: color-mix(in srgb, var(--err-fg) 10%, transparent); }
/* Araç kartında ilk iki alarmdan sonrası (Home.razor). */
.alert-more {
    align-self: flex-start; margin-top: -6px; padding: 4px 2px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 600; color: var(--err-fg);
}
.alert-more:hover { text-decoration: underline; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.metrics > div { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.metric-value { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 800; }
.metric-label { font-size: 11px; color: var(--muted); }
/* Raporlar: hazır dönem düğmeleri (formun tam satırı). */
.report-presets { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; }
/* Haritadaki kartta bugünün özeti (Home.razor). */
.today { display: flex; flex-direction: column; gap: 6px; }
.today .metric-value { font-size: 15px; }
.heading { color: var(--accent2); transition: transform 0.6s ease; }

.rows { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; text-align: right; }

/* rota */

.section-title { flex: 1; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.route { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.route-head { display: flex; align-items: center; gap: 8px; }
.route-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.route-stats > div { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.route-stats .num { font-weight: 800; }
.route-stats small { font-size: 11px; color: var(--muted); }
/* Oynatıcıda metin seçilmez: çubuğu fareyle sürüklemek seçimi başlatıp haritaya yayıyordu. */
.player { display: flex; align-items: center; gap: 10px; -webkit-user-select: none; user-select: none; }
/* Zaman çubuğu: dokunma alanı geniş, iz ince; tutamaç sürüklenir (sauron-map.js). */
.progress { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 3px; background: var(--line); }
.progress-bar { position: absolute; left: 0; top: 50%; width: 0; height: 5px; margin-top: -2.5px; border-radius: 3px; background: var(--grad); }
.progress-bar::after {
    content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent2); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.route-time { min-width: 64px; text-align: right; font-size: 12px; color: var(--muted); }
.speeds { display: flex; gap: 6px; flex-wrap: wrap; }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 4px; margin-right: 5px; border-radius: 2px; vertical-align: middle; }
.speed-0 { background: #3fb27f; }
.speed-1 { background: #d6a531; }
.speed-2 { background: #e8793a; }
.speed-3 { background: #e5484d; }

/* anlık alarm bildirimleri */

.toasts { position: absolute; z-index: 600; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; width: 330px; }
.toast {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--err-line); border-left: 3px solid var(--alarm);
    border-radius: 10px; background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg); font: inherit; text-align: left; cursor: pointer;
    animation: toast-in 0.2s ease-out;
}
.toast-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--alarm); color: #fff; font-size: 12px; font-weight: 800;
}
.toast-body { display: flex; flex-direction: column; min-width: 0; }
.toast-title { font-weight: 700; }
.toast-sub { font-size: 12px; color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* harita işaretleri */

/* Haritanın üstündeki HTML öğeleri (sauron-overlay.js): kap tuvalin üstünde, her öğe kendi noktasında (0×0 kutu, yeri
   transform), içi o noktaya göre. Kap kendi katmanı: içindeki z-index'ler harita denetimlerini ve sayfayı aşmaz. */
.ov-root { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Altlık değişirken son kare (sauron-basemap.js swap): tuvalin hemen üstünde, işaretlerin altında; yeni altlık çizilince solar. */
.map-shot { position: absolute; left: 0; top: 0; pointer-events: none; }
.ov { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ov > * { pointer-events: auto; cursor: pointer; }
/* Fareyle üstüne gelinen işaret ötekilerin üstüne çıkar (seçili araç yine en üstte, sauron-map.js Z_SELECTED). */
.ov:hover { z-index: 90000000 !important; }
.ov > .vm { position: absolute; left: -14px; top: -14px; }
.ov > .vcl { position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); }
.ov > .playhead, .ov > .alarm-ring { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.ov > .route-flag { position: absolute; left: 0; top: 0; pointer-events: none; cursor: default; }
.ov > .alarm-mark-tip { pointer-events: none; cursor: default; }

.vm { position: relative; width: 28px; height: 28px; --c: var(--offline); }
.vm--moving { --c: var(--moving); }
.vm--idle, .vm--ignitionon { --c: var(--idle); }
.vm--powercut { --c: var(--alarm); }
.vm--parked { --c: var(--parked); }
.vm-dot {
    position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.vm-arrow {
    position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -15px 0 0 -5px;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--c);
    transform: rotate(var(--rot)); transform-origin: 5px 15px;
    /* Yön değişince döner (açı sauron-map.js'te birikir: en kısa yönden). */
    transition: transform 0.5s ease-out;
}
.vm--parked .vm-arrow, .vm--offline .vm-arrow, .vm--unknown .vm-arrow { display: none; }
/* --stack: aynı yerdeki araçların etiketleri alt alta dizilir (sauron-map.js stackLabels). */
.vm-label {
    position: absolute; left: 50%; top: calc(26px + var(--stack, 0px)); transform: translateX(-50%); white-space: nowrap;
    padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line-strong);
    box-shadow: var(--shadow); font: 600 11px var(--font); color: var(--text);
}
.vm-label b { margin-left: 6px; font-weight: 500; color: var(--muted); }
/* Marka logosu (sauron-map.js logoHtml): yazı renginde (seçilince beyaz, alarmda kırmızı); yazı-logolar en çok 26 px geniş. */
.vm-logo {
    display: inline-block; width: min(calc(12px * var(--ar, 1)), 26px); height: 12px; margin-right: 5px; vertical-align: -2px;
    background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.vm--selected .vm-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent2) 45%, transparent), 0 1px 4px rgba(0, 0, 0, 0.45); }
.vm--alarm .vm-dot { animation: alarm-ring 1.6s infinite; }
.vm--alarm .vm-label { border-color: var(--err-line); color: var(--err-fg); }
/* Seçili araç: aynı yerdeki noktalar üst üste biner, seçilen etiketinden belli olur (marka renginde dolu, beyaz halkalı). */
.vm--selected .vm-label {
    background: var(--grad); color: var(--on-accent); border-color: transparent;
    box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, 0.5);
}
.vm--selected .vm-label b { color: inherit; opacity: 0.75; }
@keyframes alarm-ring {
    0%, 100% { box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.45), 0 1px 4px rgba(0, 0, 0, 0.45); }
    50% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0.08), 0 1px 4px rgba(0, 0, 0, 0.45); }
}

/* Küme (sauron-map.js clusterIcon): araç sayısı; halkanın yeşil kısmı yoldaki araçların payı. */
.vcl {
    display: grid; place-items: center; width: var(--s, 34px); height: var(--s, 34px); border-radius: 50%; box-sizing: border-box;
    background: conic-gradient(var(--moving) var(--share), var(--parked) 0); padding: 3px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}
.vcl span {
    display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--panel); color: var(--text);
    font: 800 13px var(--font);
}
.vcl--alarm { box-shadow: 0 0 0 3px var(--err-line), 0 1px 5px rgba(0, 0, 0, 0.45); }

/* Rotanın başlangıç ve bitiş bayrağı (sauron-map.js routeFlag): nokta rotanın ucunda, yazı üstünde ortalı. Dolu renk + beyaz
   kenar her altlıkta okunur; başlangıç yeşil, bitiş koyu (kırmızı hız çizgisinden ve alarm başlığından ayrılsın). Bütün
   gün gösterilirken bitiş aracın işaretinin üstünde (.vm-end). --dx: kenara gelince yazı içeri kayar; --dy: başlangıç ve
   bitiş aynı yerdeyse biri öbürünün üstüne çıkar (clampFlags). */
.route-flag { --flag: #15803d; }
.route-flag.end, .vm-end { --flag: #1e293b; }
.route-flag::before {
    content: ''; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%;
    background: var(--flag); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.route-flag-tip {
    position: absolute; left: 0; bottom: 12px; transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, 0px)); white-space: nowrap;
    padding: 2px 8px; border: 1.5px solid #fff; border-radius: 8px; background: var(--flag); color: #fff;
    font: 500 12px var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.route-flag-tip b { font-weight: 700; }
.vm > .vm-end { left: 50%; bottom: calc(50% + 14px); pointer-events: none; }
.vm > .vm-end[hidden] { display: none; }
.playhead { width: 18px; height: 18px; border-radius: 50%; background: var(--accent2); border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(78, 168, 222, 0.3); }

/* Altlık seçici (sauron-basemap.js): sağ üstte katman düğmesi, açılınca önizlemeli seçenekler. */
.basemap { position: relative; }
.basemap-toggle {
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
    background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(8px); color: var(--text);
    box-shadow: var(--shadow); cursor: pointer;
}
.basemap-toggle:hover, .basemap.open .basemap-toggle { border-color: var(--accent1); }
.basemap-menu {
    position: absolute; top: calc(100% + 6px); right: 0; display: none; gap: 8px; padding: 8px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-lg);
}
.basemap.open .basemap-menu { display: grid; grid-template-columns: repeat(var(--cols, 4), auto); }
.basemap-option {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted);
    font: inherit; font-size: 11.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.basemap-option:hover, .basemap-option.on { color: var(--text); }
.basemap-thumb {
    width: 72px; height: 54px; border: 2px solid var(--line); border-radius: 9px; background: center / cover no-repeat var(--panel-2);
}
.basemap-option:hover .basemap-thumb { border-color: var(--line-strong); }
.basemap-option.on .basemap-thumb { border-color: var(--accent1); }
.basemap-thumb--harita { background-image: url(img/altlik-harita.jpg); }
.basemap-thumb--sade { background-image: url(img/altlik-sade.jpg); }
.basemap-thumb--gece { background-image: url(img/altlik-gece.jpg); }
.basemap-thumb--uydu { background-image: url(img/altlik-uydu.jpg); }
/* Google karoları saklanamaz (şartları): önizleme çizimle. */
.basemap-thumb--google {
    background: linear-gradient(118deg, transparent 47%, #fbd36b 47% 53%, transparent 53%),
        linear-gradient(28deg, transparent 58%, #fff 58% 63%, transparent 63%), linear-gradient(160deg, #e8eaed 62%, #aecbfa 62%);
}
.basemap-thumb--google-uydu {
    background: linear-gradient(118deg, transparent 47%, rgba(251, 211, 107, 0.85) 47% 51%, transparent 51%),
        radial-gradient(circle at 25% 30%, #6b7f4a, transparent 45%), radial-gradient(circle at 75% 70%, #8a6f52, transparent 50%),
        linear-gradient(160deg, #3c4a33 62%, #1f3348 62%);
}
/* Google'ın şartı: logo (16–19 px, üstü örtülmez) sol altta; masaüstünde bildirimler onun üstünde açılır (telefonda
   bildirimler üstte; orada bottom verilirse kutu haritayı boydan boya kaplayıp dokunuşları yutar). */
.google-logo { display: block; height: 18px; width: auto; pointer-events: none; }
@media (min-width: 801px) {
    .map-area:has(.google-logo) .toasts { bottom: 40px; }
}
/* Etiket seçici (sauron-map.js): altlık düğmesinin altında; etikette adın yanında ne yazacağı. */
.labelpick-menu {
    position: absolute; top: 0; right: calc(100% + 6px); display: none; flex-direction: column; gap: 2px; min-width: 150px; padding: 6px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-lg);
}
.labelpick.open .labelpick-menu { display: flex; }
.labelpick-head { padding: 4px 8px 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.labelpick-head.sep { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.labelpick-option {
    padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13px;
    text-align: left; cursor: pointer;
}
.labelpick-option:hover { background: var(--panel-2); }
.labelpick-option.on { background: color-mix(in srgb, var(--accent1) 16%, transparent); font-weight: 700; }
.labelpick.open .basemap-toggle { border-color: var(--accent1); }
/* Düğmelerin köşesi MapLibre'de z-index 2; sola/aşağı açılan menü araç kartının (500, telefonda 1001) altında kalıyordu.
   Menü açıkken köşesi kartın ve bildirimlerin üstüne çıkar. */
:is(.maplibregl-ctrl-top-left, .maplibregl-ctrl-top-right, .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right):has(> .basemap.open) {
    z-index: 1010;
}

/* Telefonda alttaki panel haritayı örterken künye, logo ve düğmeler panelin üstünde kalır (sauron-map.js --sheet). */
.live .maplibregl-ctrl-bottom-left, .live .maplibregl-ctrl-bottom-right { bottom: var(--sheet, 0px); }
/* Araç ekranında haritanın üstünü oynatma çubuğu kaplar: seçici onun altında. */
.vpage .maplibregl-ctrl-top-right { top: 52px; }
.maplibregl-map { font-family: var(--font); background: var(--map-bg); }
/* Haritadaki yazı (araç/bölge etiketi, künye) seçilmez: telefonda uzun basınca Kopyala menüsü açılıp etiket
   boyanıyordu. Nokta balonundaki adres ve koordinat kopyalanabilir kalır. */
.maplibregl-map { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.maplibregl-map .maplibregl-popup-content { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* WebGL yoksa haritanın yerinde açıklama (sauron-map.js unavailable). */
.map-unavailable { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
/* Yakınlaştırma düğmeleri (sauron-overlay.js zoomControl; dokunmatikte gizli). */
.zoom-ctrl, .focus-ctrl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--panel); }
.zoom-ctrl button, .focus-ctrl button { width: 32px; height: 32px; padding: 0; border: 0; background: var(--panel); color: var(--text); font: 500 19px/1 var(--font); cursor: pointer; }
.zoom-ctrl button + button, .focus-ctrl button:not([hidden]) + button { border-top: 1px solid var(--line); }
.zoom-ctrl button:hover, .focus-ctrl button:hover { background: var(--panel-2); }
/* Araç ekranında araca git / rotanın tamamı (sauron-map.js focusButtons): sağ altta, yakınlaştırma düğmelerinin üstünde;
   dokunmatikte de görünür. */
.focus-ctrl button { display: grid; place-items: center; }
.focus-ctrl[hidden], .focus-ctrl button[hidden] { display: none; }
/* Künye (sauron-basemap.js credits): sağ alt köşede, kenara yapışık. */
.maplibregl-ctrl-bottom-right > .credits { display: flex; flex-direction: column; align-items: flex-end; margin: 0; }
.credits-text { padding: 0 5px; font: 12px/1.4 var(--font); background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--muted); }
.credits-text a { color: var(--muted); }
/* Telefonda künye birkaç saniye sonra "ⓘ Veri kaynakları" düğmesine küçülür, basınca açılır (sauron-basemap.js credits). */
.credits-button {
    display: none; margin: 0 6px 6px 0; padding: 3px 9px; border: 0; border-radius: 999px; cursor: pointer;
    background: color-mix(in srgb, var(--panel) 80%, transparent); font: 500 11px/1.3 var(--font); color: var(--muted);
}
@media (max-width: 800px) {
    .credits-collapsed .credits-text { display: none; }
    .credits-collapsed .credits-button { display: block; }
    /* Yazı da düğme de köşede aynı yeri (26 px) tutar: yazı düğmeye dönünce üstteki düğmeler kaymıyordu (~10 px). Yazı
       sığmayıp iki satıra inerse yukarı doğru büyür, yer değiştirmez. */
    .maplibregl-ctrl-bottom-right > .credits { position: relative; height: 26px; }
    .credits-text { position: absolute; right: 0; bottom: 0; width: max-content; max-width: calc(100vw - 16px); text-align: right; }
    .credits-button { height: 20px; line-height: 14px; }
}
/* Telefonda canlı haritada künye (Veri kaynakları) ve Google logosu haritanın tepesinde: altta durum kutuları, düğmeler ve
   alt çubuk kalabalık, tepe boş. Künye sağ üstte (açılınca aşağı doğru uzar), logo sol üstte. Google'ın şartı logonun ve
   künyenin haritada görünmesi; köşe şartı yok. */
@media (max-width: 800px) {
    .live .maplibregl-ctrl-bottom-right > .credits { position: fixed; top: calc(env(safe-area-inset-top) + 8px); right: 8px; margin: 0; }
    .live .maplibregl-ctrl-bottom-right > .credits .credits-text { top: 0; bottom: auto; }
    .live .maplibregl-ctrl-bottom-left { top: 12px; bottom: auto; }
    .live .maplibregl-ctrl-bottom-left > .google-logo { margin: 0 0 0 10px; }
}
/* Nokta balonu (harita araçları): panel renginde. */
.maplibregl-popup-content {
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text);
    box-shadow: var(--shadow-lg); font: 13px var(--font);
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip, .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--panel); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--panel); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--panel); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--panel); }
.maplibregl-popup-close-button { width: 26px; height: 26px; color: var(--muted); font-size: 18px; border-radius: 0 12px 0 8px; }
.maplibregl-popup-close-button:hover { background: var(--panel-2); }
/* Çizgi ve alan ipucu (sauron-overlay.js tooltip): imlecin sağ altında. */
.map-tip {
    position: absolute; left: 0; top: 0; z-index: 3; margin: 14px 0 0 12px; padding: 3px 8px; border-radius: 6px; pointer-events: none;
    background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font: 600 12px var(--font);
    white-space: nowrap;
}
.map-tip[hidden] { display: none; }

/* ── giriş ve şifre belirleme: hareketli aurora zemin + cam kart ── */

.auth-stage {
    position: fixed; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: linear-gradient(125deg, #0a141a, #0d1f1c, #11202c, #1a1630, #201422, #0d1f1c, #0a141a);
    background-size: 400% 400%; animation: auth-shift 32s ease-in-out infinite; color-scheme: dark;
}
@keyframes auth-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.auth-aurora {
    position: absolute; inset: -40%;
    background:
        radial-gradient(40% 40% at 20% 30%, rgba(116, 198, 157, 0.55), transparent 70%),
        radial-gradient(35% 35% at 80% 25%, rgba(78, 168, 222, 0.5), transparent 70%),
        radial-gradient(45% 45% at 60% 80%, rgba(143, 107, 222, 0.42), transparent 70%),
        radial-gradient(30% 30% at 30% 75%, rgba(224, 164, 88, 0.32), transparent 70%);
    filter: blur(40px);
    animation: auth-float 18s ease-in-out infinite alternate, auth-hue 40s linear infinite;
}
@keyframes auth-float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(4%, -3%) rotate(8deg) scale(1.12); }
    100% { transform: translate(-3%, 4%) rotate(-6deg) scale(1.05); }
}
@keyframes auth-hue { from { filter: blur(40px) hue-rotate(0deg); } to { filter: blur(40px) hue-rotate(360deg); } }
.auth-grid {
    position: absolute; inset: 0; opacity: 0.35;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 45%, black, transparent 75%);
}
.auth-card {
    position: relative; z-index: 1; width: 100%; max-width: 380px; padding: 38px 32px 26px; color: #eaf2f8;
    background: rgba(20, 28, 36, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px;
    backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: auth-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes auth-rise { from { opacity: 0; transform: translateY(22px) scale(0.97); } }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-brand .logo-mark { width: 44px; height: 44px; border-radius: 13px; }
.auth-title { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.auth-wordmark { height: 30px; width: auto; aspect-ratio: 642 / 158; margin-top: 4px; color: #fff; }
.auth-sub { color: #9fb4c4; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field {
    display: flex; align-items: center; gap: 10px; padding: 2px 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
    background: rgba(8, 12, 16, 0.55); color: #6f8499; transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-field:focus-within { border-color: #74c69d; box-shadow: 0 0 0 3px rgba(116, 198, 157, 0.18); }
.auth-field svg { flex: none; }
.auth-field input {
    flex: 1; min-width: 0; padding: 13px 0; border: 0; outline: 0; background: transparent; color: #eaf2f8; font: inherit; font-size: 15px;
}
.auth-field input::placeholder { color: #6f8499; }
.auth-field input:-webkit-autofill { -webkit-text-fill-color: #eaf2f8; transition: background-color 9999s; }
.auth-check { display: flex; align-items: center; gap: 9px; padding-left: 2px; color: #9fb4c4; font-size: 13.5px; cursor: pointer; user-select: none; }
.auth-check:hover { color: #cfe3f0; }
.auth-btn {
    position: relative; margin-top: 6px; padding: 14px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(100deg, #74c69d, #4ea8de); color: #06121a; font: inherit; font-size: 15px; font-weight: 800;
    box-shadow: 0 10px 26px rgba(78, 168, 222, 0.35); transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.auth-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 32px rgba(78, 168, 222, 0.5); text-decoration: none; }
.auth-btn .arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); transition: right 0.15s; }
.auth-btn:hover .arrow { right: 14px; }
a.auth-btn { display: block; text-align: center; }
.auth-error {
    margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: rgba(157, 34, 53, 0.18); border: 1px solid rgba(224, 122, 95, 0.4);
    color: #ffb3a3; font-size: 13px; text-align: center;
}
.auth-text { color: #b6c7d4; font-size: 13.5px; text-align: center; }
.auth-text b { color: #fff; }
.auth-hint { color: #6f8499; font-size: 12px; text-align: center; margin: 0; }
.auth-foot { margin-top: 22px; color: #5f7385; font-size: 12px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
    .auth-stage, .auth-aurora, .auth-card { animation: none; }
}

/* ── hata sayfaları ── */

.message-page { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 80px 20px; text-align: center; }
.message-page .big { font-size: 64px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Blazor hata çubuğu ── */

#blazor-error-ui {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; padding: 12px 18px; text-align: center;
    background: linear-gradient(100deg, #e0a458, #e0586f); color: #06121a; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
}
#blazor-error-ui a { color: #06121a; font-weight: 700; text-decoration: underline; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 10px; font-weight: 700; }

/* ── dar ekran ── */

@media (max-width: 980px) {
    .topbar { gap: 12px; padding: 0 12px; }
    .topbar .tabs, .user-who { display: none; }
    .hamburger {
        position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none;
        border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer;
    }
    .hamburger .badge { position: absolute; top: -6px; right: -8px; box-shadow: 0 0 0 2px var(--panel); }
    .drawer {
        display: flex; flex-direction: column; gap: 2px; position: fixed; z-index: 1200; top: 0; bottom: 0; left: 0;
        width: min(80vw, 300px); padding: 16px 12px; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line);
        transform: translateX(-105%); transition: transform 0.18s ease-out;
    }
    .drawer-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, 0.45);
        opacity: 0; pointer-events: none; transition: opacity 0.18s;
    }
    .nav-toggle:checked ~ .drawer { transform: none; }
    .nav-toggle:checked ~ .drawer-backdrop { opacity: 1; pointer-events: auto; }
    .drawer .logo { padding: 4px 8px 16px; }
    .drawer .tabs { display: flex; flex-direction: column; gap: 2px; }
    .drawer .tab { height: 42px; padding: 0 12px; border-radius: 8px; color: var(--text); }
    .drawer .tab:hover { background: var(--hover); }
    .drawer .tab.active { background: color-mix(in srgb, var(--accent1) 14%, transparent); }
    .drawer .tab.active::after { display: none; }
    .drawer form { margin: 0; }
    .drawer button.tab { width: 100%; border: 0; background: none; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
    .grid-2, .form-row, .form-row.two, .form-row.three, .form-row.four, .form-row.four:not(:has(> :nth-child(5))) { grid-template-columns: 1fr; }
    .content { padding: 16px 12px 40px; }
}

@media (max-width: 800px) {
    .workspace { flex-direction: column-reverse; }
    .sidebar { width: 100%; height: 50%; border-right: 0; border-top: 1px solid var(--line); }
    .detail { left: 12px; right: 12px; width: auto; }
    .toasts { left: 12px; right: 12px; width: auto; }
}

/* Telefonda liste tabloları "satır = kart" olur; her hücre solda sütun başlığını taşır (data-label, App.razor). */
@media (max-width: 640px) {
    .table, .table thead, .table tbody, .table tr, .table th, .table td { display: block; }
    .table thead tr { position: absolute; left: -9999px; top: -9999px; }
    .table-card { padding: 0; background: none; border: 0; }
    .table-card > h2 { padding: 0 2px 8px; }
    .table-card > .installer-editor, .table-card > .installer-note { margin: 12px 0; }
    .table tr { margin: 0 0 10px; padding: 2px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
    .table td, .table td:first-child, .table td:last-child {
        display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 14px;
        padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: right; overflow-wrap: anywhere;
    }
    .table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
    .table tr td:last-child { border-bottom: 0 !important; }
    .table td::before { content: attr(data-label); flex: 0 0 38%; margin-right: auto; text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; }
    .table td[data-label=""]::before { content: none; }
    .table td > div { flex-basis: 100%; }
    .table td .input.compact { width: auto; flex: 1; }
}

/* kuruluş türleri */
.tag.type-platform { background: color-mix(in srgb, var(--accent2) 16%, transparent); color: var(--accent2); }
.tag.type-dealer { background: color-mix(in srgb, #9b7be0 18%, transparent); color: #a98ce6; }
.tag.type-customer { background: var(--ok-bg); color: var(--ok-fg); }
.tag.type-installer { background: color-mix(in srgb, #d9902f 18%, transparent); color: #d9902f; }

/* özet kartları */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; overflow: hidden;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); opacity: 0.7; }
.kpi.ok::after { background: var(--moving); }
.kpi.bad::after { background: var(--alarm); }
.kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi-value { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }

@media (max-width: 640px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kpi { padding: 10px 12px; }
    .kpi-value { font-size: 22px; }
    .code { white-space: pre-wrap; word-break: break-all; }
}

.auth-link { color: #9fb4c4; font-size: 13px; }
.auth-link:hover { color: #cfe3f0; }

/* Hesabım: ayar satırı (tabanca'daki toggle-switch) */
.setting {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 14px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.setting:hover { border-color: var(--muted); }
.setting:has(input:checked) { border-color: color-mix(in srgb, var(--accent1) 55%, var(--line)); background: color-mix(in srgb, var(--accent1) 6%, var(--bg)); }
.setting-copy { display: grid; gap: 4px; min-width: 0; }
.setting-label { font-weight: 600; }
.setting-desc { color: var(--muted); font-size: 13px; line-height: 1.5; }
.alarm-types { margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--bg); }
.alarm-types summary { cursor: pointer; font-weight: 600; }
.alarm-types table { margin: 10px 0 6px; width: 100%; }
.alarm-types th, .alarm-types td { padding: 6px 8px; }
.alarm-types .center { text-align: center; width: 72px; }
.alarm-types input[type=checkbox] { width: 18px; height: 18px; }
input[type="checkbox"].switch {
    appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0;
    border-radius: 999px; background: var(--offline); transition: background-color 0.18s; cursor: pointer;
}
input[type="checkbox"].switch::before {
    content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.18s;
}
input[type="checkbox"].switch:checked { background: var(--accent1); }
input[type="checkbox"].switch:checked::before { transform: translateX(18px); }
input[type="checkbox"].switch:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.stack { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.stack label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.stack .btn { align-self: flex-start; }
.content.narrow { max-width: 820px; }
dl.profile { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
dl.profile dt { color: var(--muted); }
dl.profile dd { margin: 0; font-weight: 600; }

/* ── bölgeler ── */
.zone-tip { font: 600 12px var(--font); }
.maplibregl-map.drawing .maplibregl-canvas-container.maplibregl-interactive { cursor: crosshair; }
.zone-list { flex: 1; overflow-y: auto; padding: 6px 8px 12px; border-top: 1px solid var(--line); }
.zone {
    display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border: 0; border-radius: 10px;
    background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.zone:hover { background: var(--hover); }
.zone.selected { background: color-mix(in srgb, var(--accent1) 12%, transparent); box-shadow: inset 3px 0 0 var(--accent1); }
.zone.inactive { opacity: 0.55; }
.zone-swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 25%, transparent); }
.zone-swatch.stay { --c: var(--moving); border-style: dashed; }
.zone-swatch.keep { --c: var(--alarm); }
.zone-swatch.watch { --c: #3b82f6; }
.zone-swatch.path { --c: #8b5cf6; border-radius: 999px; }
.zone-vehicles { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.zone-vehicles label { gap: 8px; }
.zone-form { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 14px; margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
/* Form uzun (telefonda kenar çubuğu ekranın yarısı): düzenlerken kenar çubuğu bütün olarak kayar, liste formun altında. */
.sidebar.editing { overflow-y: auto; overscroll-behavior: contain; }
.sidebar.editing .zone-list { flex: none; overflow: visible; }
.zone-form .segmented { display: flex; }
.zone-form .segmented button { flex: 1; height: auto; min-height: 34px; padding: 5px 4px; font-size: 12.5px; line-height: 1.15; }
.zone-form label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.zone-hint { font-size: 12.5px; color: var(--text-2); padding: 8px 10px; border-radius: 8px; background: var(--info-bg); border: 1px solid var(--info-line); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; }
.map-tools { position: absolute; z-index: 500; top: 12px; left: 12px; display: flex; gap: 6px; }
.map-tools .chip { background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(8px); height: 32px; }
.map-tools .chip.on { background: var(--grad); }

/* araç cihaz geçmişi */
.table tr.history-row td { background: var(--bg); }
.history { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.history-item { display: flex; gap: 14px; flex-wrap: wrap; }

/* araç grupları */
.group-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.group-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 13px; }
.group-chip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.group-chip button:hover { background: var(--err-bg); color: var(--err-fg); }
.group-editor { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.group-editor .checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.group-editor label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.field-row { display: flex; flex-direction: column; gap: 5px; margin: 0 0 4px; }

/* sekmeler çoğaldı: orta genişlikte ikonsuz ve sıkı */
@media (max-width: 1240px) and (min-width: 981px) {
    .topbar { gap: 14px; }
    .topbar .tab { padding: 0 8px; }
    .topbar .tab svg { display: none; }
}

/* iki adımlı doğrulama */
.qr { display: flex; justify-content: center; margin: 16px 0 10px; }
.qr img { border-radius: 12px; background: #fff; padding: 8px; }
.secret { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: #eaf2f8; letter-spacing: 0.04em; word-break: break-all; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.recovery-codes span {
    padding: 8px 10px; border-radius: 10px; background: rgba(8, 12, 16, 0.55); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eaf2f8; font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; letter-spacing: 0.05em;
}

/* müşteri gibi gör şeridi */
.view-as {
    position: sticky; top: var(--topbar-h); z-index: 999; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap; padding: 8px 18px; background: linear-gradient(100deg, #e0a458, #e0586f); color: #06121a; font-size: 13px;
}
.view-as form { margin: 0; }
.view-as .btn { background: #06121a; color: #fff; }
.app:has(.view-as) .workspace { min-height: 0; }

/* Yönetim açılır menüsü (tabanca'daki .menu gibi; :hover ve :focus-within) */
.topbar .menu { position: relative; height: 100%; display: flex; align-items: center; }
.menu-btn { border: 0; background: none; font: inherit; cursor: pointer; }
.topbar .menu-items {
    display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 6px; z-index: 30;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
}
.topbar .menu:hover .menu-items, .topbar .menu:focus-within .menu-items { display: flex; flex-direction: column; }
.topbar .menu-items .tab { height: 38px; padding: 0 12px; border-radius: 6px; color: var(--text); }
.topbar .menu-items .tab:hover { background: var(--hover); }
.topbar .menu-items .tab.active { background: color-mix(in srgb, var(--accent1) 14%, transparent); }
.topbar .menu-items .tab.active::after { display: none; }
.nav-group { margin: 14px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* fatura bilgileri formu */
.billing-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.billing-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.billing-form .wide { grid-column: span 3; }
@media (max-width: 980px) { .billing-form { grid-template-columns: 1fr; } .billing-form .wide { grid-column: auto; } }

/* ── seyir defteri (araç sayfası) ── */

.vlog { gap: 14px; }
.vlog-head { display: flex; align-items: center; gap: 12px; }
.vlog-title { flex: 1; min-width: 0; }
.vlog-title h1 { margin: 0; font-size: 22px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlog-head .status-pill { flex: none; }
.vlog-now { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); font-size: 13.5px; }
.day-nav { display: flex; align-items: center; gap: 8px; }
.day-pick {
    position: relative; flex: 1; display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-weight: 700; cursor: pointer;
}
/* Tarih seçici görünmez ama bütün alanı kaplar: dokununca telefonun kendi takvimi açılır. */
.day-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.day-nav .icon-btn { width: 40px; height: 40px; }
.day-nav .icon-btn:disabled { opacity: 0.35; cursor: default; }
.span-pick { align-self: flex-start; }
.route-save { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.route-save .input { flex: 1; min-width: 140px; }
.timeline .tl-day { padding: 12px 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.vlog-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vlog-summary > div {
    display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.vlog-summary .num { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.vlog-summary small { color: var(--muted); font-size: 11.5px; }
/* Kutudaki sayının birimi (Display.DurationTile): küçük, sayıya yapışık; dar kutuda "9 sa 59 dk" ancak böyle sığıyor. */
.num .u { margin-left: 1px; font-size: 0.72em; font-style: normal; font-weight: 700; letter-spacing: 0; }
/* Rotayı oynatma: haritanın üstünde yüzen çubuk (telefonda alt kenarı "Hareketler" başlığı örter); "Bütün günü göster"
   onun altında. */
.vlog-map-reset { position: absolute; z-index: 500; top: 62px; left: 10px; }
.vlog-player {
    position: absolute; z-index: 500; left: 10px; right: 10px; top: 10px; padding: 4px 12px 4px 6px; border-radius: 12px;
    background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
.report-schedules { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.report-schedules summary { cursor: pointer; font-weight: 600; }
.schedule-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 6px; }
.schedule-new .input { width: auto; max-width: 100%; }
.saved-reports { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.schedule-list { list-style: none; margin: 8px 0 0; padding: 0; }
.schedule-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
/* Canlı harita araçları (sauron-map-tools.js) */
.map-picking .maplibregl-canvas-container.maplibregl-interactive { cursor: crosshair; }
.map-tool-bar {
    position: absolute; z-index: 1001; left: 50%; bottom: calc(var(--sheet, 0px) + 28px); transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 24px); padding: 8px 8px 8px 12px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg);
    font-size: 13px; cursor: default;
}
.map-tool-bar[hidden], .map-tool-bar [hidden], .maptools [hidden] { display: none; }
.map-tool-text { min-width: 0; }
.maptools .labelpick-option { white-space: nowrap; }
.map-probe { min-width: 220px; font-size: 13px; line-height: 1.45; }
.map-probe-address { font-weight: 600; padding-right: 14px; }
.map-probe-coord { color: var(--muted); font-size: 12px; }
.map-probe-head { margin: 8px 0 2px; color: var(--muted); font-size: 12px; }
.map-probe-vehicle {
    display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 5px 2px; border: 0; border-top: 1px solid var(--line);
    background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.map-probe-vehicle b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-probe-vehicle span { white-space: nowrap; }
.map-probe-links { display: flex; gap: 14px; margin-top: 8px; }
.map-probe-zone { display: flex; align-items: baseline; gap: 8px; padding: 5px 2px; border-top: 1px solid var(--line); }
.map-probe-zone b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-probe-zone span { color: var(--muted); font-size: 12px; white-space: nowrap; }
/* Veri beklenirken satırların yerini tutan iskelet (sauron-map-tools.js show): balon son boyunda açılır. */
.map-probe-row { padding: 5px 2px; border-top: 1px solid var(--line); }
.map-probe-skel {
    display: inline-block; width: var(--w, 70%); height: 0.85em; vertical-align: -0.1em; border-radius: 4px;
    background: var(--panel-2); animation: probe-skel 1.2s ease-in-out infinite;
}
@keyframes probe-skel { 50% { opacity: 0.45; } }
/* Sağ tık / uzun basma menüsü (sauron-map-tools.js openMenu): noktanın sağ altında. */
.map-context {
    position: absolute; z-index: 1001; display: flex; flex-direction: column; gap: 2px; min-width: 170px; padding: 6px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-lg);
}
.map-context[hidden] { display: none; }
.map-context .labelpick-option { white-space: nowrap; }
.map-context-coord { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--muted); font-size: 12px; }
.mute-zones { display: flex; flex-wrap: wrap; gap: 6px 16px; max-height: 220px; overflow-y: auto; margin-top: 10px; }
.mute-zones label { gap: 6px; }
.report-hours { display: flex; align-items: center; gap: 6px; }
.report-hours .input { min-width: 0; flex: 1; }
.vlog-info { display: flex; flex-direction: column; gap: 10px; }
/* Araç ekranında zaman çubuğunun arkasında hız grafiği (oynatma çizelgesiyle aynı ölçek). */
.vlog-player .progress { height: 34px; }
.speed-graph { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); pointer-events: none; overflow: visible; }
.speed-graph .sg-area { fill: color-mix(in srgb, var(--accent1) 14%, transparent); }
.speed-graph .sg-line { fill: none; stroke: color-mix(in srgb, var(--accent1) 55%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.vlog-player .route-time { min-width: 0; white-space: nowrap; }
.speed-chip { flex: none; padding: 2px 8px; font-size: 12px; }

.timeline { list-style: none; margin: 0; padding: 4px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tl { position: relative; display: grid; grid-template-columns: 46px 18px minmax(0, 1fr); align-items: start; padding: 0 12px 0 8px; }
.tl::before { content: ""; position: absolute; left: 62px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl:first-child::before { top: 18px; }
.tl:last-child::before { bottom: calc(100% - 18px); }
.tl-time { padding-top: 11px; color: var(--muted); font-size: 12px; text-align: right; padding-right: 8px; }
.tl-dot {
    position: relative; z-index: 1; justify-self: center; width: 10px; height: 10px; margin-top: 13px; border-radius: 50%;
    background: var(--panel); border: 2px solid var(--offline);
}
.tl-body {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 4px 0; padding: 7px 10px; border: 1px solid transparent;
    border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left;
}
button.tl-body { cursor: pointer; }
button.tl-body:hover { background: var(--hover); }
.tl-title { font-weight: 700; }
.tl-sub { color: var(--text-2); font-size: 13px; }
.tl-meta { color: var(--muted); font-size: 12.5px; }
.tl-gap { color: var(--muted); font-size: 12px; font-style: italic; }
.tl-harshacceleration .tl-dot, .tl-harshbraking .tl-dot, .tl-harshcornering .tl-dot { border-color: var(--idle); background: var(--idle); }
.tl-harshacceleration .tl-title, .tl-harshbraking .tl-title, .tl-harshcornering .tl-title { font-weight: 600; font-size: 13.5px; }
.tl-idle { color: var(--idle); font-size: 12.5px; font-weight: 600; }
.tl-refuel .tl-dot { border-color: var(--accent2); background: var(--accent2); }
.tl-fueldrop .tl-dot { border-color: var(--alarm); background: var(--alarm); }
.tl-refuel .tl-title, .tl-fueldrop .tl-title { font-weight: 600; font-size: 13.5px; }
.tl-fueldrop .tl-title { color: var(--err-fg); }
.tl-g { margin-left: 4px; color: var(--muted); font-weight: 500; font-size: 12.5px; }
/* Yakıt Ofisi alımı ve HGS geçişi (FuelAccountStore): alım yakıt rengi, geçiş mor. */
.tl-purchase .tl-dot { border-color: var(--accent2); background: var(--accent2); }
.tl-toll .tl-dot { border-color: var(--toll); background: var(--toll); }
.tl-purchase .tl-title, .tl-toll .tl-title { font-weight: 600; font-size: 13.5px; }
.tl-warn { color: var(--warn-fg); font-size: 12.5px; font-weight: 600; }
.tl-purchase.on .tl-body { border-color: color-mix(in srgb, var(--parked) 45%, transparent); background: color-mix(in srgb, var(--parked) 10%, transparent); }
.tl-toll.on .tl-body { border-color: color-mix(in srgb, var(--toll) 45%, transparent); background: color-mix(in srgb, var(--toll) 10%, transparent); }
/* Hız aşımı (VehicleLogPage): basınca yeri haritada işaretlenir. */
.tl-speeding .tl-dot { border-color: var(--alarm); background: var(--alarm); }
.tl-speeding .tl-title { font-weight: 600; font-size: 13.5px; color: var(--err-fg); }
.tl-link {
    display: flex; flex-direction: column; gap: 2px; margin: -7px -10px; padding: 7px 10px; border: 0; border-radius: 10px;
    background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.tl-link:hover { background: var(--hover); }
.tl-link:disabled { cursor: default; }
.tl-link:disabled:hover { background: none; }
.tl-speeding.on .tl-body { border-color: var(--err-line); background: var(--err-bg); }
/* Basılan duraklama, yakıt, sürüş olayı: yeri haritada işaretli. */
.tl-stop.on .tl-body, .tl-refuel.on .tl-body { border-color: color-mix(in srgb, var(--parked) 45%, transparent); background: color-mix(in srgb, var(--parked) 10%, transparent); }
.tl-fueldrop.on .tl-body { border-color: var(--err-line); background: var(--err-bg); }
.tl-harshacceleration.on .tl-body, .tl-harshbraking.on .tl-body, .tl-harshcornering.on .tl-body {
    border-color: color-mix(in srgb, var(--idle) 45%, transparent); background: color-mix(in srgb, var(--idle) 10%, transparent);
}
.tl-where { display: flex; align-items: center; gap: 4px; color: var(--err-fg); font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.tl-stop .tl-where, .tl-refuel .tl-where, .tl-harshacceleration .tl-where, .tl-harshbraking .tl-where, .tl-harshcornering .tl-where { color: var(--parked); }
.tl-where svg { flex: none; }
.tl-link:hover .tl-where { text-decoration: underline; }
/* Sürüş puanı */
.score-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.score-summary > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.score-summary .num { font-size: 20px; font-weight: 800; }
.score-summary small { color: var(--muted); font-size: 11.5px; }
/* Filo özeti (FleetSummary.razor): kutular, gün gün çubuklar, il kırılımı. */
.fs-head { flex-wrap: wrap; gap: 8px; }
.fs-group { width: auto; min-width: 180px; }
.fs-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.fs-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fs-card-head h2 { margin: 0; font-size: 16px; }
.table-card > .fs-card-head { padding: 10px 18px 0; }
.segmented.small button { padding: 4px 10px; font-size: 12px; }
.fs-bars, .fs-provinces { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.fs-bars li { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; }
.fs-day { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; line-height: 1.1; }
.fs-day small { font-weight: 500; color: var(--muted); font-size: 10.5px; }
.fs-track { display: flex; align-items: center; gap: 8px; min-width: 0; height: 22px; }
.fs-bar { height: 18px; min-width: 3px; border-radius: 6px; background: linear-gradient(90deg, #ea8a2a, #f4b35a); }
.fs-bar.fs-driving { background: linear-gradient(90deg, var(--moving), color-mix(in srgb, var(--moving) 60%, #fff)); }
.fs-bar.fs-idle { background: linear-gradient(90deg, var(--idle), color-mix(in srgb, var(--idle) 60%, #fff)); }
.fs-bar.fs-moving { background: linear-gradient(90deg, var(--parked), color-mix(in srgb, var(--parked) 60%, #fff)); }
.fs-val { flex: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fs-provinces li { display: grid; grid-template-columns: 120px 1fr auto 90px; align-items: center; gap: 10px; font-size: 13px; }
.fs-province { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-province-num { text-align: right; white-space: nowrap; font-size: 12.5px; }
.fs-tiles.fs-fuel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 800px) {
    .fs-tiles, .fs-tiles.fs-fuel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-provinces li { grid-template-columns: 92px 1fr auto; }
    .fs-provinces li > :last-child { display: none; }
}
.score-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.driver-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.driver-facts b { color: var(--text); }
.score-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.score-card { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.score-badge {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px;
    border-radius: 14px; background: var(--hover); color: var(--text-2);
}
.score-badge b { font-size: 20px; line-height: 1.1; }
.score-badge small { font-size: 11px; font-weight: 700; }
.score-badge.grade-A { background: color-mix(in srgb, var(--moving) 18%, transparent); color: var(--moving); }
.score-badge.grade-B { background: color-mix(in srgb, var(--accent2) 18%, transparent); color: var(--accent2); }
.score-badge.grade-C { background: color-mix(in srgb, var(--idle) 18%, transparent); color: var(--idle); }
.score-badge.grade-D, .score-badge.grade-E { background: var(--err-bg); color: var(--err-fg); }
.score-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.score-title { font-weight: 700; color: var(--text); }
.score-sub { color: var(--muted); font-size: 12.5px; }
.score-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); }
.score-facts .warn b { color: var(--err-fg); }
.score-sub .warn-text { color: var(--err-fg); }
@media (max-width: 800px) {
    .score-summary { gap: 6px; }
    .score-summary > div { padding: 7px 8px; }
    .score-summary .num { font-size: 15px; }
}

/* Araç bilgileri (VehicleData) */
.vdata { display: flex; flex-direction: column; gap: 8px; }
.vdata-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.vpill {
    display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--panel); font-size: 13px; white-space: nowrap;
}
.vpill small { color: var(--muted); font-size: 11.5px; }
.vpill.warn { border-color: color-mix(in srgb, var(--idle) 50%, var(--line)); background: color-mix(in srgb, var(--idle) 10%, var(--panel)); }
.vpill.alarm { border-color: var(--err-line); background: var(--err-bg); color: var(--err-fg); }
.vpill.ok b { color: var(--moving); }
.vpill.more { cursor: pointer; color: var(--accent2); font-weight: 600; font: inherit; font-size: 13px; }
button.vpill.tap { cursor: pointer; font: inherit; font-size: 13px; }
button.vpill.tap:hover { border-color: var(--err-fg); }
.vpill .caret { font-size: 10px; opacity: .8; }
.vfaults {
    display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--err-line); border-radius: 12px;
    background: var(--err-bg); font-size: 13px;
}
.vfault { display: flex; gap: 10px; align-items: baseline; }
.vfault b { color: var(--err-fg); flex: none; }
.vfaults .muted { font-size: 12.5px; }
.vdata-all {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin: 0; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 13.5px;
}
.vdata-all > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.vdata-all dt { color: var(--muted); }
.vdata-all dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.vlog-driving { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--text-2); font-size: 13px; }
.vlog-driving .chip-ish { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--idle) 14%, transparent); }
.tl-trip .tl-dot { width: 14px; height: 14px; margin-top: 11px; border-color: var(--moving); background: var(--moving); }
.tl-trip .tl-body { background: color-mix(in srgb, var(--moving) 7%, transparent); border-color: color-mix(in srgb, var(--moving) 22%, var(--line)); }
.tl-trip.on .tl-body { border-color: var(--moving); box-shadow: inset 3px 0 0 var(--moving); }
.tl-stop .tl-dot { border-color: var(--parked); }
.tl-ignitionon .tl-dot { border-color: var(--moving); }
.tl-ignitionoff .tl-dot { border-color: var(--offline); background: var(--offline); }
.tl-ignitionon .tl-title, .tl-ignitionoff .tl-title { font-weight: 600; color: var(--text-2); font-size: 13.5px; }
.timeline .empty { padding: 30px 16px; }

/* ── araç kartları ve sıkı alarm listesi (telefonda) ── */

.detail-actions { display: flex; gap: 8px; }
.detail-actions .btn { flex: 1; }
.vehicle-cards, .alarm-list, .bottom-nav, .sheet-handle, .manage-toggle { display: none; }
.vehicle-cards, .alarm-list { list-style: none; margin: 0; padding: 0; flex-direction: column; gap: 8px; }
.vc {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel); color: var(--text);
}
.vc:hover { text-decoration: none; border-color: var(--line-strong); }
.vc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vc-title { font-weight: 700; }
.vc-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-go { flex: none; color: var(--muted); }
.alarm-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.alarm-item > .dot { margin-top: 6px; }
.alarm-item.link { cursor: pointer; }
/* Görülmüş alarm sönük: dikkat görülmemişlere. */
.alarm-item.seen, .table tr.seen td { opacity: 0.6; }
.row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.ai-main { flex: 1; min-width: 0; }
.ai-title { font-weight: 700; }
.ai-sub { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }

/* ── telefon ── */

.app { height: 100dvh; }


@media (max-width: 800px) {
    :root { --bottom-nav-h: 60px; }
    /* Alt sekme çubuğu: hamburger ve zil yerine. */
    .hamburger { display: none; }
    /* Hesap ve çıkış çekmecede; alt çubuktaki sekmeler çekmecede tekrar etmez. */
    .topbar .user-menu, .drawer .in-bottom-nav { display: none; }
    .bottom-nav {
        display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 1050; left: 0; right: 0; bottom: 0;
        height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    }
    .bn {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .bn:hover { text-decoration: none; color: var(--text); }
    .bn.active { color: var(--accent1); }
    .bn .badge { position: absolute; top: 6px; left: calc(50% + 6px); box-shadow: 0 0 0 2px var(--panel); }
    .page { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
    .app { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); box-sizing: border-box; }

    /* Harita sayfası: harita tam ekran, liste alttan açılan panel, seçili araç kendi paneli. */
    .live { position: relative; flex-direction: column; }
    .live .map-area { flex: 1; }
    .live .sidebar {
        position: absolute; z-index: 700; left: 0; right: 0; bottom: 0; width: auto; height: auto; max-height: 44%;
        border: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
    }
    .live .sidebar.open { max-height: calc(100% - 8px); }
    .live .map-tools { display: none; }
    .live .sidebar:not(.open) .fleet-total { padding-bottom: 8px; }
    /* Harita denetimleri ve işaretleri panelin üstüne taşmasın. */
    .live .map-area { z-index: 0; }
    /* Araç seçilince kart panelin üstüne kayarak gelir; panel ardından kartın altından aşağı iner (önce inseydi sağ alttaki
       düğmeler inip yeniden kalkardı). Kart kapanınca panel hemen yerinde (kartın altında), kart kayarak gider. */
    .live .sidebar { transition: transform 0s, visibility 0s; }
    .live.has-selection .sidebar {
        transform: translateY(calc(100% + 40px)); visibility: hidden; pointer-events: none;
        transition: transform 0.2s ease-in 0.26s, visibility 0s linear 0.46s;
    }
    .live .sheet-handle {
        display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; width: 100%; padding: 8px 0 2px; border: 0;
        background: none; color: var(--muted); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .live .sheet-handle .grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); }
    .live .fleet-total { padding-top: 4px; }
    .live .stats { padding: 10px 12px 8px; gap: 5px; }
    .live .vehicle-list { min-height: 0; }
    .live .vehicle { padding: 12px 10px; }
    .live .detail {
        top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-radius: 18px 18px 0 0;
        border-left: 0; border-right: 0; border-bottom: 0; padding: 14px 14px 18px;
        animation: sheet-up 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .live .detail.ghost { animation: sheet-down 0.22s cubic-bezier(0.4, 0, 1, 1) forwards; }
    /* Harita işaretlerinin ve denetimlerinin üstünde kalsın. */
    .live .detail { z-index: 1001; }
    .live .toasts { z-index: 1002; }
    .live .metrics > div { padding: 8px; }
    /* Rota açıkken panel yalnız ad, rota özeti ve oynatıcı: harita görünsün. Sıkı dizilir, kaydırma çubuğu çıkmasın. */
    .live .detail { scrollbar-width: none; }
    .live .detail::-webkit-scrollbar { display: none; }
    .live .detail.routing { max-height: 60%; gap: 8px; padding: 12px 14px 14px; }
    .live .detail.routing .detail-name { font-size: 16px; }
    .live .detail.routing .route { gap: 8px; }
    .live .detail.routing .route-head .section-title { display: none; }
    .live .detail.routing .route-head .date { flex: 1; min-width: 0; }
    .live .detail.routing .route-stats > div { padding: 5px 8px; }
    .live .detail.routing .route-stats .num { font-size: 14px; white-space: nowrap; }
    .live .detail.routing .route-stats small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .live .detail.routing .speeds { flex-wrap: nowrap; }
    .live .detail.routing .speeds .ghost { margin-left: auto; }
    .live .detail.routing .detail-sub, .live .detail.routing .detail-actions, .live .detail.routing > .alert,
    .live .detail.routing .metrics, .live .detail.routing .rows, .live .detail.routing .legend, .live .detail.routing .vdata { display: none; }
    .live .detail.routing .route { padding-top: 0; border-top: 0; }
    .live .detail.routing .route-stats > div { padding: 6px 8px; }
    .live .toasts { top: 52px; bottom: auto; left: 10px; right: 10px; width: auto; }
    .live .toast { padding: 10px; }
    .live .toast:nth-child(n + 2) { display: none; }
    .live .map-tools { top: 10px; left: 10px; }

    /* Araçlar: liste önde, yönetim düğmenin arkasında. */
    .vehicle-cards, .alarm-list { display: flex; }
    .manage-toggle { display: inline-flex; align-self: flex-start; }
    .content.vehicles:not(.manage-open) .manage { display: none; }
    .wide-only { display: none !important; }
    /* Seyir defteri: özet tek satır, harita ekranın yarısından fazlası. */
    .vlog { gap: 10px; }
    .vlog-summary { gap: 6px; }
    .vlog-summary > div { padding: 7px 8px; border-radius: 10px; }
    .vlog-summary .num { font-size: 15px; }
    .vlog-summary small { font-size: 10.5px; }
    .vlog-title h1 { font-size: 19px; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }

/* Dokunmatik ekranda iki parmakla yakınlaşılır; düğmeler haritayı kapatmasın. */
@media (pointer: coarse) {
    .zoom-ctrl { display: none; }
}
.tl-note { list-style: none; padding: 8px 14px; }

/* Bakım */
.maintenance-form { display: grid; grid-template-columns: 1.2fr 1.4fr 0.8fr 0.8fr 1fr 1fr; gap: 10px 12px; align-items: end; }
.maintenance-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.maintenance-form .input-suffix .input { width: 100%; }
.maintenance-form .form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.maintenance-table td { vertical-align: top; }
.row-inline { display: inline-flex; gap: 6px; align-items: center; }
.vlog-maint { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 13px; }
.vlog-maint:hover { border-color: var(--accent2); }
@media (max-width: 900px) {
    .maintenance-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .maintenance-form { grid-template-columns: 1fr; }
}

/* Raporlar */
.report-form { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 10px 12px; align-items: end; }
.report-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.report-form .form-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.report-head { padding: 10px 18px 4px; }
.report-head h2 { padding: 0; margin: 0; }
.report-table td, .report-table th { font-size: 13px; }
.print-only { display: none; }
@media (max-width: 900px) { .report-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .report-form { grid-template-columns: 1fr; } }
@media print {
    @page { size: A4 landscape; margin: 10mm; }
    body { background: #fff; color: #000; }
    .table-card { overflow: visible !important; }
    .report-table { table-layout: auto; }
    .report-table th, .report-table td { white-space: normal !important; overflow-wrap: anywhere; }
    .topbar, .bottom-nav, .no-print, nav { display: none !important; }
    .print-only { display: block; }
    .report-brand { font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #555; }
    .content { padding: 0; max-width: none; }
    .card { border: 0; box-shadow: none; background: #fff; }
    .report-table { width: 100%; border-collapse: collapse; }
    .report-table th, .report-table td { color: #000; border-bottom: 1px solid #ccc; padding: 4px 6px; font-size: 10.5px; }
    .report-table tr { break-inside: avoid; }
    .report-table thead { display: table-header-group; }
}

/* ── ayarlar ── */

.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.settings-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; color: var(--text); }
.settings-item:hover { border-color: var(--line-strong); text-decoration: none; }
.settings-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 10px;
    background: color-mix(in srgb, var(--accent1) 14%, transparent); color: var(--accent1);
}
.settings-text { display: flex; flex-direction: column; gap: 3px; }
.api-section > summary { cursor: pointer; list-style: none; }
.api-section > summary::-webkit-details-marker { display: none; }
.api-section > summary h2 { display: inline; }
.api-section > summary::after { content: " ▾"; color: var(--muted); }
.api-section[open] > summary { margin-bottom: 12px; }

/* Raporlar: sekmeler dar ekranda yatay kayar. */
.reports .segmented { max-width: 100%; overflow-x: auto; }
.reports .segmented button { white-space: nowrap; }

/* ── gizlilik ve destek (oturumsuz düz metin) ── */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; }
.legal-head { padding: 8px 0 20px; }
.legal-body { line-height: 1.65; font-size: 15px; }
.legal-body h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; }
.legal-body h2 { font-size: 18px; margin: 28px 0 8px; }
.legal-body h3 { font-size: 15.5px; margin: 20px 0 4px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin: 6px 0; }
.legal-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ── üstte ince ilerleme çubuğu (js/sauron-progress.js) ── */
.nav-progress {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10000; height: 2.5px; pointer-events: none;
    background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease;
}
.nav-progress.on { opacity: 1; }
.nav-progress.done { opacity: 0; transition: transform 0.15s ease-out, opacity 0.25s ease 0.15s; }
@media (prefers-reduced-motion: reduce) { .nav-progress { transition: opacity 0.2s ease; } }
@media print { .nav-progress { display: none; } }

/* ── araç grubu çalışma saatleri (Araçlar → Araç grupları) ── */
.group-chip .group-hours {
    width: auto; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line); background: none;
    color: var(--muted); font: inherit; font-size: 12px;
}
.group-chip .group-hours.on { border-style: solid; color: var(--text); background: var(--panel); }
.group-chip .group-hours:hover { background: var(--hover); color: var(--text); }
.hours-editor { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.hours-editor h3 { margin: 0 0 4px; font-size: 15px; }
.hours-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.hours-day { display: flex; align-items: center; gap: 8px; width: 130px; }
.hours-row .input.compact { width: 110px; }

/* ── sürüş puanı etkenleri (DrivingScoreBoard) ── */
.factor { border-top: 1px solid var(--line); padding: 6px 0 2px; font-size: 13px; }
.factor:first-of-type { margin-top: 4px; }
.factor > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; list-style: none; }
.factor > summary::-webkit-details-marker { display: none; }
.factor > summary::before { content: "▸"; color: var(--muted); font-size: 11px; transition: transform 0.15s; }
.factor[open] > summary::before { transform: rotate(90deg); }
.factor-amount { color: var(--text-2); }
.factor-loss { margin-left: auto; color: var(--err-fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.factor-why { margin: 6px 0 6px 16px; color: var(--text-2); line-height: 1.5; }
.factor-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px 16px; }
.factor-days a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 12.5px; }
.factor-days a:hover { border-color: var(--accent2); }
.factor .link-btn { margin: 0 0 6px 16px; padding: 0; border: 0; background: none; color: var(--accent2); font: inherit; font-weight: 600; cursor: pointer; }
.factor-note { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--hover); color: var(--text-2); font-size: 12.5px; line-height: 1.5; }

/* ── marka sayfası (filorad.com): panelle aynı dil, daha geniş nefes ── */

.brand { min-height: 100vh; background: var(--bg); font-size: 15px; line-height: 1.6; }
.brand-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.brand h1 { width: auto; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 18px; }
.brand h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 800; margin: 0 0 8px; }
.brand h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.brand-sub { color: var(--text-2); max-width: 640px; margin: 0 0 28px; }

.brand-nav {
    position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand-nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand-links { display: flex; gap: 22px; margin-left: auto; }
.brand-links a { color: var(--text-2); font-weight: 500; }
.brand-links a:hover { color: var(--text); text-decoration: none; }

.brand-hero { padding: 72px 0 64px; overflow: hidden; }
.brand-hero-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.brand-eyebrow { color: var(--accent1); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.brand-lead { font-size: 17px; color: var(--text-2); max-width: 560px; margin: 0 0 28px; }
.brand-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.brand-cta .btn { height: 44px; padding: 0 22px; font-size: 15px; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.brand-chips li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }

/* panelden temsilî kesit */
.brand-shot { position: relative; padding: 8px 0 40px; }
.brand-shot::before {
    content: ""; position: absolute; inset: -40px -60px; z-index: 0; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent2) 22%, transparent), transparent 70%),
                radial-gradient(closest-side at 30% 70%, color-mix(in srgb, var(--accent1) 18%, transparent), transparent 70%);
}
.brand-shot-card {
    position: relative; z-index: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 6px 0;
}
.brand-shot-head { display: flex; justify-content: space-between; padding: 10px 16px 8px; font-size: 13.5px; }
.brand-shot-row {
    display: grid; grid-template-columns: auto 92px 1fr auto; gap: 12px; align-items: center;
    padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13.5px;
}
.brand-shot-plate { font-weight: 700; font-variant-numeric: tabular-nums; }
.brand-shot-state { color: var(--text-2); }
.brand-shot-toast {
    position: absolute; z-index: 2; right: -12px; bottom: 0; display: flex; gap: 12px; align-items: center;
    max-width: 300px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2);
    border: 1px solid var(--err-line); box-shadow: var(--shadow-lg); font-size: 13px;
}
.brand-shot-toast div { display: flex; flex-direction: column; }
.brand-shot-bell {
    flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--alarm); color: #fff; font-weight: 800;
}

.brand-section { padding: 72px 0; scroll-margin-top: 64px; }
.brand-alt { background: var(--panel); border-block: 1px solid var(--line); }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.brand-card p { color: var(--text-2); font-size: 14px; margin: 0; }
.brand-icon {
    width: 28px; height: 28px; margin: 0 0 12px; fill: none; stroke: var(--accent1); stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}

.brand-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; }
.brand-steps li { counter-increment: step; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.brand-steps li::before {
    content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin: 0 0 12px;
    border-radius: 50%; background: var(--grad); color: var(--on-accent); font-weight: 800;
}
.brand-steps p, .brand-mobile p { color: var(--text-2); margin: 0; }
.brand-mobile { margin-top: 16px; padding: 20px; border: 1px solid var(--info-line); border-radius: 12px; background: var(--info-bg); }

.brand-quote { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.brand-form { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.brand-form .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.brand-form textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.brand-form .form-ok, .brand-form .form-error { margin: 0; }
.brand-form .btn { align-self: flex-start; height: 44px; padding: 0 28px; font-size: 15px; }
.brand-form p { margin: 0; }
.brand-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brand-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.brand-foot { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.brand-foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-foot-links { display: flex; gap: 18px; }

@media (max-width: 980px) {
    .brand-hero-row, .brand-quote { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-shot { max-width: 520px; }
}
@media (max-width: 680px) {
    .brand-links { display: none; }
    .brand-nav-row { justify-content: space-between; }
    .brand-hero { padding: 40px 0 48px; }
    .brand-section { padding: 52px 0; }
    .brand-grid, .brand-steps, .brand-form-row { grid-template-columns: 1fr; }
    .brand-shot-toast { right: 8px; left: 8px; max-width: none; }
    .brand-shot-row { grid-template-columns: auto 84px 1fr; }
    .brand-shot-row > :last-child { display: none; }
}
@media print { .brand-nav { position: static; } }

/* konum paylaşım sayfası (/p/{bağlantı}, oturumsuz) ve panelde paylaşımlar */

.share-page { display: flex; flex-direction: column; height: 100dvh; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
.share-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
    padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--panel); border-bottom: 1px solid var(--line);
}
.share-title { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.share-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.share-map { flex: 1; min-height: 0; }
.share-foot { padding: 6px 16px; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); text-align: center; }
.share-ended {
    position: fixed; left: 50%; bottom: calc(44px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000;
    display: flex; flex-direction: column; gap: 2px; max-width: calc(100% - 32px); padding: 10px 14px; border-radius: 8px;
    background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow); text-align: center;
}
.share-ended[hidden] { display: none; }
.share-over .share-map { filter: grayscale(0.8); opacity: 0.75; }
.share-gone { max-width: 460px; margin: 18vh auto 0; padding: 0 16px; }
.share-gone h1 { font-size: 20px; margin: 0 0 8px; }
.share-locate {
    width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--text);
    background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: var(--shadow);
}
.tag.share-tag--moving { background: color-mix(in srgb, var(--moving) 18%, transparent); color: var(--moving); }
.tag.share-tag--idle { background: color-mix(in srgb, var(--idle) 18%, transparent); color: var(--idle); }
.tag.share-tag--parked { background: color-mix(in srgb, var(--parked) 18%, transparent); color: var(--parked); }
.share-link { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.share-link .input { flex: 1; min-width: 0; font-family: var(--mono, monospace); font-size: 12.5px; }
.share-form { display: grid; grid-template-columns: minmax(160px, 1.3fr) minmax(120px, 0.8fr) minmax(140px, 1fr) auto auto; gap: 8px; align-items: center; }
.share-form .check { white-space: nowrap; }
@media (max-width: 760px) {
    .share-form { grid-template-columns: 1fr 1fr; }
    .share-form .input:first-child, .share-form .share-note { grid-column: 1 / -1; }
    .share-link { flex-wrap: wrap; }
    .share-link .input { flex-basis: 100%; }
}

/* ── harita önde: canlı harita ve aracın ekranı ──
   Harita ekranın çoğunu kaplar; liste, kart ve panel ince ve sıkı. Telefonda üstteki logo çubuğu harita sayfalarında
   gizlenir (gezinme alt çubukta), harita ekranın tepesinden başlar. */

:root { --topbar-h: 52px; }

/* Canlı harita: dar liste, sıkı durum kutuları, küçük özet kart. */
.live .sidebar { width: 320px; }
.live .fleet-total { padding: 12px 12px 0; }
.live .stats { gap: 4px; padding: 10px 10px 8px; }
/* Durum kutuları küçük haplar: sayı ve ad aynı satırda, boyları yakın, ad sayıya ortalı. */
.live .stat { align-items: center; gap: 5px; padding: 4px 8px 4px 9px; border-radius: 8px; }
.live .stat-value { font-size: 14px; font-weight: 700; line-height: 20px; }
.live .stat-label { font-size: 12.5px; line-height: 20px; }
.live .search-toggle, .live .filter-toggle { width: 32px; border-radius: 8px; }
.live .search-toggle svg { width: 15px; height: 15px; }
.live .filter-box, .live .search-box { margin-left: 10px; margin-right: 10px; }
.live .vehicle-list { padding: 4px 6px 10px; }
.live .vehicle { padding: 8px 10px; gap: 10px; }

/* Sağ üstteki harita düğmeleri (altlık, etiket) kartın altında kalmasın. */
.live .detail { top: 12px; right: 58px; width: 320px; max-height: calc(100% - 24px); padding: 14px; gap: 10px; }
.detail-main { display: flex; flex-direction: column; min-width: 0; color: var(--text); }
a.detail-main:hover { text-decoration: none; }
a.detail-main:hover .detail-name { color: var(--accent2); }
.detail-main .detail-name { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-line { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--text-2); }
.detail-line.muted { color: var(--muted); font-size: 13px; }
.detail-line b { color: var(--text); }
.live .detail .alert { padding: 8px 10px; }
.live .detail .vdata-pills .vpill { padding: 3px 9px; font-size: 12.5px; }
.live .detail .vfaults { padding: 8px 10px; font-size: 12.5px; }

/* Aracın ekranı: solda panel (durum, sekmeler), geri kalanı harita. */
.vpanel {
    width: 380px; flex: none; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    background: var(--panel); border-right: 1px solid var(--line); z-index: 2;
}
.vp-pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.vp-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 6px; }
.vp-head .icon-btn { flex: none; }
.vp-title { flex: 1; min-width: 0; }
.vp-title h1 { margin: 0; font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-state { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.vp-now { display: flex; flex-direction: column; gap: 4px; padding: 0 14px 10px; }
.vp-now .state-hint { margin: 0; }
.vp-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13.5px; color: var(--text-2); }
.vp-facts b { color: var(--text); }
.vp-addr { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.vp-tabs {
    position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px 12px;
    background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.vp-tabs button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 8px;
    background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer;
}
.vp-tabs button:hover { color: var(--text); background: var(--hover); }
.vp-tabs button.on { color: var(--text); background: color-mix(in srgb, var(--accent1) 14%, transparent); }
.vp-tabs .alarm-dot { margin-left: 0; }
.vp-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 20px; }
/* İki sekmenin gövdesi de çizili, açık olmayan gizli (Bilgiler boş gelip dolmasın, Hareketler'in kaydırması kalsın). */
.vp-body[hidden] { display: none; }
/* Adres satırları tek satır, taşan üç nokta (tamamı üstüne gelince): adres gelince ya da değişince panel ve defter kaymasın. */
.vp-addr { min-height: 1.35em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline .tl-addr, .timeline a.tl-meta, .tl-where > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-body .day-nav .icon-btn, .vp-body .day-pick { height: 36px; }
.vp-body .day-nav .icon-btn { width: 36px; }
.vp-body .vlog-summary { gap: 6px; }
.vp-body .vlog-summary > div { padding: 7px 8px; border-radius: 10px; }
.vp-body .vlog-summary .num { font-size: 15px; }
.vp-body .vlog-summary small { font-size: 10.5px; }
.vp-jump {
    display: flex; align-items: center; gap: 6px; width: 100%; padding: 9px 12px; border: 1px solid var(--info-line); border-radius: 10px;
    background: var(--info-bg); color: var(--text-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.vp-jump b { color: var(--text); }
.vp-jump svg { margin-left: auto; flex: none; }
.vp-jump:hover { border-color: var(--accent2); }
.vp-section { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vp-section:last-child { border-bottom: 0; }
.vp-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Akü sağlığı: son 30 günün dinlenmiş akü voltajı, kesikli çizgi zayıf eşiği. */
.battery p { margin: 0; }
.battery-chart { width: 100%; max-width: 520px; height: auto; display: block; overflow: visible; }
.battery-chart .bc-weak { stroke: var(--warn-fg); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.7; }
.battery-chart .bc-line { fill: none; stroke: var(--accent1); stroke-width: 1.6; stroke-linejoin: round; }
.battery-chart .bc-dot { fill: var(--accent1); }
.battery-axis { display: flex; justify-content: space-between; gap: 8px; max-width: 520px; }
.vp-section .profile { margin: 0; }
/* Araç ekranı › Bilgiler › Yakıt (VehicleFuelCard): Yakıt Ofisi cihazları. */
.fuel-month { margin: 0; color: var(--text-2); }
.fuel-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.fuel-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fuel-card-head > .tag { flex: none; }
.fuel-card-head > .muted { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fuel-limit-form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.fuel-limit-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.fuel-limit-form .input { width: 150px; }
.fuel-reject { display: flex; align-items: baseline; gap: 8px; }
.fuel-reject > .tag { flex: none; }
.warn-text { color: var(--warn-fg); }
/* Firma ayarları › Yakıt Ofisi (FuelAccountCard). */
.fuel-connect { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.fuel-connect label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; }
.fuel-connect .btn { align-self: flex-start; }
.vp-more summary { cursor: pointer; color: var(--accent2); font-weight: 600; font-size: 13px; }
.vp-more[open] summary { margin-bottom: 8px; }
.vp-edit { padding: 14px; }
.vp-edit h2 { margin: 0 0 10px; font-size: 15px; }
.vp-edit .form-row.two { grid-template-columns: 1fr; }
/* Marka/model seçici (VehicleModelPicker): düzenleme, araç ekleme ve montaj ekranında. */
.vm-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.vm-picker label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.vm-picker .input { width: 100%; min-width: 0; }
.vm-field { display: flex; flex-direction: column; gap: 6px; }
.vm-field > span:first-child { font-weight: 600; }
.road-limits { display: flex; flex-direction: column; gap: 6px; }
.road-limits > span:first-child { font-weight: 600; }
.road-limits-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.road-limits-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.vp-edit .input-suffix { display: flex; }
.vp-edit .input-suffix .input { flex: 1; width: auto; min-width: 0; }
.vp-section > .btn { align-self: flex-start; }

@media (max-width: 800px) {
    /* Harita sayfalarında logo çubuğu yok: harita tepeden başlar (gezinme alttaki çubukta). */
    .app > .topbar { display: none; }
    .app { padding-top: env(safe-area-inset-top); }

    /* Canlı harita: kapalı liste paneli ve özet kart daha az yer kaplar. */
    .live .sidebar { width: auto; max-height: 38%; }
    .live .fleet-total { padding-top: 4px; }
    .live .vehicle { padding: 11px 10px; }
    .live .detail { top: auto; right: 0; width: auto; max-height: 62%; padding: 12px 14px 14px; }

    /* Aracın ekranı: üstte harita, altında kaydırılan panel (sekmeler panelin tepesine yapışır). Panel başlık, sekmeler, gün
       ve süre seçimi kadar (280 px); geri kalanı harita. Kısa ekranda (yatay telefon) harita en az %42. */
    .vpage .map-area { flex: 0 0 max(42%, 100% - 280px); min-height: 0; }
    .vpanel { width: auto; flex: 1; border-right: 0; border-top: 1px solid var(--line); }
    .vp-head { padding-top: 10px; }
}

/* Alarmın yeri (araç ekranı): haritadaki halkanın başlığı ve paneldeki şerit. */
/* Altlık uydu da olabilir: saydam zemin orada kaybolur, dolu kırmızı + beyaz yazı her altlıkta okunur. Başlık halkanın
   üstünde, ortalı (sauron-map.js mark). */
.alarm-ring { width: 25px; height: 25px; border-radius: 50%; border: 3px solid #ef4444; background: rgba(239, 68, 68, 0.25); }
.alarm-mark-tip {
    position: absolute; left: 0; bottom: 16px; transform: translateX(-50%); white-space: nowrap;
    padding: 3px 9px; border: 1.5px solid #fff; border-radius: 8px; background: #d93a3f; color: #fff;
    font: 600 12px var(--font); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
/* Defterde basılan yer (VehicleLogPage FocusEntryAsync): defterdeki noktanın rengi. */
.alarm-ring.spot--stop { border-color: var(--parked); background: color-mix(in srgb, var(--parked) 25%, transparent); }
.alarm-ring.spot--refuel { border-color: var(--accent2); background: color-mix(in srgb, var(--accent2) 25%, transparent); }
.alarm-ring.spot--toll { border-color: var(--toll); background: color-mix(in srgb, var(--toll) 25%, transparent); }
/* Rotanın yanındaki Yakıt Ofisi yerleri (sauron-map.js pois): istasyon ve HGS gişesi. */
.ov > .route-poi { position: absolute; transform: translate(-50%, -50%); }
.route-poi {
    display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; color: #fff;
    background: var(--accent2); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.route-poi.poi--toll { border-radius: 6px; background: var(--toll); }
.alarm-ring.spot--driving { border-color: var(--idle); background: color-mix(in srgb, var(--idle) 25%, transparent); }
.alarm-mark-tip.spot--stop { background: #2b88c8; }
.alarm-mark-tip.spot--refuel { background: #2b88c8; }
.alarm-mark-tip.spot--toll { background: #7a5cc8; }
.alarm-mark-tip.spot--driving { background: #c27a1f; }
.vp-alarm { padding: 8px 10px; }
.vp-alarm .alert-sub b { font-weight: 700; }

/* ── telefon: dokunulan her şey altta ──
   Başparmak ekranın altına rahat yetişir. Harita düğmeleri (altlık, etiket) telefonda sağ altta; menüleri yukarı açılır.
   Araç ekranında oynatma çubuğu ve "Bütün günü göster" haritanın altında. */
.maplibregl-ctrl-bottom-right .basemap-menu { top: auto; bottom: calc(100% + 6px); }
.maplibregl-ctrl-bottom-right .labelpick-menu { top: auto; bottom: 0; }
@media (max-width: 800px) {
    .vpage .vlog-player { top: auto; bottom: 10px; }
    .vpage .vlog-map-reset { top: auto; bottom: 62px; }
    /* Sağ alttaki düğmeler oynatma çubuğunun üstünde. */
    .vpage .maplibregl-ctrl-bottom-left, .vpage .maplibregl-ctrl-bottom-right { bottom: 56px; }
    .vpage .maplibregl-ctrl-top-right { top: 10px; }
}

/* Telefonda canlı harita: liste paneli varsayılan kapalı ve en altta (tutamak, durum kutuları, arama); harita ekranın
   çoğu. Panel parmakla istenen boya çekilir (sauron-sheet.js); tutamağa basmak da açar/kapar. */
@media (max-width: 800px) {
    .live .sidebar:not(.open) { max-height: none; }
    .live .sidebar:not(.open) .vehicle-list { display: none; }
    /* Açık panel son bırakıldığı boyda ama içeriğinden uzun değil: az araçta altta boş yer kalmaz (boy seçilmemişse içeriği
       kadar, ekranı aşmadan). Açılıp kapanırken boyu sauron-sheet.js eskisinden yenisine kaydırır. */
    .live .sidebar.open { height: auto; max-height: min(var(--live-sheet-h, 100%), calc(100% - 8px)); }
    /* Listenin dışı yalnız paneli çeker (sayfayı kaydırmaz); liste kendi içinde kayar. */
    .live .sidebar > :not(.vehicle-list) { touch-action: none; }
    .live .sidebar .vehicle-list { overscroll-behavior: contain; }
    /* Tutamak geniş bir çekme şeridi; arama ondan uzakta, durum kutularının altında: paneli çekmeye giden parmak aramaya
       değip klavyeyi açmasın. Geniş ekranda sıra değişmez (arama tepede). */
    .live .sheet-handle { padding: 8px 0 2px; }
    .live .sidebar > .search-box { order: 1; margin: 0 10px 10px; }
    .live .sidebar > .filter-panel { order: 2; }
    /* Süzgeçler telefonda süzgeç düğmesiyle açılır (liste kapalıyken de, durum kutularının altında). */
    .live .sidebar > .filter-panel { display: none; }
    .live .sidebar > .filter-panel.open { display: block; }
    .live .filter-toggle { display: flex; }
    .live .filter-panel .filter-empty { display: block; }
    .live .sidebar > .vehicle-list { order: 3; }
    .live .sidebar .stats { padding-top: 6px; }
    /* Kapalı panel tek satır: arama kutusu yerine düğme. Düğmeye basınca kutu odak alabilsin diye çizilir ama görünmez ve
       yer kaplamaz (.searching, sauron-sheet.js); odakla panel açılır, kutu yerine oturur. */
    .live .sidebar:not(.open):not(.searching) > .search-box { display: none; }
    .live .sidebar.searching:not(.open) > .search-box { position: absolute; top: 0; left: 0; right: 0; opacity: 0; pointer-events: none; }
    /* Kapanırken içerik kayma bitene dek yerinde (.sliding, sauron-sheet.js): liste bir anda kaybolup boş panel küçülmez. */
    .live .sidebar.sliding:not(.open) { overflow: hidden; }
    .live .sidebar.sliding:not(.open) > .search-box, .live .sidebar.sliding:not(.open) .vehicle-list { display: block; }
    .live .sidebar.sliding:not(.open) .search-toggle { display: none; }
    .live .sidebar:not(.open) .search-toggle { display: flex; }
    /* Tutamaktaki yazı: paneli hiç açmamışa "yukarı çekin" ve zıplayan ok; öğrenince yalnız "Araç listesi". Açıkken ok aşağı. */
    .live .sheet-hint { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 14px; }
    .live .sheet-hint svg { flex: none; transition: transform 0.2s ease; }
    .live .sidebar.open .sheet-hint svg { transform: rotate(180deg); }
    .live .sheet-hint .hint-known, :root[data-sheet-learned] .live .sheet-hint .hint-new { display: none; }
    :root[data-sheet-learned] .live .sheet-hint .hint-known { display: inline; }
    /* Açık/kapalı tarayıcıda (sauron-sheet.js "open"): yazı sınıfa göre, sunucu beklenmez. */
    .live .sheet-hint .hint-open, :root .live .sidebar.open .sheet-hint .hint-new, :root .live .sidebar.open .sheet-hint .hint-known { display: none; }
    .live .sidebar.open .sheet-hint .hint-open { display: inline; }
    :root:not([data-sheet-learned]) .live .sidebar:not(.open) .sheet-hint { color: var(--accent1); }
    :root:not([data-sheet-learned]) .live .sidebar:not(.open) .sheet-hint svg { animation: sheet-nudge 2.4s ease-in-out 0.8s infinite; }
}
/* Telefon (430 px'e dek; satırda süzgeç ve arama düğmesi de var) ve masaüstünün 320 px kenar çubuğu: kutular sıkışır ki
   adlar kısalmadan sığsın. */
@media (max-width: 429px), (min-width: 801px) {
    .live .stats { gap: 3px; padding-left: 8px; padding-right: 8px; }
    .live .stat { gap: 3px; padding: 4px 5px 4px 7px; }
    .live .stat-label { font-size: 11.5px; letter-spacing: -0.01em; }
    .live .search-toggle, .live .filter-toggle { width: 30px; }
}
/* İki kısa zıplama, sonra durak. */
@keyframes sheet-nudge {
    0%, 36%, 100% { transform: translateY(0); }
    9%, 27% { transform: translateY(-4px); }
    18% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .live .sheet-hint svg { animation: none !important; }
}
/* Canlı harita, geniş ekran: arama listenin tepesinde (Filo durumu satırı kalktı). */
@media (min-width: 801px) {
    .live .sidebar > .search-box { margin-top: 12px; margin-bottom: 0; }
}

/* Montaj iş emirleri (Pages/WorkOrdersPage, WorkOrderDetail, InstallerJob) */
.tag.info { background: var(--info-bg); color: var(--accent2); }
.stock-negative { color: var(--err-fg); }
.table-card > .stock-form { margin: 12px 18px 18px; }
.wo-waiting { margin: 6px 0 0; padding-left: 18px; }
.wo-waiting li + li { margin-top: 4px; }
.wo-step h2 { display: flex; align-items: center; gap: 10px; }
.wo-num {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
    font-size: 13px; font-weight: 800; background: var(--line); color: var(--text-2);
}
.wo-num.done { background: var(--ok-bg); color: var(--ok-fg); }
.wo-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wo-photo {
    position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted);
    text-decoration: none; cursor: pointer;
}
.wo-photo img, .wo-photo-add {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
}
.wo-photo-add { display: flex; align-items: center; justify-content: center; border-style: dashed; color: var(--accent2); font-size: 14px; }
.wo-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wo-imei { grid-template-columns: 1fr auto; }
.wo-device { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.wo-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.wo-checks li::before { content: "\25CB"; margin-right: 6px; color: var(--muted); }
.wo-checks li.ok::before { content: "\2713"; color: var(--ok-fg); font-weight: 800; }
.wide-btn { width: 100%; justify-content: center; }
@media (max-width: 640px) {
    .table-card > .stock-form { margin: 12px 0; }
    .stock-form { grid-template-columns: 1fr 1fr; }
    .stock-form .btn { grid-column: span 2; }
    .wo-photos { gap: 8px; }
    .wo-checks { grid-template-columns: 1fr; }
}

/* Araçlar: Yakıt Ofisi plakalarını araç olarak ekleme bandı */
.fuel-import { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 0; }
.fuel-import p { margin: 0; flex: 1 1 260px; }

/* Araç ekranı › Yakıt: alımdan tüketim ve aylık eğilim */
.fuel-consumption { display: grid; gap: 4px; margin: 2px 0 8px; }
.fuel-consumption .tag { margin-left: 4px; }
.fuel-trend { display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; }
.fuel-trend-month { display: grid; justify-items: center; gap: 2px; font-size: 11px; min-width: 34px; }
.fuel-trend-month i { display: block; width: 18px; border-radius: 3px 3px 0 0; background: var(--link); opacity: .6; }

/* Giriş: Yakıt Ofisi ile giriş (bu tarayıcı daha önce Yakıt Ofisi'nden girdiyse) */
a.auth-btn.yo-login { margin-top: 12px; background: transparent; color: inherit; border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: none; }
a.auth-btn.yo-login:hover { background: rgba(255, 255, 255, 0.08); }

/* ── yapay zekâ uygulaması izni (OAuthConsent) ── */
.consent-title { margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.35; text-align: center; color: #eaf2f8; }
.consent-title b { color: #fff; font-weight: 800; }
.consent-warn {
    margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(233, 196, 106, 0.12); border: 1px solid rgba(233, 196, 106, 0.4);
    color: #f1d897; font-size: 13px; line-height: 1.4;
}
.consent-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: 13px; }
.consent-facts dt { color: #6f8499; }
.consent-facts dd { margin: 0; color: #eaf2f8; overflow-wrap: anywhere; }
.consent-host { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.consent-lead { margin: 0 0 6px; color: #b6c7d4; font-size: 13.5px; }
.consent-lead b { color: #fff; }
.consent-list { margin: 0 0 10px; padding-left: 20px; color: #b6c7d4; font-size: 13px; line-height: 1.55; }
.consent-note { margin: 0 0 16px; color: #8aa0b3; font-size: 12.5px; line-height: 1.5; }
.auth-btn.consent-deny { margin-top: 0; background: transparent; color: inherit; border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: none; }
.auth-btn.consent-deny:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }
.mcp-url code {
    display: block; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--text);
    font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all;
}
