/* Online-Arbitrage-Deals – Deal-Portal
   Freundliches Design: Blau #1877b0, gelbe Hauptknöpfe mit weißer Schrift, helles Grau, runde Schrift.
   Schriften liegen lokal im Ordner fonts/ (kein Google-Server, DSGVO). */
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg: #f3f5f8;
  --paper: #ffffff;
  --ink: #1d2b3a;
  --muted: #66768a;
  --line: #e2e8ef;
  --teal: #1877b0;          /* Hauptfarbe Blau (Name aus älterer Version beibehalten) */
  --teal-deep: #11598a;
  --teal-wash: #e8f2fa;
  --on-teal: #ffffff;
  --yellow: #e8a800;
  --yellow-deep: #c98f00;
  --on-yellow: #ffffff;
  --green: #138a5a;
  --green-wash: #e2f5ec;
  --amber: #8a6200;
  --amber-wash: #fff4d4;
  --red: #c0392b;
  --red-wash: #fde9e6;
  --demo: #6b4fa3;
  --demo-wash: #efe9fa;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 50, 74, .05), 0 8px 24px rgba(20, 50, 74, .07);
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", "Nunito", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
/* Dunkelmodus: automatisch nach Gerät, oder fest gewählt über data-theme (Einstellungen / Knopf oben) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1722; --paper: #18222f; --ink: #e8eef5; --muted: #9fb0c3; --line: #2a3747;
    --teal: #4aa8e6; --teal-deep: #8ccaf3; --teal-wash: #16324a; --on-teal: #06192a;
    --yellow: #e8a800; --yellow-deep: #f2b51c; --on-yellow: #ffffff;
    --green: #5fd3a0; --green-wash: #123528;
    --amber: #f0c254; --amber-wash: #3a2f12; --red: #f08a7e; --red-wash: #3d1f1c;
    --demo: #b9a2ec; --demo-wash: #2a2240;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
    --bg: #0f1722; --paper: #18222f; --ink: #e8eef5; --muted: #9fb0c3; --line: #2a3747;
    --teal: #4aa8e6; --teal-deep: #8ccaf3; --teal-wash: #16324a; --on-teal: #06192a;
    --yellow: #e8a800; --yellow-deep: #f2b51c; --on-yellow: #ffffff;
    --green: #5fd3a0; --green-wash: #123528;
    --amber: #f0c254; --amber-wash: #3a2f12; --red: #f08a7e; --red-wash: #3d1f1c;
    --demo: #b9a2ec; --demo-wash: #2a2240;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.5; font-variant-numeric: tabular-nums;
}
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Kopfzeile ───────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 980px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button {
  background: none; border: 0; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted);
  text-decoration: none; cursor: pointer; font-size: 15px;
}
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.nav a:hover, .nav button:hover { color: var(--ink); }

.demo-banner { background: var(--demo-wash); color: var(--demo); text-align: center; font-size: 14px; padding: 6px 16px; font-weight: 600; }

main { max-width: 980px; margin: 0 auto; padding: 28px 20px 80px; }
main.narrow { max-width: 760px; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ── Schaltflächen & Formulare ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  font-weight: 600; text-decoration: none; font-size: 16px; line-height: 1.2;
}
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-secondary { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--teal); }
.btn-quiet { background: none; color: var(--teal); padding-left: 8px; padding-right: 8px; }
.btn-danger { background: none; color: var(--red); border-color: var(--line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url],
input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-wash); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.panel { background: var(--paper); border-radius: var(--radius-lg); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.auth { max-width: 420px; margin: 8vh auto 0; }
.auth .brand { display: block; font-size: 22px; margin-bottom: 24px; text-align: center; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 15px; }
.alert-error { background: var(--red-wash); color: var(--red); }
.alert-ok { background: var(--teal-wash); color: var(--teal-deep); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: var(--radius); font-weight: 600; z-index: 50; max-width: calc(100% - 40px);
}

/* ── Kalender ────────────────────────────── */
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-head h1 { margin: 0 auto 0 0; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper);
  display: inline-grid; place-items: center; cursor: pointer; font-size: 20px; color: var(--ink);
}
.icon-btn:hover { border-color: var(--teal); }
.sheet-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.sheet-switch button {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 15px;
}
.sheet-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.cal-day {
  position: relative; min-height: 96px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid transparent; padding: 10px; text-align: left; display: flex; flex-direction: column;
  justify-content: space-between; color: var(--muted); font-size: 15px;
}
.cal-day.outside { background: transparent; }
.cal-day.today { border-color: var(--ink); color: var(--ink); }
/* Das eine auffällige Element: Tage mit Deals sind gefüllte Petrol-Kacheln mit großer Zahl */
button.cal-day { cursor: pointer; font: inherit; }
.cal-day.has-deals { background: var(--teal); color: var(--on-teal); }
.cal-day.has-deals:hover { background: var(--teal-deep); }
.cal-day.has-deals.today { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.cal-count { display: flex; align-items: baseline; gap: 5px; line-height: 1; }
.cal-count strong { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.cal-count span { font-size: 14px; font-weight: 600; }
.cal-sched { font-size: 12px; opacity: .85; }
.cal-legend { margin-top: 16px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  main { padding: 20px 12px 64px; }
  h1 { font-size: 24px; }
  .calendar { gap: 4px; }
  .cal-day { min-height: 70px; padding: 6px; font-size: 13px; border-radius: var(--radius-sm); }
  .cal-count { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cal-count strong { font-size: 22px; }
  .cal-count span { font-size: 11px; }
  .cal-sched { display: none; }
  .topbar-inner { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
}

/* ── Tagesansicht ────────────────────────── */
.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px 10px 14px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  font-weight: 600; text-decoration: none; margin-bottom: 20px; font-size: 16px;
}
.back:hover { border-color: var(--teal); }
.day-title { margin-bottom: 4px; }
.day-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; }

.deal { background: var(--paper); border-radius: var(--radius-lg); padding: 22px; margin-top: 16px; }
.deal.is-expired { opacity: .72; }
.deal-top { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.deal-img { width: 88px; height: 88px; border-radius: var(--radius); object-fit: contain; background: #fff; border: 1px solid var(--line); }
.deal-title { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; letter-spacing: -0.01em; }
.deal-meta { font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.badge-available { background: var(--teal-wash); color: var(--teal-deep); }
.badge-limited { background: var(--amber-wash); color: var(--amber); }
.badge-sold_out, .badge-expired { background: var(--red-wash); color: var(--red); }
.badge-demo { background: var(--demo-wash); color: var(--demo); }
.badge-scheduled { background: var(--bg); color: var(--muted); }

.deal-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deal-price .label { color: var(--muted); font-size: 15px; }
.deal-price .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-all; }
.source-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

details.calc { border-radius: var(--radius); background: var(--bg); padding: 0 14px; margin: 12px 0; }
details.calc summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
details.calc summary::-webkit-details-marker { display: none; }
details.calc summary::after { content: "anzeigen"; font-weight: 400; color: var(--teal); font-size: 14px; }
details.calc[open] summary::after { content: "ausblenden"; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 12px; }
.calc-table td { padding: 5px 0; }
.calc-table td:last-child { text-align: right; white-space: nowrap; }
.calc-table tr.total td { border-top: 1px solid var(--line); font-weight: 700; padding-top: 8px; }
.calc-note { font-size: 13px; color: var(--muted); padding-bottom: 12px; margin: 0; }
.notes { background: var(--amber-wash); color: var(--ink); border-radius: var(--radius); padding: 10px 14px; font-size: 15px; margin: 12px 0; white-space: pre-line; }

.group { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.group-summary { margin: 0 0 4px; font-size: 15px; }
.group-hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.purchase-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.purchase-form .field { margin: 0; flex: 1 1 140px; max-width: 200px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--paper); border-radius: var(--radius-lg); margin-top: 16px; }

/* ── Buchung ─────────────────────────────── */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }
.offer { background: var(--paper); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.offer h2 { margin: 0; }
.offer .price { font-size: 24px; font-weight: 700; }
.offer .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.seats { display: flex; gap: 4px; }
.seats i { flex: 1; height: 8px; border-radius: 4px; background: var(--teal); }
.seats i.free { background: var(--line); }
.offer form, .offer > .btn:last-child { margin-top: auto; }

/* ── Verwaltung ──────────────────────────── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--teal); font-weight: 600; }
.row { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 10px; }
.row-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-title { font-weight: 600; }
.sub-list { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; }
.sub-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.inline-form .field { margin: 0; flex: 1 1 160px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.log { font-size: 14px; width: 100%; border-collapse: collapse; }
.log th, .log td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius); padding: 8px 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }

@media (prefers-reduced-motion: no-preference) {
  .deal { animation: rise .25s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
}

/* Hilfsklassen (keine Inline-Styles wegen Content-Security-Policy) */
.deal-top.no-img { grid-template-columns: 1fr; }
.u-end { align-content: end; }
.u-span2 { grid-column: span 2; }
@media (max-width: 640px) { .u-span2 { grid-column: auto; } }
.u-m0 { margin: 0; }
.u-seats { margin: 12px 0 16px; }
.u-mb0 { margin-bottom: 0; }
.u-mb16 { margin-bottom: 16px; }
.u-mt0 { margin-top: 0; }
.u-mt16 { margin-top: 16px; }

/* Sicherheit & Bilder */
.label-like { font-weight: 600; font-size: 15px; }
.img-row { display: flex; align-items: center; gap: 12px; }
.qr { display: block; width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: var(--radius); margin: 8px 0 12px; }
.codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; line-height: 1.8; background: var(--bg); padding: 12px 16px; border-radius: var(--radius); columns: 2; margin: 0 0 16px; }
.u-ml8 { margin-left: 8px; }
label.btn { cursor: pointer; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.auth .brand.brand-auth { display: flex; justify-content: center; margin-bottom: 24px; }

/* Ansicht umschalten: Kalender / Monatsübersicht */
.view-switch { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.view-switch button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: var(--teal); color: var(--on-teal); }

/* Monatsübersicht */
.ov-sort { width: auto; min-height: 40px; padding: 6px 10px; }
.ov-table td { vertical-align: middle; }
.ov-nowrap { white-space: nowrap; }
.ov-title { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.ov-title > a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ov-title > a:hover { color: var(--teal); text-decoration: underline; }
.ov-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ov-meta:empty { display: none; }
.ov-links { display: flex; gap: 6px; }
.ov-links a { font-size: 13px; font-weight: 700; text-decoration: none; padding: 5px 10px; border-radius: 8px; background: var(--teal-wash); color: var(--teal-deep); white-space: nowrap; }
.ov-links a:hover { background: var(--teal); color: var(--on-teal); }
.ov-pos { font-weight: 700; color: var(--teal-deep); }
.ov-neg { font-weight: 700; color: var(--red); }
.ov-pos small, .ov-neg small { font-weight: 600; opacity: .8; }
.ov-expired { opacity: .6; }
.ov-cards { display: none; }
@media (max-width: 760px) {
  .ov-table { display: none; }
  .ov-cards { display: flex; flex-direction: column; gap: 10px; }
  .ov-card { background: var(--paper); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .ov-card-top { display: flex; justify-content: space-between; align-items: center; }
  .ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 15px; }
  .ov-grid > span { display: flex; flex-direction: column; }
  .ov-grid small { font-size: 12px; color: var(--muted); }
  .ov-title { min-width: 0; }
}

/* Monatsübersicht – Erweiterungen */
.ov-summary { background: var(--paper); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; border-left: 5px solid var(--teal); }
.ov-summary-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ov-summary-label { font-weight: 700; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ov-summary-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--teal-deep); }
.ov-summary-value small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ov-summary-empty { font-size: 20px; color: var(--muted); }
.ov-summary-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--muted); }
.ov-summary-facts strong { color: var(--ink); }
.ov-summary-note { margin: 0; font-size: 13px; color: var(--muted); }
.ov-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; }
.ov-search { flex: 1 1 260px; min-height: 44px; }
.ov-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ov-chip input { width: 16px; height: 16px; accent-color: var(--teal); margin: 0; }
.ov-chip:has(input:checked) { background: var(--teal-wash); border-color: var(--teal); color: var(--teal-deep); }
.ov-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ov-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.ov-group { font-size: 14px; }
.ov-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.ov-copy:hover { color: var(--teal); }
.ov-copy svg { opacity: .55; }
.badge-top { background: #e8f1fb; color: #155f8d; }
.ov-toprow td:first-child { box-shadow: inset 4px 0 0 #1877b0; }
.ov-card.ov-toprow { border-left: 4px solid #1877b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-top { background: #16324a; color: #9ccdf2; } }
:root[data-theme="dark"] .badge-top { background: #16324a; color: #9ccdf2; }
@media (max-width: 760px) {
  .ov-summary-value { font-size: 24px; }
  .ov-actions { width: 100%; }
  .ov-actions .ov-sort { flex: 1 1 auto; }
  .ov-span2 { grid-column: span 2; }
}

.ov-table th { white-space: nowrap; }

/* Navigation: Zähler */
.nav-badge { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }

/* Tagesplan */
.plan { background: var(--paper); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 20px; }
.plan-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.plan-head h2 { font-size: 19px; }
.plan-new { margin-left: auto; min-height: 40px; padding: 8px 14px; font-size: 15px; }
.plan-table td, .plan-table th { text-align: center; }
.plan-table td:first-child, .plan-table th:first-child { text-align: left; }
.plan-cell { display: inline-block; min-width: 48px; padding: 5px 8px; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }
.plan-ok { background: var(--teal-wash); color: var(--teal-deep); }
.plan-part { background: var(--amber-wash); color: var(--amber); }
.plan-empty { background: var(--red-wash); color: var(--red); }
.cal-day.cal-short { box-shadow: inset 0 0 0 2px var(--amber); }
.cal-day.cal-short:not(.has-deals) { color: var(--amber); }

/* Live-Gewinnrechnung im Formular */
.live-calc { background: var(--bg); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.live-calc-row { display: flex; align-items: center; gap: 12px; }
.live-calc-row span:first-child { min-width: 130px; color: var(--muted); }
.live-calc-row strong { font-size: 20px; }
.alert-warn { background: var(--amber-wash); color: var(--ink); }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1 1 auto; min-width: 0; }
.input-with-btn .btn { white-space: nowrap; }

/* Kunden-Hinweise */
.hint-block { margin-top: 10px; }
.hint-open { padding-left: 0; font-size: 15px; }
.hint-form { background: var(--bg); border-radius: var(--radius); padding: 14px 16px; margin-top: 8px; }
.hint-item { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.hint-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hint-deal { font-weight: 700; color: var(--ink); text-decoration: none; }
.hint-deal:hover { color: var(--teal); text-decoration: underline; }
.hint-msg { margin: 0; white-space: pre-line; }

/* Sprachumschalter */
.lang-switch { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.panel .lang-switch { justify-content: flex-start; margin-top: 0; }
.lang-switch button { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line, #d5dde3); background: #fff; color: inherit; cursor: pointer; }
.lang-switch button.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.select-sm { width: auto; padding: 6px 8px; font-size: 14px; min-height: 0; }
.u-mt8 { margin-top: 8px; }
html[lang="en"] details.calc summary::after { content: "show"; }
html[lang="en"] details.calc[open] summary::after { content: "hide"; }

/* App-Tipp & Push */
.app-tip { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--teal-wash); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 20px; }
.app-tip-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
.app-tip-actions { display: flex; gap: 8px; align-items: center; }
.app-tip .icon-btn { width: 36px; height: 36px; }
.btn-sm { padding: 8px 14px; font-size: 14px; min-height: 0; }
.steps { margin: 8px 0 12px; padding-left: 22px; line-height: 1.7; }
.panel h3 { font-size: 16px; margin: 20px 0 8px; }
.push-box { margin-bottom: 4px; }
[hidden] { display: none !important; }

/* ══ Freundliches Design (Online-Arbitrage-Deals) ═══════════════════════ */
h1, h2, h3, .brand-name, .deal-title, .cal-head h1, .ov-summary-value, .offer .price { font-family: var(--font-head); }
h1 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-weight: 600; }
body { font-size: 17px; }

/* Kopfzeile: weiß, mit Logo */
.topbar { background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(20, 50, 74, .05); }
.brand { gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-mark img { width: 38px; height: 38px; display: block; }
.brand .brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand-name b { color: var(--teal); font-weight: 700; }
.brand-name i { color: var(--yellow); font-style: normal; }
.auth .brand.brand-auth { margin-bottom: 28px; }
.auth .brand-auth .brand-mark img { width: 48px; height: 48px; }
.auth .brand-auth .brand-name { font-size: 22px; }
@media (max-width: 640px) {
  .brand-mark img { width: 32px; height: 32px; }
  .brand-name { font-size: 15px; }
}

/* Navigation mit Emojis */
.nav a, .nav button { font-weight: 700; border-radius: 999px; padding: 8px 14px; }
.nav a[aria-current="page"] { background: var(--teal-wash); color: var(--teal-deep); }
.nav a:hover, .nav button:hover { background: var(--bg); color: var(--ink); }
.nav a[href="#/"]::before { content: "📅 "; }
.nav a[href="#/hinweise"]::before { content: "💬 "; }
.nav a[href="#/import"]::before { content: "📥 "; }
.nav a[href="#/verwaltung"]::before { content: "🛠️ "; }
.nav a[href="#/einstellungen"]::before { content: "⚙️ "; }
.nav a[href="#/buchen"]::before { content: "🛒 "; }
.nav a[href="#/login"]::before { content: "🔑 "; }
.nav button.logout::before { content: "👋 "; }

/* Begrüßung */
.hello { margin: 0 0 20px; }
.hello-title { font-family: var(--font-head); font-weight: 700; font-size: 24px; margin: 0; color: var(--ink); }
.hello p:not(.hello-title) { margin: 4px 0 0; color: var(--muted); }

/* Karten: weiß, weich, mit leichtem Schatten */
.panel, .deal, .row, .plan, .offer, .hint-item, .empty, .table-wrap, .ov-summary, .ov-card, .view-switch, .app-tip, .live-calc { box-shadow: var(--shadow); }
.panel, .deal, .plan, .offer { border-radius: var(--radius-lg); }
.panel h2 { color: var(--ink); }
.live-calc, details.calc, .hint-form { background: var(--bg); box-shadow: none; }
.app-tip { background: linear-gradient(135deg, var(--teal-wash), var(--paper)); border-color: transparent; }

/* Knöpfe: Gelb mit weißer Schrift für Hauptaktionen */
.btn { border-radius: 999px; font-weight: 700; padding: 10px 22px; }
.btn-primary { background: var(--yellow); color: var(--on-yellow); text-shadow: 0 1px 1px rgba(0, 0, 0, .28); box-shadow: 0 4px 14px rgba(232, 168, 0, .3); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-secondary { border-color: var(--line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-quiet { color: var(--teal); }
.back { border-radius: 999px; box-shadow: var(--shadow); border-color: transparent; }
.icon-btn { border-radius: 999px; box-shadow: var(--shadow); border-color: transparent; }

/* Eingabefelder */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url],
input[type=date], input[type=datetime-local], input[type=search], select, textarea { border-radius: 12px; border-color: #d5dde7; background: var(--paper); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }
.check input, .ov-chip input { accent-color: var(--teal); }

/* Kalender */
.cal-day { box-shadow: var(--shadow); border: 2px solid transparent; }
.cal-day.outside { box-shadow: none; }
.cal-day.today { border-color: var(--yellow); color: var(--ink); }
.cal-day.has-deals { background: linear-gradient(150deg, #2a97d6, var(--teal)); color: #fff; }
.cal-day.has-deals:hover { background: linear-gradient(150deg, var(--teal), var(--teal-deep)); }
.cal-day.has-deals.today { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(232, 168, 0, .35); }
.cal-day.has-deals::after { content: "🔥"; position: absolute; top: 8px; right: 8px; font-size: 14px; }
@media (max-width: 640px) { .cal-day.has-deals::after { display: none; } }
.cal-count strong { font-family: var(--font-head); }
.sheet-switch button { font-weight: 700; box-shadow: var(--shadow); border-color: transparent; }
.sheet-switch button[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.sheet-switch button::before { content: "📋 "; }
.view-switch { border-color: transparent; }
.view-switch button[aria-pressed="true"] { background: var(--teal); color: #fff; }

/* Badges */
.badge { font-weight: 700; padding: 3px 11px; }
.badge-available { background: var(--green-wash); color: var(--green); }
.badge-available::before { content: "✓ "; }
.badge-limited { background: var(--amber-wash); color: var(--amber); }
.badge-sold_out, .badge-expired { background: var(--red-wash); color: var(--red); }
.plan-ok { background: var(--green-wash); color: var(--green); }
.alert-ok { background: var(--green-wash); color: var(--green); }

/* Deal-Karte */
.deal { padding: 24px; }
.deal-price .value { color: var(--teal-deep); font-family: var(--font-head); }
.ov-pos { color: var(--green); }
.ov-summary { border-left-color: var(--yellow); }
.ov-summary-value { color: var(--green); }
.notes { background: var(--amber-wash); }
.notes::before { content: "📝 "; }
.seats i { background: var(--teal); }
.ov-links a { background: var(--teal-wash); color: var(--teal-deep); }
.ov-links a:hover { background: var(--teal); color: #fff; }
.tabs a[aria-current="page"] { border-color: var(--yellow); color: var(--ink); }
.lang-switch button.active { background: var(--teal); border-color: var(--teal); }

/* Anmeldeseite mit freundlichem Hintergrund */
body:has(.auth) { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, var(--teal-wash), transparent 70%), var(--bg); }
.auth .panel { padding: 28px; }
.toast { background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); }

/* Admin-Ansicht als Kunde/Assistenz */
.view-banner { position: relative; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; background: #14324a; color: #fff; padding: 10px 16px; font-size: 15px; }
.view-banner strong { color: #ffc21a; }
.topbar-inner { max-width: 1140px; }
@media (min-width: 641px) { .nav a, .nav button { padding: 8px 11px; font-size: 15px; } }

/* Logo (online-arbitrage-deals.de mit Maskottchen) */
.brand .brand-logo { display: block; height: 44px; width: auto; background: none; padding: 0; }
.auth .brand-auth .brand-logo { height: 64px; }
.brand-logo.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo.logo-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo.logo-dark { display: block; }
}
:root[data-theme="dark"] .brand-logo.logo-light { display: none; }
:root[data-theme="dark"] .brand-logo.logo-dark { display: block; }
@media (max-width: 640px) { .brand .brand-logo { height: 34px; } .auth .brand-auth .brand-logo { height: 52px; } }
:root { --ink: #0b2350; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #e8eef5; } }
:root[data-theme="dark"] { --ink: #e8eef5; }

/* Hell/Dunkel-Knopf */
.theme-btn { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; padding: 8px 10px; border-radius: 999px; }
.theme-btn:hover { background: var(--bg); }
.lang-switch button { background: var(--paper); color: var(--ink); border-color: var(--line); }
.lang-switch .theme-btn { border: 1px solid var(--line); background: var(--paper); padding: 6px 12px; font-size: 15px; }
.theme-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-choice button { font: inherit; font-size: 15px; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.theme-choice button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
/* Kalender: Deals x/5 */
.cal-day.cal-zero { color: var(--muted); }
.cal-day.cal-zero .cal-count strong { color: var(--muted); font-size: 22px; }
.cal-day.cal-full::after { content: "✅"; }
.lang-switch .lang-switch { margin: 0; }

/* ══ Handy & App: schmale Kopfzeile oben, Navigation als Leiste unten ══ */
.settings-logout { margin-top: 16px; }
.topbar-inner > .theme-btn { flex: 0 0 auto; }
@media (max-width: 760px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .topbar-inner { flex-wrap: nowrap; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); gap: 8px; }
  .brand { margin-right: auto; }
  .brand .brand-logo { height: 32px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-wrap: nowrap; gap: 0;
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(20, 50, 74, .08);
    padding: 4px 4px max(6px, env(safe-area-inset-bottom));
  }
  .nav a, .nav button {
    flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; background: none;
  }
  .nav a::before, .nav button.logout::before { font-size: 22px; line-height: 1.1; }
  .nav a[aria-current="page"] { background: var(--teal-wash); color: var(--teal-deep); }
  .nav .nav-label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav .logout { display: none; }
  .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; font-size: 11px; padding: 0 5px; }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .demo-banner { font-size: 12px; padding: 4px 12px; }
}
@media (min-width: 761px) { .settings-logout { display: none; } }
@media (max-width: 760px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; flex: 0 0 auto; }
}

/* ══ Deal-Karte (neu, übersichtlich) ═══════════════════════════════════ */
.day-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.day-nav .spacer { flex: 1; }
.day-nav .icon-btn { text-decoration: none; }
.day-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 4px; }
.day-sum-i { background: var(--paper); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.day-sum-i strong { font-family: var(--font-head); font-size: 20px; color: var(--ink); }
.day-sum-i small { font-size: 13px; color: var(--muted); }
.d2 { padding: 0; overflow: hidden; border-top: 5px solid var(--teal); }
.d2.is-top { border-top-color: var(--yellow); }
.d2.is-neg { border-top-color: var(--red); }
.d2 > * { margin-left: 22px; margin-right: 22px; }
.d2-head { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; margin-top: 20px; }
.d2-img { width: 96px; height: 96px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.d2-img-empty { display: grid; place-items: center; font-size: 40px; background: var(--bg); }
.d2-titlebox { min-width: 0; }
.d2-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 6px; font-size: 13px; }
.d2-time { color: var(--muted); font-weight: 600; }
.d2 .deal-title { font-size: 19px; margin: 0 0 4px; word-break: break-word; }
.d2-source { font-size: 14px; color: var(--muted); }
.d2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.d2-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d2-stat { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d2-stat-l { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d2-stat strong { font-family: var(--font-head); font-size: 21px; color: var(--ink); line-height: 1.2; }
.d2-stat small { font-size: 12.5px; color: var(--muted); }
.d2-profit { background: var(--green-wash); }
.d2-profit strong, .d2-profit small { color: var(--green); }
.d2.is-neg .d2-profit { background: var(--red-wash); }
.d2.is-neg .d2-profit strong, .d2.is-neg .d2-profit small { color: var(--red); }
.d2-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.d2-actions .btn { min-height: 44px; padding: 10px 18px; }
.d2-shop { flex: 1 1 auto; }
.d2-codes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.d2-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.d2-chip:hover { border-color: var(--teal); color: var(--teal-deep); }
.d2-chip-l { font-weight: 800; color: var(--muted); font-size: 12px; }
.d2-chip-i { opacity: .55; }
.d2 .notes { margin-top: 14px; margin-bottom: 0; }
.d2 details.calc { margin-top: 14px; margin-bottom: 0; }
.d2 .group { margin: 16px 0 0; padding: 16px 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, var(--paper)); }
.d2 .hint-block, .d2 > .day-actions { margin-top: 0; padding: 10px 22px 16px; margin-left: 0; margin-right: 0; background: color-mix(in srgb, var(--bg) 55%, var(--paper)); }
.d2 > .group:last-child { padding-bottom: 20px; }
.group-top { display: flex; gap: 10px; align-items: flex-start; }
.group-icon { font-size: 20px; line-height: 1.3; }
.group-top .group-summary { margin: 0; font-weight: 600; }
.group-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.group-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), #2a97d6); }
.group-bar i.w0 { width: 0; } .group-bar i.w10 { width: 10%; } .group-bar i.w20 { width: 20%; } .group-bar i.w30 { width: 30%; } .group-bar i.w40 { width: 40%; }
.group-bar i.w50 { width: 50%; } .group-bar i.w60 { width: 60%; } .group-bar i.w70 { width: 70%; } .group-bar i.w80 { width: 80%; } .group-bar i.w90 { width: 90%; } .group-bar i.w100 { width: 100%; }
.d2 .group-hint { margin-bottom: 10px; }
@media (max-width: 640px) {
  .d2 > * { margin-left: 16px; margin-right: 16px; }
  .d2 .group, .d2 .hint-block, .d2 > .day-actions { padding-left: 16px; padding-right: 16px; }
  .d2-head { grid-template-columns: 72px 1fr; gap: 12px; margin-top: 16px; }
  .d2-img { width: 72px; height: 72px; border-radius: 12px; }
  .d2 .deal-title { font-size: 17px; }
  .d2-stats { gap: 6px; }
  .d2-stat { padding: 10px; }
  .d2-stat strong { font-size: 17px; }
  .d2-stat-l { font-size: 11px; }
  .d2-actions .btn { flex: 1 1 auto; padding: 10px 12px; }
  .d2-shop { flex-basis: 100%; }
  .day-sum { gap: 6px; }
  .day-sum-i { padding: 10px; }
  .day-sum-i strong { font-size: 17px; }
  .day-sum-i small { font-size: 11.5px; }
}
.d2 > details.calc { margin-left: 22px; margin-right: 22px; }
@media (max-width: 640px) {
  .d2 > details.calc { margin-left: 16px; margin-right: 16px; }
  .d2-actions .d2-shop { flex: 1 1 100%; }
}

/* Wasserzeichen (Kunden) */
.watermark { position: fixed; inset: -20vh -20vw; z-index: 5; pointer-events: none; user-select: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 90px 40px; align-content: start; padding-top: 40px; transform: rotate(-22deg); overflow: hidden; }
.watermark span { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); opacity: .055; white-space: nowrap; }
@media (max-width: 760px) { .watermark { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 20px; } .watermark span { font-size: 13px; } }
@media print { .watermark span { opacity: .12; } }
.code-input { font-size: 26px; letter-spacing: 8px; text-align: center; font-weight: 800; }

/* SellerAmp-Screenshot */
.d2-sas { display: block; width: auto; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.d2-sas:hover { border-color: var(--teal); }
.d2-sas-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.d2-sas img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); }
.sas-preview { width: 260px; height: auto; max-height: 180px; object-fit: cover; object-position: top left; }
.drop-zone { border: 2px dashed var(--line); border-radius: 16px; padding: 14px; }
.drop-zone:focus, .drop-zone.drag { border-color: var(--teal); background: var(--teal-wash); outline: none; }
.lightbox { padding: 0; border: 0; border-radius: 16px; max-width: min(96vw, 1400px); max-height: 94vh; background: var(--paper); color: var(--ink); overflow: auto; }
.lightbox::backdrop { background: rgba(8, 20, 40, .75); }
.lightbox-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.lightbox img { display: block; max-width: 100%; height: auto; cursor: zoom-out; }
.d2 > .d2-sas { width: calc(100% - 44px); box-sizing: border-box; }
@media (max-width: 640px) { .d2 > .d2-sas { width: calc(100% - 32px); } }
.grid-2 { align-items: start; }
