:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --ink: #15192b;
  --muted: #5d6475;
  --line: #e2e5eb;
  --brand: #1f3a8a;
  --brand-ink: #ffffff;
  --accent: #f5b301;
  --ok: #157347;
  --ok-bg: #e7f5ee;
  --err: #b42318;
  --err-bg: #fdecea;
  --warn-bg: #fff7e0;
  --radius: 14px;
  --input: #ffffff;
  --brand-soft: #e8edfb;
  --warn-line: #f1d58a;
  --unread: #fffbea;
  color-scheme: light dark;
}
/* Koyu tema: telefon ayarına göre (Otomatik) ya da Ayarlar → Görünüm'den seçilerek */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --card: #181b22;
    --ink: #e9ecf2;
    --muted: #9aa3b2;
    --line: #2a2f3a;
    --brand: #3d5fd6;
    --ok: #4cc38a;
    --ok-bg: #12301f;
    --err: #ff8a80;
    --err-bg: #3a1714;
    --warn-bg: #2e2610;
    --warn-line: #5c4b14;
    --input: #11141a;
    --brand-soft: #1d2540;
    --unread: #1d2233;
    --topbar: #151923;
  }
  :where(:root:not([data-theme="light"])) a { color: #8fa8ff; }
}
:root[data-theme="dark"] {
    --bg: #0f1115;
    --card: #181b22;
    --ink: #e9ecf2;
    --muted: #9aa3b2;
    --line: #2a2f3a;
    --brand: #3d5fd6;
    --ok: #4cc38a;
    --ok-bg: #12301f;
    --err: #ff8a80;
    --err-bg: #3a1714;
    --warn-bg: #2e2610;
    --warn-line: #5c4b14;
    --input: #11141a;
    --brand-soft: #1d2540;
    --unread: #1d2233;
    --topbar: #151923;
    color-scheme: dark;
}
:where(:root[data-theme="dark"]) a { color: #8fa8ff; }
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px;
}
a { color: var(--brand); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--topbar, var(--brand)); color: var(--brand-ink);
}
.brand { color: var(--brand-ink); font-weight: 800; text-decoration: none; letter-spacing: .02em; font-size: 1.1rem; }
.brand::before { content: ""; display: inline-block; width: 1.5em; height: 1.5em; margin-right: .45em; vertical-align: -.38em; border-radius: .34em; background: url(/icons/logo-128.png?v=3) center / contain no-repeat; box-shadow: 0 0 0 1.5px rgba(255,255,255,.55); }
.brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 8px; align-items: center; }
.topbar nav a, .topbar nav button {
  color: var(--brand-ink); background: transparent; border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px; padding: 6px 12px; font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer;
}
.topbar .who { font-size: .85rem; opacity: .85; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.wrap.narrow { max-width: 460px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px;
}
.center { text-align: center; }

label { display: block; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input[type=email], input[type=password], input[type=text], textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--input); color: var(--ink);
}
input:focus { outline: 3px solid rgba(31,58,138,.25); border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; min-height: 48px; font: inherit; font-weight: 700; font-size: 1rem;
  border-radius: 10px; border: 1.5px solid var(--brand); background: var(--brand); color: #fff;
  cursor: pointer; text-decoration: none;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--err); border-color: var(--line); }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: .9rem; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 14px; font-size: .95rem; }
.hidden, [hidden] { display: none !important; }

/* Türk plakası görünümü */
.plate {
  display: inline-flex; align-items: stretch; border: 2px solid #111; border-radius: 6px;
  background: #fff; color: #111; font-family: "Arial Narrow", Arial, sans-serif; font-weight: 800;
  font-size: 1.6rem; letter-spacing: .06em; overflow: hidden; margin-bottom: 14px;
}
.plate::before {
  content: "TR"; display: flex; align-items: flex-end; justify-content: center;
  background: #1f4fbf; color: #fff; font-size: .7rem; padding: 4px 6px; letter-spacing: 0;
}
.plate span, .plate { padding-right: 12px; }
.plate::before { margin-right: 10px; }

/* Ana sayfa */
.hero { padding: 40px 0 16px; }
.hero h1 { font-size: 2.1rem; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #111; margin-bottom: 8px; }

/* Panel */
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.add-form { display: flex; gap: 10px; flex-wrap: wrap; }
.add-form input { flex: 1 1 200px; text-transform: uppercase; }
.vehicles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.vehicle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.vehicle.off canvas.qr { opacity: .3; }
.vehicle .qr { background: #fff; width: 100%; max-width: 220px; align-self: center; aspect-ratio: 1; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
.vehicle .row { display: flex; gap: 8px; flex-wrap: wrap; }
.vehicle .row .btn { flex: 1 1 auto; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge.on { background: var(--ok-bg); color: var(--ok); }
.badge.off { background: #eceef2; color: var(--muted); }
.vehicle .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vehicle .top .plate { margin: 0; font-size: 1.25rem; }
.link { font-size: .8rem; color: var(--muted); word-break: break-all; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }

/* Baskı sayfası */
.print-sheet { background: #fff; color: #111; max-width: 210mm; margin: 0 auto; padding: 16mm; text-align: center; }
/* Etiket: 6 cm x 9 cm. Kesik çizgi kesim yeridir. Renkler .t-* sınıflarıyla seçilir. */
.label { display: inline-flex; flex-direction: column; align-items: center; box-sizing: border-box;
  width: 60mm; height: 90mm; outline: 0.3mm dashed #888; outline-offset: 0; padding: 3.5mm 3.5mm 3mm;
  background: var(--lb-bg); color: var(--lb-ink); overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.label-kicker { font-weight: 800; font-size: 14pt; line-height: 1; letter-spacing: -.01em; }
.label-brand { font-weight: 900; font-size: 31pt; line-height: .95; letter-spacing: -.03em; margin: .4mm 0 2mm; }
.label-brand span { color: var(--lb-accent); }
.label .qrbox { background: #fff; border-radius: 2.5mm; padding: 1.2mm; flex: none; }
.label .qrbox svg { width: 39mm; height: 39mm; display: block; }
.label .cta2 { font-weight: 800; font-size: 10.5pt; line-height: 1.12; margin-top: 2mm; }
.label .foot { margin-top: auto; width: 100%; border-radius: 1.8mm; padding: 1.4mm 1mm; box-sizing: border-box;
  background: var(--lb-foot); color: var(--lb-foot-ink); }
.label .foot .lb-plate { font-weight: 900; font-size: 14pt; letter-spacing: .06em; line-height: 1.05; white-space: nowrap; }
.label .foot .meta { font-size: 7pt; font-weight: 600; margin-top: .3mm; }
.label .foot .lb-url { font-size: 8.5pt; font-weight: 700; letter-spacing: .01em; margin-top: .3mm; }
.label .foot .lb-url:empty { display: none; }
.t-lacivert { --lb-bg: #1f3a8a; --lb-ink: #fff; --lb-accent: #f5b800; --lb-foot: #f5b800; --lb-foot-ink: #111a3a; }
.t-sarikirmizi { --lb-bg: #a90432; --lb-ink: #fff; --lb-accent: #fdb912; --lb-foot: #fdb912; --lb-foot-ink: #5a0019; }
.t-siyah { --lb-bg: #121214; --lb-ink: #fff; --lb-accent: #bdbdbd; --lb-foot: #fff; --lb-foot-ink: #121214; }
.t-bordomavi { --lb-bg: #6d1a36; --lb-ink: #fff; --lb-accent: #6cc4ee; --lb-foot: #6cc4ee; --lb-foot-ink: #3a0b1c; }
.t-beyaz { --lb-bg: #fff; --lb-ink: #111; --lb-accent: #e0a400; --lb-foot: #f1f1f4; --lb-foot-ink: #111; }
.t-beyaz .qrbox { padding: 0; }
.theme-pick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 14px; }
.theme-pick button { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 6px 14px 6px 8px; font: inherit; font-weight: 600; cursor: pointer; }
.theme-pick button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.theme-pick .sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #0003; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.label-size { font-size: 9pt; color: #666; margin-top: 3mm; }
@page { size: A4; margin: 12mm; }
.print-tools { text-align: center; margin: 16px auto; max-width: 210mm; }
@media print {
  body { background: #fff; }
  .topbar, .print-tools { display: none; }
  .print-sheet { padding: 0; }
}

textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
select { width: auto; padding: 10px 12px; }

/* QR mesaj sayfası */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.sender h1 { font-size: 1.45rem; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.choice {
  display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer;
  padding: 13px 14px; margin: 0 0 8px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--input); min-height: 52px;
}
.choice input { width: 22px; height: 22px; flex: none; accent-color: var(--brand); margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:focus-within { outline: 3px solid rgba(61,95,214,.35); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-icon { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-bg); color: var(--ok); font-size: 2rem; font-weight: 800; }

/* Panel: özet ve gelen kutusu */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.hot b { color: var(--brand); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0 12px; }
.section-head h2 { margin: 0; font-size: 1.3rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tab { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.tab[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.inbox { display: flex; flex-direction: column; gap: 10px; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.msg.unread { background: var(--unread); border-left: 4px solid var(--brand); }
.msg .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.msg .meta .plate { font-size: .85rem; margin: 0; border-width: 1.5px; }
.msg .meta .plate::before { font-size: .55rem; padding: 2px 4px; margin-right: 6px; }
.msg .text { font-size: 1.05rem; margin: 0 0 10px; white-space: pre-wrap; word-break: break-word; }
.msg.unread .text { font-weight: 600; }
.msg .row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge.kind { background: var(--brand-soft); color: var(--ink); }
.badge.new { background: var(--brand); color: #fff; }

/* Gönderen: mesaj durumu */
.status { list-style: none; padding: 0; margin: 0 0 12px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.status li { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: .95rem; }
.status li.done { background: var(--ok-bg); color: var(--ok); border-color: transparent; font-weight: 600; }
.status li.wait { color: var(--muted); }
.status li.wait::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--muted); margin-right: 8px; animation: pulse 1.4s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .status li.wait::before { animation: none; } }

/* Bildirim ayarları */
.notif h3 { font-size: 1rem; margin: 0 0 8px; }
.notif-block { padding: 14px 0; border-top: 1px solid var(--line); }
.notif-block:first-of-type { border-top: 0; padding-top: 4px; }
.notif .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.device-state { margin: 0 0 6px; font-weight: 600; }
.device-state.ok { color: var(--ok); }
.device-state.warn { color: var(--ink); }
.device-state.err { color: var(--err); }
.ios-steps { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; margin: 8px 0; font-size: .95rem; }
.ios-steps ol { margin: 6px 0 0; padding-left: 20px; }
.ios-steps li { margin-bottom: 4px; }
#test-result { white-space: pre-line; margin-top: 8px; color: var(--muted); }
.devices { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; }
.quiet-times { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }
.quiet-times label { font-weight: 500; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; margin: 0; }
input[type=time] { padding: 9px 10px; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: var(--input); color: var(--ink); }
.warn-off { margin: 12px 0 0; }
.badge.urgent { background: #c62828; color: #fff; }
.msg.focus { outline: 3px solid var(--brand); outline-offset: 2px; }
.status li.info { color: var(--muted); }

.tagline { font-weight: 700; color: var(--muted); margin: 0 0 10px; font-size: 1.05rem; }
.tagline strong { color: var(--brand); }

.btn.saved, .btn.saved:disabled { opacity: 1; cursor: default; background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.quiet-status { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }
.quiet-status.ok { color: var(--ok); font-weight: 600; }
.quiet-status.err { color: var(--err); font-weight: 600; }

/* ===== Panel: uygulama düzeni (alt menü) ===== */
body.app { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.app .topbar { position: sticky; top: 0; z-index: 5; }
.topbar-title { font-weight: 700; font-size: 1rem; opacity: .9; }
.app-main { padding-top: 14px; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px; text-decoration: none; color: var(--muted); font-size: .8rem; font-weight: 600;
}
.bottom-nav a .ico { font-size: 1.35rem; line-height: 1.2; filter: grayscale(1); opacity: .7; }
.bottom-nav a[aria-current="page"] { color: var(--brand); }
.bottom-nav a[aria-current="page"] .ico { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bottom-nav a[aria-current="page"] { color: #8fa8ff; } }
:root[data-theme="dark"] .bottom-nav a[aria-current="page"] { color: #8fa8ff; }
.nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #c62828; color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.nav-dot { position: absolute; top: 8px; left: calc(50% + 10px); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.summary { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin: 2px 0 12px; }
.summary b { color: var(--ink); font-size: 1.05rem; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: 6px 4px; margin-left: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link-btn { color: #8fa8ff; } }
:root[data-theme="dark"] .link-btn { color: #8fa8ff; }

.setup h2 { margin-bottom: 4px; }
.setup-steps { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.setup-steps li { display: flex; align-items: center; gap: 10px; }
.setup-steps .txt { flex: 1; font-weight: 600; }
.setup-steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: .8rem; }
.setup-steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.setup-steps li.done .dot::after { content: "✓"; }
.setup-steps li.done .txt { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.setup-steps li.done .btn { display: none; }
#add-toggle { margin-top: 4px; }
.app .notif h2 { font-size: 1.15rem; }

.sendlog { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.sendlog li { border-left: 3px solid var(--line); padding-left: 10px; }
.sendlog-state { font-weight: 600; font-size: .92rem; }
.sendlog-state.ok { color: var(--ok); }
.sendlog-state.warn { color: #b7791f; }
.sendlog-state.err { color: var(--err); }
.msg .meta .delivered { font-size: .8rem; color: var(--ok); }

details.help { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
details.help summary { cursor: pointer; font-weight: 700; color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) details.help summary { color: #8fa8ff; } }
:root[data-theme="dark"] details.help summary { color: #8fa8ff; }
details.help ol { padding-left: 20px; margin: 6px 0; }
details.help li { margin-bottom: 6px; }

/* Araç kartı bölümleri */
.vsec { border-top: 1px solid var(--line); padding-top: 10px; }
.vsec > summary { cursor: pointer; font-weight: 700; list-style: none; padding: 4px 0; }
.vsec > summary::-webkit-details-marker { display: none; }
.vsec > summary::after { content: " ▾"; color: var(--muted); }
.vsec[open] > summary::after { content: " ▴"; }
.vsec > *:not(summary) { margin-top: 10px; }
.vsec input[type=text] { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: var(--input); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
.note-now { font-weight: 600; color: var(--ok); margin: 6px 0 0; }
.blocklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.blocklist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; }
.invite-out { display: flex; flex-direction: column; gap: 8px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.danger-zone > summary { color: var(--err); }
.claim { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); }
.admin-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); border-color: var(--brand); }

/* Gelen mesaj: Diğer menüsü */
details.more { position: relative; }
details.more > summary { list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
.more-box { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; min-width: 240px; }

/* QR sayfası: araç sahibinin notu */
.owner-note { background: var(--brand-soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-weight: 700; font-size: 1.05rem; }
.owner-note-label { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: none; margin-bottom: 2px; }

/* Yönetim */
.admin-stats { margin-bottom: 16px; }
.admin-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.admin-list li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-list li.open { border-left: 4px solid var(--accent); }
.admin-list li.closed { opacity: .6; }
.admin-list .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.quote { margin: 4px 0; padding: 8px 10px; border-left: 3px solid var(--line); background: var(--input); border-radius: 6px; white-space: pre-wrap; word-break: break-word; }
.pw-result { border: 2px solid var(--ok); border-radius: 12px; padding: 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pw-code { font-size: 2rem; font-weight: 800; letter-spacing: .25em; font-family: ui-monospace, monospace; }
body.admin .add-form input { flex: 1 1 200px; text-transform: none; }

/* Hesap silme: araç başına seçim */
.del-choice { border: 1px solid var(--line, #ccd); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.del-choice legend { font-weight: 600; padding: 0 4px; }
.del-choice label { display: block; margin: 6px 0; font-size: .95em; }

/* Ayarlar: açılır bölümler */
details.acc { padding: 0; overflow: hidden; }
details.acc > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details.acc[open] > summary::after { transform: rotate(180deg); }
details.acc[open] > summary { border-bottom: 1px solid var(--line); }
.acc-body { padding: 14px 16px 16px; }
.acc-ico { font-size: 1.35rem; width: 1.8rem; text-align: center; flex: none; }
.acc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.acc-go { margin-left: auto; font-size: 1.5rem; color: var(--brand); }
a.admin-link { flex-direction: row; border-color: var(--brand); }
.admin-locked { opacity: .7; }
.acc-body > .alert + .notif-block, .acc-body > .notif-block:first-child { border-top: 0; padding-top: 0; }

/* Gelenler: bu cihazda bildirim kapalı uyarısı */
.device-banner { display: flex; align-items: center; gap: 12px; border-color: var(--warn-line); background: var(--warn-bg); }
.device-banner .db-ico { font-size: 1.5rem; flex: none; }
.device-banner .db-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.device-banner .db-act { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.device-banner .db-act .link-btn { margin: 0; font-size: .8rem; color: var(--muted); }

/* Yönetim: sekmeler, özet kartları, kullanıcı satırları */
.adm-tabs { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 10px; margin-bottom: 6px; background: var(--bg); scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 10px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.adm-tabs button[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-badge { background: var(--accent); color: #111; border-radius: 999px; font-size: .7rem; min-width: 1.3em; padding: 1px 5px; text-align: center; }
.adm-todo { font-weight: 700; margin: 4px 0 12px; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.adm-card { text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 12px; font: inherit; display: flex; flex-direction: column; gap: 2px; }
button.adm-card { cursor: pointer; }
.adm-card b { font-size: 1.6rem; line-height: 1.1; }
.adm-card span { font-size: .85rem; color: var(--muted); }
.adm-card.warn { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.ulist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 8px 0 12px; }
details.urow { border-top: 1px solid var(--line); }
details.urow:first-child { border-top: 0; }
details.urow > summary { list-style: none; cursor: pointer; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
details.urow > summary::-webkit-details-marker { display: none; }
details.urow[open] > summary { background: var(--brand-soft); }
details.urow .u-email { font-weight: 600; word-break: break-all; }
details.urow .u-body { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
details.urow .u-body .row { display: flex; gap: 8px; flex-wrap: wrap; }
details.urow .u-danger { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
details.urow.off .u-email { opacity: .6; }

/* Ayarlar → Görünüm */
.seg { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg label { flex: 1; margin: 0; text-align: center; padding: 10px 6px; cursor: pointer; font-weight: 600; font-size: .9rem; border-left: 1px solid var(--line); }
.seg label:first-child { border-left: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--brand); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Araç kartı: QR kapalı uyarısı ve araç işlemleri */
.qr-off { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 8px 0; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); }
.qr-off > div { display: flex; flex-direction: column; gap: 2px; }
.op-danger { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px; }
.op-danger p { margin: 0 0 8px; }
