/* CardVault – "Vault"-Thema (Design-Tokens aus dem Android-Projekt) */

@font-face { font-family: "Inter"; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #101119;
  --surface: #1A1C27;
  --surface-2: #21232F;
  --surface-3: #282B39;
  --border-subtle: rgba(255,255,255,.07);
  --border-strong: rgba(255,255,255,.14);
  --text: #F1F1F5;
  --text-2: #9A9DB0;
  --text-3: #6B6E80;
  --pos: #3ED9A0;
  --neg: #FF6F7A;
  --holo-1: #6F7CFF;
  --holo-2: #28D6C8;
  --holo-3: #CD6DE0;
  --holo: linear-gradient(115deg, var(--holo-1), var(--holo-2) 50%, var(--holo-3));
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100vh; min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--holo-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--holo-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Shell & Navigation ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.view {
  max-width: 640px; margin: 0 auto;
  padding: calc(16px + var(--safe-t)) 18px calc(var(--nav-h) + 28px + var(--safe-b));
  outline: none;
}
body.has-banner .view { padding-bottom: calc(var(--nav-h) + 96px + var(--safe-b)); }
.view.no-nav { padding-bottom: calc(32px + var(--safe-b)); }
.boot { display: grid; place-items: center; min-height: 70vh; opacity: .9; }
.boot img { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7; } }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(26,28,39,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px calc(8px + var(--safe-b));
  display: flex; justify-content: space-around; align-items: center;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 6px 10px; min-width: 64px;
  color: var(--text-3); font-size: 10.5px; text-decoration: none !important;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active { color: var(--text); font-weight: 700; }
.nav-item.active svg { color: var(--holo-2); }
.nav-fab {
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--holo-2); color: var(--bg);
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(40,214,200,.25);
  text-decoration: none !important;
}
.nav-fab svg { width: 26px; height: 26px; }
.nav-brand { display: none; }

@media (min-width: 960px) {
  .nav {
    top: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 4px; padding: 24px 14px; border-top: 0; border-right: 1px solid var(--border-subtle);
  }
  .nav-brand { order: -2; display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; font: 700 19px var(--font-display); color: var(--text); }
  .nav-brand img { height: 34px; width: auto; }
  .nav-item { flex-direction: row; gap: 12px; font-size: 14px; padding: 11px 12px; border-radius: var(--r-md); min-width: 0; }
  .nav-item:hover { background: var(--surface-2); color: var(--text-2); }
  .nav-item.active { background: var(--surface-3); }
  .nav-item svg { width: 20px; height: 20px; }
  .nav-fab { order: -1; width: auto; height: 44px; border-radius: var(--r-md); margin-bottom: 14px; gap: 8px; display: flex; justify-content: center; font-weight: 600; font-size: 14px; }
  .nav-fab svg { width: 20px; height: 20px; }
  .nav-fab .fab-label { display: inline !important; }
  .view { padding: 36px 32px 48px; max-width: 760px; margin-left: calc(232px + max(0px, (100vw - 232px - 760px) / 2)); }
  /* Seiten ohne Seitenleiste (Start, Rechtliches, Einrichtung ohne Anmeldung) mittig */
  .view.no-nav { margin-left: auto; margin-right: auto; }
  .view.wide { max-width: 980px; }
}
.fab-label { display: none; }

/* ---------- Typografie ---------- */
.h1 { font: 700 28px/1.15 var(--font-display); letter-spacing: -.5px; margin: 0; }
.h2 { font: 700 20px/1.2 var(--font-display); margin: 0; }
.sub { color: var(--text-3); font-size: 12.5px; margin: 2px 0 0; }
.label { font: 500 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); background: none; border: 0; padding: 4px 0; margin-bottom: 10px; font-size: 13px; }
.back svg { width: 18px; height: 18px; }
.section { margin-top: 22px; }

/* ---------- Flächen ---------- */
.tile { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); padding: 20px; }
.box { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 14px 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stack > * + * { margin-top: 10px; }

.total { font: 600 34px/1.1 var(--font-mono); letter-spacing: -.5px; margin: 4px 0 6px; overflow-wrap: anywhere; }
.delta { font: 700 13px var(--font-mono); }

/* ---------- Chips, Pills ---------- */
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.pills::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .pills { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; } }
.pill, .chip {
  flex: none; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  border-radius: var(--r-md); padding: 8px 12px; font-size: 12px; white-space: nowrap;
}
.pill.round { border-radius: 100px; font-family: var(--font-mono); font-size: 11.5px; padding: 8px 14px; border-color: var(--border-subtle); }
.pill.active, .chip.active { background: var(--surface-3); border-color: var(--holo-2); color: var(--text); }
.pill.round.active { border-color: var(--border-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border-radius: var(--r-sm); padding: 7px 11px; font-size: 12px; }
.tf { display: flex; gap: 14px; margin-top: 14px; }
.tf button { background: none; border: 0; padding: 4px 0; font-size: 11.5px; color: var(--text-3); }
.tf button.active { color: var(--holo-2); font-weight: 700; }

.tag { font: 500 9.5px var(--font-mono); color: var(--text-2); background: var(--surface-3); border-radius: 5px; padding: 2px 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font: 600 10px var(--font-mono); border-radius: 6px; padding: 2px 7px; }
.badge.warn { background: rgba(255,111,122,.12); color: var(--neg); }
.badge.alert { background: rgba(111,124,255,.15); color: #A9B1FF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  border-radius: var(--r-lg); padding: 12px 16px; font-weight: 600; font-size: 14px; text-decoration: none !important;
}
.btn:hover { background: var(--surface-2); }
.btn svg { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.btn.small { padding: 7px 11px; font-size: 12px; border-radius: var(--r-sm); }
.btn.danger { color: var(--neg); border-color: rgba(255,111,122,.35); }
.btn.ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn.outline-holo { border-color: var(--holo-2); color: var(--holo-2); background: none; font-family: var(--font-mono); font-weight: 500; }
.btn-holo {
  width: 100%; border: 0; border-radius: var(--r-lg); padding: 15px 16px;
  background: var(--holo); background-size: 160% 100%; color: var(--bg);
  font-weight: 700; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-position .5s ease, transform .1s;
}
.btn-holo:hover:not(:disabled) { background-position: 100% 0; }
.btn-holo:active:not(:disabled) { transform: scale(.99); }
.btn-holo:disabled { background: var(--surface-3); color: var(--text-2); cursor: not-allowed; }
.btn-holo svg { width: 18px; height: 18px; }
.btn-note { text-align: center; font: 500 11px var(--font-mono); color: var(--text-3); margin-top: 7px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-3); color: var(--text-2); }
.icon-btn.del { color: rgba(255,111,122,.75); }
.icon-btn svg { width: 18px; height: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions > .btn { flex: 1 1 auto; }

/* ---------- Kartenlisten ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg);
  padding: 11px 12px; color: inherit; text-decoration: none !important;
}
a.row:hover, button.row:hover { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-tags { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.row-end { text-align: right; flex: none; }
.row-price { font: 600 14px var(--font-mono); }
.row-delta { font: 500 11px var(--font-mono); }
.row-meta { font-size: 10px; color: var(--text-3); }
.thumb {
  width: 40px; height: 56px; flex: none; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border-strong); background: linear-gradient(145deg, var(--surface-3), var(--surface));
  display: grid; place-items: center; color: var(--text-3);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 18px; height: 18px; opacity: .6; }
.empty { text-align: center; padding: 36px 18px; color: var(--text-2); }
.empty img { margin: 0 auto 12px; width: 120px; height: auto; opacity: .9; }
.empty p { margin: 6px 0 16px; font-size: 13px; color: var(--text-3); }

/* ---------- Formular ---------- */
.field { margin-top: 14px; }
.field > label, .field > .flabel { display: block; font: 500 10.5px var(--font-mono); color: var(--text-2); margin-bottom: 6px; letter-spacing: .02em; }
.input, .textarea, select.input {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 12px 13px; font-size: 15px; color: var(--text); outline: none; transition: border-color .15s, background .15s;
}
.input:focus, .textarea:focus { border-color: var(--holo-2); background: var(--surface-2); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input.mono { font-family: var(--font-mono); font-size: 13px; color: var(--holo-2); }
.textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 11px; color: var(--text-3); margin-top: 5px; }
.inline { display: flex; gap: 8px; }
.inline > .input { flex: 1; min-width: 0; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 9px 6px; font-size: 12.5px; color: var(--text-2); }
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--holo-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); margin-top: 14px; }
.check input { margin-top: 2px; accent-color: var(--holo-2); width: 16px; height: 16px; }
.form-error { color: var(--neg); font-size: 13px; margin-top: 12px; min-height: 1em; }
details.more { margin-top: 16px; border-top: 1px solid var(--border-subtle); padding-top: 6px; }
details.more summary { cursor: pointer; color: var(--text-2); font-size: 13px; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary svg { width: 16px; height: 16px; transition: transform .2s; }
details.more[open] summary svg { transform: rotate(90deg); }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 10px; max-height: 360px; overflow: auto; padding: 2px; }
.cat-item { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 6px; text-align: left; color: inherit; }
.cat-item:hover { border-color: var(--holo-2); }
.cat-item img { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 6px; background: var(--surface-3); }
.cat-item span { display: block; font-size: 10.5px; margin-top: 5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-item small { color: var(--text-3); font: 500 9.5px var(--font-mono); }
.chosen-img { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.chosen-img img { width: 52px; border-radius: 6px; border: 1px solid var(--border-strong); }

/* ---------- Detail ---------- */
.card-art {
  width: 150px; aspect-ratio: 5/7; margin: 4px auto 0; border-radius: 12px; position: relative;
  padding: 2px; background: var(--holo);
}
.card-art > div { width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: linear-gradient(150deg, rgba(111,124,255,.35), rgba(40,214,200,.25) 50%, rgba(205,109,224,.35)), var(--surface-2); display: grid; place-items: center; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art svg { width: 36px; height: 36px; color: rgba(255,255,255,.55); }
.center { text-align: center; }
.attr .k { font: 500 9.5px var(--font-mono); color: var(--text-3); letter-spacing: .05em; text-transform: uppercase; }
.attr .v { font-size: 13.5px; font-weight: 500; margin-top: 2px; overflow-wrap: anywhere; }
.price-big { font: 600 28px var(--font-mono); margin-top: 2px; }
.link-box { font: 400 11px/1.5 var(--font-mono); color: var(--text-2); word-break: break-all; }
.status-line { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); flex: none; }
.dot.fail { background: var(--neg); } .dot.warn { background: var(--warn, #F5B94A); } .dot.none { background: var(--text-3); }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; height: 130px; margin-top: 18px; touch-action: pan-y; }
.chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.chart-empty { height: 130px; margin-top: 18px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); display: grid; place-items: center; text-align: center; color: var(--text-3); font-size: 12px; padding: 12px; }
.chart-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px; padding: 5px 8px;
  font: 500 11px var(--font-mono); white-space: nowrap; opacity: 0; transition: opacity .12s;
}
.chart-tip small { display: block; color: var(--text-3); font-size: 9.5px; }
.chart.hover .chart-tip { opacity: 1; }

/* ---------- Update-Fortschritt ---------- */
.ring { width: 168px; height: 168px; margin: 18px auto 0; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .num { font: 600 26px var(--font-mono); }
.ring .lbl { font: 500 10px var(--font-mono); color: var(--text-3); }
.scanline { height: 3px; border-radius: 3px; background: var(--holo); background-size: 200% 100%; animation: scan 1.6s linear infinite; margin: 18px auto 0; width: 60%; }
@keyframes scan { to { background-position: -200% 0; } }
.items { margin-top: 16px; }
.item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border-subtle); font-size: 12.5px; }
.item:last-child { border-bottom: 0; }
.item .s { font: 500 11px var(--font-mono); flex: none; }
.success-badge { width: 60px; height: 60px; border-radius: 50%; background: var(--holo); display: grid; place-items: center; color: var(--bg); margin: 6px auto 10px; }
.success-badge svg { width: 28px; height: 28px; }
.stat { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 12px 6px; text-align: center; }
.stat .v { font: 600 16px var(--font-mono); overflow-wrap: anywhere; }
.stat .k { font-size: 9px; color: var(--text-3); letter-spacing: .05em; margin-top: 2px; text-transform: uppercase; }

/* ---------- Einstellungen ---------- */
.set-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); padding: 14px 16px; color: inherit; margin-bottom: 8px;
}
button.set-item:hover { background: var(--surface-2); }
.set-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--holo-2); flex: none; }
.set-ico svg { width: 20px; height: 20px; }
.set-item.danger .set-ico { color: var(--neg); }
.set-item.danger .set-t { color: var(--neg); }
.set-t { font-weight: 600; font-size: 14px; }
.set-s { font-size: 11.5px; color: var(--text-3); }
.switch { margin-left: auto; width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; top: 3px; left: 3px; background: var(--text-2); transition: transform .2s, background .2s; }
.switch.on { background: rgba(40,214,200,.35); }
.switch.on::after { transform: translateX(18px); background: var(--holo-2); }

/* dezente Rechtslinks */
.legal-links { margin-top: 36px; text-align: center; font-size: 10.5px; color: var(--text-3); }
.legal-links a { color: var(--text-3); }
.legal-links a:hover { color: var(--text-2); }
.legal-links span { margin: 0 6px; opacity: .5; }
.article { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.article h1 { font: 700 26px var(--font-display); color: var(--text); margin: 0 0 6px; }
.article h2 { font: 700 16px var(--font-display); color: var(--text); margin: 26px 0 6px; }
.article h3 { font-size: 14px; color: var(--text); margin: 18px 0 4px; }
.article p, .article ul { margin: 6px 0 10px; }
.article ul { padding-left: 20px; }
.article .placeholder { background: rgba(255,111,122,.12); color: var(--neg); border-radius: 4px; padding: 0 4px; }
.article .stand { font-size: 12px; color: var(--text-3); margin-top: 28px; }

/* ---------- Auth ---------- */
.auth { max-width: 400px; margin: 0 auto; padding-top: 0; }
.auth h1 { text-align: center; font: 700 28px var(--font-display); margin: 0; letter-spacing: -.5px; }
.auth .tag-line { text-align: center; color: var(--text-2); font-size: 13.5px; margin: 6px 0 18px; }
.auth-intro .feature-list { display: none; }
.auth-foot { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-foot .legal-links { margin-top: 0; }
/* Breite Bildschirme: zweispaltig, alles ohne Scrollen sichtbar */
@media (min-width: 700px) {
  .view.wide { max-width: 980px; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding-top: 24px; padding-bottom: 24px; }
  .view.wide > .auth { width: 100%; }
  .auth { max-width: none; padding-top: 0; display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: clamp(32px, 6vw, 64px); align-items: center; }
  .auth-intro { text-align: left; }
  .auth-intro h1 { text-align: left; font-size: 40px; }
  .auth-intro .tag-line { text-align: left; font-size: 16px; line-height: 1.5; margin: 10px 0 26px; max-width: 420px; }
  .auth-intro .feature-list { display: grid; gap: 14px; margin: 0; }
  .auth-intro .feature-list li { font-size: 14px; }
  .auth-intro .feature-list svg { width: 18px; height: 18px; margin-top: 1px; }
  .auth-foot { flex-direction: row; justify-content: space-between; margin-top: 18px; }
}
@media (max-width: 699px) {
  /* Smartphone: untereinander – Logo, Formular, Vorteile, rechtliche Links */
  .auth { display: flex; flex-direction: column; }
  .auth-intro, .auth-main { display: contents; }
  .auth-intro .feature-list { display: grid; order: 2; margin-top: 16px; gap: 8px; }
  .auth-main > * { order: 1; }
  .auth-main > .auth-foot { order: 3; margin-top: 16px; gap: 8px; }
}
.auth .switch-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.auth .switch-link button { background: none; border: 0; color: var(--holo-2); padding: 0; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.feature-list svg { width: 16px; height: 16px; color: var(--holo-2); flex: none; margin-top: 2px; }

/* ---------- Banner, Toast, Modal ---------- */
#banner-root { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 25; display: flex; justify-content: center; pointer-events: none; padding: 0 12px; }
@media (min-width: 960px) { #banner-root { bottom: 20px; left: 232px; } }
.banner {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 560px; width: 100%;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); color: var(--text); text-decoration: none !important; font-size: 13px;
}
.banner .bar { flex: 1; }
.banner .track { height: 4px; border-radius: 4px; background: var(--surface); overflow: hidden; margin-top: 6px; }
.banner .fill { height: 100%; background: var(--holo); transition: width .4s; }
.banner .spin { width: 18px; height: 18px; border: 2px solid var(--surface); border-top-color: var(--holo-2); border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.banner .warn-ic { color: var(--holo-2); display: flex; flex: none; }
.banner .banner-link { color: var(--holo-2); font-weight: 600; white-space: nowrap; }
#toast-root { position: fixed; top: calc(14px + var(--safe-t)); left: 0; right: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 14px; font-size: 13px; box-shadow: 0 8px 26px rgba(0,0,0,.4); animation: tin .2s ease-out; max-width: 480px; }
.toast.err { border-color: rgba(255,111,122,.5); }
.toast.ok { border-color: rgba(62,217,160,.5); }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(8,9,14,.7); display: grid; place-items: center; padding: 18px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl); padding: 22px; width: 100%; max-width: 420px; max-height: 90vh; overflow: auto; }
.modal h3 { margin: 0 0 8px; font: 700 18px var(--font-display); }
.modal p { margin: 0 0 6px; color: var(--text-2); font-size: 13.5px; }
.modal .actions { margin-top: 18px; }
.alert-card { border-color: rgba(111,124,255,.35); background: linear-gradient(135deg, rgba(111,124,255,.10), rgba(205,109,224,.06)), var(--surface); }

@media (max-width: 380px) {
  .total { font-size: 28px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Sprachauswahl */
.lang-select { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11.5px; }
.lang-select select { background: transparent; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--text-2); padding: 4px 8px; font-size: 11.5px; }
.lang-select select option { background: var(--surface); color: var(--text); }
/* Japanisch: keine Großbuchstaben-Laufweite, Mono-Labels lesbarer */
:lang(ja) .label, :lang(ja) .attr .k, :lang(ja) .stat .k { letter-spacing: 0; font-family: var(--font-body); }

/* Reiter Anmelden | Registrieren */
.auth-tabs { display: flex; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 4px; gap: 4px; margin-bottom: 12px; }
.auth-tabs a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.auth-tabs a:hover { color: var(--text); }
.auth-tabs a.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--holo-2); }

.tile .spin { width: 22px; height: 22px; border: 2px solid var(--surface-3); border-top-color: var(--holo-2); border-radius: 50%; animation: spin 1s linear infinite; }

/* Einrichtung */
.setup-status { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r-lg); padding: 14px 16px; font-size: 13.5px; line-height: 1.5; border: 1px solid var(--border-subtle); background: var(--surface); }
.setup-status svg { flex: none; margin-top: 2px; }
.setup-status.ok { border-color: rgba(62,217,160,.4); background: linear-gradient(135deg, rgba(62,217,160,.10), transparent), var(--surface); }
.setup-status.ok svg { color: var(--pos); }
.setup-status.missing { border-color: rgba(40,214,200,.35); }
.setup-status.missing svg { color: var(--holo-2); }
.setup-status.warn { border-color: rgba(255,111,122,.35); }
.setup-status.warn svg { color: var(--neg); }
.setup-oneclick, .setup-status + .tile { margin-top: 14px; }
.setup-list { margin: 10px 0 6px; padding-left: 20px; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.setup-list li + li { margin-top: 6px; }
.setup-wait { font-size: 12px; margin: 10px 0 0; display: flex; align-items: center; gap: 8px; }
.spin-inline { width: 14px; height: 14px; border: 2px solid var(--surface-3); border-top-color: var(--holo-2); border-radius: 50%; display: inline-block; animation: spin 1s linear infinite; }
.setup-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); background: var(--surface); border: 1px dashed rgba(40,214,200,.45); border-radius: var(--r-md); padding: 9px 12px; margin-bottom: 10px; }
.setup-hint svg { color: var(--holo-2); flex: none; }
.setup-hint span { flex: 1; }
.setup-hint a { font-weight: 600; white-space: nowrap; }
/* Einrichtung: Firefox-Empfehlung */
.setup-recommend { border-color: var(--holo-2); box-shadow: inset 0 0 0 1px rgba(40,214,200,.25); }
.setup-recommend .label, .setup-good { display: flex; align-items: center; gap: 6px; color: var(--holo-2); }
.setup-good { font-size: 13px; margin: 0 0 10px; }
/* kleine Smartphones: Vorteile ausblenden, damit die Startseite ohne Scrollen passt */
@media (max-width: 699px) and (max-height: 880px) { .auth-intro .feature-list { display: none; } }

/* ---------- Version 1.2: Sammlung, Filter, Wunschliste, Verkäufe ---------- */
.nav-desktop { display: none; }
@media (min-width: 960px) { .nav-desktop { display: contents; } .view { max-width: 860px; margin-left: calc(232px + max(0px, (100vw - 232px - 860px) / 2)); } }
.col-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cnt { font: 600 10px var(--font-mono); background: var(--surface-3); color: var(--text-2); border-radius: 20px; padding: 1px 6px; }
.active > .cnt, .outline-holo .cnt { color: var(--holo-2); }
.filter-panel { margin-top: 10px; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 14px; }
.filter-panel .flabel { display: block; margin-bottom: 4px; }
.filter-panel select.input { padding: 9px 10px; font-size: 13px; }
.col-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; }
.col-tools label { display: inline-flex; align-items: center; gap: 8px; }
select.input.small, .input.small { padding: 6px 8px; font-size: 12px; width: auto; border-radius: var(--r-sm); }
.bulk-bar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--holo-2); border-radius: var(--r-lg); font-size: 12.5px; }
.bulk-bar > span { margin-right: auto; font-weight: 600; }
.bulk-mode #col-body .row { outline: 1px dashed transparent; }
.bulk-mode #col-body .row.selected { outline: 2px solid var(--holo-2); background: var(--surface-2); }
.tag.grade { color: #FFD479; background: rgba(255,212,121,.12); }
.tag.folder { color: #A9B1FF; background: rgba(111,124,255,.13); display: inline-flex; align-items: center; gap: 3px; }
.tag.folder svg { width: 10px; height: 10px; }
.tag.user { color: var(--holo-2); background: rgba(40,214,200,.1); }
.tag-suggest { margin-top: 8px; }
.chip.small { padding: 4px 8px; font-size: 11px; }
#card-form.is-wish .own-only, #card-form:not(.is-wish) .wish-only { display: none !important; }
.set-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; margin: 2px 0 8px 52px; }

/* Fortschritt beim Preis-Update */
.progress-tile { margin-top: 18px; padding: 18px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress-pct { font-size: 30px; font-weight: 600; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.progress { height: 12px; border-radius: 20px; background: var(--surface-3); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 20px; background: var(--holo); background-size: 200% 100%; transition: width .6s; animation: holo-move 3s linear infinite; }
@keyframes holo-move { to { background-position: -200% 0; } }
.progress-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.progress-meta .k { font-size: 11px; color: var(--text-3); }
.progress-meta .v { font: 600 15px var(--font-mono); margin-top: 2px; }

/* Statistik */
.stats-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.stats-grid > * { min-width: 0; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.stats-grid .tile { padding: 16px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.bar-label span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label .mono { font-size: 12px; flex: none; }
.bar-track { height: 7px; border-radius: 10px; background: var(--surface-3); margin-top: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--holo-1), var(--holo-2)); }
.bar-fill.neg { background: var(--neg); }
.bar-sub { font-size: 10.5px; margin-top: 2px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl.small td { font-size: 12px; padding: 7px 10px; white-space: nowrap; }

/* Admin */
.admin-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 720px) { .admin-tiles { grid-template-columns: repeat(4, 1fr); } }
.col-chart svg { width: 100%; height: auto; display: block; }
.col-chart + .col-chart { margin-top: 14px; }
.col-chart-axis { display: flex; justify-content: space-between; font-size: 10.5px; margin-top: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; margin-top: 6px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Teilen */
.share-item { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.share-url { font-size: 11.5px; color: var(--holo-2); word-break: break-all; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.share-card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; }
.share-img { aspect-ratio: 63 / 88; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }
.share-img img { width: 100%; height: 100%; object-fit: contain; }
.share-img svg { width: 42px; height: 42px; }
.share-body { padding: 10px 12px 12px; }
.share-body .row-title { white-space: normal; }

/* Zwei-Faktor */
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 210px; height: 210px; margin: 12px auto; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-size: 14px; letter-spacing: .08em; padding: 10px; background: var(--surface-2); border-radius: 10px; margin-top: 6px; word-break: break-all; }
.code-input { font-size: 22px !important; letter-spacing: .3em; text-align: center; color: var(--text) !important; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 12px; font-size: 14px; text-align: center; }

/* Bericht / Inventarliste */
.report { margin-top: 18px; background: #fff; color: #1d1f2b; border-radius: var(--r-lg); padding: 22px; font-size: 12px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid #1d1f2b; padding-bottom: 10px; }
.report-head h1 { font: 700 20px var(--font-display); margin: 0; }
.report-head p { margin: 4px 0 0; color: #6b6e80; }
.report-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; }
.report-sum span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #6b6e80; }
.report-sum b { font: 600 15px var(--font-mono); }
.report-tbl { width: 100%; border-collapse: collapse; }
.report-tbl th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: #6b6e80; border-bottom: 1px solid #c9cbd6; padding: 6px; }
.report-tbl td { border-bottom: 1px solid #e6e7ee; padding: 6px; vertical-align: middle; }
.report-tbl td small { color: #555869; }
.report-tbl .r { text-align: right; white-space: nowrap; }
.report-tbl .img { width: 40px; }
.report-tbl .img img { width: 36px; height: 50px; object-fit: contain; }
.report-tbl tr { break-inside: avoid; }
.report-games { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.report-foot { margin-top: 16px; font-size: 9.5px; color: #8a8d9c; border-top: 1px solid #e6e7ee; padding-top: 8px; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; }
  .nav, #banner-root, #toast-root, .no-print { display: none !important; }
  .view { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .report { margin: 0; padding: 0; border-radius: 0; }
}

/* ===================== v1.3 ===================== */
/* Positionen: Gesamtwert, Stückwert, Einkaufswert */
.row-unit { font: 500 10.5px var(--font-mono); color: var(--text-2); margin-top: 1px; }
.row-cost { font: 500 10.5px var(--font-mono); color: var(--text-3); margin-top: 1px; white-space: nowrap; }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; margin-top: 2px; }
.row.no-img { padding-left: 14px; }
.head-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 480px) { .hide-xs { display: none; } }

/* Filter: Leiste, aktive Filter, gruppierter Bereich */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.active-filters { margin-top: 8px; }
.active-filters .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 11.5px; }
.active-filters .chip svg { opacity: .7; }
.chip.ghost { background: none; border-color: transparent; color: var(--text-3); }
.fgroup { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.fgroup:last-of-type { margin-bottom: 0; }
.fgroup legend { font: 600 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--holo-2); padding: 0; margin-bottom: 8px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fgrid .field { margin: 0; }
.fgroup .ftags { margin: 8px 0 0; }
.filter-panel input.input { padding: 8px 10px; font-size: 13px; }
.filter-panel .fgroup + .fgroup { border-top: 1px solid var(--border-subtle); padding-top: 12px; }

/* Anzeige-Optionen */
.view-panel { margin-top: 10px; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 14px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; padding: 4px 0; }
.check input, .tick input { accent-color: var(--holo-2); width: 17px; height: 17px; margin: 0; flex: none; }

/* Einstellungen: Abschnitte, Sprungmarken, Benachrichtigungs-Matrix */
.set-jump { margin: -6px 0 18px; }
.set-sec { scroll-margin-top: 16px; margin-bottom: 22px; }
.set-h { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.set-h svg { color: var(--holo-2); }
.notify-matrix { padding: 6px 10px 12px; }
.notify-matrix .tbl td, .notify-matrix .tbl th { white-space: normal; vertical-align: middle; }
.notify-matrix .c { text-align: center; width: 72px; }
.notify-matrix th.c { white-space: nowrap; }
.notify-matrix th svg { width: 13px; height: 13px; vertical-align: -2px; }
.nt-t { font-weight: 600; font-size: 13px; color: var(--text); }
.nt-s { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.tick { display: inline-grid; place-items: center; padding: 6px; cursor: pointer; }
.setup-hint.warn { border-color: rgba(255,111,122,.45); }
.setup-hint.warn svg { color: var(--neg); }

/* Navigation: Abmelden ganz unten (Computer) */
.nav-logout { cursor: pointer; font: inherit; text-align: left; }
@media (min-width: 960px) { .nav-logout { margin-top: auto; } }

/* Statistik */
.stats-controls { padding: 14px 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chart-head .legend { margin: 0; font-size: 11px; }
.legend i.dash { background: none; border-top: 2px dashed #6F7CFF; height: 0; border-radius: 0; width: 14px; vertical-align: 3px; }
.chart-axis { display: flex; justify-content: space-between; font: 500 10px var(--font-mono); margin-top: 6px; }
.chart-tip .tip-cost { color: #9AA3FF; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpis .stat .k, .grid-3 .stat .k { line-height: 1.35; }
.kpis .stat .k .faint { text-transform: none; letter-spacing: 0; font-size: 10px; }

/* Einführungstour */
#tour-root { position: fixed; inset: 0; z-index: 200; }
#tour-root.busy { background: rgba(8,9,14,.55); }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8,9,14,.74); outline: 2px solid var(--holo-2); outline-offset: 0; transition: all .25s ease; pointer-events: none; }
.tour-spot.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; outline: 0; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 24px)); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.tour-card h3 { margin: 4px 0 6px; font-size: 16px; }
.tour-card p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.tour-step { font: 500 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--holo-2); }
.tour-dots { display: flex; gap: 4px; margin: 4px 0 12px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.tour-dots i.on { background: var(--holo-2); width: 16px; border-radius: 3px; }
.tour-card .actions { display: flex; gap: 6px; justify-content: flex-end; margin: 0; }
.btn.primary { background: var(--holo-2); border-color: var(--holo-2); color: var(--bg); }
.btn.primary:hover { background: #3fe3d6; }
.admin-controls .item { align-items: center; }
.fgrid .input, .fgrid select.input { width: 100%; min-width: 0; box-sizing: border-box; }
.filter-panel .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.filter-panel .actions .btn { width: auto; flex: 0 0 auto; }

/* ===================== Katalog & Link-Import (1.3) ===================== */
.link-box { background: linear-gradient(135deg, rgba(111,124,255,.10), rgba(46,230,214,.08)); border: 1px solid rgba(46,230,214,.35); border-radius: var(--r-lg); padding: 14px; margin-bottom: 6px; }
.link-box label { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; color: var(--text); }
.link-box label svg { color: var(--holo-2); }
.link-box .hint { margin-top: 8px; line-height: 1.45; }
.hint.ok { color: var(--text-2); }
.hint.ok svg { color: var(--pos); vertical-align: -2px; }
.hint.warn { color: #F5B759; }
.hint svg { vertical-align: -2px; }
.cat-type { margin-top: 10px; }
.cat-item { position: relative; display: flex; flex-direction: column; }
.cat-item .cat-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 5/7; border-radius: 6px; background: var(--surface-3); color: var(--text-3); }
.cat-item .cat-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cat-item small { display: block; white-space: normal; margin-top: 3px; line-height: 1.3; }
.cat-badge { position: absolute; top: 10px; left: 10px; right: 10px; font: 600 8.5px var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .04em; background: rgba(8,9,14,.82); color: var(--holo-2); border-radius: 4px; padding: 2px 5px; text-align: center; }
.catalog { max-height: 460px; }
.link-box label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.link-box .hint { font-family: var(--font-body); font-size: 12px; }
.link-box .hint { word-break: normal; overflow-wrap: break-word; }
/* Währungsauswahl */
.cur-list { display: grid; gap: 4px; max-height: 52vh; overflow: auto; margin: 4px 0 8px; }
.cur-item { display: grid; grid-template-columns: 20px 44px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--border-subtle); border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.cur-item:has(input:checked) { border-color: var(--holo-2); background: rgba(46,230,214,.07); }
.cur-item.off { opacity: .45; cursor: not-allowed; }
.cur-item input { accent-color: var(--holo-2); margin: 0; }
.cur-code { font-weight: 600; color: var(--text); }
.cur-item .faint { font-size: 11px; }
.discard-btn { color: var(--text-3); }

/* ---------- Bebilderte Einrichtung (nachgebaute Browser-/Windows-Ausschnitte) ---------- */
.guide { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.guide > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.guide-n { width: 26px; height: 26px; border-radius: 50%; background: var(--holo); color: #0b0c12; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.guide-c > p { margin: 3px 0 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.guide-c .btn { margin-top: 2px; }
.ill { position: relative; background: #fff; color: #1f1f1f; border-radius: 10px; padding: 12px; max-width: 440px; font: 12.5px/1.3 "Segoe UI", system-ui, -apple-system, sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.35); overflow: hidden; }
.ill + .ill { margin-top: 10px; }
.ill-hl { position: relative; outline: 2px solid #28d6c8; outline-offset: 2px; border-radius: 6px; box-shadow: 0 0 0 6px rgba(40,214,200,.25); animation: ill-pulse 1.8s ease-in-out infinite; }
@keyframes ill-pulse { 50% { box-shadow: 0 0 0 9px rgba(40,214,200,.12); } }
@media (prefers-reduced-motion: reduce) { .ill-hl { animation: none; } }
.ill-cursor { position: absolute; width: 20px; height: 20px; right: -6px; bottom: -12px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.ill-explorer { background: #f3f3f3; }
.ill-file { display: inline-flex; align-items: center; gap: 6px; background: #cce4f7; border: 1px solid #99c9ef; border-radius: 4px; padding: 4px 8px; }
.ill-menu { margin: 6px 0 4px 40px; background: #fff; border: 1px solid #d5d5d5; border-radius: 8px; padding: 4px; width: max-content; max-width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.ill-menu > div { padding: 6px 28px 6px 12px; }
.ill-menu .ill-sep { height: 1px; padding: 0; margin: 3px 6px; background: #e1e1e1; }
.ill-chrome-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ill-chrome-head b { font-size: 16px; font-weight: 500; }
.ill-search { flex: 1; min-width: 40px; height: 24px; border-radius: 12px; background: #e9eef6; }
.ill-dev { display: inline-flex; align-items: center; gap: 8px; padding: 3px 6px; margin-right: 6px; }
.ill-toggle { width: 28px; height: 14px; border-radius: 7px; background: #0b57d0; position: relative; display: inline-block; }
.ill-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.ill-chrome-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ill-pill { border: 1px solid #a8c7fa; color: #0b57d0; border-radius: 16px; padding: 6px 12px; font-weight: 600; font-size: 12px; }
.ill-pill:not(.ill-hl) { opacity: .55; }
.ill-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 4px; }
.ill-row.ill-hl { background: #cce4f7; margin-bottom: 6px; }
.ill-dim { opacity: .45; }
.ill-foot { display: flex; justify-content: flex-end; border-top: 1px solid #ddd; margin-top: 8px; padding-top: 8px; }
.ill-btn { background: #0067c0; color: #fff; border-radius: 4px; padding: 5px 14px; }
.setup-ffalt { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.setup-ffalt > div { flex: 1; min-width: 200px; }
.setup-ffalt .label { display: flex; align-items: center; gap: 6px; color: var(--holo-2); }
.store-soon { margin: 0 0 12px; }

/* ---------- Verkauf erfassen ---------- */
.qty-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qty-row .input { width: 90px; text-align: center; }
.qty-row .btn { min-width: 36px; justify-content: center; font-size: 16px; }
.seg.seg-sm { display: inline-flex; margin-bottom: 8px; }
.seg.seg-sm button { padding: 6px 12px; font-size: 12.5px; white-space: nowrap; }
.input-unit { position: relative; }
.input-unit .input { padding-right: 34px; }
.input-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sale-sum { background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; }
.sale-sum:empty { display: none; }
.sale-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.sale-sum > div + div { margin-top: 4px; }
.sale-sum p { margin: 8px 0 0; font-size: 12px; }
.icon-btn.sell { color: var(--pos); }
.input.invalid { border-color: var(--neg); box-shadow: 0 0 0 3px rgba(255,111,122,.18); }
.upd-extra { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.upd-extra:empty { display: none; }

/* Auswahl vor dem Update: Sammlung / Wunschliste */
.scope-list { display: grid; gap: 8px; }
.scope-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); cursor: pointer; }
.scope-opt:has(input:checked) { border-color: var(--holo-2); box-shadow: inset 0 0 0 1px rgba(40,214,200,.25); }
.scope-opt input { width: 18px; height: 18px; accent-color: var(--holo-2); flex: none; margin: 0; }
.scope-opt .scope-ic { color: var(--holo-2); display: flex; }
.scope-opt .scope-txt { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.scope-opt .scope-txt .faint { font-size: 12px; }
.scope-opt.none .scope-ic { color: var(--text-3); }

/* ---------- Startseite: aufgefächerter Kartenstapel mit Holo-Karte ---------- */
.tcg-fan { --cw: 132px; position: relative; width: calc(var(--cw) * 2.05); height: calc(var(--cw) * 1.62); margin: 0 auto 10px; }
.tcg-fan::before { content: ""; position: absolute; inset: -18% -30%; background: radial-gradient(closest-side, rgba(124,131,255,.24), rgba(45,212,191,.10) 55%, transparent 75%); filter: blur(8px); pointer-events: none; }
.tcg-stack { position: absolute; inset: 0; }
.tcg-card { position: absolute; top: 4%; left: calc(50% - var(--cw) / 2); width: var(--cw); aspect-ratio: 5 / 7; border-radius: calc(var(--cw) * .065); transform-origin: 50% 115%;
  transition: rotate .45s cubic-bezier(.34,1.56,.64,1), translate .45s cubic-bezier(.34,1.56,.64,1); }
/* Kartenrückseite (auch Rückseite der Holo-Karte beim Umdrehen) */
.tcg-back { border: calc(var(--cw) * .035) solid #2c3170; box-shadow: 0 10px 24px rgba(0,0,0,.45); border-radius: calc(var(--cw) * .065);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 5px, transparent 5px 10px), linear-gradient(160deg, #343a86, #171a3d); }
.tcg-back::after { content: ""; position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; translate: -50% -50%; rotate: 45deg;
  border: 2px solid rgba(255,255,255,.22); outline: 1px solid rgba(255,255,255,.10); outline-offset: calc(var(--cw) * .04); border-radius: 4px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.tcg-b1 { rotate: -15deg; translate: calc(var(--cw) * -.32) 0; }
.tcg-b2 { rotate: 11deg; translate: calc(var(--cw) * .34) 2%; border-color: #12504c;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 5px, transparent 5px 10px), linear-gradient(160deg, #136660, #0b2d2b); }
/* Holo-Karte: außen kippt sie mit dem Zeiger, innen dreht sie sich beim Auftritt um */
.tcg-front { rotate: -2deg; transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transform-style: preserve-3d; z-index: 2;
  transition: transform .25s ease-out, rotate .45s cubic-bezier(.34,1.56,.64,1), translate .45s cubic-bezier(.34,1.56,.64,1); }
.tcg-flip { position: absolute; inset: 0; transform-style: preserve-3d; border-radius: inherit; }
.tcg-face, .tcg-rear { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tcg-rear { transform: rotateY(180deg); }
.tcg-face { overflow: hidden; padding: calc(var(--cw) * .04); background: linear-gradient(135deg, #f6d77a, #c8a24a 30%, #fff1b8 50%, #b8913a 70%, #f3d27a);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.15) inset; }
.tcg-frame { position: relative; height: 100%; border-radius: calc(var(--cw) * .04); background: linear-gradient(180deg, #23263a, #171925); display: flex; flex-direction: column; gap: calc(var(--cw) * .035); padding: calc(var(--cw) * .045); }
.tcg-name { display: flex; justify-content: space-between; align-items: center; font: 700 calc(var(--cw) * .085)/1 var(--font-display); color: #f4f5fb; letter-spacing: -.01em; }
.tcg-gem, .tcg-rarity { width: calc(var(--cw) * .07); aspect-ratio: 1; rotate: 45deg; background: linear-gradient(135deg, #8ff2e3, #7c83ff); border-radius: 2px; flex: none; }
.tcg-art { flex: 1; min-height: 0; border-radius: calc(var(--cw) * .03); background: radial-gradient(circle at 50% 40%, #3b3f7a, #1a1c34 70%); border: 1px solid rgba(246,215,122,.55); display: grid; place-items: center; overflow: hidden; }
.tcg-art img { width: 78%; height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.tcg-text { display: grid; gap: calc(var(--cw) * .025); padding: 0 2%; }
.tcg-text i { display: block; height: calc(var(--cw) * .022); border-radius: 2px; background: rgba(244,245,251,.16); }
.tcg-text i:nth-child(2) { width: 82%; } .tcg-text i:nth-child(3) { width: 58%; }
.tcg-foot { display: flex; justify-content: space-between; align-items: center; font: 500 calc(var(--cw) * .052)/1 var(--font-display); color: rgba(244,245,251,.55); }
.tcg-rarity { width: calc(var(--cw) * .05); }
.tcg-foil, .tcg-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tcg-foil { background: repeating-linear-gradient(115deg, #ff7eb6 0%, #f5c84c 8%, #8ff2e3 16%, #7c83ff 24%, #ff7eb6 32%);
  background-size: 260% 260%; background-position: var(--mx, 30%) var(--my, 30%); mix-blend-mode: color-dodge; opacity: .24; }
.tcg-glare { background: radial-gradient(circle at var(--mx, 35%) var(--my, 25%), rgba(255,255,255,.38), transparent 45%); mix-blend-mode: soft-light; }
/* Funkeln rund um die Holo-Karte */
.tcg-spark { position: absolute; width: calc(var(--cw) * .1); aspect-ratio: 1; z-index: 3; opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, #fff, #9ff3e6); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 4px rgba(159,243,230,.9)); }
.tcg-spark.s1 { left: 62%; top: 0; } .tcg-spark.s2 { left: 28%; top: 30%; width: calc(var(--cw) * .07); }
.tcg-spark.s3 { left: 70%; top: 62%; width: calc(var(--cw) * .08); } .tcg-spark.s4 { left: 34%; top: 82%; width: calc(var(--cw) * .06); }

@media (prefers-reduced-motion: no-preference) {
  /* 1) Auftritt: Karten fliegen federnd herein, die Holo-Karte dreht sich um */
  .tcg-card { animation: tcg-deal .75s cubic-bezier(.34,1.56,.64,1) backwards; }
  .tcg-b1 { animation-delay: .05s; } .tcg-b2 { animation-delay: .15s; } .tcg-front { animation-delay: .25s; }
  .tcg-flip { animation: tcg-flip 1s .55s cubic-bezier(.3,1.25,.45,1) backwards; }
  /* 2) Ruhezustand: Stapel schwebt, Folie wechselt langsam die Farbe, regelmäßiger Glanz, Funkeln */
  .tcg-stack { animation: tcg-float 6s 1.7s ease-in-out infinite; }
  .tcg-foil { animation: tcg-hue 9s 1.6s linear infinite; }
  .tcg-face::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
    translate: -120% 0; animation: tcg-sheen 6.5s 1.5s ease-in-out infinite; pointer-events: none; }
  .tcg-spark { animation: tcg-twinkle 3.4s ease-in-out infinite; }
  .tcg-spark.s1 { animation-delay: 1.9s; } .tcg-spark.s2 { animation-delay: 2.8s; } .tcg-spark.s3 { animation-delay: 3.6s; } .tcg-spark.s4 { animation-delay: 4.5s; }
  /* 3) Maus darüber: Fächer öffnet sich weiter, Holo-Karte hebt sich */
  @media (hover: hover) {
    .tcg-fan:hover .tcg-b1 { rotate: -24deg; translate: calc(var(--cw) * -.5) 2%; }
    .tcg-fan:hover .tcg-b2 { rotate: 19deg; translate: calc(var(--cw) * .52) 4%; }
    .tcg-fan:hover .tcg-front { rotate: 0deg; translate: 0 -4%; }
  }
}
@keyframes tcg-deal { from { rotate: 0deg; translate: 0 40px; scale: .86; opacity: 0; } }
@keyframes tcg-flip { from { transform: rotateY(180deg); } }
@keyframes tcg-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes tcg-hue { to { filter: hue-rotate(360deg); } }
@keyframes tcg-sheen { 0% { translate: -120% 0; } 22%, 100% { translate: 120% 0; } }
@keyframes tcg-twinkle { 0%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 12% { opacity: 1; scale: 1; } 26% { opacity: 0; scale: .3; rotate: 90deg; } }
.auth-intro h1 { background: linear-gradient(100deg, #ffffff 10%, #d9dcff 45%, #9ff3e6 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 700px) {
  .tcg-fan { --cw: clamp(112px, 14vh, 150px); margin: 0 0 18px calc(var(--cw) * -.1); }
  .auth-intro h1 { font-size: 44px; letter-spacing: -1px; }
}
@media (max-width: 699px) {
  .tcg-fan { --cw: 54px; margin: 0 auto 2px; }
}
@media (max-width: 699px) and (max-height: 680px) { .tcg-fan { display: none; } }
@media (max-width: 699px) and (max-height: 700px) {
  .auth h1 { font-size: 24px; }
  .auth .tag-line { margin: 4px 0 12px; }
  .auth-foot { margin-top: 12px; }
  .auth .switch-link { margin-top: 10px; }
}

/* ---------- Filter: Dropdown mit Mehrfachauswahl ---------- */
.msel { position: relative; }
.msel > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 9px 30px 9px 10px; font-size: 13px; position: relative; user-select: none; }
.msel > summary::-webkit-details-marker { display: none; }
.msel > summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); translate: 0 -70%; rotate: 45deg; transition: rotate .15s, translate .15s; }
.msel[open] > summary::after { rotate: 225deg; translate: 0 -20%; }
.msel[open] > summary { border-color: var(--holo-2); }
.msel-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.msel-sum.on { color: var(--text); }
.msel > summary .cnt { flex: none; }
.msel-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: min(280px, 80vw); max-height: 260px; overflow: auto;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 6px; box-shadow: 0 14px 32px rgba(0,0,0,.45); }
.msel-opt { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.msel-opt:hover { background: rgba(255,255,255,.05); }
.msel-opt input { width: 16px; height: 16px; accent-color: var(--holo-2); margin: 0; flex: none; }
.msel-opt:has(input:checked) span { color: var(--text); font-weight: 600; }
.msel-clear { display: block; width: 100%; margin-top: 4px; padding: 7px 8px; border: 0; border-top: 1px solid var(--border-subtle); background: none; color: var(--holo-2); font-size: 12.5px; text-align: left; cursor: pointer; border-radius: 0 0 8px 8px; }
/* rechte Spalte: Liste nach links aufklappen, damit sie nicht aus dem Bild ragt */
@media (min-width: 720px) { .fgrid > .field:nth-child(4n) .msel-pop { left: auto; right: 0; } }
@media (max-width: 719px) { .fgrid > .field:nth-child(2n) .msel-pop { left: auto; right: 0; } }
/* Manuelle Installation als kleine Ausweich-Variante unter dem Store-Button */
.manual-alt-wrap { margin-top: 10px; }
.manual-alt > summary { font-size: 13px; color: var(--text-2); }
.setup-update .manual-alt { margin-top: 12px; border-top: 1px solid var(--border-subtle); padding-top: 4px; }

/* Anmeldung: „Angemeldet bleiben“ */
.check.remember-me { margin: 4px 0 2px; align-items: flex-start; }
.check.remember-me b { color: var(--text); font-weight: 600; }
.check.remember-me .faint { font-size: 12px; }
@media (max-width: 699px) and (max-height: 700px) { .check.remember-me .faint { display: none; } .check.remember-me { margin: 0; } }

/* ---------- Sammlung gruppieren (Spiel / Art) ---------- */
.col-tools { flex-wrap: wrap; }
.col-group + .col-group { margin-top: 14px; }
.group-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 4px; margin-bottom: 8px; background: none; border: 0; border-bottom: 1px solid var(--border-subtle); color: var(--text); font: 600 15px var(--font-display); cursor: pointer; text-align: left; }
.group-head svg { width: 16px; height: 16px; flex: none; transition: transform .15s; transform: rotate(90deg); color: var(--text-2); }
.group-head[aria-expanded="false"] svg { transform: rotate(0deg); }
.group-head[aria-expanded="false"] { margin-bottom: 0; }
.group-name { flex: 1; }
.group-sum { font: 500 12px var(--font-body); color: var(--text-2); }
.group-head:focus-visible { outline: 2px solid var(--holo-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Ordner-Explorer ---------- */
.explorer { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.ex-tree { position: sticky; top: calc(var(--safe-t) + 12px); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 8px; max-height: calc(100dvh - 140px); overflow: auto; }
.ex-tree-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.ex-tree-head .icon-btn { width: 30px; height: 30px; }
.ex-list-tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ex-node { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 8px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; color: var(--text); font: 500 14px var(--font-body); cursor: pointer; text-align: left; }
.ex-node svg { flex: none; color: var(--text-2); }
.ex-node:hover { background: var(--surface-2); }
.ex-node.active { background: var(--surface-3); }
.ex-node.active svg { color: var(--holo-2); }
.ex-node:focus-visible { outline: 2px solid var(--holo-2); outline-offset: -2px; }
.ex-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-node .cnt { font: 500 12px var(--font-mono); color: var(--text-3); }
.ex-node.editing { padding: 4px 6px; cursor: default; }
.ex-node.editing .input { flex: 1; min-width: 0; padding: 6px 8px; }
.explorer.dragging .ex-node[data-drop] { border-color: var(--border-strong); border-style: dashed; }
.ex-node.drop-over, .explorer.dragging .ex-node.drop-over { border: 1px solid var(--holo-2); background: rgba(40, 214, 200, .12); }
.ex-main { min-width: 0; }
.ex-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ex-head .h2 { display: flex; align-items: center; gap: 8px; }
.ex-head .h2 svg { color: var(--holo-2); }
.ex-actions { display: flex; gap: 6px; flex: none; }
.danger-text { color: var(--neg) !important; }
.ex-selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; }
.ex-selbar[hidden] { display: none; }
.ex-selbar select { max-width: 220px; }
.ex-cards { user-select: none; -webkit-user-select: none; }
.ex-cards .row { position: relative; }
.ex-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); color: transparent; transition: background .12s, border-color .12s; }
.ex-cards .row.ex-selected { background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--holo-2); }
.ex-cards .row.ex-selected .ex-check { background: var(--holo-2); border-color: var(--holo-2); color: var(--bg); }
.explorer.dragging .ex-cards .row.ex-selected { opacity: .55; }
.ex-hint { margin-top: 12px; font-size: 12px; color: var(--text-3); }
.ex-empty { padding: 28px 10px; }
.ex-drag-ghost { position: fixed; top: -100px; left: -100px; padding: 6px 12px; border-radius: 999px; background: var(--holo-2); color: #0b1d1c; font: 600 13px var(--font-body); white-space: nowrap; }
.ctx-menu { position: fixed; z-index: 90; min-width: 200px; max-width: 280px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.ctx-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 14px var(--font-body); text-align: left; cursor: pointer; }
.ctx-menu button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-menu button svg { width: 15px; height: 15px; flex: none; color: var(--text-2); }
.ctx-menu button:hover, .ctx-menu button:focus-visible { background: var(--surface-3); outline: none; }
@media (max-width: 720px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .ex-tree { position: static; max-height: none; padding: 6px; }
  .ex-tree-head { padding: 2px 6px 6px; }
  .ex-list-tree { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }
  .ex-li { flex: none; }
  .ex-node { width: auto; max-width: 200px; padding: 7px 10px; background: var(--surface-2); border-radius: 999px; }
  .ex-node.editing { width: 200px; }
  .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) { .group-head svg, .ex-check { transition: none; } }

/* ---------- Karte nicht auf Cardmarket ---------- */
.subtle-check { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.subtle-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--holo-2); }
#card-form .nocm-only { display: none; }
#card-form.no-cm .nocm-only { display: block; }
#card-form.no-cm span.nocm-only { display: inline; }
#card-form.no-cm .cm-only, #card-form.no-cm .link-box > .inline, #card-form.no-cm #url-status, #card-form.no-cm .link-box > label[for="f-url"] { display: none; }
#card-form.no-cm .link-box .subtle-check { margin-top: 8px; }
.tag.manual { color: var(--text-2); border-style: dashed; }

/* ---------- Diagramm-Achsen (dezent) ---------- */
.chart.has-axes { margin-bottom: 20px; }
.chart .grid-line { stroke: rgba(255, 255, 255, .06); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .grid-tick { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.chart-y, .chart-x { position: absolute; pointer-events: none; font: 500 9.5px var(--font-mono); color: var(--text-3); letter-spacing: .01em; }
.chart-y { inset: 0; }
.chart-y span { position: absolute; left: 2px; transform: translateY(-115%); white-space: nowrap; text-shadow: 0 0 4px var(--bg), 0 0 2px var(--bg); }
.chart-x { left: 0; right: 0; top: 100%; height: 18px; }
.chart-x span { position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap; }
.chart-x span.start { transform: none; }
.chart-x span.end { transform: translateX(-100%); }
@media (max-width: 420px) { .chart-y span, .chart-x span { font-size: 9px; } }

/* ---------- Teilen: Editor, Liste, öffentliche Ansicht ---------- */
.share-ed .field { margin-top: 12px; }
.share-ed .chips { gap: 6px; }
.share-req { margin-top: 14px; align-items: flex-start; }
.share-req input { margin-top: 3px; }
.share-item-head { font-size: 14px; margin-bottom: 2px; }
.share-hint { display: flex; gap: 10px; align-items: center; font-size: 13px; margin-top: 12px; }
.share-hint svg { color: var(--holo-2); flex: none; }
.share-card.requested { box-shadow: inset 0 0 0 1.5px var(--holo-2); }
.share-req-ctl { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.share-req-ctl label { font-size: 12px; display: flex; gap: 6px; align-items: center; }
.share-req-ctl select { width: auto; padding: 4px 8px; }
.share-notes { margin-top: 6px; font-size: 12px; color: var(--text-2); white-space: pre-wrap; }
.share-bar { position: fixed; left: 50%; bottom: calc(16px + var(--safe-b, 0px)); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); font-size: 13px; font-weight: 600; max-width: calc(100vw - 24px); }
.share-bar .btn-holo.small { padding: 8px 14px; font-size: 13px; width: auto; }
.share-req-list { margin: 0 0 6px; padding-left: 18px; font-size: 13px; color: var(--text-2); max-height: 140px; overflow: auto; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 480px) { .share-bar { left: 12px; right: 12px; transform: none; border-radius: var(--r-lg); flex-wrap: wrap; justify-content: space-between; } }

/* ---------- Bericht: Spaltenauswahl ---------- */
.report-cols { margin-top: 12px; }
.report-cols > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.report-cols > summary::-webkit-details-marker { display: none; }
.report-cols > summary svg { width: 15px; height: 15px; transition: transform .15s; }
.report-cols[open] > summary svg { transform: rotate(90deg); }
.report-col-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.report-col-groups fieldset { border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 6px 10px 8px; margin: 0; min-width: 0; }
.report-col-groups legend { font-size: 11.5px; color: var(--text-3); padding: 0 4px; }
.report-col-groups .check { margin: 0; padding: 3px 0; }
@media (max-width: 640px) { .report-col-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .report-col-groups fieldset:last-child { grid-column: 1 / -1; } }
.link-box .subtle-check, .link-box .subtle-check span { font-weight: 500; color: var(--text-2); font-size: 12.5px; }
.share-img.no-img { aspect-ratio: auto; height: 84px; }
.share-img.no-img svg { width: 30px; height: 30px; }
.report-col-btns { display: flex; gap: 6px; margin-top: 8px; } .report-col-btns .btn { flex: none; }

/* ---------- Markttrend ---------- */
.mk-controls { display: flex; flex-direction: column; gap: 10px; }
.mk-controls .seg { align-self: flex-start; }
.mk-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.mk-filters label.faint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.mk-filters select { width: auto; }
.mk-filters .check { margin: 0; }
.mk-tiles { margin-top: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mk-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.mk-change { font: 600 12.5px var(--font-mono); white-space: nowrap; }
.mk-meta { font-size: 11px; white-space: nowrap; }
.det-trend b { color: var(--text-2); font-weight: 600; }
@media (max-width: 640px) { .mk-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mk-meta { white-space: normal; } .mk-row .row-tags { display: none; } }

/* ---------- Preisänderungen eines Laufs ---------- */
.modal.modal-wide { max-width: 720px; }
.rc-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 600 13px var(--font-mono); margin-bottom: 10px; }
.rc-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.rc-sort { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.rc-sort select { width: auto; }
.rc .filter-bar { flex-wrap: wrap; }
.rc-q { flex: 1; min-width: 140px; }
.rc-modal .rc-list { max-height: 42vh; overflow: auto; padding-right: 2px; }
.rc-modal .filter-panel { max-height: 40vh; overflow: auto; }
@media (max-width: 480px) { .modal.modal-wide { padding: 16px; } .rc-modal .rc-list { max-height: 38vh; } }
@media (max-width: 480px) { .mk-right { max-width: 54%; } .mk-change { white-space: normal; text-align: right; } .mk-row .row-main { min-width: 0; } }
.of-builtin > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.of-builtin > summary::-webkit-details-marker { display: none; }
.of-builtin > summary svg { width: 14px; height: 14px; transition: transform .15s; }
.of-builtin[open] > summary svg { transform: rotate(90deg); }
#of-list .chip svg { width: 11px; height: 11px; margin-left: 2px; }

/* ---------- Pause bei Sicherheitsabfrage ---------- */
.bot-pause .steps-list { margin: 0 0 10px; padding-left: 20px; font-size: 13.5px; line-height: 1.5; }
.bot-pause .steps-list li { margin: 2px 0; }
.bot-why { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.bot-why svg { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.bot-tile { border-color: var(--holo-2); }

/* ---------- Einzelkarte suchen / scannen ---------- */
.quick-add { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.qa-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.qa-btn:hover { border-color: var(--holo-2); background: var(--surface-2); }
.qa-btn svg { color: var(--holo-2); flex: none; }
.qa-btn b { display: block; font-size: 14px; }
.qa-btn small { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.qa-btn:focus-visible { outline: 2px solid var(--holo-2); outline-offset: 2px; }
@media (max-width: 420px) { .qa-btn { padding: 10px; gap: 8px; } .qa-btn small { display: none; } }
body.sheet-open { overflow: hidden; }
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow: auto; }
.sheet { max-width: 900px; margin: 0 auto; padding: calc(var(--safe-t) + 10px) 16px calc(var(--safe-b, 0px) + 24px); }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 2; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 8px; }
.qa-item { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--border-subtle); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; font: inherit; min-width: 0; }
.qa-item:hover, .qa-item:focus-visible { border-color: var(--holo-2); outline: none; }
.qa-item img, .qa-item .cat-ph { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }
.qa-name { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qa-item small { font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-detail { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 8px; }
.qa-big img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.qa-big > svg { width: 60px; height: 60px; color: var(--text-3); }
.qa-fields .field { margin-top: 14px; }
.qa-prints { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.qa-print { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-md); border: 1px solid var(--border-subtle); cursor: pointer; }
.qa-print:has(input:checked) { border-color: var(--holo-2); background: var(--surface-2); }
.qa-print input { margin-top: 3px; accent-color: var(--holo-2); }
.qa-print b { display: block; font-size: 13px; }
.qa-print small { display: block; font-size: 11.5px; color: var(--text-2); }
.qa-cands { margin-bottom: 6px; }
.qa-cand-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.qa-cand { flex: none; width: 96px; display: flex; flex-direction: column; gap: 3px; padding: 5px; border: 1px solid var(--border-subtle); border-radius: var(--r-md); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.qa-cand.active { border-color: var(--holo-2); }
.qa-cand img { width: 100%; border-radius: 5px; }
.qa-cand span { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-cand small { font-size: 10px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .qa-detail { grid-template-columns: minmax(0, 1fr); } .qa-big { max-width: 220px; margin: 0 auto; } }
.scan-view { position: relative; margin-top: 12px; border-radius: var(--r-lg); overflow: hidden; background: #000; height: min(68vh, 640px); }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-mask { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scan-frame { position: relative; height: 86%; aspect-ratio: 63 / 88; max-width: 92%; border-radius: 14px; border: 2px solid var(--holo-2); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); }
.scan-zone { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .75); border-radius: 4px; }
.scan-zone.name { border-color: rgba(40, 214, 200, .7); }
.scan-tip { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font-size: 12.5px; color: #fff; text-shadow: 0 1px 4px #000; }
.scan-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.scan-actions .btn-holo { flex: 1; }
.scan-preview { float: right; width: 90px; margin: 0 0 8px 12px; }
.scan-preview img { width: 100%; border-radius: 8px; }
.scan-read { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.scan-read .input { width: auto; flex: 1; min-width: 120px; }
.hint.warn { color: var(--warn, #e0a33a); }

/* ---------- Schätzwert aus dem Cardmarket Price Guide (Karten ohne eigenen Preis) ---------- */
:root { --guide: #E9B44C; --guide-soft: rgba(233,180,76,.14); }
.guide-price { color: var(--guide); font-style: italic; }
.price-big .guide-price { font-style: normal; }
.gi {
  display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; vertical-align: 2px;
  border-radius: 50%; border: 1px solid var(--guide); color: var(--guide); background: var(--guide-soft);
  font: 700 10px/1 var(--font-body); font-style: normal; cursor: pointer; flex: none;
}
.price-big .gi { width: 18px; height: 18px; font-size: 11.5px; vertical-align: 6px; margin-left: 8px; }
.gi:hover { background: var(--guide); color: var(--bg); }
.gi:focus-visible { outline: 2px solid var(--guide); outline-offset: 2px; }
.row-price .gi { position: relative; }
.row-price .gi::after { content: ""; position: absolute; inset: -9px; }   /* größere Tippfläche am Handy */
.pg-info p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; }
.pg-info .hint { margin-top: 12px; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 6px; }
.pg-table td { padding: 5px 0; border-bottom: 1px solid var(--border-subtle); color: var(--text-2); }
.pg-table td + td { text-align: right; color: var(--text); }
.pg-table tr.pg-main td { color: var(--guide); font-weight: 600; }
#update-wrap { border-radius: var(--r-lg); }
#update-wrap.flash { animation: cv-flash 2.2s ease-out; }
@keyframes cv-flash { 0%, 35% { box-shadow: 0 0 0 3px var(--guide); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { #update-wrap.flash { animation: none; outline: 3px solid var(--guide); outline-offset: 2px; } }
.pg-table th { font: 600 10.5px var(--font-body); color: var(--text-3); text-align: right; padding: 0 0 4px 8px; }
.pg-table td + td { padding-left: 10px; white-space: nowrap; }
.price-big + .mono { margin-top: 2px; }
.total .gi-total { width: 18px; height: 18px; font-size: 11.5px; vertical-align: 8px; margin-left: 8px; }
.stat .v .gi-total { vertical-align: 3px; }

/* ---------- Fortschrittsleiste während eines Updates (unten, auf allen Seiten) ---------- */
.run-banner { align-items: center; }
.run-banner .bar { min-width: 0; }
.run-banner .rb-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.run-banner .rb-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.run-banner .rb-count { font-size: 11.5px; white-space: nowrap; flex: none; }
.run-banner .rb-sub { margin-top: 5px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-banner .rb-sub b { color: var(--text); font-weight: 600; }
.run-banner .rb-ic { display: flex; flex: none; }
.run-banner .rb-ic.warn { color: var(--guide, #E9B44C); }
.run-banner .rb-ic.neg { color: var(--neg); }
.run-banner.is-warn { border-color: rgba(233,180,76,.5); }
.run-banner.is-warn .fill { background: var(--guide, #E9B44C); }
.run-banner.is-err { border-color: rgba(255,111,122,.5); }
.run-banner.is-err .fill { background: var(--neg); }
#min-run svg { vertical-align: -4px; margin-right: 4px; }

/* ---------- Admin: Reiter und Systemprüfung ---------- */
.admin-tabs { margin: 4px 0 18px; max-width: 460px; }
.admin-tabs button svg { vertical-align: -3px; margin-right: 3px; }
.chk-sum { padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; }
.chk-sum.ok { border-color: var(--pos); } .chk-sum.warn { border-color: #F5B94A; } .chk-sum.fail { border-color: var(--neg); }
.chk-list { padding: 0; overflow: hidden; }
.chk-row { display: grid; grid-template-columns: 26px minmax(140px, 220px) 1fr; gap: 3px 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); align-items: start; font-size: 13px; }
.chk-row:last-child { border-bottom: 0; }
.chk-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font-body); color: var(--bg); }
.chk-ic.ok { background: var(--pos); } .chk-ic.warn { background: #F5B94A; } .chk-ic.fail { background: var(--neg); } .chk-ic.info { background: var(--holo-1); }
.chk-lab { font-weight: 600; }
.chk-det { color: var(--text-2); word-break: break-word; }
@media (max-width: 640px) { .chk-row { grid-template-columns: 26px 1fr; } .chk-det { grid-column: 2; } }

/* ---------- Verbesserung vorschlagen ---------- */
.nav-feedback { cursor: pointer; font: inherit; text-align: left; opacity: .72; }
.nav-feedback:hover, .nav-feedback:focus-visible { opacity: 1; }
#fb-msg { resize: vertical; min-height: 120px; font: inherit; line-height: 1.45; }
.fb-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.fb-file svg { vertical-align: -2px; }
@media (min-width: 960px) { .nav-feedback { margin-top: auto; font-size: 13px; } .nav-feedback + .nav-logout, .nav-desktop:has(.nav-feedback) + .nav-desktop .nav-logout { margin-top: 0; } }
.cat-item .cat-set { display: block; font-size: 10.5px; opacity: .8; margin-top: 1px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
.cat-item small:has(.cat-set) { white-space: normal; overflow: visible; }

/* ---------- Beta-Kennzeichnung (Einzelkarte scannen) ---------- */
.beta { display: inline-block; font: 700 9.5px/1 var(--font-body); font-style: normal; letter-spacing: .02em; padding: 3px 6px; margin-left: 4px;
  border-radius: 999px; color: #1A1306; background: #F5B94A; vertical-align: 2px; }
.scan-beta { margin: 0 0 10px; }

/* ---------- Gewünschter Verkaufspreis ---------- */
.check-line, .field label.check-line { display: flex; align-items: center; gap: 8px; font: 400 13px var(--font-body); text-transform: none; letter-spacing: normal; color: var(--text-2); cursor: pointer; }
.check-line input { width: 16px; height: 16px; accent-color: var(--holo-2); }
.sale-field .input:disabled { opacity: .55; }
.own-price { font: 600 10px var(--font-body); color: var(--text-3); margin-left: 4px; }

/* ---------- Freunde ---------- */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px;
  background: var(--neg); color: #fff; font: 700 10.5px var(--font-body); }
.nav-item { position: relative; }
.nav-dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--neg); }
@media (min-width: 960px) { .nav-dot { top: 50%; right: 12px; transform: translateY(-50%); } }
.fr-add { padding: 14px; }
.fr-add-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.fr-add-row .input { flex: 1; min-width: 220px; }
.fr-list { padding: 0; overflow: hidden; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); }
.fr-row:last-child { border-bottom: 0; }
.fr-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--font-body);
  background: var(--surface-2, rgba(255,255,255,.06)); color: var(--holo-2); }
.fr-who { flex: 1; min-width: 0; }
.fr-who .row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fr-vis { padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.fr-vis:last-child { border-bottom: 0; }
.fr-vis-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fr-vis-label { font-size: 13.5px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.fr-vis-label svg { flex: none; opacity: .7; }
.fr-vis select { width: auto; min-width: 170px; }
.fr-pick, .share-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-strong);
  font-size: 12.5px; cursor: pointer; user-select: none; }
.chip-check:has(input:checked) { border-color: var(--holo-2); background: rgba(94,234,212,.08); }
.chip-check input { width: 14px; height: 14px; margin: 0; accent-color: var(--holo-2); }
@media (max-width: 600px) { .fr-row { flex-wrap: wrap; } .fr-act { width: 100%; justify-content: flex-start; padding-left: 46px; } .fr-vis-head { flex-wrap: wrap; } .fr-vis select { width: 100%; } }
.fr-add-row .btn-holo { width: auto; flex: none; padding-left: 18px; padding-right: 18px; }
@media (max-width: 600px) { .fr-add-row .btn-holo { width: 100%; } }
