/* BookList Lite (web).
   Layout follows docs/mock-booklist-web-mobile.html; every component's look
   matches the app (Emma, 23 Oct 2026: "it all needs to match the app").
   Where a value is lifted from the app, the app file is named beside it. */
:root{
  --plum:#501641; --ink:#2A0B24; --body:#3A2740; --soft:#6E5A78; --dim:#8C7A98; --line:#efe6f4;
  --mutedwhite:#8768a3;            /* TEXT_MUTED_ON_WHITE */
  --muted:#c4a8d4;                 /* MUTED (on dark) */
  --bg1:#1a0828; --bg2:#0d0a1a;
  --con:#8a7fd4; --pace:#2a9d8f; --spice:#e8739a; --gold:#c9a84c;
  --green:#3f9d6b; --orange:#e8823f; --lilac:#6f5fbf;   /* ReactionBarPill */
  --dot:#e7e1ef; --rec:#1f8a5a; --recbg:#e4f4ea; --god:#8a6a1a; --godbg:#f7edcf; --nr:#6b5a73; --nrbg:#eeeaf1;
  --pageink:#f3e9fb; --pagesoft:#c9b4d9; --pagedim:#9a84ad;
  --hl:linear-gradient(135deg,#501641,#9E4E7B);        /* HIGHLIGHT_GRADIENT */
  --radius:11px;                                        /* theme card radius */
  --shadow:0 10px 24px rgba(0,0,0,.28);                 /* theme card shadow */
  --navh:64px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg2);-webkit-text-size-adjust:100%}
body{font-family:'DM Sans',sans-serif;color:var(--pageink);min-height:100vh;
  background:radial-gradient(700px 420px at 85% -8%,rgba(138,127,212,.18),transparent 60%),radial-gradient(560px 400px at 8% 8%,rgba(232,115,154,.1),transparent 55%),linear-gradient(170deg,var(--bg1),var(--bg2) 60%,#080510);
  background-attachment:fixed}
h1,h2,h3,h4{font-family:'Montserrat',sans-serif}
button{font-family:inherit;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}
input,textarea{font-family:inherit}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
img{display:block}

/* Mobile first. Until the desktop widening pass, wider screens get the same column, centred. */
.app{max-width:480px;margin:0 auto;min-height:100vh;position:relative}

/* top bar */
.top{display:flex;align-items:center;gap:10px;padding:16px 16px 10px;position:sticky;top:0;z-index:8;
  background:linear-gradient(180deg,rgba(26,8,40,.96),rgba(26,8,40,.6) 80%,transparent)}
.brand{display:flex;align-items:center;gap:10px}
.word{font-family:'Montserrat';font-weight:800;font-size:19px;color:#fff}
.brand{gap:7px}
.mark{display:block;width:22px;height:28px;object-fit:contain;flex:none} /* the star keeps its 794x1123 shape */
.cta{margin-left:auto;border:none;border-radius:999px;padding:8px 13px;font-weight:700;font-size:12.5px;background:var(--hl);color:#fff}
.av{width:30px;height:30px;border-radius:50%;background:conic-gradient(from 210deg,#7a5370,#e8739a,#8a7fd4,#7a5370);margin-left:auto;flex:none;overflow:hidden}
.av img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.body{padding:0 14px calc(var(--navh) + 30px + env(safe-area-inset-bottom));outline:none}

/* bottom nav */
.bnav{position:fixed;left:50%;transform:translateX(-50%);width:100%;max-width:480px;bottom:0;display:flex;z-index:9;
  background:rgba(13,10,26,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.08);
  padding:8px 0 calc(18px + env(safe-area-inset-bottom) * .5);min-height:var(--navh)}
.bnav a{flex:1;color:var(--pagedim);font-size:11px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:4px}
.bnav a svg{width:22px;height:22px}
.bnav a.on{color:#fff}

/* ---- search shell (app: components/discover/DiscoverSearchShell.js) ---- */
.shell{position:relative;height:44px;margin:4px 0 12px}
.shell .chipsLayer{position:absolute;top:0;bottom:0;left:44px;right:0;display:flex;align-items:center;transition:opacity .2s,transform .2s}
.shell.open .chipsLayer{opacity:0;transform:translateX(24px);pointer-events:none}
.qf{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 28px 0 16px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 8px,#000 calc(100% - 28px),transparent)}
.qf::-webkit-scrollbar{display:none}
.qchip{flex:none;height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 13px;border-radius:999px;border:none;background:#fff;color:var(--plum);font-size:12.5px;font-weight:700}
.qchip.on{background:var(--plum);color:#fff}
.qchip .chev{width:12px;height:12px;color:var(--mutedwhite)}
.qchip.on .chev{color:#fff}
.qchip .mg{width:16px;height:16px}
.advbtn{flex:none;width:44px;height:44px;border-radius:50%;border:none;background:#fff;display:flex;align-items:center;justify-content:center}
.advbtn svg{width:22px;height:22px}
.pillS{position:absolute;top:0;left:0;height:44px;width:44px;border-radius:22px;overflow:hidden;
  background:rgba(80,22,65,.55);border:1px solid rgba(212,160,192,.28);transition:width .36s cubic-bezier(.65,0,.35,1)}
.shell.open .pillS{width:calc(100% - 52px)}
.pillS .grad{position:absolute;inset:0;background:var(--hl);transition:opacity .2s .16s}
.shell.open .pillS .grad{opacity:0}
.pillS .row{position:relative;height:100%;display:flex;align-items:center}
.pillS .glass{flex:none;width:18px;height:18px;margin-left:12px;color:#fff}
.pillS .inputArea{flex:1;min-width:0;display:flex;align-items:center;padding:0 14px 0 8px;opacity:0;transition:opacity .15s}
.shell.open .pillS .inputArea{opacity:1;transition-delay:.24s}
.pillS input{flex:1;min-width:0;border:none;background:none;outline:none;color:#fff;font-size:16px;padding:0}
.pillS input::placeholder{color:#a98bb8}
.pillS input::-webkit-search-cancel-button{display:none}
.pillS .clr{border:none;background:none;margin-left:8px;color:var(--muted);display:flex}
.pillS .clr svg{width:16px;height:16px}
.pillS .div{width:1px;height:18px;background:rgba(212,160,192,.25);margin:0 10px;flex:none}
.pillS .inAdv{border:none;background:none;display:flex}
.pillS .inAdv svg{width:20px;height:20px}
.pillS .opener{position:absolute;inset:0;border:none;background:none;border-radius:22px}
.shell.open .pillS .opener{display:none}
.closeS{position:absolute;top:0;right:0;width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .15s}
.shell.open .closeS{opacity:1;pointer-events:auto;transition-delay:.25s}
.closeS svg{width:20px;height:20px}

/* quick-filter drop-down (app: QuickFilterPanel.js) */
.qpanel{position:absolute;left:0;right:0;top:52px;z-index:7;background:#fff;border-radius:var(--radius);padding:6px;box-shadow:var(--shadow);max-height:340px;overflow:auto;animation:drop .18s ease-out}
@keyframes drop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.qrow{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 12px;border:none;background:none;border-radius:12px;text-align:left;color:var(--mutedwhite);font-size:14px;font-weight:600}
.qrow+.qrow{border-top:1px solid rgba(80,22,65,.08)}
.qrow.on{background:#F4EFF8;color:var(--plum)}
.qrow .lbl{flex:1}
.qrow .ck{width:16px;height:16px;color:var(--plum)}
.backdrop{position:fixed;inset:0;z-index:6;background:transparent}

/* cards */
.card{background:#fff;border-radius:var(--radius);padding:14px;color:var(--body);box-shadow:var(--shadow)}
.card h3{font-size:14px;font-weight:800;color:var(--ink)}
.sub{font-size:11.5px;color:var(--dim)}
.rowh{display:flex;align-items:baseline;justify-content:space-between;margin:6px 2px 10px}
.rowh h2{font-size:14px;color:#fff;font-weight:800}
.rowh span{font-size:11px;color:var(--pagedim)}

/* covers (app: BookCoverObject) */
.cov{position:relative;flex:none;border-radius:var(--radius);overflow:hidden;background:#1a0828;display:flex;align-items:flex-end;justify-content:center;padding:6px;
  font-family:'Montserrat';font-weight:800;font-size:10.5px;color:#fff;text-align:center;line-height:1.1;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.cov img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cov.hero{width:180px;height:270px;border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.5);font-size:14px}
.cov.hero::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.22),transparent 12%),linear-gradient(135deg,rgba(255,255,255,.18),transparent 70%)}

/* Discovery preview card: fixed size, cover top to bottom */
.bcard{display:flex;gap:14px;height:226px;padding:14px;margin-bottom:14px;cursor:pointer;position:relative}
.bcard .cov{width:132px;height:198px}
.bcard .col{flex:1;min-width:0;height:198px;display:flex;flex-direction:column;justify-content:space-between;padding:2px 0}
.bcard .mstack{gap:7px}
.tbox{height:38px;display:flex;flex-direction:column;justify-content:flex-end}
.bcard .t{font-weight:700;font-size:15px;line-height:19px;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bcard .au{font-size:12px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.bcard .foot{display:flex;align-items:center;gap:10px;min-width:0}
.bcard .when{font-size:10.5px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* verdict counts pill (app: ReactionBarPill) */
.rbp{display:inline-flex;align-items:center;align-self:flex-start;border-radius:999px;border:1px solid rgba(80,22,65,.08);padding:5px 10px;background:#fff}
.rbp .st{display:inline-flex;align-items:center;gap:4px;padding:0 6px;font-weight:700;font-size:11px}
.rbp .st:first-child{padding-left:0}.rbp .st:last-child{padding-right:0}
.rbp .st svg{width:12px;height:12px}
.rbp .st.z{opacity:.45}
.rbp .dv{width:1px;height:12px;background:rgba(80,22,65,.1)}
.rbp.lg{padding:12px 22px;border:none;box-shadow:var(--shadow);align-self:center}
.rbp.lg .st{gap:8px;padding:0 14px;font-size:20px}
.rbp.lg .st svg{width:22px;height:22px}
.rbp.lg .dv{height:24px}

/* add to list (app: AddToListButton.js) */
.atl{position:relative;flex:none;display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 12px;border-radius:999px;border:none;background:var(--gold);color:var(--plum);font-weight:700;font-size:11px;white-space:nowrap}
.atl svg{width:12px;height:12px}
.atl.on{background:rgba(201,168,76,.22)}
.atl .toast{position:absolute;bottom:32px;right:-4px;white-space:nowrap;background:#f1e9f7;color:var(--plum);border-radius:9px;padding:5px 10px;font-size:11px;font-weight:700;pointer-events:none;animation:toast 1.3s ease forwards}
@keyframes toast{0%{opacity:0}14%{opacity:1}75%{opacity:1}100%{opacity:0}}
.atl .spk{position:absolute;pointer-events:none;animation:spk .9s ease-out forwards}
@keyframes spk{0%{opacity:0;transform:scale(.5)}40%{opacity:1}100%{opacity:0;transform:scale(1.5)}}

/* chips (app: TagChip.js, gradient fill, no border) */
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;padding:4px 9px;border-radius:999px;border:none;font-family:inherit;color:var(--plum);background:#f3eef8}
.chip.genre{background:#f3eef8;color:#5a3d6b}
.chip.subg{background:linear-gradient(180deg,#fff,#f1ecf7);color:var(--plum)}
.chip.trope{background:linear-gradient(180deg,#eef1fb,#dfe6f6);color:#3b3f6e}
.chip.react{background:linear-gradient(180deg,#f1e9f7,#e3d6ee);color:var(--plum)}
.chip.rep{background:linear-gradient(180deg,#eaf2ec,#d7e7dc);color:#2f5c48}
.chip svg{width:10px;height:10px}
.chip.pick{cursor:pointer}
.chip.pick.on{background:var(--plum);color:#fff}
.chip.pick.on.trope{background:#3b3f6e}
.chip.pick.on.rep{background:#2f5c48}
.chip.pick.x.on{background:#a13a5c;color:#fff}

/* metrics (app: MetricRow.js; preview = glyph 18 / dot 10 / word 13, full = 24 / 13 / 15.5) */
.mrow{display:flex;align-items:center;gap:9px}
.mrow .mg{width:18px;height:18px;flex:none}
.dots{display:flex;gap:5px}
.dot{width:10px;height:10px;border-radius:50%;background:var(--dot);flex:none}
.mw{font-weight:700;font-size:13px;color:var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mw.nr{color:var(--dim)}
.mstack{display:flex;flex-direction:column;gap:4px}
.mrow.full{gap:12px}.mrow.full .mg{width:24px;height:24px}.mrow.full .dot{width:13px;height:13px}.mrow.full .dots{gap:6px}.mrow.full .mw{font-size:15.5px}
.mstack.full{gap:12px}

/* level pills */
.pills{display:flex;flex-wrap:wrap;gap:7px}
.pill{font-weight:600;font-size:12.5px;padding:9px 13px;border-radius:999px;background:#f3eef8;color:#6e5a80;border:1px solid #ece3f3}
.pill.on{color:#fff;border-color:transparent;background:var(--plum)}
.pills.con .pill.on{background:linear-gradient(135deg,#8a7fd4,#6a5cc0)}
.pills.pace .pill.on{background:linear-gradient(135deg,#2a9d8f,#1f7d72)}
.pills.spice .pill.on{background:linear-gradient(135deg,#e8739a,#c85680)}

/* verdict */
.verdict{display:inline-flex;align-items:center;gap:5px;font-family:'Montserrat';font-weight:700;font-size:11.5px;padding:4px 9px;border-radius:999px}
.v-rec{background:var(--recbg);color:var(--rec)}.v-god{background:var(--godbg);color:var(--god)}.v-nr{background:var(--nrbg);color:var(--nr)}
.split{display:flex;gap:6px;margin-top:10px}
.split .s{flex:1;text-align:center;padding:10px 4px;border-radius:12px;font-size:11px;font-weight:600}
.split b{display:block;font-family:'Montserrat';font-size:20px;margin-bottom:1px}
.bar{height:8px;border-radius:999px;overflow:hidden;display:flex;margin-top:10px;background:var(--dot)}
.bar i{display:block;height:100%}

.trow{display:flex;align-items:center;justify-content:space-between}
.more{border:none;background:#f3eef8;color:#6e5a80;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:transform .2s;flex:none}
.more svg{width:13px;height:13px}
.more.open{transform:rotate(180deg)}
.trunc{max-height:33px;overflow:hidden;transition:max-height .25s}
.trunc.open{max-height:1200px}

/* "?" guide */
.qbtn{width:22px;height:22px;border-radius:50%;background:#efe6f4;color:#8a6aa0;border:none;font-family:'Montserrat';font-weight:800;font-size:12px;flex:none}
.qbtn.open{background:var(--con);color:#fff}
.acc{max-height:0;overflow:hidden;transition:max-height .3s}.acc.open{max-height:500px}
.acccard{background:#faf7fd;border:1px solid var(--line);border-radius:14px;padding:10px 13px}
.accrow{display:flex;gap:9px;padding:4px 0;border-bottom:1px solid #f0ecf5;font-size:12px}.accrow:last-child{border-bottom:none}
.accrow b{font-family:'Montserrat';min-width:84px;color:var(--ink)}.accrow span{color:var(--soft)}

/* book page header (app: BookScreen.js topNode, on the dark background) */
.bhead{display:flex;flex-direction:column;align-items:center;text-align:center}
.bhead .cov{margin:14px 0 32px}
.bhead .kick{font-style:italic;font-weight:500;color:var(--muted);font-size:13px;margin-bottom:4px}
.bhead h1{font-family:'DM Sans';font-weight:700;color:#fff;font-size:22px;line-height:1.25;margin-bottom:6px;overflow-wrap:anywhere;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bhead .au{color:var(--muted);font-size:14px;margin-bottom:8px}
.gpills{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-bottom:14px}
.gpill{border-radius:999px;padding:5px 13px;background:linear-gradient(135deg,#fff,#f3ecf8);box-shadow:var(--shadow);font-family:'Montserrat';font-weight:800;font-size:11px;letter-spacing:.3px;color:var(--plum)}
.subhead{font-size:11.5px;color:var(--pagedim);margin:0 0 6px}
.subrow{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:14px}
.vblock{display:flex;flex-direction:column;align-items:center;gap:8px;margin:4px 0 20px}
.vctx{color:var(--muted);font-size:12px}
.actions{display:flex;gap:12px;align-self:stretch;margin-bottom:20px}
.actions>*{flex:1;display:flex}
.actions>*>.abtn{flex:1}
.abtn{min-height:44px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:700;font-size:14px;border:none}
.abtn.hl{background:var(--hl);color:#fff}
.abtn.ol{background:transparent;border:1px solid rgba(255,255,255,.3);color:#fff}
.abtn.ol.on{background:#fff;color:var(--plum);border-color:#fff}
.abtn svg{width:16px;height:16px}
.syn{align-self:stretch;text-align:left;color:var(--body);font-size:13.5px;line-height:1.55;margin:-6px 0 14px;border:none;background:#fff;border-radius:var(--radius);padding:14px;box-shadow:var(--shadow);cursor:pointer;font-family:inherit}
.syn .lab{font-family:'Montserrat';font-weight:800;font-size:14px;color:var(--ink);margin-bottom:6px}
.syn .tx{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.syn.open .tx{display:block}
.syn .mo{display:inline-flex;align-items:center;gap:3px;color:var(--plum);font-weight:700;font-size:12px;margin-top:6px}
.syn .mo svg{width:12px;height:12px;transition:transform .2s}.syn.open .mo svg{transform:rotate(180deg)}

.btns{display:flex;gap:8px;margin-top:12px}
.btn{border:none;border-radius:999px;padding:10px 14px;font-weight:700;font-size:13px;flex:1;text-align:center}
.btn.p{background:var(--hl);color:#fff}
.btn.w{background:#fff;color:var(--plum);border:1px solid var(--line)}
.btn.ghost{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.16)}
.btn.sm{padding:7px 11px;font-size:12px;flex:none}
.btn:disabled{opacity:.6}
.rfilt{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:12px 0 8px}
.rfilt::-webkit-scrollbar{display:none}
.rfilt button{flex:none;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;font-size:11.5px;font-weight:600;padding:6px 11px;border-radius:999px}
.rfilt button.on{background:#fff;color:var(--plum)}
.rc{margin-bottom:10px}
.rc .hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rc .hd .av{width:26px;height:26px;margin:0}
.rc .nm{font-family:'Montserrat';font-weight:800;font-size:13px;color:var(--ink)}
.arche{display:inline-flex;align-items:center;gap:4px;font-family:'Montserrat';font-weight:700;font-size:9.5px;letter-spacing:.5px;text-transform:uppercase;padding:3px 7px;border-radius:6px;color:#fff}
.arche.ol{background:#fff;border:1px solid #d9d3f0}
.rc .on{font-size:11.5px;color:var(--dim);margin:6px 0 0}
.rc .on b{color:var(--ink)}
.rc .vb{font-size:13px;color:#4a3a52;line-height:1.5;margin-top:8px;white-space:pre-line;overflow-wrap:anywhere}
.rc .fm{font-size:11px;color:var(--dim);margin-top:6px}
.spoil{position:relative;margin-top:6px;border-radius:10px;overflow:hidden;cursor:pointer;display:block;width:100%;border:none;background:none;text-align:left}
.spoil .t{filter:blur(6px);color:#4a3a52;font-size:13px;line-height:1.5;user-select:none;white-space:pre-line}
.spoil .o{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11.5px;font-weight:700;color:var(--plum);background:rgba(255,255,255,.55)}
.spoil .o svg{width:13px;height:13px}
.spoil.open{cursor:default}.spoil.open .t{filter:none;user-select:auto}.spoil.open .o{display:none}
.status{display:inline-flex;font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:999px;background:#fff3df;color:#8a5a1a}
.status.blocked{background:#fde8ee;color:#a13a5c}

/* advanced search screen */
.adv h2{font-size:19px;color:#fff;margin:4px 2px 2px}
.adv .lead{font-size:12.5px;color:var(--pagesoft);margin:0 2px 12px}
.fsec{margin-bottom:12px}
.fsec .h{font-family:'Montserrat';font-weight:800;font-size:13px;color:var(--ink);margin-bottom:4px}
.fsec .hint{font-size:11.5px;color:var(--dim);margin-bottom:8px}
.fsec .grp{font-size:10.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--dim);margin:12px 0 2px}
.mlabel{display:flex;align-items:center;gap:8px;margin:12px 0 8px;font-family:'Montserrat';font-weight:700;font-size:10px;letter-spacing:1.4px;text-transform:uppercase}
.mlabel:first-of-type{margin-top:4px}
.mlabel .mg{width:20px;height:20px}
.tagsearch{width:100%;border:1px solid #e3d8ec;border-radius:12px;padding:10px 13px;font-size:16px;color:var(--ink);background:#fff;outline:none}
.tagsearch:focus{border-color:var(--plum)}
.catrow{display:flex;gap:6px;overflow-x:auto;padding:8px 0 4px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
.catrow::-webkit-scrollbar{display:none}
.cat{flex:none;font-size:11.5px;font-weight:700;padding:6px 11px;border-radius:999px;background:#f3eef8;color:#6e5a80;border:1px solid #ece3f3}
.cat.on{background:var(--plum);color:#fff;border-color:transparent}
.tagpool{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;max-height:200px;overflow:auto}
.picked{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.nest{display:flex;justify-content:space-between;align-items:center;width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-top:8px;font-size:13px;font-weight:600;color:var(--ink);background:#fff;text-align:left}
.nest svg{width:14px;height:14px;transition:transform .2s;color:var(--mutedwhite)}
.nest.open{border-color:var(--plum)}.nest.open svg{transform:rotate(180deg)}
.nest .n{margin-left:auto;margin-right:8px;font-size:11px;color:var(--plum);font-weight:700}
.nestin{padding:6px 2px 2px}
.advbar{position:sticky;bottom:calc(var(--navh) + 8px + env(safe-area-inset-bottom) * .5);display:flex;gap:8px;padding:10px 0 0;z-index:4}
.advbar .btn{box-shadow:0 8px 20px rgba(0,0,0,.35)}

/* forms */
.form input{width:100%;border:1px solid #e3d8ec;border-radius:12px;padding:11px 13px;font-size:16px;margin-top:8px;color:var(--ink);outline:none}
.form input:focus{border-color:var(--plum)}
.form .err{color:#a13a5c;font-size:12.5px;margin-top:10px}
.form .ok{color:var(--rec);font-size:12.5px;margin-top:10px}
.link{font-size:12.5px;color:var(--plum);font-weight:600;text-decoration:underline;cursor:pointer;background:none;border:none}

/* profile */
.phead{display:flex;gap:14px;align-items:center}
.phead .av{width:62px;height:62px;margin:0}
.phead h1{font-size:19px;color:var(--ink)}
.counts{display:flex;gap:12px;margin-top:5px;font-size:12px;color:var(--soft)}
.counts b{color:var(--ink);font-family:'Montserrat'}
.ptabs{display:flex;gap:6px;margin:14px 0 10px}
.ptab{border:none;background:rgba(255,255,255,.08);color:var(--pagesoft);font-weight:700;font-size:12.5px;padding:7px 13px;border-radius:999px}
.ptab.on{background:#fff;color:var(--plum)}
.list{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.list:last-child{border-bottom:none}
.stack{display:flex}.stack .cov{width:30px;height:44px;font-size:0;border-radius:5px;margin-right:-9px;box-shadow:0 2px 6px rgba(0,0,0,.2);padding:0}
.list .n{font-family:'Montserrat';font-weight:800;font-size:13px;color:var(--ink);margin-left:12px}.list .c{font-size:11.5px;color:var(--dim);margin-left:12px}

/* states */
.empty{padding:18px 14px;text-align:center;color:var(--soft);font-size:13px}
.empty b{display:block;font-family:'Montserrat';color:var(--ink);font-size:14px;margin-bottom:4px}
.pagedim{color:var(--pagedim);font-size:12px;text-align:center;padding:14px 0}
.skel{background:rgba(255,255,255,.07);border-radius:var(--radius);height:226px;margin-bottom:12px;animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.5}}
.loadmore{display:block;margin:6px auto 0;width:100%}
.backlink{display:inline-flex;align-items:center;gap:4px;color:var(--pagesoft);font-size:12.5px;font-weight:600;margin:0 2px 4px;background:none;border:none}
.backlink svg{width:14px;height:14px}

/* sheet */
.sheet{position:fixed;inset:0;background:rgba(6,4,12,.6);display:flex;align-items:flex-end;justify-content:center;z-index:30}
.sheet .in{background:#fff;border-radius:22px 22px 0 0;padding:20px 18px calc(26px + env(safe-area-inset-bottom));width:100%;max-width:480px;color:var(--ink);animation:up .22s ease-out}
@keyframes up{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.sheet h3{font-size:16px;margin-bottom:4px}
.sheet .btn{width:100%;margin-top:8px;display:block}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---- verdict indicator (app: VerdictSentence VerdictIndicator) ---- */
.vind{display:inline-flex;align-items:center;gap:3px;font-weight:800;font-size:13px;white-space:nowrap;flex:none}
.vind svg{width:13px;height:13px}
.vind.rec{color:var(--green)}.vind.god{color:var(--orange)}.vind.nr{color:var(--mutedwhite)}
.vind.lg{font-size:15px}.vind.lg svg{width:15px;height:15px}

/* plain archetype wording, no pill */
.archtxt{font-size:12px;color:var(--soft);line-height:1.4}
.archtxt b{font-weight:700;color:var(--ink)}

/* ---- review card (app: components/discover/ReviewCard.js) ---- */
.rcard{padding:16px;margin-bottom:14px}
.rcard .hl{display:flex;align-items:center;gap:8px;margin-bottom:12px;min-width:0}
.rcard .hl .av{width:34px;height:34px;margin:0}
.rcard .hl .nm{font-weight:700;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1}
.rcard .meta{font-size:12px;color:var(--dim);margin:-4px 0 8px}
.rcard .mstack{gap:6px;margin-bottom:8px}
.rcard .tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;overflow:hidden}
.morepill{display:inline-flex;align-items:center;border-radius:999px;background:rgba(196,168,212,.22);padding:4px 10px;font-size:11px;font-weight:700;color:var(--plum);border:none;font-family:inherit;cursor:pointer}
.vrow{display:flex;align-items:flex-start;gap:8px;width:100%;border:none;background:none;text-align:left;cursor:pointer;padding:0}
.vrow .tx{flex:1;min-width:0;color:var(--soft);font-size:12px;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.vrow svg{width:16px;height:16px;color:var(--mutedwhite);transform:rotate(-90deg);margin-top:2px;flex:none}
.rcard .ownst{margin-left:auto}

/* identity block (app: ReviewIdentityBlock), profile review cards + review page */
.ident{display:flex;gap:12px;margin-bottom:12px}
.ident .cov{width:104px;height:156px;border-radius:9px;padding:0;font-size:0}
.ident .col{flex:1;min-width:0;height:156px;display:flex;flex-direction:column;justify-content:space-between}
.ident .t{font-family:'Montserrat';font-weight:800;font-size:14px;line-height:19px;color:var(--plum);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ident .a{font-size:11.5px;color:var(--mutedwhite);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* review page */
.rsec{margin-top:14px}
.rsec .lab{font-family:'Montserrat';font-weight:700;font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:var(--dim);margin-bottom:6px}
.rpage .vb{font-size:14px;color:var(--body);line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}

/* ---- review flow (Focus Mode on the web) ---- */
body.flow-on .top, body.flow-on .bnav{display:none}
body.flow-on .body{padding:0}
.flow{min-height:100vh;display:flex;flex-direction:column}
.ftop{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:16px 16px 10px;background:linear-gradient(180deg,rgba(26,8,40,.98),rgba(26,8,40,.85))}
.ftop .x{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.1);border:none;color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.ftop .x svg{width:16px;height:16px}
.prog{flex:1;height:5px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}
.prog i{display:block;height:100%;background:linear-gradient(90deg,#8a7fd4,#e0bd63);transition:width .3s}
.post{border:none;border-radius:999px;padding:8px 14px;font-weight:800;font-size:13px;background:rgba(255,255,255,.12);color:rgba(255,255,255,.45);flex:none}
.post.ok{background:linear-gradient(135deg,#f0dca0,#c9a84c);color:#2a0b24}
.anchor{display:flex;align-items:center;gap:10px;padding:0 16px 12px}
.anchor .cov{width:34px;height:50px;font-size:0;border-radius:6px;box-shadow:none;padding:0}
.anchor .t{font-family:'Montserrat';font-weight:800;font-size:13px;color:#fff}
.anchor .a{font-size:11px;color:var(--pagedim)}
.fbody{flex:1;padding:0 14px 120px}
.fstep h2{font-size:19px;color:#fff;margin:6px 0 4px}
.fstep .lead{font-size:12.5px;color:var(--pagesoft);margin-bottom:14px}
.fnav{position:fixed;left:50%;transform:translateX(-50%);width:100%;max-width:480px;bottom:0;display:flex;gap:8px;padding:12px 14px calc(20px + env(safe-area-inset-bottom));background:linear-gradient(180deg,transparent,rgba(13,10,26,.95) 30%);z-index:6}
.fnav .btn{flex:1}
.vbig{display:flex;flex-direction:column;gap:10px}
.vbig button{display:flex;align-items:center;justify-content:center;gap:8px;font-family:'Montserrat';font-weight:800;font-size:16px;padding:18px;border-radius:999px;background:#fff;color:var(--ink);border:none}
.vbig button svg{width:18px;height:18px}
.vbig button.on{background:var(--hl);color:#fff}
.mhead{display:flex;align-items:center;gap:10px}
.gh{width:30px;height:30px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.gh .mg{width:19px;height:19px}
.capname{font-family:'Montserrat';font-weight:700;font-size:10px;letter-spacing:1.6px;text-transform:uppercase}
.mhead .qbtn{margin-left:auto}
.help{font-size:12px;color:var(--dim);font-style:italic;margin:4px 0 9px}
.big .pill{font-size:14px;padding:11px 15px}
.big .dots{margin:11px 0 2px;gap:8px}.big .dot{width:16px;height:16px}
.pre{font-size:11px;color:var(--con);font-style:italic;margin:2px 0 8px}
.counter{font-size:11px;color:var(--dim);text-align:right;margin-top:4px}
.counter.near{color:var(--gold);font-weight:700}
textarea.vibes{width:100%;min-height:150px;border:1px solid #e3d8ec;border-radius:14px;padding:12px;font-size:16px;line-height:1.5;color:var(--ink);resize:vertical;outline:none;font-family:inherit}
textarea.vibes:focus{border-color:var(--plum)}
textarea.vibes.spoiler{min-height:100px;background:#f7f3fa;color:#6e5a80}
.nudges{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-top:8px}
.nudges::-webkit-scrollbar{display:none}
.nudges button{flex:none;font-size:11.5px;font-weight:600;padding:6px 10px;border-radius:999px;background:#f3eef8;color:#6e5a80;border:none;display:inline-flex;align-items:center;gap:4px}
.nudges button svg{width:11px;height:11px}
.spmark{margin-top:12px;border-top:1px dashed #e3d8ec;padding-top:8px}
.spmark .sub{color:var(--con);font-weight:700}
.sev{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 4px}
.sev button{font-size:10.5px;padding:3px 8px;border-radius:999px;background:#f3eef8;color:#6e5a80;border:none}
.sev button.on{background:var(--plum);color:#fff}
.sevrow{font-size:12px;color:var(--soft);margin-top:8px}
.counterpill{display:inline-flex;align-items:center;gap:8px;margin-top:8px}
.counterpill button{width:30px;height:30px;border-radius:50%;border:1px solid #ece3f3;background:#f3eef8;color:var(--plum);font-weight:800}
.counterpill b{min-width:20px;text-align:center;color:var(--ink)}
.toggle{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12.5px;color:var(--ink);background:none;border:none}
.toggle .box{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--mutedwhite);display:flex;align-items:center;justify-content:center;flex:none}
.toggle.on .box{background:var(--plum);border-color:var(--plum);color:#fff}
.toggle .box svg{width:12px;height:12px}
.done{padding:60px 20px;text-align:center}
.done h2{color:#fff;font-size:22px;margin-bottom:8px}
.done p{color:var(--pagesoft);font-size:13.5px;margin-bottom:22px}

/* archetype picker */
.archegrid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}
.archeopt{border:1px solid var(--line);border-radius:12px;padding:9px;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--ink);background:#fff;text-align:left}
.archeopt .sw{width:12px;height:12px;border-radius:50%;flex:none}
.archeopt.on{border-color:var(--plum);background:#faf5fb}
.archeopt:disabled{opacity:.35}
.checkrow{display:flex;align-items:flex-start;gap:8px;margin-top:10px;font-size:12.5px;color:var(--soft);text-align:left;background:none;border:none}
.checkrow .box{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--mutedwhite);display:flex;align-items:center;justify-content:center;flex:none;margin-top:1px}
.checkrow.on .box{background:var(--plum);border-color:var(--plum);color:#fff}
.checkrow .box svg{width:12px;height:12px}
.checkrow a{color:var(--plum);text-decoration:underline}
.hint2{font-size:11.5px;margin-top:4px}
.hint2.ok{color:var(--rec)}.hint2.bad{color:#a13a5c}

/* drafts, imports, admin */
.draft{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.draft:last-child{border-bottom:none}
.draft .cov{width:40px;height:60px;font-size:0;border-radius:6px;box-shadow:none;padding:0}
.draft .t{font-family:'Montserrat';font-weight:800;font-size:13px;color:var(--ink)}
.draft .m{font-size:11px;color:var(--dim)}
.memo{font-size:10.5px;color:var(--dim);font-style:italic}
.srcs{display:grid;gap:8px}
.src{border:1px solid var(--line);border-radius:14px;padding:11px;text-align:left;background:#fff}
.src.on{border-color:var(--plum);background:#faf5fb}
.src b{font-family:'Montserrat';display:block;color:var(--ink);font-size:13px}.src span{font-size:11px;color:var(--dim)}
.drop{display:block;margin-top:12px;border:2px dashed #d9cce4;border-radius:14px;padding:20px;text-align:center;color:var(--soft);font-size:13px;cursor:pointer}
.drop.over{border-color:var(--plum);background:#faf5fb}
.drop{position:relative}
.drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0;color:transparent;z-index:1}
body.loading .app{visibility:hidden}
.aq{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.aq:last-child{border-bottom:none}
.aq.gone{opacity:.4;pointer-events:none}
.aq .t{font-family:'Montserrat';font-weight:800;font-size:13px;color:var(--ink)}
.aq .m{font-size:11.5px;color:var(--soft)}
.aq .flag{font-size:11px;font-weight:700;color:#a13a5c}
.aq .vx{font-size:12px;color:var(--body);line-height:1.45;white-space:pre-line;max-height:5.8em;overflow:hidden}
.acts{display:flex;gap:6px}
.ab{border:none;border-radius:999px;padding:8px 12px;font-weight:700;font-size:12px;flex:1}
.ab.ok{background:var(--recbg);color:var(--rec)}.ab.ret{background:#fff3df;color:#8a5a1a}.ab.blk{background:#fde8ee;color:#a13a5c}
textarea.note{width:100%;min-height:90px;border:1px solid #e3d8ec;border-radius:12px;padding:10px;font-size:16px;font-family:inherit;margin-top:8px;outline:none}
.lrow{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}
.lrow:last-child{border-bottom:none}
.lrow .cov{width:40px;height:60px;font-size:0;border-radius:6px;box-shadow:none;padding:0}
.lrow .t{font-weight:700;font-size:13.5px;color:var(--ink)}
.lrow .a{font-size:11.5px;color:var(--soft)}
.lrow .rm{margin-left:auto;border:none;background:#f3eef8;color:var(--mutedwhite);width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.lrow .rm svg{width:13px;height:13px}
.linkrow{display:block;text-align:center;margin-top:-8px;margin-bottom:18px;font-size:12px;color:var(--pagesoft);text-decoration:underline;background:none;border:none;width:100%}

/* "?" guides open as a popup (app: PopupModal + BreakdownGuideButton) */
.popup{position:fixed;inset:0;z-index:40;background:rgba(13,10,26,.7);display:flex;align-items:center;justify-content:center;padding:0 24px;animation:fade .18s ease-out}
@keyframes fade{from{opacity:0}to{opacity:1}}
.popup .pin{width:100%;max-width:380px;max-height:78vh;overflow:auto;background:#fff;border-radius:20px;padding:18px 18px 20px;color:var(--body);box-shadow:var(--shadow);animation:pop .2s ease-out}
@keyframes pop{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
.popup .phd{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.popup .phd h3{font-size:16px;color:var(--ink)}
.popup .phd button{width:30px;height:30px;border-radius:50%;border:none;background:rgba(80,22,65,.07);color:var(--plum);display:flex;align-items:center;justify-content:center}
.popup .phd button svg{width:14px;height:14px}
.gtabs{display:flex;gap:8px;margin-bottom:14px}
.gtabs button{flex:1;height:42px;border-radius:12px;border:none;background:rgba(80,22,65,.05);display:flex;align-items:center;justify-content:center}
.gtabs button.on{background:rgba(80,22,65,.13)}
.gtabs .mg{width:22px;height:22px}
.gcap{font-weight:700;font-size:10.5px;letter-spacing:1.4px;color:var(--dim);text-transform:uppercase}
.ghelp{color:var(--soft);font-size:13px;margin:4px 0 6px}
.glev{margin-top:8px}.glev b{display:block;font-size:13.5px}.glev span{font-size:13px;line-height:18px;color:var(--body)}
.qbtn{background:rgba(80,22,65,.07);color:var(--plum);font-family:'DM Sans';font-weight:700;font-size:12.5px}

/* two-row collapsible tag rows (review page) */
.trunc.t2{max-height:51px}
.trunc.t2.open{max-height:1200px}

/* review page (app: ReviewSheet, sections split by dividers) */
.rpage{padding:16px}
.rpage .who{display:flex;align-items:center;gap:8px;min-width:0}
.rpage .who .av{width:34px;height:34px;margin:0}
.rpage .who .nm{font-weight:700;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.rpage .who .dt{margin-left:auto;font-size:11.5px;color:var(--dim);white-space:nowrap}
.rpage .archtxt{margin-top:8px}
.rpage .book{display:flex;align-items:center;gap:12px}
.rpage .book .cov{width:56px;height:84px;border-radius:9px;font-size:0;padding:0}
.rpage .book .t{font-family:'Montserrat';font-weight:800;font-size:14px;line-height:19px;color:var(--plum)}
.rpage .book .a{font-size:12px;color:var(--mutedwhite);margin-top:2px}
.rdiv{height:1px;background:rgba(80,22,65,.08);margin:14px 0}
.rpage h3{font-size:14px;margin-bottom:8px}
.rpage .trow h3{margin-bottom:0}
.rpage .trow+.trunc{margin-top:8px}
.rpage .trunc .chips{margin-top:0}
.rpage .chips{margin-top:0}
.rpage .plain{font-size:13px;color:var(--body)}

/* "?" on every Breakdown rating */
.mstack .mrow .mw{min-width:0;flex-shrink:1}
.qbtn.mq{width:18px;height:18px;font-size:11px;margin-left:auto;flex:none}
.mrow.full .qbtn.mq{width:22px;height:22px;font-size:12.5px}
a.chip{text-decoration:none;cursor:pointer}
a.gpill{text-decoration:none}
.taghead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 2px 12px}
.taghead h2{font-size:17px;color:#fff}
.taghead .k{font-size:11.5px;color:var(--pagedim);width:100%}

/* tappable reader (photo + @handle) */
.hl-who{display:inline-flex;align-items:center;gap:8px;min-width:0;color:inherit;text-decoration:none}
.copylink{display:inline-flex;align-items:center;gap:4px;margin-top:4px;font-size:11.5px;color:var(--mutedwhite);background:none;border:none;padding:0;font-family:inherit;cursor:pointer}
.copylink svg{width:11px;height:11px}
.pbio{font-size:12.5px;color:var(--body);margin-top:6px;line-height:1.45;white-space:pre-line}

/* settings cog (own profile only) + list edit controls */
.cog{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:50%;background:rgba(80,22,65,.07);color:var(--plum);display:flex;align-items:center;justify-content:center}
.cog svg{width:17px;height:17px}
.mv{display:flex;flex-direction:column;gap:2px;margin-left:auto}
.mv button{width:28px;height:22px;border:none;border-radius:8px;background:#f3eef8;color:var(--mutedwhite);display:flex;align-items:center;justify-content:center}
.mv button svg{width:12px;height:12px}
.mv button:first-child svg{transform:rotate(180deg)}
.mv button:disabled{opacity:.35}
.lrow .rm{margin-left:6px}

.ghost{display:flex;align-items:center;gap:2px;margin-top:3px}
.ghost span{font-size:10px;color:var(--pagedim);margin-left:5px}
.ghost.w span{color:var(--dim)}

/* shelves strip (app: ShelvesStrip) */
.shelfhead{color:#fff;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;margin:0 2px 10px}
.shelves{display:flex;gap:8px}
.shelf{flex:1;display:flex;flex-direction:column;align-items:center;padding:10px 4px;border-radius:14px;background:rgba(255,255,255,.06);text-decoration:none}
.shelf b{font-family:'Montserrat';font-weight:800;font-size:16px;color:#fff}
.shelf span{font-size:9.5px;font-weight:700;color:#b9a3cc;margin-top:2px;text-align:center}

/* ---- import loader (app: screens/onboarding/OrbitLoadingScreen.js) ---- */
.orbitL{position:fixed;inset:0;z-index:1000;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 40px;
  background:radial-gradient(600px 420px at 50% 35%,rgba(138,127,212,.16),transparent 65%),linear-gradient(170deg,var(--bg1),var(--bg2) 60%,#080510);animation:fade .25s ease-out}
.orbitL>*{flex:none}
/* The orbit is drawn at a fixed 312px (every dot is placed in that space) and
   scaled as ONE piece to fit, so it can shrink but never squash. --s is set
   from the screen size in openLoader. */
.orbitL .stagebox{width:calc(312px * var(--s, 1));height:calc(312px * var(--s, 1));position:relative}
.orbitL .stage{position:absolute;left:0;top:0;width:312px;height:312px;transform:scale(var(--s, 1));transform-origin:0 0}
.orbitL .stage>*{position:absolute;inset:0}
.orbitL .ring{border-radius:50%;border:1px solid rgba(240,230,247,.14);inset:auto;left:50%;top:50%;transform:translate(-50%,-50%)}
.orbitL .tt{animation:spin linear infinite}
.orbitL .tt.in{animation-duration:11s}.orbitL .tt.out{animation-duration:16s;animation-direction:reverse}
.orbitL .tt.moon{animation-duration:5s}.orbitL .tt.sun{animation-duration:8s;animation-direction:reverse}
@keyframes spin{to{transform:rotate(360deg)}}
.orbitL .dot{position:absolute;border-radius:50%;transform:translate(-50%,-50%)}
.orbitL .halo{position:absolute;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.orbitL .star{inset:auto;left:50%;top:50%;width:78px;height:78px;transform:translate(-50%,-50%);animation:bob 3s ease-in-out infinite}
.orbitL .star img{width:78px;height:78px;object-fit:contain} /* the logo is 794x1123: keep its shape, like the app's resizeMode contain */
@keyframes bob{0%,100%{transform:translate(-50%,-50%)}50%{transform:translate(-50%,calc(-50% - 6px))}}
.orbitL .line{font-family:'Montserrat';font-weight:800;font-size:19px;color:#fff;text-align:center;margin-top:22px}
.orbitL .line em{font-style:normal;color:#d9a7ce}
.orbitL .track{width:min(300px, calc(100vw - 80px));margin:22px auto 0;height:5px;border-radius:999px;background:rgba(240,230,247,.12);overflow:hidden}
.orbitL .fill{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#e8739a,#8a7fd4,#c9a84c,#2a9d8f,#4a90c4,#9a7aa8,#f0e6f7);transition:width .4s ease}
.orbitL .what{color:#c9b4d9;font-size:13px;margin-top:14px;text-align:center;min-height:18px}
.orbitL .foot{color:#8f77a5;font-size:12px;margin-top:6px;text-align:center}
.orbitL .sum{color:#fff;font-size:13.5px;text-align:center;line-height:1.6;margin-top:14px;max-width:340px}
.orbitL .btn{margin-top:20px;min-width:180px;flex:none}
.chip .gchev{width:12px;height:12px;margin-left:1px;transition:transform .2s}
.chip .gchev.open{transform:rotate(180deg)}

/* =====================================================================
   WIDER SCREENS (packet v3 step 8: a widening pass, not a redesign).
   Phones are untouched. Every page is tagged by the router
   (main.body[data-page]) so each one can take the width it suits.
   ===================================================================== */
.dnav{display:none}

/* --- tablet: a wider column, cards two up ------------------------------ */
@media (min-width: 640px) {
  .app{max-width:760px}
  .bnav, .fnav{max-width:760px}
  .sheet .in{max-width:520px;border-radius:22px;margin-bottom:24px}
  .body[data-page="grid"] #recent, .body[data-page="grid"] #disc-results, .body[data-page="grid"] #tagList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
  .body[data-page="grid"] #recent>.bcard, .body[data-page="grid"] #disc-results>.bcard, .body[data-page="grid"] #tagList>.bcard{margin:0}
  .body[data-page="grid"] :is(#recent, #disc-results, #tagList)>:not(.bcard):not(.skel){grid-column:1/-1}
  .body[data-page="grid"] .skel{margin:0}
  .qpanel{right:auto;width:360px}
  .body[data-page="profile"] :is(#revs, #prevs){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
  .body[data-page="profile"] :is(#revs, #prevs)>.rcard{margin:0}
  .body[data-page="profile"] :is(#revs, #prevs)>:not(.rcard){grid-column:1/-1}
}

/* --- desktop ------------------------------------------------------------- */
@media (min-width: 900px) {
  .app{max-width:1180px;padding:0 28px}
  .bnav{display:none}
  .body{padding:0 0 64px}
  .top{padding:22px 0 18px;gap:32px;background:linear-gradient(180deg,rgba(26,8,40,.97),rgba(26,8,40,.75) 80%,transparent)}
  .word{font-size:21px}
  .dnav{display:flex;gap:6px;margin-left:auto}
  .dnav a{padding:8px 15px;border-radius:999px;font-weight:700;font-size:13.5px;color:var(--pagesoft)}
  .dnav a:hover{color:#fff;background:rgba(255,255,255,.06)}
  .dnav a.on{color:var(--plum);background:#fff}
  .top .cta, .top .av{margin-left:6px}
  .top .av{width:34px;height:34px}

  /* Discovery and tag pages: a card grid */
  .body[data-page="grid"] #recent, .body[data-page="grid"] #disc-results, .body[data-page="grid"] #tagList{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:18px}
  .body[data-page="grid"] .shell{max-width:820px}
  .bcard{transition:transform .18s ease, box-shadow .18s ease}
  .bcard:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(0,0,0,.4)}
  .rowh h2{font-size:16px}

  /* Book page: details stay in view on the left, everything else on the right */
  .bookpage{display:grid;grid-template-columns:340px minmax(0,1fr);gap:36px;align-items:start}
  .bside{position:sticky;top:84px}
  .bside .cov.hero{width:220px;height:330px;margin-top:4px}
  .bside .bhead h1{font-size:24px;-webkit-line-clamp:3}
  .bside .syn .tx{-webkit-line-clamp:6}
  .bmain{padding-top:14px}
  .bmain>.card:first-child{margin-top:0}
  #bookreviews{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;align-items:start}
  #bookreviews>.rcard{margin:0}
  #bookreviews>:not(.rcard){grid-column:1/-1}

  /* Reading and form pages: a comfortable centred column */
  .body[data-page="narrow"], .body[data-page="list"], .body[data-page="review"]{max-width:720px;margin:0 auto}
  .body[data-page="profile"]{max-width:960px;margin:0 auto}
  .body[data-page="profile"] .phead .av{width:88px;height:88px}
  .body[data-page="profile"] .phead h1{font-size:24px}

  /* Advanced search: sections flow in two columns */
  .body[data-page="filters"]{max-width:1060px;margin:0 auto}
  .body[data-page="filters"] #advBody{columns:2;column-gap:18px}
  .body[data-page="filters"] .fsec{break-inside:avoid;display:inline-block;width:100%}
  .body[data-page="filters"] .advbar{bottom:18px;max-width:420px;margin-left:auto}

  /* Writing a review stays a focused centre column */
  body.flow-on .app{max-width:720px}
  .fnav{max-width:720px;padding-bottom:24px}
  .fstep h2{font-size:21px}

  /* Sheets become centred pop-ups */
  .sheet{align-items:center}
  .sheet .in{border-radius:22px;margin:0;max-height:86vh;overflow:auto}

  /* Pointer niceties */
  .chip.pick:hover, .pill:hover, .cat:hover, .qchip:hover{filter:brightness(.97)}
  a.chip:hover{filter:brightness(.95)}
  .atl:hover, .btn:hover, .abtn:hover{filter:brightness(1.05)}
}

/* --- large desktop: book reviews two up, roomier grid --------------------- */
@media (min-width: 1280px) {
  .bookpage{grid-template-columns:380px minmax(0,1fr);gap:44px}
}

/* The top bar's background runs edge to edge on wide screens, not just
   across the centred column. */
@media (min-width: 640px) {
  html{overflow-x:clip}
  .top{background:none;isolation:isolate}
  .top::before{content:'';position:absolute;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);z-index:-1;
    background:linear-gradient(180deg,rgba(26,8,40,.97),rgba(26,8,40,.75) 80%,transparent)}
}
@media (min-width: 900px) {
  .shell .qf{flex:0 1 auto}
  .shell .chipsLayer{justify-content:flex-start;gap:4px}
}
@media (min-width: 900px) {
  .ftop{background:linear-gradient(180deg,rgba(26,8,40,.98),rgba(26,8,40,0));padding-left:0;padding-right:0}
  .anchor{padding-left:0;padding-right:0}
  .fbody{padding-left:0;padding-right:0}
  .body[data-page="profile"] .card .btns{max-width:520px}
}

/* Review cards are ONE size whatever they hold (Emma, 26 Oct 2026): every
   part has a fixed slot. Tags are always two rows tall (cut to "+N" by
   fitRows, blank when there are none) and the words always two lines. */
.rcard{display:flex;flex-direction:column;overflow:hidden}
.rcard .tags{height:50px;flex:none;align-content:flex-start;margin-bottom:12px}
.rcard .vrow{flex:none;height:36px;margin-top:auto}
.rcard .rnote{flex:none;margin:-4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rcard.prc{height:322px} /* room for a one-line returned note */
.rcard.prc .ident{flex:none}
.rcard.brc{height:276px}
.rcard.brc .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}

@media (min-width: 900px){ .mark{width:24px;height:31px} }

/* Verdict card, locked layout (pre-Bali Job 1) */
.vbar{display:flex;height:44px;border-radius:12px;overflow:hidden;margin-top:12px;background:var(--dot)}
.vbar i{display:flex;align-items:center;justify-content:center;min-width:0;font-style:normal}
.vbar b{font-family:'Montserrat';font-weight:800;font-size:16px;color:#fff;white-space:nowrap}
.vleg{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:10px;font-size:12px;font-weight:700}
.vleg .vdot{color:var(--dim);font-weight:400}
.vcap{text-align:center;font-size:11px;color:var(--dim);margin-top:4px}
.vgather{margin-top:10px;height:44px;border-radius:12px;background:#f7f3fa;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--soft)}

/* community guidelines page + site footer (pre-Bali Job 2) */
.guide{padding:22px 20px;line-height:1.6;color:var(--body)}
.guide h1{font-size:22px;color:var(--ink);line-height:1.25}
.guide .gver{font-size:12px;color:var(--dim);margin:6px 0 4px}
.guide h2{font-size:15.5px;color:var(--ink);margin:22px 0 6px}
.guide p{font-size:14px;margin:0 0 10px}
.guide ul{margin:0 0 10px 18px;font-size:14px}
.guide li{margin-bottom:6px}
.guide .gclose{font-family:'Montserrat';font-weight:800;color:var(--plum);margin-top:20px}
.sitefoot{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:8px 16px calc(var(--navh) + 26px + env(safe-area-inset-bottom));font-size:11.5px;color:var(--pagedim)}
.sitefoot a{color:var(--pagesoft)}
.sitefoot a:hover{color:#fff}
.body{padding-bottom:18px}
body.flow-on .sitefoot{display:none}
@media (min-width: 900px){ .sitefoot{padding-bottom:36px} }

/* First Editions badge after a username (ui.js username()), the app's
   GlyphBadge: soft square (radius 0.28 x size), teal to gold, white star at 55%. */
.festar{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:4px;margin-left:5px;flex-shrink:0;vertical-align:-2px;background:linear-gradient(135deg,#2a9d8f,#c9a84c)}
.festar svg{width:9px;height:9px;display:block}
.uline{display:flex;align-items:center;gap:0;flex-wrap:wrap}
.uline .hl-who{display:inline-flex;align-items:center;gap:0;color:inherit;margin-left:4px}
.hl-who .festar{margin-left:-4px}
.uline .hl-who .festar{margin-left:4px}
.aqwho{display:inline-flex;align-items:center;color:var(--plum);font-weight:700}

/* Advanced search: the app's iOS push, sliding in from the right (js/app.js). */
body{overflow-x:clip}
.wipein{animation:wipein .34s cubic-bezier(.2,.8,.2,1)}
@keyframes wipein{from{transform:translateX(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.wipein{animation:none}}
