/* Rataska – Material 3 Expressive, Farben aus dem Logo (Rost #CE6A50, Buch-Orange #F8A12E) */
:root {
  color-scheme: light;
  --primary: #9a4430; --on-primary: #fff;
  --primary-container: #ffdbd1; --on-primary-container: #3b0a01;
  --secondary-container: #f3ddd6; --on-secondary-container: #2c1510;
  --tertiary: #8c4f00; --on-tertiary: #fff; --tertiary-container: #ffdcc0; --on-tertiary-container: #2d1600;
  --error: #ba1a1a; --error-container: #ffdad6;
  --surface: #f5f1ef; --surface-c-lowest: #ffffff;
  --surface-c-low: #faf7f5; --surface-c: #efe9e6; --surface-c-high: #ebe5e2; --surface-c-highest: #e4dedb;
  --on-surface: #201a18; --on-surface-variant: #50443f;
  --outline: #82746f; --outline-variant: #d6ccc8; --border: #928681;
  --inverse-surface: #362f2d; --inverse-on-surface: #fbeee9; --inverse-primary: #ffb4a1;
  --scrim: rgb(32 20 16 / .28);
  --cover-bg: #eadfdb;
  /* Rollen, die Hell und Dunkel unterschiedlich belegen */
  --card: #ffffff; --card-inner: #efe9e6;
  --card-shadow: 0 1px 2px rgb(60 30 20 / .07), 0 1px 3px 1px rgb(60 30 20 / .04);
  --accent-fill: var(--primary); --on-accent-fill: var(--on-primary);
  --glass: rgb(239 233 230 / .76); --glass-page: rgb(245 241 239 / .78);
  --blur: blur(20px) saturate(170%); --blur-scrim: blur(6px);
  --grad: 0; --track: .01em;

  --r-xs: 8px; --r-s: 12px; --r-m: 16px; --r-l: 24px; --r-xl: 32px; --r-full: 999px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
  --font: "Roboto Flex", Roboto, system-ui, sans-serif;
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #ffb4a1; --on-primary: #5f1606;
    --primary-container: #743120; --on-primary-container: #ffdbd1;
    --secondary-container: #4b3a35; --on-secondary-container: #f5ded7;
    --tertiary: #ffb870; --on-tertiary: #4a2800; --tertiary-container: #5a3300; --on-tertiary-container: #ffdcc0;
    --error: #ffb4ab; --error-container: #93000a;
    --surface: #141110; --surface-c-lowest: #0f0c0b;
    --surface-c-low: #1c1817; --surface-c: #262120; --surface-c-high: #302926; --surface-c-highest: #3a3330;
    --on-surface: #ede0dc; --on-surface-variant: #d4c4be;
    --outline: #a1918b; --outline-variant: #4a403c; --border: #857873;
    --inverse-surface: #ede0dc; --inverse-on-surface: #362f2d; --inverse-primary: #9a4430;
    --scrim: rgb(0 0 0 / .5);
    --cover-bg: #2e2624;
    --card: #262120; --card-inner: #302926;
    --card-shadow: none;
    /* Große Flächen im Dunkeln gedeckt statt leuchtend */
    --accent-fill: var(--primary-container); --on-accent-fill: var(--on-primary-container);
    --glass: rgb(38 33 32 / .74); --glass-page: rgb(20 17 16 / .76);
    /* Helle Schrift wirkt auf Dunkel fetter (Halation): Grade-Achse senkt das optische Gewicht ohne Umbruch */
    --grad: -50; --track: .018em;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #ffb4a1; --on-primary: #5f1606;
  --primary-container: #743120; --on-primary-container: #ffdbd1;
  --secondary-container: #4b3a35; --on-secondary-container: #f5ded7;
  --tertiary: #ffb870; --on-tertiary: #4a2800; --tertiary-container: #5a3300; --on-tertiary-container: #ffdcc0;
  --error: #ffb4ab; --error-container: #93000a;
  --surface: #141110; --surface-c-lowest: #0f0c0b;
  --surface-c-low: #1c1817; --surface-c: #262120; --surface-c-high: #302926; --surface-c-highest: #3a3330;
  --on-surface: #ede0dc; --on-surface-variant: #d4c4be;
  --outline: #a1918b; --outline-variant: #4a403c; --border: #857873;
  --inverse-surface: #ede0dc; --inverse-on-surface: #362f2d; --inverse-primary: #9a4430;
  --scrim: rgb(0 0 0 / .5);
  --cover-bg: #2e2624;
  --card: #262120; --card-inner: #302926;
  --card-shadow: none;
  /* Große Flächen im Dunkeln gedeckt statt leuchtend */
  --accent-fill: var(--primary-container); --on-accent-fill: var(--on-primary-container);
  --glass: rgb(38 33 32 / .74); --glass-page: rgb(20 17 16 / .76);
  /* Helle Schrift wirkt auf Dunkel fetter (Halation): Grade-Achse senkt das optische Gewicht ohne Umbruch */
  --grad: -50; --track: .018em;
}
/* Unschärfe aus: App-Schalter oder Systemwunsch nach weniger Transparenz */
:root[data-blur="off"] { --blur: none; --blur-scrim: none; --glass: var(--surface-c); --glass-page: var(--surface); }
@media (prefers-reduced-transparency: reduce) {
  :root { --blur: none; --blur-scrim: none; --glass: var(--surface-c); --glass-page: var(--surface); }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: var(--track);
  font-variation-settings: "GRAD" var(--grad);
  background: var(--surface); color: var(--on-surface);
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: var(--r-s); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.ic.chev { color: var(--on-surface-variant); }
.ic.tiny { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Typografie ---------- */
.display { font-size: clamp(40px, 11vw, 52px); line-height: 1.02; font-weight: 760; font-variation-settings: "wdth" 118, "opsz" 72, "GRAD" var(--grad); letter-spacing: -.02em; margin: 0; }
.headline { font-size: 28px; line-height: 1.15; font-weight: 700; font-variation-settings: "wdth" 110, "opsz" 36, "GRAD" var(--grad); letter-spacing: -.01em; margin: 0; }
.title-l { font-size: 20px; line-height: 1.3; font-weight: 640; margin: 0; }
.title-m { font-size: 16px; font-weight: 620; margin: 0; }
.label { font-size: 14px; font-weight: 560; letter-spacing: .01em; }
.muted { color: var(--on-surface-variant); }
.small { font-size: 14px; }

/* ---------- Layout ---------- */
#main { padding: calc(var(--safe-t) + 20px) 16px calc(var(--nav-h) + var(--safe-b) + 104px); max-width: 760px; margin: 0 auto; outline: none; }
.top { padding: 28px 4px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.top p { margin: 6px 0 0; }
.section-h { display: flex; align-items: center; justify-content: space-between; margin: 28px 4px 12px; }

/* ---------- Navigationsleiste ---------- */
.navbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); display: flex; justify-content: center;
}
.navbar button { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--on-surface-variant); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.navbar .pill { width: 56px; height: 32px; border-radius: var(--r-full); display: grid; place-items: center; transition: background .3s var(--ease), width .3s var(--spring); }
.navbar [aria-current="page"] { color: var(--on-surface); }
.navbar [aria-current="page"] .pill { background: var(--secondary-container); color: var(--on-secondary-container); width: 64px; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; z-index: 21; right: 16px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  height: 64px; padding: 0 22px 0 18px; border-radius: 20px; display: flex; align-items: center; gap: 10px;
  background: var(--primary-container); color: var(--on-primary-container); font-weight: 640; font-size: 16px;
  box-shadow: 0 3px 8px rgb(0 0 0 / .14), 0 1px 3px rgb(0 0 0 / .1);
  transition: transform .25s var(--spring), border-radius .25s var(--ease);
}
.fab:active { transform: scale(.94); border-radius: 28px; }
.fab[hidden] { display: none; }
.fab .ic { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn { min-height: 48px; padding: 0 22px; border-radius: var(--r-full); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; transition: border-radius .2s var(--ease), transform .2s var(--spring); }
.btn:active { border-radius: var(--r-s); }
.btn .ic { width: 20px; height: 20px; }
.btn.filled { background: var(--accent-fill); color: var(--on-accent-fill); }
.btn.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn.outlined { box-shadow: inset 0 0 0 1px var(--border); color: var(--on-surface-variant); }
.btn.text { color: var(--primary); padding: 0 14px; }
.btn.danger { color: var(--error); }
.btn.block { width: 100%; }
.btn.lg { min-height: 56px; font-size: 16px; }
.icon-btn { width: 48px; height: 48px; border-radius: var(--r-full); display: grid; place-items: center; color: var(--on-surface-variant); flex: none; transition: background .2s; }
.icon-btn:active { background: color-mix(in srgb, var(--on-surface) 10%, transparent); }
.icon-btn.tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.icon-btn.filled { background: var(--primary); color: var(--on-primary); }

/* ---------- Suche ---------- */
.searchbar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 18px; border-radius: var(--r-full); background: var(--surface-c-high); color: var(--on-surface-variant); }
.searchbar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--on-surface); height: 100%; }
.searchbar input::placeholder { color: var(--on-surface-variant); }
input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 8px; margin: 20px -16px 8px; padding-inline: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 16px; border-radius: var(--r-s); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 14px; font-weight: 560; box-shadow: inset 0 0 0 1px var(--border); color: var(--on-surface-variant); flex: none; transition: background .2s, border-radius .25s var(--ease); }
.chip .ic { width: 18px; height: 18px; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--secondary-container); color: var(--on-secondary-container); box-shadow: none; border-radius: var(--r-full); }
.chip .n { opacity: .7; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { height: 32px; padding: 0 12px; border-radius: var(--r-xs); display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 520; background: var(--surface-c-high); color: var(--on-surface-variant); }
.tag.trope { background: var(--card-inner); color: var(--on-surface); }
.tag.trope::before { content: "#"; color: var(--tertiary); font-weight: 760; margin-right: 1px; }
.tag:not(.trope):not(.add) { background: none; box-shadow: inset 0 0 0 1px var(--border); }
.tag button { display: grid; place-items: center; margin-right: -6px; width: 24px; height: 24px; border-radius: 50%; }
.tag button .ic { width: 16px; height: 16px; }
.tag.add { background: none; box-shadow: inset 0 0 0 1px var(--border); }

/* ---------- Cover ---------- */
.cover { aspect-ratio: 2 / 3; width: 100%; object-fit: cover; border-radius: 10px; background: var(--cover-bg); box-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 4px 12px -6px rgb(0 0 0 / .3); }
.cover.ph { display: flex; flex-direction: column; justify-content: space-between; padding: 12% 10%; color: var(--on-primary-container); background: linear-gradient(160deg, var(--primary-container), var(--secondary-container)); overflow: hidden; }
.cover.ph b { font-size: clamp(11px, 3.2vw, 17px); line-height: 1.15; font-weight: 720; font-variation-settings: "wdth" 110, "GRAD" var(--grad); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; hyphens: auto; }
.cover.ph span { font-size: clamp(9px, 2.4vw, 12px); opacity: .8; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 12px; padding: 4px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.book { text-align: left; display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.book:active .cover { transform: scale(.97); }
.book .cover { transition: transform .2s var(--spring); }
.book .t { font-size: 13px; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book .a { font-size: 12px; color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.book .cv { position: relative; display: block; }
.badge { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.badge .ic { width: 16px; height: 16px; }
.badge.read { background: var(--accent-fill); color: var(--on-accent-fill); }
.badge.wish { background: var(--tertiary); color: var(--on-tertiary); }
.badge.reading { background: var(--primary-container); color: var(--on-primary-container); }

/* ---------- Lese-ich-gerade-Karten ---------- */
.reading-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.reading-row::-webkit-scrollbar { display: none; }
.rcard { scroll-snap-align: start; flex: 0 0 calc(100% - 28px); display: flex; gap: 16px; align-items: stretch; padding: 16px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--card-shadow); text-align: left; position: relative; }
.reading-row .rcard:only-child { flex-basis: 100%; }
.rcard .cover { width: 84px; flex: none; }
.rcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rcard .t { font-size: 18px; line-height: 1.2; font-weight: 700; font-variation-settings: "wdth" 106, "GRAD" var(--grad); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 44px; }
.rcard .a { font-size: 14px; color: var(--on-surface-variant); margin-top: 2px; }
.rcard .prog { margin-top: auto; }
.rcard .quick { position: absolute; top: 12px; right: 12px; }
.wavy { display: block; width: 100%; height: 18px; overflow: visible; }
.wavy .on { stroke: var(--primary); }
.wavy .off { stroke: var(--secondary-container); }
.wavy .dot { fill: var(--primary); }
.prog-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-surface-variant); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Stapel (Leseliste) ---------- */
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.queue li { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 8px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--card-shadow); }
.queue li:first-child { border-radius: var(--r-l) var(--r-l) var(--r-xs) var(--r-xs); }
.queue li:last-child { border-radius: var(--r-xs) var(--r-xs) var(--r-l) var(--r-l); }
.queue li:only-child { border-radius: var(--r-l); }
.queue .pos { width: 28px; text-align: center; font-weight: 760; font-size: 20px; font-variation-settings: "wdth" 120, "GRAD" var(--grad); color: var(--primary); font-variant-numeric: tabular-nums; }
.queue .cover { width: 44px; border-radius: 6px; }
.queue .open { flex: 1; min-width: 0; text-align: left; }
.queue .t { font-weight: 620; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue .a { font-size: 13px; color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue .mv { display: flex; }
.queue .mv .icon-btn { width: 40px; height: 40px; }
.queue .mv .icon-btn:disabled { opacity: .3; }

/* ---------- Leerer Zustand & Hinweise ---------- */
.empty { text-align: center; padding: 48px 24px; color: var(--on-surface-variant); }
.empty .art { width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; background: var(--primary-container); color: var(--on-primary-container); display: grid; place-items: center; }
.empty .art .ic { width: 56px; height: 56px; }
.empty h2 { color: var(--on-surface); }
.empty p { margin: 8px auto 24px; max-width: 32ch; }
.note { display: flex; gap: 12px; align-items: center; padding: 14px 8px 14px 16px; border-radius: var(--r-l); background: var(--surface-c-high); margin: 16px 0 0; font-size: 14px; }
.note .ic { color: var(--primary); }
.note p { margin: 0; flex: 1; }

/* ---------- Ebenen: Seiten, Sheets, Dialoge ---------- */
.layer { position: fixed; inset: 0; z-index: 40; }
.layer.page { background: var(--surface); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(24px); transition: opacity .22s var(--ease), transform .32s var(--ease); }
.layer.page.open { opacity: 1; transform: none; }
.page-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; padding: calc(var(--safe-t) + 8px) 8px 8px; background: var(--glass-page); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.page-bar .grow { flex: 1; min-width: 0; }
.page-bar .title-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-body { padding: 8px 20px calc(var(--safe-b) + 48px); max-width: 680px; margin: 0 auto; }

.layer.sheet, .layer.dialog { background: transparent; transition: background .25s var(--ease); }
.layer.sheet.open, .layer.dialog.open { background: var(--scrim); -webkit-backdrop-filter: var(--blur-scrim); backdrop-filter: var(--blur-scrim); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface-c-low); border-radius: 28px 28px 0 0; padding: 8px 20px calc(var(--safe-b) + 24px); transform: translateY(100%); transition: transform .38s var(--ease); max-width: 680px; margin: 0 auto; }
.layer.open .sheet-panel { transform: none; }
.handle { width: 32px; height: 4px; border-radius: 2px; background: var(--outline-variant); margin: 8px auto 16px; }
.dialog-panel { position: absolute; left: 50%; top: 50%; width: min(420px, calc(100% - 48px)); transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .3s var(--spring), opacity .2s; background: var(--surface-c-low); border-radius: 28px; padding: 24px; }
.layer.open .dialog-panel { transform: translate(-50%, -50%); opacity: 1; }
.dialog-panel p { color: var(--on-surface-variant); margin: 12px 0 0; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Suche & Treffer ---------- */
.search-top .searchbar { flex: 1; height: 52px; padding: 0 4px 0 16px; }
.scan-hero { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: var(--r-xl); background: var(--primary-container); color: var(--on-primary-container); text-align: left; transition: border-radius .25s var(--ease), transform .2s var(--spring); }
.scan-hero:active { transform: scale(.98); border-radius: 48px; }
.scan-hero .blob { width: 72px; height: 72px; flex: none; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; }
.scan-hero .blob .ic { width: 36px; height: 36px; }
.scan-hero b { display: block; font-size: 20px; line-height: 1.2; font-weight: 720; font-variation-settings: "wdth" 108, "GRAD" var(--grad); }
.scan-hero span { display: block; font-size: 14px; margin-top: 4px; opacity: .85; }
.hint { color: var(--on-surface-variant); font-size: 14px; margin: 20px 4px; }
.results { list-style: none; margin: 8px 0 0; padding: 0; }
.results button { width: 100%; display: flex; gap: 16px; align-items: center; padding: 10px 8px; border-radius: var(--r-m); text-align: left; }
.results button:active { background: var(--surface-c-high); }
.results .cover { width: 52px; border-radius: 6px; }
.results .t { font-weight: 620; line-height: 1.25; }
.results .a { font-size: 14px; color: var(--on-surface-variant); }
.results .own { font-size: 12px; font-weight: 600; color: var(--primary); }
.loader { height: 4px; margin: 16px 4px; border-radius: 2px; background: var(--secondary-container); overflow: hidden; position: relative; }
.loader::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 2px; background: var(--primary); animation: load 1.1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Vorschau beim Hinzufügen ---------- */
.pv-head { display: flex; gap: 16px; align-items: flex-start; }
.pv-head .cover { width: 96px; flex: none; }
.pv-head h2 { margin: 2px 0 4px; }
.pv-head p { margin: 0; }
.q { font-weight: 640; margin: 24px 0 12px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-grid button { min-height: 72px; border-radius: var(--r-l); padding: 12px 16px; display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 620; background: var(--card); box-shadow: var(--card-shadow); transition: border-radius .25s var(--ease), transform .2s var(--spring); }
.status-grid button:active { border-radius: var(--r-s); transform: scale(.97); }
.status-grid button .ic { width: 28px; height: 28px; color: var(--primary); }
.status-grid button[data-s="wish"] .ic { color: var(--tertiary); }

/* ---------- Detailseite ---------- */
.hero { display: flex; justify-content: center; padding: 8px 0 24px; }
.hero .cover { width: min(52vw, 240px); border-radius: 14px; box-shadow: 0 2px 4px rgb(0 0 0 / .15), 0 16px 40px -12px rgb(0 0 0 / .45); }
.detail-title { text-align: center; }
.detail-title p { margin: 6px 0 0; }
.seg { margin: 24px 0 8px; }
.panel { margin-top: 12px; padding: 20px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--card-shadow); }
.panel .wavy { height: 24px; }
.pg-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 4px; }
.pg-row input { width: 96px; height: 56px; text-align: center; font-size: 26px; font-weight: 720; font-variation-settings: "wdth" 112, "GRAD" var(--grad); border: 0; border-radius: var(--r-m); background: var(--card-inner); color: var(--on-surface); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 32px; }
.stars { display: flex; justify-content: center; gap: 4px; }
.stars button { width: 52px; height: 52px; display: grid; place-items: center; color: var(--border); }
.stars button.on, .stars button.half { color: var(--primary); }
.stars .ic { width: 44px; height: 44px; }
.block { margin-top: 28px; }
.block h2 { margin: 0 0 12px; }
.desc { margin: 0; white-space: pre-line; color: var(--on-surface-variant); line-height: 1.6; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 15px; }
.facts dt { color: var(--on-surface-variant); }
.facts dd { margin: 0; font-weight: 520; word-break: break-word; }
textarea, .field input, .field select { width: 100%; border: 0; border-radius: var(--r-m); background: var(--surface-c-high); padding: 14px 16px; font-size: 16px; color: var(--on-surface); resize: vertical; min-height: 52px; outline: none; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .2s; }
textarea:focus, .field input:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--on-surface-variant); margin: 0 0 6px 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Listen ---------- */
.lrow { width: 100%; display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--card-shadow); text-align: left; margin-bottom: 8px; }
.stack { position: relative; width: 76px; height: 72px; flex: none; }
.stack .cover { position: absolute; width: 44px; top: 0; }
.stack .cover:nth-child(1) { left: 0; transform: rotate(-6deg); }
.stack .cover:nth-child(2) { left: 16px; transform: rotate(0); z-index: 1; }
.stack .cover:nth-child(3) { left: 32px; transform: rotate(6deg); z-index: 2; }
.stack.empty-stack { display: grid; place-items: center; border-radius: var(--r-m); background: var(--card-inner); color: var(--tertiary); width: 64px; height: 64px; }
.lrow .n { font-size: 14px; color: var(--on-surface-variant); }

/* ---------- Mehr ---------- */
.group { background: var(--card); box-shadow: var(--card-shadow); border-radius: var(--r-xl); padding: 8px; margin-bottom: 16px; }
.group h2 { font-size: 14px; font-weight: 640; color: var(--primary); margin: 12px 12px 4px; }
.item { width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--r-l); text-align: left; min-height: 64px; }
label.item { cursor: pointer; }
.item:active { background: var(--surface-c-high); }
.item .ic { color: var(--on-surface-variant); }
.item .txt { flex: 1; min-width: 0; }
.item .txt small { display: block; color: var(--on-surface-variant); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.item input[type="file"] { display: none; }
.item.danger, .item.danger .ic { color: var(--error); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.stat { border-radius: var(--r-xl); padding: 20px; background: var(--primary-container); color: var(--on-primary-container); }
.stat:nth-child(2) { background: var(--card); box-shadow: var(--card-shadow); color: var(--on-surface); border-radius: 48px 32px 32px 32px; }
.stat:nth-child(2) b { color: var(--primary); }
.stat b { display: block; font-size: 44px; line-height: 1; font-weight: 800; font-variation-settings: "wdth" 125, "opsz" 72, "GRAD" var(--grad); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; font-weight: 560; }
.theme-seg { padding: 4px 8px 8px; }
.keyrow { padding: 0 12px 12px; }

/* ---------- Scanner ---------- */
.layer.scan { background: #000; color: #fff; opacity: 0; transition: opacity .2s; }
.layer.scan.open { opacity: 1; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan .frame { position: absolute; left: 50%; top: 42%; width: min(78vw, 360px); aspect-ratio: 16 / 10; transform: translate(-50%, -50%); border-radius: 28px; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .55); }
.scan .frame::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 3px; border-radius: 2px; background: #ffb951; box-shadow: 0 0 16px #ffb951; animation: scanline 1.8s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-36px); } to { transform: translateY(36px); } }
.scan .bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: calc(var(--safe-t) + 8px) 8px; }
.scan .bar .icon-btn { color: #fff; background: rgb(0 0 0 / .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.scan .bar .icon-btn[aria-pressed="true"] { background: #fff; color: #000; }
.scan .msg { position: absolute; left: 24px; right: 24px; top: calc(42% + min(78vw, 360px) * .31 + 24px); text-align: center; font-size: 16px; font-weight: 560; }
.scan .bottom { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 32px); display: flex; justify-content: center; }
.scan .bottom .btn { background: rgb(255 255 255 / .16); color: #fff; backdrop-filter: blur(8px); }
.scan .count { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 16px); padding: 6px 14px; border-radius: var(--r-full); background: rgb(0 0 0 / .45); font-size: 14px; font-weight: 600; }

/* ---------- Snackbar ---------- */
#toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 96px); z-index: 60; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
body.layer-open #toasts { bottom: auto; top: calc(var(--safe-t) + 72px); }
.toast { pointer-events: auto; max-width: 560px; width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; min-height: 52px; border-radius: var(--r-s); background: var(--inverse-surface); color: var(--inverse-on-surface); font-size: 14px; box-shadow: 0 4px 12px rgb(0 0 0 / .25); animation: tin .35s var(--spring); }
.toast p { flex: 1; margin: 0; }
.toast button { color: var(--inverse-primary); font-weight: 640; padding: 10px 12px; border-radius: var(--r-full); }
@keyframes tin { from { transform: translateY(16px) scale(.96); opacity: 0; } }

/* Geteilte Liste */
.shared-list li { list-style: none; }
.shared-list { padding: 0; margin: 0; }
.shared-list .row { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--outline-variant); }
.shared-list .cover { width: 56px; border-radius: 6px; }
.shared-list .isbn { font-size: 13px; color: var(--on-surface-variant); user-select: all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.cover.ph.sm { align-items: center; justify-content: center; padding: 0; }
.cover.ph.sm b { font-size: 22px; -webkit-line-clamp: 1; }
.spice { display: flex; align-items: center; gap: 2px; margin-top: 16px; }
.spice .label { margin-right: 8px; color: var(--on-surface-variant); }
.spice button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--border); border-radius: 50%; }
.spice button.on { color: var(--tertiary); }
.spice .muted { margin-left: 8px; }

/* ---------- Rataska: Logo ---------- */
.logo-hero { width: 132px; height: 132px; margin: 0 auto 20px; border-radius: 34px; }
.logo-mark { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.logo-row { width: 40px; height: 40px; border-radius: 12px; flex: none; }

/* ---------- Reihen ---------- */
.series-link { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 12px 14px 16px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--card-shadow); text-align: left; }
.series-link > span { flex: 1; min-width: 0; }
.series-link .ic:first-child { color: var(--primary); }
.series-meter { display: flex; gap: 4px; margin-top: 16px; }
.series-meter span { flex: 1; height: 10px; border-radius: 5px; background: var(--surface-c-highest); }
.series-meter span.read { background: var(--primary); }
.series-meter span.reading { background: linear-gradient(90deg, var(--primary) 50%, var(--primary-container) 50%); }
.series-meter span.tbr { background: var(--primary-container); }
.series-meter span.wish { background: var(--tertiary); opacity: .7; }
.series-meter span:first-child { border-radius: 5px 3px 3px 5px; }
.volumes { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.volumes li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 4px; border-radius: var(--r-s); background: var(--card); box-shadow: var(--card-shadow); }
.volumes li:first-child { border-radius: var(--r-l) var(--r-l) var(--r-s) var(--r-s); }
.volumes li:last-child { border-radius: var(--r-s) var(--r-s) var(--r-l) var(--r-l); }
.volumes li:only-child { border-radius: var(--r-l); }
.volumes .pos { width: 32px; text-align: center; font-size: 20px; font-weight: 780; font-variation-settings: "wdth" 120, "GRAD" var(--grad); color: var(--primary); }
.volumes .open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.volumes .cover { width: 44px; border-radius: 6px; }
.volumes .t { display: block; font-weight: 620; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.volumes .s { display: block; font-size: 13px; color: var(--on-surface-variant); }
.volumes li.read .s { color: var(--primary); font-weight: 600; }
.volumes li.missing .cover { opacity: .55; filter: grayscale(.6); }
.volumes li.missing .t { color: var(--on-surface-variant); }

/* ---------- Statistik ---------- */
.card { background: var(--card); box-shadow: var(--card-shadow); border-radius: var(--r-xl); padding: 20px; margin-bottom: 12px; }
.card h2 { margin-bottom: 16px; }
.card > p:last-child { margin-bottom: 0; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 150px; align-items: end; }
.mbar { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.mbar .col { width: 100%; max-width: 22px; border-radius: 11px; background: var(--primary-container); transition: height .6s var(--spring); }
.mbar.hl .col { background: var(--primary); }
.mbar .v { font-size: 12px; font-weight: 700; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; min-height: 16px; }
.mbar .m { font-size: 12px; color: var(--on-surface-variant); }
.mbar.hl .m { color: var(--primary); font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.kpis div { display: flex; flex-direction: column; }
.kpis b { font-size: 32px; line-height: 1.05; font-weight: 800; font-variation-settings: "wdth" 120, "opsz" 48, "GRAD" var(--grad); color: var(--primary); font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12px; line-height: 1.3; color: var(--on-surface-variant); margin-top: 4px; }
.mini { width: 100%; display: flex; gap: 14px; align-items: center; padding: 10px 0 0; text-align: left; }
.mini .cover { width: 44px; border-radius: 6px; }
.mini > span { display: flex; flex-direction: column; min-width: 0; }
.mini b { font-weight: 640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank li { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 28px; align-items: center; gap: 12px; font-size: 14px; }
.rank .k { font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .track { height: 12px; border-radius: 6px; background: var(--surface-c-highest); overflow: hidden; }
.rank .track span { display: block; height: 100%; border-radius: 6px; background: var(--primary); }
.rank .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--on-surface-variant); }
.review-cta { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 16px 18px 20px; margin-bottom: 12px; border-radius: 28px 28px 28px 8px; background: var(--accent-fill); color: var(--on-accent-fill); text-align: left; transition: border-radius .3s var(--ease); }
.review-cta:active { border-radius: 8px 28px 28px 28px; }
.review-cta > span { flex: 1; }
.review-cta b { display: block; font-size: 18px; font-weight: 720; }
.review-cta span span { font-size: 14px; opacity: .85; }
.review-cta .ic, .review-cta .ic.chev { color: var(--on-accent-fill); }
.stat { border-radius: var(--r-xl); }

/* ---------- Jahresrückblick ---------- */
.review .kicker { margin: 8px 0 0; font-weight: 700; font-size: 18px; color: var(--primary); }
.review .year { margin: 0 0 20px; font-size: clamp(96px, 32vw, 160px); line-height: .9; font-weight: 880; font-variation-settings: "wdth" 125, "opsz" 144, "GRAD" var(--grad); letter-spacing: -.04em; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 24px; }
.mosaic .cover { border-radius: 8px; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.highlights div { background: var(--card); box-shadow: var(--card-shadow); border-radius: var(--r-l); padding: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.highlights div:first-child { grid-column: 1 / -1; background: var(--primary-container); color: var(--on-primary-container); }
.highlights span { font-size: 13px; color: var(--on-surface-variant); }
.highlights div:first-child span, .highlights div:first-child em { color: inherit; opacity: .8; }
.highlights b { font-size: 18px; line-height: 1.2; font-weight: 720; font-variation-settings: "wdth" 106, "GRAD" var(--grad); overflow-wrap: anywhere; }
.highlights em { font-style: normal; font-size: 13px; color: var(--on-surface-variant); }

/* ---------- Hinzufügen: zwei gleichwertige Wege ---------- */
.start-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 300px; margin: 0 auto; }
.add-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.add-options .scan-hero { margin-top: 0; }
.add-options .scan-hero:first-child { border-radius: var(--r-xl) var(--r-xl) var(--r-s) var(--r-s); }
.add-options .scan-hero.alt { background: var(--surface-c-high); color: var(--on-surface); border-radius: var(--r-s) var(--r-s) var(--r-xl) var(--r-xl); }
.add-options .scan-hero.alt .blob { background: var(--secondary-container); color: var(--on-secondary-container); border-radius: 50%; }
.add-options .scan-hero.alt span span { color: var(--on-surface-variant); opacity: 1; }
.manual-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 20px 4px 0; color: var(--on-surface-variant); font-size: 14px; }
.manual-row p { margin: 0; }
.searchbar.pulse { box-shadow: 0 0 0 3px var(--primary); transition: box-shadow .2s; }

/* ---------- Auswahl-Leiste: eine durchgehende Schiene, die Auswahl sitzt als Pille darin ---------- */
.bgroup { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 0; padding: 4px; border-radius: var(--r-full); background: var(--surface-c-highest); }
.group .bgroup, .panel .bgroup { background: var(--card-inner); }
.bgroup button { min-width: 0; height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: var(--r-full); background: transparent; color: var(--on-surface-variant);
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .25s var(--ease), color .2s, transform .3s var(--spring); }
.bgroup button[aria-checked="true"] { background: var(--accent-fill); color: var(--on-accent-fill); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.bgroup button:active { transform: scale(.96); }
.bgroup .ic { width: 18px; height: 18px; margin-left: -2px; }
.bgroup.compact button { font-size: 13px; padding: 0 4px; }
.bgroup.compact .ic { width: 16px; height: 16px; }

/* ---------- Schalter (Material 3) ---------- */
.switch-row { width: 100%; display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--r-l); text-align: left; }
.switch-row .txt { flex: 1; min-width: 0; }
.switch-row .txt small { display: block; color: var(--on-surface-variant); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 16px; background: var(--surface-c-highest); box-shadow: inset 0 0 0 2px var(--outline); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--outline); transition: all .3s var(--spring); }
[aria-checked="true"] > .switch { background: var(--primary); box-shadow: none; }
[aria-checked="true"] > .switch::after { top: 4px; left: 24px; width: 24px; height: 24px; background: var(--on-primary); }

/* ---------- Logo und Cover im Dunkeln ---------- */
.logo-mark { box-shadow: 0 0 0 1px var(--outline-variant); margin-bottom: 6px; }
.logo-hero { box-shadow: var(--card-shadow), 0 12px 32px -16px rgb(154 68 48 / .35); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-mark, :root:not([data-theme="light"]) .logo-hero, :root:not([data-theme="light"]) .logo-row { filter: brightness(.84) saturate(.92); box-shadow: none; }
  :root:not([data-theme="light"]) .cover { box-shadow: 0 0 0 1px rgb(255 255 255 / .07); }
  :root:not([data-theme="light"]) .desc { line-height: 1.65; }
}
:root[data-theme="dark"] .logo-mark, :root[data-theme="dark"] .logo-hero, :root[data-theme="dark"] .logo-row { filter: brightness(.84) saturate(.92); box-shadow: none; }
:root[data-theme="dark"] .cover { box-shadow: 0 0 0 1px rgb(255 255 255 / .07); }
:root[data-theme="dark"] .desc { line-height: 1.65; }

/* ---------- Besitz ---------- */
.own-flag { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 3px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgb(0 0 0 / .62); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.own-flag.lent { background: var(--tertiary); color: var(--on-tertiary); }
.book.gone .cover { opacity: .5; filter: grayscale(.7); }
.book.gone .t, .book.gone .a { opacity: .65; }

/* ---------- Regal teilen & Freund:innen ---------- */
.share-shelf { display: flex; gap: 16px; padding: 20px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--card-shadow); margin-bottom: 8px; }
.share-shelf > .ic { width: 28px; height: 28px; color: var(--primary); flex: none; margin-top: 2px; }
.share-shelf b { display: block; font-size: 18px; font-weight: 700; }
.share-shelf p { margin: 4px 0 14px; color: var(--on-surface-variant); font-size: 14px; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); font-size: 22px; font-weight: 760; }
.file-btn { margin: 4px 0 0 -8px; }
.file-btn input { display: none; }
.mini-flags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mini-flags span { font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: var(--r-full); background: var(--card-inner); color: var(--on-surface-variant); white-space: nowrap; }
.verdict { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 18px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--card-shadow); }
.verdict .ic { width: 32px; height: 32px; flex: none; }
.verdict b { display: block; font-size: 19px; line-height: 1.25; font-weight: 720; }
.verdict p { margin: 4px 0 0; color: var(--on-surface-variant); font-size: 14px; }
.verdict.yes { background: var(--primary-container); color: var(--on-primary-container); }
.verdict.yes p { color: inherit; opacity: .85; }
.verdict.no .ic { color: var(--primary); }
.verdict.maybe .ic { color: var(--tertiary); }

/* ---------- Live-Teilen, Reservierungen, Wunsch-Details ---------- */
.live-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 8px; }
.share-shelf p .live-state { display: flex; }
.live-state .dot { width: 8px; height: 8px; border-radius: 50%; background: #2e9e5b; box-shadow: 0 0 0 4px rgb(46 158 91 / .18); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.res-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-full); font-size: 13px; font-weight: 650;
  background: var(--secondary-container); color: var(--on-secondary-container); }
.res-btn .ic { width: 16px; height: 16px; }
.res-btn.mine { background: var(--accent-fill); color: var(--on-accent-fill); }
.res-btn.taken { background: none; box-shadow: inset 0 0 0 1px var(--border); color: var(--on-surface-variant); }
.wish-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--on-surface-variant); }
.wish-meta .ic { width: 16px; height: 16px; }
.wish-meta.hot { color: var(--tertiary); }
.wish-note { margin-top: 4px; font-size: 13px; color: var(--on-surface-variant); font-style: italic; }
.group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 20px 4px 4px; }
.group-h .due { font-size: 13px; font-weight: 650; color: var(--tertiary); }
.verdict.warn { box-shadow: inset 0 0 0 2px var(--tertiary); }
.verdict.warn .ic { color: var(--tertiary); }
.share-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; text-align: left; border-top: 1px solid var(--outline-variant); }
.share-row .n { display: block; font-size: 13px; color: var(--on-surface-variant); }
.share-row .live-state { margin-top: 2px; }
.avatar.sm { width: 40px; height: 40px; font-size: 17px; }
