
:root{
  /* Brand palette sampled from the VelvetTome logo: purple #42015D, gold #FBAC0A, on black */
  --velvet-950:#0D0016; --velvet-900:#1E0133; --velvet-800:#42015D; --velvet-700:#56047A; --velvet-600:#71099E;
  --velvet-300:#C9A1EC; --velvet-200:#E2CCF7; --velvet-100:#F3E8FD;
  --gold-600:#9A6600; --gold-500:#FBAC0A; --gold-400:#FFBE2E; --gold-300:#FFD166; --gold-100:#FEF0C8;
  --paper:#FFFFFF; --paper-2:#FBEFD2; --card:#FFFFFF; --ink:#000000; --ink-soft:#000000; --line:#EDDFC0;
  --hero-ink:#FFF7E6; --hero-soft:#D9C2F2;
  --shadow-book:0 22px 32px -18px rgba(13,0,22,.42);
  --r-lg:22px; --r-md:16px; --r-sm:10px;
  --font-display:"Nunito Sans",system-ui,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html:focus-within{scroll-behavior:smooth}
body{margin:0;font-family:"Nunito Sans",system-ui,sans-serif;background:#000;color:var(--ink);-webkit-font-smoothing:antialiased;overflow-x:hidden}
/* B1 fix (2026-11-23): sub-pages render as <div class="wrap subpage"> inside main,
   so the white only covered the 1200px column and body black showed at the
   sides (16px phone / 83px desktop). The app shell is white edge-to-edge;
   hero/sections/footer carry their own backgrounds over it. */
main#app{background:var(--paper)}
:focus-visible{outline:3px solid rgba(113,9,158,.4);outline-offset:2px;border-radius:6px}
img{max-width:100%;display:block}
b,strong{font-weight:600}
button{font-family:inherit;cursor:pointer;min-height:44px}
a{color:inherit}
::selection{background:var(--gold-400);color:#000000}
.serif{font-family:var(--font-display)}
.wrap{width:min(1200px,100% - 40px);margin-inline:auto}
@media (max-width:560px){.wrap{width:calc(100% - 32px)}}

/* ---------- scroll progress ---------- */
#progress{position:fixed;inset:0 auto auto 0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--gold-500),var(--gold-300));z-index:120}

/* ---------- nav ---------- */
header.nav{position:fixed;inset:0 0 auto 0;z-index:110;background:#FFFFFF;box-shadow:0 1px 0 rgba(42,1,60,.08);transition:box-shadow .35s ease}
header.nav.scrolled{background:#FFFFFF;box-shadow:0 6px 18px rgba(42,1,60,.08)}
.nav-in{display:flex;align-items:center;gap:14px;padding:12px 0;flex-wrap:wrap}
/* ================= ROUND 45 ================= */
/* LOGO LOCKUP — BOTTOM-ALIGNED, ICON +~18%: the V-mark icon grows (wordmark
   sizes LOCKED per Sunny 2026-11-22 23:01) and every lockup bottom-aligns
   (align-items:flex-end). The mark PNGs carry transparent padding below the
   visible V (purple mark 14/316, white mark 112/512), so each mark also gets
   a negative bottom margin that drops its VISIBLE bottom onto the wordmark's
   bottom line — measured, not guessed (see verification). */
.logo{display:flex;align-items:flex-end;gap:8px;text-decoration:none;padding:2px 0;order:2}
.logo img.mark{height:45px;width:auto;flex:none;margin-bottom:-2px}
.logo img.word{height:25px;width:auto;flex:none}
@media (max-width:480px){.logo{gap:6.5px}.logo img.mark{height:38px;margin-bottom:-1.7px}.logo img.word{height:21px}}
.foot-logo{display:inline-flex;align-items:flex-end;gap:7px;flex:none;text-decoration:none}
.foot-logo img{height:57px;width:auto;margin-bottom:-8.5px}
.foot-wordtext{font-family:var(--font-display);font-weight:700;font-size:25px;letter-spacing:-.01em;color:#FFFFFF;line-height:1}
.foot-wordtext em{font-style:normal;color:var(--gold-500)}
.nav-actions{display:flex;align-items:center;gap:10px;order:4;margin-left:auto}
.nav-actions .btn{white-space:nowrap;flex:none}
/* header search — the one and only search (TPT-style) */
.nav-search{position:relative;order:3;flex:1 1 180px;max-width:620px;min-width:0;display:flex;align-items:center;background:#FFFFFF;border:1.5px solid var(--line);border-radius:999px;padding:4px 4px 4px 18px;z-index:60}
.nav-search:focus-within{border-color:var(--velvet-600);box-shadow:0 0 0 4px rgba(113,9,158,.12)}
.nav-search input{flex:1;min-width:0;border:none;background:none;outline:none;font:inherit;font-size:16px;color:var(--ink);min-height:42px}
.nav-search input::placeholder{color:#000000}
.nav-search-btn{flex:none;width:44px;height:44px;min-height:44px;border:none;border-radius:50%;background:linear-gradient(160deg,var(--gold-300),var(--gold-500));color:#2A1A05;display:grid;place-items:center;padding:0}
.nav-search-btn:active{transform:scale(.94)}
@media (max-width:860px){
  .nav-in{gap:10px;padding:10px 0 12px}
  .logo{position:absolute;left:50%;top:10px;height:48px;transform:translateX(-50%)}
  .nav-actions{order:2}
  .nav-search{order:3;flex:1 1 100%;max-width:none}
}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:none;border-radius:999px;font-weight:600;font-size:15px;padding:12px 22px;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;min-height:48px}
.btn:active{transform:scale(.97)}
.btn-gold{background:linear-gradient(160deg,var(--gold-300),var(--gold-500));color:#2A1A05}
.btn-gold:hover{transform:translateY(-2px)}
.btn-ghost{background:rgba(255,255,255,.08);color:var(--hero-ink);border:1px solid rgba(255,255,255,.28)}
.btn-ghost:hover{background:rgba(255,255,255,.16)}
.btn-velvet{background:var(--velvet-800);color:#fff}
.btn-velvet:hover{transform:translateY(-2px);background:var(--velvet-700)}
.cart-btn{position:relative;width:48px;height:48px;border-radius:50%;border:1.5px solid var(--line);background:#FFFFFF;color:var(--ink);display:grid;place-items:center;padding:0}
.cart-btn:hover{background:#FBF6E9;border-color:var(--gold-500)}
.cart-count{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--gold-400);color:#2A1A05;font-size:12.5px;font-weight:700;display:grid;place-items:center;border:2px solid #FFFFFF}
@media (max-width:860px){.nav-actions .btn{display:none}}
/* hamburger + menu panel */
.hamburger{display:grid;order:1;width:48px;height:48px;border:none;background:transparent;color:var(--ink);place-items:center;padding:0;flex:none}
.hamburger:hover{background:transparent}
.hamburger svg{display:block}
.mobile-menu{position:absolute;top:100%;left:0;right:0;background:#FFFFFF;box-shadow:0 20px 32px -14px rgba(42,1,60,.18);border-top:1px solid #F1E7CB;padding:10px 20px 20px;display:none;z-index:115;max-height:calc(100dvh - 76px);overflow-y:auto}
@media (min-width:861px){.mobile-menu{right:auto;width:360px;border-radius:0 0 18px 18px}}
.mobile-menu .mm-group{font-size:11.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-600);margin:18px 4px 2px}
.mobile-menu .mm-grades{display:flex;flex-wrap:wrap;gap:8px;padding:8px 4px 2px}
.mobile-menu .mm-grades button{border:1.5px solid var(--line);background:#FFFFFF;color:var(--ink);border-radius:999px;padding:9px 15px;font-weight:700;font-size:14px;min-height:42px}
.mobile-menu .mm-grades button:active{background:var(--velvet-100);border-color:var(--velvet-600)}
.mobile-menu.on{display:block}
.mobile-menu a.mm-link{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;font-weight:700;font-size:16.5px;color:var(--ink);padding:15px 4px;border-bottom:1px solid #F6ECD2;min-height:52px}
.mobile-menu a.mm-link span{color:var(--gold-600);font-size:18px}
.mobile-menu a.mm-link:active{background:#FFFBEB}
.mobile-menu .mm-cta{margin-top:16px;width:100%}
/* search suggestions dropdown */
.search-drop{position:absolute;top:calc(100% + 10px);left:0;right:0;background:#FFFFFF;color:var(--ink);border:1px solid #EDDFC0;border-radius:18px;box-shadow:0 20px 36px -16px rgba(13,0,22,.28);overflow:hidden;z-index:80;text-align:left}
.search-drop[hidden]{display:none!important}
.nav-search .search-drop{left:0;right:0;width:auto}
.drop-head{display:flex;align-items:center;gap:8px;padding:14px 16px 8px;font-size:11.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-600)}
.drop-head svg{color:#000000;flex:none}
.drop-list{padding:2px 6px 6px}
.suggest-item{display:flex;align-items:center;gap:12px;width:100%;background:#FFFFFF;border:none;border-radius:12px;padding:9px 10px;text-align:left;min-height:66px;color:var(--ink)}
.suggest-item:hover,.suggest-item.active{background:#F4EDFB}
.suggest-item img{width:44px;height:44px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.suggest-item .si-main{flex:1;min-width:0}
.suggest-item .si-main b{font-family:var(--font-display);font-size:15.5px;font-weight:600;line-height:1.2;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggest-item .si-main span{font-size:12.5px;color:var(--ink-soft);font-weight:600;display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggest-item .si-side{flex:none;text-align:right}
.suggest-item .si-dl{display:inline-flex;align-items:center;gap:4px;background:var(--velvet-100);border:1px solid var(--velvet-200);color:#000;font-size:11.5px;font-weight:700;padding:4px 7px;border-radius:999px;white-space:nowrap}
.suggest-item .si-price{font-family:var(--font-display);font-weight:600;font-size:14.5px;display:block;margin-top:5px}
.drop-trend{padding:4px 16px 16px;border-top:1px dashed #EDDFC0;margin-top:4px}
.drop-trend p{margin:10px 0 8px;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#8A7B52}
.trend-chips{display:flex;flex-wrap:wrap;gap:7px}
.trend-chips button{border:1.5px solid var(--line);background:#FFFFFF;border-radius:999px;padding:8px 13px;font-weight:700;font-size:13.5px;min-height:38px;color:var(--ink)}
.trend-chips button:hover{border-color:var(--velvet-300);background:var(--velvet-100)}
.drop-empty{padding:6px 16px 18px;color:var(--ink-soft);font-size:14.5px;line-height:1.55}
.drop-empty b{color:var(--ink)}

/* ---------- hero ---------- */
.hero{position:relative;background:
  radial-gradient(760px 460px at -8% 108%,rgba(251,172,10,.16),transparent 55%),
  linear-gradient(163deg,var(--velvet-600) 0%,var(--velvet-800) 46%,var(--velvet-900) 100%);
  color:var(--hero-ink);overflow:hidden;padding:138px 0 0}
.hero[data-season="winter"]{background:radial-gradient(760px 460px at -8% 108%,rgba(160,200,255,.14),transparent 55%),linear-gradient(163deg,#5B2A9E 0%,#33135F 52%,#150A2E 100%)}
.hero[data-season="spring"]{background:radial-gradient(760px 460px at 88% -10%,rgba(255,150,200,.13),transparent 55%),linear-gradient(163deg,#7D0AAD 0%,#4A0170 52%,#22013A 100%)}
.hero[data-season="summer"]{background:radial-gradient(820px 500px at 88% -10%,rgba(251,172,10,.22),transparent 58%),linear-gradient(163deg,#7D0AAD 0%,var(--velvet-800) 50%,var(--velvet-900) 100%)}
.hero[data-season="autumn"]{background:radial-gradient(760px 460px at -8% 108%,rgba(251,140,10,.17),transparent 55%),linear-gradient(163deg,var(--velvet-700) 0%,#2A013C 55%,#12001F 100%)}
.hero[data-season="christmas"]{background:
  radial-gradient(720px 420px at 88% -6%,rgba(179,18,32,.34),transparent 58%),
  radial-gradient(680px 460px at -6% 110%,rgba(139,10,24,.30),transparent 58%),
  linear-gradient(163deg,#166B33 0%,#0C4A26 38%,#07331B 72%,#04220F 100%)}
.hero[data-season="christmas"] .hero-stars i{background:#FFFFFF;animation:snowfall 12s linear infinite}
.hero[data-season="christmas"] .hero-stars i:nth-child(3n){animation-duration:8.5s;animation-delay:-3s}
.hero[data-season="christmas"] .hero-stars i:nth-child(4n){animation-duration:15s;animation-delay:-7s}
.hero[data-season="christmas"] .hero-stars i:nth-child(5n){animation-duration:10s;animation-delay:-5.5s}
@keyframes snowfall{0%{transform:translate(0,-16px)}100%{transform:translate(18px,108vh)}}
@media (prefers-reduced-motion: reduce){.hero-stars i{animation:none!important}}
@media (max-width:860px){.hero{padding-top:176px}}
.hero-stars{position:absolute;inset:0;pointer-events:none}
.hero-stars i{position:absolute;background:var(--gold-300);border-radius:50%;opacity:.7}
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:34px;align-items:center;position:relative}
@media (max-width:920px){.hero-grid{grid-template-columns:1fr}}
.hero-copy .over{font-weight:700;letter-spacing:.24em;text-transform:uppercase;font-size:12.5px;color:var(--gold-300)}
.hero h1{font-family:var(--font-display);font-weight:700;font-size:clamp(36px,5.2vw,58px);line-height:1.08;margin:18px 0 20px;letter-spacing:-.01em}
.hero h1 em{font-style:italic;font-weight:700;color:var(--gold-400)}
.hero h1 .line{display:block;overflow:hidden}
.hero h1 .line>span{display:inline-block}
.hero p.lede{font-size:clamp(17px,2vw,20px);line-height:1.55;color:#FFFFFF;max-width:34em;margin:0 0 24px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}

/* hero book stage */
.stage{position:relative;height:560px}
@media (max-width:920px){.stage{height:480px;margin-top:6px}}
@media (max-width:480px){.stage{height:400px}}
.stage .halo{display:none}
.book3d{position:absolute;width:250px;aspect-ratio:.78;transform-style:preserve-3d;will-change:transform}
.book3d .cover{position:absolute;inset:0;border-radius:6px 14px 14px 6px;overflow:hidden;box-shadow:var(--shadow-book);background:#fff}
.book3d .cover img{width:100%;height:100%;object-fit:cover}
.book3d .cover::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(255,255,255,.20),transparent 26%,transparent 78%,rgba(13,0,22,.14));pointer-events:none}
.book3d .spine{position:absolute;top:1.5%;left:-13px;width:14px;height:97%;border-radius:4px 0 0 4px;transform:rotateY(-64deg);transform-origin:right center}
.book3d .pages{position:absolute;top:1%;right:-7px;width:8px;height:98%;background:repeating-linear-gradient(90deg,#FFFFFF 0 2px,#E9E2CE 2px 3px);border-radius:0 3px 3px 0;transform:rotateY(38deg);transform-origin:left center}
.book3d .titleband{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 12px;background:linear-gradient(transparent,rgba(13,0,22,.85) 42%);color:#fff}
.book3d .titleband b{font-family:var(--font-display);font-size:18px;line-height:1.15;display:block;font-weight:600}
.book3d .titleband span{font-size:11.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-300)}
.b-hero-main{width:288px;left:50%;top:44px;margin-left:-144px;z-index:3}
.b-hero-left{width:216px;left:2%;top:128px;z-index:2}
.b-hero-right{width:216px;right:2%;top:128px;z-index:2}
@media (max-width:480px){.b-hero-main{width:216px;margin-left:-108px;top:26px}.b-hero-left,.b-hero-right{width:158px;top:120px}}
.chip-float{position:absolute;z-index:5;display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.96);color:#000000;border-radius:14px;padding:10px 14px;font-weight:700;font-size:13.5px;box-shadow:0 10px 20px -10px rgba(10,4,24,.35)}
.chip-float small{display:block;font-weight:500;color:#000000;font-size:12px}
.chip-float .ic{width:34px;height:34px;flex:none;border-radius:10px;background:var(--velvet-100);display:grid;place-items:center;color:#000000}
.chip-a{left:0;bottom:118px}.chip-b{right:0;bottom:36px}
@media (max-width:480px){.chip-a{bottom:32px}.chip-float{padding:8px 11px;font-size:12.5px}}
.sparkle{position:absolute;color:var(--gold-400);z-index:4;pointer-events:none}

/* ---------- marquee ---------- */
.marquee{background:linear-gradient(90deg,var(--gold-500),var(--gold-400) 55%,var(--gold-500));color:#33230A;overflow:hidden;padding:13px 0;position:relative;z-index:2}
.marquee-track{display:flex;gap:0;width:max-content;animation:mq 30s linear infinite}
.marquee span{display:inline-flex;align-items:center;gap:26px;padding-right:26px;font-weight:700;font-size:14.5px;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.marquee b{font-weight:400;font-size:12px}
@keyframes mq{to{transform:translateX(-50%)}}

/* ---------- sections shared ---------- */
section{position:relative}
.section{padding:96px 0}
@media (max-width:640px){.section{padding:68px 0}}
.sec-paper{background:var(--paper);color:var(--ink)}
.sec-deep{background:linear-gradient(180deg,#000,var(--velvet-900) 55%,#000);color:var(--hero-ink)}
.kicker{font-weight:700;letter-spacing:.24em;text-transform:uppercase;font-size:12.5px;color:var(--gold-600);display:flex;align-items:center;gap:12px}
.sec-deep .kicker{color:var(--gold-300)}
.kicker::before{content:"";width:34px;height:2px;background:var(--gold-500);border-radius:2px}
h2.title{font-family:var(--font-display);font-weight:600;font-size:clamp(28px,3.9vw,44px);line-height:1.12;margin:14px 0 14px;letter-spacing:0}
h2.title em{font-style:italic;color:var(--gold-500);font-weight:600}
.sec-deep h2.title em{color:var(--gold-400)}
p.sub{font-size:17.5px;line-height:1.6;color:var(--ink-soft);max-width:56ch;margin:0}
.sec-deep p.sub{color:var(--hero-soft)}
[data-reveal]{opacity:1}
.js-anim [data-reveal]{opacity:0;transform:translateY(34px)}

/* ---------- shelf / shop ---------- */
.shop-tools{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:0 0 8px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1.5px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;padding:10px 18px;font-weight:700;font-size:14.5px;min-height:46px;transition:all .18s ease}
.chip:hover{border-color:var(--gold-500)}
.chip.on{background:var(--velvet-800);border-color:var(--velvet-800);color:#fff}
.view-toggle{display:inline-flex;gap:4px;background:#FFFFFF;border:1.5px solid var(--line);border-radius:999px;padding:4px;margin-left:auto;flex:none}
.vt-btn{display:inline-flex;align-items:center;gap:7px;border:none;background:transparent;border-radius:999px;padding:8px 15px;font-weight:700;font-size:14px;color:var(--ink-soft);min-height:40px;transition:background .18s ease,color .18s ease}
.vt-btn svg{flex:none}
.vt-btn.on{background:var(--velvet-800);color:#fff}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:30px}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.grid{grid-template-columns:minmax(0,1fr)}}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 22px 20px;display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 16px 28px -18px rgba(42,24,69,.25);border-color:#E3D096}
.card-main{display:flex;flex-direction:column;flex:1;min-width:0}
.grid.list{grid-template-columns:1fr;gap:18px}
.grid.list .card{flex-direction:row;gap:22px;padding:18px 20px;align-items:stretch}
.grid.list .coverwrap{flex:0 0 190px;align-self:flex-start}
.grid.list .card .grade{margin-top:2px}
.grid.list .card .buyrow{padding-top:12px}
/* ROUND 53 item 1 — list-view content: the .list-only block (description
   excerpt + grade/subject + skills) is hidden in grid mode so grid cards
   stay EXACTLY as they are, and shown only when the shelf is in list mode.
   [ROUND 55: excerpt shows a little more than the old 3-line clamp and
   is no longer line-clamped at all — the JS excerpt itself ends with
   three literal dots "..." so the ending reads "..." at every width
   and never the browser's single-character ellipsis.] */
.grid .card .list-only{display:none}
.grid.list .card .list-only{display:block}
.grid.list .card .list-excerpt{display:block;font-size:14.5px;line-height:1.55;color:var(--ink-soft);margin:10px 0 0}
/* ROUND 54 item 3 — search keyword highlight, homepage shelf only
   (#bookGrid; the store shelf never renders <mark>). Gold tint from the
   site palette (#FBAC0A family), dark text stays readable. */
#bookGrid .card h3 mark,#bookGrid .card .list-excerpt mark{background:#FBE7A8;color:inherit;border-radius:2px;padding:0 2px}
.grid.list .card .list-meta{margin-top:9px;font-size:13.5px;line-height:1.4}
.grid.list .card .list-meta .list-subj{font-weight:600;color:var(--ink-soft)}
.grid.list .card .list-meta .list-dot{color:var(--ink-soft);margin:0 2px}
.grid.list .card .list-only .skills{margin:9px 0 0}
@media (max-width:600px){
  .grid.list .card{gap:15px;padding:14px}
  .grid.list .coverwrap{flex-basis:118px}
  .grid.list .card h3{font-size:19px}
}
.card .coverwrap{position:relative;border-radius:0;overflow:hidden;aspect-ratio:1/1;background:#fff}
.card .coverwrap img{width:100%;height:100%;object-fit:cover;border-radius:0;display:block;background:#fff;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.card:hover .coverwrap img{transform:scale(1.06) rotate(.6deg)}
.badge{position:absolute;top:12px;left:12px;background:var(--gold-400);color:#33230A;font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase;padding:6px 11px;border-radius:999px;z-index:2}
.badge.new{background:var(--velvet-700);color:#fff}
.card .grade{margin-top:18px;font-size:12.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-600)}
.card h3{font-family:var(--font-display);font-size:22px;font-weight:600;margin:16px 0 6px;line-height:1.18}
.card .meta{color:var(--ink-soft);font-size:14.5px;font-weight:500}
.stars{display:flex;gap:2px;margin:10px 0 2px;color:var(--gold-500)}
.stars svg{width:16px;height:16px}
.stars,.bp-stars .stars,.rev-summary .stars,.rev-card .stars,.card .stars{color:#FBAC0A}
.card .skills{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 4px}
.card .skills i{font-style:normal;font-size:12.5px;font-weight:600;background:var(--paper-2);color:var(--ink);border-radius:999px;padding:5px 10px}
.card .buyrow{margin-top:auto;padding-top:16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.price{font-family:var(--font-display);font-size:24px;font-weight:700}
.price s{font-size:16px;color:var(--ink-soft);font-weight:500;margin-right:7px}
.buyrow .spacer{flex:1}
.btn-sm{min-height:46px;padding:10px 18px;font-size:14.5px}
.btn-peek{background:transparent;border:1.5px solid var(--line);color:var(--ink);border-radius:999px;font-weight:600;padding:10px 16px;min-height:46px}
.btn-peek:hover{border-color:var(--velvet-600);color:#000}
.empty-note{grid-column:1/-1;text-align:center;padding:44px 20px;color:var(--ink-soft);font-size:16.5px;border:1.5px dashed var(--line);border-radius:var(--r-lg)}

/* ---------- inside (horizontal scroll) ---------- */
.inside-pin{overflow:hidden}
.inside-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.scroll-hint{display:flex;align-items:center;gap:10px;color:var(--gold-300);font-weight:700;font-size:14px;letter-spacing:.06em}
.hwrap{margin-top:44px}
.htrack{display:flex;gap:26px;width:max-content;padding:6px 20px 26px 0;align-items:flex-start}
.panel{width:100%;background:#FFFFFF;color:#000000;border-radius:18px;padding:16px}
.panel .pimg{border-radius:10px;overflow:hidden;border:1px solid #EDE4CB;background:#fff}
.panel .pimg img{width:100%;height:auto;max-height:300px;object-fit:contain;object-position:top center;background:#fff}
.panel-meta{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:13px 15px 14px}
.pm-size{margin:0;font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-300)}
.panel-meta .panel-book{margin-top:11px;background:transparent;border-top:1px dashed rgba(255,255,255,.18);border-radius:0;padding:11px 0 0}
.panel h3{font-family:var(--font-display);font-size:20px;margin:16px 0 6px;font-weight:600}
.panel p{margin:0;color:#000000;font-size:15px;line-height:1.55}
.panel .pnum{font-family:var(--font-display);font-style:italic;color:var(--gold-600);font-weight:600;font-size:15px;letter-spacing:.1em}
.panel-book{display:flex;align-items:center;gap:13px;margin-top:16px;background:var(--velvet-900);border-radius:13px;padding:11px 15px 11px 11px;color:#fff}
.panel-book>img{width:46px;height:46px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.panel-book .pb-t{min-width:0}
.panel-book .pb-t span{display:block;font-size:10.5px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:var(--gold-300);margin-bottom:2px}
.panel-book .pb-t b{font-family:var(--font-display);font-size:18px;font-weight:600;line-height:1.15;display:block}
.pb-covers{display:flex;flex:none;padding-left:2px}
.pb-covers img{width:31px;height:31px;object-fit:cover;border-radius:0;border:2px solid #FFFFFF;margin-left:-12px;background:#fff}
.pb-covers img:first-child{margin-left:0}
.panel.css-art{display:flex;flex-direction:column}
.mini-sheet{border:1.5px dashed #CBBd93;border-radius:10px;padding:18px;background:#fff;flex:1}
.mini-sheet .stamp{margin-top:14px;border:2px solid var(--velvet-600);color:#000;border-radius:8px;padding:9px 12px;font-weight:700;font-size:13.5px;transform:rotate(-2deg);display:inline-block}
.key-row{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.key-row i{font-style:normal;background:var(--gold-100);border:1px solid #EBD9A0;color:#6d5510;font-weight:700;font-size:12.5px;padding:6px 10px;border-radius:999px}
@media (max-width:768px){
  .htrack{flex-direction:column;width:auto;padding-right:0}
}

/* ---------- how it works ---------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:52px;position:relative}
@media (max-width:860px){.steps{grid-template-columns:1fr}}
.step{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:30px 28px;position:relative;overflow:hidden}
.step .num{font-family:var(--font-display);font-style:italic;font-weight:600;font-size:52px;line-height:1;color:transparent;-webkit-text-stroke:1.5px var(--gold-500)}
.step h3{font-family:var(--font-display);font-size:21px;font-weight:600;margin:16px 0 9px}
.step p{margin:0;color:var(--ink-soft);font-size:15.5px;line-height:1.6}
.step .ic{position:absolute;top:24px;right:24px;width:46px;height:46px;border-radius:14px;background:var(--velvet-100);color:#000000;display:grid;place-items:center}
.rule-strip{margin-top:26px;background:var(--velvet-900);color:var(--hero-ink);border-radius:var(--r-lg);padding:24px 28px;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.rule-strip b{font-family:var(--font-display);font-size:18px;font-weight:600}
.rule-strip p{margin:0;color:var(--hero-soft);font-size:15px;line-height:1.55;flex:1 1 320px}
.rule-strip .shield{width:48px;height:48px;flex:none;border-radius:14px;background:rgba(227,188,92,.16);display:grid;place-items:center;color:var(--gold-300)}

/* ---------- three views ---------- */
.tabs{display:inline-flex;gap:6px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);padding:6px;border-radius:999px;margin-top:34px;flex-wrap:wrap}
.tab{border:none;background:transparent;color:var(--hero-soft);font-weight:700;font-size:15px;padding:11px 22px;border-radius:999px;min-height:46px}
.tab.on{background:linear-gradient(160deg,var(--gold-300),var(--gold-500));color:#2A1A05}
.viewpane{margin-top:30px;background:#FFFFFF;color:#000000;border:1px solid #EFE6CE;border-radius:24px;overflow:hidden;display:none}
.viewpane.on{display:block}
.vp-head{display:flex;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid #EFE6CE;background:#FFFFFF}
.vp-head .dots{display:flex;gap:7px}
.vp-head .dots i{width:12px;height:12px;border-radius:50%;background:#FEBC2E;box-shadow:inset 0 -2px 3px rgba(0,0,0,.22),0 1px 3px rgba(0,0,0,.18)}
.vp-head .dots i:first-child{background:#FF5F57}.vp-head .dots i:nth-child(2){background:#FEBC2E}.vp-head .dots i:nth-child(3){background:#28C840}
.vp-head b{font-size:15px}
.vp-head span{margin-left:auto;font-size:13px;color:#8A7B52;font-weight:600}
.vp-body{padding:24px 22px 28px}
.vp-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:24px}
@media (max-width:820px){.vp-grid{grid-template-columns:1fr}}
.stat-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}
@media (max-width:560px){.stat-tiles{grid-template-columns:1fr 1fr}}
.tile{background:#FFFFFF;border:1px solid #EFE3C2;border-radius:14px;padding:14px 16px}
.tile span{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8A7B52}
.tile b{font-family:var(--font-display);font-size:23px;font-weight:600;display:block;margin-top:3px}
.dl-row,.sale-row,.queue-row{display:flex;align-items:center;gap:14px;padding:13px 4px;border-bottom:1px dashed #EAE0C6}
.dl-row:last-child,.sale-row:last-child,.queue-row:last-child{border-bottom:none}
.dl-row img{width:46px;height:46px;object-fit:cover;border-radius:0;background:#fff}
.dl-row b,.sale-row b,.queue-row b{font-size:15.5px;display:block}
.dl-row span,.sale-row span,.queue-row span{font-size:13px;color:#000000}
.dl-btn{margin-left:auto;background:var(--velvet-800);color:#fff;border:none;border-radius:999px;font-weight:700;font-size:13.5px;padding:9px 16px;min-height:40px;flex:none}
.dl-btn:hover{background:var(--velvet-600)}
.amt{margin-left:auto;font-family:var(--font-display);font-weight:600;font-size:17px;flex:none}
.bars{display:flex;align-items:flex-end;gap:9px;height:120px;padding:8px 4px 0}
.bars i{flex:1;background:linear-gradient(180deg,var(--gold-400),var(--gold-600));border-radius:6px 6px 3px 3px;min-height:8px}
.bars i:nth-child(odd){background:linear-gradient(180deg,var(--velvet-300),var(--velvet-600))}
.bar-days{display:flex;gap:9px;font-size:11.5px;color:#8A7B52;font-weight:600;text-align:center}
.bar-days span{flex:1}
.dropzone{border:2px dashed #D9C88F;border-radius:8px;padding:20px;text-align:center;color:#8A7B52;font-weight:600;font-size:14.5px;background:#FFFFFF}
/* ================= ROUND 48 — description bigger, file boxes slimmer ================= */
/* (Sunny, 2026-11-23 00:28: "description er box aktu boro Kore dao r book file
   er box r preview er box arektu chikon kore dao.") Book file + Preview file
   drop zones slimmed further — vertical padding 14px -> 9px on every Upload
   + Edit form (single book, bundle new-book and Edit preview all live inside
   #view-upload / #view-edit, so all of them slim together, ~10px shorter per
   box) — while the label + helper text stay readable. Description boxes grow
   the other way: rows raised in the markup (7->9 single/edit, 4->6 bundle)
   and the min-heights below lock that taller size in. */
#view-upload .dropzone,#view-edit .dropzone{padding-top:9px;padding-bottom:9px}
#view-upload #upDesc,#view-edit #edDesc{min-height:252px}
#view-upload #bdDesc{min-height:178px}
.qbtn{border:none;border-radius:999px;font-weight:700;font-size:13px;padding:8px 14px;min-height:38px;flex:none}
.qbtn.ok{background:#2E7D4F;color:#fff}.qbtn.no{background:#F3E3E0;color:#9C3B2E}
.queue-row .acts{margin-left:auto;display:flex;gap:8px}
.status-done{margin-left:auto;font-weight:700;font-size:13.5px}
.status-done.ok{color:#2E7D4F}.status-done.no{color:#9C3B2E}
.rej-form{flex-basis:100%;min-width:0;margin-top:10px;background:#FBF6EC;border:1px solid #EADFC2;border-radius:12px;padding:12px}
.rej-form p{font-size:13.5px;font-weight:700;margin:0 0 8px}
.rej-form select{width:100%;padding:10px 12px;border:1px solid #E0D3A8;border-radius:10px;font:inherit;font-size:14px;background:#fff;color:#000}
.rej-pickrow{display:flex;gap:8px;align-items:center;min-width:0}
.rej-pickrow select{flex:1;min-width:0;width:auto}
.rej-edit{margin-top:10px}
.rej-edit label{display:block;font-size:13.5px;font-weight:700;margin-bottom:6px}
.rej-edit textarea{width:100%;min-height:96px;padding:10px 12px;border:1px solid #E0D3A8;border-radius:10px;font:inherit;font-size:14px;line-height:1.55;background:#fff;color:#000;resize:vertical}
.rej-add{margin-top:10px}
.rej-add label{display:block;font-size:13px;font-weight:700;margin:6px 0 4px}
.rej-add input,.rej-add textarea{width:100%;padding:10px 12px;border:1px solid #E0D3A8;border-radius:10px;font:inherit;font-size:14px;background:#fff;color:#000}
.rej-add textarea{min-height:72px;resize:vertical;line-height:1.55}
.rej-note{font-size:12.5px;color:var(--ink-soft);margin:8px 0 0;font-weight:400}
.vp-note{margin-top:18px;font-size:14px;color:#000000;background:#FFFFFF;border:1px solid #EFE3C2;border-radius:12px;padding:13px 16px;line-height:1.55}
.chart-box{background:#fff;border:1px solid #EFE3C2;border-radius:16px;padding:18px 18px 10px;margin-bottom:20px}
.chart-box h4{margin:0 0 4px;font-size:15px}
.chart-box .csub{font-size:13px;color:#8A7B52;margin:0 0 10px}
.chart{width:100%;height:auto;display:block}
.chart text{font-family:"Nunito Sans",sans-serif}
.hbar-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px dashed #EAE0C6}
.hbar-row:last-child{border-bottom:none}
.hbar-row .hn{flex:0 0 128px;font-size:14px;font-weight:600}
.hbar-row .ht{flex:1;height:12px;background:#F1E7CB;border-radius:99px;overflow:hidden}
.hbar-row .ht i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#BFE3FA,#7CC4F5)}
.hbar-row .hv{font-family:var(--font-display);font-weight:600;font-size:15.5px;flex:none}

/* ---------- dashboard link cards (home) ---------- */
.view-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:36px}
@media (max-width:860px){.view-cards{grid-template-columns:1fr}}
.vcard{text-align:left;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);border-radius:20px;padding:26px 24px;color:var(--hero-ink);transition:transform .25s ease,border-color .25s ease,background .25s ease;min-height:0;width:100%}
.vcard:hover{transform:translateY(-5px);border-color:var(--gold-400);background:rgba(255,255,255,.09)}
.vcard .vic{width:48px;height:48px;border-radius:14px;background:rgba(251,172,10,.16);color:var(--gold-300);display:grid;place-items:center;margin-bottom:16px}
.vcard b{font-family:var(--font-display);font-size:20px;font-weight:600;display:block;margin-bottom:7px}
.vcard p{margin:0 0 16px;color:var(--hero-soft);font-size:15px;line-height:1.55}
.vcard .vgo{font-weight:700;color:var(--gold-300);font-size:14.5px}
/* ---------- sub-page footer: plain full-width deep-purple band, like the home footer ---------- */
.pagefoot{margin-top:64px;margin-bottom:-90px;width:100vw;margin-left:calc(50% - 50vw);background:var(--velvet-900);padding:38px max(16px,calc(50vw - 580px)) 42px;display:flex;column-gap:24px;row-gap:18px;align-items:center;flex-wrap:wrap;color:#E2CCF7}
.pagefoot .foot-logo img{height:50px;margin-bottom:-8px}
.pagefoot .foot-wordtext{font-size:23px}
.pagefoot nav{display:flex;column-gap:22px;row-gap:8px;justify-content:flex-end;margin-left:auto;flex-wrap:wrap}
.pagefoot nav a{text-decoration:none;font-weight:600;font-size:14.5px;line-height:1.4;color:#F3E8FD;padding:4px 2px}
.pagefoot nav a:hover{color:var(--gold-300)}
.pagefoot small{width:100%;font-size:13px;line-height:1.6;color:#C9A1EC;border-top:1px solid rgba(255,255,255,.14);padding-top:16px}
.subpage .viewpane{display:block;margin-top:26px}
/* ---------- seller extras + upload page ---------- */
.upload-cta{margin-top:12px;border:1.5px dashed #D9C88F;border-radius:14px;padding:20px;text-align:center;background:#FFFDF4}
.upload-cta p{margin:0 0 14px;color:#000000;font-size:14.5px;line-height:1.55}
.top-row{display:flex;align-items:center;gap:13px;padding:11px 4px;border-bottom:1px dashed #EAE0C6}
.top-row:last-child{border-bottom:none}
.top-row img{width:44px;height:44px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.top-row .tt{min-width:0;flex:1}
.top-row .tt b{font-size:15px;display:block;line-height:1.25}
.top-row .tt span{font-size:13px;color:#000000}
.top-row .tv{text-align:right;flex:none}
.top-row .tv b{font-family:var(--font-display);font-weight:700;font-size:16.5px;display:block}
.top-row .tv span{font-size:12.5px;color:#000000;font-weight:600}
.prow{display:flex;justify-content:space-between;gap:16px;padding:10px 2px;border-bottom:1px dashed #EAE0C6;font-size:14.5px}
.prow:last-child{border-bottom:none}
.prow span{color:#000000;font-weight:600}
.prow b{font-weight:700;text-align:right}
.act-row{display:flex;gap:11px;padding:11px 4px;border-bottom:1px dashed #EAE0C6;font-size:14.5px;line-height:1.5}
.act-row:last-child{border-bottom:none}
.act-row .adot{width:9px;height:9px;border-radius:50%;background:#7CC4F5;flex:none;margin-top:7px}
.act-row span{color:#000000;font-size:13px;display:block}
.up-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:28px}
@media (max-width:820px){.up-grid{grid-template-columns:1fr}}
.fld{display:block;margin-bottom:17px}
.fld>span{display:block;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8A7B52;margin-bottom:7px}
.fld input,.fld textarea,.fld select{width:100%;border:1.5px solid #E7DCC0;border-radius:12px;padding:12px 14px;font:inherit;font-size:15.5px;color:var(--ink);background:#FFFFFF;min-height:48px}
.fld textarea{resize:vertical;line-height:1.55}
.fld input:focus,.fld textarea:focus,.fld select:focus{border-color:var(--velvet-600);outline:none;box-shadow:0 0 0 4px rgba(113,9,158,.1)}
.fld-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:520px){.fld-row{grid-template-columns:1fr}}
label.dropzone{display:block;cursor:pointer;margin-bottom:16px;position:relative}
label.dropzone b{display:block;color:var(--ink);font-size:15px;margin-bottom:3px}
.dropzone .fname{display:block;margin-top:8px;font-size:13.5px;color:#000;font-weight:700}
.up-check{border:1px solid #EFE3C2;border-radius:14px;padding:16px 18px;background:#FFFDF4}
.up-check b{font-size:14.5px;display:block;margin-bottom:8px}
.up-check ul{margin:0;padding:0;list-style:none}
.up-check li{padding:5px 0 5px 24px;position:relative;font-size:14px;color:#000000}
.up-check li::before{content:"";position:absolute;left:2px;top:10px;width:12px;height:7px;border-left:3px solid var(--gold-500);border-bottom:3px solid var(--gold-500);transform:rotate(-48deg)}
.up-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:8px;padding-top:20px;border-top:1px solid #EFE6CE}
.up-actions .up-note{font-size:13.5px;color:#000000;line-height:1.5;flex:1 1 260px}

/* ---------- book detail page ---------- */
#bookPage,.subpage{background:var(--paper);color:var(--ink);padding:118px 0 90px;min-height:100dvh}
#bookPage[hidden],.subpage[hidden]{display:none}
#payGroupPayoneer[hidden],#payGroupBank[hidden],#payGroupPaypal[hidden]{display:none!important}
@media (max-width:860px){#bookPage,.subpage{padding-top:162px}}
.bp-back{display:inline-flex;align-items:center;gap:9px;background:var(--card);border:1.5px solid var(--line);color:var(--ink);border-radius:999px;font-weight:700;font-size:14.5px;padding:11px 20px;min-height:46px}
.bp-back:hover{border-color:var(--gold-500)}
.bp-grid{display:grid;grid-template-columns:.92fr 1.08fr;column-gap:46px;margin-top:28px;align-items:start}
@media (max-width:860px){.bp-grid{grid-template-columns:1fr}}
.bp-col-left,.bp-col-right{min-width:0}
.bp-col-right{display:flex;flex-direction:column}
.bp-cover{position:relative;border-radius:8px;overflow:hidden;box-shadow:0 18px 30px -18px rgba(42,1,60,.32);background:#fff}
.bp-cover img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;background:#fff;display:block}
.bp-cover.sample-on img{object-fit:contain;background:#fff}
.bp-samples{display:flex;gap:12px;margin-top:16px}
.bp-samples figure{margin:0;flex:1 1 0;max-width:120px;min-width:0}
.bp-samples img{display:block;width:100%;aspect-ratio:1/1;height:auto;object-fit:cover;object-position:top;border-radius:0;border:1px solid var(--line)}
.bp-samples figcaption{font-size:12.5px;color:var(--ink-soft);font-weight:600;margin-top:7px;text-align:center}
.bp-samples figure.on img{outline:3px solid var(--gold-500);outline-offset:-1px}
.bp-prevthumb button{position:relative}
.prev-eye{position:absolute;inset:0;display:grid;place-items:center;color:#fff;pointer-events:none}
.prev-eye i{width:46px;height:46px;border-radius:50%;background:rgba(30,1,51,.72);display:grid;place-items:center;font-style:normal}
.bp-crumb{font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-600)}
.bp-head h1{font-family:var(--font-display);font-size:clamp(31px,4vw,44px);font-weight:700;line-height:1.1;margin:10px 0 8px;letter-spacing:-.01em}
.bp-stars{display:flex;align-items:center;gap:10px;color:var(--gold-500)}
.bp-stars .stars{margin:0}
.bp-stars span{font-size:14px;color:var(--ink-soft);font-weight:600}
.bp-desc{font-size:17.5px;line-height:1.7;color:var(--ink);margin:10px 0 0}
.bp-about{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.bp-about h3{font-family:var(--font-display);font-size:20px;font-weight:700;margin:0}
.bp-about .bp-desc{margin-top:10px}
.bp-buyrow{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0 4px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.bp-buyrow .price{font-size:30px;line-height:1.05}
.bp-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.bp-actions .btn,.bp-actions .btn-peek{white-space:nowrap}
@media (max-width:560px){
  .bp-buyrow .price{font-size:29px}
  .bp-actions{margin-left:0;width:100%}
  .bp-actions .btn-peek,.bp-actions .btn{flex:1}
}
.bp-inside{margin-top:0}
.bp-details{margin-top:20px}
.bp-details .drow{display:flex;justify-content:space-between;gap:18px;padding:11px 2px;border-bottom:1px dashed var(--line);font-size:15px}
.bp-details .drow span{color:var(--ink-soft);font-weight:600}
.bp-details .drow b{font-weight:700;text-align:right}
.bp-samples figure button{display:block;width:100%;background:none;border:none;padding:0;text-align:center;min-height:0}
.bp-samples figure button img{transition:transform .35s ease,box-shadow .35s ease}
.bp-samples figure button:hover img{transform:translateY(-3px)}
.viewprev{display:flex;flex-direction:column;align-items:center;gap:3px;margin-top:0;font-size:12.5px;font-weight:700;color:#000;letter-spacing:.02em;white-space:nowrap}
.bp-reviews{margin-top:28px;border-top:1px solid var(--line);padding-top:24px}
.bp-reviews h3{font-family:var(--font-display);font-size:21px;font-weight:700;margin:0 0 14px}
.rev-summary{display:flex;align-items:center;gap:16px;background:#FFFFFF;border:1px solid var(--line);border-radius:16px;padding:16px 20px;margin-bottom:16px;flex-wrap:wrap}
.rev-summary .big{font-family:var(--font-display);font-size:36px;font-weight:600;line-height:1}
.rev-summary .stars{margin:0 0 4px}
.rev-summary span{font-size:13.5px;color:var(--ink-soft);font-weight:600;display:block}
.rev-card{border:1px solid var(--line);border-radius:16px;padding:18px 20px;margin-bottom:12px;background:#FFFFFF}
.rev-top{display:flex;align-items:center;gap:12px}
.rev-ava{width:42px;height:42px;flex:none;border-radius:50%;background:var(--velvet-800);color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px}
.rev-top b{font-size:15.5px;display:block;line-height:1.25}
.rev-top span{font-size:12.5px;color:var(--ink-soft);font-weight:600}
.rev-verified{margin-left:auto;flex:none;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#2E7D4F;background:#E7F4EC;border-radius:999px;padding:5px 10px}
.rev-card .stars{margin:10px 0 6px}
.rev-card p{margin:0;font-size:15.5px;line-height:1.6;color:var(--ink)}
/* ---------- pdf preview viewer ---------- */
.pv-card{background:#FFFFFF;color:var(--ink);border-radius:24px;max-width:680px;width:100%;max-height:94dvh;overflow-y:auto;position:relative;z-index:2;box-shadow:0 24px 44px -20px rgba(0,0,0,.45);padding:26px 26px 24px}
.pv-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:16px;padding-right:44px}
.pv-head h3{font-family:var(--font-display);font-size:23px;font-weight:600;margin:0;line-height:1.18}
.pv-head p{margin:4px 0 0;font-size:13.5px;color:var(--ink-soft);font-weight:600}
.pv-stage{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#FFFFFF}
.pv-stage img{width:100%;max-height:56dvh;object-fit:contain;background:#FFFFFF}
.pv-bar{display:flex;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}
.pv-nav{width:46px;height:46px;border-radius:50%;border:1.5px solid var(--line);background:#FFFFFF;color:var(--ink);display:grid;place-items:center;padding:0;flex:none}
.pv-nav:hover{border-color:var(--gold-500)}
.pv-nav:disabled{opacity:.35;cursor:default}
.pv-count{font-weight:700;font-size:14.5px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.pv-thumbs{display:flex;gap:10px;margin-top:16px}
.pv-thumbs button{flex:1;border:2px solid var(--line);border-radius:10px;overflow:hidden;padding:0;background:#FFFFFF;min-height:0}
.pv-thumbs button.on{border-color:var(--gold-500)}
.pv-thumbs img{width:100%;height:74px;object-fit:cover;object-position:top}
.pv-note{font-size:13px;color:var(--ink-soft);margin:14px 0 0;line-height:1.5}
.bp-also{margin-top:70px}
.bp-also h2{font-family:var(--font-display);font-size:27px;font-weight:600;margin:0 0 20px}
.also-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media (max-width:860px){.also-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.also-grid{grid-template-columns:1fr}}
.also-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;gap:14px;align-items:center;text-align:left;width:100%;transition:transform .25s ease,box-shadow .25s ease}
.also-card:hover{transform:translateY(-3px);box-shadow:0 12px 22px -14px rgba(42,1,60,.25)}
.also-card img{width:62px;height:62px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.also-card b{font-family:var(--font-display);font-size:16.5px;font-weight:600;display:block;line-height:1.25}
.also-card span{font-size:13px;color:var(--ink-soft);font-weight:600}
.also-card .ap{margin-left:auto;font-family:var(--font-display);font-weight:600;font-size:17px;flex:none}
[data-book]{cursor:pointer}

/* ---------- bundle ---------- */
.bundle{background:linear-gradient(135deg,var(--velvet-900),var(--velvet-700) 60%,var(--velvet-800));border-radius:28px;color:var(--hero-ink);padding:clamp(28px,5vw,54px);display:grid;grid-template-columns:1fr auto;gap:34px;align-items:center;overflow:hidden;position:relative}
@media (max-width:820px){.bundle{grid-template-columns:1fr}}
.bundle h3{font-family:var(--font-display);font-size:clamp(25px,3.2vw,36px);font-weight:600;margin:10px 0 12px;line-height:1.15}
.bundle h3 em{font-style:italic;color:var(--gold-400)}
.bundle p{color:var(--hero-soft);font-size:16.5px;line-height:1.6;max-width:48ch;margin:0 0 22px}
.bundle .bprice{display:flex;align-items:baseline;gap:14px;margin-bottom:20px}
.bundle .bprice b{font-family:var(--font-display);font-size:38px;font-weight:600}
.bundle .bprice s{color:var(--hero-soft);font-size:20px}
.save-tag{background:var(--gold-400);color:#33230A;font-weight:700;font-size:13px;padding:6px 12px;border-radius:999px}
.bundle-covers{display:flex}
.bundle-covers img{width:104px;height:104px;object-fit:cover;border-radius:0;border:3px solid rgba(255,255,255,.85);box-shadow:0 12px 20px -10px rgba(0,0,0,.4);margin-left:-30px;transform:rotate(var(--rot,0deg));background:#fff}
.bundle-covers img:first-child{margin-left:0}
@media (max-width:480px){.bundle-covers img{width:82px;height:82px;margin-left:-22px}}

/* ---------- faq ---------- */
.faq-list{margin-top:38px;border-top:1px solid var(--line)}
details.faq{border-bottom:1px solid var(--line)}
details.faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:14px;padding:22px 6px;font-family:var(--font-display);font-weight:600;font-size:18.5px;min-height:56px}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary .fx{margin-left:auto;flex:none;width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;color:var(--gold-600);transition:transform .3s ease;font-weight:700}
details.faq[open ] summary .fx{transform:rotate(45deg)}
details.faq .fa{padding:0 6px 24px;color:var(--ink-soft);font-size:16px;line-height:1.65;max-width:70ch}

/* ---------- final cta / footer ---------- */
.final{text-align:center;padding:110px 0 96px}
.final-mark{display:inline-block;margin:0 auto 6px}
.final h2{font-family:var(--font-display);font-size:clamp(32px,4.8vw,52px);font-weight:600;line-height:1.1;margin:16px 0 16px;color:#fff}
.final h2 em{font-style:italic;color:var(--gold-400)}
.final p{color:var(--hero-soft);font-size:17.5px;max-width:52ch;margin:0 auto 30px;line-height:1.6}
.join{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;max-width:520px;margin:0 auto}
.join input{flex:1 1 260px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.08);color:#fff;padding:14px 22px;font:inherit;font-size:16px;min-height:52px;outline:none}
.join input::placeholder{color:#A794D6}
.join input:focus{border-color:var(--gold-400)}
.join .btn{white-space:nowrap;flex:none}
.join-msg{margin-top:16px;font-weight:700;color:var(--gold-300);min-height:24px}
body>footer{background:var(--velvet-900);padding:40px 0 46px;color:#E2CCF7}
.foot{display:flex;flex-wrap:wrap;align-items:center;column-gap:24px;row-gap:18px}
.foot nav{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-left:auto;column-gap:22px;row-gap:8px}
.foot nav a{text-decoration:none;font-weight:600;font-size:14.5px;line-height:1.4;padding:4px 2px;color:#F3E8FD}
.foot nav a:hover{color:var(--gold-300)}
.foot small{width:100%;font-size:13px;line-height:1.6;color:#C9A1EC;border-top:1px solid rgba(255,255,255,.14);padding-top:16px}
/* ROUND 53 item 2 — footer: stacked, left-aligned, 2-column link grid on phone */
@media (max-width:860px){
  body>footer{padding:32px 0 36px}
  .foot{flex-direction:column;align-items:flex-start;row-gap:20px}
  .foot nav{display:grid;grid-template-columns:1fr 1fr;width:100%;margin-left:0;column-gap:20px;row-gap:8px}
  .foot nav a{font-size:14px;padding:4px 0}
  .foot small{padding-top:14px}
  .pagefoot{flex-direction:column;align-items:flex-start;row-gap:20px;padding-top:32px;padding-bottom:36px}
  .pagefoot nav{display:grid;grid-template-columns:1fr 1fr;width:100%;margin-left:0;column-gap:20px;row-gap:8px}
  .pagefoot nav a{font-size:14px;padding:4px 0}
}

/* ---------- cart drawer / toast ---------- */
.scrim{position:fixed;inset:0;background:rgba(16,5,32,.62);backdrop-filter:blur(3px);z-index:130;opacity:0;pointer-events:none;transition:opacity .3s ease}
.scrim.on{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;height:100dvh;width:min(420px,94vw);background:var(--paper);color:var(--ink);z-index:140;transform:translateX(105%);transition:transform .38s cubic-bezier(.2,.8,.25,1);display:flex;flex-direction:column;box-shadow:-16px 0 32px rgba(0,0,0,.28)}
.drawer.on{transform:none}
.drawer header{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}
.drawer header b{font-family:var(--font-display);font-size:20px;font-weight:600}
.x-btn{margin-left:auto;width:42px;height:42px;border-radius:50%;border:1.5px solid var(--line);background:var(--card);color:var(--ink);font-size:17px;display:grid;place-items:center;padding:0}
.cart-items{flex:1;overflow-y:auto;padding:8px 22px}
.cart-row{display:flex;gap:13px;padding:15px 0;border-bottom:1px dashed var(--line);align-items:center}
.cart-row img{width:52px;height:52px;border-radius:0;object-fit:cover;background:#fff}
.cart-row b{font-size:15.5px;display:block;line-height:1.25}
.cart-row span{font-size:13px;color:var(--ink-soft)}
.cart-row .rm{margin-left:auto;background:none;border:none;color:#B0492F;font-weight:700;font-size:13.5px;padding:10px;min-height:40px}
.cart-empty{text-align:center;color:var(--ink-soft);padding:52px 12px;font-size:16px;line-height:1.6}
.drawer footer{padding:20px 22px;border-top:1px solid var(--line)}
.totrow{display:flex;justify-content:space-between;font-size:16px;margin-bottom:6px}
.totrow.grand{font-family:var(--font-display);font-size:20px;font-weight:600}
.drawer .note{font-size:13px;color:var(--ink-soft);text-align:center;margin-top:12px;line-height:1.5}
.wfull{width:100%}
.incl{margin:16px 0;padding:0;list-style:none}
.incl li{padding:7px 0 7px 28px;position:relative;font-size:15px;font-weight:500}
.incl li::before{content:"";position:absolute;left:2px;top:12px;width:14px;height:8px;border-left:3px solid var(--gold-500);border-bottom:3px solid var(--gold-500);transform:rotate(-48deg)}
.sample-row{display:flex;gap:10px;margin-top:14px}
.sample-row img{width:74px;height:96px;object-fit:cover;object-position:top;border-radius:8px;border:1px solid var(--line)}
#toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,80px);background:var(--velvet-900);color:#fff;border:1px solid rgba(227,188,92,.5);padding:14px 22px;border-radius:999px;font-weight:700;font-size:15px;z-index:160;transition:transform .4s cubic-bezier(.2,.8,.25,1);box-shadow:0 14px 28px -12px rgba(0,0,0,.4);max-width:92vw;text-align:center}
#toast.on{transform:translate(-50%,0)}
@media (prefers-reduced-motion: reduce){
  .marquee-track{animation-duration:80s}
  html{scroll-behavior:auto}
}

/* ================= ROUND 6 ================= */
/* (7) Christmas hero: green at the top, deep red at the bottom */
.hero[data-season="christmas"]{background:
  radial-gradient(720px 420px at 88% -6%,rgba(255,255,255,.10),transparent 58%),
  linear-gradient(168deg,#1E7D3E 0%,#0E5A2C 30%,#27512A 52%,#5E1A16 76%,#7A0A14 100%)}
/* (13)+(14a) desktop shelf: 4 per row, kept premium */
.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
@media (max-width:1080px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.grid{grid-template-columns:minmax(0,1fr)}}
.grid.list{grid-template-columns:minmax(0,1fr)}
.card{padding:18px 16px 16px}
.card h3{font-size:20.5px}
/* (14b)+(14c) ROUND 28: cards are price-only now — the buy row holds just the price (Buy Now + Add to basket live on the book page only). The button rules below are dead but kept. */
.card .buyrow{flex-wrap:nowrap;gap:6px;align-items:center}
.card .price{font-size:20px;display:inline-flex;align-items:baseline;white-space:nowrap;line-height:1}
.card .price s{font-size:13px;margin-right:5px}
.card .buyrow .btn-peek,.card .buyrow .btn-sm{white-space:nowrap;flex:none}
.card .buyrow .btn-peek{padding:9px 10px;font-size:12.5px;min-height:42px}
.card .buyrow .btn-sm{padding:9px 11px;font-size:12.5px;min-height:42px}
.grid.list .card .buyrow{flex-wrap:nowrap}
/* (1)+(2) phone list view: compact rows; price on its own line (ROUND 28: the side-by-side buttons are gone) */
@media (max-width:600px){
  .grid.list{gap:12px}
  .grid.list .card{padding:10px 12px;gap:12px}
  .grid.list .coverwrap{flex-basis:92px}
  .grid.list .card .grade{font-size:11px;margin-top:0;letter-spacing:.14em}
  .grid.list .card h3{font-size:17.5px;margin:3px 0}
  .grid.list .card .meta{font-size:13px}
  .grid.list .card .card-seller{margin-top:6px}
  .grid.list .card .skills{margin:7px 0 2px;gap:4px}
  .grid.list .card .list-excerpt{font-size:13.5px;margin-top:7px}
  .grid.list .card .skills i{font-size:11px;padding:3px 8px}
  .grid.list .card .buyrow{flex-wrap:nowrap;padding-top:8px;gap:8px}
  .grid.list .card .buyrow .price{font-size:19px}
  .grid.list .card .buyrow .spacer{display:none}
  .grid.list .card .buyrow .btn-peek,.grid.list .card .buyrow .btn-sm{flex:1 1 0;text-align:center;justify-content:center}
}
/* (3)+(4) book page layout: desktop left column = cover + About (full description, chips, details);
   ROUND 28: order is head -> What's inside -> buy box -> seller block.
   phone order = cover, title, What's inside, price/buttons, delivery, seller, About, reviews */
.bp-grid{grid-template-areas:"media head" "media inside" "media buy" "media seller" "about reviews"}
.bp-media{grid-area:media}
.bp-head{grid-area:head}
.bp-buy{grid-area:buy}
.bp-seller{grid-area:seller}
.bp-inside{grid-area:inside}
.bp-about{grid-area:about}
.bp-reviews{grid-area:reviews}
.bp-desc2{font-size:16px;color:var(--ink-soft)}
@media (max-width:860px){
  .bp-grid{grid-template-columns:1fr;grid-template-areas:"media" "head" "inside" "buy" "seller" "about" "reviews"}
}
/* (10) closing section + footer: one single shade */
section.final{background:var(--velvet-900)}
/* (11) bundle covers stay inside the card */
.bundle-covers{flex-wrap:wrap;justify-content:flex-end;row-gap:12px;max-width:600px;padding:4px}
.bundle-covers img{width:96px;height:96px;margin-left:-24px}
@media (max-width:820px){.bundle-covers{justify-content:flex-start}}
@media (max-width:480px){.bundle-covers img{width:76px;height:76px;margin-left:-18px}}
/* (9a) upload page: bigger and more spacious */
#page-upload .wrap{width:min(1360px,100% - 40px)}
#view-upload .vp-body{padding:38px 42px 44px}
@media (max-width:640px){#view-upload .vp-body{padding:26px 20px 30px}#page-upload .wrap{width:calc(100% - 32px)}}
#view-upload .fld{margin-bottom:22px}
#view-upload .fld input,#view-upload .fld textarea,#view-upload .fld select{padding:15px 16px;font-size:16px;min-height:54px}
/* ROUND 45 — FILE TYPE chevron: nudge the down-arrow a little left (Sunny 2026-11-22).
   Chrome's NATIVE select arrow ignores padding-right (measured: padding 16→24px
   moved it 0px), so the arrow is drawn as a background SVG — the same chevron
   path/stroke as the Grades button, same black — positioned right 8px center,
   its centre ~8px further from the edge than the native arrow sat. Scoped to #upFileType
   only; every other select keeps its native arrow. Size, text, behavior unchanged. */
#view-upload #upFileType{padding-right:24px;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;background-size:15px 15px}
#view-upload .up-grid{gap:38px}
.disc-note{font-size:13.5px;color:#000000;line-height:1.55;margin:-4px 0 18px}
/* (9b-9f) subjects / skills tag fields with category picker */
.tagfield{position:relative;border:1.5px solid #E7DCC0;border-radius:12px;padding:9px 10px;background:#FFFFFF;display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-height:56px;cursor:text}
.tagfield:focus-within{border-color:var(--velvet-600);box-shadow:0 0 0 4px rgba(113,9,158,.1)}
.tf-chips{display:flex;flex-wrap:wrap;gap:7px}
.tf-chip{display:inline-flex;align-items:center;gap:6px;background:var(--velvet-100);border:1px solid var(--velvet-200);color:#000;font-weight:700;font-size:13.5px;border-radius:999px;padding:5px 6px 5px 12px;line-height:1.2}
.tf-chip.auto{background:var(--gold-100);border-color:#EBD9A0;color:#6D5510}
.tf-chip button{border:none;background:rgba(66,1,93,.14);width:20px;height:20px;min-height:20px;border-radius:50%;display:grid;place-items:center;font-size:13px;line-height:1;color:inherit;padding:0;flex:none}
#view-upload .tagfield input.tf-input{flex:1 1 150px;border:none;padding:4px;min-height:34px;background:transparent;box-shadow:none;font-size:15px}
.tf-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:40;background:#FFFFFF;border:1px solid #E7DCC0;border-radius:14px;box-shadow:0 20px 34px -16px rgba(42,1,60,.3);max-height:330px;overflow-y:auto;padding:14px 16px;text-align:left;cursor:default}
.tf-panel h5{margin:14px 0 7px;font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-600)}
.tf-panel h5:first-child{margin-top:0}
.tf-items{display:flex;flex-wrap:wrap;gap:6px}
.tf-items button{border:1.5px solid var(--line);background:#FFFFFF;color:var(--ink);border-radius:999px;padding:7px 12px;font-weight:600;font-size:13.5px;min-height:36px}
.tf-items button.on{background:var(--velvet-800);border-color:var(--velvet-800);color:#fff}
.tf-note{font-size:13.5px;color:#000000;line-height:1.55;margin:-8px 0 18px}

/* ================= ROUND 7 ================= */
/* (7) red star on required fields */
.req{color:#D63A2A;font-style:normal;font-weight:800}
/* (16) card badges: always one line, smaller on phones */
.badge{white-space:nowrap}
@media (max-width:600px){.badge{font-size:9.5px;padding:4px 7px;top:8px;left:8px;letter-spacing:.05em}}
/* (12) header sign-in button */
.btn-signin{background:#FFFFFF;border:1.5px solid var(--line);color:var(--ink)}
.btn-signin:hover{border-color:var(--gold-500)}
/* (2) four square upload boxes */
/* ROUND 46 fold-in 4 — the four boxes sit in ONE row (Sunny, 2026-11-23 00:04/00:05): 4 equal columns, smaller gaps; labels shrunk below so they fit the smaller boxes. */
.sq-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.sqbox{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;aspect-ratio:1/1;border:2px dashed #D9C88F;border-radius:8px;padding:8px 5px;background:#FFFFFF;color:#8A7B52;font-weight:600;font-size:13.5px;cursor:pointer;overflow:hidden}
.sqbox:hover{border-color:var(--gold-500)}
.sqbox .sq-t{color:var(--ink);font-size:11px;line-height:1.25;font-weight:700}
.sqbox .sq-s{font-size:10.5px;line-height:1.3}
.sqbox .fname{font-size:10px;color:#000;font-weight:700;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sqbox .sq-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;background:#fff}
.sqbox.has-img .sq-t{position:absolute;left:0;right:0;bottom:0;z-index:2;background:rgba(30,1,51,.8);color:#fff;padding:6px 4px;font-size:11px}
/* ROUND 46 fold-in 4 — narrow phones: tighter gaps/padding + smaller type so the four labels still fit on one line in the ~74px boxes at 390px (measured: "Sample page 1" bold 9.5px = 66.0px in Nunito Sans vs 68px content width). */
@media (max-width:520px){.sq-grid{gap:6px}.sqbox{padding:6px 3px}.sqbox .sq-t{font-size:9.5px}.sqbox .sq-s{font-size:9px}.sqbox .fname{font-size:9px}.sqbox.has-img .sq-t{font-size:9.5px;padding:6px 3px}}
.sqbox.has-img .sq-s,.sqbox.has-img .fname{display:none}
/* (3) answer-key tick */
.akey{display:flex;gap:12px;align-items:flex-start;border:1.5px solid #E7DCC0;border-radius:12px;padding:14px 16px;margin-bottom:22px;cursor:pointer;background:#FFFDF4}
.akey input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:var(--velvet-800);cursor:pointer}
.akey b{display:block;font-size:15px;color:var(--ink)}
.akey small{display:block;font-size:13px;color:#000000;margin-top:2px;line-height:1.45}
/* (5) live preview card on the upload page */
.up-preview{margin-top:22px}
.up-preview-label{font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8A7B52;margin:0 0 10px}
.up-preview .card{box-shadow:0 14px 26px -18px rgba(42,1,60,.22)}
.lp-cover-ph{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#8A7B52;font-weight:700;font-size:13.5px;line-height:1.5;padding:12px}
/* (12)+(17) sign in / sign up pages */
.auth-card{display:grid;grid-template-columns:.94fr 1.06fr;background:#FFFFFF;border:1px solid #EFE6CE;border-radius:24px;overflow:hidden;margin-top:26px;box-shadow:0 24px 44px -28px rgba(42,1,60,.28)}
@media (max-width:820px){.auth-card{grid-template-columns:1fr}}
.auth-side{background:radial-gradient(420px 300px at 110% -10%,rgba(251,172,10,.22),transparent 60%),linear-gradient(165deg,var(--velvet-700) 0%,var(--velvet-900) 78%);color:var(--hero-ink);padding:40px 36px}
.auth-side img{height:61px;width:auto}
.auth-side h2{font-family:var(--font-display);font-size:29px;font-weight:700;line-height:1.15;margin:24px 0 10px}
.auth-side p{color:var(--hero-soft);font-size:15.5px;line-height:1.6;margin:0}
.auth-perks{list-style:none;margin:26px 0 0;padding:0}
.auth-perks li{padding:7px 0 7px 28px;position:relative;font-size:15px;font-weight:600}
.auth-perks li::before{content:"";position:absolute;left:2px;top:12px;width:14px;height:8px;border-left:3px solid var(--gold-500);border-bottom:3px solid var(--gold-500);transform:rotate(-48deg)}
.auth-form{padding:40px 38px 36px}
@media (max-width:560px){.auth-form{padding:30px 22px 28px}.auth-side{padding:30px 24px}}
.auth-form h2{font-family:var(--font-display);font-size:30px;font-weight:700;margin:12px 0 8px}
.auth-sub{color:var(--ink-soft);font-size:15.5px;line-height:1.55;margin:0 0 24px}
.auth-rowline{display:flex;justify-content:flex-end;margin:-6px 0 18px}
.auth-rowline a{font-size:14px;font-weight:700;color:#000;text-decoration:none}
.auth-rowline a:hover{color:var(--gold-600)}
.auth-switch{margin:20px 0 0;text-align:center;font-size:14.5px;color:var(--ink-soft)}
.auth-switch a{font-weight:700;color:#000;text-decoration:none}
.auth-switch a:hover{color:var(--gold-600)}
.auth-note{font-size:13px;color:#000000;text-align:center;margin:14px 0 0;line-height:1.5}

/* ================= ROUND 8 ================= */
/* (13) filter bar: ONE line of 4 dropdown buttons — Grade, Subject, Skill, Price */
.filterbar{position:relative;flex:1 1 auto;min-width:0}
.fdrop-row{display:flex;gap:8px}
.fdrop{flex:1 1 0;min-width:0}
.fbtn{width:100%;display:flex;align-items:center;gap:7px;background:#FFFFFF;border:1.5px solid var(--line);border-radius:999px;padding:10px 14px;font-weight:700;font-size:14.5px;color:var(--ink);min-height:48px;transition:border-color .18s ease,background .18s ease}
.fbtn:hover{border-color:var(--gold-500)}
.fbtn .flabel{flex:none}
.fbtn .fval{color:var(--gold-600);font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fbtn svg{margin-left:auto;flex:none;color:var(--gold-600);transition:transform .25s ease}
.fbtn[aria-expanded="true"] svg{transform:rotate(180deg)}
.fbtn.has-sel{border-color:var(--velvet-600);background:var(--velvet-100)}
.fpanel{position:absolute;top:calc(100% + 10px);left:0;right:0;z-index:70;background:#FFFFFF;border:1px solid #EDDFC0;border-radius:18px;box-shadow:0 20px 36px -16px rgba(13,0,22,.28);padding:14px 16px}
.fpanel[hidden]{display:none!important}
.fpanel .fp-title{font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-600);margin:0 0 10px}
.fp-opts{display:flex;flex-wrap:wrap;gap:7px;max-height:236px;overflow-y:auto}
.fopt{border:1.5px solid var(--line);background:#FFFFFF;color:var(--ink);border-radius:999px;padding:9px 15px;font-weight:700;font-size:14px;min-height:42px}
.fopt:hover{border-color:var(--gold-500)}
.fopt.on{background:var(--velvet-800);border-color:var(--velvet-800);color:#fff}
@media (max-width:700px){
  .filterbar{flex:1 1 100%}
  .fbtn{padding:9px 10px;font-size:13px;gap:5px;min-height:44px}
  .fbtn .fval{display:none}
  .view-toggle{margin-left:auto}
}
/* (5) upload: grade multiple-select tick boxes */
.grade-checks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.grade-checks label{display:flex;align-items:center;gap:8px;border:1.5px solid #E7DCC0;border-radius:10px;padding:9px 11px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer;background:#FFFFFF;min-height:44px}
.grade-checks input{width:19px;height:19px;accent-color:var(--velvet-800);flex:none;margin:0;cursor:pointer;padding:0;border:none;min-height:0}
.grade-checks label:has(input:checked){border-color:var(--velvet-600);background:var(--velvet-100)}
.fld-row .akey{margin-bottom:0;align-self:start}
/* (12) max upload size labels */
.max-note{display:block;margin-top:7px;font-size:12.5px;color:#8A7B52;font-weight:700}
/* (14) checkout page */
.co-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:28px;align-items:start;margin-top:28px}
@media (max-width:860px){.co-grid{grid-template-columns:1fr}}
.co-card{background:#FFFFFF;border:1px solid #EFE6CE;border-radius:20px;padding:26px 26px 24px;margin-bottom:20px;box-shadow:0 16px 30px -24px rgba(42,1,60,.18)}
.co-card h3{font-family:var(--font-display);font-size:20px;font-weight:700;margin:0 0 6px}
.co-card .co-sub{font-size:14.5px;color:var(--ink-soft);margin:0 0 16px;line-height:1.55}
.co-opts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:520px){.co-opts{grid-template-columns:1fr}}
.co-opt{display:flex;gap:11px;align-items:flex-start;border:1.5px solid #E7DCC0;border-radius:14px;padding:15px 16px;cursor:pointer;background:#FFFDF4}
.co-opt input{width:20px;height:20px;accent-color:var(--velvet-800);margin:2px 0 0;flex:none;cursor:pointer}
.co-opt b{display:block;font-size:15px}
.co-opt small{display:block;font-size:13px;color:#000000;margin-top:2px;line-height:1.45}
.co-opt small a{font-weight:700;color:#000}
.co-opt:has(input:checked){border-color:var(--velvet-600);background:var(--velvet-100)}
.demo-pill{display:inline-block;background:var(--gold-400);color:#33230A;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;border-radius:999px;padding:4px 10px;vertical-align:3px;margin-left:8px}
.co-item{display:flex;gap:13px;align-items:center;padding:12px 0;border-bottom:1px dashed var(--line)}
.co-item img{width:48px;height:48px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.co-item b{font-size:15px;display:block;line-height:1.25}
.co-item span{font-size:12.5px;color:var(--ink-soft);font-weight:600}
.co-item .cp{margin-left:auto;font-family:var(--font-display);font-weight:700;font-size:16px;text-align:right;flex:none}
.co-item .cp s{display:block;font-size:12.5px;color:var(--ink-soft);font-weight:500}
.co-tot{display:flex;justify-content:space-between;font-size:15px;padding:7px 0;color:var(--ink-soft);font-weight:600}
.co-tot.grand{font-family:var(--font-display);font-size:20px;font-weight:700;color:var(--ink);border-top:1px solid var(--line);margin-top:8px;padding-top:14px}
.co-rules{background:var(--velvet-900);color:var(--hero-ink);border-radius:16px;padding:20px 22px;margin-top:20px}
.co-rules>b{font-family:var(--font-display);font-size:16.5px;display:block;margin-bottom:8px}
.co-rules p{margin:0 0 10px;font-size:14.5px;line-height:1.6;color:var(--hero-soft)}
.co-rules p:last-child{margin-bottom:0}
.co-rules p b{color:#FFFFFF}
#placeOrderBtn:disabled{opacity:.45;cursor:default;transform:none}

/* ================= ROUND 9 ================= */
/* (4) no empty gap above the filter bar */
#shop{padding-top:26px}
@media (max-width:640px){#shop{padding-top:20px}}
/* (1) filter buttons + Grid/List toggle stay in ONE line at every width */
.shop-tools{flex-wrap:nowrap;gap:10px}
.fpanel{left:0;right:auto;width:min(560px,calc(100vw - 32px))}
@media (max-width:700px){
  .filterbar{flex:1 1 auto}
  .fdrop-row{gap:6px}
  .fbtn{padding:8px 9px;font-size:12.5px;gap:4px}
  .view-toggle{padding:3px;gap:2px;margin-left:auto}
  .vt-btn{padding:7px 9px;font-size:12.5px;gap:5px;min-height:38px}
}
@media (max-width:420px){
  .vt-btn{font-size:0;gap:0;padding:8px 10px}
  .vt-btn svg{width:16px;height:16px}
}
/* (2)+(3) header: Sign in + Sign up back in the header, cart at the very far right */
@media (max-width:860px){
  .logo{position:static;transform:none;height:auto}
  .nav-actions{order:3;margin-left:auto}
  .nav-actions .btn{display:inline-flex;padding:10px 14px;font-size:13.5px;min-height:42px}
  .nav-search{order:4}
}
@media (max-width:480px){
  .nav-actions{gap:6px}
  .nav-actions .btn{padding:8px 10px;font-size:12.5px;min-height:40px}
  .cart-btn{width:44px;height:44px}
}
/* (5) hamburger: expandable Grades / Skill / Price under Shop */
.mm-acc{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:none;border:none;border-bottom:1px solid #F6ECD2;font-weight:700;font-size:16.5px;color:var(--ink);padding:15px 4px;min-height:52px;text-align:left;font-family:inherit;cursor:pointer}
.mm-acc svg{color:var(--gold-600);flex:none;transition:transform .25s ease}
.mm-acc[aria-expanded="true"] svg{transform:rotate(180deg)}
.mm-sub{padding:10px 4px 14px;border-bottom:1px solid #F6ECD2}
.mm-sub[hidden]{display:none!important}
.mm-sub .mm-grades{padding:0}
/* (6) upload page: grades as a drop-down multi-select */
.gdrop{position:relative}
.gbtn{width:100%;display:flex;align-items:center;gap:8px;background:#FFFFFF;border:1.5px solid #E7DCC0;border-radius:12px;padding:13px 14px;font:inherit;font-size:15.5px;font-weight:600;color:var(--ink);min-height:54px;text-align:left;cursor:pointer}
.gbtn:hover{border-color:var(--gold-500)}
.gbtn svg{margin-left:auto;flex:none;color:var(--gold-600);transition:transform .25s ease}
.gbtn[aria-expanded="true"] svg{transform:rotate(180deg)}
.gpanel{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:45;background:#FFFFFF;border:1px solid #E7DCC0;border-radius:14px;box-shadow:0 20px 34px -16px rgba(42,1,60,.3);padding:10px;max-height:308px;overflow-y:auto}
.gpanel[hidden]{display:none!important}
.gpanel .gp-note{font-size:12.5px;color:#8A7B52;font-weight:600;padding:4px 10px 8px;margin:0;line-height:1.5}
.gpanel label{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;font-size:14.5px;font-weight:600;color:var(--ink);cursor:pointer;min-height:44px}
.gpanel label:hover{background:var(--velvet-100)}
.gpanel label:has(input:checked){background:var(--velvet-100);color:#000}
#view-upload .gpanel input{width:19px;height:19px;min-height:0;padding:0;accent-color:var(--velvet-800);flex:none;margin:0;cursor:pointer;border:none}
/* (10) My Store page */
.store-banner{position:relative;border-radius:22px;overflow:hidden;background:linear-gradient(120deg,var(--velvet-800),var(--velvet-600));min-height:210px}
.store-banner img.sb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.store-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(30,1,51,.04),rgba(30,1,51,.42));pointer-events:none}
/* .sb-change retired in ROUND 28 — the banner now carries the .sb-cam camera icon instead. */
.store-head{display:flex;gap:20px;align-items:flex-end;margin-top:-52px;padding:0 26px;position:relative;z-index:4;flex-wrap:wrap}
.store-logo{width:112px;height:112px;border-radius:26px;background:var(--velvet-800);border:4px solid #FFFFFF;box-shadow:0 12px 24px -12px rgba(42,1,60,.4);display:grid;place-items:center;color:#FFFFFF;font-family:var(--font-display);font-weight:800;font-size:29px;position:relative;overflow:hidden;flex:none}
.store-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.store-id{flex:1 1 300px;min-width:0;padding-bottom:4px}
.store-id h2{font-family:var(--font-display);font-size:30px;font-weight:800;margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;line-height:1.15}
.store-verified{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:var(--velvet-100);color:#000;border:1px solid var(--velvet-200);padding:5px 10px;border-radius:999px;white-space:nowrap}
.store-tag{margin:7px 0 0;color:var(--ink-soft);font-size:15.5px;line-height:1.55;max-width:54ch}
.store-meta{margin:9px 0 0;font-size:13.5px;font-weight:700;color:var(--ink-soft)}
.store-meta .sm-star{color:var(--gold-500)}
.store-actions{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:8px;align-items:center}
.store-logobtn{cursor:pointer}
.store-stats{margin-top:26px;margin-bottom:0}
.store-about{margin-top:22px;margin-bottom:0}
.store-tools{margin:28px 0 0}
.store-search{display:flex;align-items:center;background:#FFFFFF;border:1.5px solid var(--line);border-radius:999px;padding:4px 4px 4px 18px;max-width:560px}
.store-search:focus-within{border-color:var(--velvet-600);box-shadow:0 0 0 4px rgba(113,9,158,.12)}
.store-search svg{color:var(--gold-600);flex:none;margin-right:9px}
.store-search input{flex:1;min-width:0;border:none;outline:none;background:none;font:inherit;font-size:15.5px;color:var(--ink);min-height:42px}
.store-search input::placeholder{color:#000000}
.store-cats{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
#storeGrid{margin-top:24px}
#storeGrid .card{opacity:1!important}
@media (max-width:640px){
  .store-banner{min-height:150px;border-radius:18px}
  .store-head{margin-top:-40px;padding:0 12px;gap:14px}
  .store-logo{width:86px;height:86px;font-size:23px;border-radius:20px}
  .store-id h2{font-size:24px}
  .store-actions{padding-bottom:0}
}

/* ================= ROUND 10 ================= */
/* (11) header: signed-in circular profile picture replaces Sign in / Sign up */
.auth-btns{display:contents}
.profile-wrap{position:relative;flex:none}
.profile-btn{position:relative;width:48px;height:48px;border-radius:50%;border:1.5px solid var(--line);background:var(--velvet-800);color:#FFFFFF;display:grid;place-items:center;padding:0;overflow:hidden;font-weight:800;font-size:16px;font-family:inherit}
.profile-btn:hover{border-color:var(--gold-500)}
.profile-btn[hidden]{display:none}
.profile-btn img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media (max-width:480px){.profile-btn{width:44px;height:44px;font-size:14.5px}}
/* (12) profile picture menu — seller sees My Store first, at the very top */
.profile-menu{position:absolute;top:calc(100% + 10px);right:0;width:min(302px,calc(100vw - 24px));background:#FFFFFF;border:1px solid #EDDFC0;border-radius:18px;box-shadow:0 20px 36px -16px rgba(13,0,22,.28);overflow:hidden;z-index:95;text-align:left}
.profile-menu[hidden]{display:none}
.pm-head{padding:16px 18px 14px;border-bottom:1px solid #F6ECD2;background:#FFFFFF}
.pm-head b{font-family:var(--font-display);font-size:17px;font-weight:700;display:block;line-height:1.2}
.pm-head>span{display:block;font-size:13px;color:var(--ink-soft);font-weight:600;margin-top:2px}
.pm-type{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:var(--velvet-100);color:#000;border:1px solid var(--velvet-200);padding:4px 9px;border-radius:999px}
.pm-head .pm-type{margin-top:9px;color:#000} /* ROUND 28: .pm-head>span (ink-soft) outranks .pm-type on specificity, so the black is set here too */
.pm-item{display:flex;align-items:center;gap:11px;width:100%;padding:12px 18px;font-weight:700;font-size:15px;color:var(--ink);text-decoration:none;background:none;border:none;text-align:left;min-height:48px;font-family:inherit;cursor:pointer}
.pm-item:hover{background:#F4EDFB}
.pm-item[hidden]{display:none}
.pm-item svg{color:var(--gold-600);flex:none}
.pm-item .pm-arrow{margin-left:auto;color:var(--gold-600);font-weight:700}
.pm-store{background:var(--velvet-100);color:#000;border-bottom:1px solid var(--velvet-200)}
.pm-store:hover{background:var(--velvet-200)}
.pm-out{border-top:1px solid #F6ECD2;color:#B0492F}
.pm-out svg{color:#B0492F}
/* demo toggle on the sign-in / sign-up pages: preview the header in each state */
.auth-demo{margin-top:22px;border:1.5px dashed #D9C88F;border-radius:14px;padding:14px 16px;background:#FFFDF4}
.auth-demo-label{display:block;font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8A7B52;margin-bottom:10px}
.auth-demo-btns{display:flex;gap:7px;flex-wrap:wrap}
.auth-demo-btns button{flex:1 1 0;border:1.5px solid var(--line);background:#FFFFFF;border-radius:999px;padding:9px 8px;font-weight:700;font-size:13.5px;min-height:42px;color:var(--ink);white-space:nowrap}
.auth-demo-btns button.on{background:var(--velvet-800);border-color:var(--velvet-800);color:#FFFFFF}
/* (13) the PDF preview is a standalone page now */
#page-preview .pv-card{max-height:none;overflow:visible;margin:22px auto 0;box-shadow:0 18px 30px -18px rgba(42,1,60,.25)}
.pv-kicker{margin:0 0 4px;font-size:11.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-600)}
/* (13) the basket is a page now, not a drawer */
#page-basket .cart-items{flex:none;overflow:visible;padding:0}
.basket-foot{border-top:1px solid var(--line);padding-top:18px;margin-top:8px}
.basket-foot .note{font-size:13px;color:var(--ink-soft);text-align:center;margin:12px 0 0;line-height:1.5}
/* My Account page */
.acc-head{display:flex;gap:18px;align-items:center;margin-bottom:10px;flex-wrap:wrap}
.acc-ava{width:76px;height:76px;border-radius:50%;background:var(--velvet-800);color:#FFFFFF;display:grid;place-items:center;font-weight:800;font-size:25px;overflow:hidden;flex:none;position:relative}
.acc-ava img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.acc-head h3{margin:0 0 3px}
.acc-head p{margin:0;color:var(--ink-soft);font-size:14.5px;font-weight:600}
.acc-head .pm-type{margin-top:8px}
.acc-links{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}
@media (max-width:560px){.acc-links{grid-template-columns:1fr}}
.acc-link{text-align:left;background:#FFFFFF;border:1px solid var(--line);border-radius:16px;padding:18px 20px;font-family:inherit;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.acc-link:hover{transform:translateY(-3px);box-shadow:0 12px 22px -14px rgba(42,1,60,.25);border-color:#E3D096}
.acc-link b{font-family:var(--font-display);font-size:17.5px;font-weight:700;display:block;margin-bottom:4px;color:var(--ink)}
.acc-link span{font-size:14px;color:var(--ink-soft);line-height:1.5;display:block}
/* Orders page */
.ord-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:4px}
.ord-top b{font-family:var(--font-display);font-size:17px;font-weight:700}
.ord-top>span{color:var(--ink-soft);font-weight:600;font-size:14px}
.ord-status{margin-left:auto;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#2E7D4F;background:#E7F4EC;border-radius:999px;padding:5px 10px}

/* ================= ROUND 11 — filter arrow + dropdown stacking fix ================= */
/* (1) chevron stays INSIDE the pill on desktop and phone: the label and the
   selected value are allowed to shrink (min-width:0 + ellipsis) so the
   fixed-size chevron is never pushed past the pill's right padding/border,
   and the button clips anything that could still overflow. */
.fbtn{overflow:hidden;max-width:100%}
.fbtn .flabel{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.fbtn .fval{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.fbtn svg{flex:0 0 auto;width:14px;height:14px;display:block;margin-left:4px}
.fdrop{min-width:0}
@media (max-width:700px){
  .fbtn{padding:8px 11px 8px 12px;gap:4px}
  .fbtn svg{width:12px;height:12px;margin-left:2px}
}
@media (max-width:420px){
  .fbtn{padding:7px 9px 7px 10px;font-size:12px}
}
/* (2) open filter panel always renders ON TOP of the book cards/thumbnails:
   the toolbar gets its own high stacking layer and the shelf grids sit in a
   low layer, so the panel's z-index is no longer trapped underneath the
   cards' GSAP transform stacking contexts. */
.shop-tools{position:relative;z-index:90}
.filterbar{z-index:95}
.fpanel{z-index:300}
#bookGrid{position:relative;z-index:1}
#storeGrid{position:relative;z-index:1}

/* ================= ROUND 12 — My Store redesign + upload ticks + bundle ================= */
/* (2)+(3) My Store: CIRCULAR logo straddling the banner — half in, half out.
   Only the logo overlaps; the head row itself starts below the banner, so the
   store name, tagline and meta all sit UNDER the cover, beside the logo. */
.store-banner{min-height:286px} /* ROUND 48 — banner a touch taller (Sunny 2026-11-23, "maybe arektu height barano dorkar"): 262 -> 286px. Logo overlap untouched (.store-logo margin-top -85px/-67px), text stays centred by .sb-art flex. */
.store-head{margin-top:0;padding:0 8px;align-items:flex-start;gap:22px;flex-wrap:nowrap}
.store-logo{border-radius:50%;width:130px;height:130px;margin-top:-65px;border:5px solid #FFFFFF;font-size:30px;position:relative;z-index:5}
.store-id{padding-top:14px}
@media (max-width:640px){
  .store-banner{min-height:188px}
  .store-head{gap:14px;padding:0 2px}
  .store-logo{width:102px;height:102px;margin-top:-51px;border-width:4px;font-size:24px}
  .store-id{padding-top:10px}
  .store-id h2{font-size:23px}
}
/* (5)+(6) My Store body: tall category list on the LEFT, books on the right;
   the store gets the same Grade/Subject/Skill/Price filter line + view toggle */
/* ROUND 50 (C1) — Best sellers mini-list truncated mid-word in a ~101px
   text column ("Alphabet Ad…", "★ 4.9 · 3.2k do…"): the sidebar column
   widens 238 -> 280px, so the text column lands ~154px and every current
   title and rating line fits on one line. */
.store-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:30px;margin-top:30px;align-items:start}
@media (max-width:899px){.store-layout{grid-template-columns:1fr}} /* ROUND 54 — was max-width:900px: at exactly 900px the store must already use the 2-column desktop layout (same 900 threshold as Round 53 Featured), so the single-column rule now ends at 899. */
.store-side{display:flex;flex-direction:column;gap:18px;min-width:0}
@media (min-width:901px){.store-side{position:sticky;top:96px}}
.side-card{border:1px solid var(--line);border-radius:18px;padding:18px 16px;background:#FFFFFF}
.side-card h3{font-family:var(--font-display);font-size:16.5px;font-weight:700;margin:0 0 12px}
.store-cats-v{display:flex;flex-direction:column;gap:4px}
.store-cats-v button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:none;border-radius:11px;padding:11px 12px;font-weight:700;font-size:14.5px;color:var(--ink);min-height:46px;font-family:inherit;cursor:pointer;transition:background .18s ease,color .18s ease}
.store-cats-v button:hover{background:#FBF6E9}
.store-cats-v button.on{background:var(--velvet-800);color:#FFFFFF}
.store-cats-v .sc-n{margin-left:auto;flex:none;font-size:12px;font-weight:800;background:var(--paper-2);color:var(--gold-600);border-radius:999px;padding:3px 9px;line-height:1.4}
.store-cats-v button.on .sc-n{background:rgba(255,255,255,.22);color:#FFFFFF}
.best-row{display:flex;gap:11px;align-items:center;width:100%;background:none;border:none;border-bottom:1px dashed var(--line);padding:10px 2px;text-align:left;cursor:pointer;font-family:inherit;min-height:0;color:var(--ink)}
.best-row:last-child{border-bottom:none;padding-bottom:2px}
.best-row:first-child{padding-top:2px}
.best-row img{width:40px;height:40px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.best-row .bt{min-width:0;flex:1}
/* ROUND 50 (C1) — titles get a 2-line allowance, so a longer title wraps
   instead of truncating mid-word. */
.best-row .bt b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;font-size:13.5px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.best-row .bt span{font-size:12px;color:var(--ink-soft);font-weight:600;display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.best-row .bp2{font-family:var(--font-display);font-weight:700;font-size:14.5px;flex:none}
.store-main{min-width:0}
.store-main .store-search{max-width:none}
.store-filterline{margin:16px 0 0;position:relative;z-index:90}
.store-filterline .filterbar{z-index:95}
#page-store .grid:not(.list){grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1500px){#page-store .grid:not(.list){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1080px){#page-store .grid:not(.list){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){#page-store .grid:not(.list){grid-template-columns:minmax(0,1fr)}}
/* (4) ROUND 31 moved "About this store" UP into the header's right
   column — REVERTED in ROUND 32: it sits below the books again. */
.store-about{margin-top:36px}
/* (7)+(8)+(9) Upload — answer key: only "Answer key included", a premium tick,
   and the control is the SAME size as the other fields (54px, bottom-aligned
   with the Grades drop-down button beside it) */
.akey{align-items:center;min-height:54px;padding:10px 16px;background:#FFFFFF;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.fld-row .akey{align-self:end;margin-bottom:22px}
.akey b{font-size:15.5px}
.akey input[type="checkbox"]{-webkit-appearance:none;appearance:none;width:25px;height:25px;min-height:0;border:2px solid #D9C88F;border-radius:8px;background:linear-gradient(180deg,#FFFFFF,#FBF6E9);position:relative;flex:none;margin:0;padding:0;cursor:pointer;box-shadow:inset 0 1px 2px rgba(42,1,60,.08),0 1px 3px rgba(42,1,60,.10);transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .15s ease}
.akey input[type="checkbox"]:active{transform:scale(.92)}
.akey input[type="checkbox"]:checked{background:linear-gradient(160deg,var(--velvet-600),var(--velvet-800));border-color:var(--velvet-800);box-shadow:0 4px 10px -4px rgba(66,1,93,.55)}
.akey input[type="checkbox"]:checked::after{content:"";position:absolute;left:7px;top:3px;width:6px;height:11px;border:solid #FFFFFF;border-width:0 3px 3px 0;transform:rotate(45deg)}
.akey input[type="checkbox"]:focus-visible{outline:3px solid rgba(113,9,158,.35);outline-offset:2px}
.akey:has(input:checked){border-color:var(--velvet-600);background:#FCF8FF;box-shadow:0 12px 24px -16px rgba(66,1,93,.35)}
/* (10) Upload — grade drop-down ticks: NO colour at all. Plain neutral box,
   dark tick, and the selected row gets no coloured background. */
.gpanel label:hover{background:#F7F4EC}
.gpanel label:has(input:checked){background:transparent;color:var(--ink)}
#view-upload .gpanel input[type="checkbox"]{-webkit-appearance:none;appearance:none;width:20px;height:20px;min-height:0;border:2px solid #B9B0A0;border-radius:6px;background:#FFFFFF;position:relative;flex:none;margin:0;padding:0;cursor:pointer;box-shadow:none;transition:border-color .15s ease}
#view-upload .gpanel input[type="checkbox"]:checked{border-color:#57534E;background:#FFFFFF}
#view-upload .gpanel input[type="checkbox"]:checked::after{content:"";position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #44403C;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
#view-upload .gpanel input[type="checkbox"]:focus-visible{outline:3px solid rgba(87,83,78,.35);outline-offset:2px}
/* (11) Bundle card: one row of covers, centred in the middle */
.bundle-covers{justify-content:center;margin-inline:auto}
@media (max-width:820px){.bundle-covers{justify-content:center}}

/* ================= ROUND 13 ================= */
/* (4) LOGO WORDMARK ON PHONE: the "VelvetTome" text shows beside the V mark
   at every width — it is only sized down on small phones so the row still fits */
@media (max-width:480px){
  .logo{gap:5px}
  .logo img.mark{height:35px;margin-bottom:-.5px}
  .logo img.word{display:block;height:17px}
}
/* (1) PHONE HEADER: Sign in / Sign up are NOT in the phone header.
   Desktop (>860px) is untouched — the buttons stay in the header there. */
@media (max-width:860px){
  #authBtns{display:none!important}
}
/* (2) PHONE HAMBURGER BOTTOM: Sign in / Sign up sit at the very bottom of the
   hamburger menu on phone only; never in the desktop hamburger, and never
   shown once signed in (the profile circle by the cart takes over) */
.mm-auth{display:none}
@media (max-width:860px){
  .mm-auth{display:flex;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #F6ECD2}
  .mm-auth .btn{flex:1 1 0}
  body.signed-in .mm-auth{display:none}
}
/* (7) PHONE FILTER PILLS: the pill row scrolls sideways (swipe) with FULL
   labels — nothing truncates — while the Grid/List toggle stays fixed at the
   right end, outside the scrolling row. The drop-down panels are siblings of
   the row (not inside it), so they still render on top of the cards. */
@media (max-width:700px){
  .fdrop-row{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-wrap:nowrap;padding:2px 1px}
  .fdrop-row::-webkit-scrollbar{display:none}
  .fdrop{flex:0 0 auto}
  .fbtn{width:auto;white-space:nowrap}
  .fbtn .flabel{flex:none;overflow:visible;text-overflow:clip}
  .shop-tools{gap:8px}
}
/* (8) MY STORE TOGGLE: exactly the homepage toggle's size at every width, so
   the store's pills get the same room and their labels show in full */
.store-filterline .view-toggle{padding:4px;gap:4px;margin-left:auto}
.store-filterline .vt-btn{padding:8px 15px;font-size:14px;min-height:40px;gap:7px}
@media (max-width:700px){
  .store-filterline .view-toggle{padding:3px;gap:2px}
  .store-filterline .vt-btn{padding:7px 9px;font-size:12.5px;min-height:38px;gap:5px}
}
@media (max-width:420px){
  .store-filterline .vt-btn{font-size:0;gap:0;padding:8px 10px}
  .store-filterline .vt-btn svg{width:16px;height:16px}
}
/* (9) MY STORE SORT: the sort choices live inside the Price drop-down panel,
   under their own small heading — no separate sort control */
.fp-sort-head{flex:1 1 100%;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-600);margin:12px 0 2px;padding-top:10px;border-top:1px dashed #EDDFC0}
/* (10) MY STORE CATEGORIES: one SMALL pencil icon beside the Categories
   heading opens a compact add / rename editor — no big button */
.side-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.side-head h3{margin:0}
.cat-edit-btn{width:34px;height:34px;min-height:34px;border-radius:50%;border:1.5px solid var(--line);background:#FFFFFF;color:#000000;display:grid;place-items:center;padding:0;flex:none}
.cat-edit-btn:hover{border-color:var(--gold-500);background:#FBF6E9}
.cat-edit{border-top:1px dashed var(--line);padding-top:12px;margin-top:2px;margin-bottom:14px}
.cat-edit[hidden]{display:none}
.cat-edit label{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8A7B52;margin:12px 0 6px}
.cat-edit label:first-child{margin-top:0}
.cat-edit input,.cat-edit select{width:100%;border:1.5px solid #E7DCC0;border-radius:10px;padding:10px 12px;font:inherit;font-size:14.5px;color:var(--ink);background:#FFFFFF;min-height:44px}
.cat-edit .ce-btn{margin-top:10px;width:100%;min-height:42px;padding:9px 14px;font-size:14px}
.cat-edit .ce-note{font-size:12.5px;color:var(--ink-soft);line-height:1.5;margin:10px 0 0}

/* ================= ROUND 14 ================= */
/* (1) PHONE HAMBURGER — SIGN IN / SIGN UP REACHABLE: the panel's old
   max-height allowance (76px) was measured for the one-row desktop header,
   but the phone header is TWO rows (~134px), so the panel ran ~58px past
   the bottom of the screen and its last row — Sign in / Sign up — could
   never be scrolled into view. The panel now fits the screen exactly and
   scrolls, and the Sign in / Sign up row is STICKY at the panel's bottom:
   the buttons stay visible and tappable however far the menu is scrolled. */
@media (max-width:860px){
  .mobile-menu{max-height:calc(100dvh - 134px);padding-bottom:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  body.signed-in .mobile-menu{padding-bottom:20px}
  .mm-auth{position:sticky;bottom:0;z-index:3;background:#FFFFFF;margin:14px -20px 0;padding:14px 20px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid #F6ECD2;box-shadow:0 -14px 18px -16px rgba(42,1,60,.35)}
}
/* (2) PHONE LOGO CENTRE — SIGNED OUT ONLY: on phone the V mark + VelvetTome
   wordmark sit in the MIDDLE of the header ONLY when nobody is logged in
   (hamburger on the left, cart on the right). Desktop keeps the logo at
   the left as now. Signed-in handling lives in Round 15 below. */
@media (max-width:860px){
  body:not(.signed-in) .logo{position:absolute;left:50%;top:10px;height:48px;transform:translateX(-50%);display:flex;align-items:flex-end;z-index:6}
}
/* (3) MY STORE, DESKTOP — ICON-ONLY TOGGLE + BIGGER PILLS: the store's
   Grid/List toggle drops its "Grid view" / "List view" words (icons only,
   like the smallest phones) and the Grade / Subject / Skill / Price pills
   grow a step, so every label and chosen value shows in full on one line —
   no sideways scrolling on PC. Phone keeps the swipeable pill row. */
@media (min-width:701px){
  #storeViewToggle{gap:2px;padding:4px}
  #storeViewToggle .vt-btn{font-size:0;gap:0;padding:10px 13px;min-height:44px}
  #storeViewToggle .vt-btn svg{width:17px;height:17px}
  .store-filterline .fbtn{padding:12px 18px;font-size:15px;min-height:52px;gap:8px}
  .store-filterline .fbtn .fval{font-size:13.5px}
}
/* (4) PROFILE MENU — PREMIUM ICONS: every menu icon now sits in its own
   soft-gradient tile with a fine ring and a subtle top sheen — velvet tiles
   for the account pages, gold tiles for the seller's two actions, a warm
   blush tile for Sign out — with finer 1.8-weight glyphs inside. */
.pm-item{gap:13px;padding:11px 18px}
.pm-item svg{width:19px;height:19px;box-sizing:content-box;padding:6px;border-radius:9px;color:#000000;background:linear-gradient(150deg,#FCF5FF,#EEE0FB);border:1px solid var(--velvet-200);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 5px -2px rgba(66,1,93,.28);transition:border-color .18s ease,transform .18s ease}
.pm-item:hover svg{border-color:var(--gold-500);transform:translateY(-1px)}
.pm-store svg,.pm-upload svg,.pm-payout svg{color:var(--gold-600);background:linear-gradient(150deg,#FFF7DE,#FCE9B4);border-color:#EDD48A;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 5px -2px rgba(154,102,0,.35)}
.pm-out svg{color:#B0492F;background:linear-gradient(150deg,#FFF4EF,#FBE2D9);border-color:#F0C9BB;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 5px -2px rgba(176,73,47,.3)}

/* ================= ROUND 15 ================= */
/* (1) PHONE LOGO POSITION — CONDITIONAL ON LOGIN STATE: the centred phone
   logo (Round 14) applies ONLY while signed out. The moment someone is
   signed in — buyer OR seller, i.e. body.signed-in is set by setAuth() and
   the circular profile picture shows beside the cart — the logo returns to
   its PREVIOUS place: in the normal flex flow at the LEFT of the header,
   next to the hamburger (order 2, between the hamburger and the actions),
   exactly as it was before the centring. Desktop (>860px) is untouched:
   neither rule below applies there, so the desktop logo stays as now. */
@media (max-width:860px){
  body:not(.signed-in) .logo{position:absolute;left:50%;top:10px;height:48px;transform:translateX(-50%);display:flex;align-items:flex-end;z-index:6}
  body.signed-in .logo{position:static;left:auto;top:auto;height:auto;transform:none;z-index:auto}
}

/* ================= ROUND 15 ================= */
.policy-card h3{margin-top:26px}
.policy-card h3:first-child{margin-top:0}
.policy-card p{font-size:15.5px;line-height:1.65;color:var(--ink);margin:0 0 12px}
.policy-card p:last-child{margin-bottom:0}
.qbtn.warn{background:#FBF0D3;color:#7A5200}
.qbtn.hold{background:#EFE7FB;color:#000}
.queue-row{flex-wrap:wrap}
.queue-row .acts2{margin-left:auto}
.seller-edit-btn{margin-left:auto}
.email-frame{max-width:640px;margin:28px auto 0;background:#FFFFFF;border:1px solid #EFE6CE;border-radius:24px;overflow:hidden;box-shadow:0 24px 44px -28px rgba(42,1,60,.28)}
.email-head{background:var(--velvet-900);padding:22px 28px;display:flex;align-items:flex-end;gap:8px}
.email-head img{height:47px;width:auto;margin-bottom:-7px}
.email-body{padding:30px 30px 28px;text-align:center}
.email-body h3{font-family:var(--font-display);font-size:26px;font-weight:700;margin:0 0 10px}
.email-lede{color:var(--ink-soft);font-size:15.5px;line-height:1.6;margin:0 auto 20px;max-width:44ch}
.email-cover{width:min(300px,80%);margin:0 auto;border-radius:0;box-shadow:0 16px 28px -16px rgba(42,1,60,.35);aspect-ratio:1/1;object-fit:cover;display:block;background:#fff}
.email-book{font-family:var(--font-display);font-size:21px;font-weight:700;margin:16px 0 2px}
.email-meta{color:var(--ink-soft);font-weight:600;font-size:14px;margin:0}
.email-details{text-align:left;margin:18px 0 20px}
.email-note{font-size:13px;color:var(--ink-soft);line-height:1.55;margin:16px 0 0}
.review-gate{margin-top:24px;margin-bottom:16px} /* ROUND 54 item 5 — the
   summary box and the "Buy this book to leave a review" note read as
   stuck together: the two 16px margins collapsed to a single 16px gap.
   24px above is a clear gap (also on desktop, which measured the same
   16px); 16px below separates the note from the first review card,
   which previously touched it at exactly 0px. Book page only — the gate
   exists nowhere else. */
/* ROUND 33+34 FIX (Victor audit): the bundle detail page's seller-only
   buttons need the same rule — .btn sets display:inline-flex, which
   would otherwise override the [hidden] attribute */
#bdEditBundle[hidden],#bdDeleteBundle[hidden]{display:none!important}
.review-note{border:1.5px dashed var(--line);border-radius:14px;padding:16px 18px;color:var(--ink-soft);font-size:15px;line-height:1.55;background:#FFFDF4}
.review-form-card{border:1px solid #EFE3C2;border-radius:14px;padding:18px;background:#FFFDF4}

/* ================= ROUND 16 ================= */
/* (1) EDIT PAGE — "Notify buyers" tick: the SAME premium .akey tick as the
   upload page's "Answer key included", full-width above the Save row, with
   a link under it to the "book updated" email preview */
.notify-tick{margin:22px 0 0}
.notify-link{font-size:14px;margin:12px 2px 0}
.notify-link a{font-weight:700;color:#000}
/* (3) MY STORE CATEGORIES — rows sit closer together: less vertical padding
   and a smaller gap. Count badges, the pencil editor and Best sellers are
   untouched. */
.store-cats-v{gap:2px}
.store-cats-v button{padding:7px 12px;min-height:40px}
/* (4) PROFILE MENU ICONS — the gradient tiles are GONE: every icon is a bare
   glyph sitting directly on the white menu, ALL in the one deep purple
   (seller items included — no gold, no blush), and the glyphs are a step
   bigger than before. Applies to buyer and seller menus alike. */
.pm-item svg{width:26px;height:26px;padding:0;border:none;border-radius:0;background:none;box-shadow:none;color:#000000}
.pm-item:hover svg{transform:none}
.pm-store svg,.pm-upload svg,.pm-payout svg{color:#000000;background:none;border-color:transparent;box-shadow:none}
.pm-out svg{color:#B0492F}

/* ================= ROUND 17 ================= */
/* (7) PROFILE MENU — the "→" arrow after My Store is deep purple now, like
   the icons. Sign out's TEXT stays red (its icon is already deep purple
   from Round 16) — only the arrow changes here. */
.pm-item .pm-arrow{color:#000000}
/* (16) STORE BANNER — a designed wide banner (deep purple + gold, store
   branding drawn in CSS) instead of a book cover stretched wide. The
   uploaded image (banner change) still layers on top when one is chosen. */
.store-banner{background:var(--velvet-900)}
.sb-art{position:absolute;inset:0;display:flex;align-items:center;background:
  radial-gradient(620px 320px at 88% -30%,rgba(251,172,10,.38),transparent 60%),
  radial-gradient(520px 280px at -12% 130%,rgba(251,172,10,.16),transparent 55%),
  linear-gradient(118deg,var(--velvet-950) 0%,var(--velvet-900) 34%,var(--velvet-800) 68%,var(--velvet-600) 100%)}
.sb-art::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,209,102,.35) 1.6px,transparent 1.7px);background-size:30px 30px;opacity:.35;pointer-events:none}
.sb-art-in{position:relative;margin-left:168px;padding:22px 190px 22px 0;max-width:820px}
.sb-kicker{display:block;font-size:12px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-300);margin-bottom:9px}
.sb-title{display:block;font-family:var(--font-display);font-size:clamp(23px,3.2vw,37px);font-weight:800;line-height:1.14;color:#FFFFFF}
.sb-title em{font-style:normal;color:var(--gold-400)}
.sb-sub{display:block;margin-top:9px;font-size:15px;font-weight:600;line-height:1.5;color:var(--velvet-200);max-width:46ch}
.sb-stars{position:absolute;right:34px;bottom:20px;color:var(--gold-400);font-size:19px;letter-spacing:10px;pointer-events:none}
@media (max-width:640px){
  .sb-art-in{margin-left:108px;padding:16px 56px 16px 0}
  .sb-kicker{font-size:10.5px;margin-bottom:6px}
  .sb-kicker-tail{display:none}
  .sb-title{font-size:20px}
  .sb-sub{font-size:12.5px;margin-top:6px}
  .sb-stars{display:none}
}
/* (4) CART DEDUPE — buttons for books already owned / already in the basket */
.btn:disabled{opacity:.62;cursor:default;box-shadow:none}
.btn:disabled:hover{transform:none}
/* (11) unknown-category note, shown above the shelf */
.cat-note{margin:0 0 18px;border:1.5px dashed var(--line);border-radius:var(--r-md);padding:14px 18px;color:var(--ink-soft);font-size:15px;line-height:1.55;background:#FFFDF4}
.cat-note b{color:var(--ink)}
/* (17) FOOTER — Sign in / Sign up hide once signed in (the header already
   swaps; the footers now follow). Applies to the main footer and every
   sub-page .pagefoot band. */
body.signed-in .pagefoot nav a[data-dash="signin"],
body.signed-in .pagefoot nav a[data-dash="signup"],
body.signed-in>footer nav a[data-dash="signin"],
body.signed-in>footer nav a[data-dash="signup"]{display:none}

/* ================= ROUND 18 ================= */
/* The buyer receipt email now lists BOTH books in the order — each with its
   own cover and its own download button, plus a review button per book.
   Sign-up started from checkout now returns to checkout afterwards (just
   like sign-in already did), with the basket intact.
   The checkout email box is prefilled with the signed-in account's OWN
   email — the seller's email in seller state, the buyer's in buyer state.
   (JS/markup only this round — no CSS rules added.) */

/* ================= ROUND 21 ================= */
/* (2) PHONE STORE BANNER — ROUND 28: the "Change banner" button is gone
   (a camera icon sits bottom-right instead), so the 62px top padding that
   cleared it is removed too; the taller banner (254px) stays. */
@media (max-width:640px){
  .store-banner{min-height:274px} /* ROUND 48 — phone banner likewise a touch taller: 254 -> 274px. Logo overlap untouched. */
}
/* (4) SELLER ACCOUNT pill in the profile-menu header: keeps its original
   lavender background (var(--velvet-100), same as the buyer pill) now that
   the menu header itself is white. Text, shape, padding and border stay
   exactly as they are; the My Account page pill is untouched. */
body.is-seller .pm-head .pm-type{background:var(--velvet-100)}

/* ================= ROUND 22 ================= */
/* My Store horizontal overflow — ROOT-CAUSE fix. Book cards carried a
   ~378px min-content width (the price + Buy Now + Add to basket + Edit row
   was flex-wrap:nowrap with flex:none buttons), and plain 1fr grid tracks
   cannot shrink below min-content, so the grid overflowed its container
   and the last column was cut off (measured at 360/390/720/1024/1600px).
   Tracks now use minmax(0,1fr) everywhere (edited in place above); here
   the cards and their children may shrink, and the buy row wraps onto a
   second line ONLY when it cannot fit on one — at widths where the row
   already fits, it stays on the exact same single line as before. */
.card{min-width:0}
.card>*,.card-main>*,.card .buyrow>*{min-width:0}
.card .buyrow{flex-wrap:wrap}
.grid.list .card .buyrow{flex-wrap:wrap}

/* ================= ROUND 23 — pagination (TPT-style) ================= */
/* Home/shop shelf: 24 books per page (4 columns × 6 rows).
   My Store shelf: 18 books per page (3 columns × 6 rows).
   Controls show ONLY when the shelf spans more than one page; the
   "Showing X–Y of Z books" line always shows. */
.pager{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin-top:30px}
.pager[hidden]{display:none!important}
.pager-btn{min-width:44px;height:44px;padding:0 12px;border-radius:999px;border:1.5px solid var(--line);background:#FFFFFF;color:var(--ink);font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center;font-family:inherit;transition:border-color .18s ease,background .18s ease,color .18s ease}
.pager-btn:hover:not(:disabled){border-color:var(--gold-500)}
.pager-btn.on{background:var(--velvet-800);border-color:var(--velvet-800);color:#FFFFFF}
.pager-btn:disabled{opacity:.38;cursor:default}
.pager-btn svg{flex:none;display:block}
.showing-line{text-align:center;color:var(--ink-soft);font-size:14.5px;font-weight:600;margin:14px 0 0;font-variant-numeric:tabular-nums}

/* ================= ROUND 24 — seller block on the book page ================= */
/* Sits in the right column directly below the buy box (ROUND 28 moved the buy box below "What's inside"): circular store logo,
   seller name (link to the storefront) + Verified seller badge + follower
   count, and a Follow / Following toggle button. On phones the button drops
   to its own full-width line so nothing is clipped at 360px. */
.bp-seller{min-width:0}
.bp-seller-card{display:flex;align-items:center;gap:14px;background:#FFFFFF;border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-top:14px}
.bp-seller-logo{width:56px;height:56px;border-radius:50%;overflow:hidden;flex:none;background:var(--velvet-800);display:block;box-shadow:0 6px 14px -6px rgba(42,1,60,.35)}
.bp-seller-logo img{width:100%;height:100%;object-fit:cover;display:block}
.bp-seller-info{flex:1 1 auto;min-width:0}
.bp-seller-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bp-seller-name a{font-family:var(--font-display);font-size:17.5px;font-weight:700;color:var(--ink);text-decoration:none;line-height:1.2}
.bp-seller-name a:hover{color:#000;text-decoration:underline}
.bp-seller-meta{margin:4px 0 0;font-size:13.5px;color:var(--ink-soft);font-weight:600}
.bp-seller-meta a{color:#000;font-weight:700;text-decoration:none;white-space:nowrap}
.bp-seller-meta a:hover{text-decoration:underline}
.bp-follow{flex:none;white-space:nowrap}
@media (max-width:560px){
  .bp-seller-card{flex-wrap:wrap}
  /* ROUND 54 item 4 — the info block wrapped below the logo on phones:
     its flex-basis:auto sized it to its max-content (name + badge on one
     line, ~288px) which did not fit the ~256px beside the 56px logo, so
     the whole block dropped to its own row and left the logo alone.
     Basis 0 makes it take the space beside the logo instead; the name
     row wraps internally (it already has flex-wrap:wrap). Desktop
     untouched — there the info already sits beside the logo. */
  .bp-seller-info{flex:1 1 0;min-width:0}
  .bp-follow{flex:1 1 100%}
}

/* ================= ROUND 25 — store header: Follow + social links ================= */
/* TPT pattern: under the store name / rating line, a pill Follow button with a
   row of small GREY SQUARE social icons (logo only) immediately to its right.
   The follower count lives in the metadata line above. The pencil opens a
   small editor (same pattern as the category pencil); only networks with a
   filled link get an icon. One shared follow state drives this button and
   the book-page Follow button. */
.store-followrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px}
.store-follow{flex:none;white-space:nowrap}
.store-socials{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}
.store-socials:empty{display:none}
.soc-ic{width:34px;height:34px;flex:none;border-radius:8px;background:#8E8B85;color:#FFFFFF;display:grid;place-items:center;text-decoration:none;transition:background .18s ease}
.soc-ic:hover{background:#6E6A63}
.soc-ic svg{display:block}
.soc-edit-btn{flex:none}
.soc-edit{max-width:430px;margin-top:14px;margin-bottom:0;background:#FFFFFF;border:1px solid var(--line);border-top:1px solid var(--line);border-radius:14px;padding:16px}

/* ================= ROUND 28 ================= */
/* (1) CARDS ARE PRICE ONLY (Sunny, TPT pattern): Buy Now + Add to basket
   live on the book page only, so the card buy row is gone — the price
   stands alone. That retires Round 27 wholesale: the 1081–1280px 3-column
   band existed ONLY to fit the buy row, so it is deleted and the shelf is
   back to 4 columns there (base rule above); the buy-row compaction (17px
   price, 11.5px buttons, 16px gap, 13px card padding) is reverted too.
   ROUND 29 removed the seller Edit pill from the covers entirely (the
   seller's edit entry now lives on the My Products page). */
/* (5) MY STORE — live-book count, NOT a box: a single quiet line under the
   store header (see .store-livecount + #storeLiveCount, set in
   renderStoreGrid). The header meta line is untouched. */
.store-livecount{margin:20px 0 0;font-size:14.5px;font-weight:600;color:var(--ink-soft)}
.store-livecount b{color:var(--ink);font-weight:800}
.store-livecount>span{color:var(--gold-500);margin-right:6px}
/* (6c) BANNER CAMERA ICON: the "Change banner" button is gone — a round
   camera icon sits bottom-right on the banner and opens the same file
   picker (#storeBannerFile). */
.sb-cam{position:absolute;right:14px;bottom:14px;z-index:3;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.95);border:none;display:grid;place-items:center;color:var(--ink);cursor:pointer;box-shadow:0 8px 18px -8px rgba(13,0,22,.45)}
.sb-cam:hover{background:#FFFFFF}
/* (6d) STORE PROFILE (My Account, seller only): picture / name / banner. */
.sp-row{display:flex;gap:18px;align-items:flex-start}
.sp-logo{width:84px;height:84px;flex:none;border-radius:50%;overflow:hidden;border:4px solid #FFFFFF;box-shadow:0 10px 20px -10px rgba(42,1,60,.4);background:var(--velvet-800)}
.sp-logo img{width:100%;height:100%;object-fit:cover;display:block}
.sp-fields{flex:1 1 auto;min-width:0}
.sp-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.sp-file{display:inline-flex;align-items:center;gap:7px;cursor:pointer}
@media (max-width:560px){.sp-row{flex-direction:column}}
/* ================= ROUND 29 ================= */
/* (1) CARD LAYOUT — TPT pattern (Lavinia Pop card): a seller row (round
   store pic + store name, linking to the store) sits right under the title,
   and the rating sits BESIDE the price (★ + the book's OWN avg + review
   count, e.g. "★ 4.9 (132)"). The old standalone rate-row is gone from
   cards, so its CSS goes with it. No Subject is rendered on cards — the
   card template never showed one (verified by grep); data-subj stays
   because the Subject filter reads it. The upload live-preview card gets
   the same seller row (a new book has no rating yet, so its price stands
   alone). The price row keeps the was-price strikethrough; flex-wrap stays
   on at desktop widths so a tight 4-column card wraps the rating below
   the price instead of overflowing. */
/* (2) MY PRODUCTS — seller-only list view: cover thumb + title + price,
   with Edit (full upload-parity form, Notify buyers ticked) and Quick Edit
   (the current edit page as-is). No grid toggle on this page. */
.card-seller{display:flex;align-items:center;gap:8px;margin-top:8px;min-width:0;text-decoration:none}
.card-seller img{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:none;background:var(--velvet-800);border:1px solid var(--line);display:block}
.card-seller-name{font-size:13.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.card-seller:hover .card-seller-name{text-decoration:underline}
.card-rating{margin-left:auto;flex:none;font-size:13.5px;font-weight:700;color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.card-rating i{font-style:normal;color:#FBAC0A;margin-right:3px}
.prod-list{display:flex;flex-direction:column;gap:12px;margin-top:26px}
.prod-row{display:flex;align-items:center;gap:16px;background:#FFFFFF;border:1px solid var(--line);border-radius:16px;padding:14px 18px}
.prod-row img{width:56px;height:56px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.prod-info{flex:1 1 auto;min-width:0}
.prod-info b{display:block;font-family:var(--font-display);font-size:18px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prod-info span{display:block;margin-top:3px;font-size:13.5px;color:var(--ink-soft);font-weight:600}
.prod-price{font-family:var(--font-display);font-size:20px;font-weight:700;white-space:nowrap;flex:none}
.prod-price s{font-size:14px;color:var(--ink-soft);font-weight:500;margin-right:6px}
.prod-actions{display:flex;gap:8px;flex:none}
@media (max-width:640px){
  .prod-row{flex-wrap:wrap;gap:12px;padding:14px}
  .prod-actions{flex:1 1 100%}
  .prod-actions .btn{flex:1 1 0;justify-content:center}
}
/* ================= ROUND 30 (final pass) ================= */
/* Cards on the homepage shelf and the My Store shelf carry NO grade line,
   NO ages, NO "pages · PDF" line and NO skill chips — cover, title, seller
   row, price + rating only (see cardHTML). And no deep-purple text anywhere
   on the site: every text colour that was a deep velvet purple is now
   black — card titles and prices included, stated here outright so no
   earlier rule can tint them again. Purple survives only as backgrounds,
   borders and white-on-purple buttons/badges. */
.card h3,.card .price,.card .card-rating,.card .card-seller-name{color:#000000}
/* ================= ROUND 31 ================= */
/* (1) STORE HEADER — TPT system (Sunny, from the Crystal McGinnis
   screenshot): the circular logo stays bottom-LEFT, overlapping the
   banner's bottom edge; the store name + meta + Follow + socials sit
   BELOW the logo, left-aligned. "About this store" moved UP into the
   header's RIGHT column in ROUND 31 — REVERTED in ROUND 32 (back
   below the shelf, single-column header, no right column). The
   "✦ 10 books live" line lives under the name block.
   (2) FEATURED RESOURCES — a TPT-style row of 4 featured books above
   the main shelf, same card style as the shelf but WITHOUT the seller
   row (the whole section is the store's own books). */
.store-headgrid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:28px;padding:22px 8px 0;align-items:start}
.store-headgrid .store-id{padding-top:0}
.store-headgrid .store-about{margin-top:0;margin-bottom:0}
.store-headgrid .store-livecount{margin:16px 0 0}
.store-featured{margin-top:34px}
.shelf-heading{font-family:var(--font-display);font-size:24px;font-weight:700;line-height:1.2;margin:0 0 16px;color:#000}
#page-store #storeFeaturedGrid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}
#storeFeaturedGrid .card{opacity:1!important}
.store-main .shelf-heading{margin:0 0 16px}
@media (max-width:899px){#page-store #storeFeaturedGrid{grid-template-columns:repeat(2,minmax(0,1fr))}} /* ROUND 48 — was repeat(3): with exactly 4 featured books that left a lone orphan card in row 2 (3+1). 2+2 is even at every width in this band (561–899 since ROUND 53 narrowed it from <=1080px). Full diagnosis in the ROUND 48 block at the end of the stylesheet. */
@media (min-width:900px) and (max-width:1080px){#page-store #storeFeaturedGrid{grid-template-columns:repeat(4,minmax(0,1fr))}} /* ROUND 53 (Sunny, 2026-11-23 19:42) — phone in desktop mode lays the page out at ~901–1080px: Featured shows 4 across in this band, same as laptop. Base repeat(4) already yields 4 here; this rule is an explicit guard for the intent. Laptop >=1081 unchanged. */
@media (max-width:900px){.store-headgrid{grid-template-columns:1fr;gap:18px}}
@media (max-width:820px){#page-store #storeFeaturedGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .store-headgrid{padding:16px 2px 0;gap:16px}
  .store-featured{margin-top:28px}
  .shelf-heading{font-size:21px;margin-bottom:12px}
}
@media (max-width:560px){#page-store #storeFeaturedGrid{grid-template-columns:minmax(0,1fr)}}
/* ================= ROUND 32 ================= */
/* (1) ABOUT BACK TO THE BOTTOM — revert of the Round 31 move: the
   header returns to a single column (logo + name block below-left, no
   right column), so .store-headgrid is a plain block now; the About
   card lives below the shelf again (see #page-store markup), heading
   back to "About this store". */
/* (2) LOGO — lift slightly UP (more of it inside the banner) + shift
   slightly RIGHT (off the flush-left edge). Desktop: 130px logo,
   margin-top -65px -> -85px (85px inside / 45px outside, was 65/65);
   head padding-left 8px -> 24px. Phone: 102px logo, -51px -> -67px
   (67px inside / 35px outside); head padding-left 2px -> 14px. */
.store-headgrid{display:block;padding:22px 8px 0}
.store-head{padding:0 8px 0 24px}
.store-logo{margin-top:-85px}
@media (max-width:640px){
  .store-headgrid{padding:16px 2px 0}
  .store-head{padding:0 2px 0 14px}
  .store-logo{margin-top:-67px}
}
/* ================= ROUNDS 33+34 — Featured control + bundle creation ================= */
/* (33) FEATURE STAR — one per My Products row (books + bundles). Gold
   filled star when featured, grey outline star when not; the star
   stands ALONE (no circle/pill around it — Sunny, 2026-11-22). */
.feat-star{flex:none;width:30px;height:30px;border:none;background:none;color:#9B8FB5;font-size:24px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;transition:transform .15s ease,color .15s ease}
.feat-star:hover{transform:scale(1.15);color:#C9A227}
.feat-star.on{color:#FBAC0A}
.feat-star:focus-visible{outline:2px solid var(--gold-400);outline-offset:2px}
.feat-count{margin:14px 0 0;font-size:14.5px;font-weight:600;color:var(--ink-soft)}
.feat-count b{color:#000}
.prod-subhead{font-family:var(--font-display);font-size:20px;font-weight:700;color:#000;margin:30px 0 0}
.prod-info b .prod-tag{display:inline-block;background:var(--velvet-700);color:#fff;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:4px 9px;border-radius:999px;margin-left:8px;vertical-align:2px}
.prod-row .prod-meta-bundle{color:var(--ink-soft)}
/* ================= ROUND 39 — My Products search ================= */
/* The search sits directly below the Featured counter line, above the
   first book row (Sunny, 2026-11-22 — the green mark in his screenshot).
   Same pill as the store search (.store-search): white pill, gold
   magnifier, velvet focus ring. Filters books + bundles live by title;
   FEATURED is never touched by the filter, so a featured book stays
   featured when filtered out and back in. */
.prod-search{margin-top:18px;max-width:560px}
@media (max-width:640px){.prod-search{max-width:none}}
@media (max-width:640px){.feat-star{width:28px;height:28px;font-size:22px}}
/* bundle card collage — auto collage from member covers, same overlapping
   fan style as the homepage bundle offer card (.bundle-covers) */
.card .coverwrap .bcol-fan{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;row-gap:10px;padding:10px}
.card .coverwrap .bcol-fan img{width:82px;height:82px;object-fit:cover;border-radius:0;border:3px solid rgba(255,255,255,.9);box-shadow:0 10px 18px -8px rgba(0,0,0,.45);margin-left:-22px;transform:rotate(var(--rot,0deg));background:#fff}
.card .coverwrap .bcol-fan img:first-child{margin-left:0}
.bundle-meta{font-size:13.5px;color:var(--ink-soft);font-weight:600;margin-top:4px}
.bundle-nbooks{font-size:14px;font-weight:700;color:var(--ink-soft);white-space:nowrap}
.card .coverwrap .badge.bundle-badge{background:var(--velvet-700);color:#fff}
@media (max-width:560px){.card .coverwrap .bcol-fan img{width:70px;height:70px;margin-left:-18px}}
/* (34) UPLOAD MODE SWITCH — Single book (unchanged form) / Create bundle */
.up-modeswitch{display:inline-flex;background:var(--velvet-100);border:1px solid var(--line);border-radius:999px;padding:5px;gap:4px;margin-bottom:22px}
.up-mode{border:0;background:transparent;font-family:var(--font-body);font-size:15px;font-weight:700;color:var(--ink-soft);padding:10px 22px;border-radius:999px;cursor:pointer}
.up-mode.on{background:var(--velvet-800);color:#fff;box-shadow:0 4px 12px -4px rgba(74,29,107,.5)}
.up-mode:focus-visible{outline:2px solid var(--gold-400);outline-offset:2px}
@media (max-width:520px){.up-mode{padding:9px 15px;font-size:14px}}
/* bundle builder: pick list + members list */
.bd-picklist{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto;padding:2px}
.bd-pick{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 12px;cursor:pointer}
.bd-pick:hover{border-color:#C9A227}
.bd-pick input{flex:none;width:18px;height:18px;accent-color:var(--velvet-700)}
.bd-pick img{width:38px;height:38px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.bd-pick b{display:block;font-size:15px;font-weight:700;color:#000;line-height:1.25}
.bd-pick span{display:block;font-size:13px;color:var(--ink-soft);font-weight:600;margin-top:2px}
.bd-pick .bd-pick-price{margin-left:auto;font-family:var(--font-display);font-size:16px;font-weight:700;white-space:nowrap}
.bd-pick.off{opacity:.55}
.bd-members{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.bd-member{display:flex;align-items:center;gap:12px;background:#FFF8E1;border:1px solid #EAD9A0;border-radius:12px;padding:9px 12px}
.bd-member img{width:38px;height:38px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.bd-member b{display:block;font-size:15px;font-weight:700;color:#000;line-height:1.25}
.bd-member span{display:block;font-size:13px;color:var(--ink-soft);font-weight:600;margin-top:2px}
.bd-member .bd-mem-price{margin-left:auto;font-family:var(--font-display);font-size:16px;font-weight:700;white-space:nowrap}
.bd-rm{flex:none;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink-soft);font-size:16px;line-height:1;cursor:pointer}
.bd-rm:hover{border-color:#C0392B;color:#C0392B}
.bd-empty{border:2px dashed #D9C88F;border-radius:12px;padding:18px;text-align:center;color:#8A7B52;font-weight:600;font-size:14.5px}
/* ROUND 45 — the note under the "No books yet" box must NOT ride up onto its
   dashed border: .tf-note carries margin-top:-8px, which pulled this note 8px
   over the box's bottom line at every width. A clear 10px gap instead. */
#bdMembersNote{margin-top:10px}
.bd-save{font-size:15px;font-weight:700;color:#1E7B34}
.bd-save.zero{color:var(--ink-soft)}
.bd-new{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fff}
.bd-newcover{display:block;border:2px dashed #D9C88F;border-radius:8px;padding:14px;text-align:center;cursor:pointer;margin:0 0 14px}
.bd-newcover .sq-t{display:block;font-weight:700;font-size:14.5px;color:var(--ink)}
.bd-newcover .sq-s{display:block;font-size:13px;color:var(--ink-soft);margin-top:2px}
.bd-newcover .fname{display:block;margin-top:6px;font-size:13.5px;color:#000;font-weight:700}
.bd-newcover .sq-img{max-width:100%;max-height:180px;margin:0 auto 8px;border-radius:0;object-fit:cover;background:#fff}
/* bundle detail hero: a seller-uploaded cover shows as one framed image */
.bd-collage img.bd-cover-img{width:100%;max-width:360px;max-height:none;aspect-ratio:1/1;object-fit:cover;border-radius:0;background:#fff;border:3px solid rgba(255,255,255,.85);box-shadow:0 12px 20px -10px rgba(0,0,0,.4)}
/* bundle detail page */
.bd-hero{display:grid;grid-template-columns:minmax(0,340px) 1fr;gap:34px;align-items:start;margin-top:8px}
@media (max-width:820px){.bd-hero{grid-template-columns:1fr}}
.bd-collage{background:linear-gradient(135deg,var(--velvet-900),var(--velvet-700) 60%,var(--velvet-800));border-radius:20px;padding:34px 20px;display:flex;align-items:center;justify-content:center;min-height:280px}
.bd-collage .bundle-covers img{width:110px;height:110px}
.bd-hero h3{font-family:var(--font-display);font-size:30px;font-weight:700;line-height:1.2;color:#000;margin:6px 0 10px}
.bd-hero .bd-price-row{display:flex;align-items:baseline;gap:14px;margin:14px 0 6px}
.bd-hero .bd-price-row b{font-family:var(--font-display);font-size:34px;font-weight:700}
.bd-hero .bd-price-row s{color:var(--ink-soft);font-size:19px}
.bd-hero .bd-price-row .bd-save{font-size:16px}
.bd-member-link{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;text-decoration:none;color:inherit}
.bd-member-link:hover{border-color:#C9A227}
.bd-member-link img{width:48px;height:48px;object-fit:cover;border-radius:0;flex:none;background:#fff}
.bd-member-link b{display:block;font-size:16px;font-weight:700;color:#000}
.bd-member-link span{display:block;font-size:13.5px;color:var(--ink-soft);font-weight:600;margin-top:2px}
.bd-member-link .bd-mem-price{margin-left:auto;font-family:var(--font-display);font-size:17px;font-weight:700;white-space:nowrap;color:#000}
.bd-member-link .bd-go{flex:none;color:var(--gold-400);font-weight:700;font-size:18px}
.bd-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}
/* ================= ROUND 41 — square covers, fill frame, sharp corners ================= */
/* Sunny, 2026-11-22: NO lavender/purple behind any thumbnail. Every book cover
   and product thumbnail is a SQUARE (1:1) frame the image FILLS completely —
   object-fit:cover (crops as needed, never letterboxes, never stretches) —
   with SHARP (square, radius 0) corners. Loading/fallback background is
   white (#fff), never var(--velvet-100). Supersedes Round 40 (contain +
   rounded corners + lavender backing). Sample-page previews (.bp-samples,
   .pv-*, .sample-row) and the PDF preview viewer show actual portrait pages
   and are NOT touched; .bp-cover.sample-on stays contain/white (page mode).
   Hero 3D books (.book3d) are decorative mockups, untouched. Logos/avatars
   untouched. */
/* frames: sharp corners, white fallback */
.card .coverwrap{aspect-ratio:1/1;border-radius:0;background:#fff}
.card .coverwrap img{width:100%;height:100%;object-fit:cover;border-radius:0;padding:0;background:#fff;display:block}
/* book page main cover */
.bp-cover{border-radius:8px;background:#fff}
.bp-cover img{aspect-ratio:1/1;object-fit:cover;border-radius:8px;padding:0;background:#fff;display:block}
/* row thumbs — square, image fills the whole square, sharp corners */
.suggest-item img{width:44px;height:44px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.panel-book>img{width:46px;height:46px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.pb-covers img{width:31px;height:31px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.dl-row img{width:46px;height:46px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.top-row img{width:44px;height:44px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.also-card img{width:62px;height:62px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.cart-row img{width:52px;height:52px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.co-item img{width:48px;height:48px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.best-row img{width:40px;height:40px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.prod-row img{width:56px;height:56px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.bd-pick img,.bd-member img{width:38px;height:38px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.bd-member-link img{width:48px;height:48px;object-fit:cover;border-radius:0;padding:0;background:#fff}
/* bundle fans — square member covers, image fills the square, sharp corners
   (white border + rotation + shadow of the fan look are kept) */
.bundle-covers img{width:96px;height:96px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.card .coverwrap .bcol-fan img{width:82px;height:82px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.bd-collage .bundle-covers img{width:110px;height:110px;object-fit:cover;border-radius:0;padding:0;background:#fff}
.bd-collage img.bd-cover-img{max-width:360px;max-height:none;aspect-ratio:1/1;object-fit:cover;border-radius:0;padding:0;background:#fff}
@media (max-width:480px){.bundle-covers img{width:76px;height:76px}}
@media (max-width:560px){.card .coverwrap .bcol-fan img{width:70px;height:70px}}
/* email template covers — square, filled, sharp corners */
.email-cover{aspect-ratio:1/1;object-fit:cover;border-radius:0;padding:0;background:#fff}
/* ROUND 46 fold-in 2 — upload boxes: slightly rounded corners (8px, Sunny 2026-11-23) */
.sqbox{border-radius:8px}
.sqbox .sq-img{object-fit:cover;border-radius:0;padding:0;background:#fff}
/* bundle-cover upload preview: square frame, cover fills it; corners slightly rounded (8px, Round 46 fold-in 2) */
.bd-newcover{border-radius:8px}
.bd-newcover .sq-img{width:min(180px,100%);height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:0;padding:0;background:#fff}
/* ================= ROUND 43 — book page only: main cover slightly rounded; the 3 thumbs under it square + a bit smaller ================= */
/* Sunny, 2026-11-22: on the BOOK PAGE the main cover's corners get a slight
   rounding (14px — this overrides Round 41's sharp-corner rule for .bp-cover
   ONLY; every other cover/thumbnail on the site stays sharp-cornered). The
   three thumbnails under the main cover (Sample page 1, Sample page 2, View
   preview) become true SQUARE (1:1) frames — superseding the Round 40/41
   "sample previews stay portrait" exemption for these three — and a bit
   SMALLER: capped at 92px wide (was 120px), image fills the square
   (object-fit:cover, top-anchored so page tops stay visible), corners sharp.
   ROUND 44 (2026-11-22): the three thumbs get a slight 6px rounding — the
   same subtle feel as the main cover's 14px, scaled down for the 92px size. */
.bp-cover{border-radius:14px}
.bp-cover img{border-radius:14px}
/* ROUND 45 — five thumbs now: Main cover first, Sample page 3 added, View preview last; the .viewprev caption stacks its eye icon above the text, centered. */
.bp-samples figure{max-width:92px}
.bp-samples img{aspect-ratio:1/1;width:100%;height:auto;object-fit:cover;object-position:top;border-radius:6px}
/* ROUND 45 fold-in 6 — book page only (Sunny, 2026-11-22, laptop screenshot):
   (1) the empty band under the fixed 78px header was 68px (118px section
   padding + 28px grid margin) — pull the content up; (2) the main cover was
   531px square, pushing the 5-thumb row below the fold on a 1366x768 laptop
   (thumb bottoms sat at 785px) — cap the cover at 460px so cover + all five
   92px thumbs fit the first viewport. Cover stays square 1:1 with its 14px
   rounding, centered in its column. Thumbs untouched (still 92px). Scoped to
   min-width:861px — the two-column desktop layout — so the mobile 162px top
   padding and full-width cover are unchanged, and .subpage padding is
   untouched (the 118px shared rule at the top stays as-is). */
@media (min-width:861px){
  #bookPage{padding-top:92px}
  .bp-grid{margin-top:20px}
  .bp-cover{max-width:460px;margin-inline:auto}
}
/* ================= ROUND 47 — logo gap tightened everywhere + thumb row locked to the cover ================= */
/* (1) LOGO GAP (Sunny, 2026-11-23, logo close-up): the gap between the V
   mark and the VelvetTome wordmark felt too wide. Measured visible gap was
   ~11-12px: the CSS gap (7-8px) PLUS the marks' own transparent edge
   padding (purple mark ~2px at header size, white mark ~3-3.7px at
   footer/email size, word image ~1.7px). The CSS gap drops to 3px in EVERY
   lockup — header (.logo), footer + every sub-page band (.foot-logo), and
   the email headers (.email-head) — so the visible gap lands at ~6-7px
   everywhere. Icon size, wordmark size and the bottom alignment from
   Round 45 are untouched. */
.logo{gap:3px}
.foot-logo{gap:3px}
.email-head{gap:3px}
/* (2) THUMB ROW = COVER WIDTH (Sunny, 2026-11-23, book-page screenshot;
   supersedes the Round 46 fold-in): the five thumbs (Main cover, Sample
   page 1-3, View preview) must never stick out past the main cover. Cover
   and row now take their width from ONE shared rule — full column width
   below 861px, the same 460px cap centered at/above 861px — so the row's
   left edge always sits on the cover's left edge and its right edge on
   the cover's right edge, at every width. Thumbs stay SQUARE: five equal
   flex shares of the row minus the four 12px gaps ((460-48)/5 = 82.4px
   each on desktop), aspect-ratio 1/1 kept, 6px corners kept. */
.bp-cover,.bp-samples{width:100%}
@media (min-width:861px){
  .bp-cover,.bp-samples{max-width:460px;margin-inline:auto}
}
.bp-samples figure{flex:1 1 0;min-width:0;max-width:none}
.bp-samples img{aspect-ratio:1/1}
/* ================= ROUND 48 — upload boxes: four in ONE line, smaller, tidier text ================= */
/* (Sunny, 2026-11-23: "4 ta box er Kotha bolsi" + "jekhane jekhane ase sob
   jaygay Dio, ogular text gula sundor kore Dio".) The Cover & samples set —
   Main cover + Sample page 1-3 — was a 2x2 grid of big squares; it now sits
   in ONE row of four smaller squares. One shared .sq-grid rule, so BOTH
   places the set appears (the Upload form and the Edit-book form) change
   together. Boxes stay square (aspect-ratio 1/1, untouched) with their 8px
   rounded corners. The inside text is re-set for the smaller box: title a
   step down with tighter leading, the "PNG or JPG · Max 5 MB" line smaller
   and softer, the chosen-file name smaller still — and one more step down
   on phones so all four stay readable in the single row. */
.sq-grid{grid-template-columns:repeat(4,1fr);gap:10px}
.sqbox{padding:10px 6px;gap:2px}
.sqbox .sq-t{font-size:11px;line-height:1.25}
.sqbox .sq-s{font-size:10.5px;line-height:1.35}
.sqbox .fname{font-size:10px}
.sqbox.has-img .sq-t{font-size:11px;padding:5px 3px}
@media (max-width:560px){
  .sq-grid{gap:6px}
  .sqbox{padding:6px 3px}
  .sqbox .sq-t{font-size:8.5px}
  .sqbox .sq-s{font-size:9px}
  .sqbox .fname{font-size:9px}
  .sqbox.has-img .sq-t{font-size:8.5px}
}
/* ================= ROUND 49 — phone fix: box labels never wrap ================= */
/* (Sunny, 2026-11-23: "Phn eo sob sundor r thik thaka lagbe".) At 390px the
   Edit-book form's "Sample page 1" bar still broke onto two lines: the Edit
   pane keeps the default .vp-body side padding (22px), so its four boxes
   come out ~4px narrower than the Upload form's, and the bold label no
   longer fit the dark bottom bar. Three-part fix, applied to the shared
   .sq-* rules so Upload and Edit stay identical: (1) box titles never wrap
   — one line, always; (2) on phones the Edit pane's side padding tightens
   to 14px, handing the row ~16px back; (3) the has-img bottom bar gets
   slimmer side padding so the full label sits comfortably inside it. */
.sqbox .sq-t{white-space:nowrap}
@media (max-width:560px){
  #view-edit .vp-body{padding-left:14px;padding-right:14px}
  .sqbox.has-img .sq-t{padding:5px 2px}
}
/* ================= ROUND 50 — F1 tablet pills + F3 laptop density + C1 Best sellers + Book file in Edit/Quick Edit ================= */
/* F1 — FILTER PILLS, 701–860px (Victor R47): the R12 scrollable full-label
   row only ran <=700px, so 701–~850 fell in a gap — pills ~100px wide with
   label AND value ellipsized ("G… A… ⌄"). The same treatment now runs to
   860px: pills size to their content and the row swipes, toggle fixed at
   the right. Unlike the phone row (which hides the value), the value stays
   VISIBLE here and never ellipsizes, so label + value read in full at
   720/800/860. Phone (<=700) and desktop (>=861) rules are untouched. */
@media (min-width:701px) and (max-width:860px){
  .fdrop-row{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-wrap:nowrap;padding:2px 1px}
  .fdrop-row::-webkit-scrollbar{display:none}
  .fdrop{flex:0 0 auto}
  .fbtn{width:auto;white-space:nowrap;padding:10px 14px;gap:7px}
  .fbtn .flabel{flex:none;overflow:visible;text-overflow:clip}
  .fbtn .fval{flex:none;overflow:visible;text-overflow:clip}
  .shop-tools{gap:8px}
}
/* F3 — LAPTOP BAND, 861–1439px (Sunny, 2026-11-23; Victor R47): the
   fixed-px design read too big on a 14" laptop — hero 808px tall (105% of
   a 1366x768 viewport), zero cards above the fold. These reductions apply
   ONLY in this band: 1920+ keeps the current generous scale, and phones
   (<=860px) are untouched. Hero lands ~620px (90 + 420 stage + 64 marquee
   gap + 46 marquee), so with the fixed header the first card row peeks
   above the fold at 768px height. */
@media (min-width:861px) and (max-width:1439px){
  /* header 78px -> ~67px */
  .nav-in{padding:7px 0}
  /* hero: top padding 138 -> 90px, stage 560 -> 420px, H1 max 58 -> 46px,
     lede max 20 -> 18px */
  .hero{padding-top:90px}
  .hero h1{font-size:clamp(36px,5.2vw,46px)}
  .hero p.lede{font-size:clamp(17px,2vw,18px)}
  .stage{height:420px}
  /* shelf: a narrower shop wrap so cards land ~255px wide with ~230px
     covers; title 20.5 -> 18px, price 20 -> 18px, card padding 18/16 -> 14/12px */
  #shop .wrap{width:min(1080px,100% - 40px)}
  .card{padding:14px 12px 12px}
  .grid.list .card{padding:14px 16px}
  .card h3{font-size:18px}
  .card .price{font-size:18px}
  /* sections: bottom padding 96 -> 64px */
  .section{padding-bottom:64px}
  /* book-page title 44 -> 36px. (Victor's "store name 44px" reading was
     his probe's h1 selector hitting the book-page h1 — the real store
     name, .store-id h2, is already 30px, so no separate rule is needed.) */
  .bp-head h1{font-size:clamp(31px,4vw,36px)}
}
/* HERO CHIP (Victor R47 observation): the "Instant PDF" chip sat on the
   middle book's printed title ("Alphabet Adventure") at every width. At
   the 560px stage the chip now rides 84px up from the stage bottom, clear
   below the book (book bottom 413px, chip top ~422px); the 420px laptop
   stage and the 480px tablet stage already clear the titleband at the
   current 118px, and the phone rule below clears the 400px stage. */
@media (min-width:1440px){.chip-a{bottom:84px}}
/* C1 — BEST SELLERS (Victor R47): the mini-list truncated mid-word
   ("Alphabet Ad…", "★ 4.9 · 3.2k do…") in a ~101px text column. The
   sidebar column widens 238 -> 280px, so the text column lands ~154px —
   every current title and rating line fits on one line — and titles get a
   2-line allowance as a safety net, so a longer title wraps instead of
   truncating mid-word. (The 2-line allowance lives on the base
   .best-row .bt b rule, and the 238 -> 280px width change on the base
   .store-layout rule — both annotated ROUND 50 (C1).) */
/* BOOK FILE IN EDIT / QUICK EDIT — the Quick Edit compact row: a plain
   bordered row (same 1.5px #E7DCC0 field border as the form's other
   fields), current file name + size on the left, Replace button right.
   The full dashed dropzone (#edBookFileZone) reuses the upload page's
   .dropzone style unchanged. */
.ed-bookfile-quick{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1.5px solid #E7DCC0;border-radius:12px;padding:12px 14px;background:#FFFFFF;margin-bottom:16px}
.ed-bookfile-quick .ed-bfq-info{flex:1 1 auto;min-width:0}
.ed-bfq-label{display:block;font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8A7B52;margin-bottom:2px}
.ed-bookfile-quick b{display:block;font-size:15px;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.ed-bfq-size{font-size:13px;color:var(--ink-soft);font-weight:600}
.ed-bfq-btn{flex:none}
/* the two book-file zones toggle by mode (openEdit), so [hidden] must win
   over .dropzone's display:block and .ed-bookfile-quick's display:flex */
#edBookFileZone[hidden],#edBookFileQuick[hidden]{display:none!important}
/* ================= ROUND 51 — FIX PASS (Victor R47 re-audit) ================= */
/* FIX 1 — FILTER PILLS, 701–860px: the R50 pass fixed the pill TEXT, but
   the 4th pill was still cut at the row edge — in this band the pills row
   is only ~427px wide because the Grid/List toggle eats ~253px beside it,
   while the four content-sized pills need 505px. The row now takes the
   FULL width and the toggle drops to its own line (right-aligned), so all
   four pills fit at 701/720/800/860 with no swipe and no shrinking — the
   pill text itself is untouched. Phone (<=700, swipeable row) and desktop
   (>=861, one line) are untouched. Applies to the home shelf and the
   store filterline alike (both are .shop-tools). */
@media (min-width:701px) and (max-width:860px){
  .shop-tools{flex-wrap:wrap}
  .filterbar{flex:1 1 100%}
  .view-toggle{margin-left:auto}
}
/* FIX 2 + FIX 3 — PHONE (<=480px) */
@media (max-width:480px){
  /* FIX 2 — HERO CHIPS: at <=422px the two floating chips overlapped
     (32px at 390, 62px at 360), so "Download in seconds" read truncated.
     The chips are slimmed a step (26px icon tile, tighter padding/type)
     and STACKED — chip-a rides the stage bottom, chip-b sits one chip
     above it — and the side books lift 120 -> 100px so the stack clears
     their bottoms. Desktop / laptop / tablet chip positions (base 118px,
     >=1440px 84px) are untouched. */
  .chip-float{padding:6px 10px;gap:7px;font-size:11.5px}
  .chip-float small{font-size:10.5px}
  .chip-float span{line-height:1.25}
  .chip-float .ic{width:26px;height:26px;border-radius:8px}
  .chip-a{bottom:6px}
  .chip-b{bottom:54px}
  .b-hero-left,.b-hero-right{top:100px}
  /* FIX 3 — PHONE DENSITY (Sunny, 2026-11-23: phone reads too big,
     "arek-tu gochano" — tidier, denser). Header, hero copy, marquee,
     sections and cards all tighten a step; tap targets stay >=44px,
     dropzones and the upload description / 4-box row are untouched, and
     the one-line box labels ("Main cover", "Sample page 1/2/3") are
     unaffected. Laptop (861–1439) and desktop rules are untouched. */
  .nav-in{padding:8px 0 10px}
  .logo{top:8px}
  .hero{padding-top:152px}
  .hero h1{font-size:32px;margin:12px 0 14px}
  .hero p.lede{font-size:16px;margin:0 0 18px}
  .hero-cta{margin-top:18px}
  .stage{margin-top:4px}
  .marquee{margin-top:40px!important;padding-top:10px;padding-bottom:10px}
  .marquee span{font-size:13.5px}
  .section{padding:48px 0}
  #shop{padding-top:16px}
  .grid{gap:16px;margin-top:22px}
  .card{padding:14px 16px 12px}
  .card .grade{margin-top:12px}
  .card h3{font-size:19px;margin:12px 0 4px}
  .card .meta{font-size:14px}
  .card .skills{margin:8px 0 2px}
  .stars{margin:8px 0 2px}
  .card .buyrow{padding-top:12px}
  .card .price{font-size:18px}
  h2.title{font-size:26px}
  p.sub{font-size:16px}
  #bookPage,.subpage{padding-top:144px}
  .bp-head h1{font-size:28px}
  #view-upload .vp-body{padding:22px 16px 26px}
  #view-upload .fld{margin-bottom:18px}
}
/* ================= ROUND 48 — store-page screenshot fixes (Sunny, 2026-11-23 01:50) ================= */
/* DIAGNOSIS (verified in headless Chromium against the Round 47 file, not
   guessed): there is NO rule in the file that overrides the <=560px
   1-column featured rule at a true 390px viewport — at 390 the featured
   grid renders 1+1+1+1 and the pills show full labels with the value
   hidden. The screenshot's render (featured 3+1 AND pills reading
   "Gr… A… / Su… A… / Skill All / Pri… A…" with the value VISIBLE) is
   reproduced EXACTLY by a layout viewport of ~901–1080px: at 1024 the
   probe reads featured 3+1 and Grade/Subject truncated, Skill full —
   the <=1080px repeat(3) rule plus the 280px sidebar squeezing the
   filterbar. So Sunny's phone laid the page out at tablet width
   (scaled viewer frame / desktop-mode render), not at 390 CSS px.
   The fixes below therefore repair the 821–1080 band itself, so the
   page reads clean even when it is laid out that wide:
   (1) FEATURED — the <=1080px rule is now repeat(2) (edited in place,
   Round 31 block): 4 books read 2+2, never 3+1. 720 stays 2 cols
   (<=820 rule), 1150/1366/1920 stay 4 across, <=560 stays 1 column.
   [ROUND 53 supersedes the band: the <=1080px rule was narrowed to
   <=899px, and 900–1080 is now repeat(4) (Sunny, 2026-11-23 19:42 —
   phone desktop mode ~901–1080px shows 4 across); 2+2 now covers
   561–899 only. Laptop >=1081 unchanged.]
   (2) PILLS — at 861–1080 the store filterline gets the Round 51 FIX 1
   treatment, store-scoped: the pills row takes the FULL main-column
   width and the Grid/List toggle drops to its own line (right-aligned),
   so all four pills fit with label + value in full and nothing
   truncates. Home/shop pills are untouched (their container is wide
   enough at these widths); phone (<=700, swipeable row) and 701–860
   (Round 50 F1 + Round 51 FIX 1) are untouched.
   [ROUND 55 supersedes the band: Round 54 made 900–1080 a 2-column
   sidebar layout (main column only 550px @900), so the toggle-below
   rule is stale there — Sunny (2026-11-23 21:21) wants the toggle
   inline like the laptop. The block below is narrowed to 861–899px
   (single-column store, toggle below stays); 900–1080 is the ROUND 55
   block after it. Laptop >=1081 unchanged.]
   (3) BANNER — see the 262 -> 286px / 254 -> 274px edits in the
   Round 12 / Round 21 rules above. */
@media (min-width:861px) and (max-width:899px){
  #page-store .shop-tools{flex-wrap:wrap}
  #page-store .filterbar{flex:1 1 100%}
  #page-store .view-toggle{margin-left:auto}
  /* ROUND 48b — toggle-below alone was not quite enough at ~950px: the
     row is 585px but the four EQUAL-SHARE pills give Subject only 140px
     while "Subject All ⌄" needs ~148px (probe: label 52/55, value 16/21).
     So the pills also size to their content (Round 50 F1 pattern,
     store-scoped): total ~572px < 585px, and the row swipes instead of
     truncating if a longer label ever appears. */
  #page-store .fdrop-row{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-wrap:nowrap;padding:2px 1px}
  #page-store .fdrop-row::-webkit-scrollbar{display:none}
  #page-store .fdrop{flex:0 0 auto}
  #page-store .fbtn{width:auto;white-space:nowrap}
  #page-store .fbtn .flabel{flex:none;overflow:visible;text-overflow:clip}
  #page-store .fbtn .fval{flex:none;overflow:visible;text-overflow:clip}
}
/* ================= ROUND 55 — store toggle inline at 900–1080 (Sunny, 2026-11-23 21:21) ================= */
/* DIAGNOSIS (measured in headless Chromium against the Round 54 file):
   the Round 48 rule (now narrowed to 861–899px above) forced the
   filterbar to flex:1 1 100%, so the toggle wrapped to its own line at
   900–1080 — exactly Sunny's screenshot. That rule was deliberate when
   the store was single-column in this band; Round 54 made it a 2-column
   sidebar layout (main column 550px @900, 630px @980, 674px @1024), so
   the toggle belongs inline like the laptop again.
   THE FIT (measured, default "All" values): the four content-sized
   pills are 527.1px + 3x8px row gaps = 551.1px and the icon-only toggle
   is 98px, so pills + 10px tools gap + toggle need 659.1px — 109.1px
   MORE than the 550px column @900 (29.1px more @980; @1024 it fits
   with 14.9px to spare). They genuinely cannot fit at 900px unchanged.
   So ONLY in this band the pills tighten a step — padding 18px -> 10px,
   gap 8px -> 5px, font 15px -> 14px, value 13.5px -> 13px, row gap
   8px -> 6px — and the toggle slims a touch (padding 4px -> 3px,
   buttons 13px -> 11px side padding), tools gap 10px -> 8px. Predicted
   total ~539px < 550px @900. NOTHING truncates: labels + values stay
   overflow:visible with the row swipeable (overflow-x:auto, the
   Round 48 safety net), so a longer chosen value scrolls instead of
   clipping — the Round 47 F1 lesson. Min-height stays 52px, so the row
   height does not change. Laptop >=1081 (base rules) and phone <=899
   (Round 48 block above, single-column, toggle below) are untouched.
   HOMEPAGE SHELF: already inline at 900/980/1024 (probe: toggle top =
   pills top, same row) — left alone. */
@media (min-width:900px) and (max-width:1080px){
  #page-store .shop-tools{flex-wrap:nowrap;gap:8px}
  #page-store .filterbar{flex:1 1 auto;min-width:0}
  #page-store .view-toggle{margin-left:auto}
  #storeViewToggle{gap:2px;padding:3px}
  #storeViewToggle .vt-btn{padding:10px 11px}
  #page-store .fdrop-row{gap:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-wrap:nowrap;padding:2px 1px}
  #page-store .fdrop-row::-webkit-scrollbar{display:none}
  #page-store .fdrop{flex:0 0 auto}
  #page-store .fbtn{width:auto;white-space:nowrap;padding:10px 10px;font-size:14px;gap:5px;min-height:52px}
  #page-store .fbtn .flabel{flex:none;overflow:visible;text-overflow:clip}
  #page-store .fbtn .fval{flex:none;overflow:visible;text-overflow:clip;font-size:13px}
}
/* ================= ROUND 49 — store page: Categories scroll box + Best sellers below the books (Sunny, 2026-11-23 02:32) ================= */
/* (1) FEATURED — CONFIRMED, NO EDIT: base repeat(4) (Round 31 block),
   <=1080 repeat(2) (Round 48), <=820 repeat(2), <=560 1 column. Phone
   stays 1 col <=560 / 2+2 in 561–1080, desktop 4 across — already the
   required state, so the grid is untouched in this round.
   [ROUND 53 NOTE: this was Round 49's state; Round 53 narrowed the
   <=1080 rule to <=899 and made 900–1080 repeat(4), so 2+2 now covers
   561–899 only.]
   (2) CATEGORIES SCROLL BOX — PHONE ONLY (<=899px, true phone widths).
   [ROUND 54 (Sunny, 2026-11-23 20:33): narrowed from <=1080px — his phone
   in desktop mode lays the page out at ~901–1080px, and there the store
   now uses the base desktop layout: full Categories list, no scroll box.
   The scroll box survives only at true phone widths <=899px.]
   The category list
   (#storeCats) becomes a compact box with internal scrolling, so later
   categories don't stretch the page — you scroll inside the box. 224px
   shows ~4 full rows + a peek of the 5th as the scroll hint, with a
   thin visible gold scrollbar. The heading + pencil editor stay OUTSIDE
   the scroll box. Desktop >=900 keeps the full list, no box, no scroll.
   (3) BEST SELLERS POSITION — PHONE ONLY (<=899px). [ROUND 54: narrowed
   from <=1080px, same reason as (2) — at 900–1080 Best sellers stays in
   the sidebar, in the base desktop layout.] "Best sellers in
   this store" moves below ALL the books, above "About this store"
   (phone order: Categories -> All resources -> Best sellers -> About).
   .store-layout becomes a stacked flex column and .store-side is
   unwrapped (display:contents) so its two cards become direct children
   of .store-layout and can be ordered around .store-main; .store-about
   already follows .store-layout in the DOM, so it stays last. NOTE:
   align-items:stretch is required here — the base .store-layout rule
   sets align-items:start (for its grid), which in a flex column would
   shrink the cards to content width. Desktop >=900 keeps the 2-column
   sidebar layout untouched.
   (4) PLACEHOLDER COVER LIFT — REVERTED (Sunny, 2026-11-23 02:37):
   the 02:34 lift was a misread — Sunny's "icon r lekha ta arektu
   upore" was about the HEADER LOGO LOCKUP, not the book-cover "VT"
   monogram. The object-position 50% 68% rule is REMOVED, so the
   placeholder covers ("Sunny Shapes" + "Rainbow Counting") go back to
   the default centered crop (object-position 50% 50%) at ALL widths.
   See the header-logo lift block after this one. */
@media (max-width:899px){
  /* (2) Categories: bounded internal scroll box — ROUND 54: narrowed from
     <=1080px, so 900–1080 uses the base desktop layout (full list). */
  #page-store #storeCats{
    max-height:202px;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#C9A227 #F7F4EC;
    border:1px solid var(--line);
    border-radius:12px;
    padding:6px;
    background:#FFFFFF;
  }
  #page-store #storeCats::-webkit-scrollbar{width:6px}
  #page-store #storeCats::-webkit-scrollbar-track{background:#F7F4EC;border-radius:999px}
  #page-store #storeCats::-webkit-scrollbar-thumb{background:#C9A227;border-radius:999px}
  /* (3) Best sellers below the books: stack the layout, unwrap sidebar */
  #page-store .store-layout{display:flex;flex-direction:column;align-items:stretch}
  #page-store .store-side{display:contents}
  #page-store .store-side .cats-card{order:1}
  #page-store .store-main{order:2}
  #page-store .store-side .best-card{order:3}
}
/* ================= ROUND 51 — header logo lift SPLIT by state + header logo gap cut (Sunny, 2026-11-23 03:07: "Ai gap ta aktu komao") ================= */
/* SUPERSEDES Round 49's uniform translateY(-3px): Victor's fresh Playwright
   measurements (r51-measure.json) prove no single lift can equalise both
   widths — the two states sit on opposite sides of centre. Blanks below
   are VISIBLE INK vs the 48px header row, not element box.
   (1) LIFT, SPLIT BY STATE — PHONE VIEW ONLY (<=1080px); desktop >=1081
   untouched. Signed-out CENTRED lockup at 390px: ink top blank 12.27px,
   bottom 3.00px, centre 4.64px LOW — needs +4.64px UP from Round 49, i.e.
   total translateY(-7.6px) from unlifted (top/bottom blanks then ~7.6px
   each). Root cause: the centred logo box is fixed 48px tall but holds
   only ~33px of bottom-aligned ink (~13px dead space at top). Signed-in
   IN-FLOW lockup at 390px: ink top 5.52px, bottom 9.75px, 2.11px HIGH —
   needs 2.12px DOWN, i.e. total translateY(-1px). In-flow at 1024 (all
   states): ink top 1.78px, bottom 5.50px, 1.86px HIGH — also total
   translateY(-1px). So the centred-lockup selector alone gets -7.6px
   (it applies at phone widths; at 1024 even signed-out is in-flow, so
   the -1px in-flow rule covers it); every in-flow state at <=1080px
   gets -1px. Specificity keeps them apart: the <=860px state rules
   (0,2,1) beat the unqualified <=1080px rule (0,1,0).
   (2) GAP — HEADER ONLY, PHONE ONLY (<=1080px): computed CSS gap is 3px
   everywhere, but the header gap READS wide (visible ~7px at 390, ~8px
   at 1024) because the header mark is small (35px at 390 vs footer
   57px) — the header gap is NOT actually wider than the footer's, the
   small mark just makes it read that way. Cut the HEADER gap modestly
   anyway, as Sunny asked: .logo gap 3px -> 1px at <=1080px (visible
   ~5px at 390 / ~6px at 1024). .foot-logo, .email-head and the desktop
   header are UNTOUCHED — the footer stays byte-identical. Round 47's
   global .logo{gap:3px} still governs >=1081px. */
@media (max-width:1080px){
  .logo{transform:translateY(-1px);gap:1px}
}
@media (max-width:860px){
  body:not(.signed-in) .logo{transform:translateX(-50%) translateY(-7.6px)}
  body.signed-in .logo{transform:translateY(-1px)}
}
/* ================= ROUND 52 — store shelf 3 across + banner one ratio + Categories scrollbar inside the corners (Sunny, 2026-11-23) ================= */
/* (1) ALL RESOURCES — 3 PER ROW. The Round 12 rules force #page-store grids
   to 2 columns at <=1500px and <=1080px, so the shelf read 2 across at 1366
   and 2 (or 1) on phones. This #storeGrid-scoped rule (higher specificity
   than the Round 12 rules, and placed after them) restores 3 columns from
   561px up: desktop >=1081 (1366/1920) and the whole 561-1080 phone band
   (1024/720). At <=560px the Round 12 1-column rule still governs (a ~350px
   main column is too narrow for 3 cards). Featured (#storeFeaturedGrid),
   home/shop (#bookGrid) and list view (.list) are untouched; 18/page stays
   clean (6 rows x 3). */
@media (min-width:561px){
  #page-store #storeGrid:not(.list){grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* (2) STORE BANNER — ONE ASPECT RATIO (3:1) AT EVERY WIDTH. The banner was
   height-sized (286px desktop / 274px phone), so its ratio swung 4.2:1 on
   desktop to ~1.3:1 on a 390px phone and an uploaded image was cropped
   completely differently on each — Sunny: on phone it looks bad. The banner
   is now aspect-ratio:3/1, which replaces all the earlier min-height sizing
   (this rule sits after them all, so it wins): the same uploaded image
   renders with the same crop on phone and desktop. Desktop grows 286 ->
   400px (1200 wide / 3); a 390px phone lands at ~119px. The phone text
   still fits because at <=560px the secondary line is hidden and the text
   uses the full banner width (see below); the round logo badge keeps
   overlapping the bottom edge exactly as before (.store-logo margin-top
   -65px/-51px, untouched). */
.store-banner{aspect-ratio:3/1;min-height:0}
@media (max-width:560px){
  /* Banner text, true small phones only — FIX (Victor NO-SHIP on Round 52):
     the full-width text sat UNDER the round logo badge (102px, overlapping
     67px into the banner): at 390 the badge covered the whole gold "play"
     line (96x40px overlap). The text now starts clear of the badge instead:
     margin-left 20 -> 124px (text left = banner left + 124 = 140px, 8px past
     the badge's right edge at 132px), title 20 -> 16px so it still wraps to
     2 lines in the narrower column. The text is also TOP-aligned now
     (.sb-art flex-start): a centred stack sat low enough for the title's
     first line to run under the bottom-right camera icon at 360-480px, while
     top-aligned the first line sits above the camera's top edge and the
     short remainder lines end well left of it (padding-right 20 -> 58px:
     58px is exactly the camera's own footprint — 44px wide + 14px from the
     right edge — so the text column ends where the camera begins, and the
     "play" line can no longer run under it at 360px). The stack (~76-96px) fits the 3:1 banner (104px at 360, 114px at 390);
     the secondary line stays hidden. The badge, the camera icon and the 3:1
     ratio are untouched. */
  .sb-sub{display:none}
  .sb-art{align-items:flex-start}
  .sb-art-in{margin-left:124px;padding:10px 58px 10px 0}
  .sb-title{font-size:16px}
}
/* (3) CATEGORIES SCROLLBAR — STAYS INSIDE THE ROUNDED BOX. The thin gold
   scrollbar is a ::-webkit-scrollbar, but #storeCats also carried
   scrollbar-width:thin + scrollbar-color — in Chromium those standard
   properties switch the scrollbar to the UA's own rendering, which ignores
   the webkit track/thumb rules and paints square track corners + arrow
   buttons that poke past the box's 12px rounded corners (verified in
   headless Chromium: track margin / thumb borders / button hiding all had
   zero effect while those two declarations were present; with them removed,
   the webkit rules apply). So the standard declarations are reset to auto
   here (Firefox falls back to its default scrollbar) and the webkit track
   is inset by exactly the corner radius (12px top + bottom): track and gold
   thumb stay inside the rounded outline at every scroll position.
   max-height stays 202px, so the 5th-row scroll hint is unchanged. Phone
   band only (<=1080px), where the scroll box exists. */
@media (max-width:1080px){
  #page-store #storeCats{scrollbar-width:auto;scrollbar-color:auto}
  #page-store #storeCats::-webkit-scrollbar-track{margin:12px 0}
}

/* ================= REAL BUILD ADDITIONS (Phase 1, 2026-11-23) =================
   Only classes the demo CSS did not provide: toast, admin rows, dashboard
   stats/bars, bundle + preview views, seller bar, store banner, chip fields,
   mode switch, empty states, auth pages. Demo rules above are untouched. */
#toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:#1E0133;color:#FFF7E6;padding:13px 22px;border-radius:999px;font-weight:700;font-size:15px;box-shadow:0 14px 30px -10px rgba(13,0,22,.5);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;z-index:300;max-width:calc(100vw - 32px);text-align:center}
#toast.on{opacity:1;transform:translate(-50%,0)}
.empty-state{text-align:center;padding:38px 24px}
.empty-state h3{margin:0 0 8px}
.empty-state p{margin:0 0 18px}
.subpage{padding-top:118px;padding-bottom:56px;background:#fff;min-height:70vh}
.subpage .title{font-size:clamp(30px,4vw,44px);font-weight:700;line-height:1.12;margin:10px 0 14px}
.subpage .title em{font-style:italic;color:var(--gold-500)}
.subpage .kicker{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-600);margin:0}
.subpage .sub{font-size:17px;line-height:1.6;margin:0 0 22px;max-width:62ch}
.co-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px 28px;margin-bottom:20px}
.co-card h3{margin:0 0 10px;font-size:20px}
.co-card h4{margin:18px 0 8px;font-size:16px}
.co-card p{line-height:1.6}
.co-sub{color:#000;font-size:14.5px}
.policy-card h3{margin-top:22px}
.policy-card h3:first-child{margin-top:0}
.auth-page{max-width:560px;margin:0 auto}
.auth-note{font-size:14px;color:#000;margin:14px 0 0}
.auth-note a{font-weight:700}
.req{color:#B0492F;font-style:normal}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media (max-width:1080px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.book-grid{grid-template-columns:1fr}}
.book-grid.list-view{grid-template-columns:1fr}
.book-grid.list-view .card{display:grid;grid-template-columns:200px 1fr;gap:18px;align-items:start}
.book-grid.list-view .card .coverwrap{aspect-ratio:1/1}
@media (max-width:560px){.book-grid.list-view .card{grid-template-columns:1fr}}
.sec-paper{background:#fff}
.section{padding:64px 0}
.sec-title{font-size:26px;font-weight:700;margin:34px 0 16px}
.view-toggle{display:flex;gap:4px;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:4px;flex:none}
.vt-btn{border:none;background:transparent;border-radius:999px;min-width:44px;min-height:44px;font-size:18px;color:#000}
.vt-btn.on{background:var(--velvet-800);color:#fff}
.shop-tools{display:flex;gap:10px;align-items:flex-start;margin:26px 0 20px;position:relative;z-index:90}
.filterbar{flex:1 1 auto;min-width:0;position:relative;z-index:95}
.fpanel{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid #EDDFC0;border-radius:16px;box-shadow:0 20px 36px -16px rgba(13,0,22,.28);padding:16px;z-index:300}
.fp-title{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-600);margin:0 0 10px}
.fp-opts{display:flex;flex-wrap:wrap;gap:8px}
.fopt{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:9px 15px;font-weight:700;font-size:14px;min-height:42px}
.fopt.on{background:var(--velvet-800);border-color:var(--velvet-800);color:#fff}
.fdrop{position:relative}
.mark{background:#FBE7A8;color:#000;border-radius:3px;padding:0 1px}
.trend-chip{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-weight:700;font-size:13.5px;margin:0 6px 6px 0}
/* book page */
.bp-grid{display:grid;grid-template-columns:minmax(0,460px) 1fr;gap:40px}
@media (max-width:860px){.bp-grid{grid-template-columns:1fr;gap:24px}}
.bp-cover{border-radius:14px;overflow:hidden;background:#fff}
.bp-cover img{width:100%;aspect-ratio:1/1;object-fit:cover}
.bp-samples{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}
.bp-thumb{border:2px solid transparent;background:#fff;border-radius:6px;padding:0;overflow:hidden;cursor:pointer}
.bp-thumb.on{border-color:var(--gold-500)}
.bp-thumb img{width:100%;aspect-ratio:1/1;object-fit:cover}
.bp-thumb span{display:block;font-size:11px;font-weight:700;padding:4px 2px;text-align:center}
.bp-thumb.bp-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed #D9C88F;aspect-ratio:1/1}
.bp-eye{font-size:20px}
.bp-desc{margin-top:26px;border-top:1px solid var(--line);padding-top:20px}
.bp-desc h3{font-size:20px;margin:0 0 10px}
.bp-desc p{line-height:1.65}
.bp-skills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip{background:var(--velvet-100);border:1px solid var(--velvet-200);border-radius:999px;padding:7px 13px;font-size:13.5px;font-weight:700}
.bp-right h1{font-size:clamp(28px,3.4vw,40px);margin:0 0 10px;line-height:1.15}
.bp-meta{font-size:15.5px;font-weight:600;margin:0 0 20px}
.bp-inside{margin-bottom:22px}
.bp-inside h3{font-size:19px;margin:0 0 8px}
.bp-inside ul{margin:0;padding-left:20px;line-height:1.7}
.bp-buy{border:1px solid var(--line);border-radius:18px;padding:20px;margin-bottom:20px;display:flex;flex-direction:column;gap:12px}
.bp-price{display:flex;align-items:baseline;gap:12px}
.bp-price b{font-size:30px}
.bp-price s{font-size:18px;color:#000;opacity:.6}
.bp-note{font-size:13.5px;margin:0}
.bp-seller{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:20px}
.bp-seller img{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none}
.bp-seller-info{flex:1;min-width:0}
.bp-seller-info b{display:block;font-size:16.5px}
.bp-seller-info span{font-size:13.5px}
@media (max-width:560px){.bp-seller{flex-wrap:wrap}.bp-seller .btn{flex:1 1 100%}}
.bp-details{border-top:1px solid var(--line)}
.drow{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #F6ECD2;font-size:15px}
.drow span{color:#000}
.bp-reviews{margin-top:40px}
.bp-reviews h3{font-size:22px}
.review-summary{display:flex;align-items:center;gap:10px;margin:8px 0 4px}
.stars{display:inline-flex;gap:2px}
.review-card{border-top:1px solid var(--line);padding:16px 0}
.review-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.review-head span{font-size:13.5px}
.review-card p{line-height:1.6;margin:8px 0 0}
.bp-like{margin-top:44px}
.bp-like h3{font-size:22px;margin-bottom:16px}
/* store */
.store-banner{border-radius:22px;overflow:hidden;background:linear-gradient(135deg,var(--velvet-900),var(--velvet-700) 60%,var(--velvet-800));position:relative}
.store-banner img{width:100%;height:100%;object-fit:cover}
.store-banner-design{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#FFF7E6;gap:6px}
.store-banner-design b{font-size:clamp(24px,4vw,40px)}
.store-head{display:flex;gap:20px;padding:0 8px;flex-wrap:wrap}
.store-logo{width:130px;height:130px;border-radius:50%;object-fit:cover;border:4px solid #fff;margin-top:-65px;flex:none;background:#fff}
@media (max-width:640px){.store-logo{width:102px;height:102px;margin-top:-51px}}
.store-id{flex:1;min-width:260px;padding-top:14px}
.store-id h1{font-size:clamp(28px,3.6vw,40px);margin:0 0 6px}
.store-meta{margin:0 0 12px;font-size:15px}
.store-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.store-live{margin:12px 0 0;font-size:15px}
.social-ico{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#F1F1F1;color:#000;font-weight:800;text-decoration:none}
.store-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;margin-top:28px}
@media (max-width:899px){.store-layout{grid-template-columns:1fr}}
.store-side{display:flex;flex-direction:column;gap:24px}
.store-cats h3,.store-best h3{font-size:17px;margin:0 0 10px}
.cat-row{display:flex;justify-content:space-between;width:100%;background:none;border:none;border-bottom:1px solid #F6ECD2;padding:10px 4px;font-weight:700;font-size:15px;text-align:left}
.cat-row.on{color:var(--velvet-800)}
.cat-row span{opacity:.65}
.best-row{display:flex;gap:10px;align-items:center;text-decoration:none;padding:7px 0}
.best-row img{width:44px;height:44px;object-fit:cover;flex:none}
.best-row b{display:block;font-size:14px;line-height:1.3}
.best-row i{font-size:12.5px;font-style:normal}
.store-about{margin-top:36px;border-top:1px solid var(--line);padding-top:20px}
.store-about p{line-height:1.65}
.seller-bar{background:var(--velvet-100);border-bottom:1px solid var(--velvet-200);padding:12px 0;margin-top:78px}
.seller-bar .wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.seller-bar span{font-weight:700;flex:1}
/* basket / checkout */
.basket-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #F6ECD2}
.basket-row img{width:64px;height:64px;object-fit:cover;flex:none}
.basket-info{flex:1;min-width:0}
.basket-info b{display:block;font-size:16px}
.basket-info span{font-size:13.5px}
.basket-total{display:flex;justify-content:space-between;font-size:19px;padding:18px 0}
.co-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media (max-width:820px){.co-grid{grid-template-columns:1fr}}
/* seller */
.mode-switch{display:flex;gap:8px}
.mode-btn{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:11px 20px;font-weight:700;font-size:15px}
.mode-btn.on{background:var(--velvet-800);border-color:var(--velvet-800);color:#fff}
.preview-card{position:sticky;top:110px}
.preview-card h3{margin:0 0 6px}
.check-list{margin:0;padding-left:20px;line-height:1.7}
.chip-field{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border:1.5px solid #E7DCC0;border-radius:12px;padding:10px 12px;min-height:48px}
.chip-field input{border:none;outline:none;flex:1;min-width:140px;font:inherit;font-size:15px}
.chip-pick{display:inline-flex;align-items:center;gap:6px;background:var(--velvet-100);border-radius:999px;padding:6px 8px 6px 12px;font-weight:700;font-size:13.5px}
.chip-pick button{border:none;background:none;font-size:16px;line-height:1;cursor:pointer}
.chip-picks{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip-opt{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:8px 13px;font-weight:700;font-size:13.5px}
.gdrop{position:relative}
.gbtn{width:100%;display:flex;justify-content:space-between;align-items:center;border:1.5px solid #E7DCC0;border-radius:12px;padding:12px 14px;background:#fff;font:inherit;font-size:15.5px;min-height:48px}
.gpanel{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #EDDFC0;border-radius:14px;box-shadow:0 16px 30px -14px rgba(13,0,22,.3);padding:10px;z-index:50;max-height:280px;overflow-y:auto}
.gopt{display:flex;align-items:center;gap:10px;padding:9px 8px;font-weight:600;font-size:15px;cursor:pointer}
.gopt input{width:18px;height:18px;accent-color:#000}
.akey input{width:20px;height:20px;accent-color:var(--velvet-800)}
.bundle-pick{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.bundle-pick-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:8px 12px;cursor:pointer}
.bundle-pick-row img{width:40px;height:40px;object-fit:cover}
.bundle-pick-row input{width:18px;height:18px}
.bundle-price{font-weight:700;font-size:16px}
.bundle-members{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.bundle-member{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:14px;padding:12px;text-decoration:none}
.bundle-member img{width:56px;height:56px;object-fit:cover}
.bundle-member span{flex:1}
.bundle-member b{display:block}
.bundle-member i{font-style:normal;font-size:13.5px}
.preview-viewer{text-align:center}
.preview-viewer img{max-width:520px;width:100%;margin:0 auto;border:1px solid var(--line);border-radius:12px}
.preview-nav{display:flex;gap:10px;justify-content:center;margin:16px 0}
.prod-main{flex:1;min-width:0}
.prod-main b{display:block;font-size:16px}
.prod-main span{font-size:13.5px}
.dash-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:20px 0}
@media (max-width:820px){.dash-stats{grid-template-columns:repeat(2,1fr)}}
.dash-stat{border:1px solid var(--line);border-radius:16px;padding:18px;text-align:center}
.dash-stat b{display:block;font-size:28px}
.dash-stat span{font-size:13.5px;font-weight:700}
.bar-chart{display:flex;align-items:flex-end;gap:6px;height:130px;padding-top:10px}
.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.bar-col .bar{width:100%;max-width:34px;background:#7FB3E8;border-radius:6px 6px 0 0}
.bar-col span{font-size:11px}
.admin-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #F6ECD2}
.admin-row img{width:52px;height:52px;object-fit:cover;flex:none}
.admin-main{flex:1;min-width:0}
.admin-main b{display:block}
.admin-main span{font-size:13.5px}
footer{background:#000}
.pagefoot{background:#1E0133;color:#fff;padding:34px 0 30px;margin-top:0}
.pagefoot nav{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0}
.pagefoot nav a{color:#fff;text-decoration:none;font-weight:600;font-size:14.5px}
.pagefoot small{line-height:1.6}
.foot-logo img{height:44px}
.btn-sm{min-height:40px;padding:9px 16px;font-size:14px}
.btn-signin{background:#fff;border:1.5px solid var(--line);color:#000}
.btn-signin:hover{border-color:var(--gold-500)}
.wfull{width:100%}
@media (max-width:860px){.subpage{padding-top:150px}}
