/* ═══════════════════════════════════════════════════════════════
   SERO — Liquid Glass (v24)
   Apple-inspiriertes Glas, SERO-eigen: Navy, Chart-Grün, Schwarz/Hell.
   Blur nur auf Chrom-Schichten (Topbar, Tabbar, Sheet, Toast, Detail-Bar).
   Karten/Grid: leichte Transparenz OHNE backdrop-filter.
   Dark-Tokens: sero-dark.css (Media + force-dark). Fallback ohne Blur
   über @supports am Ende dieses Stylesheets.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────── Tokens / :root (Light) ─────────── */

:root {
  /* Palette an Scan-Cam-Glas (eisblau) */
  --navy: #1a4a8c;
  --tint: #2f6fd0;
  --tint-soft: rgba(74, 140, 232, .14);
  --glow: #7eb6ff;
  --glow-deep: #4a8ce8;

  --bg: #e4ecf6;
  --bg-elevated: rgba(255, 255, 255, .78);
  --fill: rgba(103, 135, 171, .12);
  --fill-2: rgba(103, 135, 171, .20);
  --label: #0b1424;
  --label-2: #3d4f6a;           /* ≥4.5:1 auf --bg */
  --label-3: #5a6b86;           /* ≥4.5:1 Meta/Caption auf --bg */
  --separator: rgba(103, 135, 171, .22);
  --surface-solid: #ffffff;
  --card: var(--surface-solid); /* Alias für Segmente / ältere Regeln */

  --green: #248a3d;
  --red: #d70015;
  --orange: #b25000;
  --icon-neutral: #7a8aa3;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* Liquid Glass — Chrom, tonig zum Scan-Icon */
  --glass: rgba(255, 255, 255, .70);
  --glass-strong: rgba(255, 255, 255, .88);
  --glass-border: rgba(200, 220, 255, .85);
  --glass-edge: rgba(42, 90, 158, .14);
  --glass-spec: inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(42, 90, 158, .08);
  --glass-blur: saturate(2) blur(40px);
  --glass-shadow: 0 14px 44px rgba(42, 90, 158, .18), 0 4px 12px rgba(42, 90, 158, .10);
  --surface: rgba(255, 255, 255, .66);

  --bar: var(--glass);
  --sheet: var(--glass-strong);
  --hairline: rgba(42, 90, 158, .10);
  --shadow-card: 0 1px 2px rgba(42, 90, 158, .05), 0 12px 28px rgba(42, 90, 158, .10);
  --radius-card: 18px;
  --radius-sheet: 24px;
  --radius-bar: 20px;
  --radius-control: 12px;
  --spring: cubic-bezier(.32, .72, 0, 1);

  --chip-s-fs: 11px; --chip-s-fw: 700; --chip-s-pad: 3px 9px;
  --chip-m-fs: 13px; --chip-m-fw: 600; --chip-m-pad: 7px 13px;

  --btn-fg: #ffffff;
  --btn-bg-top: #2a5fb8;
  --btn-bg-bot: #1e4a94;

  --chart-up: #0da05a;
  --chart-dn: #e5484d;
  /* Freisteller-Grund: eisblau wie Scan-Cam/Tabbar, kein kaltes Reinweiß */
  --thumb-bg: #f5f9ff;
}

/* ─────────── Basis / Reset ─────────── */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--label);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  font-size: 17px; line-height: 1.35;
}
/* Liquid Glass Light: weicher Studio-Grund (Dark in sero-dark.css) */
html:not(.force-dark) body {
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(103, 135, 171, .18), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(150, 180, 215, .14), transparent 50%),
    var(--bg);
}
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--tint); }

/* Fokus sichtbar — outline:0 nur wo eigener Ersatz existiert (z. B. tab-cam) */
:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--tint);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--tint);
  outline-offset: 2px;
}

.view { position: fixed; inset: 0; display: flex; flex-direction: column; }

#viewApp {
  transition: transform .38s cubic-bezier(.32, .72, 0, 1), border-radius .38s, filter .38s;
  transform-origin: 50% 0; background: var(--bg);
}
#viewApp.recede {
  transform: scale(.945) translateY(10px);
  border-radius: 24px; overflow: hidden; filter: brightness(.82);
}

/* Bilder blenden weich ein (muss VOR .holo-wrap img stehen — Kaskaden-Reihenfolge).
   WICHTIG: Selektor hier abschließen — sonst erben Produktbilder die .ph-strip-
   Flex/Overflow-Regeln und brechen das Galerie-Layout. */
.gitem img, .d-photos img, .rc img, .mv-row img, .sale-row img,
.simg, .add-strip img, .img-row img {
  opacity: 0; transition: opacity .4s ease, transform .4s var(--spring);
}
img.ld { opacity: 1 !important; }

/* ── Foto-Sammler im Scan-Sheet ─────────────────────────────────────────
   Alle Aufnahmen als Streifen, jede mit × und Sortier-Pfeilen. Bewusst
   Knöpfe statt Ziehen: Drag auf dem Handy war schon einmal unbrauchbar. */
.ph-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 8px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.ph-strip::-webkit-scrollbar { display: none; }
.ph-kachel {
  position: relative; flex: 0 0 auto; width: 96px; margin: 0;
  scroll-snap-align: start;
}
.ph-kachel img {
  width: 96px; height: 128px; object-fit: cover; border-radius: 10px;
  background: var(--thumb-bg); display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.ph-weg {
  position: absolute; top: -5px; right: -5px; width: 24px; height: 24px;
  border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--label); color: var(--bg); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.3); padding: 0;
}
.ph-weg:active { transform: scale(.88); }
.ph-haupt {
  position: absolute; top: 6px; left: 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
  background: var(--tint); color: #fff; padding: 2px 6px; border-radius: 5px;
}
.ph-sort { display: flex; gap: 5px; margin-top: 6px; }
.ph-sort button {
  flex: 1; height: 30px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--fill-2); color: var(--label); font-size: 19px; line-height: 1;
  font-weight: 700; padding: 0 0 2px;
}
.ph-sort button:disabled { opacity: .22; }
.ph-sort button:active:not(:disabled) { transform: scale(.92); }
.ph-tipp { font-size: 12.5px; color: var(--label-2); margin: 2px 4px 10px; line-height: 1.4; }
.ph-add { display: flex; gap: 8px; margin: 4px 0 12px; }
.ph-add .btn-secondary { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; }

/* Start-Splash */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg); transition: opacity .45s;
}
#splash img {
  width: 132px; height: auto; max-height: 148px; object-fit: contain;
  border-radius: 0;
  animation: splashPulse 1.4s ease-in-out infinite;
}
#splash.done { opacity: 0; pointer-events: none; }
@keyframes splashPulse { 50% { transform: scale(1.08); opacity: .8; } }

/* Login — scrollbar & höhenadaptiv (kleine Geräte + Querformat + Tastatur) */
#viewLogin {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  overscroll-behavior-y: contain;
}
.login-wrap {
  margin: auto;
  width: min(340px, 88vw);
  text-align: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) 16px
    max(28px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  min-height: min(100%, var(--vv-height, 100dvh));
  display: flex; flex-direction: column; justify-content: center;
  box-sizing: border-box;
}
@media (max-height: 640px), (orientation: landscape) and (max-height: 520px) {
  .login-wrap { justify-content: flex-start; min-height: auto; padding-top: 12px; }
  .login-logo { width: 72px; margin-bottom: 8px; }
  .login-sub { margin-bottom: 12px; font-size: 14px; }
  .login-feats { margin-bottom: 14px; gap: 8px; font-size: 13px; }
  .login-card { padding: 16px 14px; }
  .login-foot { margin-top: 12px; }
}
@media (orientation: landscape) and (max-height: 420px) {
  .login-feats { display: none; }
}
.login-logo {
  width: 128px; height: auto; margin: 0 auto 16px; display: block;
  animation: logoIn .7s var(--spring) backwards;
}
.login-logo.logo-dark { display: none; }
.login-sub { color: var(--label-2); margin-bottom: 30px; font-size: 16px; animation: pageIn .5s .15s var(--spring) backwards; }
/* Die drei Zeilen über der Anmelde-Karte: ohne diese Regeln rendert der
   Browser eine Standard-Bullet-Liste — auf dem allerersten Screen. */
.login-feats {
  list-style: none; margin: 0 auto 26px; padding: 0; width: fit-content;
  display: grid; gap: 12px; text-align: left;
  font-size: 14.5px; color: var(--label-2);
  animation: pageIn .5s .25s var(--spring) backwards;
}
.login-feats li { display: flex; align-items: center; gap: 11px; }
.lf-ic {
  width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 12%, transparent);
}
.lf-ic svg { width: 15px; height: 15px; }
.login-link {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--tint); font-weight: 600; cursor: pointer;
}

.login-card {
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-card); padding: 22px 20px;
  text-align: left;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .16), inset 0 1px 0 rgba(255, 255, 255, 1);
  -webkit-backdrop-filter: saturate(2) blur(32px);
  backdrop-filter: saturate(2) blur(32px);
  animation: itemIn .5s .25s var(--spring) backwards;
}
.login-card label { font-size: 13px; font-weight: 600; color: var(--label-2); }
.login-card label + input { margin-top: 0; }
.login-card input + label { margin-top: 12px; }
.login-card input {
  width: 100%; margin: 10px 0 16px; padding: 14px 16px; border-radius: 12px;
  border: 0; background: var(--fill); outline: none; font-size: 17px; transition: box-shadow .18s;
}
.login-card input:focus { box-shadow: 0 0 0 2.5px var(--tint); }
.login-hint { font-size: 13px; color: var(--label-2); margin: 6px 0 4px; }
.login-err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 1em; }
.login-foot { margin-top: 24px; font-size: 13px; color: var(--label-2); }
@keyframes logoIn {
  from { opacity: 0; transform: translateY(-14px) scale(.92); }
}
.oauth-divider {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 12px;
  color: var(--label-3); font-size: 12.5px;
}
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; border-top: .5px solid var(--separator); }
.oauth-btn { margin-bottom: 8px; }

.login-social { margin-top: 4px; }
.tg-login-slot {
  display: flex; justify-content: center; margin: 8px 0 12px;
  min-height: 40px;
}
.login-card .login-link { margin-top: 12px; display: inline-block; }

/* Buttons */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px;
  background: linear-gradient(180deg, var(--btn-bg-top), var(--btn-bg-bot));
  color: var(--btn-fg); font-weight: 600; font-size: 17px;
  padding: 14px 18px; border-radius: var(--radius-control, 18px);
  box-shadow: 0 1px 2px rgba(47, 111, 208, .28), 0 8px 22px -6px rgba(74, 140, 232, .48),
    0 0 18px rgba(126, 182, 255, .28),
    inset 0 .5px 0 rgba(255, 255, 255, .35);
  transition: transform .16s var(--spring), filter .16s, box-shadow .16s;
}
.btn-primary:active { transform: scale(.96); filter: brightness(1.12); box-shadow: 0 1px 2px rgba(47, 111, 208, .3); }
.btn-primary[disabled] { opacity: .45; }
.btn-primary.destructive { background: linear-gradient(180deg, #e5484d, #c22b30); }
.btn-primary.success { background: linear-gradient(180deg, #2ba455, #1d7a3d); }
.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px;
  background: var(--fill); color: var(--tint); font-weight: 600; font-size: 16px;
  padding: 12px 16px; border-radius: var(--radius-control); transition: transform .12s;
}
.btn-secondary:active { transform: scale(.965); }
.btn-plain { color: var(--tint); font-weight: 600; font-size: 17px; padding: 12px 16px; }

/* ─────────── Topbar / Tab-Bar (Liquid Glass Chrom — bewusst laut) ─────────── */

.topbar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px)
    max(14px, env(safe-area-inset-right, 0px))
    8px
    max(14px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--brand-wash) 72%, transparent);
  /* Literal — Safari akzeptiert oft kein var() in backdrop-filter */
  -webkit-backdrop-filter: saturate(2.1) blur(36px);
  backdrop-filter: saturate(2.1) blur(36px);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 22%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 6px 20px color-mix(in srgb, var(--brand-ink) 12%, transparent);
  z-index: 5;
  --brand-ink: rgb(103, 135, 171);
  --brand-wash: rgb(220, 230, 242);
  overflow: hidden;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.topbar-logo { height: 34px; width: auto; max-width: min(148px, 34vw); object-fit: contain; flex: 0 1 auto; }
.topbar-rule {
  width: 1.5px;
  height: 24px;
  border-radius: 1px;
  background: var(--brand-ink);
  opacity: .85;
  flex: 0 0 auto;
}
.topbar-section {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  max-width: min(40vw, 168px);
  overflow: hidden;
}
.topbar-section .tab-title.topbar-title {
  width: auto !important;
  max-width: 100%;
  height: 32px !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
}
.topbar-section .tab-title.title-dark { display: none; }
.logo-dark { display: none; }
.topbar-spacer { flex: 0 1 8px; min-width: 4px; }
.topbar-badge {
  font-size: var(--chip-m-fs); font-weight: var(--chip-m-fw); color: var(--orange);
  background: color-mix(in srgb, var(--orange) 18%, transparent);
  padding: 4px 11px; border-radius: 999px;
  border: .5px solid color-mix(in srgb, var(--orange) 28%, transparent);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.topbar-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-wash) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-ink) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  padding: 0; transition: transform .12s;
}
.topbar-ico:active { transform: scale(.92); }
.topbar-ico.spin svg { animation: spin 1s linear infinite; }
.topbar-ico svg { width: 17px; height: 17px; }
.topbar-ava {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  overflow: hidden; padding: 0; border: 1px solid color-mix(in srgb, var(--brand-ink) 28%, transparent);
  background: var(--fill); box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-ink) 14%, transparent);
  display: grid; place-items: center; color: var(--tint); font-weight: 700; font-size: 13px;
  transition: transform .12s;
}
.topbar-ava:active { transform: scale(.92); }
.topbar-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--radius-control, 12px); flex: 0 0 auto;
  display: grid; place-items: center; color: var(--tint);
  background: rgba(245, 249, 255, .72);
  border: 1px solid rgba(190, 215, 255, .85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 4px 14px rgba(42, 90, 158, .14),
    0 0 10px rgba(126, 182, 255, .18);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  transition: transform .12s, background .2s;
  position: relative;
}
.icon-btn:active { transform: scale(.9); }
.icon-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* Visuell kompakt (36), Tippfläche bleibt ≥44 via unsichtbarer Hit-Ring */
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
}
.icon-btn.badged { color: #fff; background: var(--navy); border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Schwebende Glas-Tabbar: klar abgehoben, starke Lichtkante, Linse, Kamera */
.tabbar {
  position: absolute; left: 14px; right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 0;
  padding: 4px 10px;
  min-height: 52px;
  background: rgba(245, 249, 255, .72);
  -webkit-backdrop-filter: saturate(2.2) blur(42px);
  backdrop-filter: saturate(2.2) blur(42px);
  border: 1.5px solid rgba(190, 215, 255, .90);
  border-radius: var(--radius-bar, 20px);
  box-shadow:
    0 18px 48px rgba(42, 90, 158, .22),
    0 4px 14px rgba(42, 90, 158, .12),
    0 0 24px rgba(126, 182, 255, .25),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(42, 90, 158, .08);
}
.tabbar::before {
  content: ""; position: absolute; inset: 1px; border-radius: calc(var(--radius-bar, 20px) - 2px); pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, transparent 48%);
  opacity: 1;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0;
  color: var(--label-2); font-size: 11px; font-weight: 600; padding: 2px 0 1px;
  min-height: 40px; justify-content: center;
  transition: color .18s, transform .12s;
  position: relative; z-index: 1;
}
.tab:active { transform: scale(.92); }
.tab.active { color: var(--navy); }
.tab .tic {
  display: grid; place-items: center;
  width: 48px; height: 28px; border-radius: 12px;
  transition: background .28s var(--spring), transform .28s var(--spring),
    box-shadow .28s var(--spring), border-color .28s;
  border: 1px solid transparent;
}
.tab.active .tic {
  background: rgba(74, 140, 232, .16);
  border-color: rgba(74, 140, 232, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 1px rgba(74, 140, 232, .10),
    0 4px 16px rgba(74, 140, 232, .22);
}
.tab.active .tic.lens-go { animation: ticpop .32s var(--spring); }
@keyframes ticpop { 50% { transform: scale(1.12); } }
.tab-cam {
  position: relative; z-index: 2;
  width: 70px; height: auto; min-height: 66px; border-radius: 0; margin: 0 2px; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff;
  padding: 0; overflow: visible;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .14s;
}
.tab-cam::after {
  content: ""; position: absolute; inset: -6px; border-radius: 18px; z-index: -1;
  background: radial-gradient(circle, rgba(126, 182, 255, .45) 0%, transparent 70%);
  filter: blur(12px); opacity: .65;
  animation: orbbreathe 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orbbreathe { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: .8; transform: scale(1.08); } }
.tab-cam:active { transform: scale(.90); }
.cam-ico {
  width: 66px; height: 66px; display: block; object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  /* Icon trägt die Squircle-Form selbst — kein CSS-Rahmen */
  filter: drop-shadow(0 6px 14px rgba(42, 90, 158, .32));
}
.cam-ico-dark { display: none; }
@media (prefers-color-scheme: dark) {
  html:not(.force-light) .cam-ico-light { display: none; }
  html:not(.force-light) .cam-ico-dark { display: block; }
}
html.force-dark .cam-ico-light { display: none; }
html.force-dark .cam-ico-dark { display: block; }
.tab-cam:active .cam-ico { transform: scale(.94); }

/* Scan-Button: sichtbares Label + aktiver Zustand */
.tab-cam-lab {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--label);
  line-height: 1;
  margin-top: -2px;
}
.tab-cam.active .tab-cam-lab,
.tab-cam[aria-current="page"] .tab-cam-lab {
  color: var(--tint);
}
.tab-cam.active .cam-ico,
.tab-cam[aria-current="page"] .cam-ico {
  filter: drop-shadow(0 6px 14px rgba(42, 90, 158, .45));
  transform: translateY(-1px);
}

/* Start: Scanner-first Hero */
.home-sell-hero {
  margin: 4px 0 18px;
  padding: 18px 16px 16px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(52, 120, 246, .16), transparent 55%),
    linear-gradient(165deg, rgba(255,255,255,.72), rgba(238, 243, 251, .92));
  border: 1px solid rgba(27, 68, 131, .08);
}
.home-sell-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -.02em;
  color: var(--label);
}
.home-sell-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--label-2);
}
.home-sell-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-sell-actions .btn-plain,
.home-collect-only {
  margin-top: 2px;
  text-align: center;
  color: var(--label-2);
  font-size: 13.5px;
}
.home-trust {
  list-style: none;
  margin: 14px 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.home-trust li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--label-2);
}
.home-trust li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tint);
  opacity: .75;
}
.home-ebay-status {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--label-2);
}
.home-draft-card {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(52, 120, 246, .22);
  background: rgba(52, 120, 246, .08);
  color: var(--tint);
  font-weight: 650;
  font-size: 14px;
}
.scan-extra {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 4px;
}
.preflight-issues {
  font-size: 14px;
  line-height: 1.55;
  color: var(--label);
}
.publish-confirm .pc-photo {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--thumb-bg);
  margin-bottom: 10px;
}
.publish-confirm .pc-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.publish-confirm .pc-meta,
.publish-confirm .pc-note {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--label-2);
}
.publish-confirm .pc-price {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 750;
}



@media (prefers-reduced-motion: reduce) {
  .tab-cam::after { animation: none; opacity: .45; }
  .tab.active .tic, .tab.active .tic.lens-go { animation: none; }
}

/* Seiten-Gerüst */
.tab-page { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.page-scroll {
  flex: 1; overflow-y: auto; padding: 2px 14px 130px; -webkit-overflow-scrolling: touch;
  /* Inhalt blendet weich aus, bevor er unter die Glas-Bar taucht */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), transparent calc(100% - 16px));
  mask-image: linear-gradient(#000 calc(100% - 96px), transparent calc(100% - 16px));
}
/* Script-Titelbilder (Portfolio, Sammlung, …) — ersetzt die großen Text-Titel */
.tab-title {
  display: block;
  width: min(100%, 190px);
  height: auto;
  margin: 2px 0 10px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.tab-title.sm {
  width: min(100%, 235px);
  margin: 14px 0 10px;
}
.tab-title.profil {
  width: min(100%, 152px);
  margin: 2px 0 8px;
}
/* Übersicht: kompakt — Range links, Preis rechts */
.ov-hero {
  margin: 0 0 8px;
  padding: 2px 0 4px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: transparent;
}
.ov-hero.themed {
  box-shadow: 0 8px 28px rgba(16, 24, 40, .18);
  padding: 8px 12px 6px;
}
.ov-title-row, .ov-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 2px;
}
.ov-value-row {
  align-items: flex-start;
}
.ov-value-row .ov-range {
  flex: 1 1 auto;
  justify-content: flex-start;
  padding: 2px 0 0;
  margin: 0;
  gap: 6px;
  min-width: 0;
}
.ov-value-row .ov-range .range-pill {
  padding: 5px 10px;
  font-size: 12px;
}
/* Sammlung + Verkauf: Titel bündig am linken Rand */
.tab-title-glass.tab-title-flush {
  margin-left: -16px;
  margin-right: 0;
  padding-left: 8px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
}
.ov-title-glass, .tab-title-glass {
  /* Fest an Inhalt — kein max-width:48%, sonst dehnt sich das Glas */
  flex: 0 0 auto;
  width: fit-content;
  max-width: none;
  display: inline-flex;
  align-items: center;
  padding: 2px 4px 2px 5px;
  margin: -2px 0 0 -4px;
  border-radius: 9px;
  /* Durchsichtiges Glas — Hintergrund scheint durch */
  background: rgba(255, 255, 255, .22);
  border: .5px solid rgba(255, 255, 255, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(16, 24, 40, .06),
    0 2px 10px rgba(16, 24, 40, .12);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}
.tab-title-glass {
  margin: 2px 0 10px;
  /* Auf hellem Seitengrund etwas deckender */
  background: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .75);
}

/* Seiten-Titel sitzen in der Topbar — große Glas-Titel in den Tabs aus */
.tab-title-glass.page-tab-title,
#tabHome .tab-title-glass.page-tab-title { display: none; }

.ov-title-glass .tab-title,
.tab-title-glass .tab-title {
  height: auto;
  margin: 0;
  display: block;
  /* Echte Dark-Assets — kein Invert-Filter auf dem Glas */
  filter: none !important;
}
.tab-title.title-dark { display: none; }
.ov-title-glass .tab-title.title-dark,
.tab-title-glass .tab-title.title-dark { display: none; }
.ov-title-glass .tab-title {
  width: 108px;
  max-width: none;
}
.tab-title-glass .tab-title {
  width: min(100%, 190px);
}
.tab-title-glass .tab-title.profil {
  width: min(100%, 152px);
}
.tab-title-glass .tab-title.sm {
  width: min(100%, 235px);
}

.ov-value-stack {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}
.ov-title-row .ov-value,
.ov-value-row .ov-value {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(26px, 8vw, 36px);
  letter-spacing: -1.2px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}
.ov-value-stack .ov-delta {
  margin: 0;
  font-size: 11.5px;
  padding: 3px 9px;
  max-width: 100%;
  text-align: right;
}
.ov-chart-block { position: relative; margin-top: 0; }
.ov-chart-wrap { position: relative; }
.ov-chart-block .tv-chart {
  margin: 0 -4px 0; width: calc(100% + 8px);
}
.ov-chart-block .tv-svg { aspect-ratio: 375 / 130; }
.ov-hero.themed .ov-value { color: #fff !important; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.ov-hero.themed .ov-delta { color: rgba(255,255,255,.88); }
.ov-hero.themed .ov-delta.up {
  background: color-mix(in srgb, #3dd68c 22%, transparent); color: #b8f5d4 !important;
}
.ov-hero.themed .ov-delta.down {
  background: color-mix(in srgb, #ff6b6b 20%, transparent); color: #ffc9c9 !important;
}
.ov-hero.themed .tv-ylab, .ov-hero.themed .tv-xlab { fill: rgba(255,255,255,.7); }
.ov-hero.themed .tv-grid { stroke: rgba(255,255,255,.18); }
.ov-hero.themed .tv-line { stroke: #7dffb3; }
.ov-hero.themed .range-pill {
  background: rgba(255,255,255,.16); color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.22);
}
.ov-hero.themed .range-pill.on {
  background: rgba(255,255,255,.92); color: #102e5a;
}
/* Dark: echte Dark-Titel; nur Legacy (Einstellungen) noch per Invert */
@media (prefers-color-scheme: dark) {
  html:not(.force-light) .topbar {
    --brand-ink: rgb(183, 202, 225);
    --brand-wash: rgb(18, 28, 44);
  }
  html:not(.force-light) .tab-title.title-light,
  html:not(.force-light) .ov-title-glass .tab-title.title-light,
  html:not(.force-light) .tab-title-glass .tab-title.title-light,
  html:not(.force-light) .topbar-section .tab-title.title-light {
    display: none;
  }
  html:not(.force-light) .tab-title.title-dark,
  html:not(.force-light) .ov-title-glass .tab-title.title-dark,
  html:not(.force-light) .tab-title-glass .tab-title.title-dark,
  html:not(.force-light) .topbar-section .tab-title.title-dark {
    display: block;
  }
  html:not(.force-light) .tab-title.title-invert {
    filter: brightness(0) invert(1) !important;
  }
  html:not(.force-light) .tab-title-glass {
    background: rgba(12, 24, 48, .55);
    border-color: rgba(100, 170, 255, .40);
    box-shadow: 0 0 16px rgba(60, 140, 255, .18), inset 0 1px 0 rgba(180, 210, 255, .2);
  }
  html:not(.force-light) .ov-title-glass {
    background: rgba(12, 24, 48, .50);
    border-color: rgba(100, 170, 255, .45);
    box-shadow: 0 0 16px rgba(60, 140, 255, .2), inset 0 1px 0 rgba(180, 210, 255, .22);
  }
}
html.force-dark .topbar {
  --brand-ink: rgb(183, 202, 225);
  --brand-wash: rgb(18, 28, 44);
}
html.force-dark .tab-title.title-light,
html.force-dark .ov-title-glass .tab-title.title-light,
html.force-dark .tab-title-glass .tab-title.title-light,
html.force-dark .topbar-section .tab-title.title-light {
  display: none;
}
html.force-dark .tab-title.title-dark,
html.force-dark .ov-title-glass .tab-title.title-dark,
html.force-dark .tab-title-glass .tab-title.title-dark,
html.force-dark .topbar-section .tab-title.title-dark {
  display: block;
}
html.force-dark .tab-title.title-invert {
  filter: brightness(0) invert(1) !important;
}
html.force-dark .tab-title-glass {
  background: rgba(12, 24, 48, .55);
  border-color: rgba(100, 170, 255, .40);
  box-shadow: 0 0 16px rgba(60, 140, 255, .18), inset 0 1px 0 rgba(180, 210, 255, .2);
}
html.force-dark .ov-title-glass {
  background: rgba(12, 24, 48, .50);
  border-color: rgba(100, 170, 255, .45);
  box-shadow: 0 0 16px rgba(60, 140, 255, .2), inset 0 1px 0 rgba(180, 210, 255, .22);
}
html.force-light .topbar {
  --brand-ink: rgb(103, 135, 171);
  --brand-wash: rgb(220, 230, 242);
}
html.force-light .tab-title.title-dark,
html.force-light .topbar-section .tab-title.title-dark {
  display: none !important;
}
html.force-light .tab-title.title-light,
html.force-light .topbar-section .tab-title.title-light {
  display: block;
}
html.force-light .tab-title.title-invert {
  filter: none !important;
}
.large-title { font-size: 32px; font-weight: 800; letter-spacing: -.7px; padding: 10px 2px 14px; }
/* iOS-Titel-Verdichtung: beim Scrollen schrumpft der große Titel weg,
   die Wert-Pille (#miniVal) übernimmt in der Topbar */
.page-scroll .large-title {
  transform-origin: left bottom;
  transition: transform .3s var(--spring), opacity .3s;
}
.page-scroll.condensed .large-title { transform: scale(.86); opacity: .5; }
.title-row { display: flex; align-items: center; gap: 8px; }
.title-row .large-title { flex: 1; }
.page-enter .page-scroll { animation: pageIn .34s var(--spring); }
/* Richtungsbewusster Seitenwechsel: neue Seite federt aus der logischen Richtung herein */
.page-enter-r .page-scroll { animation: pageInR .34s var(--spring); }
.page-enter-l .page-scroll { animation: pageInL .34s var(--spring); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px) scale(.995); }
}
@keyframes pageInR {
  from { opacity: 0; transform: translateX(26px) scale(.985); }
}
@keyframes pageInL {
  from { opacity: 0; transform: translateX(-26px) scale(.985); }
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}

/* ─────────── Home ─────────── */

/* Übersichts-Kopf „Studio White" (v17-Endstand; !important neutralisiert Inline-Themes) */
.ov-head { padding: 0 2px 0; background: none !important; box-shadow: none !important; border-radius: 0; }
.ov-top { display: flex; align-items: center; gap: 8px; }
.ov-label { flex: 1; font-size: 15px; color: var(--label-2); }
.ov-label b { color: var(--label); font-weight: 700; }
.ov-value {
  font-size: 40px; font-weight: 800; letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums; margin-top: 0;
  color: var(--label); text-shadow: none;
}
.ov-delta {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-weight: 750; font-size: 13.5px; margin: 2px 0 4px; color: var(--label-2);
}
/* Aus Tokens gemischt statt hartkodiert — der Dunkelmodus zieht automatisch mit. */
.ov-delta.up { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.ov-delta.down { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.ov-head .icon-btn.sm { background: var(--fill); color: var(--label); }
.hideable { transition: filter .25s; }
.hideable.veiled { filter: blur(10px); }

.range-row { display: flex; justify-content: center; gap: 10px; padding: 6px 0 12px; }
.range-pill {
  min-width: 52px; min-height: 36px; text-align: center; padding: var(--chip-m-pad); border-radius: 999px;
  font-size: var(--chip-m-fs); font-weight: var(--chip-m-fw); color: var(--label-2); background: var(--fill);
  border: .5px solid transparent;
  transition: all .2s var(--spring);
}
.range-pill.on {
  background: var(--navy); color: #fff; transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 46, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}

/* Übersichts-Karten (Wertvollste, Kategorien) — Glas-Oberfläche ohne Blur */
.ov-card {
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: var(--shadow-card), var(--glass-spec);
  padding: 6px 0 4px; margin-bottom: 14px; overflow: hidden;
}
.ov-card-title { font-size: 16px; font-weight: 750; letter-spacing: -.2px; padding: 10px 16px 6px; }
.ov-viewall {
  display: block; width: 100%; text-align: center; padding: 12px;
  color: var(--tint); font-weight: 650; font-size: 14.5px;
  border-top: .5px solid var(--separator); margin-top: 4px;
}

/* ── Startseite: SERO-Effekt / Aktivität / FAQ ── */
.impact-card {
  position: relative;
  margin-bottom: 14px;
  padding: 16px 16px 12px;
  border-radius: 20px;
  overflow: hidden;
  color: #eef4ff;
  background:
    linear-gradient(160deg, rgba(36, 78, 150, .92) 0%, rgba(18, 42, 88, .96) 55%, rgba(12, 28, 62, .98) 100%);
  border: .5px solid rgba(160, 200, 255, .28);
  box-shadow: 0 14px 36px rgba(16, 46, 90, .28), var(--glass-spec);
  min-height: 210px;
}
.impact-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent);
  pointer-events: none;
}
.impact-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  position: relative; margin-bottom: 8px;
}
.impact-card-title {
  font-size: 16px; font-weight: 750; letter-spacing: -.2px; color: #fff;
}
.impact-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: .5px solid rgba(255, 255, 255, .18);
  color: rgba(235, 245, 255, .88);
  flex: 0 0 auto;
}
.impact-value {
  position: relative;
  font-size: 34px; font-weight: 780; letter-spacing: -.6px;
  line-height: 1.1; min-height: 40px; color: #fff;
}
.impact-sub {
  position: relative;
  margin-top: 4px; margin-bottom: 14px;
  font-size: 13px; font-weight: 500; color: rgba(220, 232, 255, .72);
  min-height: 18px;
}
.impact-bars { position: relative; display: flex; flex-direction: column; gap: 8px; }
.impact-bar-row {
  display: grid;
  grid-template-columns: minmax(64px, 72px) 1fr minmax(64px, auto);
  align-items: center; gap: 8px;
}
.impact-bar-lab {
  font-size: 12px; font-weight: 600; color: rgba(220, 232, 255, .78);
  white-space: nowrap;
}
.impact-bar-track {
  display: block; height: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); overflow: hidden;
}
.impact-bar-track > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, rgba(126, 182, 255, .95), rgba(74, 140, 232, .85));
  max-width: 100%;
}
.impact-bar-val {
  font-size: 12px; font-weight: 700; color: rgba(235, 245, 255, .92);
  text-align: right; white-space: nowrap;
}
.impact-how {
  position: relative;
  display: block; width: 100%; min-height: 44px; margin-top: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 14px; font-weight: 650;
  border: .5px solid rgba(255, 255, 255, .18);
}
.impact-how:active { background: rgba(255, 255, 255, .2); }
.impact-sheet-lead {
  font-size: 14.5px; line-height: 1.45; color: var(--label-2); margin-bottom: 14px;
}
.impact-sheet-rows {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px;
}
.impact-sheet-rows > div {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px; gap: 12px;
  font-size: 14.5px; font-weight: 550;
}
.impact-sheet-rows b { font-weight: 750; }
.impact-sheet-avg {
  font-size: 13px; color: var(--label-2); line-height: 1.4;
}

.act-card { padding-bottom: 12px; }
.act-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; padding: 4px 12px 10px;
}
.act-tile {
  min-height: 64px; padding: 10px 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tint) 8%, var(--surface));
  border: .5px solid var(--glass-edge);
  box-shadow: var(--glass-spec);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center;
}
.act-tile b {
  font-size: 20px; font-weight: 780; letter-spacing: -.3px; color: var(--label);
  line-height: 1.1; min-height: 24px;
}
.act-tile span {
  font-size: 11px; font-weight: 600; color: var(--label-2); line-height: 1.25;
}

.home-faq-card { padding-bottom: 4px; }
.home-faq { padding: 0 16px 8px; }
.home-faq details {
  border-bottom: .5px solid var(--separator);
  padding: 14px 0;
}
.home-faq details:last-child { border-bottom: 0; }
.home-faq summary {
  font-size: 15px; font-weight: 650; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--label); line-height: 1.35;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
  content: "+"; flex: 0 0 auto;
  font-size: 20px; font-weight: 300; color: var(--label-3);
  line-height: 1;
}
.home-faq details[open] summary::after { content: "–"; }
.home-faq details p {
  margin: 10px 0 2px; font-size: 14px; line-height: 1.45;
  color: var(--label-2);
}

.home-builtby {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 16px 0;
  margin: -4px 0 0;
  overflow: visible;
}
.home-builtby img {
  display: block;
  width: min(72vw, 260px);
  max-width: 100%;
  height: auto;
  opacity: .95;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.home-builtby .logo-dark { display: none; }

/* Startseite: Schluss knapp über der Tabbar, ohne große Leerstelle */
#tabHome .page-scroll {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
}

@media (max-width: 360px) {
  .impact-value { font-size: 30px; }
  .impact-bar-row {
    grid-template-columns: minmax(56px, 64px) 1fr minmax(56px, auto);
  }
  .act-tile span { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .impact-card, .act-tile { animation: none; }
}
.mv-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 14px; min-height: 54px; position: relative; transition: background .12s;
  border-radius: 12px;
  animation: itemIn .4s var(--spring) backwards;
}
.mv-row:not(:last-child)::after {
  content: ""; position: absolute; left: 56px; right: 0; bottom: 0;
  border-bottom: .5px solid var(--separator);
}
.mv-row:active { background: var(--fill); }
.mv-row img, .mv-ph {
  width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--thumb-bg);
  flex: 0 0 auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.mv-ph { display: grid; place-items: center; color: var(--label-3); background: var(--fill); }
.mv-name { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.3; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mv-val { text-align: right; font-size: 13px; font-weight: 750; line-height: 1.35; flex: 0 0 auto; }
.mv-val i { font-style: normal; font-weight: 500; color: var(--label-2); font-size: 12px; }
.mv-val.up { color: var(--green); }
.mv-val.down { color: var(--red); }
.mv-sub { font-style: normal; font-size: 11.5px; color: var(--label-2); font-weight: 500; }
.mv-val .up { color: var(--green); font-style: normal; font-size: 12px; }
.mv-val .down { color: var(--red); font-style: normal; font-size: 12px; }

/* Preisalarm-Karte */
.alert-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: color-mix(in srgb, var(--green) 10%, var(--bg-elevated));
  border: .5px solid var(--hairline);
  border-radius: var(--radius-card); padding: 13px 15px; margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.alert-box .ab-ic { color: var(--green); display: grid; margin-top: 2px; }
.alert-box .ab-row { display: block; font-size: 13.5px; line-height: 1.45; padding: 2px 0; color: var(--label); }

/* Zuletzt hinzugefügt */
.recent-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.recent-strip::-webkit-scrollbar { display: none; }
.rc {
  flex: 0 0 108px; background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .18s var(--spring), box-shadow .18s;
}
.rc:active { transform: scale(.95); }
.rc img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--thumb-bg); }
.rc-ph { width: 100%; aspect-ratio: 1; display: grid; place-items: center; color: var(--label-3); background: var(--fill); }
.rc-n { font-size: 11.5px; font-weight: 600; padding: 6px 8px 0; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.rc-v { font-size: 12px; font-weight: 750; color: var(--tint); padding: 2px 8px 8px; }

/* Setup-Karte */
.setup-card {
  display: block; width: 100%; margin-bottom: 14px;
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); padding: 14px 16px; box-shadow: var(--shadow-card), var(--glass-spec);
  animation: itemIn .45s var(--spring);
}
.setup-card .sc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.setup-card .sc-head b { font-size: 15.5px; }
.setup-card .sc-head span { font-size: 12px; font-weight: 700; color: var(--tint); }
.sc-step {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--label); padding: 5px 0;
}
.sc-step.done { color: var(--label-3); text-decoration: line-through; }
.sc-tick {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill); color: var(--label-2); flex: 0 0 auto;
}
.sc-step.done .sc-tick { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }

/* Portfolio-Held (Sammlung-Kopf, kompakt) */
.hero {
  position: relative; border-radius: var(--radius-card); padding: 20px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(94, 148, 226, .35), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(28, 76, 148, .5), transparent 60%),
    linear-gradient(150deg, #1b4483 0%, #102e5a 55%, #0a1d3c 100%);
  color: #fff; margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(10, 25, 55, .18), 0 18px 44px -12px rgba(10, 25, 55, .5),
    inset 0 .5px 0 rgba(255, 255, 255, .18);
}
.hero::after {
  content: ""; position: absolute; right: -26px; bottom: -30px; width: 150px; height: 150px;
  background: url("assets/monogram-white.png") no-repeat center / contain;
  opacity: .07; pointer-events: none;
}
.hero.compact { padding: 16px 18px 50px; margin-bottom: 14px; }
.hero .h-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .65); }
.hero .h-value {
  font-size: 36px; font-weight: 800; letter-spacing: -1px; margin: 2px 0 10px;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.hero-refresh {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14);
  transition: transform .12s;
}
.hero-refresh:active { transform: scale(.88); }
/* Durchgehende Wertlinie: läuft randlos an der Kartenunterkante, oben weich
   auslaufend — Wert und Zahlen schweben darüber (Apple-Stocks-Hero) */
.hero .h-spark {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px; margin: 0;
  color: rgba(255, 255, 255, .85); pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
}
.hero .h-spark svg { width: 100%; height: 100%; display: block; }
.hero .h-label, .hero .h-value, .hero .h-meta { position: relative; z-index: 1; }
.hero .h-meta { display: flex; gap: 18px; }
.hero .h-meta span { font-size: 13px; color: rgba(255, 255, 255, .82); }
.hero .h-meta b { display: block; font-size: 16px; font-weight: 700; color: #fff; }

/* News-Feed */
.news-feed { display: flex; flex-direction: column; gap: 10px; }
.news-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); padding: 11px 13px; box-shadow: var(--shadow-card);
  transition: transform .14s var(--spring);
}
.news-card:active { transform: scale(.98); }
.news-card img {
  width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: 0 0 auto;
  background: var(--fill);
}
.nc-body { flex: 1; min-width: 0; }
.nc-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 600; line-height: 1.35;
}
.nc-meta { display: block; margin-top: 4px; font-size: 11.5px; color: var(--label-3); }
.news-src {
  display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700;
  color: var(--tint); background: var(--tint-soft); padding: 1px 7px; border-radius: 999px;
}

/* ─────────── Sammlung / Grid ─────────── */

/* Suche + Filter-Chips */
.search {
  position: relative; display: flex; align-items: center; gap: 7px;
  background: var(--fill); border-radius: 11px; padding: 8px 12px; margin-bottom: 12px;
  color: var(--label-2);
}
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 16.5px; color: var(--label); }
#colSearch { background: var(--bg-elevated); }
.search-cam {
  flex: 0 0 auto; display: grid; place-items: center; color: var(--tint);
  width: 30px; height: 30px; border-radius: 8px; margin-left: 2px;
}
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  overflow-x: visible; padding-bottom: 10px; scrollbar-width: none;
}
.chips.scroll-x {
  flex-wrap: nowrap; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
/* Verkaufsvorlage / Sheet: Chips umbrechen, letzte Option nie halb abschneiden */
.sheet .chips, #sellTplRow .chips {
  flex-wrap: wrap; overflow: visible;
}
.fchip {
  flex: 0 0 auto; font-size: var(--chip-m-fs); font-weight: var(--chip-m-fw); color: var(--label-2);
  background: var(--fill); padding: var(--chip-m-pad); border-radius: 999px;
  min-height: 44px; border: .5px solid var(--glass-edge);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.fchip.on { background: var(--navy); color: #fff; border-color: transparent; }
.fchip.status { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.fchip.status.on { background: var(--green); color: #fff; }

/* Galerie-Kacheln: leicht transparent, KEIN backdrop-filter (Performance) */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid > * { min-width: 0; }
.gitem {
  min-width: 0;
  max-width: 100%;
}
.gitem .gname, .gitem .gval, .gitem .gcat {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.grid.col-g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.grid.col-g4 .gitem {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 6px;
  overflow: hidden;
}
.grid.col-g4 .gph,
.grid.col-g4 .gph-none {
  aspect-ratio: 1 / 1;
  width: 100%;
  flex: 0 0 auto;
  border-radius: 8px;
}
.grid.col-g4 .gbody {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 6px 1px 0;
  min-height: 5.6em;
}
.grid.col-g4 .gname {
  font-size: 11px;
  line-height: 1.25;
  min-height: 2.5em;
  margin: 2px 0 2px;
  -webkit-line-clamp: 2;
}
.grid.col-g4 .gval { font-size: 11.5px; font-weight: 700; margin-top: auto; }
.grid.col-g4 .gqty { display: none; }
.grid.col-g4 .gcat { font-size: 9.5px; letter-spacing: .2px; }
.grid.col-g4 .gmore { display: none; }
.grid.col-g4 .gcond,
.grid.col-g4 .gstat { display: none !important; }
.grid.col-g4 .gfav { top: 8px; right: 8px; transform: scale(.85); }
.grid.col-g4 .gbadge { top: 6px; left: 6px; transform: scale(.85); transform-origin: top left; }
.grid.col-g4 .gseal-line {
  display: block;
  max-width: 100%;
  margin: 0 0 3px;
  overflow: hidden;
}
.grid.col-g4 .gseal-in {
  font-size: 8.5px;
  padding: 1px 4px;
  border-radius: 5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
}
.grid.col-list { grid-template-columns: 1fr; gap: 10px; }
.grid.col-list .gitem {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px;
}
.grid.col-list .gitem .gph,
.grid.col-list .gitem .gph-none {
  width: 72px; aspect-ratio: 63 / 88; margin: 0;
}
.grid.col-list .gitem .gbody { padding: 0; text-align: left; }
.grid.col-list .gitem .gbadge { left: 4px; top: 4px; }
.grid.col-list .gitem .gfav { right: auto; left: 52px; top: 4px; }
.gitem {
  position: relative; background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card);
  padding: 10px 10px 12px; overflow: visible; box-shadow: var(--shadow-card);
  touch-action: pan-y; transition: transform .35s var(--spring);
  animation: itemIn .45s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 40ms);
}
.gitem:active { transform: scale(.96); box-shadow: none; }
.gitem.dragging { transition: none; }
/* Wisch-Rückmeldung: Ring am Objekt statt Fläche dahinter — zeigt ab der
   80-px-Schwelle, WELCHE Aktion beim Loslassen kommt. */
.gitem.armed {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 45%, transparent), var(--shadow-card);
}
.gitem.rev-fav.armed {
  box-shadow: 0 0 0 3px color-mix(in srgb, #f5a623 60%, transparent), var(--shadow-card);
}
/* Slabs/Toploader haben KEIN 63:88-Format: nie abschneiden, immer ganz zeigen (v13) */
.gitem .gph {
  width: 100%; aspect-ratio: 63 / 88; object-fit: contain; background: none; display: block;
  border-radius: 10px; box-shadow: 0 8px 20px rgba(40, 50, 80, .14);
}
.gitem .gph-none {
  width: 100%; aspect-ratio: 63 / 88; display: grid; place-items: center; color: var(--label-3);
  object-fit: cover; border-radius: 10px;
  box-shadow: 0 2px 5px rgba(16, 24, 40, .12), 0 14px 28px -12px rgba(16, 24, 40, .28);
  background: var(--fill);
}
.gitem .gbadge {
  position: absolute; top: 10px; left: 10px;
  font-size: var(--chip-s-fs); font-weight: var(--chip-s-fw); letter-spacing: .2px;
  background: rgba(16, 46, 90, .88); color: #fff;
  padding: var(--chip-s-pad); border-radius: 999px;
}
.gitem .gbadge.live { background: rgba(36, 138, 61, .92); }
.gbadge.wish { background: rgba(224, 81, 142, .92); }
.gfav { position: absolute; top: 42px; right: 10px; color: #f5a623; display: grid;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
/* Status-Zeile und Mehr-Knopf: beide wurden vom JS gerendert, hatten aber nie
   eine Regel — der Status erschien als nacktes Wort, das Icon rutschte in den
   Textfluss. Stern sitzt jetzt UNTER dem Regler (beide lagen auf top:10px). */
.gstat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--chip-s-fs); font-weight: var(--chip-s-fw);
  letter-spacing: .2px; margin-bottom: 3px; color: var(--label-3);
}
.gstat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: 0 0 auto;
}
.gstat.live { color: var(--green); }
.gstat.draft { color: var(--orange); }
.gstat.sold { color: var(--label-3); }
.gstat.wish { color: #d9488a; }
.gmore {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 28px; height: 28px; min-width: 28px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; background: rgba(16, 24, 40, .48);
  opacity: .88; transition: opacity .2s ease, transform .2s var(--spring);
}
/* Bewusst IMMER sichtbar: dieser Knopf existiert, weil das Menü vorher nur per
   450-ms-Gedrückthalten erreichbar war — also Geheimwissen. Ein Knopf, der sich
   erst bei Hover zeigt, wäre auf dem iPhone genau wieder unsichtbar. */
.gitem:hover .gmore, .gitem:focus-within .gmore { opacity: 1; }
.gmore:active { transform: scale(.9); }
.gitem .gbody { padding: 9px 2px 2px; }
.gitem .gcat {
  font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--label-3);
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
/* Grade-Siegel in der Kategorie-Zeile, in echten Grader-Farben */
.gseal-in { font-style: normal; font-family: var(--mono); font-weight: 600;
  font-size: 10.5px; letter-spacing: 0; padding: 2px 8px;
  border-radius: 7px; color: #fff; flex-shrink: 0; }
.gseal-in.gold { background: linear-gradient(140deg, #d8b45a, #a8842f); }
.gseal-in.silver { background: linear-gradient(140deg, #b9c2cf, #8b96a6); color: #243044; }
.gseal-in.grey { background: linear-gradient(140deg, #9a948a, #6f6a61); }
.gseal-in.red { background: linear-gradient(140deg, #d24a43, #a02c27); }
.gseal-in.bw { background: linear-gradient(140deg, #2b2f36, #101317); border: 1px solid rgba(255, 255, 255, .5); }
.gseal-in.navy { background: linear-gradient(140deg, #24508f, #102e5a); }
.gcond { display: block; font-size: 11.5px; font-weight: 600; color: var(--label-2); margin-bottom: 2px; }
.gitem .gname {
  /* Zwei Zeilen reserviert, damit die Wertzeile in einer Grid-Reihe auf
     gleicher Höhe steht — auch bei kurzen Kartennamen. (Hier standen
     versehentlich BEIDE Werte: 2.6em und direkt danach 0.) */
  min-height: 2.6em;
  font-size: 13.5px; font-weight: 600; line-height: 1.3; margin: 2px 0 4px; letter-spacing: -.1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gitem .gval { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.gitem .gqty { display: block; width: 100%; font-size: 11px; font-weight: 500; color: var(--label-3); }
.gdelta { font-size: 11px; font-weight: 700; }
.gdelta.up { color: var(--green); }
.gdelta.down { color: var(--red); }
.gitem .gval.na { font-size: 13px; font-weight: 500; color: var(--label-3); }
.gitem .ganalyzing {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--label-2);
}

/* Glanz-Lauf über die Karten (nur ohne Reduced-Motion) */
@media (prefers-reduced-motion: no-preference) {
  .gitem::after { content: ""; position: absolute; top: 10px; left: 10px; right: 10px; aspect-ratio: 63/88; border-radius: 10px;
    background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .13) 50%, transparent 58%) no-repeat;
    background-size: 260% 100%; animation: gshine 7.5s linear infinite; pointer-events: none; }
  .gitem:nth-child(2n)::after { animation-delay: 2.4s } .gitem:nth-child(3n)::after { animation-delay: 4.8s }
  @keyframes gshine { 0% { background-position: 130% 0 } 40% { background-position: -130% 0 } 100% { background-position: -130% 0 } }
}

/* Mini-Wert-Pille entfernt — Topbar bleibt klar */
.minival { display: none !important; }

/* Empty-State */
.empty {
  text-align: center; padding: 8vh 20px 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.empty img { width: 72px; margin-bottom: 8px; opacity: .9; }
.empty h2 { font-size: 22px; font-weight: 750; letter-spacing: -.4px; }
.empty p { color: var(--label-2); font-size: 15px; max-width: 280px; margin-bottom: 14px; }
.empty .btn-primary, .empty .btn-secondary { width: auto; padding-left: 24px; padding-right: 24px; }
.empty .btn-secondary { margin-top: 10px; }

/* ─────────── Detail (Overlay) ─────────── */

.detail {
  position: fixed; inset: 0; z-index: 15; background: var(--bg);
  display: flex; flex-direction: column;
  animation: slidein .34s cubic-bezier(.32, .72, 0, 1);
}
@keyframes slidein { from { transform: translateY(100%); } }
.detail.closing { animation: slideout .28s cubic-bezier(.55, 0, .8, .4) forwards; }
@keyframes slideout { to { transform: translateY(100%); } }
.detail-bar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(2.1) blur(36px);
  backdrop-filter: saturate(2.1) blur(36px);
  border-bottom: 1px solid rgba(255, 255, 255, .65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 24px rgba(16, 24, 40, .08);
}
.detail-bar .dtitle { flex: 1; text-align: center; font-size: 16.5px; font-weight: 650; letter-spacing: -.2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  animation: pageIn .3s var(--spring); }
.detail-body { flex: 1; overflow-y: auto; padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 28px); -webkit-overflow-scrolling: touch; }

.d-photos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-bottom: 16px; }
.d-photos:has(> :only-child) { justify-content: center; }
.d-dots { display: flex; justify-content: center; gap: 6px; margin: -8px 0 14px; }
.d-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fill-2); transition: background .2s, transform .2s; }
.d-dots i.on { background: var(--tint); transform: scale(1.25); }
.d-photos::-webkit-scrollbar { display: none; }
.d-photos img {
  height: 230px; border-radius: 16px; object-fit: contain; background: var(--thumb-bg);
  flex: 0 0 auto; scroll-snap-align: center;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 16px 34px -14px rgba(16, 24, 40, .25);
}
.d-photos.large { margin-left: -16px; margin-right: -16px; padding: 0 16px; gap: 12px; }
.d-photos.large img,
.d-photos.large .holo-wrap img {
  height: auto;
  max-height: min(62vh, 480px);
  width: auto;
  max-width: min(92vw, 420px, calc(100vw - 32px));
  aspect-ratio: auto;
  object-fit: contain; border-radius: 18px;
}
.d-photos.large .holo-wrap { border-radius: 18px; }
.d-photos.large .holo-wrap::after,
.d-photos.large .holo-wrap::before { border-radius: 18px; }

/* Holo-Tilt (Karten im Detail) */
.holo-wrap {
  display: inline-block; flex: 0 0 auto; scroll-snap-align: center;
  perspective: 700px; position: relative; border-radius: 16px;
}
.holo-wrap img {
  display: block; height: 230px; border-radius: 16px; object-fit: contain; background: var(--thumb-bg);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 16px 34px -14px rgba(16, 24, 40, .25);
}
.holo-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, .28), rgba(160, 200, 255, .1) 45%, transparent 70%);
  opacity: 0; transition: opacity .25s;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.holo-wrap.tilting::after { opacity: 1; }
/* Gyro-Holo: Regenbogen-Schimmer wandert mit der Geräteneigung (color-dodge
   lässt nur die Kartenfarben aufleuchten — wie echtes Holo im Licht) */
.holo-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; z-index: 1;
  background: conic-gradient(from 210deg at var(--gx, 50%) var(--gy, 50%),
    transparent 0deg, rgba(255, 90, 130, .22) 50deg, rgba(255, 220, 120, .20) 95deg,
    rgba(120, 255, 190, .20) 140deg, rgba(110, 180, 255, .24) 185deg, transparent 240deg);
  mix-blend-mode: color-dodge; filter: blur(8px);
  opacity: 0; transition: opacity .3s;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.holo-wrap.tilting::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .holo-wrap img, .holo-wrap::after, .holo-wrap::before { transform: none !important; }
  .holo-wrap::before { opacity: 0 !important; }
}

.d-name { font-size: 21px; font-weight: 750; letter-spacing: -.4px; line-height: 1.25; margin-bottom: 4px; }
.d-cat { font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--label-3); margin-bottom: 14px; }

/* Wert-Karte (+v2: Quelle, Trends, Verlauf) */
.value-card {
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); padding: 15px 18px;
  box-shadow: var(--shadow-card), var(--glass-spec); margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.value-card .v-label { font-size: 12.5px; font-weight: 600; color: var(--label-2); display: block; }
.value-card .v-main { font-size: 27px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.value-card .v-sub { font-size: 13px; color: var(--label-2); }
.value-card .v-delta { font-size: 13.5px; font-weight: 700; margin-left: auto; }
.value-card .v-delta.up { color: var(--green); }
.value-card .v-delta.down { color: var(--red); }
.value-card.v2 { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.value-card .v-top { display: flex; align-items: center; gap: 12px; }
.value-card .v-top > span:first-child { flex: 1; }
.v-refresh {
  min-width: 44px; min-height: 44px;
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--tint); background: var(--fill);
  transition: transform .12s;
}
.v-refresh:active { transform: scale(.88); }
.v-refresh.alert-on { color: var(--orange); }
.v-refresh.alert-hit { color: #fff; background: var(--green); }
.spin svg { animation: spin 1s linear infinite; }
.v-sub.dim { color: var(--label-3); font-size: 12px; }
.trend-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tchip {
  font-size: var(--chip-m-fs); font-weight: var(--chip-m-fw); padding: 4px 11px; border-radius: 999px;
  background: var(--fill); color: var(--label-2);
}
.tchip.up { color: var(--green); background: color-mix(in srgb, var(--green) 11%, transparent); }
.tchip.down { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
/* Hero-Pillen: MUSS nach .tchip.up/.down stehen (gleiche Spezifität, Reihenfolge entscheidet) */
.hero .tchip { background: rgba(255, 255, 255, .13); color: rgba(255, 255, 255, .8); }
.hero .tchip.up { color: #8df2ac; }
.hero .tchip.down { color: #ffa39b; }
.v-chart { color: var(--tint); padding: 2px 0; }
.v-chart svg { width: 100%; height: auto; display: block; }

.section-label {
  font-size: 13px; font-weight: 600; letter-spacing: -.1px; text-transform: uppercase;
  color: var(--label-2); margin: 20px 4px 8px;
}
.ex-sub {
  font-size: 12.5px; font-weight: 650; color: var(--label-2);
  margin: 14px 4px 6px; letter-spacing: -.1px;
}
.ex-sub:first-of-type { margin-top: 4px; }

/* Angebotslage: Markt-Umschalter EU / USA / Japan in der Sektions-Zeile */
.offers-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.offer-seg button {
  border: 0; background: none; color: var(--label-2); font: inherit;
  font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0;
  padding: 4px 10px; border-radius: 7px; min-height: 26px; cursor: pointer;
}
.offer-seg button.on {
  background: var(--card, var(--surface-solid, #fff));
  color: var(--label);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.offer-eur { font-style: normal; color: var(--label-2); font-weight: 500; }

/* eBay-Vergleichsangebote */
.sample { text-decoration: none; color: inherit; }
.simg {
  width: 38px; height: 38px; border-radius: 9px; object-fit: cover;
  background: var(--thumb-bg); flex: 0 0 auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.sample .sample-t { font-size: 13.5px; line-height: 1.3; color: var(--label-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sample .rvalue { max-width: none; flex: 0 0 auto; white-space: nowrap; }

/* Inset-Grouped-Liste */
.ilist { background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.irow {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 47px; padding: 8px 14px; position: relative; transition: background .12s;
}
.irow:not(:last-child)::after {
  content: ""; position: absolute; left: 48px; right: 0; bottom: 0;
  border-bottom: .5px solid var(--separator);
}
.irow.plain::after { left: 14px; }
.irow.tap { transition: background .15s; }
.irow.tap:active { background: var(--fill); }
.irow .ric {
  width: 27px; height: 27px; border-radius: 7px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
}
.irow .rlabel {
  font-size: 15.5px; flex: 0 1 auto; min-width: 0; max-width: 46%;
}
.irow .rvalue {
  font-size: 15px; color: var(--label-2); text-align: right;
  flex: 1 1 auto; min-width: 0; max-width: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.irow .chev { color: var(--label-3); flex: 0 0 auto; display: grid; }

/* iOS-Switch */
.sw { position: relative; width: 50px; height: 30px; flex: 0 0 auto; }
.sw input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--fill-2); transition: background .22s; pointer-events: none; }
.sw i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .22s cubic-bezier(.3, .9, .4, 1.1);
}
.sw input:checked + i { background: var(--green); }
.sw input:checked + i::after { transform: translateX(20px); }

/* Segmented Control */
.seg { display: flex; background: var(--fill); border-radius: 12px; padding: 3px; margin-bottom: 10px;
  border: .5px solid var(--glass-edge); box-shadow: var(--glass-spec); }
.seg button {
  flex: 1; text-align: center; padding: 8px 6px; font-size: 14px; font-weight: 600;
  color: var(--label); border-radius: 9px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, background .25s var(--spring), box-shadow .25s;
}
.seg button.on {
  background: var(--bg-elevated);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .10), 0 0 0 .5px var(--separator);
  animation: segIn .25s var(--spring);
}
@keyframes segIn { 50% { transform: scale(1.04); } }
.seg.small button { font-size: 13px; padding: 6px 4px; }
.seg.is-locked { opacity: .55; pointer-events: none; }
.seg button:disabled { cursor: default; }

/* eBay-Sektion im Detail */
.price-tap {
  width: 100%; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--bg-elevated); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-card); margin-bottom: 10px; transition: background .12s;
}
.price-tap:active { background: var(--fill); }
.price-tap.price-live {
  cursor: default; pointer-events: none;
  opacity: .95;
}
.price-tap .pt-price { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.price-tap .pt-price.missing { font-size: 16.5px; font-weight: 600; color: var(--orange); }
.price-tap .pt-sub { font-size: 12.5px; color: var(--label-2); }
.price-tap .chev { margin-left: auto; color: var(--label-3); display: grid; }

.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--chip-m-fs); font-weight: var(--chip-m-fw); color: var(--green);
  background: color-mix(in srgb, var(--green) 13%, transparent);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 10px;
}
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.live-pill.sold {
  color: var(--label-2);
  background: color-mix(in srgb, var(--label-3) 14%, transparent);
}
.live-pill.sold::before { background: var(--label-3); }
.listing-end {
  margin: -4px 0 12px; font-size: 13px; font-weight: 600; color: var(--label-2);
}
.listing-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px; margin: 0 0 14px;
}
.ls-cell {
  background: var(--fill); border-radius: 12px; padding: 10px 8px;
  text-align: center; min-width: 0;
}
.ls-v {
  display: block; font-size: 13.5px; font-weight: 750; letter-spacing: -.2px;
  color: var(--label); line-height: 1.25; word-break: break-word;
}
.ls-k {
  display: block; margin-top: 4px; font-size: 11px; font-weight: 600;
  color: var(--label-2); text-transform: none;
}
.st-end { font-size: 11px; font-weight: 600; color: var(--label-2); }

.assume {
  font-size: 13.5px; line-height: 1.45; color: var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
  padding: 10px 13px; border-radius: 12px; margin-bottom: 12px;
}
.stage-line {
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  color: var(--label-2); padding: 12px 4px;
}
.spinner {
  width: 15px; height: 15px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(from 0deg, transparent 0 40deg, var(--label-3) 60deg, var(--label-2) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.qbox {
  background: var(--tint-soft); border-radius: 14px; padding: 13px 15px; margin-bottom: 12px;
}
.qbox p { font-size: 14.5px; line-height: 1.45; margin-bottom: 10px; }
.qbox .qrow { display: flex; gap: 8px; }
.qbox input {
  flex: 1; padding: 11px 14px; border-radius: 11px; border: 0;
  background: var(--bg-elevated); outline: none; font-size: 16px;
}
.qbox .qsend {
  width: 44px; border-radius: 11px; background: var(--navy); color: #fff;
  display: grid; place-items: center;
}

/* Hinweis auf ein gleiches Stück — ruhig, kein Alarm: Dubletten sind normal. */
.dup-hint {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--fill); border-radius: 12px; padding: 11px 13px; margin: 10px 0;
  font-size: 13.5px; color: var(--label-2); line-height: 1.4;
}
.dup-hint svg { flex: 0 0 auto; color: var(--label-3); }
.dup-hint span { flex: 1; }
.dup-hint b { color: var(--tint); font-weight: 600; flex: 0 0 auto; }
.dup-hint:active { transform: scale(.985); }
.err-box {
  font-size: 14px; line-height: 1.45; color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, transparent);
  padding: 11px 14px; border-radius: 12px; margin-bottom: 12px; white-space: pre-wrap;
}

.quick-row { display: flex; justify-content: space-around; padding: 4px 2px 0; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; color: var(--label-2); min-width: 56px;
}
.quick .qic {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill); color: var(--tint); transition: transform .12s;
}
.quick:active .qic { transform: scale(.88); }
.quick.danger .qic, .quick.danger { color: var(--red); }

.tag-chip {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--tint);
  background: var(--tint-soft); padding: 2px 8px; border-radius: 999px;
  margin-left: 6px; text-transform: none; letter-spacing: 0;
}

/* Grading */
.gr-btns { display: flex; gap: 8px; margin-top: 10px; }
.gr-btns .btn-secondary { min-height: 44px; font-size: 14px; }
.gm-n { font-style: normal; font-size: 11.5px; color: var(--label-3); font-weight: 500; }

/* Detail in Studio White */
#detailBody .ilist, #detailBody .ov-card { border: none; box-shadow: var(--shadow-card); }
#detailBody .seg { background: var(--fill); }

/* ─────────── Scanner ─────────── */

.scan-hero {
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); padding: 26px 22px;
  text-align: center; box-shadow: var(--shadow-card), var(--glass-spec); margin-bottom: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scan-hero .scan-ic { color: var(--tint); display: grid; margin-bottom: 4px; }
.scan-hero h2 { font-size: 21px; font-weight: 750; letter-spacing: -.4px; }
.scan-hero p { font-size: 14px; color: var(--label-2); max-width: 300px; margin-bottom: 12px; }
.scan-hero .btn-primary { width: 100%; }
.scan-hero .btn-secondary { width: 100%; margin-top: 8px; }

/* ─────────── Verkauf ─────────── */

.stat-row { display: flex; gap: 10px; margin-bottom: 14px; }
.stat {
  flex: 1; background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); padding: 12px 8px; text-align: center;
  box-shadow: var(--shadow-card);
}
.stat b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--label-2); font-weight: 600; }
.sale-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); padding: 10px 12px; margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  transition: transform .18s var(--spring), box-shadow .18s;
  animation: itemIn .4s var(--spring) backwards;
}
.sale-row:active { transform: scale(.965); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.sale-row img { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: var(--thumb-bg); flex: 0 0 auto; }
.sr-body { flex: 1; min-width: 0; }
.sr-t { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 600; }
.sr-m { font-size: 12.5px; color: var(--label-2); }
.schip {
  font-size: var(--chip-s-fs); font-weight: var(--chip-s-fw); letter-spacing: .3px;
  padding: var(--chip-s-pad); border-radius: 999px;
  background: var(--fill); color: var(--label-2); flex: 0 0 auto;
}
.schip.live { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.schip.err { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.schip.warn { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.schip.offer { background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); margin-top: 4px; display: inline-block; }
.sale-row .sr-offers { display: block; margin-top: 4px; }
.sale-tile .schip.offer { position: absolute; top: 7px; right: 7px; left: auto; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
#lightbox[hidden] { display: none !important; }
#lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.lb-close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 14px;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  font-size: 28px; line-height: 1; display: grid; place-items: center;
}
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-meta { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; }
body.lb-open { overflow: hidden; }

.sell-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-size: 15px; font-weight: 650; letter-spacing: -.2px;
}
.sell-head img {
  width: 46px; height: 46px; border-radius: 11px; object-fit: contain; background: var(--thumb-bg);
  box-shadow: var(--shadow-card); flex: 0 0 auto;
}

/* Kachel-Ansichten — Titelzeile ausgeblendet; Ansichts-Knopf sitzt im Listing-Wert */
.sales-title-row { display: none; }
#tabSales .page-scroll { position: relative; }
.sale-grid { display: grid; gap: 12px; margin-top: 4px; }
.sale-grid.g2 { grid-template-columns: 1fr 1fr; }
.sale-grid.g4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sale-tile {
  position: relative; background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; transition: transform .14s var(--spring);
}
.sale-tile:active { transform: scale(.95); }
.sale-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--thumb-bg); }
.sale-tile .gph-none { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--fill); }
.sale-tile .schip { position: absolute; top: 7px; left: 7px; }
.sale-tile .st-t {
  font-size: 11.5px; font-weight: 600; padding: 6px 8px 1px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sale-tile .st-p { font-size: 12px; font-weight: 750; color: var(--tint); padding: 0 8px 8px; }
.sale-grid.g4 .st-t { font-size: 11px; -webkit-line-clamp: 1; }
.sale-grid.g4 .st-p { font-size: 11.5px; }
.sale-grid.g4 .schip { transform: scale(.8); transform-origin: top left; }

/* ─────────── Profil (TradingView-Layout) ─────────── */

.tv-prof-card {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: 20px; padding: 16px 16px 14px; margin: 4px 0 12px;
  box-shadow: var(--shadow-card), var(--glass-spec); color: inherit;
}
.tv-prof-top { display: flex; align-items: center; gap: 12px; }
.tv-ava {
  position: relative; width: 64px; height: 64px; border-radius: 16px; flex: 0 0 auto;
  background: #9a6b6b; color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 700; overflow: hidden;
  padding: 0; border: none; cursor: pointer;
}
.tv-ava img, .tv-ava > span:first-child {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  display: grid; place-items: center;
}
.tv-ava-cam {
  position: absolute; right: 3px; bottom: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0, 0, 0, .72); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.tv-prof-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px;
  text-align: left; background: none; border: none; color: inherit; padding: 0; cursor: pointer;
}
.tv-prof-chev {
  flex: 0 0 auto; background: none; border: none; color: var(--label-3);
  padding: 8px 2px; display: grid; place-items: center; cursor: pointer;
}
.tv-pname {
  font-size: 17px; font-weight: 700; letter-spacing: -.3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tv-badge {
  align-self: flex-start; font-size: 10.5px; font-weight: 750; letter-spacing: .6px;
  color: var(--label-2); border: 1px dashed var(--label-3);
  padding: 2px 9px; border-radius: 999px;
}
.tv-ava-hint { font-size: 12px; color: var(--label-3); font-weight: 500; }
.tv-prof-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 16px; padding-top: 4px;
}
.tv-prof-stats div { text-align: center; }
.tv-prof-stats b {
  display: block; font-size: 20px; font-weight: 750;
  font-variant-numeric: tabular-nums; letter-spacing: -.4px;
}
.tv-prof-stats span { font-size: 12px; color: var(--label-2); font-weight: 550; }

.tv-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;
}
.tv-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; min-height: 118px; padding: 14px 14px 12px;
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card), var(--glass-spec); text-align: left; color: inherit;
}
.tv-tile:active { background: var(--fill); }
.tv-tile-ic { color: var(--label); display: grid; margin-bottom: 4px; }
.tv-tile > .chev {
  position: absolute; top: 12px; right: 10px; color: var(--label-3);
}
.tv-tile b { font-size: 14.5px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; }
.tv-tile p {
  font-size: 12px; color: var(--label-2); line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.tv-menu { margin: 0 0 10px; }
.tv-menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 48px; padding: 10px 2px; text-align: left; color: inherit;
  border-top: .5px solid var(--separator); background: transparent;
}
.tv-menu > .tv-menu-row:last-child { border-bottom: .5px solid var(--separator); }
.tv-menu-row:active { background: var(--fill); }
.tv-menu-row.plain:active { background: transparent; }
.tv-mic { color: var(--label); display: grid; flex: 0 0 auto; width: 22px; }
.tv-mlabel { flex: 1; font-size: 15.5px; font-weight: 550; min-width: 0; }
.tv-mval { font-size: 14px; color: var(--label-2); flex: 0 0 auto; max-width: 42%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-mval.warn { color: var(--orange); font-weight: 650; }
.tv-menu.logout { margin-top: 18px; }
.tv-menu.logout .tv-menu-row,
.tv-menu.danger .tv-menu-row { color: var(--red); }
.tv-menu.logout .tv-mic,
.tv-menu.danger .tv-mic { color: var(--red); }
.tv-menu.logout .tv-mlabel,
.tv-menu.danger .tv-mlabel { color: var(--red); font-weight: 600; }
.tv-reconnect { margin: 8px 2px 0; font-size: 13px; line-height: 1.45; opacity: .85; }

.premium-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(140deg, #1a4585, #102e5a);
  color: #fff; border-radius: var(--radius-card); padding: 15px 16px; margin: 14px 0 4px;
  box-shadow: 0 8px 24px rgba(16, 46, 90, .25);
}
.premium-card .pc-ic { color: #ffd479; display: grid; margin-top: 1px; }
.premium-card b { font-size: 15px; }
.premium-card p { font-size: 12.5px; color: rgba(255, 255, 255, .78); line-height: 1.45; margin-top: 2px; }
.version { text-align: center; font-size: 12px; color: var(--label-3); margin-top: 18px; }

/* Profil-Sheet */
.prof-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.prof-head .pava {
  width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 22px; font-weight: 700; overflow: hidden;
}
.prof-head .pava img { width: 100%; height: 100%; object-fit: cover; }
.prof-head .pname { font-size: 18px; font-weight: 700; letter-spacing: -.3px; display: block; }
.prof-head .pmail { font-size: 13.5px; color: var(--label-2); }
.prof-plan { background: var(--fill); border: .5px solid var(--hairline);
  border-radius: var(--radius-card); padding: 13px 16px; margin-bottom: 12px; }
.prof-plan .pp-row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.prof-plan .pp-sub { font-size: 13px; color: var(--label-2); margin-top: 2px; }
.prof-plan .bar { height: 5px; border-radius: 3px; background: var(--fill-2); margin-top: 10px; overflow: hidden; }
.prof-plan .bar i { display: block; height: 100%; border-radius: 3px; background: var(--tint); }

/* ─────────── Sheets / Toasts ─────────── */

/* Toast über Party/Sheet — sonst verschwinden Fehlermeldungen hinter dem Scan-Popup */
#toast {
  pointer-events: none;
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 50%; transform: translate(-50%, -16px); z-index: 120;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(2.2) blur(28px);
  backdrop-filter: saturate(2.2) blur(28px);
  color: var(--label);
  font-size: 14.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; max-width: 88vw;
  opacity: 0; pointer-events: auto;
  transition: opacity .3s, transform .3s cubic-bezier(.3, .9, .4, 1.1);
  border: 1.5px solid rgba(255, 255, 255, .9);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
#toast.show {
  pointer-events: auto; opacity: 1; transform: translate(-50%, 0); }
.toast-act {
  margin-left: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--tint-soft); color: var(--tint);
  font-size: 13.5px; font-weight: 700; flex: 0 0 auto;
  min-height: 32px;
}

/* Bottom-Sheet — muss ÜBER dem Scan-Ergebnis-Popup (party z=70) liegen */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .48); z-index: 100; animation: fade .25s;
  /* Kein starker Extra-Blur — Sheet selbst ist schon Glas (GPU) */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 101;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(2.2) blur(40px);
  backdrop-filter: saturate(2.2) blur(40px);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-bottom: 0;
  padding: 8px 20px 0;
  animation: rise .5s var(--spring);
  max-height: min(88vh, var(--vv-height, 100dvh));
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 -20px 60px rgba(0, 0, 0, .28),
    inset 0 1.5px 0 rgba(255, 255, 255, 1);
}
.sheet.sheet-fit {
  /* fit = weniger Leerraum, NICHT unbegrenzte Höhe */
  max-height: min(88vh, var(--vv-height, 100dvh));
  height: auto;
}
@keyframes rise { from { transform: translateY(100%); } }
.sheet.closing { transform: translateY(105%) !important; transition: transform .26s ease-in; }
.sheet-backdrop.closing { opacity: 0; transition: opacity .26s; }
.sheet-grip {
  width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2);
  margin: -6px auto 6px; padding: 12px 40px; box-sizing: content-box;
  background-clip: content-box; cursor: grab; flex: 0 0 auto;
}
.sheet h3 { font-size: 20px; font-weight: 700; letter-spacing: -.4px; margin-bottom: 4px; flex: 0 0 auto; }
.sheet-hint { font-size: 14px; color: var(--label-2); margin-bottom: 14px; flex: 0 0 auto; }
.sheet input[type="text"], .sheet input[type="email"], .sheet textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-size: 17px;
  border: 0; background: var(--fill); outline: none; transition: box-shadow .18s;
}
.sheet input:focus, .sheet textarea:focus { box-shadow: 0 0 0 2.5px var(--tint); }
.sheet textarea { min-height: 120px; resize: vertical; }
#sheetBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.sheet.sheet-fit #sheetBody { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.sheet.sheet-fit .sheet-hint:empty { display: none; margin: 0; }
.sheet.sheet-fit .sheet-actions { margin-top: 6px; padding-top: 4px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
.sheet.sheet-fit .sheet-err:empty { display: none; min-height: 0; margin: 0; }
.ov-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding-right: 4px; }
.ov-card-head .ov-card-title { margin: 0; flex: 1; min-width: 0; }
.ov-card-head .seg.mini { flex: 0 0 auto; margin-right: 4px; }
.sheet-err { color: var(--red); font-size: 13.5px; margin-top: 10px; min-height: 1em; flex: 0 0 auto; }
.sheet-actions {
  display: flex; gap: 10px; margin-top: 12px; flex: 0 0 auto;
  padding: 10px 0 calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: transparent; position: relative; z-index: 30;
  pointer-events: auto;
  border-top: .5px solid var(--glass-edge);
}
.sheet-actions .btn-primary,
.sheet-actions .btn-plain { pointer-events: auto; position: relative; z-index: 31; }
.sheet-actions .btn-primary { flex: 1; }
.sheet-actions .btn-plain { flex: 0 0 auto; }

.opt-list { display: flex; flex-direction: column; background: var(--fill); border-radius: 14px; overflow: hidden; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; font-weight: 500; font-size: 16.5px; position: relative;
}
.opt:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; right: 0; bottom: 0;
  border-bottom: .5px solid var(--separator);
}
.opt:active { background: var(--fill-2); }
.opt .tick { color: var(--tint); opacity: 0; display: grid; }
.opt.sel .tick { opacity: 1; }
.opt.sel { color: var(--tint); font-weight: 600; }
.opt[disabled] { color: var(--label-3); }

.stepper { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 8px 0 4px; }
.stepper .stbtn {
  width: 52px; height: 52px; border-radius: 50%; background: var(--fill);
  display: grid; place-items: center; color: var(--tint); transition: transform .12s;
}
.stepper .stbtn:active { transform: scale(.88); }
.stepper .stval {
  min-width: 86px; text-align: center; font-size: 40px; font-weight: 800;
  letter-spacing: -1px; font-variant-numeric: tabular-nums;
}

.img-row { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; }
.img-row img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; background: var(--thumb-bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.img-row-thumb {
  flex: 0 0 auto; padding: 0; border: 0; background: transparent; cursor: pointer;
  border-radius: 12px; overflow: hidden;
}
.img-row-thumb img {
  width: 72px; height: 96px; object-fit: cover; display: block;
  border-radius: 12px; background: var(--thumb-bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.img-row-thumb:active { opacity: .85; }
.img-row .btn-secondary { flex: 1; min-height: 44px; font-size: 14px; padding: 10px 12px; justify-content: flex-start; }

/* Foto-Vorschau im Hinzufügen-Sheet */
.add-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.add-strip::-webkit-scrollbar { display: none; }
.add-strip img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; }

/* Hero-Designer-Sheet */
.hero-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.hp {
  aspect-ratio: 1.5; border-radius: 12px; position: relative; overflow: hidden;
  border: .5px solid var(--hairline); transition: transform .12s;
}
.hp:active { transform: scale(.93); }
.hp span {
  position: absolute; left: 6px; bottom: 4px; font-size: 9px; font-weight: 700;
  color: rgba(255, 255, 255, .9); text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.hp-row { display: flex; gap: 8px; }

/* Erfolgs-Moment „Live auf eBay" + Tour */
.party {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: rgba(8, 16, 32, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .3s;
}
.party.out { animation: fade .3s reverse forwards; }
.party-card {
  width: min(320px, 86vw); text-align: center;
  background: var(--bg-elevated); border-radius: var(--radius-card); padding: 30px 24px 22px;
  border: .5px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  animation: partyIn .55s var(--spring);
}
@keyframes partyIn { from { opacity: 0; transform: translateY(30px) scale(.85); } }
.party-ring {
  width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #2ba455, #1d7a3d);
  box-shadow: 0 8px 26px rgba(36, 138, 61, .45), inset 0 .5px 0 rgba(255, 255, 255, .3);
  animation: ringPop .6s .1s var(--spring) backwards;
}
@keyframes ringPop { from { transform: scale(0); } 60% { transform: scale(1.15); } }
.party-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
/* Zwei Zeilen sind der Standard (lange Kartennamen sollen die Karte nicht
   sprengen) — aber Sätze, die die App SELBST formuliert, dürfen ausreden.
   Der Meilenstein endete sonst bei „…1,1 Stunden.." statt „…gespart.". */
.party-card p { font-size: 14px; color: var(--label-2); margin: 4px 0 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.party-card p.voll { display: block; overflow: visible; -webkit-line-clamp: unset; }
.party-price { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 16px; }
.party-actions { display: flex; flex-direction: column; gap: 8px; }
.party-actions .btn-primary { text-decoration: none; }
.tour-ring { background: linear-gradient(180deg, #4a8ce8, #2f6fd0); }
.tour-card { width: min(340px, 90vw); padding: 28px 22px 20px; }
.tour-kicker {
  margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--label-3); text-transform: uppercase;
}
.tour-lead {
  font-size: 15px; line-height: 1.45; color: var(--label-2);
  margin: 8px 0 16px; text-align: left;
}
.tour-dots {
  display: flex; justify-content: center; gap: 7px; margin: 0 0 16px;
}
.tour-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 28%, transparent);
}
.tour-dots span.on { background: var(--tint); }
/* Die drei Schritte in der einen Tour-Karte — gestaffelt eingeblendet. */
.tour-steps { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 13px; text-align: left; }
.tour-steps li { display: flex; gap: 12px; align-items: flex-start; animation: resUp .34s ease-out backwards; }
.ts-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; margin-top: 1px;
  display: grid; place-items: center; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 14%, transparent);
}
.ts-tx { font-size: 13.5px; line-height: 1.42; color: var(--label-2); }
.ts-tx b { display: block; font-size: 14.5px; font-weight: 700; color: var(--label); margin-bottom: 1px; }
@media (prefers-reduced-motion: reduce) { .tour-steps li { animation: none; } }

.sales-port { margin-bottom: 12px; }
.sales-port .col-top { align-items: center; }
.sales-port .ov-sub {
  display: block; margin-top: 4px; font-size: 13px; color: var(--label-2); font-weight: 500;
}
/* Etwas kleiner als die Sammlungs-Knöpfe (44px) — symmetrisch zum Listing-Wert */
.sales-act {
  width: 38px; height: 38px;
}
.ov-sub {
  display: block; margin-top: 4px; font-size: 13px; color: var(--label-2); font-weight: 500;
}

/* ─────────── Charts ─────────── */

/* Linien-Sparkline zeichnet sich */
.sline polyline {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: chartdraw .9s .12s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes chartdraw { to { stroke-dashoffset: 0; } }
.sline polygon { opacity: 0; animation: chartfill .5s .55s forwards; }
@keyframes chartfill { to { opacity: .12; } }

/* Chart randlos über die volle Breite */
.big-chart { margin: 0 -16px; color: var(--chart-up); }
.big-chart svg { width: 100%; height: 170px; display: block; }

/* TradingView-Linienchart (Sammlung + Übersicht) */
.tv-chart {
  margin: 4px -16px 0; width: calc(100% + 32px);
  background: transparent; border: none; box-shadow: none;
}
.tv-chart.empty {
  display: grid; place-items: center; min-height: 120px;
  color: var(--label-3); font-size: 13px; font-weight: 550;
  margin: 8px 0 4px; width: auto;
}
.tv-chart.empty p { margin: 0; }
.tv-svg { width: 100%; height: auto; display: block; aspect-ratio: 375 / 200; }
.tv-grid { stroke: var(--separator); stroke-width: .75; }
.tv-line { stroke: var(--chart-up); stroke-width: 1.6; }
.tv-ylab, .tv-xlab {
  fill: var(--label-2); font: 500 9.5px var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}
.tv-ylab { font-size: 9px; }
.tv-xlab { font-size: 9.5px; }

/* Sammlung: Portfolio-Kopf kompakt + 3 Icon-Buttons */
.col-port { margin: 0 0 8px; padding: 0; }
.col-port.compact .ov-label { font-size: 13px; display: block; margin: 0 0 2px; }
.col-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin: 0 0 2px;
}
.col-top-main { flex: 1; min-width: 0; }
.col-actions {
  display: flex; gap: 6px; flex: 0 0 auto; padding-top: 2px;
}
.col-act {
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--label);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 4px 14px rgba(16, 24, 40, .12);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  backdrop-filter: saturate(1.8) blur(14px);
  position: relative;
}
.col-act.on { background: var(--navy); color: #fff; }
.col-act.badged::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--tint);
  box-shadow: 0 0 0 1.5px var(--bg);
}
.col-port-val {
  font-size: 28px !important; margin: 0 !important;
  letter-spacing: -1px; line-height: 1.1; white-space: nowrap;
}
.col-chips {
  margin: 8px 0 4px; padding-bottom: 10px;
}
.col-port.compact .tv-chart { margin-top: 2px; margin-bottom: 0; }
.col-port.compact .tv-svg { aspect-ratio: 375 / 120; }

/* Suche unten im Sheet */
.col-search-sheet {
  display: flex; align-items: center; gap: 8px;
  background: var(--fill); border-radius: 12px; padding: 10px 12px;
  color: var(--label-2); margin-bottom: 8px;
}
.col-search-sheet .css-ic { display: grid; flex: 0 0 auto; }
.col-search-sheet input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: 16.5px; color: var(--label); min-width: 0;
}
.col-search-hits { max-height: 52vh; overflow-y: auto; }
.col-hit {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 4px; text-align: left; color: inherit;
  border-bottom: .5px solid var(--separator);
}
.col-hit:active { background: var(--fill); }
.col-hit img, .col-hit-ph {
  width: 40px; height: 40px; border-radius: 8px; object-fit: contain;
  background: var(--thumb-bg, var(--fill)); flex: 0 0 auto;
}
.col-hit-ph { display: grid; place-items: center; color: var(--label-3); }
.col-hit-txt { flex: 1; min-width: 0; }
.col-hit-txt b {
  display: block; font-size: 14px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.col-hit-txt i { font-style: normal; font-size: 12px; color: var(--label-2); }
.col-hit-val { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--label-2); }

#tabCollection .page-scroll { padding-top: 4px; }

/* Manuelles Crop / Rotate — kein Schwarz hinter dem Foto („im Feld“) */
.edit-stage {
  position: relative; width: 100%; min-height: 200px; max-height: 42vh;
  background: var(--fill); border-radius: 14px; overflow: hidden;
  touch-action: none; user-select: none; margin-bottom: 10px;
  display: grid; place-items: center;
  isolation: isolate; contain: paint;
}
.edit-stage img {
  max-width: 100%; max-height: 42vh; display: block;
  object-fit: contain; pointer-events: none;
}
.crop-box {
  position: absolute; border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45);
  cursor: move; touch-action: none;
  /* Shadow darf keine Klicks außerhalb der Stage abfangen */
  pointer-events: auto;
}
.crop-box .ch {
  position: absolute; width: 18px; height: 18px;
  background: #fff; border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.crop-box .ch.nw { left: -9px; top: -9px; cursor: nwse-resize; }
.crop-box .ch.ne { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-box .ch.sw { left: -9px; bottom: -9px; cursor: nesw-resize; }
.crop-box .ch.se { right: -9px; bottom: -9px; cursor: nwse-resize; }
.rot-stage { overflow: hidden; }
.rot-stage img {
  transition: transform .05s linear;
  max-height: 36vh;
}
.rot-controls { padding: 4px 0 0; position: relative; z-index: 2; }
.rot-lab {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; font-weight: 650; color: var(--label);
}
.rot-lab input[type="range"] { width: 100%; accent-color: var(--tint); }

/* Listing-Hintergrund wählen (Foto-Menü) */
.bg-pick-preview {
  width: 100%; aspect-ratio: 1; max-height: 36vh; border-radius: 16px;
  display: grid; place-items: center; overflow: hidden; margin-bottom: 14px;
  background: var(--thumb-bg);
}
.bg-pick-preview img {
  max-width: 88%; max-height: 88%; object-fit: contain; display: block;
}
.bg-swatch-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  padding: 2px 0 6px;
}
.bg-swatch {
  aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--hairline);
  box-shadow: inset 0 0 0 1px rgba(42, 90, 158, .06);
  cursor: pointer; padding: 0;
  -webkit-appearance: none; appearance: none;
}
.bg-swatch.on {
  box-shadow: 0 0 0 2.5px var(--tint), inset 0 0 0 1px rgba(255,255,255,.5);
  border-color: transparent;
}
.bg-swatch.dark { border-color: rgba(255,255,255,.12); }
.bg-swatch-default {
  background: var(--fill) !important; color: var(--tint);
  font-size: 18px; font-weight: 600;
  display: grid; place-items: center;
}

/* Profil-Sheet: Avatar mit fester Größe (kein Riesenfoto) */
.pe-ava {
  position: relative; display: block; width: 112px; height: 112px;
  margin: 4px auto 8px; padding: 0; border: none; border-radius: var(--radius-card);
  background: var(--navy, #102e5a); color: #fff; overflow: hidden;
  cursor: pointer; flex: 0 0 auto;
}
.pe-ava img, .pe-ava .pe-letter {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pe-ava .pe-letter {
  display: grid; place-items: center; font-size: 40px; font-weight: 700;
}
.pe-ava-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(0, 0, 0, .38); color: #fff;
  opacity: 1; transition: background .15s;
}
.pe-ava:active .pe-ava-overlay { background: rgba(0, 0, 0, .55); }
.pe-ava-overlay i { display: grid; }
.pe-ava-overlay em {
  font-style: normal; font-size: 12px; font-weight: 650; letter-spacing: -.1px;
}
.pe-ava-hint {
  text-align: center; font-size: 13px; color: var(--label-2);
  margin: 0 0 14px; line-height: 1.4;
}
.pe-note { font-size: 12.5px; color: var(--label-3); margin: 6px 0 0; line-height: 1.4; }

.candles { width: 100%; height: 190px; display: block; }
.candles.mini { height: 40px; }
.cgrid { stroke: rgba(120, 120, 128, .10); stroke-width: .75; }
.clabel { font: 500 9.5px var(--mono); fill: var(--label-2); }
.cprice { font: 700 9.5px var(--mono); fill: #fff; }
/* Trading-Kerzen: Farbe über Tokens, Körper ohne Kontur (sonst wirken sie fett) */
.candles .cup { stroke: var(--chart-up); fill: var(--chart-up); }
.candles .cdn { stroke: var(--chart-dn); fill: var(--chart-dn); }
.candles rect.cup, .candles rect.cdn { stroke: none; }
.hero .h-spark .candles.mini { border-radius: 6px; }

/* ─────────── Scanner-Umbau (Freigabe 02.08.) ─────────── */
.scan-actions { display: flex; gap: 8px; }
.scan-actions .btn-primary { flex: 1; }
.btn-secondary.sq { width: 50px; min-height: 50px; flex: 0 0 auto; padding: 0; }
#sellTplRow { margin-bottom: 4px; }
#sellTplRow .irow { margin-bottom: 10px; }
#sellTplRow .rlabel { white-space: nowrap; flex: 0 0 auto; }
#sellTplRow .rvalue { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 2px 8px; }
/* Verlaufszeilen: Titel einzeilig mit Ellipse, Preis behält immer seinen Platz */
#scanHistory .rlabel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#scanHistory .rvalue { flex: 0 0 auto; }
.sec-link { color: var(--tint); font-size: 13px; font-weight: 600; }
.sec-link:active { opacity: .5; }
/* Sammlung: Filter-Chips kleben beim Scrollen oben (iOS-Fotos-Muster) */
/* Chips sitzen jetzt in der Toolbar-Zeile (.col-chip-scroll) — kein Sticky mehr. */

/* ─────────── Scan-Ergebnis (Wow-Moment) + Paywall ─────────── */
.party.scanres { place-items: end center; }
.res-card {
  width: 100%; max-width: 430px; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: 10px 22px calc(env(safe-area-inset-bottom, 0px) + 22px);
  animation: rise .5s var(--spring);
}
.res-grip { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 2px auto 12px; }
.res-badge {
  display: inline-flex; align-items: center; gap: 6px; color: var(--green);
  font-size: 12.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  padding: 4px 12px 4px 9px; border-radius: 999px; margin-bottom: 12px;
}
/* Gescheiterter Scan: dieselbe Karte, aber ohne Erfolgs-Grün. */
.res-badge.fail {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
}
.res-badge.fail + .res-photo img { opacity: .72; }
.scanres .res-sub { color: var(--label-2); line-height: 1.45; margin: 2px 0 14px; }
.res-photo { position: relative; display: grid; place-items: center; margin-bottom: 12px; }
.res-photo::before {
  content: ""; position: absolute; inset: -6% 12%;
  background: radial-gradient(60% 45% at 50% 45%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%);
}
.res-photo img {
  position: relative; max-height: 190px; max-width: 62%; border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .28), 0 20px 44px -12px rgba(16, 46, 90, .5);
  animation: resPop .7s var(--spring) .12s backwards;
}
@keyframes resPop { from { opacity: 0; transform: scale(.72) translateY(22px); } }

/* ── Reveal-Choreografie: die Karte erzählt in ~1,15 s eine kleine Geschichte,
   statt alles gleichzeitig hinzustellen. Foto → Siegel → Name → WERT → Rest.
   Alles über animation-delay; der Marktwert bekommt die längste Pause, weil
   er die Antwort auf die Frage ist, wegen der man überhaupt scannt. */
.scanres .res-badge { animation: badgePop .35s var(--spring) .3s backwards; }
@keyframes badgePop { from { opacity: 0; transform: scale(.6); } }

.scanres .res-name { animation: resUp .3s ease-out .4s backwards; }
.scanres .res-sub  { animation: resUp .3s ease-out .46s backwards; }
.scanres .res-src,
.scanres .party-actions { animation: resFade .25s ease-out .9s backwards; }
@keyframes resUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes resFade { from { opacity: 0; } }

/* Der Wert selbst: rollt (siehe countUp), dahinter ein einmaliger weicher
   Lichtstoß — die visuelle Entsprechung des Haptik-Schlags. */
.scanres .res-val { position: relative; }
.scanres .res-val::before {
  content: ""; position: absolute; inset: -40% -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%,
              color-mix(in srgb, var(--tint) 34%, transparent), transparent 72%);
  opacity: 0; animation: valGlow .6s ease-out .55s;
}
@keyframes valGlow { 30% { opacity: 1; } to { opacity: 0; } }

.res-name { font-size: 17px; font-weight: 750; letter-spacing: -.3px; line-height: 1.25; }
.res-sub { font-size: 12.5px; color: var(--label-2); margin-top: 2px; }
.res-val {
  font-size: 42px; font-weight: 800; letter-spacing: -1.2px; margin-top: 10px;
  display: flex; justify-content: center; min-height: 1.1em;
}

/* Wer Bewegung reduziert haben will, bekommt dieselbe Karte ohne Inszenierung. */
@media (prefers-reduced-motion: reduce) {
  .scanres .res-badge, .scanres .res-name, .scanres .res-sub,
  .scanres .res-src, .scanres .party-actions, .res-photo img { animation: none; }
  .scanres .res-val::before { animation: none; }
}
.res-src { display: flex; justify-content: center; margin: 8px 0 16px; }
.res-src span {
  font-size: 11.5px; font-weight: 700; color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border: .5px solid color-mix(in srgb, var(--green) 28%, transparent);
  padding: 4px 11px; border-radius: 999px;
}
.res-card .party-actions { display: flex; flex-direction: column; gap: 8px; }

/* Paywall-Sheet */
.pw-bar { height: 7px; border-radius: 4px; background: var(--fill-2); overflow: hidden; margin: 2px 0 8px; }
.pw-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #e5484d, #ff7a6b); }
.pw-count { font-size: 12.5px; color: var(--label-2); margin-bottom: 16px; }
.pw-feats { background: var(--bg-elevated); border: .5px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.pw-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; font-size: 14.5px; position: relative; color: var(--label); }
.pw-row svg { color: var(--tint); flex: 0 0 auto; }
.pw-row + .pw-row::before { content: ""; position: absolute; top: 0; left: 44px; right: 0; border-top: .5px solid var(--hairline); }

/* Hinweis-Banner ab 80 % Verbrauch */
.scan-banner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: color-mix(in srgb, var(--orange) 12%, var(--surface));
  border: .5px solid color-mix(in srgb, var(--orange) 30%, transparent);
  border-radius: 14px; padding: 11px 14px; margin-bottom: 14px;
  font-size: 13.5px; color: var(--label); transition: transform .35s var(--spring);
  box-shadow: var(--glass-spec);
}
.scan-banner b { color: var(--orange); font-weight: 700; }
.scan-banner:active { transform: scale(.98); }
.premium-card { width: 100%; align-items: center; }
.premium-card .chev { margin-left: auto; color: rgba(255, 255, 255, .5); display: grid; }
.pw-math-t { font-size: 15.5px; font-weight: 750; margin: 18px 0 1px; }
.pw-math-s { font-size: 12.5px; color: var(--label-2); margin-bottom: 10px; }
.pw-math { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pwm { background: var(--bg-elevated); border: .5px solid var(--hairline); border-radius: 16px; padding: 13px 12px; }
.pwm.win { border-color: color-mix(in srgb, var(--green) 40%, transparent);
  background: linear-gradient(color-mix(in srgb, var(--green) 7%, transparent), transparent); }
.pwm h4 { font-size: 12px; color: var(--label-2); font-weight: 600; }
.pwm .v { font-size: 24px; font-weight: 800; letter-spacing: -.7px; margin: 3px 0 5px; }
.pwm.win .v { color: var(--green); }
.pwm p { font-size: 11.5px; color: var(--label-2); line-height: 1.45; }
.pw-foot { font-size: 11px; color: var(--label-3); line-height: 1.5; margin: 10px 0 4px; }

/* Kaputte Rest-Keyframes entfernt (war ungültiges @media). */
@media (prefers-reduced-motion:reduce){
  .sv2-card,.sv2-card *,.sv2-card *::after{animation:none !important}
}

/* Not-Anzeige, wenn die App nicht starten konnte (siehe Sicherheitsnetz in sero.js) */
.boot-err {
  position: fixed; inset: auto 16px 16px; z-index: 200;
  background: var(--bg-elevated); border: .5px solid var(--hairline);
  border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px; text-align: center;
}
.boot-err b { font-size: 17px; }
.boot-err p { font-size: 13.5px; color: var(--label-2); line-height: 1.5; }
.boot-err small { font-size: 11px; color: var(--label-3); word-break: break-word; }

/* Kleine Ergänzungen aus dem Seiten-Audit */
.strip-hint { font-size: 12px; color: var(--label-3); margin: -4px 0 10px; }
.bulk-note { font-size: 12.5px; color: var(--orange); margin: -6px 0 12px; }
.stat { position: relative; }

.home-sec { position: relative; display: block; }
.ov-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding-right: 4px; }
.ov-card-head .ov-card-title { margin: 0; flex: 1; min-width: 0; }
.ov-card-head .seg.mini { flex: 0 0 auto; margin-right: 4px; }
.seg.mini { padding: 2px; }
.seg.mini button { font-size: 12px; padding: 5px 10px; }

/* ─────────── Utilities ─────────── */

/* Odometer: Ziffern rollen in ihrer Spalte zur Zielziffer (countUp in sero.js) */
.odc { display: inline-block; height: 1.08em; overflow: hidden; }
.odr { display: flex; flex-direction: column; transition: transform .65s cubic-bezier(.35, 1.05, .35, 1); }
.odr span { height: 1.08em; line-height: 1.08em; display: block; }
/* Komma und Punkt müssen der GLEICHEN Baseline-Regel folgen wie die Walzen.
   Ein inline-block mit overflow:hidden setzt seine Baseline auf die Unterkante —
   ohne das hing das Komma 11 px unter den Ziffern (sichtbar bei „803,99"). */
.ods { display: inline-block; height: 1.08em; line-height: 1.08em; overflow: hidden; }

/* Einheitliches Press-Feedback: jedes berührbare Element quittiert den Touch */
.seg button, .fchip, .range-pill, .tchip { transition: transform .35s var(--spring), background .2s, color .2s; }
.seg button:active, .fchip:active, .range-pill:active { transform: scale(.94); }
.ov-viewall:active, .btn-plain:active, .toast-act:active { opacity: .5; }
.seg button svg { vertical-align: -2px; margin-right: 3px; }

/* Skeleton-Shimmer */
.skel {
  background: linear-gradient(100deg, var(--fill) 40%, var(--fill-2) 50%, var(--fill) 60%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  margin-bottom: 0;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Pull-to-Refresh-Indikator */
.ptr {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  z-index: 6; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .16), inset 0 1px 0 rgba(255, 255, 255, 1);
  -webkit-backdrop-filter: saturate(2) blur(20px);
  backdrop-filter: saturate(2) blur(20px);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--spring);
}
.ptr.go { opacity: 1 !important; transform: translate(-50%, 54px) !important; }
.ptr-mono { width: 22px; height: auto; animation: splashPulse 1s ease-in-out infinite; }
.ptr-mono.logo-dark { display: none; }
/* Pull-to-Refresh: sichtbare Bestätigung an der Auslöse-Schwelle. */
.ptr.armed .ptr-mono { transform: scale(1.15); transition: transform .2s var(--spring); }

/* Preis-Erklärung ⓘ — visuell klein, Tippfläche ≥44×44 ohne Layout-Overflow */
.info-i {
  display: inline-grid; place-items: center; vertical-align: 1px;
  width: 16px; height: 16px; margin-left: 6px; border-radius: 50%;
  background: var(--fill-2); color: var(--label-2);
  font-size: 10.5px; font-weight: 800; font-style: italic; font-family: Georgia, serif;
  position: relative;
}
.info-i::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%;
}

/* Monogramm-Platzhalter */
.mono-ph { width: 42%; max-width: 54px; height: auto; opacity: .16; color: var(--label); }
.mv-ph .mono-ph, .rc-ph .mono-ph { width: 55%; }

/* Ruhe für alle, die es wünschen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Dark-Mode-Block
   Muster: jede Regel doppelt — Media-Query mit html:not(.force-light)
   und identische html.force-dark-Kopie (manueller Schalter).
   ═══════════════════════════════════════════════════════════════ */

/* Tokens */
/* Der frühere Dark-Token-Block stand hier — er ist nach sero-dark.css
   umgezogen („Studio Black" ist die eine Wahrheit für den Dunkelmodus).
   Zuvor definierten beide Dateien dieselben Tokens mit ABWEICHENDEN Werten
   (z. B. --bg-elevated #17191f vs. #141519); gewonnen hat je nach
   Ladereihenfolge — genau die Art Zufall, die „billig" aussieht. */
/* Tokens — Liquid Glass Dark (Abgleich mit sero-dark.css; Media dort) */
html.force-dark {
    --tint: #6aa8ff;
    --tint-soft: rgba(106, 168, 255, .18);

    --bg: #000000;
    --bg-elevated: rgba(28, 30, 38, .78);
    --fill: rgba(255, 255, 255, .08);
    --fill-2: rgba(255, 255, 255, .14);
    --label: #f2f4f9;
    --label-2: rgba(235, 235, 245, .62);
    --label-3: rgba(235, 235, 245, .34);
    --separator: rgba(255, 255, 255, .10);

    --green: #30d158;
    --red: #ff453a;
    --orange: #ffb340;

    --glass: rgba(8, 8, 10, .78);
    --glass-strong: rgba(12, 12, 14, .90);
    --glass-border: rgba(100, 170, 255, .38);
    --glass-edge: rgba(90, 150, 255, .28);
    --glass-spec: inset 0 1.5px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .55);
    --glass-blur: saturate(2.2) blur(42px);
    --glass-shadow: 0 18px 50px rgba(0, 0, 0, .65), 0 4px 14px rgba(0, 0, 0, .4);
    --surface: rgba(255, 255, 255, .09);
    --surface-solid: #121214;

    --bar: rgba(0, 0, 0, .72);
    --sheet: var(--glass-strong);
    --hairline: rgba(255, 255, 255, .10);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 32px rgba(0, 0, 0, .45);
    --chart-up: #30d158;
    --chart-dn: #ff453a;
    --thumb-bg: #1d1f26;
  }

/* Grundfläche schwarz (Hotfix v21 — hebt das weiße html:not(.force-dark) body auf) */
@media (prefers-color-scheme: dark) { html:not(.force-light) body { background: #000; } }
html.force-dark body { background: #000 !important; }

/* Logos: eigene Hell-/Dunkel-Assets — kein Invert-Filter mehr */
@media (prefers-color-scheme: dark) {
  html:not(.force-light) .logo-light { display: none; }
  html:not(.force-light) .logo-dark { display: block; }
  html:not(.force-light) .login-logo.logo-dark { display: block; margin-left: auto; margin-right: auto; }
  html:not(.force-light) #splash .logo-dark { display: block; }
}
html.force-dark .logo-light { display: none; }
html.force-dark .logo-dark { display: block; }
html.force-dark .login-logo.logo-dark { display: block; margin-left: auto; margin-right: auto; }
html.force-dark #splash .logo-dark { display: block; }
html.force-light .logo-dark { display: none !important; }
html.force-light .logo-light { display: block; }

.empty img.logo-light, .empty img.logo-dark {
  width: 72px; height: auto; margin: 0 auto 12px; display: block;
}
.empty img.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  html:not(.force-light) .empty img.logo-light { display: none; }
  html:not(.force-light) .empty img.logo-dark { display: block; }
}
html.force-dark .empty img.logo-light { display: none; }
html.force-dark .empty img.logo-dark { display: block; }

@media (prefers-color-scheme: dark) {
  html:not(.force-light) .ptr-mono.logo-light { display: none; }
  html:not(.force-light) .ptr-mono.logo-dark { display: inline-block; }
}
html.force-dark .ptr-mono.logo-light { display: none; }
html.force-dark .ptr-mono.logo-dark { display: inline-block; }

/* (Der Invert-Filter für .mono-ph entfällt — das SVG erbt currentColor
   und stimmt in beiden Modi von selbst.) */

/* Buttons & Chips */
@media (prefers-color-scheme: dark) {html:not(.force-light) .btn-primary { background: linear-gradient(180deg, #5a9aff, #2f6fd0); box-shadow: 0 0 22px rgba(80, 150, 255, .4), inset 0 .5px 0 rgba(200, 230, 255, .35); } }
html.force-dark .btn-primary { background: linear-gradient(180deg, #5a9aff, #2f6fd0); box-shadow: 0 0 22px rgba(80, 150, 255, .4), inset 0 .5px 0 rgba(200, 230, 255, .35); }

@media (prefers-color-scheme: dark) {html:not(.force-light) .fchip.on { background: #3a78d4; box-shadow: 0 0 14px rgba(80, 150, 255, .35); } }
html.force-dark .fchip.on { background: #3a78d4; box-shadow: 0 0 14px rgba(80, 150, 255, .35); }

@media (prefers-color-scheme: dark) {html:not(.force-light) .qbox .qsend { background: #3a78d4; } }
html.force-dark .qbox .qsend { background: #3a78d4; }

@media (prefers-color-scheme: dark) {html:not(.force-light) .icon-btn.badged { background: #3a78d4; } }
html.force-dark .icon-btn.badged { background: #3a78d4; }

/* Segmented Control */
@media (prefers-color-scheme: dark) {html:not(.force-light) .seg button.on { background: #48484d; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); } }
html.force-dark .seg button.on { background: #48484d; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }

@media (prefers-color-scheme: dark) {html:not(.force-light) #detailBody .seg { background: rgba(120, 120, 128, .2); } }
html.force-dark #detailBody .seg { background: rgba(120, 120, 128, .2); }

/* Grid-Karten */
@media (prefers-color-scheme: dark) { html:not(.force-light) .gitem .gph { box-shadow: 0 8px 20px rgba(0, 0, 0, .45); } }
html.force-dark .gitem .gph { box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }

/* Charts */
/* Das Portfolio-Chart ist das Herzstück der Übersicht — Türkis war dort
   ein Fremdkörper neben Navy. */
@media (prefers-color-scheme: dark) {html:not(.force-light) .big-chart { color: var(--chart-up); } }
html.force-dark .big-chart { color: var(--chart-up); }

@media (prefers-color-scheme: dark) {html:not(.force-light) .cgrid { stroke: rgba(255, 255, 255, .09); } }
html.force-dark .cgrid { stroke: rgba(255, 255, 255, .09); }

/* Delta-Pillen im Übersichts-Kopf */
/* (Dark-Sonderregeln für .ov-delta entfallen — color-mix oben zieht mit.) */

/* Systembanner: EIN Satz für eine gemeinsame Ursache (04.08.) */
.sysbanner {
  display: flex; align-items: flex-start; gap: 9px;
  background: color-mix(in srgb, var(--tint) 10%, var(--surface));
  border: .5px solid var(--glass-edge);
  border-radius: 14px;
  padding: 11px 13px; margin: 0 0 12px;
  font-size: 13.5px; line-height: 1.45; color: var(--label);
  box-shadow: var(--glass-spec);
}
.sysbanner svg { flex: none; margin-top: 1px; color: var(--tint); }

/* ── Chart & Fotos: kein Backdrop-Blur auf Daten/Medien ── */
.tv-chart, .big-chart, .gitem, .d-photos, .sale-grid, .recent-strip {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.tv-chart *, .big-chart *, .gitem .gph, .d-photos img, .holo-wrap > img {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ── Fallback ohne backdrop-filter (ältere Browser / Low-Power) ── */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar, .detail-bar, .tabbar, .sheet, #toast, .login-card, .ptr {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--surface-solid);
  }
  .sheet-backdrop {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, .55);
  }
  html.force-dark .topbar, html.force-dark .detail-bar, html.force-dark .tabbar,
  html.force-dark .sheet, html.force-dark #toast, html.force-dark .login-card, html.force-dark .ptr {
    background: var(--surface-solid);
  }
}

/* ── Desktop: Content-Container, Grid auto-fill, Tabbar zentriert ──
   Mobile (≤719px) unverändert — 5 Tabs + Scan mittig bleibt. */
@media (min-width: 720px) {
  .page-scroll {
    max-width: 720px; margin-left: auto; margin-right: auto; width: 100%;
  }
  .topbar {
    /* Volle Breite — Markenzeile nicht auf Content-Spalte begrenzen */
    max-width: none; margin-left: 0; margin-right: 0; width: 100%;
    padding-left: max(22px, calc((100% - 720px) / 2 + 18px));
    padding-right: max(22px, calc((100% - 720px) / 2 + 18px));
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 180px));
    justify-content: start;
  }
  .sale-grid.g2 {
    grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  }
  .sale-grid.g4 {
    grid-template-columns: repeat(auto-fill, minmax(110px, 140px));
  }
  .tabbar {
    left: 50%; right: auto;
    transform: translateX(-50%);
    width: min(430px, calc(100% - 28px));
    max-width: 430px;
  }
  .detail-body {
    max-width: 720px; margin-left: auto; margin-right: auto; width: 100%;
  }
}


/* Querformat: Chart kompakter, Tabbar nicht über Inhalt */
@media (orientation: landscape) and (max-height: 520px) {
  .col-port.compact .tv-chart,
  .ov-chart-wrap { max-height: 72px; overflow: hidden; }
  .col-port.compact .tv-svg { aspect-ratio: 375 / 72; }
  .page-scroll {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  }
  .tabbar {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    min-height: 48px;
  }
}

/* Mobile-Stabilität: horizontale Streifen + Viewport */
.chips, .col-chips, .ph-strip, .add-strip, .recent-strip, .d-photos,
[data-horizontal-scroll] {
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.page-scroll, .view {
  touch-action: pan-y pinch-zoom;
}
.view {
  height: var(--app-height, 100dvh);
  max-height: var(--app-height, 100dvh);
}
html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
@media (prefers-reduced-motion: reduce) {
  html { --glass-blur: none; }
  .sheet, #toast, .topbar, .tabbar, .detail-bar {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .holo-wrap, .holo-wrap.tilting {
    transform: none !important;
  }
  #viewApp.recede {
    transform: none;
    filter: brightness(.88);
  }
}
html.reduced-effects .sheet,
html.reduced-effects #toast,
html.reduced-effects .topbar,
html.reduced-effects .tabbar {
  -webkit-backdrop-filter: saturate(1.2) blur(12px) !important;
  backdrop-filter: saturate(1.2) blur(12px) !important;
}


/* ── App-Icon / Scan-Cam Squircle (~22%) — keine Pillen-Flächen ── */
.ov-card, .stat, .gitem, .scan-hero, .sale-tile, .sale-row,
.tv-prof-card, .tv-tile, .setup-card, .value-card, .news-card,
.card, .ilist, .login-card, .ov-hero, .rc, .pwm, .pw-feats,
.prof-plan, .qbox, .party-card, .opt-list {
  border-radius: var(--radius-card) !important;
}
.seg, .offer-seg {
  border-radius: var(--radius-control) !important;
}
.seg button {
  border-radius: calc(var(--radius-control) - 2px) !important;
}
.fchip, .range-pill, .live-pill, .schip {
  border-radius: 999px;
}
.btn-primary, .btn-secondary, .icon-btn, .col-act {
  border-radius: var(--radius-control) !important;
}
.sheet {
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0 !important;
}
.tabbar {
  border-radius: var(--radius-bar) !important;
}
.tabbar::before {
  border-radius: calc(var(--radius-bar) - 2px) !important;
}
.tab .tic {
  border-radius: 12px !important;
}
.topbar-ava {
  border-radius: var(--radius-control) !important;
}
.login-card input, .sheet input, .sheet textarea, #colSearch {
  border-radius: var(--radius-control) !important;
}

/* ── Profil / Einstellungen (2026-08-08) ── */
.tab { min-width: 0; }
.tab .tab-lab {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; text-align: center; font-size: 10px;
}
@media (max-width: 350px) {
  .tab .tab-lab { font-size: 9px; letter-spacing: -.2px; }
  .tab-cam, .cam-ico { width: 58px; height: 58px; }
}
.settings-view {
  position: fixed; inset: 0; z-index: 25;
  display: flex; flex-direction: column;
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.settings-view[hidden] { display: none !important; }
#viewApp.settings-open .tabbar { visibility: hidden; pointer-events: none; }
.settings-bar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  background: var(--bar, var(--glass));
  border-bottom: 1px solid var(--hairline);
}
.settings-bar #settingsBack svg { transform: rotate(180deg); }
.settings-bar h2 {
  flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.2px;
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.settings-body {
  flex: 1; overflow-y: auto; padding: 12px 16px 40px;
  -webkit-overflow-scrolling: touch;
}
.set-section-title {
  font-size: 13px; font-weight: 700; color: var(--label-2);
  text-transform: uppercase; letter-spacing: .4px;
  margin: 18px 2px 8px;
}
.set-group { margin-bottom: 18px; }
.set-h {
  font-size: 13px; font-weight: 650; color: var(--label-2);
  margin: 0 2px 8px;
}
.set-card {
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.set-card.set-pad { padding: 16px; }
.set-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 10px 14px;
  text-align: left; color: inherit; background: transparent; border: 0;
  border-bottom: .5px solid var(--hairline);
}
.set-row:last-child { border-bottom: 0; }
.set-row:active { background: var(--fill); }
.set-row.danger .set-title { color: var(--red); }
.set-ic {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 12%, transparent);
}
.set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-title { font-size: 16px; font-weight: 600; line-height: 1.25; }
.set-sub {
  font-size: 12.5px; color: var(--label-2); line-height: 1.3;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.set-sub.warn { color: var(--orange); font-weight: 600; }
.set-val {
  flex: 0 1 auto; max-width: 42%;
  font-size: 13px; font-weight: 600; color: var(--label-2);
  text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.set-row .chev { flex: 0 0 auto; color: var(--label-3); }
.set-plan-name { font-size: 20px; font-weight: 750; margin: 0 0 6px; }
.set-field-lab {
  display: block; font-size: 12.5px; font-weight: 650; color: var(--label-2);
  margin: 12px 0 6px;
}
.set-readonly {
  font-size: 15px; color: var(--label); padding: 10px 12px;
  background: var(--fill); border-radius: var(--radius-control);
}
.field-err { color: var(--red); font-size: 13px; margin: 4px 0 0; }
.prof-plan-card {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: .5px solid var(--glass-edge);
  border-radius: var(--radius-card); padding: 14px 16px;
  margin: 12px 0 4px; box-shadow: var(--shadow-card), var(--glass-spec);
  color: inherit;
}
.prof-plan-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 4px;
}
.prof-plan-head b { font-size: 17px; font-weight: 750; }
.prof-plan-cta {
  display: inline-block; margin-top: 10px;
  font-size: 14px; font-weight: 650; color: var(--tint);
}
.prof-plan-bar, .prof-plan .bar {
  height: 6px; border-radius: 4px; background: var(--fill-2);
  margin: 10px 0 4px; overflow: hidden;
}
.prof-plan-bar i, .prof-plan .bar i {
  display: block; height: 100%; border-radius: 4px; background: var(--tint);
}
.tv-prof-hit { width: 100%; text-align: left; color: inherit; cursor: pointer; }
.tv-prof-hit .tv-prof-top { align-items: center; }
.tv-phandle {
  display: block; font-size: 13px; color: var(--label-2);
  margin: 2px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tv-prof-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--hairline);
}
.tv-prof-stat { text-align: center; min-width: 0; }
.tv-prof-stat b {
  display: block; font-size: 18px; font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.tv-prof-stat span {
  display: block; font-size: 11px; font-weight: 600; color: var(--label-2);
  line-height: 1.2; margin-top: 2px;
}
.tv-prof-card.skeleton { min-height: 120px; opacity: .7; }
.tg-code {
  font-family: var(--mono); font-size: 28px; font-weight: 750;
  letter-spacing: 2px; text-align: center; padding: 12px; margin: 10px 0;
  background: var(--fill); border-radius: var(--radius-control);
}
.danger-zone .btn-primary.destructive { margin-top: 12px; }
.danger-zone .btn-secondary { margin: 10px 0; width: 100%; }
.about-card { text-align: center; }
.about-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 4px auto 10px; display: block;
}
.version {
  text-align: center; font-size: 12px; color: var(--label-3);
  margin: 18px 0 8px;
}
#settingsView .btn-primary, #settingsView .btn-secondary { width: 100%; }
#settingsView a.btn-primary {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; margin-top: 10px;
}


/* ── Listing-Review A–D (Scanner-first) ───────────────────── */
.lr-sec { margin: 16px 0 8px; }
.lr-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--label-2);
}
.lr-gate {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(235, 77, 61, .10);
  border: 1px solid rgba(235, 77, 61, .28);
}
.lr-gate-t {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--label);
}
.lr-gate-s {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--label-2);
}
.lr-checklist { margin: 0 0 12px; }
.lr-miss .rvalue { color: #eb4d3d; font-weight: 650; }
.lr-flash {
  outline: 2px solid var(--tint);
  outline-offset: 2px;
  border-radius: 10px;
  transition: outline-color .3s ease;
}
.preflight-issues.ilist { margin-top: 4px; }
.preflight-issues .irow { width: 100%; text-align: left; }

/* ── Scanner-first P3: Queue, Batch-Gruppen, Bulk-Sum, Long-Press ── */
.sales-queue {
  margin: 0 0 14px;
  padding: 12px 12px 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tint) 8%, var(--card, var(--bg)));
  border: 1px solid color-mix(in srgb, var(--tint) 18%, transparent);
}
.sq-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.sq-head b { font-size: 14px; font-weight: 700; }
.sq-list { display: flex; flex-direction: column; gap: 4px; }
.sq-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 8px 6px; border: 0; background: transparent;
  border-radius: 10px; color: inherit; cursor: pointer;
}
.sq-row:active { background: color-mix(in srgb, var(--label) 6%, transparent); }
.sq-row img, .sq-row .mv-ph {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.sq-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sq-body b {
  font-size: 14px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sq-st { font-size: 12px; font-style: normal; color: var(--label-2); }
.sq-st.sq-ready { color: var(--green); }
.sq-st.sq-needs_review { color: var(--orange); }
.sq-st.sq-no_price { color: var(--orange); }
.sq-st.sq-error { color: var(--red); }
.sq-st.sq-analyzing { color: var(--tint); }

.bg-group {
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--label) 10%, transparent);
}
.bg-group:last-child { border-bottom: 0; }
.bg-group-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 8px; font-size: 13px; color: var(--label-2);
}
.bg-group-h b { color: var(--label); font-size: 14.5px; }
.bg-group-acts {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.bg-kachel .ph-sort button {
  font-size: 10px; padding: 2px 6px; max-width: 100%;
}

.sale-sel {
  position: absolute; z-index: 2; top: 8px; right: 8px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-radius: 8px;
}
.sale-row { position: relative; }
.sale-row .sale-sel { position: static; margin-right: 4px; flex-shrink: 0; }
.sale-tile { position: relative; }
.sale-tile .sale-sel { top: 6px; right: 6px; }
.sale-sel input { width: 18px; height: 18px; accent-color: var(--tint); }

.bulk-sum { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.bulk-sum-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px; border-radius: 12px;
  background: color-mix(in srgb, var(--label) 4%, transparent);
}
.bulk-sum-row img, .bulk-sum-row .mv-ph {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.bulk-sum-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bulk-sum-b b {
  font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bulk-sum-b span { font-size: 12.5px; color: var(--label-2); }
.bulk-sum-err { font-size: 12px; color: var(--red); font-style: normal; }
#bulkPublish:disabled { opacity: .45; }

.scan-mode-list {
  display: flex; flex-direction: column; gap: 8px;
}
.scan-mode-list .btn-secondary,
.scan-mode-list .btn-plain {
  width: 100%; justify-content: flex-start; gap: 10px;
}
.lr-ph-strip { margin: 0 0 10px; }
.lr-ph-strip .ph-kachel {
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}
.lr-ph-strip .ph-kachel:active { opacity: .88; }
.lr-ph-sort {
  width: 96px; margin-top: 8px; padding: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
}
.lr-ph-sort .ph-star,
.lr-ph-sort .ph-nudge {
  border: 0; border-radius: 10px; cursor: pointer; padding: 0;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--fill-2) 88%, transparent);
  color: var(--label-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sep) 55%, transparent);
  -webkit-tap-highlight-color: transparent;
}
.lr-ph-sort .ph-star {
  width: 100%; height: 40px; min-height: 40px;
}
.lr-ph-sort .ph-star.is-main {
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 16%, var(--fill-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 28%, transparent);
}
.lr-ph-sort .ph-star:disabled { opacity: 1; cursor: default; }
.lr-ph-sort .ph-nudge-pair { display: flex; gap: 6px; width: 100%; }
.lr-ph-sort .ph-nudge {
  flex: 1; min-width: 44px; height: 40px; min-height: 40px;
  font-size: 22px; font-weight: 650; line-height: 1;
}
.lr-ph-sort .ph-nudge:disabled { opacity: .24; cursor: default; }
.lr-ph-sort .ph-star:active:not(:disabled),
.lr-ph-sort .ph-nudge:active:not(:disabled) { transform: scale(.94); }
.lr-ph-sort .ph-star svg { display: block; }
.lr-offer-row .lr-offer-acts {
  display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto;
}
.lr-bo-min {
  width: 92px; max-width: 34vw; height: 34px; padding: 0 10px;
  border: 1px solid var(--sep); border-radius: 8px;
  background: var(--bg); color: var(--label); font-size: 15px; text-align: right;
}
.lr-bo-min:focus { outline: 2px solid var(--tint); outline-offset: 1px; }
.img-row-acts {
  display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0;
}
.img-row-acts .btn-secondary { width: 100%; }
