/* Mediathek — Design-System (hell/dunkel, folgt dem System; Umschalter im Menü) */
:root {
  --bg:#f4f5f7; --surface:#ffffff; --surface2:#eceef2; --text:#14171c; --muted:#6a7080; --border:#e1e4ea;
  --accent:#3b5bdb; --accent-text:#ffffff; --accent-soft:#e8edff;
  --danger:#d64545; --ok:#2b8a3e; --warn:#b7791f;
  --c-game:#3b82f6; --c-movie:#8b5cf6; --c-book:#ef4444; --c-console:#f59e0b; --c-figure:#14b8a6;
  --shadow:0 1px 2px rgba(15,20,30,.06),0 6px 20px rgba(15,20,30,.08);
  --r:14px; --nav-h:62px; --side-w:208px;
  --sat:env(safe-area-inset-top,0px); --sab:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg:#0d0f14; --surface:#161a22; --surface2:#1f2430; --text:#e9ebf0; --muted:#8c93a3; --border:#272c38;
    --accent:#7c93ff; --accent-text:#0d0f14; --accent-soft:#1f2745;
    --danger:#f06a6a; --ok:#5ec27a; --warn:#e0b050;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.45); color-scheme:dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0d0f14; --surface:#161a22; --surface2:#1f2430; --text:#e9ebf0; --muted:#8c93a3; --border:#272c38;
  --accent:#7c93ff; --accent-text:#0d0f14; --accent-soft:#1f2745;
  --danger:#f06a6a; --ok:#5ec27a; --warn:#e0b050;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.45); color-scheme:dark;
}

*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; -webkit-tap-highlight-color:transparent; }
body.locked { position:fixed; left:0; right:0; width:100%; overflow:hidden; }
button { font:inherit; color:inherit; cursor:pointer; }
a { color:var(--accent); }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.spacer { flex:1; }

/* ── Kopfzeile ── */
.topbar { position:sticky; top:0; z-index:20; background:color-mix(in srgb,var(--bg) 88%,transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); padding:calc(10px + var(--sat)) 16px 8px; border-bottom:1px solid var(--border); }
.topbar-row,.searchrow,.subrow { display:flex; align-items:center; gap:8px; }
.brand { font-size:20px; font-weight:700; letter-spacing:-.02em; margin:0; }
.brand b { color:var(--accent); }
.brandwrap { display:flex; flex-direction:column; line-height:1.1; }
.app-version { font-size:10px; color:var(--muted); letter-spacing:.02em; margin-top:1px; }
.user-pill { font-size:12px; color:var(--muted); background:var(--surface2); padding:4px 10px; border-radius:999px; }
.searchrow { margin-top:10px; }
.search { flex:1; display:flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:0 4px 0 12px; min-width:0; }
.search:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.search input { flex:1; border:0; background:transparent; color:inherit; font-size:16px; padding:11px 0; outline:none; min-width:0; }
.search input::-webkit-search-cancel-button { display:none; }
.subrow { margin-top:8px; font-size:12px; color:var(--muted); min-height:26px; }
.icon-btn { position:relative; width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; border:1px solid var(--border); background:var(--surface); flex-shrink:0; padding:0; }
.icon-btn.small { width:36px; height:36px; border:0; background:transparent; color:var(--muted); }
.icon-btn:active { background:var(--surface2); }
.icon-btn svg,.nav-btn svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.badge-dot { position:absolute; top:6px; right:6px; width:9px; height:9px; border-radius:50%; background:var(--accent); border:2px solid var(--surface); }
.pill-toggle { border:1px solid var(--border); background:var(--surface); border-radius:999px; padding:4px 12px; font-size:12px; color:var(--muted); }
.pill-toggle.on { background:var(--accent); border-color:var(--accent); color:var(--accent-text); font-weight:600; }

/* ── Inhalt ── */
.content { padding:12px 16px calc(var(--nav-h) + 96px + var(--sab)); }
.grid { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(var(--gmin,150px),1fr)); }
.grid.dense { --gmin:96px; gap:8px; }
.g-card { cursor:pointer; min-width:0; }
.g-cover { position:relative; aspect-ratio:2/3; border-radius:12px; overflow:hidden; background:var(--surface2); box-shadow:var(--shadow); }
.g-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.g-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:38px; }
.g-plat { position:absolute; left:6px; bottom:6px; }
.g-flag { position:absolute; right:6px; top:6px; }
.g-title { font-weight:600; font-size:13.5px; line-height:1.25; margin-top:7px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.g-sub { font-size:11.5px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.grid.dense .g-title { font-size:11.5px; margin-top:5px; }
.grid.dense .g-sub,.grid.dense .g-plat { display:none; }
.g-card:active { opacity:.8; }

.rows { display:flex; flex-direction:column; gap:8px; }
.row-card { display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:8px; cursor:pointer; position:relative; overflow:hidden; }
.row-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--cc,var(--border)); }
.row-card:active { background:var(--surface2); }
.thumb { width:54px; height:76px; border-radius:8px; background:var(--surface2); overflow:hidden; flex-shrink:0; margin-left:4px; display:flex; align-items:center; justify-content:center; font-size:24px; }
.thumb img { width:100%; height:100%; object-fit:cover; }
.rows.compact .row-card { padding:10px 12px 10px 16px; }
.rows.compact .thumb { display:none; }
.row-main { flex:1; min-width:0; }
.row-title { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-meta { font-size:12.5px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tags { display:flex; gap:5px; flex-wrap:wrap; margin-top:5px; }
.tag { font-size:11px; font-weight:600; padding:2px 8px; border-radius:999px; background:var(--surface2); color:var(--muted); white-space:nowrap; }
.tag.blue { background:color-mix(in srgb,var(--c-game) 16%,transparent); color:var(--c-game); }
.tag.warn { background:color-mix(in srgb,var(--warn) 18%,transparent); color:var(--warn); }
.tag.red { background:color-mix(in srgb,var(--danger) 16%,transparent); color:var(--danger); }
.tag.ok { background:color-mix(in srgb,var(--ok) 16%,transparent); color:var(--ok); }
img.fade { opacity:0; transition:opacity .25s; } img.fade.in { opacity:1; }
.empty { text-align:center; color:var(--muted); padding:70px 24px; font-size:14px; }
.skel { background:linear-gradient(90deg,var(--surface2),var(--surface),var(--surface2)); background-size:200% 100%; animation:sk 1.2s infinite linear; border-radius:12px; aspect-ratio:2/3; }
@keyframes sk { to { background-position:-200% 0; } }
.trash-bar { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12.5px; color:var(--muted); margin-bottom:10px; }

/* Plattform-Icon-Marke */
.plat { display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:26px; padding:0 5px; border-radius:7px; background:color-mix(in srgb,var(--surface) 90%,transparent); border:1px solid var(--border); }
.plat img { max-width:32px; max-height:20px; object-fit:contain; }
.plat img[src*="simpleicons"] { filter:brightness(0); opacity:.6; }
:root[data-theme="dark"] .plat img[src*="simpleicons"] { filter:brightness(0) invert(1); opacity:.8; }
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) .plat img[src*="simpleicons"] { filter:brightness(0) invert(1); opacity:.8; } }
.plat-abbr { font:600 10px ui-monospace,Menlo,monospace; color:var(--muted); }
.row-card .plat { flex-shrink:0; }

/* ── Navigation unten ── */
.bottomnav { position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; background:color-mix(in srgb,var(--surface) 92%,transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-top:1px solid var(--border); padding:6px 4px calc(6px + var(--sab)); }
.nav-btn { flex:1; display:flex; flex-direction:column; align-items:center; gap:1px; border:0; background:transparent; padding:4px 0; color:var(--muted); font-size:10.5px; border-radius:10px; min-width:0; position:relative; }
.nav-btn .ico { font-size:20px; line-height:1.15; filter:grayscale(1); opacity:.7; }
.nav-btn .cnt { position:absolute; top:0; right:calc(50% - 26px); font-size:9.5px; font-weight:700; background:var(--surface2); color:var(--muted); border-radius:999px; padding:0 5px; min-width:16px; text-align:center; }
.nav-btn.active { color:var(--text); font-weight:600; }
.nav-btn.active .ico { filter:none; opacity:1; }
.nav-btn.active .cnt { background:var(--accent); color:var(--accent-text); }
.fab { position:fixed; right:16px; bottom:calc(var(--nav-h) + 18px + var(--sab)); width:56px; height:56px; border-radius:18px; border:0; background:var(--accent); color:var(--accent-text); box-shadow:var(--shadow); z-index:25; display:flex; align-items:center; justify-content:center; font-size:30px; line-height:1; }
.fab:active { transform:scale(.96); }

/* ── Menü-Popover ── */
.popmenu { position:fixed; inset:0; z-index:60; }
.popmenu-panel { position:absolute; top:calc(54px + var(--sat)); right:12px; min-width:220px; background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow); padding:6px; }
.popmenu-panel button { display:flex; width:100%; align-items:center; gap:10px; border:0; background:transparent; padding:11px 12px; border-radius:10px; text-align:left; font-size:15px; }
.popmenu-panel button:active { background:var(--surface2); }
.popmenu-panel hr { border:0; border-top:1px solid var(--border); margin:4px 0; }

/* ── Sheets ── */
.sheet { position:fixed; inset:0; z-index:50; overscroll-behavior:contain; }
.sheet-backdrop { position:absolute; inset:0; background:rgba(8,10,14,.55); touch-action:none; animation:fadeIn .2s; }
.sheet-panel { position:absolute; left:0; right:0; bottom:0; max-height:calc(100dvh - var(--sat) - 8px); background:var(--bg); border-radius:20px 20px 0 0; display:flex; flex-direction:column; animation:slideUp .22s ease-out; box-shadow:0 -8px 40px rgba(0,0,0,.25); transition:transform .18s; }
.sheet-panel.full { height:calc(100dvh - var(--sat) - 8px); }
.sheet-grab { padding:9px 0 4px; flex-shrink:0; touch-action:none; }
.sheet-grab::after { content:""; display:block; width:38px; height:4px; border-radius:2px; background:var(--border); margin:0 auto; }
.sheet-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 16px 10px; flex-shrink:0; touch-action:none; }
.sheet-head h2 { margin:0; font-size:17px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sheet-body { flex:1; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:4px 16px 20px; }
.sheet-foot { flex-shrink:0; display:flex; gap:8px; padding:10px 16px calc(10px + var(--sab)); border-top:1px solid var(--border); background:var(--bg); }
.sheet-foot:empty { display:none; }
@keyframes slideUp { from { transform:translateY(24px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes slideIn { from { transform:translateX(30px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.btn { flex:1; border:1px solid var(--border); background:var(--surface); color:var(--text); border-radius:12px; padding:12px 14px; font-size:15px; font-weight:600; text-align:center; text-decoration:none; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-text); }
.btn.danger { flex:0 0 auto; background:transparent; color:var(--danger); border-color:var(--danger); }
.btn:disabled { opacity:.55; }
.btn.sm { flex:0 0 auto; padding:8px 12px; font-size:13px; }

/* Detail */
.hero { position:relative; margin:0 -16px 14px; height:240px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--surface2); }
.hero-bg { position:absolute; inset:-20px; background-size:cover; background-position:center; filter:blur(24px) brightness(.8); transform:scale(1.1); }
.hero img { position:relative; max-height:210px; max-width:70%; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.hero .g-ph { position:relative; width:auto; height:auto; font-size:64px; }
.d-title { font-size:23px; font-weight:750; letter-spacing:-.02em; line-height:1.2; margin:0 0 4px; }
.d-sub { color:var(--muted); font-size:14px; margin-bottom:10px; }
.cat-chip { display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#fff; padding:3px 9px; border-radius:6px; margin-bottom:8px; }
.d-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:4px 14px; margin-top:12px; }
.d-card h4 { margin:12px 0 2px; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.d-row { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid var(--border); font-size:14.5px; }
.d-row:last-child { border-bottom:0; }
.d-row span:first-child { color:var(--muted); flex-shrink:0; }
.d-row span:last-child { text-align:right; font-weight:500; min-width:0; overflow-wrap:anywhere; }
.d-text { padding:6px 0 12px; font-size:14.5px; white-space:pre-wrap; }

/* Formular */
.acc { background:var(--surface); border:1px solid var(--border); border-radius:var(--r); margin-top:12px; }
.acc > summary { list-style:none; padding:14px; font-weight:650; display:flex; justify-content:space-between; cursor:pointer; }
.acc > summary::-webkit-details-marker { display:none; }
.acc > summary::after { content:"›"; color:var(--muted); transform:rotate(90deg); transition:transform .15s; font-size:20px; line-height:1; }
.acc[open] > summary::after { transform:rotate(-90deg); }
.acc-body { padding:0 14px 6px; }
.field { display:flex; flex-direction:column; gap:5px; margin-bottom:12px; }
.field > label { font-size:12px; font-weight:600; color:var(--muted); }
.field input,.field select,.field textarea,.lookup-input { background:var(--bg); border:1px solid var(--border); border-radius:10px; color:var(--text); padding:11px 12px; font-size:16px; width:100%; font-family:inherit; }
.field textarea { resize:vertical; min-height:64px; }
.field input:focus,.field select:focus,.field textarea:focus,.lookup-input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.inline { display:flex; gap:6px; }
.inline > input { flex:1; }
.row2 { display:flex; gap:10px; } .row2 > .field { flex:1; min-width:0; }
.check { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.check input { width:20px; height:20px; accent-color:var(--accent); }
.seg { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.chip { border:1px solid var(--border); background:var(--surface); border-radius:999px; padding:7px 14px; font-size:13.5px; color:var(--text); }
.chip.active { background:var(--accent); border-color:var(--accent); color:var(--accent-text); font-weight:600; }
.chip.cat.active { color:#fff; }
.lookup-box { background:var(--accent-soft); border-radius:var(--r); padding:12px; margin-top:12px; }
.lookup-results { margin-top:8px; background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.lookup-item { display:flex; gap:10px; align-items:center; padding:9px 12px; border-bottom:1px solid var(--border); cursor:pointer; }
.lookup-item:last-child { border-bottom:0; } .lookup-item:active { background:var(--surface2); }
.lookup-thumb { width:38px; height:38px; object-fit:cover; border-radius:6px; background:var(--surface2); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.lookup-name { font-weight:600; font-size:14px; } .lookup-sub { font-size:12px; color:var(--muted); }
.platform-picker { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.note { font-size:12.5px; color:var(--muted); margin:6px 0 0; } .note.err { color:var(--danger); }
.cover-preview { max-height:130px; border-radius:8px; margin-bottom:10px; display:block; }
.cover-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(74px,1fr)); gap:6px; margin-top:8px; }
.cover-grid img { width:100%; aspect-ratio:2/3; object-fit:cover; border-radius:8px; cursor:pointer; border:2px solid transparent; background:var(--surface2); }
.cover-grid img.chosen { border-color:var(--accent); }
.scan-hit { display:flex; gap:12px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:8px; margin-bottom:8px; cursor:pointer; }

/* Scanner */
.scanner { position:fixed; inset:0; z-index:80; background:#000; display:flex; flex-direction:column; color:#fff; }
.scanner video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.scan-frame { position:absolute; left:50%; top:42%; width:min(78vw,340px); height:min(46vw,200px); transform:translate(-50%,-50%); border:3px solid rgba(255,255,255,.9); border-radius:18px; box-shadow:0 0 0 100vmax rgba(0,0,0,.5); }
.scan-top,.scan-bottom { position:relative; z-index:2; padding:calc(14px + var(--sat)) 16px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.scan-bottom { margin-top:auto; padding-bottom:calc(18px + var(--sab)); flex-direction:column; align-items:stretch; background:linear-gradient(transparent,rgba(0,0,0,.75)); }
.scan-msg { text-align:center; font-size:13.5px; opacity:.9; }
.scan-manual { display:flex; gap:8px; }
.scan-manual input { flex:1; border-radius:12px; border:0; padding:12px; font-size:16px; }
.scan-btn { background:rgba(255,255,255,.18); color:#fff; border:0; border-radius:12px; padding:10px 14px; font-weight:600; }

/* Toasts */
#toasts { position:fixed; left:0; right:0; bottom:calc(var(--nav-h) + 84px + var(--sab)); z-index:90; display:flex; flex-direction:column; align-items:center; gap:8px; pointer-events:none; }
.toast { background:var(--text); color:var(--bg); padding:10px 16px; border-radius:12px; font-size:14px; max-width:88vw; box-shadow:var(--shadow); animation:slideUp .2s; }
.toast.err { background:var(--danger); color:#fff; } .toast.out { opacity:0; transition:opacity .4s; }

/* ── Desktop: Seitenleiste + Detailpanel rechts ── */
@media (min-width:900px) {
  body { font-size:15px; }
  .bottomnav { top:0; bottom:0; right:auto; width:var(--side-w); flex-direction:column; justify-content:flex-start; gap:2px; padding:20px 10px; border-top:0; border-right:1px solid var(--border); }
  .nav-btn { flex:0 0 auto; flex-direction:row; gap:10px; padding:10px 12px; font-size:14px; justify-content:flex-start; }
  .nav-btn .cnt { position:static; margin-left:auto; }
  .topbar,.content { margin-left:var(--side-w); }
  .content { padding:18px 28px 60px; }
  .topbar { padding:14px 28px 10px; }
  .grid { --gmin:170px; gap:18px; } .grid.dense { --gmin:110px; }
  .fab { right:28px; bottom:28px; }
  #toasts { bottom:24px; }
  .sheet-panel { left:auto; right:0; top:0; bottom:0; width:min(540px,100vw); max-height:none; height:100dvh; border-radius:0; animation:slideIn .22s ease-out; }
  .sheet-panel.full { height:100dvh; }
  .sheet-grab { display:none; }
  .sheet-head { padding-top:16px; }
  .popmenu-panel { top:58px; right:28px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }

/* ── Kategorie-Leiste im Formular (wie Hauptnavigation) ── */
.catbar { display:flex; gap:2px; margin:0 0 14px; padding:4px; background:var(--surface2); border-radius:14px; }
.cn-btn { flex:1; display:flex; flex-direction:column; align-items:center; gap:1px; border:0; background:transparent; padding:6px 0 5px; color:var(--muted); font-size:10.5px; border-radius:10px; min-width:0; }
.cn-btn .ico { font-size:20px; line-height:1.15; filter:grayscale(1); opacity:.7; }
.cn-btn.active { color:var(--text); font-weight:600; background:var(--surface); box-shadow:0 1px 3px rgba(0,0,0,.18); }
.cn-btn.active .ico { filter:none; opacity:1; }

/* ── Zustand ── */
:root { --z0:#2fb457; --z1:#f0922b; --z2:#e5484d; --z3:#8a1426; }
.z-ovp { margin-bottom:12px; }
.zrow { display:flex; align-items:center; gap:10px; min-height:44px; }
.zrow .zname { flex:1; min-width:0; font-size:15px; }
.zrow input[type=checkbox] { width:22px; height:22px; accent-color:var(--accent); flex:none; }
.zdot { width:46px; height:30px; border-radius:999px; border:2px solid transparent; flex:none; transition:background .15s; }
.zdot[data-s="0"] { background:var(--z0); } .zdot[data-s="1"] { background:var(--z1); }
.zdot[data-s="2"] { background:var(--z2); } .zdot[data-s="3"] { background:var(--z3); border-color:var(--z2); }
.zdot:disabled { background:var(--surface2); border-color:var(--border); opacity:.6; }
.znote { width:38px; height:30px; border-radius:10px; border:1px solid var(--border); background:var(--surface); font-size:15px; flex:none; padding:0; }
.znote.on { background:var(--accent); border-color:var(--accent); }
.znote:disabled { opacity:.35; }
.zrow-note { margin:0 0 8px 32px; }
.zrow-note textarea { min-height:60px; }
.z-total { margin-top:10px; padding-top:10px; border-top:1px solid var(--border); font-size:15px; display:flex; gap:8px; align-items:center; }
.z-total b { font-weight:700; }
.z-total.g0 b { color:var(--z0); } .z-total.g1 b { color:var(--z1); } .z-total.g2 b { color:var(--z2); }
.zd-row { display:flex; align-items:center; gap:10px; padding:5px 0; font-size:14.5px; }
.zd-dot { width:14px; height:14px; border-radius:50%; flex:none; }
.zd-dot[data-s="0"] { background:var(--z0); } .zd-dot[data-s="1"] { background:var(--z1); }
.zd-dot[data-s="2"] { background:var(--z2); } .zd-dot[data-s="3"] { background:var(--z3); box-shadow:0 0 0 1px var(--z2); }
.zd-note { margin:-2px 0 6px 24px; font-size:13px; color:var(--muted); }

/* ── Franchise-Tags ── */
.ftags { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 10px; }
.ftags:empty { margin:0; }
.ftag { display:inline-flex; align-items:center; gap:4px; font-size:12.5px; font-weight:600; padding:3px 10px; border-radius:999px; background:color-mix(in srgb,var(--accent) 16%,transparent); color:var(--accent); }
.ftag button { border:0; background:transparent; color:inherit; font-size:16px; line-height:1; padding:0 0 1px 2px; }
.hint { font-weight:400; color:var(--muted); }
.ftags.sugg { margin:8px 0 0; }
.ftag.pick { border:1px dashed color-mix(in srgb,var(--accent) 55%,transparent); cursor:pointer; padding:6px 12px; font-size:13.5px; }
.ftag.pick.new { background:transparent; }
