/* Rede: Strava-style mobile layout. Orange accent, white cards on grey, bold stat numbers. */
:root {
  color-scheme: light;
  --orange: #b85a32;
  --accent-rgb: 184 90 50;
  --orange-press: #8a3f22;
  --bg: #f4ecdd;
  --card: #fffbf4;
  --ink: #2b211b;
  --mute: #7a6c60;
  --line: #e7dccb;
  --soft: #f8f1e4;
  --track: #ebdfcc;
  --gold: #d9a43a;
  --blue: #3d6b8c;
  --blue-press: #2c5070;
  --blue-soft: #e3edf4;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media not all {
  :root { --orange: #8ea2e6; --orange-press: #b4c2f0; --accent-rgb: 142 162 230; --bg: #000; --card: #1c1c1e; --ink: #f2f2f5; --mute: #9d9da8; --line: #2e2e33; --soft: #26262a; --track: #34343a; }
}
* { box-sizing: border-box; min-width: 0; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); }
body { padding-bottom: calc(64px + var(--safe-b)); overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }

/* app bar */
.appbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 92px 1fr 92px; align-items: center;
  padding: var(--safe-t) 4px 0; height: calc(52px + var(--safe-t)); background: var(--card); border-bottom: 1px solid var(--line); }
.appbar h1 { margin: 0; font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-r { display: flex; justify-content: flex-end; }
.iconbtn { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.iconbtn:active { background: var(--soft); }
.demo-banner { background: #e9f3ec; color: #1f4f33; font-size: 13px; text-align: center; padding: 6px 12px; }
@media not all { .demo-banner { background: #14301f; color: #9fd3b1; } }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; min-height: 56px; color: var(--mute); text-decoration: none; font-size: 11px; font-weight: 600; }
.tabbar a[aria-current=page] { color: var(--orange); }

main { max-width: 640px; margin: 0 auto; display: grid; gap: 8px; padding-bottom: 16px; }
.loading, .empty { padding: 40px 20px; text-align: center; color: var(--mute); }
.empty h2 { color: var(--ink); }

/* cards */
.card { background: var(--card); padding: 16px; }
@media (min-width: 641px) { main { padding-top: 12px; } .card { border-radius: 8px; border: 1px solid var(--line); } }
.card h2 { font-size: 18px; margin: 0 0 12px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
small, .mute { color: var(--mute); font-size: 13px; }

/* buttons */
.btn { min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1.5px solid var(--orange); background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:active { background: var(--orange-press); }
.btn.line { background: none; color: var(--orange); }
.btn.grey { background: var(--soft); border-color: var(--line); color: var(--ink); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; }
.linkbtn { background: none; border: 0; color: var(--orange); font-weight: 600; padding: 8px 0; }

/* forms */
label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--mute); }
input, select, textarea { width: 100%; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; }
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.err { color: #d42c1f; font-size: 14px; margin: 0; min-height: 1em; }
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); }

/* activity card */
.act { display: grid; gap: 12px; }
.act-h { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; background: hsl(var(--h) 45% 45%); }
.av.lg { width: 72px; height: 72px; font-size: 28px; }
.act-h b { display: block; font-size: 15px; }
.act-h small { display: flex; align-items: center; gap: 4px; }
.act-h small svg { width: 14px; height: 14px; }
.act-t { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.25; text-decoration: none; color: inherit; display: block; }
.note { margin: -4px 0 0; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats > div { padding-left: 12px; border-left: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; border: 0; }
.stats small { display: block; font-size: 12px; }
.stats b { font-size: 21px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats b i { font-style: normal; font-size: 14px; font-weight: 500; color: var(--mute); }
.book { display: flex; gap: 12px; align-items: center; background: var(--soft); border-radius: 6px; padding: 10px; }
.cover { width: 40px; height: 60px; border-radius: 3px; flex: none; object-fit: cover; background: hsl(var(--h) 35% 40%); display: grid; place-items: center; color: #fff; font: 700 15px/1 Georgia, serif; }
.book b { display: block; font-size: 15px; line-height: 1.3; }
.route { position: relative; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; margin-top: 8px; }
.route i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.route .done { left: 0; background: #b7b7c2; border-radius: 0; }
.route .seg { background: var(--orange); }
.route-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-top: 4px; gap: 8px; }
.badge { background: var(--orange); color: #fff; border-radius: 3px; padding: 0 6px; font-weight: 700; font-size: 12px; }
.social { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); margin: 0 -16px -6px; padding: 6px 8px 0; }
.social .who { flex: 1; font-size: 13px; color: var(--mute); padding-left: 8px; }
.sbtn { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink); position: relative; }
.sbtn:active { background: var(--soft); }
.sbtn.on { color: var(--orange); }
.sbtn.on svg { fill: currentColor; }
.sbtn em { position: absolute; top: 4px; right: 2px; font-style: normal; font-size: 11px; font-weight: 700; }
.more { display: flex; justify-content: center; padding: 8px 0 20px; }

/* comments */
.comments { display: grid; gap: 12px; }
.cmt { display: flex; gap: 10px; }
.cmt .av { width: 32px; height: 32px; font-size: 13px; }
.cmt p { margin: 0; }
.cmt-form { display: flex; gap: 8px; }

/* week card */
.week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.week b { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 84px; align-items: end; }
.day { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; }
.day i { align-self: end; background: var(--orange); border-radius: 3px 3px 1px 1px; min-height: 3px; }
.day.zero i { background: var(--track); }
.day span { font-size: 11px; color: var(--mute); font-weight: 600; }
.day.today span { color: var(--ink); }
.streak { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.streak svg { width: 18px; height: 18px; color: var(--orange); }

/* record */
.rec { min-height: calc(100vh - 52px - 64px - var(--safe-t) - var(--safe-b)); min-height: calc(100dvh - 52px - 64px - var(--safe-t) - var(--safe-b)); display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; background: var(--card); padding: 16px 16px 24px; text-align: center; }
.pick { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 10px 12px; width: 100%; }
.pick > div { flex: 1; }
.pick b { display: block; }
.clock { align-self: center; }
.clock b { display: block; font-size: clamp(56px, 18vw, 88px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.clock small { font-size: 14px; text-transform: none; }
.ctrls { display: flex; justify-content: center; gap: 28px; align-items: center; min-height: 96px; }
.round { width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px rgb(var(--accent-rgb) / .35); }
.round:active { transform: scale(.96); }
.round.white { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.alt { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* lists */
.list { display: grid; }
.li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.li:last-child { border: 0; }
.li > div { flex: 1; }
.li b { display: block; }
.meter { height: 6px; border-radius: 3px; background: var(--track); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--orange); }
.result { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; }

/* profile */
.prof { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 24px; }
.prof h2 { margin: 6px 0 0; font-size: 22px; }
.counts { display: flex; gap: 28px; margin: 8px 0 4px; }
.counts b { display: block; font-size: 18px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tiles div { background: var(--card); padding: 12px; }
.tiles b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.weeks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 120px; align-items: end; }
.weeks i { background: var(--orange); opacity: .55; border-radius: 2px 2px 0 0; min-height: 2px; }
.weeks i:last-child { opacity: 1; }
.weeks-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin-top: 6px; }
.goal-big { font-size: 36px; font-weight: 700; line-height: 1.1; }
.goal-big span { font-size: 15px; color: var(--mute); font-weight: 500; }
.bests { list-style: none; margin: 0; padding: 0; }
.bests li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.bests li:last-child { border: 0; }
.seg-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.seg-tabs button { flex: 1; min-height: 38px; border-radius: 19px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; }
.seg-tabs button[aria-pressed=true] { background: var(--ink); color: var(--card); border-color: var(--ink); }

/* import */
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.drop { border: 2px dashed var(--line); border-radius: 8px; padding: 24px 16px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ibook { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ibook:last-child { border: 0; }

/* sheet */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 640px; max-height: calc(100dvh - 40px); overflow: auto; border-radius: 14px 14px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); overscroll-behavior: contain; }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-size: 18px; margin: 0 0 14px; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }

.toast { position: fixed; left: 50%; bottom: calc(76px + var(--safe-b)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 8px; font-size: 14px; max-width: calc(100% - 32px); }

/* auth */
.auth { min-height: 100dvh; display: grid; align-content: center; padding: 24px; max-width: 420px; margin: 0 auto; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; color: var(--orange); letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; stroke: none; fill: var(--orange); }
.auth h2 { font-size: 26px; line-height: 1.15; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .route .seg { animation: grow .6s ease-out both; } @keyframes grow { from { clip-path: inset(0 100% 0 0); } } }
#back[hidden] { display: grid !important; visibility: hidden; }

/* read with friends */
.with { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mute); margin-top: -4px; }
.stack { display: flex; }
.stack .av { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--card); margin-left: -6px; }
.stack .av:first-child { margin-left: 0; }
.tagged { display: block; color: var(--orange); font-weight: 600; margin: -4px 0 -6px; }
.withbox { border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; }
.withbox summary { display: flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; font-weight: 600; list-style: none; }
.withbox summary::-webkit-details-marker { display: none; }
.withbox summary b { margin-left: auto; background: var(--orange); color: #fff; border-radius: 10px; min-width: 20px; padding: 0 6px; font-size: 12px; text-align: center; }
.withbox summary b:empty { display: none; }
.withbox[open] { padding-bottom: 10px; }
.tagrow { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tagrow:last-child { border: 0; }
.tagrow .av { width: 32px; height: 32px; font-size: 12px; }
.tagrow b { font-weight: 600; }
.withpick svg:first-child { color: var(--orange); width: 28px; height: 28px; margin: 0 6px; }
.invite .btn svg { width: 20px; height: 20px; }
.li [data-follow] { margin-left: auto; flex: none; }

/* where you read */
.loc svg { width: 16px; height: 16px; color: var(--orange); flex: none; }
.spots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.spot { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; }
.spot[aria-pressed=true] { background: var(--orange); border-color: var(--orange); color: #fff; }
#eGeo svg { width: 18px; height: 18px; }
#eLocS { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* passport */
:root { --paper: #fbf6ea; --paper-line: rgb(120 90 40 / .07); }
@media not all { :root { --paper: #1f1c16; --paper-line: rgb(255 220 150 / .05); } }
.pp-mini { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.pp-mini > div { flex: 1; } .pp-mini b { display: block; }
.pp-emb { width: 40px; height: 40px; border-radius: 8px; background: #6e1f2c; display: grid; place-items: center; flex: none; }
.pp-emb svg { width: 20px; height: 20px; fill: #e2c275; stroke: none; }
.pp-flags { font-size: 22px; letter-spacing: 2px; white-space: nowrap; }
.pp-cover { background: #6e1f2c; color: #e9cd88; text-align: center; padding: 32px 16px 26px; display: grid; justify-items: center; gap: 4px; }
.pp-cover .pp-emb { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #e2c275; background: none; margin-bottom: 6px; }
.pp-cover .pp-emb svg { width: 28px; height: 28px; }
.pp-cover small { color: #e9cd88; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.pp-cover h2 { margin: 0; font: 700 26px/1.2 Georgia, "Times New Roman", serif; color: #f4dfa8; }
.pp-counts { display: flex; gap: 36px; margin-top: 12px; }
.pp-counts b { display: block; font-size: 34px; line-height: 1; color: #fff3d0; }
.pp-counts span { font-size: 13px; }
@media (min-width: 641px) { .pp-cover { border-radius: 10px; } }
.miles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.mile { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; color: var(--mute); }
.mile b { display: block; font-size: 14px; }
.mile.on { border: 1px solid var(--orange); background: rgb(var(--accent-rgb) / .08); color: var(--ink); }
.mile.on small { color: var(--orange); }
.pp-page { background: var(--paper) repeating-linear-gradient(0deg, var(--paper-line) 0 1px, transparent 1px 26px); }
.stamps { display: flex; flex-wrap: wrap; gap: 18px 14px; justify-content: center; padding: 6px 0 10px; }
.stamp { --c: hsl(var(--h) 62% 36%); color: var(--c); border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: -8px; transform: rotate(var(--r)); display: grid; place-content: center; justify-items: center; text-align: center; gap: 1px; padding: 14px; opacity: .92; mix-blend-mode: multiply; }
@media not all { .stamp { --c: hsl(var(--h) 70% 68%); mix-blend-mode: normal; } }
.stamp b { font: 800 14px/1.1 var(--font); text-transform: uppercase; letter-spacing: .06em; max-width: 120px; overflow-wrap: anywhere; }
.stamp small { color: currentColor; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.stamp .st-flag { font-size: 26px; line-height: 1.1; }
.stamp.round { width: 138px; height: 138px; border-radius: 50%; }
.stamp.oval { width: 172px; height: 128px; padding: 18px 22px; border-radius: 50%; }
.stamp.rect { width: 146px; height: 112px; border-radius: 10px; }
.stamp.ticket { width: 150px; min-height: 84px; border-radius: 4px; border-style: dashed; }

/* how it felt, reviews, notifications */
.feel { justify-self: start; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 2px 10px; font-size: 13px; font-weight: 600; margin-top: -4px; }
.spot.skip { color: var(--mute); border-style: dashed; }
.spot.skip[aria-pressed=true] { background: var(--soft); color: var(--ink); border-color: var(--line); }
.lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.rate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rate button { min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 16px; }
.rate button[aria-pressed=true] { background: var(--orange); border-color: var(--orange); color: #fff; }
.celebrate { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.celebrate .cover { width: 56px; height: 84px; }
.celebrate small:first-child { color: var(--orange); font-weight: 700; }
.celebrate h2 { margin: 2px 0; font-size: 21px; line-height: 1.2; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }
.review { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 6px; padding: 12px; display: grid; gap: 10px; }
.rv-top { display: flex; gap: 12px; align-items: center; }
.rv-top b { display: block; }
.rv-score { font-size: 30px; font-weight: 800; line-height: 1; color: var(--orange); }
.rv-score small { font-size: 14px; color: var(--mute); font-weight: 600; }
.rv-q small { display: block; font-weight: 600; }
.rv-q p { margin: 2px 0 0; white-space: pre-line; }
.review.clamp .rv-q p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-more { font-size: 14px; font-weight: 600; text-decoration: none; }
.rv-pill { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.rv-pill svg { width: 15px; height: 15px; color: var(--orange); }
.li [data-finish], .li [data-review] { flex: none; }
.bell { position: relative; }
.bell em { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--orange); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; padding: 0 4px; }
.tabbar a { position: relative; }
.tabbar a.dot::after { content: ""; position: absolute; top: 7px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.note { align-items: flex-start; }
.note p { margin: 0; font-size: 15px; line-height: 1.35; }
.note.new { background: rgb(var(--accent-rgb) / .06); margin: 0 -16px; padding-inline: 16px; }
.note-ic svg { width: 20px; height: 20px; color: var(--orange); }
.note p b { display: inline; }

/* ---------- bookshelf ---------- */
.pat { position: absolute; inset: 0; opacity: .17; pointer-events: none; }
.pat-stripes { background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 16px); }
.pat-diagonal { background: repeating-linear-gradient(45deg, currentColor 0 4px, transparent 4px 13px); }
.pat-dots { background: radial-gradient(currentColor 2px, transparent 2.6px) 0 0 / 13px 13px; }
.pat-grid { background: linear-gradient(currentColor 1px, transparent 1px) 0 0 / 15px 15px, linear-gradient(90deg, currentColor 1px, transparent 1px) 0 0 / 15px 15px; }
.pat-waves { background: radial-gradient(circle at 50% 0, transparent 7px, currentColor 7.5px 9.5px, transparent 10px) 0 0 / 22px 12px; }
.pat-rings { background: repeating-radial-gradient(circle at 50% 45%, currentColor 0 2px, transparent 2px 12px); }
.pat-sunburst { background: repeating-conic-gradient(from 0deg at 50% 45%, currentColor 0 7deg, transparent 7deg 20deg); }
.pat-chevron { background: linear-gradient(135deg, currentColor 25%, transparent 25%) -9px 0 / 18px 18px, linear-gradient(225deg, currentColor 25%, transparent 25%) -9px 0 / 18px 18px; }
.pat-frame { inset: 7%; opacity: .55; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 3px; background: none; }
.pat-plain { display: none; }

.bcover { position: relative; flex: none; width: var(--cw, 200px); aspect-ratio: 2 / 3; background: var(--bg); color: var(--ink); border-radius: 3px 8px 8px 3px; overflow: hidden; container-type: inline-size;
  box-shadow: inset 7px 0 9px -5px rgb(0 0 0 / .4), inset -1px 0 0 rgb(255 255 255 / .15), 0 12px 26px rgb(0 0 0 / .28); }
.bcover.xs { --cw: 40px; border-radius: 2px 4px 4px 2px; box-shadow: inset 3px 0 4px -2px rgb(0 0 0 / .4); }
.bcover.md { --cw: 128px; }
.bcover.lg { --cw: min(220px, 58vw); }
.bcover .motif { position: absolute; left: 50%; width: 46%; height: auto; transform: translateX(-50%); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bcover .motif .f { fill: currentColor; stroke: none; }
.bc-t { position: absolute; left: 9%; right: 9%; text-align: center; display: grid; gap: 4cqw; }
.bc-t b { font-family: var(--font); font-weight: normal; font-size: 13cqw; line-height: 1.05; overflow-wrap: anywhere; }
.bc-t.mid b { font-size: 10.5cqw; } .bc-t.long b { font-size: 8.5cqw; }
.bc-t small { color: currentColor; opacity: .85; font-size: 6.5cqw; font-family: var(--font); letter-spacing: .04em; }
.pos-top .bc-t { top: 10%; } .pos-top .motif { top: 50%; }
.pos-middle .bc-t { top: 50%; transform: translateY(-50%); } .pos-middle .motif { top: 7%; width: 30%; }
.pos-bottom .bc-t { bottom: 9%; } .pos-bottom .motif { top: 12%; }
.nomotif.pos-top .bc-t, .nomotif.pos-bottom .bc-t { top: 50%; bottom: auto; transform: translateY(-50%); }
.bcover.xs .bc-t { display: none; } .bcover.xs .motif { top: 50%; transform: translate(-50%, -50%); width: 60%; }

/* shelf */
.shelf-tabs { display: flex; gap: 14px; overflow-x: auto; padding: 12px 16px; background: var(--card); scrollbar-width: none; }
.shelf-tabs a { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--mute); font-size: 12px; font-weight: 600; flex: none; }
.shelf-tabs .av { width: 46px; height: 46px; outline: 2px solid transparent; outline-offset: 2px; }
.shelf-tabs a[aria-current=page] { color: var(--ink); } .shelf-tabs a[aria-current=page] .av { outline-color: var(--orange); }
.case-wrap { background: #3a281b; padding: 14px 10px 10px; box-shadow: inset 0 10px 24px rgb(0 0 0 / .45); }
@media (min-width: 641px) { .case-wrap { border-radius: 10px; } }
.case-head { display: flex; justify-content: space-between; align-items: baseline; color: #f1dfc4; padding: 0 6px 6px; }
.case-head small { color: #cdb495; }
.bookcase { --row: 252px; display: flex; flex-wrap: wrap; align-items: flex-end; padding: 0 8px;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 16px), #b07a4a calc(var(--row) - 16px) calc(var(--row) - 12px), #8d5b33 calc(var(--row) - 12px) calc(var(--row) - 3px), #4e321d calc(var(--row) - 3px) var(--row)); }
.slot { height: var(--row, 252px); display: flex; align-items: flex-end; padding-bottom: 16px; margin-right: 2px; }
.spine { position: relative; width: var(--w); height: var(--h); background: var(--bg); color: var(--ink); border: 0; border-radius: 3px 3px 1px 1px; padding: 10px 0 8px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; cursor: pointer; transform-origin: bottom center;
  box-shadow: inset 3px 0 4px -1px rgb(255 255 255 / .18), inset -4px 0 6px -2px rgb(0 0 0 / .35), 1px 0 0 rgb(0 0 0 / .3); transition: transform .28s cubic-bezier(.3, .7, .3, 1), box-shadow .28s; }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: currentColor; opacity: .35; }
.spine::before { top: 5px; } .spine::after { bottom: 4px; }
.sp-t, .sp-a { writing-mode: vertical-rl; font-family: var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.sp-t { font-size: clamp(12px, calc(var(--w) * .42), 17px); max-height: calc(var(--h) - 56px); line-height: 1.05; }
.sp-a { font-size: 10px; opacity: .85; max-height: 40px; }
.spine:hover { transform: translateY(-6px); }
.spine.out { transform: translateY(-34px) rotate(-2deg); box-shadow: 0 14px 22px rgb(0 0 0 / .5); z-index: 2; }
.spine.fresh { animation: shelveIn .7s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes shelveIn { from { transform: translateY(-90px) rotate(8deg); opacity: 0; } }
.empty-case { min-height: 252px; display: grid; place-items: center; }
.empty-case p { color: #e8d6c0; text-align: center; margin: 0 0 30px; }
.shelf-mini { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.shelf-mini > div:nth-child(2) { flex: 1; } .shelf-mini b { display: block; }
.mini-case { display: flex; align-items: flex-end; gap: 1px; height: 52px; min-width: 64px; padding: 4px 6px 0; background: #3a281b linear-gradient(to top, #8d5b33 0 5px, transparent 5px); border-radius: 4px; }
.mini-case i { display: block; border-radius: 1px 1px 0 0; margin-bottom: 5px; box-shadow: inset -1px 0 0 rgb(0 0 0 / .3); }

/* book view (pulled out) */
.bv-cover { display: flex; justify-content: center; perspective: 900px; padding-top: 4px; }
.bv-cover .bcover { animation: pullOut .65s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pullOut { from { transform: translateY(50px) rotateY(80deg) scale(.5); opacity: .2; } }
.bv-score { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: -4px 0 14px; }
.bv-score b { font-size: 40px; color: var(--orange); line-height: 1; } .bv-score span { color: var(--mute); font-weight: 600; }
.bv-score small { margin-left: 10px; background: var(--soft); border-radius: 10px; padding: 2px 10px; font-weight: 600; }
.bv .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bv .tiles b { font-size: 19px; }
.bv .bests b { text-align: right; }

/* designer */
.dprev { display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding: 10px 0 16px; position: sticky; top: -8px; background: var(--card); z-index: 1; border-bottom: 1px solid var(--line); margin: 0 -16px 8px; }
.dprev .slot.preview { height: auto; padding: 0; }
.dprev .spine { --h: 192px !important; pointer-events: none; }
.dsec { margin-top: 12px; }
.drow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.dopt { flex: none; display: grid; justify-items: center; gap: 4px; background: none; border: 2px solid transparent; border-radius: 10px; padding: 4px; scroll-snap-align: start; color: var(--ink); }
.dopt small { font-size: 11px; white-space: nowrap; }
.dopt[aria-pressed=true] { border-color: var(--orange); }
.dopt.round { border-radius: 50%; padding: 3px; }
.sw { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 Georgia, serif; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.pt { position: relative; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; display: block; }
.pt .pat { opacity: .35; }
.pt .pat-frame { opacity: .7; }
.mt { width: 52px; height: 52px; border-radius: 6px; background: var(--soft); display: grid; place-items: center; }
.mt svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 3; }
.mt svg .f { fill: currentColor; stroke: none; }
.ft { width: 52px; height: 52px; border-radius: 6px; background: var(--soft); display: grid; place-items: center; font-size: 24px; }
.dopt.swatch { border-radius: 10px; }
.dopt.swatch .sw { width: 42px; height: 42px; }

/* the library */
.lib-hero { background: #3a281b linear-gradient(to top, #8d5b33 0 10px, #4e321d 10px 13px, transparent 13px); color: #f1dfc4; padding: 22px 18px 30px; }
.lib-hero h2 { margin: 0 0 6px; font: 800 26px/1.15 var(--font); color: #fff1da; }
.lib-hero p { margin: 0; color: #d9c3a5; font-size: 15px; }
@media (min-width: 641px) { .lib-hero { border-radius: 10px; } }
.lib-list { display: grid; gap: 10px; }
.lib-shelf { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "av info" "case case"; gap: 8px 12px; align-items: center; text-decoration: none; color: inherit; }
.card.lib-shelf { padding: 14px 16px; }
.lib-list .lib-shelf { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lib-list .lib-shelf:last-child { border: 0; padding-bottom: 0; }
.lib-shelf > .av { grid-area: av; } .lib-info { grid-area: info; } .lib-info b { display: block; }
.lib-case { grid-area: case; display: flex; align-items: flex-end; gap: 1px; height: 78px; padding: 6px 10px 0; background: #3a281b linear-gradient(to top, #4e321d 0 2px, #8d5b33 2px 9px, transparent 9px); border-radius: 6px; overflow: hidden; }
.lib-case i { position: relative; display: block; background: var(--bg); color: var(--ink); border-radius: 2px 2px 0 0; margin-bottom: 9px; overflow: hidden; box-shadow: inset 2px 0 2px -1px rgb(255 255 255 / .2), inset -2px 0 3px -1px rgb(0 0 0 / .35); flex: none; }
.lib-case span { color: #cdb495; font-size: 13px; align-self: center; margin-bottom: 9px; }
.lib-recent { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.lib-recent a { flex: none; display: grid; gap: 4px; justify-items: center; text-decoration: none; color: var(--mute); scroll-snap-align: start; }
.bcover.sm { --cw: 84px; }

/* ---------- to read (covers facing out) ---------- */
.face { position: relative; display: block; flex: none; width: 100px; aspect-ratio: 2 / 3; border-radius: 3px 6px 6px 3px; }
.face .bcover { --cw: 100%; width: 100%; }
.face-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--soft);
  box-shadow: inset 6px 0 8px -4px rgb(0 0 0 / .4), 0 10px 22px rgb(0 0 0 / .3); }
.face.thumb { width: 46px; } .face.thumb .bcover { box-shadow: inset 3px 0 4px -2px rgb(0 0 0 / .4); } .face.thumb .bc-t small { display: none; }
.face.mini { width: 30px; } .face.mini .bc-t { display: none; } .face.mini .bcover { box-shadow: none; }
.face.big { width: min(220px, 58vw); }
.face.big .face-img { animation: pullOut .65s cubic-bezier(.2, .8, .2, 1) both; }
.facecase { --row: 196px; display: grid; grid-template-columns: repeat(auto-fill, 100px); justify-content: space-evenly; column-gap: 10px; grid-auto-rows: var(--row); align-items: end; padding: 0 8px;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 16px), #b07a4a calc(var(--row) - 16px) calc(var(--row) - 12px), #8d5b33 calc(var(--row) - 12px) calc(var(--row) - 3px), #4e321d calc(var(--row) - 3px) var(--row)); }
.fslot { background: none; border: 0; padding: 0 0 16px; cursor: pointer; transform-origin: bottom center; transition: transform .25s cubic-bezier(.3, .7, .3, 1); }
.fslot:hover, .fslot:focus-visible { transform: translateY(-6px) rotate(-1.5deg); }
.fslot .face { box-shadow: 4px 6px 10px rgb(0 0 0 / .45); }
.tr-res { align-items: center; }
.tr-res .btn { flex: none; }
.mini-face { display: flex; gap: 3px; align-items: flex-end; min-width: 64px; height: 52px; padding: 4px 6px 5px; background: #3a281b linear-gradient(to top, #8d5b33 0 5px, transparent 5px); border-radius: 4px; }
.shelf-switch { display: flex; gap: 6px; padding: 10px 16px; background: var(--card); }
.shelf-switch a { flex: 1; text-align: center; min-height: 38px; line-height: 38px; border-radius: 19px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.shelf-switch a[aria-current=page] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.lib-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lib-btns .lib-tr { background: #f1dfc4; border-color: #f1dfc4; color: #3a281b; }
.case-head .btn { flex: none; }

/* ---------- reading tab ---------- */
.reading-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 18px 14px; }
.rbook { background: none; border: 0; padding: 0; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--ink); cursor: pointer; }
.rbook .face { width: 100%; max-width: 120px; transition: transform .2s; }
.rbook:active .face { transform: scale(.96); }
.rbook .rb-t { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rbook .meter { width: 100%; max-width: 120px; margin: 0; }
.rbook small { font-size: 12px; }
.add-face { border: 2px dashed var(--line); border-radius: 6px; display: grid; place-items: center; background: var(--soft); }
.add-face span { font-size: 42px; color: var(--orange); font-weight: 300; }
.timerbar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border-left: 4px solid var(--orange); }
.timerbar b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tb-btns { display: flex; gap: 6px; }
.tb-x { grid-column: 1 / -1; justify-self: start; padding: 0; font-size: 14px; }
@media (max-width: 380px) { .timerbar { grid-template-columns: auto 1fr; } .tb-btns { grid-column: 1 / -1; } }
.ql-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ql-head b { display: block; font-size: 18px; line-height: 1.2; }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.stepper button { min-height: 52px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); font-size: 26px; font-weight: 500; }
.stepper input { text-align: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.spot.fin-btn { border-color: var(--orange); color: var(--orange); }
.ql-fixed { display: grid; gap: 5px; } .ql-fixed small { font-weight: 600; } .ql-fixed b { font-size: 18px; padding: 10px 0; }
.ql-where { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 12px; }
.ql-where .sec-head { margin-bottom: 8px; }
#qGeo { display: inline-flex; align-items: center; gap: 3px; color: var(--orange); font-weight: 600; }
#qGeo svg { width: 14px; height: 14px; }
.tr-pick { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.trp { flex: none; width: 72px; display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--ink); }
.trp .face.thumb { width: 64px; }
.trp small { font-size: 11px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.face.thumb .bc-t { display: none; }
.face.thumb .motif, .face.mini .motif { top: 50% !important; transform: translate(-50%, -50%); width: 58% !important; }

/* vibe & genre tags */
.vibes { gap: 6px; }
.vibes .spot { min-height: 34px; font-size: 13px; padding: 0 11px; }
.vchips { display: flex; flex-wrap: wrap; gap: 5px; }
.vchips span { background: rgb(var(--accent-rgb) / .1); color: var(--ink); border-radius: 12px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.vchips.center { justify-content: center; margin: -6px 0 14px; }
.tagfilter { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.tagfilter .spot { flex: none; min-height: 34px; font-size: 13px; }
.tagfilter .spot small { color: inherit; opacity: .7; margin-left: 2px; }
.case-wrap .tagfilter { padding: 0 6px 12px; }
.case-wrap .tagfilter .spot { background: rgb(255 255 255 / .1); color: #f1dfc4; border-color: rgb(255 255 255 / .2); }
.case-wrap .tagfilter .spot[aria-pressed=true] { background: var(--orange); border-color: var(--orange); color: #fff; }
.spine.dim { opacity: .25; filter: grayscale(.6); }
.lib-recent.wrap { flex-wrap: wrap; overflow: visible; gap: 16px 12px; padding-top: 8px; }
.lib-recent.wrap a { width: 100px; text-align: center; }
.lib-recent.wrap small { font-size: 12px; line-height: 1.3; color: var(--mute); }
.lib-recent.wrap small b { color: var(--ink); }
.chooser { border: 2px solid var(--orange); }
.choice { display: grid; gap: 4px; text-align: left; width: 100%; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 10px; color: var(--ink); }
.choice b { font-size: 17px; } .choice span { color: var(--mute); font-size: 14px; }
.choice:active { border-color: var(--orange); }
.ql-alt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bcover .bc-t small { color: currentColor !important; font-size: 6.5cqw !important; line-height: 1.2; }

/* ---------- passport booklet ---------- */
.pp-stage { display: grid; justify-items: center; gap: 12px; padding: 22px 12px 30px; background: radial-gradient(ellipse at 50% 30%, #fff 0, var(--bg) 70%); }
@media not all { .pp-stage { background: radial-gradient(ellipse at 50% 30%, #2a2a2e 0, var(--bg) 70%); } }
.pp-book { position: relative; width: min(350px, 92vw); aspect-ratio: 5 / 7.1; perspective: 1800px; }
.pp-pages { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 4px 14px 14px 4px;
  box-shadow: 0 2px 0 #d8d0bd, 0 4px 0 #cfc6b1, 0 18px 40px rgb(0 0 0 / .28); outline: none; }
.pp-pages::-webkit-scrollbar { display: none; }
.pp-page { flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden; color: #3d3428; font-family: var(--font);
  background: repeating-radial-gradient(circle at 50% 115%, rgb(80 130 120 / .07) 0 1px, transparent 1px 8px), repeating-linear-gradient(118deg, rgb(190 110 130 / .06) 0 1px, transparent 1px 10px), linear-gradient(#f8f3e7, #f1e9d6);
  box-shadow: inset 16px 0 18px -16px rgb(0 0 0 / .4); }
.pp-page::after { content: "REDE"; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-28deg); font: 800 44px/1 Georgia, serif; letter-spacing: .12em; color: rgb(110 31 44 / .05); pointer-events: none; white-space: nowrap; }
.pp-ph { display: flex; justify-content: space-between; padding: 14px 18px 0 24px; font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #8a7a62; }
.pp-no { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; color: #9c8d74; font-weight: 700; }
.pp-empty { position: absolute; inset: 40% 14% auto; text-align: center; color: #9c8d74; font-size: 14px; border: 2px dashed #d5c9b1; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 20px; }

/* data page */
.pp-data { background: repeating-radial-gradient(circle at 0 0, rgb(200 120 150 / .07) 0 1px, transparent 1px 7px), repeating-radial-gradient(circle at 100% 100%, rgb(90 140 170 / .07) 0 1px, transparent 1px 7px), linear-gradient(#f9f1ec, #efe5dc); }
.pp-id { display: grid; grid-template-columns: 34% 1fr; gap: 12px; padding: 16px 16px 0 24px; }
.pp-photo { position: relative; aspect-ratio: 3 / 4; background: #e4ddd0; border-radius: 4px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.pp-photo .av.lg { width: 76%; height: auto; aspect-ratio: 1; font-size: 30px; }
.pp-photostamp { position: absolute; right: -8px; bottom: 10px; transform: rotate(-14deg); border: 2px solid #1f5aa6; color: #1f5aa6; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; opacity: .8; background: rgb(255 255 255 / .2); }
.pp-id dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; align-content: start; }
.pp-id dl .wide { grid-column: 1 / -1; }
.pp-id dt { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #8a7a62; font-weight: 700; }
.pp-id dd { margin: 1px 0 0; font: 700 13px/1.2 'Courier New', monospace; color: #2c2419; overflow-wrap: anywhere; }
.pp-tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 16px 0 24px; border-top: 1px solid #d7cbb4; border-bottom: 1px solid #d7cbb4; padding: 8px 0; text-align: center; }
.pp-tally b { display: block; font-size: 20px; color: #6e1f2c; line-height: 1.1; }
.pp-tally span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a7a62; font-weight: 700; }
.pp-mrz { position: absolute; left: 20px; right: 12px; bottom: 30px; font: 700 clamp(10px, 3.2vw, 12.5px)/1.5 'Courier New', monospace; letter-spacing: .06em; color: #4a4033; word-break: break-all; }

/* stamps */
.pstamp { position: absolute; transform: rotate(var(--r)); opacity: .86; mix-blend-mode: multiply; filter: url(#inkf); }
.pstamp svg { display: block; width: 100%; height: auto; overflow: visible; font-family: 'Courier New', var(--font); }
.pstamp .mot .f { fill: currentColor; stroke: none; }
.pp-visa:nth-child(odd) .pstamp:nth-child(3n) { opacity: .72; }

/* endorsements */
.pp-miles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 22px 18px 0 26px; }
.pp-mile { border: 2px dashed #cbbfa7; border-radius: 6px; padding: 8px 10px; text-align: center; color: #a3957c; transform: rotate(var(--r)); }
.pp-mile b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.pp-mile small { font-size: 11px; color: inherit; }
.pp-mile.on { border: 3px double currentColor; mix-blend-mode: multiply; opacity: .88; }

/* cover */
.pp-cover { position: absolute; inset: 0; z-index: 3; border: 0; border-radius: 4px 14px 14px 4px; color: #e3c47a; cursor: pointer; transform-origin: left center; transition: transform .9s cubic-bezier(.4, .1, .2, 1), box-shadow .9s;
  display: grid; justify-items: center; align-content: space-between; padding: 30px 20px 26px; backface-visibility: hidden;
  background: radial-gradient(circle at 30% 20%, rgb(255 255 255 / .08), transparent 55%), repeating-radial-gradient(circle at 40% 60%, rgb(0 0 0 / .05) 0 1px, transparent 1px 3px), linear-gradient(135deg, #7c2433, #5a1622);
  box-shadow: inset 8px 0 12px -6px rgb(0 0 0 / .5), inset -2px 0 0 rgb(255 255 255 / .08), 0 18px 40px rgb(0 0 0 / .35); }
.pp-cover.open { transform: rotateY(-168deg); box-shadow: none; }
.pp-gold { font-family: Georgia, 'Times New Roman', serif; text-transform: uppercase; text-shadow: 0 1px 0 rgb(0 0 0 / .35), 0 0 12px rgb(227 196 122 / .25); }
.pp-top { font-size: 14px; letter-spacing: .3em; }
.pp-brand { font-size: 30px; letter-spacing: .14em; font-weight: 700; }
.pp-name { font-size: 12px; letter-spacing: .22em; opacity: .85; }
.pp-crest { width: 46%; height: auto; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .4)); }
.pp-chip { width: 40px; height: 26px; }
.pp-tap { font: 600 13px/1 var(--font); color: rgb(227 196 122 / .9); letter-spacing: .05em; animation: tapPulse 2s ease-in-out infinite; }
@keyframes tapPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pp-cover { transition: none; } .pp-tap { animation: none; } }
.pp-nav { display: flex; align-items: center; gap: 10px; }
.pp-nav span { font-weight: 700; font-size: 14px; min-width: 100px; text-align: center; }
.pp-hint { margin: -6px 0 0; font-size: 13px; }

/* bookshelf UI uses the app font; only spines and covers get their own fonts */
.shelf-switch a[aria-current=page] { background: #3a281b; border-color: #3a281b; color: #fbe9cf; }
.case-head b { font-size: 17px; color: #fbe9cf; }

/* cosier spines */
.sp-t { font-size: clamp(13px, calc(var(--w) * .46), 19px); letter-spacing: .02em; }
.sp-a { font-size: 11px; opacity: .85; max-height: 52px; }
.spine::before, .spine::after { height: 2px; opacity: .45; border-radius: 1px; }
.spine::before { top: 7px; left: 4px; right: 4px; } .spine::after { bottom: 6px; left: 4px; right: 4px; }
.spine { border-radius: 4px 4px 2px 2px; }

/* accent colourways (mock-ups): html[data-accent=green|red] */
html[data-accent=green] { --orange: #2f7a4d; --orange-press: #255f3c; --accent-rgb: 47 122 77; }
html[data-accent=red] { --orange: #c8373e; --orange-press: #a82c32; --accent-rgb: 200 55 62; }
html[data-accent] .round { box-shadow: 0 4px 14px rgb(var(--accent-rgb) / .35); }
html[data-accent] .demo-banner { background: rgb(var(--accent-rgb) / .1); color: var(--orange-press); }

/* spine styles: each book gets one, so the shelf looks varied */
.spine.sv1 .sp-t { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(11px, calc(var(--w) * .36), 15px); }
.spine.sv1::before, .spine.sv1::after { height: 5px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; background: none; opacity: .6; }
.spine.sv2 { flex-direction: column-reverse; }
.spine.sv2::before, .spine.sv2::after { display: none; }
.spine.sv2 .sp-a { text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.spine.sv3 .sp-t { background: var(--ink); color: var(--bg); padding: 8px 2px; border-radius: 2px; max-height: calc(var(--h) - 64px); }
.spine.sv3::before, .spine.sv3::after { display: none; }
.spine.sv4 .sp-t { font-style: italic; }
.spine.sv4::before { top: 18px; height: 1px; opacity: .7; } .spine.sv4::after { bottom: 18px; height: 1px; opacity: .7; }
.spine.sv4 .sp-a { margin-bottom: 8px; }

/* ---------- reading quiz ---------- */
.quiz { min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 18px calc(110px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.quiz h1 { margin: 4px 0 0; font-size: 27px; line-height: 1.2; letter-spacing: -.01em; }
.qz-top { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.qz-bar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.qz-bar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; transition: width .3s; }
.qz-count { margin: 6px 0 0; color: var(--orange); font-weight: 700; font-size: 14px; }
.qz-hint { margin: 0 0 6px; }
.qz-opts { display: grid; gap: 10px; margin-top: 8px; }
.qopt { min-height: 58px; text-align: left; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 17px; font-weight: 600; color: var(--ink); }
.qopt[aria-pressed=true] { border-color: var(--orange); background: rgb(var(--accent-rgb) / .1); }
.qz-chips { gap: 8px; margin-top: 8px; }
.qz-chips .spot { min-height: 44px; font-size: 15px; padding: 0 16px; border-radius: 22px; }
.qz-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px calc(14px + var(--safe-b)); background: linear-gradient(transparent, var(--card) 28%); display: grid; gap: 4px; justify-items: center; max-width: 560px; margin: 0 auto; }
.qz-foot .btn { min-height: 52px; font-size: 17px; }
.qz-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; margin-top: 8px; }
.qbook { position: relative; background: none; border: 0; padding: 0; display: grid; gap: 6px; justify-items: center; color: var(--ink); }
.qbook .face { width: 100%; max-width: 110px; transition: transform .15s, opacity .15s; }
.qbook small { font-size: 12px; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qb-badge { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.qb-badge:empty { display: none; }
.qbook.read .qb-badge { background: var(--orange); color: #fff; }
.qbook.want .qb-badge { background: #f5c542; color: #2b2118; }
.qbook.read .face, .qbook.want .face { transform: scale(.94); }
.qbook.read .face { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.qbook.want .face { outline: 3px solid #f5c542; outline-offset: 2px; border-radius: 6px; }
.quiz.intro { justify-content: center; text-align: center; align-items: center; gap: 14px; }
.quiz.intro h1 { font-size: 30px; max-width: 340px; }
.quiz.intro p { color: var(--mute); font-size: 17px; max-width: 360px; margin: 0; }
.qz-hero { width: 84px; height: 84px; border-radius: 22px; background: var(--orange); display: grid; place-items: center; }
.qz-hero svg { width: 42px; height: 42px; fill: #fff; stroke: none; }
.qz-acts { width: 100%; max-width: 360px; display: grid; gap: 6px; margin-top: 10px; }
.qz-recs .qrec { cursor: pointer; align-items: center; }
.qz-recs .qrec input { width: 24px; height: 24px; accent-color: var(--orange); flex: none; }
.qz-recs .why { display: block; color: var(--orange); font-weight: 600; margin-top: 2px; }
.note-tip { background: rgb(var(--accent-rgb) / .08); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 6px 0 0; }
.quiz-cta { display: flex; gap: 12px; align-items: center; border: 1.5px dashed rgb(var(--accent-rgb) / .5); }
.quiz-cta > div { flex: 1; } .quiz-cta b { display: block; }
.picks { padding-bottom: 8px; }
.pick-item { flex: none; width: 104px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.pick-item small { font-size: 12px; line-height: 1.25; color: var(--mute); min-height: 45px; }
.pick-item small b { color: var(--ink); }

/* ---------- profile & achievements ---------- */
img.av { object-fit: cover; background: var(--soft); }
.p-loc { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: 14px; }
.p-loc svg { width: 14px; height: 14px; }
.p-bio { margin: 4px 0 0; max-width: 320px; font-size: 15px; line-height: 1.4; }
.p-genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0; }
.p-genres .chip { font-size: 12px; padding: 4px 10px; border-radius: 12px; background: rgb(var(--accent-rgb) / .1); color: var(--orange); font-weight: 600; }
.ep-photo { display: flex; align-items: center; gap: 14px; }
.ep-photo > div { display: grid; gap: 4px; justify-items: start; }
.ep-photo label.btn { cursor: pointer; }
.ach { display: grid; gap: 2px; }
.ach-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.ach-row:last-child { border: 0; }
.ach-row > div { flex: 1; display: grid; }
.ach-row b { font-size: 18px; }
.ach-i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--soft); filter: grayscale(1); opacity: .5; flex: none; }
.ach-row.got .ach-i { background: rgb(var(--accent-rgb) / .12); filter: none; opacity: 1; }
a.ach-row::after { content: '›'; color: var(--mute); font-size: 22px; }
.pr { display: inline-block; font-size: 12px; font-weight: 700; color: #7a5a00; background: #fff3cf; border-radius: 10px; padding: 3px 9px; margin: 2px 0 4px; }

/* ---------- rede brand ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 7px; color: var(--orange); }
.wordmark svg { width: 28px; height: 28px; flex: none; border-radius: 7px; }
.wordmark span, .brand .wm, .pp-brand { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
.wordmark span { font-size: 26px; line-height: 1; color: var(--orange-press); }
@media not all { .wordmark span { color: var(--orange); } }
.brand { color: var(--orange); } .brand .wm { font-size: 40px; color: var(--orange-press); }
.brand svg, .qz-hero svg, .pp-emb svg { stroke: none; }
.qz-hero { color: #fff; } .pp-emb { color: #e2c275; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- discover & want to read ---------- */
.btn.want.on { background: rgb(var(--accent-rgb) / .1); border-color: transparent; color: var(--orange-press); }
.book-want { margin-top: 8px; }
.book-want .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.trend { align-items: center; }
.trend .why { display: block; color: var(--orange-press); font-weight: 600; margin-top: 2px; }
.trend .btn { flex: none; min-height: 34px; padding: 0 10px; font-size: 12px; }
.rcards { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.rcard { flex: none; width: 200px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; justify-items: center; text-align: center; gap: 6px; }
.rcard a { display: grid; justify-items: center; gap: 2px; color: inherit; text-decoration: none; }
.rcard p { margin: 0; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 52px; }
.pub-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange-press); background: rgb(var(--accent-rgb) / .1); border-radius: 10px; padding: 3px 9px; }
.pub-dot { color: var(--orange); font-size: 12px; }
.chk { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; }
.chk input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.chk span { display: grid; gap: 2px; } .chk small { color: var(--mute); font-weight: 400; }

.brand svg { width: 64px; height: 64px; }
.brand { flex-direction: column; gap: 10px; }
.qz-hero { background: none !important; width: 96px; height: 96px; } .qz-hero svg { width: 96px; height: 96px; }
.pp-emb svg { width: 26px; height: 26px; border-radius: 6px; }

/* ---------- welcome & sign-in (cream + bookshelf) ---------- */
body[data-page=auth] { background: #f6efe2; color: #2b211b; }
body[data-page=auth] .err { color: #a3302a; }
.welcome { min-height: 100dvh; max-width: 460px; margin: 0 auto; display: grid; grid-template-rows: 1fr auto auto; padding: calc(20px + var(--safe-t)) 24px calc(28px + var(--safe-b)); }
.wl-mid { display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; }
.wl-icon svg { width: 112px; height: 112px; display: block; border-radius: 27px; box-shadow: 0 10px 26px rgb(29 38 80 / .25); }
.wl-word { font: 600 60px/1 Fraunces, Georgia, serif; letter-spacing: -.01em; margin: 4px 0 0; color: #1d2650; }
.wl-tag { font: 600 20px/1.3 Fraunces, Georgia, serif; color: #b8860b; margin: 0; max-width: 280px; }
.wl-shelf { width: 100%; height: auto; max-height: 92px; margin: 10px 0 22px; }
.wl-acts { display: grid; gap: 10px; justify-items: center; }
.wl-acts .btn { min-height: 52px; border-radius: 26px; font-size: 16px; background: #1d2650; border-color: #1d2650; color: #fff; }
.wl-acts .linkbtn, body[data-page=auth] .linkbtn { color: #8a3f22; }
body[data-page=auth] .auth { position: relative; }
.auth-back { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; }
.brand.sm { flex-direction: row; gap: 10px; } .brand.sm svg { width: 44px; height: 44px; border-radius: 11px; } .brand.sm .wm { font-size: 32px; color: #8a3f22; }
body[data-page=auth] .auth .btn { background: #b85a32; border-color: #b85a32; border-radius: 26px; min-height: 50px; }
body[data-page=auth] input { background: #fffbf4; border-color: #e3d2b8; }
@media not all { body[data-page=auth] input { color: #1d2650; } }

/* ---------- rune welcome ---------- */
.rune-welcome { grid-template-rows: auto 1fr auto auto; gap: 14px; padding-top: calc(14px + var(--safe-t)); padding-bottom: calc(14px + var(--safe-b)); background:
  radial-gradient(ellipse at 50% 18%, rgb(242 199 107 / .22), transparent 60%); }
.runes { width: auto; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; }
.rw-band { color: rgb(184 90 50 / .35); display: flex; justify-content: center; overflow: hidden; }
.rw-band .runes { height: 13px; }
.rune-welcome .wl-mid { gap: 10px; }
.rune-welcome .wl-icon svg { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 26px rgb(60 68 25 / .28); }
.rune-welcome .wl-word { font: 400 58px/1 'Young Serif', Georgia, serif; color: #8a3f22; margin: 2px 0 0; }
.rw-runes { color: #b85a32; } .rw-runes .runes { height: 22px; stroke-width: 1.8; }
.rune-welcome .wl-tag { font: 400 22px/1.2 'Young Serif', Georgia, serif; color: #b8862b; }
.rw-def { text-align: left; background: #fffbf4; border: 1px solid #ead9bf; border-radius: 14px; padding: 12px 16px; width: 100%; max-width: 340px; box-shadow: 0 2px 0 #ead9bf; }
.rw-def p { margin: 0 0 4px; } .rw-def b { font: 400 19px 'Young Serif', Georgia, serif; color: #8a3f22; } .rw-def i { color: #7a6c60; font-size: 13px; }
.rw-def ol { margin: 0 0 6px; padding-left: 20px; font-size: 14.5px; line-height: 1.45; } .rw-def small { color: #7a6c60; font-size: 12.5px; }
.rw-feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; width: 100%; max-width: 340px; text-align: left; }
.rw-feats li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.3; }
.rw-r { width: 34px; height: 34px; border-radius: 9px; background: rgb(184 90 50 / .12); color: #b85a32; display: grid; place-items: center; flex: none; }
.rw-r .runes { height: 17px; stroke-width: 1.9; }
.rune-welcome .wl-acts .btn { background: #b85a32; border-color: #b85a32; }
.auth-band { margin-top: 18px; }

/* ---------- real covers ---------- */
[data-cov] { position: relative; }
.cov-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 3; background: var(--soft); }
.bcover.has-cov > *:not(.cov-img) { visibility: hidden; }
.bv-real { display: block; width: 200px; max-width: 60vw; aspect-ratio: 2 / 3; object-fit: cover; margin: 0 auto; border-radius: 4px 8px 8px 4px; box-shadow: 8px 12px 24px rgb(0 0 0 / .35); }
.fslot.out { transform: translateY(-14px) scale(1.04); }
.fslot.dim { opacity: .3; }
.case-head .seg.sm { display: inline-flex; background: rgb(255 255 255 / .12); border-radius: 18px; padding: 2px; }
.case-head .seg.sm button { border: 0; background: none; color: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 16px; opacity: .75; }
.case-head .seg.sm button[aria-pressed=true] { background: #fffbf4; color: #5a3a22; opacity: 1; }

/* ---------- 2026 in books ---------- */
.wr-genres { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; scrollbar-width: none; }
.wr-genres .spot { flex: none; }
.top10 { list-style: none; margin: 0; padding: 0; display: grid; }
.top10 li { display: grid; grid-template-columns: 26px 56px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.top10 li:last-child { border: 0; }
.t10-n { font: 400 24px/1 'Young Serif', Georgia, serif; color: var(--orange); text-align: center; padding-top: 22px; }
.top10 .face.thumb { width: 56px; }
.t10-b { display: grid; gap: 1px; } .t10-b b { line-height: 1.25; } .t10-b small { color: var(--mute); }
.t10-blurb { margin: 3px 0 0; font-size: 13px; line-height: 1.35; color: var(--ink); }
.t10-blurb:empty { display: none; }
.top10 .btn.want { justify-self: start; margin-top: 7px; min-height: 30px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.t10-note { font-size: 12px; margin: 10px 0 0; }
.pick-item .btn.want { min-height: 30px; padding: 0 8px; font-size: 11.5px; }

/* ---------- duration wheel ---------- */
.durpick { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.wheel { position: relative; width: 92px; height: 120px; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); scrollbar-width: none; outline-offset: 2px;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.wheel::-webkit-scrollbar { display: none; }
.wheel-band { position: sticky; top: 40px; height: 40px; margin-bottom: -40px; border-top: 1.5px solid rgb(var(--accent-rgb) / .5); border-bottom: 1.5px solid rgb(var(--accent-rgb) / .5); pointer-events: none; z-index: 1; }
.wheel-pad { height: 40px; }
.wheel-item { height: 40px; display: grid; place-items: center; scroll-snap-align: center; font-size: 19px; color: var(--mute); font-variant-numeric: tabular-nums; cursor: pointer; }
.wheel-item.on { color: var(--ink); font-weight: 800; font-size: 23px; }
.durunits { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.durunits button { min-height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; color: var(--ink); }
.durunits button[aria-pressed=true] { border-color: var(--orange); background: rgb(var(--accent-rgb) / .1); color: var(--orange-press); }
.fin-top { margin-top: 10px; border: 1.5px solid var(--orange) !important; color: var(--orange-press) !important; background: rgb(var(--accent-rgb) / .08) !important; font-weight: 800; }

/* ---------- year in read-view ---------- */
.yr .sec-head { flex-wrap: wrap; gap: 8px; }
.yr-years { gap: 6px; } .yr-years .spot { min-height: 30px; font-size: 13px; padding: 0 10px; }
.yr-sum { margin: 4px 0 10px; }
.yr-chart { width: 100%; height: auto; display: block; margin: 4px 0 0; overflow: visible; }
.yr-grid { stroke: var(--line); stroke-width: 1; }
.yr-ax { font-size: 10px; fill: var(--mute); font-family: var(--font); }
.yr-line { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.yr-area { fill: rgb(var(--accent-rgb) / .1); stroke: none; }
.yr-dot { fill: var(--orange); stroke: var(--card); stroke-width: 2; }
.yr-chart rect[data-ym] { cursor: pointer; }
.yr-tip { font-size: 12.5px; margin: 2px 0 12px; min-height: 18px; }
.yr-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.yr-m { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px; display: grid; justify-items: center; gap: 4px; min-height: 92px; }
.yr-m b { font-size: 12.5px; } .yr-m small { font-size: 11.5px; color: var(--mute); }
.yr-m.none { opacity: .6; }
.yr-covers { display: flex; justify-content: center; min-height: 40px; }
.yr-covers .face.thumb { width: 26px; margin: 0 -4px; box-shadow: 1px 2px 4px rgb(0 0 0 / .25); }
.yr-covers .face.thumb .bc-t { display: none; }
.lib-add { background: #fffbf4 !important; color: var(--orange-press) !important; border-color: #fffbf4 !important; }

/* ---------- rede landing (olive grove) ---------- */
body[data-page=welcome] { background: #8a3f22; padding-bottom: 0; }
.hs-welcome { background: radial-gradient(circle at 50% 22%, #7d8a40, #5a6528 48%, #8a3f22 100%); color: #f6ecd9; grid-template-rows: auto 1fr auto; gap: 6px; padding: calc(8px + var(--safe-t)) 24px calc(22px + var(--safe-b)); max-width: none; }
.hs-art { display: flex; justify-content: center; }
.hs-tree { width: min(300px, 78vw); height: auto; display: block; }
.hs-welcome .wl-mid { gap: 8px; }
.hs-word { font: 600 56px/1 Fraunces, Georgia, serif; letter-spacing: -.01em; margin: 0; color: #f6ecd9; }
.hs-tag { font: 600 19px/1.3 Fraunces, Georgia, serif; color: #e9b949; margin: 0 0 6px; }
.hs-feats { list-style: none; margin: 4px auto 0; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 330px; text-align: left; }
.hs-feats li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.3; color: #efe6cf; }
.hs-feats b { color: #fff8e6; }
.hs-i { width: 34px; height: 34px; border-radius: 50%; background: rgb(233 185 73 / .16); color: #e9b949; display: grid; place-items: center; flex: none; }
.hs-i svg { width: 19px; height: 19px; }
.hs-welcome .wl-acts .btn { background: #e9b949; border-color: #e9b949; color: #2e3314; }
.hs-welcome .wl-acts .linkbtn { color: #f6ecd9; }
.hs-brand svg { border-radius: 11px; }
body[data-page=auth] .brand.sm .wm { font-family: Fraunces, Georgia, serif; font-weight: 600; color: #8a3f22; }
body[data-page=auth] .auth .btn { background: #b85a32; border-color: #b85a32; }
body[data-page=auth] .linkbtn, body[data-page=auth] .wl-acts .linkbtn { color: #b85a32; }
.hs-tree { stroke: none; stroke-width: 0; }
.yr-chart rect { stroke: none; } .yr-chart text { stroke: none; }

/* plain fallback cover (shown until the real one loads) */
.pcover { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 8% 10%; text-align: center; border-radius: inherit; overflow: hidden;
  background: hsl(var(--ph) 28% 88%); color: hsl(var(--ph) 30% 24%); box-shadow: inset 4px 0 0 hsl(var(--ph) 25% 74%); }
.pcover b { font: 400 clamp(8px, 13cqw, 15px)/1.15 'Young Serif', Georgia, serif; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pcover small { font-size: clamp(6px, 8cqw, 10px); opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.face { container-type: inline-size; overflow: hidden; }
.face.thumb .pcover small { display: none; }
.cover.pc-wrap { position: relative; display: block; overflow: hidden; container-type: inline-size; }
.bv-plain { position: relative; width: 200px; max-width: 60vw; aspect-ratio: 2 / 3; margin: 0 auto; border-radius: 4px 8px 8px 4px; container-type: inline-size; box-shadow: 8px 12px 24px rgb(0 0 0 / .25); }
.bv-plain .pcover b { font-size: 22px; } .bv-plain .pcover small { font-size: 13px; }
.shelf-add { display: block; margin: 0 16px 12px; width: calc(100% - 32px); background: #fffbf4; color: #8a3f22; border-color: #fffbf4; }
.del-book { display: block; margin: 14px auto 0; color: #a3302a !important; font-size: 14px; } .del-book.armed { font-weight: 800; background: #fbe9e6; border-radius: 10px; padding: 8px 12px; }
.ch-count { display: inline-flex; align-items: center; gap: 10px; }
.shelf-plus { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgb(255 251 244 / .7); background: none; color: #fffbf4; font-size: 21px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; }
.shelf-plus:active { background: rgb(255 251 244 / .15); }

/* rede: gold touches */
.wordmark svg { border-radius: 7px; }
.t10-n { color: #b8860b; }
.streak svg { color: #d9a43a; }
.tabbar a[aria-current="page"], .tabbar a.on { color: var(--orange); }
.pr { color: #5a4300; background: #fbefc4; }

/* ---------- rede landing: cream, terracotta and a bookshelf ---------- */
body[data-page=welcome] { background: #f4ecdd; }
.rd-welcome { background: radial-gradient(120% 70% at 50% 18%, #fbf3e6 0%, #f4ecdd 60%, #efe2cc 100%); color: var(--ink); }
.rd-art { position: relative; display: grid; justify-items: center; padding-top: 18px; }
.rd-glow { position: absolute; top: 4px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgb(233 185 73 / .38), rgb(233 185 73 / 0) 68%); }
.rd-shelf { display: none; }
.rd-welcome .hs-word { color: #b85a32; font-size: 60px; margin-top: 10px; }
.rd-welcome .hs-tag { color: var(--ink); font-style: italic; font-weight: 500; }
.rd-welcome .hs-feats li { color: var(--mute); }
.rd-welcome .hs-feats b { color: var(--ink); }
.rd-welcome .hs-i { background: rgb(184 90 50 / .12); color: #b85a32; }
.rd-welcome .wl-acts .btn { background: #b85a32; border-color: #b85a32; color: #fffbf4; }
.rd-welcome .wl-acts .linkbtn { color: #8a3f22; }

.rd-welcome { grid-template-rows: 1fr auto auto; gap: 0; }
.rd-welcome .rd-art { align-self: end; padding-top: 0; }
.rd-glow { top: -30px; width: 260px; height: 260px; }
.rd-welcome .wl-mid { margin: 6px 0 30px; }
.rd-welcome .hs-word { margin-top: 4px; }
.rd-welcome { grid-template-rows: auto auto auto; align-content: center; }
.rd-welcome .rd-art { align-self: auto; }
.rd-mark { position: relative; width: 92px; height: 92px; margin: 8px 0 18px; }
.rd-mark svg { width: 92px; height: 92px; border-radius: 24px; stroke: none; box-shadow: 0 10px 24px rgb(138 63 34 / .25); }
.rd-welcome .wl-shelf { position: relative; width: min(260px, 72vw); height: auto; stroke: none; }
.rd-def { margin: -4px 0 8px; font: italic 400 14px/1.35 Fraunces, Georgia, serif; color: var(--mute); }
.rd-def i { font-weight: 600; color: #8a3f22; }
.rd-welcome .rd-mark { width: 120px; height: 120px; margin: 0 0 8px; }
.rd-welcome .rd-mark svg { width: 120px; height: 120px; border-radius: 30px; }
.rd-glow { top: -50px; }
/* ---------- Reading: one tap ---------- */
.rd-hero { display: grid; justify-items: center; gap: 12px; padding: 18px; }
.rd-cover { border: 0; background: none; padding: 0; width: 120px; }
.rd-cover .face { width: 120px; }
.rd-ttl { text-align: center; } .rd-ttl b { display: block; font: 600 20px/1.2 Fraunces, Georgia, serif; } .rd-ttl span { font-size: 13.5px; color: var(--mute); }
.rd-prog { width: 100%; } .rd-prog .meter { height: 7px; } .rd-prog small { display: flex; justify-content: space-between; margin-top: 6px; color: var(--mute); font-size: 12.5px; }
.rd-acts { display: flex; gap: 10px; width: 100%; }
.rd-acts .btn { flex: 1; height: 42px; font-size: 14.5px; padding: 0 10px; white-space: nowrap; }
.rd-start { display: flex; align-items: center; justify-content: center; gap: 8px; }
.rd-start svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.rd-page { display: flex; gap: 8px; align-items: center; width: 100%; }
.rd-page label { font-size: 14px; color: var(--mute); flex: none; }
.rd-page input { flex: 1; min-width: 0; height: 44px; font-weight: 600; }
.rd-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.rd-links .linkbtn { font-weight: 600; font-size: 14px; }
.rd-links .linkbtn + .linkbtn { color: var(--mute); font-weight: 500; }
.qz-steps { list-style: none; counter-reset: q; margin: 4px 0 0; padding: 0; text-align: left; border-bottom: 1px solid var(--line); width: 100%; }
.qz-steps li { counter-increment: q; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.qz-steps li::before { content: counter(q); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: rgb(var(--accent-rgb) / .12); color: var(--orange); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.qz-steps b { font-size: 15px; } .qz-steps span { font-size: 13px; color: var(--mute); }
.wk-fresh { display: flex; gap: 14px; align-items: center; }
.wk-fresh > div:first-child { flex: 1; } .wk-fresh h2 { margin: 0 0 3px; font-size: 16px; }
.wk-fresh p { margin: 0; font-size: 13.5px; color: var(--mute); line-height: 1.35; } .wk-fresh p b { color: var(--ink); }
.wk-fresh .days { width: 150px; height: 64px; margin: 0; flex: none; }
/* ---------- feed card: book first ---------- */
.act-c { display: grid; gap: 12px; }
.act-bk { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; color: inherit; text-decoration: none; }
.act-bk .cover { width: 76px; height: 114px; border-radius: 4px; object-fit: cover; }
.act-bk .cover.pc-wrap { display: block; }
.act-bk b { display: block; font: 600 17px/1.2 Fraunces, Georgia, serif; }
.act-bk small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.act-q { margin: 8px 0 0; font: italic 400 16px/1.35 Fraunces, Georgia, serif; color: var(--ink); }
.act-bk .feel { margin-top: 8px; display: inline-block; }
.act-pct { display: block; height: 4px; border-radius: 2px; background: var(--track); margin-top: 10px; overflow: hidden; max-width: 160px; }
.act-pct i { display: block; height: 100%; background: var(--orange); }
.act-want { margin-top: -4px; padding-left: 90px; }
.act-c .social { border-top: 1px solid var(--line); padding-top: 10px; margin: 0; }
.act-c .act-line { font-size: 12.5px; color: var(--mute); flex: 1; min-width: 0; }
.sbtn .kc { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 3px; }
/* ---------- Library: friend circles, just your shelf ---------- */
.lib-circles { display: flex; gap: 14px; overflow-x: auto; padding: 14px 16px 6px; scrollbar-width: none; }
.lib-circles::-webkit-scrollbar { display: none; }
.lc { display: grid; justify-items: center; gap: 5px; text-decoration: none; color: var(--ink); flex: none; width: 66px; }
.lc small { font-size: 12px; max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; box-sizing: border-box; background: var(--line); display: grid; place-items: center; }
.lc-ring.new { background: conic-gradient(var(--orange), var(--gold), var(--orange)); }
.lc-ring .av { width: 100%; height: 100%; border: 2.5px solid var(--bg); box-sizing: border-box; font-size: 18px; }
.lc-ring.add { background: none; border: 2px dashed #cbbfae; color: var(--orange); font-size: 26px; }
.lib-mine h2 a { color: inherit; text-decoration: none; }
.oak { display: flex; gap: 8px; align-items: flex-end; min-height: 96px; padding: 10px 12px 12px; background: #efe0c4; border-radius: 10px; box-shadow: inset 0 -10px 0 #d8b07a, inset 0 -12px 0 #b98c55; overflow: hidden; text-decoration: none; }
.oak-b { flex: none; width: 52px; } .oak-b .face { width: 52px; }
.oak-empty { align-self: center; font-size: 13.5px; }
.lib-tr { display: block; text-decoration: none; color: inherit; }
.tr-row { display: flex; gap: 8px; overflow: hidden; } .tr-c { flex: none; width: 48px; } .tr-c .face { width: 48px; }
.lib-mine .shelf-plus { background: var(--orange); border: 0; color: #fffbf4; }
.lib-mine .ch-count { font-size: 13px; color: var(--mute); font-weight: 500; }
.av-book { overflow: hidden; display: grid; place-items: center; background: var(--soft); padding: 0; }
.av-book .face.thumb { width: 100%; height: 100%; }
.av-book .face.thumb > * { width: 100% !important; height: 100% !important; object-fit: cover; }
.yr-more { margin-top: 10px; }
.yr-more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--orange); list-style: none; padding: 6px 0; }
.yr-more summary::-webkit-details-marker { display: none; }
.yr-more summary::after { content: ' ›'; }
.yr-more[open] summary::after { content: ' ⌄'; }
.yr-more .yr-months { margin-top: 8px; }
/* ---------- photos on reads ---------- */
.ph-field { margin: 4px 0 12px; }
.ph-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ph-th, .ph-add { width: 72px; height: 72px; border-radius: 12px; position: relative; flex: none; }
.ph-th img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.ph-th button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 15px; line-height: 1; display: grid; place-items: center; padding: 0; }
.ph-add { border: 2px dashed #cbbfae; display: grid; place-content: center; justify-items: center; gap: 2px; color: var(--orange); font-size: 12px; font-weight: 600; cursor: pointer; box-sizing: border-box; }
.ph-add svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ph-add[hidden] { display: none; }
.act-ph { display: block; position: relative; margin: 0 -16px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.act-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-ph span { position: absolute; right: 10px; bottom: 10px; background: rgb(0 0 0 / .55); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 12px; }
.ph-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 10px -16px; }
.ph-gal.one { grid-template-columns: 1fr; }
.ph-gal a { display: block; aspect-ratio: 1; overflow: hidden; } .ph-gal.one a { aspect-ratio: 4 / 3; }
.ph-gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-later .btn { margin-top: 4px; }
/* ---------- a friend's profile: library and ratings, no stats ---------- */
.fr-rate { align-items: flex-start; }
.fr-rate > div { flex: 1; min-width: 0; }
.fr-note { margin: 6px 0 0; font: italic 400 14.5px/1.35 Fraunces, Georgia, serif; color: var(--ink); }
.fr-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .fr-tags span { font-size: 11.5px; padding: 3px 8px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); color: var(--mute); }
.fr-want { margin-top: 8px; }
.fr-score { display: grid; justify-items: center; gap: 2px; flex: none; min-width: 44px; color: var(--gold); }
.fr-score svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.fr-score b { font-size: 18px; color: var(--ink); line-height: 1; } .fr-score small { font-size: 11px; color: var(--mute); }
.fr-score i { font-style: normal; color: #c0392b; font-size: 15px; }
.rd-prog .meter, .rbook .meter { display: block; width: 100%; }
.mini-case { background: #efe0c4 linear-gradient(to top, #b98c55 0 2px, #d8b07a 2px 6px, transparent 6px); }
/* ---------- search ---------- */
.srch-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 0 12px; }
.srch-box svg { width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 2; flex: none; }
.srch-box input { border: 0; background: none; height: 48px; padding: 0; font-size: 16px; flex: 1; min-width: 0; outline: none; box-shadow: none; }
.srch-hint { text-align: center; padding: 18px 24px; margin: 0; }
.srch-p { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.srch-b { align-items: flex-start; } .srch-b > div { flex: 1; min-width: 0; }
.srch-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shelf-tabs a.new .av { outline-color: var(--gold); outline-width: 3px; }
.srch-acts .btn { padding: 0 11px; font-size: 13px; }
/* Whole titles on spines: size set per book, no "…" */
.spine .sp-t, .spine.sv1 .sp-t { font-size: var(--fs); text-overflow: clip; }
.spine.sp-two .sp-t { white-space: normal; line-height: 1.12; text-align: center; overflow-wrap: anywhere; }
.spine .sp-a, .spine.sv2 .sp-a { font-size: var(--afs); text-overflow: clip; max-height: 56px; }
/* Library: the passport sits at the bottom of the screen */
body[data-page=library] main { display: flex; flex-direction: column; min-height: calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
body[data-page=library] main > .pp-mini { margin-top: auto; }
/* ---------- follower lists ---------- */
.counts a { color: inherit; text-decoration: none; display: grid; justify-items: center; }
.counts a:active { opacity: .6; }
.fl-seg { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.fl-seg a { text-align: center; padding: 9px; border-radius: 10px; text-decoration: none; color: var(--mute); font-weight: 600; font-size: 14px; }
.fl-seg a[aria-current=page] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
/* ---------- friend stories ---------- */
.stories .av { width: 58px; height: 58px; outline: 3px solid var(--line); outline-offset: 2px; }
.stories a.new .av { outline-color: var(--gold); }
.stories a.seen .av { outline-color: #cbbfae; }
.stories a { color: var(--ink); font-weight: 500; }
#story { position: fixed; inset: 0; z-index: 80; background: #1d1612; color: #fbf4e8; display: grid; grid-template-rows: auto auto 1fr auto; padding: calc(10px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); animation: stIn .2s ease-out; }
@keyframes stIn { from { opacity: 0; transform: scale(.97); } }
.st-bars { display: flex; gap: 4px; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .3); overflow: hidden; }
.st-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.st-bars i.done b { width: 100%; } .st-bars i.on b { animation: stBar 5s linear forwards; }
@keyframes stBar { to { width: 100%; } }
.st-head { display: flex; align-items: center; gap: 10px; margin-top: 12px; position: relative; z-index: 2; }
.st-head .av { width: 38px; height: 38px; } .st-head div { flex: 1; } .st-head b { display: block; font-size: 15px; } .st-head small { color: rgb(255 255 255 / .7); font-size: 12px; }
.st-x { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; width: 44px; height: 44px; }
.st-body { display: grid; align-content: center; justify-items: center; gap: 16px; min-height: 0; }
.st-shelf { display: grid; justify-items: center; gap: 22px; text-align: center; }
.st-shelf .face { width: 170px; box-shadow: 0 18px 40px rgb(0 0 0 / .5); }
.st-shelf p, .st-cap { margin: 0; font-size: 18px; line-height: 1.4; text-align: center; max-width: 320px; }
.st-shelf p b, .st-cap b { font-family: Fraunces, Georgia, serif; }
.st-cap i { font-family: Fraunces, Georgia, serif; font-size: 16px; opacity: .9; }
.st-photo { width: 100%; max-height: 58vh; display: grid; place-items: center; }
.st-photo img { max-width: 100%; max-height: 58vh; border-radius: 14px; object-fit: contain; }
.st-prev, .st-next { position: absolute; top: 90px; bottom: 120px; width: 40%; background: none; border: 0; z-index: 1; }
.st-prev { left: 0; } .st-next { right: 0; width: 60%; }
.st-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.st-foot .btn.grey { background: rgb(255 255 255 / .14); color: #fff; border-color: transparent; }
.rd-manual { margin: 0; }
.sbtn-del { color: var(--mute); }
.sbtn-del.armed { color: #c0392b; background: rgb(192 57 43 / .1); }
.del-act { display: block; margin: 14px auto 0; color: #b3261e; border-color: rgb(179 38 30 / .4); }
.tb-x { grid-column: 1 / -1; justify-self: center; }
/* ---------- reactions: tap = well read, hold = choose ---------- */
.rx-btn { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.rx-btn.on svg { fill: currentColor; }
.rx-on-heart { color: #c0392b !important; } .rx-on-bookworm { color: #3a8a4a !important; }
.rx-btn.rx-on-bookworm svg { fill: none; }
.rx-ic { display: inline-flex; margin-right: 6px; vertical-align: -3px; }
.rx-ic i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; border: 1.5px solid var(--card); margin-left: -4px; }
.rx-ic i:first-child { margin-left: 0; }
.rx-ic svg { width: 11px; height: 11px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.rx-ic .rx-bookworm { background: #3a8a4a; } .rx-ic .rx-bookworm svg { fill: none; stroke-width: 2.4; }
.rx-ic .rx-heart { background: #c0392b; }
.rx-pick { position: absolute; z-index: 70; display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 6px; box-shadow: 0 10px 28px rgb(0 0 0 / .18); animation: rxIn .16s ease-out; }
@keyframes rxIn { from { transform: translateY(6px) scale(.9); opacity: 0; } }
.rx-pick button { display: grid; justify-items: center; gap: 2px; border: 0; background: none; border-radius: 22px; padding: 6px 10px 4px; font: 600 11px/1 var(--font); color: var(--mute); min-width: 58px; }
.rx-pick button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .12s; }
.rx-pick button:active svg, .rx-pick button.on svg { transform: scale(1.18); }
.rx-pick .rx-well_read { color: var(--orange); } .rx-pick .rx-bookworm { color: #3a8a4a; } .rx-pick .rx-heart { color: #c0392b; }
.rx-pick button.on { background: var(--soft); }
/* Well read: warm gold, like the logo sparkle */
.rx-on-well_read { color: #c08a1e !important; }
.rx-pick .rx-well_read { color: #c08a1e; }
.rx-ic .rx-well_read { background: #c08a1e; }
/* ---------- reviews overview, page and badges ---------- */
.rv-card { display: grid; gap: 14px; }
.rv-card .sec-head { margin: 0; } .rv-card h2 { font: 600 19px Fraunces, Georgia, serif; margin: 0; }
.rv-all, .rv-badges-l { color: #c08a1e; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.rv-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.rv-nums > div { background: var(--bg); border-radius: 12px; padding: 10px 4px; }
.rv-nums b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 22px; line-height: 1.2; }
.rv-nums b svg { width: 16px; height: 16px; color: #c08a1e; }
.rv-nums small { font-size: 12px; color: var(--mute); }
.rv-lvl { display: flex; align-items: center; gap: 12px; }
.rv-lvl-ic { width: 46px; height: 46px; border-radius: 12px; background: #f6ead0; display: grid; place-items: center; flex: none; }
.rv-lvl-ic svg { width: 24px; height: 24px; stroke: #c08a1e; }
.rv-lvl > div { flex: 1; } .rv-lvl small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.rv-lvl b { font: 600 21px/1.15 Fraunces, Georgia, serif; } .rv-next { font-size: 12.5px; color: var(--mute); text-align: right; }
.rv-bar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; margin-top: -4px; } .rv-bar i { display: block; height: 100%; background: #c08a1e; border-radius: 4px; }
.rv-bar-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--mute); margin-top: -8px; }
.rv-go { justify-content: center; }
.rv-peek { margin-top: -4px; }
.rv-nudge { display: flex; align-items: center; gap: 12px; background: #fbf3e3; border-color: #efdcb8; }
.rv-nudge .cover { width: 34px; height: 51px; } .rv-nudge span { flex: 1; font-size: 14px; line-height: 1.35; }
.rv-dist { display: grid; grid-template-columns: 20px 1fr 18px; gap: 5px 8px; align-items: center; font-size: 12px; color: var(--mute); margin-top: 8px; }
.rv-dist span:first-child, .rv-dist > span:nth-child(3n+1) { text-align: right; }
.rv-dist i { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; display: block; } .rv-dist i b { display: block; height: 100%; background: var(--orange); }
.rv-sort { display: flex; gap: 6px; padding: 0 16px; }
.rv-sort button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 16px; padding: 7px 13px; font: 600 13px var(--font); }
.rv-sort button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.rv-row { align-items: flex-start; } .rv-row > div { flex: 1; min-width: 0; }
.rv-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rv-score { display: inline-flex; align-items: center; gap: 3px; flex: none; } .rv-score svg { width: 15px; height: 15px; color: #c08a1e; } .rv-score b { font-size: 16px; } .rv-score small { font-size: 11px; color: var(--mute); }
.rv-edit { font-size: 13px; margin-top: 6px; }
.rv-ranks { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
.rv-ranks li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; color: var(--mute); }
.rv-ranks li i { width: 22px; height: 22px; border-radius: 50%; background: var(--track); flex: none; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 12px; font-weight: 700; }
.rv-ranks li.done { color: var(--ink); } .rv-ranks li.done i { background: #c08a1e; } .rv-ranks li.done i::before { content: '✓'; }
.rv-ranks li.here { font-weight: 700; }
.rv-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.rv-b { display: grid; justify-items: center; gap: 5px; text-align: center; }
.rv-b span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--track); }
.rv-b span svg { width: 24px; height: 24px; stroke: #fffbf4; stroke-width: 1.9; }
.rv-b.off { opacity: .5; } .rv-b.off span svg { stroke: var(--mute); }
.rv-b b { font-size: 12px; line-height: 1.2; } .rv-b small { font-size: 10.5px; color: var(--mute); line-height: 1.25; }
.rd-page label b { color: var(--ink); }
.logged-pop { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; background: rgb(43 33 27 / 0); transition: background .2s; padding: 24px; }
.logged-pop.on { background: rgb(43 33 27 / .35); }
.lp-card { background: var(--card); border-radius: 22px; padding: 26px 24px 20px; width: min(320px, 100%); display: grid; justify-items: center; gap: 6px; text-align: center; box-shadow: 0 20px 50px rgb(0 0 0 / .25); transform: scale(.9); opacity: 0; transition: transform .25s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.logged-pop.on .lp-card { transform: none; opacity: 1; }
.lp-tick { width: 56px; height: 56px; border-radius: 50%; background: #c08a1e; color: #fff; font-size: 30px; font-weight: 700; display: grid; place-items: center; margin-bottom: 4px; }
.lp-card b { font: 600 22px Fraunces, Georgia, serif; }
.lp-card > span { color: var(--mute); font-size: 15px; }
.lp-card small { color: var(--ink); font-size: 13px; }
.lp-acts { display: flex; gap: 8px; margin-top: 12px; }
.lp-tick svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 3; fill: none; }
.act-own { display: flex; gap: 8px; justify-content: center; margin-top: 14px; } .act-own .del-act { margin: 0; }
.act-own { justify-content: flex-end; gap: 6px; margin-top: 10px; }
.icobtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--mute); display: grid; place-items: center; padding: 0; }
.icobtn svg { width: 20px; height: 20px; }
.icobtn.del-act { color: var(--mute); border-color: var(--line); margin: 0; }
.icobtn.del-act.armed { color: #fff; background: #b3261e; border-color: #b3261e; }
/* ---------- finishing a book: its own celebration ---------- */
.fin-cel { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 30%, #3a2316 0%, #1d1410 70%); color: #fbf4e8; opacity: 0; transition: opacity .35s; overflow: hidden; padding: calc(20px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom)); }
.fin-cel.on { opacity: 1; }
.fin-cel canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fc-rays { position: absolute; top: 50%; left: 50%; width: 760px; height: 760px; margin: -560px 0 0 -380px; background: repeating-conic-gradient(rgb(233 185 73 / .14) 0 8deg, transparent 8deg 20deg); border-radius: 50%; mask-image: radial-gradient(circle, #000 0 30%, transparent 62%); -webkit-mask-image: radial-gradient(circle, #000 0 30%, transparent 62%); animation: fcSpin 30s linear infinite; }
@keyframes fcSpin { to { transform: rotate(360deg); } }
.fc-body { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 340px; }
.fc-cover { width: 150px; transform: translateY(30px) scale(.7); opacity: 0; transition: transform .9s cubic-bezier(.2,1.3,.4,1) .15s, opacity .5s .15s; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .55)) drop-shadow(0 0 30px rgb(233 185 73 / .35)); }
.fin-cel.on .fc-cover { transform: none; opacity: 1; }
.fc-cover .face { width: 150px; }
.fc-end { margin: 14px 0 0; font: italic 600 44px/1 Fraunces, Georgia, serif; color: #e9b949; opacity: 0; transform: translateY(10px); transition: all .6s .7s; }
.fin-cel.on .fc-end { opacity: 1; transform: none; }
.fc-body h2 { margin: 0; font: 500 18px/1.35 Inter, system-ui, sans-serif; color: #f2e6c9; }
.fc-body h2 i { font-family: Fraunces, Georgia, serif; font-style: italic; color: #fff; }
.fc-stats { display: flex; gap: 22px; margin: 8px 0 14px; }
.fc-stats b { display: block; font: 600 24px Fraunces, Georgia, serif; color: #fff; } .fc-stats small { font-size: 12px; color: rgb(242 230 201 / .7); }
.fc-go { background: #e9b949; color: #2b211b; border-color: #e9b949; width: 100%; }
.fc-later { color: rgb(242 230 201 / .75); }
/* The book starts open, closes, then spins once */
.fc-book { width: 150px; height: 225px; perspective: 900px; margin-bottom: 4px; }
.fc-spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: translateX(40px) scale(.85); }
.fin-cel.on .fc-spin { animation: fcSettle .6s ease-out 1.1s forwards, fcTurn 1.3s cubic-bezier(.45,0,.25,1) 1.9s forwards; }
@keyframes fcSettle { to { transform: translateX(0) scale(1); } }
@keyframes fcTurn { from { transform: translateX(0) scale(1) rotateY(0); } 50% { transform: translateX(0) scale(1.08) rotateY(180deg); } to { transform: translateX(0) scale(1) rotateY(360deg); } }
.fc-back, .fc-pages, .fc-front { position: absolute; inset: 0; border-radius: 3px 6px 6px 3px; }
.fc-back { background: linear-gradient(90deg, #2e1c12, #4a2e1e); transform: rotateY(180deg) translateZ(1px); backface-visibility: hidden; display: grid; place-items: center; box-shadow: 0 18px 30px rgb(0 0 0 / .5); }
.fc-back span { width: 70%; height: 80%; border: 1.5px solid rgb(233 185 73 / .55); border-radius: 3px; }
.fc-pages { background: #fbf4e6; padding: 22px 14px; display: grid; align-content: start; gap: 9px; transform: translateZ(-1px); box-shadow: inset 6px 0 10px -6px rgb(0 0 0 / .25), 0 18px 30px rgb(0 0 0 / .45); }
.fc-pages i { display: block; height: 3px; border-radius: 2px; background: #e4d7bd; }
.fc-pages i:nth-child(3n) { width: 70%; }
.fc-front { transform-origin: left center; transform-style: preserve-3d; transform: rotateY(-165deg); }
.fin-cel.on .fc-front { animation: fcClose .95s cubic-bezier(.55,0,.3,1) .35s forwards; }
@keyframes fcClose { to { transform: rotateY(0); } }
.fc-out, .fc-in { position: absolute; inset: 0; backface-visibility: hidden; border-radius: inherit; overflow: hidden; }
.fc-out { transform: translateZ(1px); filter: drop-shadow(0 0 24px rgb(233 185 73 / .3)); }
.fc-out .face { width: 150px; height: 225px; }
.fc-out .face > * { width: 100% !important; height: 100% !important; object-fit: cover; }
.fc-in { transform: rotateY(180deg); background: #f3e8d2; display: grid; place-items: end center; padding-bottom: 26px; }
.fc-in small { font: italic 600 13px Fraunces, Georgia, serif; color: #8a6a48; }
.fc-cover { display: none; }
@media (prefers-reduced-motion: reduce) { .fc-front { transform: none; } .fin-cel.on .fc-spin, .fin-cel.on .fc-front { animation: none; transform: none; } }
.fc-pages { backface-visibility: hidden; } .fc-back { transform: rotateY(180deg) translateZ(2px); }
/* ---------- private / public accounts ---------- */
.acct-opts { display: grid; gap: 8px; margin-bottom: 12px; }
.acct-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.acct-opt:has(input:checked) { border-color: var(--orange); background: rgb(var(--accent-rgb) / .06); }
.acct-opt input { margin-top: 3px; accent-color: var(--orange); }
.acct-opt b { display: flex; align-items: center; gap: 6px; font-size: 15px; } .acct-opt b svg { width: 16px; height: 16px; }
.acct-opt small { display: block; color: var(--mute); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.priv-card { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 26px 20px; }
.priv-card > svg { width: 34px; height: 34px; color: var(--mute); }
.priv-card h2 { margin: 4px 0 0; font: 600 19px Fraunces, Georgia, serif; } .priv-card p { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.4; }
.req-card .li { align-items: center; } .req-card .srch-p { min-width: 0; }
.icobtn.sm-x { width: 36px; height: 36px; font-size: 20px; line-height: 1; flex: none; }
.acct-opt { flex-direction: row; } .acct-opt input[type=radio] { width: 18px; height: 18px; min-height: 0; flex: none; padding: 0; margin: 2px 0 0; } .acct-opt > span { flex: 1; min-width: 0; }
.act-hrow { display: flex; align-items: flex-start; gap: 8px; }
.act-hrow .act-h { flex: 1; min-width: 0; }
.act-tools { display: flex; gap: 6px; flex: none; }
.act-tools .icobtn { width: 38px; height: 38px; }
.act-tools .icobtn svg { width: 18px; height: 18px; }
.act-tools .sbtn-del.armed { color: #fff; background: #b3261e; border-color: #b3261e; }
.sbtn-del.armed { color: #b3261e; background: rgb(179 38 30 / .1); border-radius: 10px; }
.title-link { color: inherit; text-decoration: none; } .title-link span { color: var(--orange); }
.prof-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 12px 16px; }
.prof-link .av { width: 40px; height: 40px; flex: none; } .prof-link > span:not(.av) { flex: 1; min-width: 0; } .prof-link b { display: block; font-size: 15px; } .prof-link small { color: var(--mute); font-size: 12.5px; }
.prof-link i { font-style: normal; font-size: 22px; color: var(--orange); }
.st-who { display: flex; align-items: center; gap: 10px; flex: 1; color: inherit; text-decoration: none; }
.cmt-who { color: inherit; text-decoration: none; }
.prof-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); padding: 12px 16px; }
.prof-link .av { width: 40px; height: 40px; flex: none; } .prof-link > span:not(.av) { flex: 1; min-width: 0; } .prof-link b { display: block; font-size: 15px; } .prof-link small { color: var(--mute); font-size: 12.5px; }
.prof-link i { font-style: normal; font-size: 22px; color: var(--orange); }
.st-who { display: flex; align-items: center; gap: 10px; flex: 1; color: inherit; text-decoration: none; }
.cmt-who { color: inherit; text-decoration: none; }
/* two-wheel hours + minutes picker */
.durpick { flex-direction: column; align-items: stretch; gap: 10px; }
.dp-wheels { display: flex; align-items: center; gap: 8px; }
.dp-col .wheel { width: 76px; }
.dp-l { font-size: 15px; font-weight: 600; color: var(--mute); margin-right: 8px; }
.durunits { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); display: grid; }

/* ---------- Library dropdown + Friends' Libraries ---------- */
.lib-drop { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-weight: 700; color: var(--ink); padding: 4px 8px; border-radius: 8px; }
.lib-drop:focus-visible { outline: 2px solid var(--orange); }
.lib-drop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lib-drop[aria-expanded=true] svg { transform: rotate(180deg); }
#libMenu { position: fixed; left: 50%; transform: translateX(-50%); width: min(320px, calc(100vw - 24px)); margin-top: 6px; background: var(--card); border-radius: 14px; box-shadow: 0 12px 34px rgb(40 25 15 / .22); padding: 6px; z-index: 60; animation: libIn .16s ease-out; }
@keyframes libIn { from { opacity: 0; transform: translate(-50%, -6px); } }
#libMenu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
#libMenu a:hover, #libMenu a:focus-visible { background: var(--bg); }
#libMenu a[aria-current=page] { background: var(--bg); }
#libMenu a[aria-current=page] b::after { content: ' ✓'; color: var(--orange); }
#libMenu svg { width: 22px; height: 22px; flex: none; color: var(--orange); }
#libMenu span { display: grid; } #libMenu small { color: var(--mute); font-size: 12.5px; }
.flib-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 8px; color: var(--mute); font-size: 13px; font-weight: 600; }
.flib { margin-bottom: 0; border-bottom: 10px solid #2a1c12; }
.flib-who { display: flex; align-items: center; gap: 10px; padding: 2px 6px 0; text-decoration: none; color: #f6ead8; }
.flib-who .av { width: 38px; height: 38px; flex: none; }
.flib-who span:not(.av) { flex: 1; display: grid; } .flib-who small { color: #cdb899; font-size: 12.5px; }
.flib-who > i { font-style: normal; font-size: 22px; color: #cdb899; }
.flib-new { font-style: normal; font-size: 11px; background: var(--gold, #c08a1e); color: #fff; padding: 2px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.flib .facecase, .flib .bookcase { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; text-decoration: none; }
.flib .facecase::-webkit-scrollbar, .flib .bookcase::-webkit-scrollbar { display: none; }
.flib .fslot { flex: none; width: 100px; height: var(--row); display: flex; align-items: flex-end; }
.flib .bookcase > * { flex: none; }
.shelf-tabs a.me .av { outline-color: var(--line, #e3d6c4); }
.shelf-tabs a.me.seen .av { outline-color: var(--orange); }
.flib .facecase, .flib .bookcase { background-attachment: local; column-gap: 0; gap: 10px; height: var(--row); }
.flib .bookcase { gap: 0; }
.btn.danger { background: #a3301f; color: #fff; } .btn.danger:disabled { opacity: .45; }
.rv-strip { display: block; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--bg); text-decoration: none; color: var(--ink); }
.rv-strip-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.rv-strip-h b { font-size: 14px; } .rv-strip-h small { color: #c08a1e; font-weight: 600; font-size: 13px; }
.rv-strip-r { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.rv-strip-r span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--track); opacity: .55; }
.rv-strip-r span.on { opacity: 1; box-shadow: 0 2px 6px rgb(60 30 10 / .2); }
.rv-strip-r svg { width: 55%; height: 55%; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-strip-r span.on svg { stroke: #fffbf4; }

/* ---------- badges ---------- */
.bg { position: relative; display: inline-block; flex: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; }
.bg-face { position: relative; display: block; width: 100%; height: 100%; }
.bg-face > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bg.on:not(.legend) .bg-face { filter: drop-shadow(0 3px 5px rgb(60 30 10 / .22)); }
.bg.legend.on .bg-face { filter: drop-shadow(0 4px 10px rgb(192 138 30 / .55)); }
.bg.legend:not(.on) .bg-face { filter: drop-shadow(0 4px 8px rgb(40 20 5 / .3)); }
.bg-ic { position: absolute; left: 0; right: 0; top: 38%; transform: translateY(-50%); text-align: center; line-height: 1; }
.bg:not(.on) .bg-ic { filter: grayscale(1); opacity: .38; top: 31%; }
.bg.legend .bg-ic { top: 45%; }
.bg.legend:not(.on) .bg-ic { filter: grayscale(1) brightness(1.7); opacity: .32; top: 36%; }
.bg-bar { position: absolute; left: 26%; right: 26%; top: 60%; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bg-bar i { display: block; width: 100%; height: 5px; border-radius: 3px; background: #ddd0bd; overflow: hidden; }
.bg.legend .bg-bar i { background: #4a3a2c; }
.bg-bar u { display: block; height: 100%; }
.bg-bar em { font-style: normal; font-size: 9.5px; font-weight: 700; }
.bg-lock { position: absolute; right: -4px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: #2b211b; display: grid; place-items: center; box-shadow: 0 2px 5px rgb(0 0 0 / .3); }
.bg.legend .bg-lock { background: #c08a1e; }
.bg-lock svg { width: 13px; height: 13px; fill: none; stroke: #f6ead8; stroke-width: 2.4; stroke-linecap: round; }
.bg-shine { position: absolute; inset: 0; clip-path: path('M52 5 L96 18 V57 C96 85 76 102 52 114 C28 102 8 85 8 57 V18 Z'); overflow: hidden; }
.bg.lg .bg-shine { clip-path: path('M47.5 4 L87.5 16 V52 C87.5 77 69.5 93 47.5 104 C25.5 93 7.5 77 7.5 52 V16 Z'); }
.bg-shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent); animation: bgShine 3.2s ease-in-out infinite; }
.bg-sp { position: absolute; font-size: 12px; color: #f3d27a; animation: bgTw 2.4s ease-in-out infinite; }
@keyframes bgShine { 0% { transform: translateX(-120%) skewX(-20deg); } 55%, 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes bgTw { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bg-shine::after, .bg-sp { animation: none; } }
/* small (You page row, pop-up) */
.bg.sm { width: 46px; height: 52px; } .bg.sm .bg-ic { font-size: 20px; }
.bg.sm .bg-bar { display: none; } .bg.sm:not(.on) .bg-ic { top: 38%; }
.bg.sm .bg-lock { width: 18px; height: 18px; right: -5px; top: -5px; } .bg.sm .bg-lock svg { width: 10px; height: 10px; }
/* large (Badges page, flips) */
.bg.lg { width: 96px; cursor: pointer; perspective: 600px; -webkit-tap-highlight-color: transparent; }
.bg.lg .bg-in { position: relative; display: block; width: 96px; height: 108px; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); transform-style: preserve-3d; }
.bg.lg.flipped .bg-in { transform: rotateY(180deg); }
.bg.lg .bg-face, .bg-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bg.lg .bg-ic { font-size: 40px; } .bg.lg:not(.on) .bg-ic { font-size: 34px; }
.bg-back { transform: rotateY(180deg); }
.bg-back > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bg-t { position: absolute; left: 14%; right: 14%; top: 8%; height: 64%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; }
.bg.legend .bg-t { top: 16%; height: 58%; left: 18%; right: 18%; }
.bg-t small { font-size: 8.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.bg-t b { font-size: 10px; line-height: 1.15; color: var(--ink); }
.bg-t i { display: block; width: 100%; height: 4px; border-radius: 2px; background: #e3d6c4; overflow: hidden; } .bg-t i u { display: block; height: 100%; background: var(--c); }
.bg-t em { font-style: normal; font-size: 9px; font-weight: 700; color: var(--c); line-height: 1.15; }
.bg-nm { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.bg.lg:not(.on) .bg-nm { color: var(--mute); }
.bg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 18px 4px; }
.bg-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; }
.bg-tabs::-webkit-scrollbar { display: none; }
.bg-tabs button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 16px; padding: 7px 13px; font: 600 13px/1 inherit; font-family: inherit; }
.bg-tabs button[aria-selected=true] { background: var(--ink); color: #fffbf4; border-color: var(--ink); }
.bg-hint { text-align: center; margin: 6px 0 0; font-size: 12.5px; }
.bg-legend { background: #1f150d; border-color: #3b2a1c; color: #f6ead8; }
.bg-legend small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c08a1e; }
.bg-legend h2 { color: #f6ead8; margin: 0; } .bg-legend .sec-head > span { color: #cdb899; font-size: 12.5px; }
.bg-legend .bg-nm { color: #f6ead8 !important; }
/* the card on the You page */
.bg-card { display: block; text-decoration: none; color: inherit; }
.bg-count { color: #c08a1e; font-weight: 700; font-size: 13.5px; }
.bg-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.bg-next { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.bg-next > div { flex: 1; min-width: 0; } .bg-next small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.bg-next b { display: block; font-size: 13.5px; } .bg-next i { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; } .bg-next i u { display: block; height: 100%; }
/* the "new badge" moment */
.bg-pop { position: fixed; inset: 0; z-index: 90; background: rgb(43 33 27 / .55); display: grid; place-items: center; padding: 24px; animation: lpIn .2s ease-out; }
.bg-pop.legend { background: rgb(20 12 6 / .82); }
.bgp-rain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bgp-card { position: relative; width: min(340px, 100%); background: var(--card); border-radius: 22px; padding: 26px 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
.bg-pop.legend .bgp-card { background: #1f150d; color: #f6ead8; border: 1px solid #5a4020; }
.bgp-card > small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c08a1e; }
.bgp-card > b { font: 600 25px/1.2 Fraunces, Georgia, serif; } .bgp-card > span { color: var(--mute); font-size: 14px; }
.bg-pop.legend .bgp-card > span { color: #cdb899; }
.bgp-flip { position: relative; width: 104px; height: 117px; margin: 6px 0; }
.bgp-flip .bg.sm { width: 104px; height: 117px; } .bgp-flip .bg.sm .bg-ic { font-size: 44px; }
.bgp-flip .bg.sm .bg-lock { width: 30px; height: 30px; right: -4px; top: -6px; } .bgp-flip .bg.sm .bg-lock svg { width: 15px; height: 15px; }
.bgp-a, .bgp-b { position: absolute; inset: 0; }
.bgp-b { opacity: 0; transform: scale(.6); }
.bgp-a .bg-lock { animation: bgUnlock .9s .35s ease-in forwards; }
.bgp-a { animation: bgOut .35s 1s forwards; }
.bgp-b { animation: bgIn .6s 1.05s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes bgUnlock { 0% { transform: none; } 20% { transform: rotate(-18deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg) translateY(-4px); } 100% { transform: translate(30px, -60px) rotate(40deg); opacity: 0; } }
@keyframes bgOut { to { opacity: 0; transform: scale(.85); } }
@keyframes bgIn { to { opacity: 1; transform: scale(1); } }
.bgp-acts { display: flex; gap: 10px; width: 100%; margin-top: 10px; } .bgp-acts .btn { flex: 1; }
@keyframes lpIn { from { opacity: 0; } }
.bg svg path { stroke: none; }
.bg .bg-lock svg path, .bg .bg-lock svg rect { stroke: inherit; }
.bgp-card > .bgp-more { font-weight: 700; color: #c08a1e; font-size: 13.5px; }
.mile { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 14px 16px; }
.mile > div { flex: 1; min-width: 0; }
.mile small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #c08a1e; }
.mile b { display: block; font-size: 15.5px; line-height: 1.3; margin-top: 2px; } .mile b span { font-family: Fraunces, Georgia, serif; }
.mile .av { width: 34px; height: 34px; flex: none; }
.mile.legend { background: #1f150d; color: #f6ead8; border-color: #3b2a1c; }

/* ---------- a bookmark drops down over the page ---------- */
.bm-drop { position: fixed; inset: 0; z-index: 95; background: rgb(43 33 27 / 0); transition: background .4s; cursor: pointer; }
.bm-drop.down { background: rgb(43 33 27 / .35); }
.bm-drop.up { background: rgb(43 33 27 / 0); }
.bm-rib { position: absolute; top: 0; left: 50%; width: min(78vw, 340px); height: min(86vh, 640px); margin-left: calc(min(78vw, 340px) / -2);
  background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 70px), 0 100%);
  transform: translateY(-105%); transition: transform .75s cubic-bezier(.25, 1.35, .45, 1); filter: drop-shadow(0 18px 30px rgb(0 0 0 / .35)); }
.bm-rib::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 5px), linear-gradient(90deg, rgb(0 0 0 / .14), transparent 18%, transparent 82%, rgb(0 0 0 / .14)); }
.bm-drop.down .bm-rib { transform: translateY(0); }
.bm-drop.up .bm-rib { transform: translateY(-110%); transition: transform .6s cubic-bezier(.6, -.3, .75, .3); }
.bm-in { position: absolute; inset: 14px 14px 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 50% calc(100% - 77px), 0 calc(100% - 14px));
  border: 2px dashed rgb(255 251 244 / .55); border-bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 22px 110px; text-align: center; color: #fffbf4; }
.bm-ic { font-size: 74px; line-height: 1; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .25)); animation: bmPop .6s .7s cubic-bezier(.3, 1.7, .5, 1) both; }
.bm-in .bm-congrats { font: 600 28px/1.05 Fraunces, Georgia, serif; color: #fffbf4; margin-top: 4px; animation: bmPop .6s .85s cubic-bezier(.3, 1.7, .5, 1) both; }
.bm-in small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 251 244 / .8); margin-top: 8px; }
.bm-in b { font: 700 24px/1.15 Fraunces, Georgia, serif; }
.bm-how { font-size: 15px; opacity: .9; max-width: 240px; }
.bm-more { font-size: 13.5px; font-weight: 700; background: rgb(255 251 244 / .2); padding: 4px 10px; border-radius: 12px; }
.bm-see { margin-top: 10px; color: #fffbf4; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes bmPop { from { transform: scale(.3) rotate(-15deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bm-rib, .bm-drop.up .bm-rib { transition: opacity .3s; transform: none; opacity: 0; } .bm-drop.down .bm-rib { opacity: 1; } .bm-drop.up .bm-rib { opacity: 0; } .bm-ic { animation: none; } }
.gr-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.gr-sum > div { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.gr-sum b { font: 600 26px/1.1 Fraunces, Georgia, serif; color: var(--orange); } .gr-sum span { font-size: 12.5px; color: var(--mute); }
.gr-done { display: flex; flex-direction: column; gap: 8px; text-align: center; } .gr-done > b { font: 600 22px Fraunces, Georgia, serif; } .gr-done > span { color: var(--mute); font-size: 14px; margin-bottom: 6px; }

/* ---------- monthly wrap ---------- */
.wrap-home { display: block; background: #2a1c12; border-color: #2a1c12; color: #f6ead8; text-decoration: none; padding: 16px; }
.wrap-home small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c08a1e; }
.wrap-home b { display: block; font: 600 22px/1.2 Fraunces, Georgia, serif; margin: 4px 0 6px; } .wrap-home span { font-size: 13px; color: #cdb899; }
.wraps-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; } .wraps-row::-webkit-scrollbar { display: none; }
.wraps-row a { flex: none; width: 62px; padding: 10px 0; border-radius: 12px; background: #2a1c12; color: #f6ead8; text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.wraps-row b { font: 600 17px Fraunces, Georgia, serif; } .wraps-row small { font-size: 11px; color: #c08a1e; }
.wr-top { background: #2a1c12; color: #f6ead8; padding: 26px 20px 22px; text-align: center; }
.wr-top > small { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c08a1e; }
.wr-top > b { display: block; font: 600 40px/1.1 Fraunces, Georgia, serif; margin: 6px 0 4px; } .wr-top > span { font-size: 13.5px; color: #cdb899; }
.wr-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 20px; }
.wr-nums b { display: block; font: 600 24px Fraunces, Georgia, serif; color: #fff; } .wr-nums small { font-size: 11px; color: #cdb899; }
.wr-h { margin-bottom: 12px; } .wr-h small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); } .wr-h h2 { margin: 2px 0 0; font-family: Fraunces, Georgia, serif; font-size: 21px; line-height: 1.2; }
.wr-note { margin: 12px 0 0; font-size: 13px; }
.wr-stamps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wr-stamp { border: 1.5px dashed var(--orange); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wr-stamp.country { border-color: #4f6b8a; } .wr-stamp.planet { border-color: #8a3f22; } .wr-stamp.world { border-color: #6b5a3a; }
.wr-stamp > span { font-size: 28px; line-height: 1; } .wr-stamp > b { font: 600 16px Fraunces, Georgia, serif; }
.wr-stamp.country > b { color: #4f6b8a; } .wr-stamp.planet > b { color: #8a3f22; } .wr-stamp.world > b { color: #6b5a3a; }
.wr-stamp > small { font-size: 11.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-tl { position: relative; height: 70px; margin: 0 8px; }
.wr-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 33px; height: 2px; background: var(--line); }
.wr-tl .gap { position: absolute; top: 26px; width: 20px; height: 16px; background: var(--card); } .wr-tl .gap::after { content: "⋯"; position: absolute; inset: 0; text-align: center; color: var(--mute); line-height: 16px; }
.wr-tl .dot { position: absolute; top: 27px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--orange); border: 2px solid var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.wr-tl .lbl { position: absolute; transform: translateX(-50%); font-size: 11px; font-weight: 700; white-space: nowrap; } .wr-tl .lbl.up { top: 4px; } .wr-tl .lbl.down { top: 48px; }
.wr-ticks { position: relative; height: 16px; margin: 0 8px; } .wr-ticks span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--mute); }
.wr-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .wr-bar > span { width: 24px; font-size: 18px; } .wr-bar > b { width: 52px; font-size: 13px; }
.wr-bar i { flex: 1; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; } .wr-bar u { display: block; height: 100%; background: var(--orange); opacity: .5; } .wr-bar.top u { opacity: 1; }
.wr-bar em { width: 38px; text-align: right; font-style: normal; font-size: 12.5px; font-weight: 700; }
.wr-chart { display: flex; align-items: flex-end; gap: 3px; height: 70px; } .wr-chart i { flex: 1; background: var(--line); border-radius: 3px 3px 0 0; } .wr-chart i.max { background: var(--orange); }
.wr-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--mute); margin-top: 4px; }
.wr-fin { display: flex; gap: 12px; align-items: center; margin-top: 10px; } .wr-fin .cover { width: 36px; height: 54px; flex: none; border-radius: 4px; object-fit: cover; overflow: hidden; }
.wr-fin > div { flex: 1; min-width: 0; } .wr-fin b { display: block; font-size: 14px; } .wr-fin small { font-size: 12px; color: var(--mute); } .wr-fin em { font-style: normal; font-weight: 700; color: #c08a1e; font-size: 13px; }

/* ---------- streak on Home ---------- */
.sk-top { display: flex; align-items: center; gap: 16px; }
.sk-ring { position: relative; width: 92px; height: 92px; flex: none; }
.sk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sk-ring circle { fill: none; stroke-width: 8; }
.sk-ring .sk-track { stroke: var(--line); }
.sk-ring .sk-fill { stroke: #e0701f; stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.sk-ring > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; line-height: 1; }
.sk-txt { flex: 1; min-width: 0; }
.sk-txt > div { display: flex; align-items: baseline; gap: 8px; }
.sk-txt > div b { font: 600 46px/1 Fraunces, Georgia, serif; color: #e0701f; }
.sk-txt > div span { font: 600 18px Fraunces, Georgia, serif; }
.sk-txt p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.35; }
.sk-ok { color: #2f7d74; font-weight: 700; } .sk-warn { color: #c4561a; font-weight: 700; }
.sk-chain { display: flex; justify-content: space-between; margin-top: 16px; }
.sk-chain > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sk-chain span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; font-weight: 800; font-size: 13px; }
.sk-chain .on span { background: #e0701f; }
.sk-chain .today:not(.on) span { background: var(--card); border: 2px dashed #e0701f; }
.sk-chain small { font-size: 11px; color: var(--mute); } .sk-chain .today small { color: var(--ink); font-weight: 700; }
.sk-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.sk-foot b { color: var(--ink); }
.yr-wrap { display: block; font-size: 11px; font-weight: 700; color: var(--orange); text-decoration: none; }
.st-choice { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.flib-head h2 { margin: 0; font-size: 18px; color: var(--ink); } .flib-head > a { font-size: 13px; font-weight: 700; color: var(--orange); text-decoration: none; }
#libFriends { margin-top: 18px; }

/* ---------- rest days ---------- */
.sk-rest { color: #4f3a6b; font-weight: 700; }
.sk-chain .rest:not(.on) span { background: var(--card); border: 2px solid #b9a9d6; color: #4f3a6b; font-size: 15px; }
.rest-card .sec-head h2 { font-size: 17px; }
.rest-card.urgent { border-color: #e0701f; box-shadow: 0 0 0 2px rgb(224 112 31 / .15); }
.rest-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.rest-row > span { display: flex; flex-direction: column; } .rest-row small { color: #4f3a6b; font-size: 12.5px; font-weight: 600; }

/* ---------- reading calendar ---------- */
.cal { background: linear-gradient(170deg, #fff4e6 0%, #fde3cc 100%); }
.cal .sec-head h2 { font-family: Georgia, serif; color: #6e1f2c; }
.cal-nav { display: flex; align-items: center; gap: 6px; } .cal-nav b { font: 700 14px/1 Georgia, serif; min-width: 104px; text-align: center; color: #7a3a1c; }
.cal-nav button { border: 0; background: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--blue); cursor: pointer; box-shadow: 0 1px 3px rgb(61 107 140 / .22); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; padding: 10px; background: rgb(255 255 255 / .55); border-radius: 16px; }
.cal-grid > small { text-align: center; font-size: 11px; color: #b4532a; font-weight: 800; letter-spacing: .05em; padding-bottom: 2px; }
.cal-grid > small:nth-child(n+6):nth-child(-n+7) { color: #8a5aa8; }
.cal-d { position: relative; aspect-ratio: 1; border: 0; border-radius: 11px; background: #fff; color: #4a3b2c; font: 700 13px/1 inherit; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 0; box-shadow: 0 1px 2px rgb(120 60 20 / .1); transition: transform .12s; }
.cal-d:active:not(.fut):not(.blank) { transform: scale(.92); }
.cal-d.blank { background: none; box-shadow: none; cursor: default; }
.cal-d.on { color: #fff; box-shadow: 0 3px 8px rgb(200 80 20 / .3); }
.cal-d.on.l1 { background: linear-gradient(150deg, #f7a35c, #ef8a3c); }
.cal-d.on.l2 { background: linear-gradient(150deg, #ef7d32, #d9601f); }
.cal-d.on.l3 { background: linear-gradient(150deg, #d45a22, #a63a14); }
.cal-d.some { background: linear-gradient(150deg, #ffe2c8, #fbd0ad); color: #8a4a1c; }
.cal-d.rest:not(.on) { background: linear-gradient(150deg, #efe7fb, #e2d6f5); color: #5a3d80; box-shadow: none; }
.cal-d.rest.on::before { content: "☾"; position: absolute; top: 2px; right: 4px; font-size: 9px; opacity: .85; }
.cal-d i { font-style: normal; font-size: 8.5px; font-weight: 700; opacity: .9; line-height: 1; }
.cal-d.today { outline: 2.5px solid #6e1f2c; outline-offset: 1.5px; }
.cal-d.today:not(.on)::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #6e1f2c; }
.cal-d.fut { background: rgb(255 255 255 / .45); box-shadow: none; color: #c4ad96; cursor: default; }
.cal-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.cal-chips span { background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: #6b5640; box-shadow: 0 1px 2px rgb(120 60 20 / .1); }
.cal-chips b { color: #3d2a1c; font-size: 15px; }
.cal-chips .fire { background: linear-gradient(150deg, #ef7d32, #d9601f); color: #fff3e8; } .cal-chips .fire b { color: #fff; }
.cal-tip { margin: 10px 0 0; font-size: 13px; min-height: 18px; color: #7a6450 !important; }
.cal-key { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: #8a7360; }
.cal-key span { display: inline-flex; align-items: center; gap: 4px; } .cal-key .k { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cal-key .k.on.l1 { background: #f7a35c; } .cal-key .k.on.l3 { background: #a63a14; margin-right: 2px; } .cal-key .k.some { background: #fbd0ad; } .cal-key .k.rest { background: #e2d6f5; }
.ppc-cta { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 3px 10px rgb(61 107 140 / .3); }
.ppc:active .ppc-cta { background: var(--blue-press); }
.ppc:active .ppc-cta { transform: scale(.97); }
#offBar { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 40; background: #2b211b; color: #f6ead8; font-size: 13px; text-align: center; padding: 8px 14px; }
.off-card p { color: var(--mute); }
.flib .bookcase.empty-case { height: auto; min-height: 0; padding: 12px 8px 16px; display: block; } .flib .empty-case p { margin: 0; font-size: 13.5px; color: #cdb899; }
.rest-open { text-align: left; } .rest-open b { font-weight: 700; color: var(--orange); }
.rs-add { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rs-add .row2 { display: flex; gap: 8px; } .rs-add .row2 label { flex: 1; }
.rs-g { display: block; margin: 14px 0 6px !important; } #rsF .spots { margin: 0; }
.rs-how { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: -4px 0 6px; font-size: 14px; }
.rs-how b { display: block; margin-bottom: 2px; }
.rs-how p { margin: 4px 0 0; color: var(--ink-2, inherit); line-height: 1.45; }
.rs-how p:last-child { font-size: 12.5px; opacity: .75; }
.sheet { touch-action: pan-y; }
#rsF .rs-g { margin: 14px 0 6px !important; padding: 0; } #rsF .rs-g + .spots { margin-top: 0 !important; }
#rsF { gap: 6px; } #rsF .rs-g { margin: 12px 0 0 !important; } #rsF .rs-add, #rsF > .btn { margin-top: 8px; }
/* fun passport card on the You page */
.ppc { position: relative; display: block; text-decoration: none; color: #3d3428; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgb(110 31 44 / .05) 0 1px, transparent 1px 24px), linear-gradient(160deg, #fbf3e4, #f3e6cf); }
.ppc::after { content: "REDE"; position: absolute; right: -10px; bottom: 6px; transform: rotate(-18deg); font: 800 58px/1 Georgia, serif; letter-spacing: .1em; color: rgb(110 31 44 / .05); pointer-events: none; }
.ppc-trail { position: absolute; right: 10px; top: 8px; width: 130px; color: var(--blue); opacity: .8; }
.ppc-top { display: flex; align-items: center; gap: 14px; position: relative; }
.ppc-book { width: 54px; height: 74px; border-radius: 3px 8px 8px 3px; background: linear-gradient(135deg, #85283a, #5b1622); transform: rotate(-7deg); display: grid; justify-items: center; align-content: center; gap: 3px; flex: none;
  box-shadow: inset 4px 0 0 rgb(0 0 0 / .18), 0 6px 12px rgb(80 20 30 / .3); }
.ppc-book svg { width: 22px; height: 22px; fill: #e2c275; stroke: none; }
.ppc-book small { font: 700 6.5px/1 Georgia, serif; letter-spacing: .18em; text-transform: uppercase; color: #e2c275; }
.ppc-txt b { display: block; font: 700 19px/1.2 Georgia, serif; color: #6e1f2c; }
.ppc-n { display: flex; gap: 14px; margin-top: 4px; font-size: 13px; color: #7a6a52; }
.ppc-n strong { font-size: 20px; color: #3d3428; margin-right: 2px; }
.ppc-stamps { display: flex; padding: 14px 0 4px 4px; position: relative; }
.ppc-st { --ink: #b8322a; width: 58px; height: 58px; border-radius: 50%; margin-right: -8px; display: grid; place-items: center; align-content: center; color: var(--ink);
  border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px #fbf3e4, inset 0 0 0 3.5px var(--ink); background: rgb(255 255 255 / .35); transform: rotate(var(--r, 0deg));
  opacity: .9; animation: ppc-thunk .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 110ms + 150ms); }
.ppc-st i { font-style: normal; font-size: 20px; line-height: 1; }
.ppc-st em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .15em; margin-top: 2px; }
.ppc-st.next { border: 2px dashed #8fb0c8; box-shadow: none; color: var(--blue); background: none; transform: rotate(6deg); }
.ppc-st.next i { font: 700 18px/1 Georgia, serif; }
@keyframes ppc-thunk { from { opacity: 0; transform: scale(1.7) rotate(var(--r, 0deg)); } to { opacity: .9; transform: scale(1) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .ppc-st { animation: none; } }
.ppc-line { margin: 10px 0 0; font-size: 13.5px; color: #7a6a52; position: relative; }
.ppc-line b { color: #3d3428; }
.flib-toggle { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); text-align: left; cursor: pointer; }
.flib-toggle > span { flex: 1; display: grid; } .flib-toggle b { font-size: 17px; } .flib-toggle small { color: var(--mute); font-size: 13px; }
.flib-toggle > i { font-style: normal; font-size: 22px; line-height: 1; color: var(--blue); transition: transform .2s; transform: translateY(-4px); }
.flib-toggle[aria-expanded="true"] > i { transform: rotate(180deg) translateY(-4px); }
.flib-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.flib-foot a { font-size: 14px; font-weight: 700; color: var(--orange); text-decoration: none; }
.flib-foot .flib-add { margin-left: auto; color: var(--blue); background: var(--blue-soft); padding: 7px 14px; border-radius: 999px; }
/* wrap scenes */
.wr-scene-card { padding-top: 0; overflow: hidden; }
.scene { position: relative; margin: 0 -16px; height: 320px; overflow: hidden; color: var(--ink); }
.scene.dark { color: #fff; }
.sc-art { position: absolute; left: 0; right: 0; bottom: 88px; width: 100%; height: 170px; }
.sc-fl { z-index: 0; } .sc-art, .sc-big { z-index: 1; }
.sc-big { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-size: 96px; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .18)); animation: sc-bob 3.2s ease-in-out infinite; }
.sc-fl { position: absolute; transform: rotate(var(--r)); animation: sc-float 4.5s ease-in-out infinite; animation-delay: var(--d); filter: drop-shadow(0 2px 3px rgb(0 0 0 / .12)); pointer-events: none; }
@keyframes sc-float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-7px) rotate(calc(var(--r) + 8deg)); } }
@keyframes sc-bob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -56%); } }
@media (prefers-reduced-motion: reduce) { .sc-fl, .sc-big { animation: none; } }
.sc-hi { position: absolute; top: 14px; right: 16px; font: 700 15px/1 Georgia, serif; padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .75); color: var(--ink); z-index: 2; }
.scene.dark .sc-hi { background: rgb(255 255 255 / .15); color: #fff; }
.sc-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px 16px; background: linear-gradient(transparent, rgb(255 255 255 / .85) 28%); z-index: 2; }
.scene.dark .sc-cap { background: linear-gradient(transparent, rgb(20 14 40 / .85) 28%); }
.sc-cap small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.sc-cap h2 { margin: 2px 0 2px; font: 700 24px/1.15 Georgia, serif; color: inherit; }
.sc-cap p { margin: 0; font-size: 13.5px; opacity: .85; }
/* ---------- Wrapped story ---------- */
#wstory { position: fixed; inset: 0; z-index: 200; background: #2a1c12; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; max-width: 640px; margin: 0 auto; }
#wstory .st-bars { position: absolute; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 10; }
#wstory .st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .3); overflow: hidden; }
#wstory .st-bars u { display: block; height: 100%; width: 0; background: #fff; }
#wstory .st-top { position: absolute; top: calc(22px + var(--safe-t)); left: 12px; right: 8px; display: flex; align-items: center; gap: 8px; z-index: 10; font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px rgb(0 0 0 / .25); }
#wstory .st-top .av { width: 28px; height: 28px; font-size: 11px; }
#wstory .st-x { margin-left: auto; border: 0; background: none; color: inherit; font-size: 30px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.st-s { position: absolute; inset: 0; overflow: hidden; }
.st-s .scene { position: absolute; inset: 0; height: auto; margin: 0; }
.st-s .scene .sc-art { top: 18%; bottom: auto; height: 34%; }
.st-s .scene .sc-big { top: 32%; font-size: 120px; }
.st-s .sc-cap { display: none; }
.st-hi { top: calc(64px + var(--safe-t)) !important; }
.st-mid { position: absolute; left: 26px; right: 26px; top: 50%; transform: translateY(-50%); z-index: 3; }
.st-low { position: absolute; left: 26px; right: 26px; bottom: 70px; z-index: 3; }
.st-s h1 { font: 700 40px/1.08 Fraunces, Georgia, serif; margin: 0; }
.st-s h1.sm { font-size: 32px; }
.st-s p { font-size: 16px; line-height: 1.45; opacity: .9; margin: 14px 0 0; }
.st-small { font-size: 13px !important; opacity: .8 !important; margin-top: 8px !important; }
.st-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 10px; }
.st-k.gold { color: #e2c275; opacity: 1; }
.st-num { display: block; font: 700 96px/1 Fraunces, Georgia, serif; letter-spacing: -.02em; }
.st-unit { display: block; font: 700 28px/1.2 Fraunces, Georgia, serif; }
.st-hint { position: absolute; bottom: calc(18px + var(--safe-b)); left: 0; right: 0; text-align: center; font-size: 12px; opacity: .6; z-index: 10; margin: 0; }
.st-s.in .st-mid, .st-s.in .st-low { animation: st-up .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes st-up { from { opacity: 0; transform: translateY(calc(-50% + 30px)); } to { opacity: 1; transform: translateY(-50%); } }
.st-s.in .st-low { animation-name: st-up2; } @keyframes st-up2 { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-s.in .st-mid, .st-s.in .st-low { animation: none; } }
.st-intro { background: linear-gradient(170deg, #2a1c12, #6e1f2c); color: #f4dfa8; }
.st-intro h1 { font-size: 46px; }
.st-cta { position: absolute; left: 0; right: 0; bottom: 90px; text-align: center; z-index: 3; }
.st-btn { display: inline-block; border: 0; padding: 14px 30px; border-radius: 999px; font: 800 16px var(--font); cursor: pointer; }
.st-btn.gold { background: #e2c275; color: #2a1c12; } .st-btn.line { background: none; color: #e2c275; box-shadow: inset 0 0 0 1.5px #e2c275; }
.st-two { display: flex; gap: 10px; margin-top: 28px; } .st-two .st-btn { flex: 1; }
.st-pages { background: linear-gradient(170deg, #ef7d32, #a63a14); }
.st-chart { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 30px; }
.st-chart i { flex: 1; background: rgb(255 255 255 / .45); border-radius: 2px; } .st-chart i.max { background: #fff; }
.st-scene { color: var(--ink, #2b211b); }
.st-scene .st-low { color: inherit; }
.st-s:not(.dark).st-scene .st-low { background: rgb(255 255 255 / .78); margin: 0 -10px; padding: 16px; border-radius: 20px; backdrop-filter: blur(4px); left: 20px; right: 20px; }
.st-s.dark.st-scene .st-low { background: rgb(20 14 40 / .55); margin: 0 -10px; padding: 16px; border-radius: 20px; left: 20px; right: 20px; color: #fff; }
.st-scene h1 { font-size: 34px; }
#wstory:has(.st-s.lt:not([hidden])) .st-top, #wstory:has(.st-s.lt:not([hidden])) .st-hint { color: #2b211b; text-shadow: none; }
#wstory:has(.st-s.lt:not([hidden])) .st-bars i { background: rgb(0 0 0 / .15); } #wstory:has(.st-s.lt:not([hidden])) .st-bars u { background: #2b211b; }
.st-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; } .st-chips span { padding: 6px 11px; border-radius: 999px; background: rgb(0 0 0 / .07); font-size: 13px; font-weight: 700; }
.st-sb { display: grid; gap: 6px; margin-top: 12px; }
.st-sb > div { display: flex; align-items: center; gap: 8px; font-size: 14px; } .st-sb span { width: 22px; } .st-sb b { width: 54px; }
.st-sb i { flex: 1; height: 8px; border-radius: 4px; background: rgb(127 127 127 / .25); overflow: hidden; } .st-sb u { display: block; height: 100%; background: #ffb43a; border-radius: 4px; } .st-sb em { font-style: normal; font-weight: 700; width: 38px; text-align: right; }
.st-time { background: linear-gradient(170deg, #1d2a4a, #3d5a8a); }
.st-tl { position: relative; height: 80px; margin-top: 36px; } .st-tl .ln { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: rgb(255 255 255 / .4); }
.st-tl .dot { position: absolute; top: 27px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #ffb43a; border: 2px solid #fff; }
.st-tl .lb { position: absolute; top: 52px; transform: translateX(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; } .st-tl .lb.up { top: 4px; }
.st-genre { background: linear-gradient(170deg, #e6ddff, #c9b6f2); color: #3a1f6a; }
.st-gbars { display: grid; gap: 10px; margin-top: 28px; } .st-gbars > div { display: flex; align-items: center; gap: 10px; font-size: 15px; } .st-gbars b { width: 110px; text-transform: capitalize; }
.st-gbars i { flex: 1; height: 12px; border-radius: 6px; background: rgb(255 255 255 / .55); overflow: hidden; } .st-gbars u { display: block; height: 100%; background: #6a3fc0; border-radius: 6px; } .st-gbars em { font-style: normal; font-weight: 700; width: 40px; text-align: right; }
.st-botm { background: linear-gradient(170deg, #fff4d6, #f5d38a); color: #4a2c08; text-align: center; }
.st-cover { display: flex; justify-content: center; margin: 6px 0 22px; } .st-cover > * { width: 150px !important; height: 222px !important; border-radius: 6px; box-shadow: 0 18px 40px rgb(110 40 10 / .4); transform: rotate(-3deg); font-size: 18px; }
.st-by { margin-top: 4px !important; font-weight: 600; }
.st-marks { background: linear-gradient(170deg, #2a1c12, #5a3a22); color: #f4dfa8; text-align: center; }
.st-ribs { display: flex; gap: 14px; justify-content: center; margin: 30px 0 16px; }
.st-ribs span { width: 60px; height: 92px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); display: grid; place-items: start center; padding-top: 16px; font-size: 26px; }
.st-s.in .st-ribs span { animation: st-drop .6s cubic-bezier(.2, 1.4, .4, 1) both; } .st-ribs span:nth-child(2) { animation-delay: .12s !important; } .st-ribs span:nth-child(3) { animation-delay: .24s !important; } .st-ribs span:nth-child(4) { animation-delay: .36s !important; }
@keyframes st-drop { from { transform: translateY(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
.st-mlist { display: grid; gap: 6px; font-size: 14px; }
.st-vs { background: linear-gradient(170deg, #dff3e4, #a9dbb6); color: #1f3a24; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; } .st-grid > div { background: rgb(255 255 255 / .7); border-radius: 16px; padding: 12px 14px; }
.st-grid small { font-size: 12px; opacity: .75; } .st-grid b { display: block; font: 700 24px Fraunces, Georgia, serif; } .st-grid span { font-size: 12.5px; font-weight: 700; color: #2e7d4f; }
.st-friends { background: linear-gradient(170deg, #3d6b8c, #24435c); }
.st-faces { display: flex; justify-content: center; margin: 26px 0 16px; } .st-faces .av { width: 48px; height: 48px; margin-left: -10px; border: 3px solid #fff; font-size: 15px; } .st-faces .av:first-child { margin-left: 0; }
.st-box { background: rgb(255 255 255 / .13); border-radius: 16px; padding: 12px 14px; font-size: 15px; margin-top: 8px; }
.st-persona { background: linear-gradient(170deg, #6e1f2c, #2a1c12); color: #f4dfa8; }
.st-emo { font-size: 76px; margin: 4px 0 8px; } .st-persona h1 { font-size: 44px; }
/* ---------- Wrapped fact sheet ---------- */
.fs { margin-bottom: 6px; }
.fs-top { position: relative; background: linear-gradient(170deg, #2a1c12, #6e1f2c); color: #f4dfa8; padding: 22px 20px; }
.fs-top small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #e2c275; }
.fs-top b { display: block; font: 700 32px/1.12 Fraunces, Georgia, serif; margin: 6px 0 4px; } .fs-top > span { font-size: 13px; color: #cdb899; }
.fs-play { display: block; margin-top: 12px; border: 0; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .13); color: #f4dfa8; font: 700 13px var(--font); cursor: pointer; }
.fs-body { padding: 12px 12px 4px; display: grid; gap: 10px; }
.fs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fs-t { border-radius: 16px; padding: 12px 6px; text-align: center; } .fs-t b { display: block; font: 700 22px Fraunces, Georgia, serif; } .fs-t span { font-size: 11.5px; color: var(--mute); }
.fs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-b { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: 0 1px 3px rgb(120 60 20 / .08); display: flex; flex-direction: column; gap: 3px; }
.fs-b > small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.fs-b b { font: 700 16px/1.25 Fraunces, Georgia, serif; } .fs-b b.big { font-size: 26px; } .fs-b b.big2 { font-size: 22px; text-transform: capitalize; } .fs-b span { font-size: 12px; color: var(--mute); }
.fs-flags { font-size: 24px; letter-spacing: 3px; } .fs-emo { font-size: 26px; }
.fs-botm { display: flex; gap: 12px; align-items: center; } .fs-botm > :first-child { width: 46px !important; height: 68px !important; flex: none; font-size: 7px; } .fs-botm b { display: block; font-size: 18px; }
.fs-heat { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; } .fs-heat i { aspect-ratio: 1; border-radius: 4px; background: #f3e6d6; }
.fs-heat .h1 { background: #f7a35c; } .fs-heat .h2 { background: #ef7d32; } .fs-heat .h3 { background: #c4501c; }
.fs-acts { display: flex; gap: 10px; padding: 4px 0 8px; } .fs-acts .btn { flex: 1; }
.btn.blue { background: var(--blue); color: #fff; } .btn.blue:active { background: var(--blue-press); }
.wr-details { font-size: 18px; margin: 18px 16px 8px; color: var(--mute); }
/* calendar → wrap */
.cal-wrap { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(150deg, #6e1f2c, #2a1c12); color: #f4dfa8; text-decoration: none; box-shadow: 0 3px 10px rgb(110 31 44 / .25); }
.cw-e { font-size: 26px; } .cw-t { flex: 1; display: grid; } .cw-t b { font: 700 16px Fraunces, Georgia, serif; } .cw-t small { color: #cdb899; font-size: 12.5px; }
.cal-wrap > span:last-child { font-size: 22px; }
.st-cover > * { background: linear-gradient(150deg, #a8432a, #6e1f14); }
.mile { position: relative; }
.mile-in { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.mile-in > div { flex: 1; min-width: 0; }
.mile-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--mute); font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; opacity: .7; }
.mile.legend .mile-x { color: #cdb899; }
.mile .mile-in > .av { margin-right: 18px; }
.mile-stack { display: flex; flex: none; } .mile-stack > * + * { margin-left: -22px; } .mile-stack > *:nth-child(2) { transform: rotate(6deg); } .mile-stack > *:nth-child(3) { transform: rotate(12deg); }
.wrap-home-w { position: relative; } .wh-x { color: #cdb899 !important; top: 10px !important; right: 10px !important; font-size: 24px !important; }
/* Friends' libraries: blue bar so it stands out */
.flib-toggle { margin: 12px 12px 0; width: calc(100% - 24px); border: 0; border-radius: 16px; background: linear-gradient(150deg, #4a7ca0, #2c5070); color: #fff; box-shadow: 0 4px 12px rgb(61 107 140 / .3); padding: 14px 16px; }
.flib-toggle b { color: #fff; } .flib-toggle small { color: #d6e6f2 !important; }
.flib-toggle > i { color: #fff !important; }
.flib-toggle > .flib-ic { width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .18); display: grid !important; place-items: center; font-size: 20px; flex: none; }
.flib-toggle[aria-expanded="true"] { border-radius: 16px 16px 0 0; }
.flib-toggle[aria-expanded="true"] + .flib-body { margin: 0 12px; border-radius: 0 0 16px 16px; overflow: hidden; }
.flib-foot { background: var(--blue-soft); }
.ab-list { display: grid; gap: 10px; }
.ab-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px; cursor: pointer; box-shadow: 0 1px 3px rgb(120 60 20 / .06); }
.ab-opt:active { transform: scale(.98); }
.ab-opt > span:nth-child(2) { flex: 1; display: grid; gap: 2px; } .ab-opt b { font-size: 15.5px; } .ab-opt small { color: var(--mute); font-size: 13px; }
.ab-i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; }
.ab-opt > i { font-style: normal; font-size: 22px; color: var(--blue); }
/* ---------- Reading page (v2) ---------- */
.rd2 { display: grid; justify-items: center; text-align: center; padding: 18px 20px 6px; background: radial-gradient(ellipse at 50% 32%, #fff 0, transparent 70%); }
.rd2-k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.rd2-cover { border: 0; background: none; padding: 0; margin: 12px 0 12px; width: 132px; transform: rotate(-2deg); filter: drop-shadow(0 16px 22px rgb(90 50 20 / .3)); cursor: pointer; }
.rd2-cover .face { width: 132px; }
.rd2-t { font: 700 23px/1.2 Fraunces, Georgia, serif; } .rd2-a { font-size: 13.5px; color: var(--mute); }
.rd2-prog { width: 100%; max-width: 320px; margin-top: 14px; text-align: left; }
.rd2-pl { display: flex; justify-content: space-between; align-items: baseline; } .rd2-pl span { color: var(--mute); } .rd2-pl b { font: 700 25px Fraunces, Georgia, serif; color: var(--ink); } .rd2-pl em { font-style: normal; font-weight: 800; color: var(--orange); }
.rd2-prog .meter { display: block; height: 8px; margin-top: 6px; } .rd2-prog .meter i { background: linear-gradient(90deg, #f7a35c, var(--orange)); }
.rd2-prog small { display: block; text-align: center; margin-top: 7px; font-size: 12.5px; color: var(--mute); }
.rd2-btns { display: flex; gap: 10px; padding: 14px 16px 0; } .rd2-btns .btn { flex: 1; height: 50px; border-radius: 25px; font-size: 15px; padding: 0 8px; white-space: nowrap; }
.rd2-fast { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.rd2-fast label { font-size: 14px; color: var(--mute); flex: none; } .rd2-fast label b { color: var(--ink); }
.rd2-fast input { flex: 1; min-width: 0; height: 40px; text-align: center; font-weight: 700; border: 1.5px solid var(--blue) !important; border-radius: 10px; }
.rd2-fast .btn { height: 40px; border-radius: 20px; padding: 0 16px; }
.rd2-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; padding: 10px 16px 0; font-size: 13px; }
.rd2-links .linkbtn { font-size: 13.5px; font-weight: 700; color: var(--blue); } .rd2-links .rd2-fin { width: 100%; color: var(--mute); font-weight: 600; margin-top: 2px; }
.rd2-add { padding: 16px 16px 8px; }
.rd2-k2 { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.rd2-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rd2-tiles button { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 6px; display: grid; justify-items: center; gap: 6px; cursor: pointer; font: inherit; color: inherit; }
.rd2-tiles button:active { transform: scale(.97); } .rd2-tiles b { font-size: 13px; line-height: 1.2; }
.rd2-imp { display: flex; justify-content: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--mute); } .rd2-imp a { color: var(--mute); }
.rd2-none { font-size: 54px; margin: 14px 0 8px; } .rd2-empty .rd2-a { max-width: 260px; margin-top: 4px; }
/* ---------- add-a-book sheets ---------- */
.ab-step { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; } .ab-step span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-right: auto; }
.ab-step i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); } .ab-step i.on { background: var(--blue); } .ab-step i.wide { width: 18px; }
.ab-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; } .ab-head > div { display: grid; } .ab-head small { font-size: 12.5px; color: var(--mute); } .ab-head b { font: 700 20px/1.2 Fraunces, Georgia, serif; }
.ab-head .face { width: 56px; flex: none; }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip2 { padding: 9px 13px; border-radius: 999px; font: 700 13.5px var(--font); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip2[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.s2-row { display: flex; align-items: baseline; gap: 10px; } .s2-row input { width: 120px; font: 700 34px Fraunces, Georgia, serif; border: 0 !important; border-bottom: 2px solid var(--blue) !important; border-radius: 0 !important; padding: 0 4px; height: auto; background: none; }
.s2-of { color: var(--mute); } .s2-pct { margin-left: auto; color: var(--blue); }
#s2R { width: 100%; accent-color: var(--orange); height: 28px; }
.s2-note { background: var(--blue-soft); color: #24435c; border-radius: 14px; padding: 11px 13px; font-size: 13.5px; margin: 0; line-height: 1.4; }
.f2-range { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--blue); background: var(--blue-soft); cursor: pointer; font: inherit; color: inherit; }
.f2-range.on { background: var(--blue); color: #fff; } .f2-range.on small { color: #d6e6f2; } .f2-range.on i { color: #fff; }
.f2-ri { font-size: 22px; } .f2-range > span:nth-child(2) { flex: 1; display: grid; } .f2-range b { font-size: 15px; color: inherit; } .f2-range:not(.on) b { color: var(--blue); } .f2-range small { font-size: 12.5px; color: #24435c; } .f2-range i { font-style: normal; font-size: 20px; color: var(--blue); }
.f2-tip { background: #fff4d6; color: #6a4a10; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; margin: 0; line-height: 1.4; }
.f2-score { display: flex; gap: 4px; margin-top: 8px; } .f2-score button { flex: 1; height: 36px; border: 0; border-radius: 8px; background: var(--line); color: var(--mute); font: 800 13px var(--font); cursor: pointer; padding: 0; } .f2-score button.on { background: var(--orange); color: #fff; }
.rc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .rc-top b { font: 700 18px Fraunces, Georgia, serif; }
.rc-sel { display: flex; gap: 8px; margin-bottom: 8px; } .rc-sel > div { flex: 1; border-radius: 12px; background: var(--blue-soft); padding: 8px 12px; border: 2px solid transparent; } .rc-sel > div.on { border-color: var(--blue); }
.rc-sel small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); } .rc-sel b { font-size: 15px; }
.rc-scroll { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.rc-m { margin: 10px 0 6px; } .rc-m > b { display: block; font: 700 16px Fraunces, Georgia, serif; margin-bottom: 6px; }
.rc-g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; } .rc-g small { text-align: center; font-size: 11px; font-weight: 800; color: var(--mute); }
.rc-d { height: 40px; border: 0; background: none; font: 600 14px var(--font); color: var(--ink); cursor: pointer; padding: 0; }
.rc-d:disabled { color: #cdbfae; cursor: default; }
.rc-d.in { background: var(--blue-soft); } .rc-d.st, .rc-d.en { background: var(--blue); color: #fff; font-weight: 800; }
.rc-d.st { border-radius: 20px 0 0 20px; } .rc-d.en { border-radius: 0 20px 20px 0; } .rc-d.solo { border-radius: 20px; }
.rc-sum { text-align: center; font-size: 13.5px; color: #24435c; margin: 10px 0; }
.sm-shelf { background: #3b2a1c; margin: -10px -16px 0; padding: 26px 18px 0; border-radius: 14px 14px 0 0; }
.sm-books { display: flex; align-items: flex-end; gap: 10px; height: 170px; position: relative; } .sm-books > i { width: 54px; height: 140px; border-radius: 3px; display: block; }
.sm-new { width: 90px; transform: rotate(-6deg); animation: sm-drop .7s cubic-bezier(.2, 1.4, .4, 1) both; } .sm-new .face { width: 90px; }
@keyframes sm-drop { from { transform: translateY(-120px) rotate(-20deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
.sm-books em { position: absolute; font-style: normal; font-size: 20px; left: 150px; top: 6px; } .sm-books em + em { left: 230px; top: 48px; }
.sm-plank { height: 14px; background: linear-gradient(#a8744a, #7a5232); margin: 0 -18px; }
.sm-txt { text-align: center; padding: 16px 0 4px; display: grid; gap: 10px; } .sm-txt > b { font: 700 23px Fraunces, Georgia, serif; } .sm-txt p { margin: 0; color: var(--mute); } .sm-txt .s2-note { text-align: left; }
.sm-btns { display: flex; gap: 10px; } .sm-btns .btn { flex: 1; }
.nb-hero { display: grid; justify-items: center; text-align: center; gap: 4px; margin-bottom: 14px; } .nb-hero .face { width: 100px; transform: rotate(-3deg); margin-bottom: 8px; filter: drop-shadow(0 10px 16px rgb(0 0 0 / .2)); } .nb-hero b { font: 700 22px Fraunces, Georgia, serif; } .nb-hero small { color: var(--mute); font-size: 13px; }
.rd2-fast label { white-space: nowrap; } .rd2-fast input { flex: 0 1 84px; width: 84px; } .rd2-fast .btn { margin-left: auto; }
.rd2-cover, .rd2-cover .face { width: 118px; }
/* compact Reading page so "Add a book" peeks above the fold */
.rd2 { padding: 10px 20px 0; }
.rd2-cover { margin: 8px 0; } .rd2-cover, .rd2-cover .face { width: 92px; }
.rd2-t { font-size: 21px; }
.rd2-prog { margin-top: 8px; } .rd2-pl b { font-size: 22px; }
.rd2-btns { padding-top: 12px; } .rd2-btns .btn { height: 46px; font-size: 14.5px; }
.rd2-fast { margin-top: 10px; padding: 8px 10px; } .rd2-fast label { font-size: 13.5px; }
.rd2-links { padding-top: 8px; } .rd2-links .rd2-fin { width: auto; margin: 0; color: var(--mute); }
.rd2-add.card { margin: 14px 12px 16px; padding: 14px 12px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(120 60 20 / .08); }
.rd2-add .rd2-k2 { color: var(--blue); margin: 0 4px 10px; }
.rd2-tiles button { background: var(--bg); border-color: transparent; padding: 10px 4px; } .rd2-tiles .ab-i { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; }
.rd2-imp { margin-top: 10px; }
.rd2-fast label { display: block !important; white-space: nowrap; } .rd2-fast label b { display: inline; }
/* bigger cover again; the Add a book card just peeks at the bottom */
.rd2 { padding-top: 16px; } .rd2-cover { margin: 12px 0; } .rd2-cover, .rd2-cover .face { width: 124px; }
.rd2-t { font-size: 23px; } .rd2-pl b { font-size: 25px; } .rd2-btns .btn { height: 50px; font-size: 15px; }
.rd2-links { flex-direction: column; gap: 6px; } .rd2-sw { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 13.5px; }
.rd2-sw .linkbtn { color: var(--blue); font-weight: 800; font-size: 14px; }
.rd2-sw { align-items: baseline; } .rd2-sw .linkbtn { padding: 0; }
/* ---------- reactions: faces + names on the left, big round buttons on the right ---------- */
.social { align-items: center; gap: 10px; }
.who.rw { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-size: 13.5px; color: var(--ink); }
.rw-faces { display: inline-flex; flex: none; } .rw-f { position: relative; margin-left: -8px; } .rw-f:first-child { margin-left: 0; }
.rw-f .av { width: 28px; height: 28px; font-size: 10px; border: 2px solid var(--card); box-sizing: content-box; }
.rw-f > i { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; border: 1.5px solid var(--card); }
.rw-f > i svg { width: 9px; height: 9px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.rw-f > i.rx-bookworm { background: #3a8a4a; } .rw-f > i.rx-bookworm svg { fill: none; stroke-width: 2.6; } .rw-f > i.rx-heart { background: #c0392b; }
.rw-t { line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .rw-t b { font-weight: 800; }
.rw-none { color: var(--mute); font-size: 13px; }
.rx-big { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--orange); background: var(--card); color: var(--orange); cursor: pointer; padding: 0; transition: transform .15s; }
.rx-big svg { width: 24px; height: 24px; }
.rx-big:active { transform: scale(.9); }
.rx-big.on { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgb(184 90 50 / .4); }
.rx-big.on svg { fill: currentColor; }
.rx-big.on.rx-on-heart { background: #c0392b; border-color: #c0392b; color: #fff !important; box-shadow: 0 4px 12px rgb(192 57 43 / .4); }
.rx-big.on.rx-on-bookworm { background: #3a8a4a; border-color: #3a8a4a; color: #fff !important; box-shadow: 0 4px 12px rgb(58 138 74 / .4); } .rx-big.on.rx-on-bookworm svg { fill: none; }
.rx-big.pop { animation: rx-pop .45s cubic-bezier(.2, 1.6, .4, 1); position: relative; }
.rx-big.pop::after { content: "✨"; position: absolute; top: -12px; right: -10px; font-size: 14px; animation: rx-spark .6s ease-out both; }
@keyframes rx-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rx-spark { from { opacity: 0; transform: translate(-6px, 6px) scale(.5); } 40% { opacity: 1; } to { opacity: 0; transform: translate(4px, -8px) scale(1.1); } }
.rx-cm { flex: none; position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--soft, #f3ebdf); color: var(--ink); text-decoration: none; }
.rx-cm svg { width: 22px; height: 22px; }
.rx-cm em { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font: 800 11px/18px var(--font); font-style: normal; text-align: center; box-sizing: border-box; }
.rx-big.on, .rx-big.on svg { color: #fff !important; } .rx-big.on svg, .rx-big.on svg * { fill: #fff !important; stroke: #fff !important; } .rx-big.on.rx-on-bookworm svg, .rx-big.on.rx-on-bookworm svg * { fill: none !important; }
/* hold-to-pick: each reaction in its own coloured circle */
.rx-pick { gap: 6px; padding: 8px 10px; border-radius: 34px; }
.rx-pick button { padding: 2px 4px; gap: 4px; color: var(--ink); font-weight: 700; }
.rx-pick .rx-c { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid currentColor; background: var(--card); transition: transform .12s; }
.rx-pick .rx-c svg { width: 26px; height: 26px; transform: none !important; }
.rx-pick .rx-well_read .rx-c { color: var(--orange); border-color: var(--orange); }
.rx-pick .rx-bookworm .rx-c { color: #3a8a4a; border-color: #3a8a4a; }
.rx-pick .rx-heart .rx-c { color: #c0392b; border-color: #c0392b; }
.rx-pick button:active .rx-c, .rx-pick button:hover .rx-c { transform: scale(1.12); }
.rx-pick button.on { background: none; } .rx-pick button.on .rx-c { background: currentColor; } .rx-pick button.on .rx-c svg { stroke: #fff; } .rx-pick .rx-well_read.on .rx-c svg, .rx-pick .rx-heart.on .rx-c svg { fill: #fff; }
.rx-pick button > span:last-child { color: var(--mute); font-size: 11px; }
/* well read is blue */
.rx-big { border-color: var(--blue); color: var(--blue); }
.rx-big.on { background: var(--blue); border-color: var(--blue); box-shadow: 0 4px 12px rgb(61 107 140 / .4); }
.rx-pick .rx-well_read .rx-c { color: var(--blue); border-color: var(--blue); }
.rw-f > i, .rw-f > i.rx-well_read { background: var(--blue); } .rw-f > i.rx-bookworm { background: #3a8a4a; } .rw-f > i.rx-heart { background: #c0392b; }
.rx-ic i { background: var(--blue); } .rx-ic .rx-bookworm { background: #3a8a4a; } .rx-ic .rx-heart { background: #c0392b; }
/* ---------- photo album ---------- */
.alb-card { display: block; text-decoration: none; color: inherit; }
.alb-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .alb-h b { font-size: 17px; } .alb-h small { color: var(--blue); font-weight: 700; font-size: 13px; }
.alb-card.empty .alb-h { display: grid; } .alb-card.empty .alb-h small { color: var(--mute); font-weight: 500; }
.alb-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; border-radius: 12px; overflow: hidden; }
.alb-strip span { position: relative; aspect-ratio: 1; background: var(--soft, #f3ebdf); } .alb-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alb-strip span[data-more]::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .45); color: #fff; font-weight: 800; font-size: 18px; }
.alb { padding: 8px 12px 24px; } .alb-m { display: flex; align-items: baseline; gap: 8px; font: 700 18px Fraunces, Georgia, serif; margin: 16px 4px 8px; } .alb-m small { font: 600 12px var(--font); color: var(--mute); }
.alb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
.alb-grid button { border: 0; padding: 0; aspect-ratio: 1; background: var(--soft, #f3ebdf); cursor: pointer; } .alb-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv { position: fixed; inset: 0; z-index: 210; background: rgb(15 10 6 / .96); display: grid; place-items: center; }
.pv > img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.pv-x { position: absolute; top: calc(10px + var(--safe-t)); right: 10px; border: 0; background: none; color: #fff; font-size: 34px; padding: 6px 12px; cursor: pointer; }
.pv-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px calc(18px + var(--safe-b)); color: #fff; display: grid; gap: 2px; background: linear-gradient(transparent, rgb(0 0 0 / .6)); }
.pv-cap small { opacity: .75; } .pv-cap a { color: #e2c275; font-weight: 700; margin-top: 6px; text-decoration: none; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgb(255 255 255 / .14); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; cursor: pointer; } .pv-nav.l { left: 10px; } .pv-nav.r { right: 10px; }
/* ---------- install walkthrough ---------- */
#inst { position: fixed; inset: 0; z-index: 220; background: rgb(20 12 6 / .62); display: grid; place-items: center; padding: 20px; animation: inFade .2s ease-out; }
@keyframes inFade { from { opacity: 0; } }
.in-card { width: 100%; max-width: 380px; background: var(--card); border-radius: 22px; padding: 18px; box-shadow: 0 20px 50px rgb(0 0 0 / .3); display: grid; gap: 12px; }
.in-top { display: flex; align-items: center; } .in-top small { flex: 1; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.in-x { border: 0; background: none; font-size: 26px; color: var(--mute); padding: 0 4px; cursor: pointer; }
.in-why { margin: 0; font-size: 13.5px; color: var(--mute); }
.in-step { display: flex; gap: 14px; align-items: center; } .in-step b { font: 700 19px/1.25 Fraunces, Georgia, serif; } .in-step p { margin: 4px 0 0; font-size: 14px; color: var(--mute); line-height: 1.4; }
.in-ic { flex: none; min-width: 56px; height: 56px; padding: 0 8px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font: 800 22px var(--font); box-sizing: border-box; }
.in-dots { display: flex; justify-content: center; gap: 6px; } .in-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); } .in-dots i.on { width: 20px; background: var(--blue); }
.in-btns { display: flex; gap: 10px; } .in-btns .btn { flex: 1; }
.in-tip { margin: 0; text-align: center; font-size: 12.5px; color: var(--blue); font-weight: 700; }
.in-logo { width: 64px; height: 64px; margin: 0 auto; } .in-logo svg { width: 100%; height: 100%; } .in-h { text-align: center; font: 700 22px Fraunces, Georgia, serif; } #inst .in-card > p { margin: 0; text-align: center; color: var(--mute); }
#inst .linkbtn { justify-self: center; }
/* the bouncing arrow that points at the browser's own buttons */
.in-arrow { position: fixed; display: grid; justify-items: center; gap: 6px; pointer-events: none; z-index: 221; }
.in-arrow span { background: #fff; color: var(--blue); border: 3px solid var(--blue); border-radius: 14px; min-width: 44px; padding: 6px 10px; text-align: center; font: 800 18px var(--font); box-shadow: 0 6px 16px rgb(0 0 0 / .3); }
.in-arrow i { width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; }
.in-arrow.at-br, .in-arrow.at-bc { bottom: calc(14px + var(--safe-b)); } .in-arrow.at-br { right: 14px; } .in-arrow.at-bc { left: 50%; margin-left: -32px; }
.in-arrow.at-br i, .in-arrow.at-bc i { border-top: 22px solid #fff; order: 2; animation: inBobD 1s ease-in-out infinite; }
.in-arrow.at-tr { top: calc(10px + var(--safe-t)); right: 14px; } .in-arrow.at-tr i { border-bottom: 22px solid #fff; order: -1; animation: inBobU 1s ease-in-out infinite; }
@keyframes inBobD { 50% { transform: translateY(8px); } } @keyframes inBobU { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .in-arrow i { animation: none; } }
.pv > img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; } .pv { background: #0f0a06; }
/* install guide: real-looking icons */
.in-ic svg { width: 30px; height: 30px; } .in-ic.txt { font-size: 18px; color: #0a84ff; background: #e8f1ff; }
.in-arrow span svg { width: 24px; height: 24px; display: block; }
.in-pic { background: #f2f2f7; border-radius: 16px; padding: 10px; display: grid; gap: 8px; justify-items: center; }
.in-pic > small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8e8e93; justify-self: start; }
.ig-sbar { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 22px; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .12); color: #1c1c1e; box-sizing: border-box; font-size: 13px; }
.ig-sbar i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #0a84ff; font-size: 18px; }
.ig-sbar i svg { width: 20px; height: 20px; }
.ig-sbar .ig-url { flex: 1; text-align: center; background: #f2f2f7; border-radius: 14px; padding: 7px 8px; color: #3a3a3c; white-space: nowrap; overflow: hidden; }
.ig-sbar.old { border-radius: 12px; justify-content: space-around; } .ig-sbar.top .ig-url { text-align: left; }
.ig-sbar i.hl { background: #0a84ff; color: #fff; box-shadow: 0 0 0 4px rgb(10 132 255 / .25); animation: igPulse 1.4s ease-in-out infinite; }
@keyframes igPulse { 50% { box-shadow: 0 0 0 8px rgb(10 132 255 / .12); } }
.ig-menu { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgb(0 0 0 / .1); display: grid; }
.ig-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; font-size: 14.5px; color: #1c1c1e; border-top: 1px solid #e5e5ea; }
.ig-row:first-child { border-top: 0; } .ig-row i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; color: #1c1c1e; } .ig-row i svg { width: 22px; height: 22px; }
.ig-row.on { background: #e8f1ff; font-weight: 700; box-shadow: inset 3px 0 0 #0a84ff; }
.ig-menu.and .ig-row { justify-content: flex-start; } .ig-menu.and .ig-row i { color: #5f6368; }
.ig-bar { width: 100%; display: flex; align-items: center; padding: 10px 12px; background: #fff; border-radius: 12px; box-sizing: border-box; font-size: 14px; box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.ig-bar em { font-style: normal; color: #0a84ff; } .ig-bar b { flex: 1; text-align: center; font-weight: 700; } .ig-bar strong { color: #fff; background: #0a84ff; padding: 4px 12px; border-radius: 12px; box-shadow: 0 0 0 4px rgb(10 132 255 / .25); }
.ig-tog { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #fff; border-radius: 12px; box-sizing: border-box; font-size: 14px; box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.ig-tog i { width: 44px; height: 26px; border-radius: 13px; background: #34c759; position: relative; } .ig-tog i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.ig-dlg { width: 100%; background: #fff; border-radius: 18px; padding: 14px 16px; box-sizing: border-box; display: grid; gap: 4px; box-shadow: 0 1px 4px rgb(0 0 0 / .1); }
.ig-dlg b { font-size: 16px; } .ig-dlg small { color: #5f6368; } .ig-dlg > span { display: flex; justify-content: flex-end; gap: 18px; margin-top: 8px; font-weight: 700; color: #1a73e8; } .ig-dlg em { font-style: normal; } .ig-dlg strong { background: #1a73e8; color: #fff; padding: 4px 14px; border-radius: 14px; }
.in-btns .btn:only-child { flex: 1; }
.tog-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft, #f3ebdf); cursor: pointer; }
.tog-row > span { flex: 1; display: grid; gap: 2px; font-weight: 700; } .tog-row small { font-weight: 500; color: var(--mute); font-size: 12.5px; }
.tog-row input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.bdg-ask { position: relative; display: flex; align-items: center; gap: 12px; margin: 10px 12px; padding: 12px 34px 12px 12px; border-radius: 16px; background: var(--blue-soft); border: 0; }
.bdg-ask > div { flex: 1; display: grid; gap: 2px; } .bdg-ask b { font-size: 14.5px; } .bdg-ask small { color: #24435c; font-size: 12.5px; }
.bdg-ic { position: relative; width: 44px; height: 44px; flex: none; } .bdg-ic svg { width: 44px; height: 44px; border-radius: 11px; }
.bdg-ic em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: #ff3b30; color: #fff; font: 800 12px/20px var(--font); font-style: normal; text-align: center; border: 2px solid var(--blue-soft); }
.bdg-ask .btn { flex: none; }
.btn.blue { border-color: var(--blue) !important; }
/* ---------- recommendations ---------- */
.recs { overflow: hidden; }
.rec-blk { margin-top: 14px; } .rec-blk:first-of-type { margin-top: 6px; }
.rec-k { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.rec-h { display: block; font: 700 17px/1.25 Fraunces, Georgia, serif; margin-top: 2px; }
.rec-sub { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.rec-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 6px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rec-row::-webkit-scrollbar { display: none; }
.rec-it { flex: 0 0 112px; scroll-snap-align: start; display: grid; gap: 3px; align-content: start; }
.rec-it .face { width: 112px; border-radius: 5px; box-shadow: 0 4px 10px rgb(60 30 10 / .18); margin-bottom: 4px; }
.rec-it b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec-it small { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-it em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 2px 8px; justify-self: start; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.rec-it .btn { margin-top: 4px; font-size: 12px; padding: 6px 8px; height: auto; }
.bv-recs { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rec-load { display: flex; gap: 12px; padding: 10px 0; } .rec-load span { width: 112px; height: 166px; border-radius: 6px; background: linear-gradient(90deg, var(--line), #f6efe4, var(--line)); background-size: 200% 100%; animation: recShim 1.2s linear infinite; }
@keyframes recShim { to { background-position: -200% 0; } }
