/* assets/v4/v4.css */
/* ==========================================================================
   Bonfium v4 (ui_v4, docs/v4/PROMPT-v4.md). Loaded after v3.css on v3 pages and after
   the site styles on the home page and older pages (app/v4.php v4_head).
   Values come from docs/v4/reference/html/bf4.css ("v4 additions").
   ========================================================================== */

/* ---------- the header, lowered at rest (§1.1, §4): desktop 26 px inside the stage, phone 22 ---------- */
body.v3.v4{--hdr-rest:26px}
body.v3.v4 .stage{padding-top:112px}
body.v3.v4 .v3-paper-top{padding-top:112px!important}
body.v3.v4 .v3-main{padding-bottom:0}   /* the footer card sits 48 px after the last card (§3) */
@media (max-width:760px){
  body.v3.v4 .v3-hdr.is-top,body.v3.v4 .v3-hdr.is-rest{transform:translateY(16px)}
  body.v3.v4 .stage{padding-top:96px}
  body.v3.v4 .v3-paper-top{padding-top:92px!important}
  /* nothing at the bottom of the screen: no tab bar, no 110 px padding (§1.1) */
  body.v3.v4 .tabbar{display:none!important}
  /* the bar can sit over the footer on short pages: denser glass keeps its ink text readable */
  body.v3.v4 .actbar.frost{background:rgba(255,255,255,.74)}
  body.v3.v4 .v3-toast{bottom:calc(24px + env(safe-area-inset-bottom))}
  body.v3.v4.has-actbar .v3-toast{bottom:calc(104px + env(safe-area-inset-bottom))}
  /* pages that hid the phone bar for their own top line show it again: the back chip lives here now */
  body.v3.v4.v3-sellpage .v3-mtop,body.v3.v4.v3-roompage .v3-mtop{display:flex}
}

/* phone top bar: the back chip and the room's code chip (the bell, the avatar and the menu button: assets/fix5/pop.css) */
.v4-back{height:40px;display:inline-flex;align-items:center;gap:4px;padding:0 14px 0 8px;border-radius:999px;font-size:15px;font-weight:500;background:rgba(14,20,23,.05)}
.v4-hdr.is-top .v4-back{background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(20px) saturate(1.7);backdrop-filter:blur(20px) saturate(1.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 0 0 1px rgba(255,255,255,.18)}
.v4-codechip{height:34px;display:inline-flex;align-items:center;padding:0 12px;border-radius:999px;font-size:14px;font-weight:600;letter-spacing:.04em;
  margin-left:6px;margin-right:auto;background:rgba(14,20,23,.05)}
.v4-hdr.is-top .v4-codechip{background:rgba(20,24,28,.38);box-shadow:inset 0 0 0 1px rgba(255,255,255,.26)}

/* ---------- the menus, the phone drawer and the site header's phone buttons ----------
   fix 5 Part 3: one header (bf_header() in app/v4.php) and one pop-up, .bf-pop (assets/fix5/pop.css, pop.js).
   The v4 drawer, the tinted pop-ups, the 2-column language grid and their phone buttons that were drawn here are gone. */
/* the old account v2 tab bar never shows with v4 */
.v4-site .a2-tabbar{display:none!important}

/* ---------- the footer: assets/fix6/footer.css (fix 6 Part 1; the dark card, its grain and the old footers' hiding rule are gone) ---------- */

/* ---------- fields (§6): the stage's bottom scrim rises to .42 ---------- */
body.v3.v4 .field>.scrim-b{background:linear-gradient(180deg,rgba(14,20,23,0) 50%,rgba(14,20,23,.42) 100%)}

/* ---------- minimal by rule: shared pieces (§5) ---------- */
.v4 .v4-sub{font-size:16px;color:rgba(255,255,255,.88);margin-top:10px}
.v4 .v4-sub.ink{color:var(--sub)}
.v4 .v4-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);padding:0 4px;margin-bottom:16px}
.v4 .v4-tabs a{height:44px;display:inline-flex;align-items:center;font-size:15px;font-weight:600;color:var(--sub);position:relative}
.v4 .v4-tabs a[aria-current="page"]{color:var(--ink)}
.v4 .v4-tabs a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink);border-radius:2px}
.v4 .v4-tabs a .d{width:6px;height:6px;border-radius:50%;background:var(--ink);margin-left:6px}
.v4 .v4-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-card);padding:4px 24px}
.v4 .lrow{display:flex;align-items:center;gap:12px;min-height:60px;padding:0 4px;border-top:1px solid var(--line);font-size:16px;color:var(--ink)}
.v4 .lrow:first-child{border-top:0}
.v4 .lrow .t{flex:1;min-width:0}
.v4 .lrow .v{color:var(--sub);font-size:15px;display:inline-flex;align-items:center;gap:8px}
.v4 .lrow .chev{color:var(--sub);flex:none}
.v4 .lrow.x{color:var(--coral)}
.v4 button.lrow{width:100%;background:none;border-left:0;border-right:0;border-bottom:0;text-align:left;font:inherit;cursor:pointer}
.v4 .trow{display:flex;align-items:center;gap:14px;min-height:72px;padding:0 2px;border-top:1px solid var(--line);color:var(--ink)}
.v4 .trow:first-child{border-top:0}
.v4 .trow .av{width:40px;height:40px;font-size:15px;background:var(--paper-3);color:var(--ink)}
.v4 .trow .t{flex:1;min-width:0}
.v4 .trow .t b{display:block;font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v4 .trow .t span{display:block;font-size:14px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v4 .trow .a{text-align:right;font-family:var(--display);font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
.v4 .v4-needs{padding:4px 20px}
.v4 .v4-needs .nrow{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 0;border-top:1px solid rgba(255,255,255,.12)}
.v4 .v4-needs .nrow:first-child{border-top:0}
.v4 .v4-needs .nrow .t{flex:1;min-width:0}
.v4 .v4-needs .nrow .t b{display:block;font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v4 .v4-needs .nrow .t>span{display:block;font-size:14px;color:rgba(255,255,255,.75);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v4 .v4-needs .nrow .btn{flex:none}
.v4 .v4-figs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.v4 .v4-figs .big{font-size:28px;line-height:1.1}
.v4 .v4-figs .cap{margin-top:4px}
.v4 .big{font-family:var(--display);font-weight:400;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.v4 .v4-sec{margin-top:24px}
.v4 .v4-wrap{max-width:760px;margin:0 auto;padding:0 24px}
.v4 .v4-wrap.wide{max-width:1200px}
@media (max-width:760px){
  .v4 .v4-wrap{padding:0 10px}
  .v4 .v4-card{padding:4px 16px}
  .v4 .v4-figs .big{font-size:24px}
}

/* ---------- §9.6 press feedback in the same frame ---------- */
.v4 a,.v4 button,.v4-site a,.v4-site button,.bf-v4 a,.bf-v4 button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.v4 .btn:active,.v4 .lrow:active,.v4 .trow:active,.v4 .chip:active,.v4-back:active{transform:scale(.98)}
.v4 .lrow:active,.v4 .trow:active{background:rgba(14,20,23,.03)}
.v4 .btn.is-busy{position:relative;color:transparent!important}
.v4 .btn.is-busy::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:2px solid currentColor;
  border-color:var(--sub) transparent var(--sub) var(--sub);animation:v4spin .7s linear infinite}
.v4 .btn.ink.is-busy::after,.v4 .field .btn.glassy.is-busy::after{border-color:#fff transparent #fff #fff}
@keyframes v4spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.v4 .btn:active,.v4 .lrow:active,.v4 .trow:active{transform:none}}

/* assets/v4/parts/acct.css */
/* Rewards, Rank, Medals, Account (+ Profile, Sign-in, Notifications, Identity), Help
   (app/v4-acct-*.php, §5.5–5.7, boards V4RewardsM, V4RankM, V4AccountM, V4ProfileM, V4HelpM) */

/* ---------- the field: H1 + one line, or the code sheet / the search ---------- */
.v4 .v4-acct-stage{padding-bottom:36px}
.v4 .v4-acct-head .h1{font-size:56px;line-height:1.02}
.v4 .v4-acct-head .v4-sub{margin-top:10px}

/* Rewards: the code sheet */
.v4 .v4-acct-code{padding:24px;margin-top:22px;max-width:520px}
.v4 .v4-acct-code .k{font-size:15px;color:rgba(255,255,255,.72);margin:0}
.v4 .v4-acct-code .c{font-size:44px;line-height:1.1;letter-spacing:.02em;margin:4px 0 0;word-break:break-all}
.v4 .v4-acct-code .b{display:flex;gap:8px;margin-top:18px}
.v4 .v4-acct-code .b .btn{flex:1;min-width:0}

/* Help: the search on the field */
.v4 .v4-acct-search{margin-top:20px;height:52px;border-radius:999px;display:flex;align-items:center;gap:10px;padding:0 18px;color:rgba(255,255,255,.85);max-width:520px}
.v4 .v4-acct-search svg{flex:none}
.v4 .v4-acct-search input{flex:1;min-width:0;height:50px;border:0;background:transparent;font:inherit;font-size:16px;color:#fff;outline:none;padding:0;-webkit-appearance:none;appearance:none}
.v4 .v4-acct-search input::placeholder{color:rgba(255,255,255,.85)}
.v4 .v4-acct-search input::-webkit-search-cancel-button{filter:invert(1)}

/* Account: disc, name, email */
.v4 .v4-acct-me{display:flex;align-items:center;gap:18px}
.v4 .v4-acct-me .av{width:88px;height:88px;font-size:30px}
.v4 .v4-acct-me .who{min-width:0}
.v4 .v4-acct-me h1{font-size:44px;line-height:1.05;margin:0;color:#fff;overflow-wrap:anywhere}
.v4 .v4-acct-me p{font-size:16px;color:rgba(255,255,255,.85);margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- below the field: cards of rows ---------- */
.v4 .v4-acct-body{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.v4 .v4-acct-body .v4-card{margin:0;list-style:none}
.v4 .v4-acct-body .v4-card.v4-acct-pad,.v4 .v4-acct-body .v4-acct-form{padding:24px}
.v4 .v4-acct-body .lrow{text-decoration:none}
.v4 .v4-acct-body .lrow .adot{margin-right:-2px}

/* Rewards: joined · traded · earned */
.v4 .v4-acct-figs{display:flex;justify-content:space-between;gap:12px;padding:18px 24px}
.v4 .v4-acct-figs>div{min-width:0}
.v4 .v4-acct-figs>div:last-child{text-align:right}
.v4 .v4-acct-figs .big{display:block;font-size:30px;line-height:1.1;color:var(--ink)}
.v4 .v4-acct-figs span{display:block;font-size:14px;color:var(--sub);margin-top:2px}

/* Rank: the ladder */
.v4 .v4-acct-ladder{padding-top:4px;padding-bottom:4px}
.v4 .v4-acct-ladder .lrow{min-height:58px}
.v4 .v4-acct-ladder .av.xs{width:28px;height:28px;font-size:11px;background:var(--paper-3);color:var(--ink)}
.v4 .v4-acct-ladder .is-now .av.xs{background:var(--ink);color:#fff}
.v4 .v4-acct-ladder .is-now .t{font-weight:600}
.v4 .v4-acct-ladder .v{white-space:nowrap}

/* Medals: one calm row each */
.v4 .v4-acct-medals .lrow{min-height:72px;padding-top:10px;padding-bottom:10px}
.v4 .v4-acct-medals .mi{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;background:var(--paper-3);color:var(--sub)}
.v4 .v4-acct-medals .is-got .mi{background:var(--ink);color:#fff}
.v4 .v4-acct-medals .t b{display:block;font-weight:600;font-size:16px}
.v4 .v4-acct-medals .t>span{display:block;font-size:14px;color:var(--sub);margin-top:2px}
.v4 .v4-acct-medals .v{color:var(--ink)}

/* settings rows: title + one meta line + the control */
.v4 .v4-acct-set{min-height:72px;padding-top:12px;padding-bottom:12px;gap:16px}
.v4 .v4-acct-set .t b{display:block;font-weight:600;font-size:16px}
.v4 .v4-acct-set .t>span{display:block;font-size:14px;line-height:1.4;color:var(--sub);margin-top:2px;overflow-wrap:anywhere}
.v4 .v4-acct-set form{margin:0;flex:none}
.v4 .v4-acct-set label{flex:none;display:inline-flex}

/* Log out sits in a form: keep the hairline above it */
.v4 .v4-acct-out{margin:0}
.v4 .v4-acct-out .lrow{border-top:1px solid var(--line)}
.v4 .v4-acct-out:first-child .lrow{border-top:0}

/* Profile: the form */
.v4 .v4-acct-form .fl+.fl{margin-top:16px}
.v4 .v4-acct-form .err{font-size:14px;color:var(--coral);margin:6px 0 0}
.v4 .v4-acct-hint{font-size:14px;color:var(--sub);margin:0 0 16px}
.v4 .v4-acct-tog{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin-top:12px;font-size:16px;cursor:pointer}
.v4 .v4-acct-more{margin-top:4px;border-top:1px solid var(--line)}
.v4 .v4-acct-more summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:52px;font-size:16px;cursor:pointer}
.v4 .v4-acct-more summary::-webkit-details-marker{display:none}
.v4 .v4-acct-more summary::after{content:"+";font-size:20px;line-height:1;color:var(--sub);transition:transform .2s}
.v4 .v4-acct-more[open] summary::after{transform:rotate(45deg)}
.v4 .v4-acct-more .fl{padding-bottom:8px}
.v4 .v4-acct-form .btn.block{width:100%;margin-top:14px}

/* Identity */
.v4 .v4-acct-p{font-size:16px;line-height:1.5;color:var(--ink-2);margin:0}
.v4 .v4-acct-p.m{margin-top:12px;font-size:15px;color:var(--sub)}
.v4 .v4-acct-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.v4 .v4-acct-btns form{margin:0}

/* one quiet line under a card */
.v4 .v4-acct-note{font-size:14px;line-height:1.45;color:var(--sub);margin:4px 0 0;padding:0 8px}
.v4 .v4-acct-none{font-size:15px;color:var(--sub);margin:0;padding:8px}
.v4 .v4-acct-links{display:flex;justify-content:center;gap:20px;margin:8px 0 0;font-size:14px;font-weight:600}
.v4 .v4-acct-links a{color:var(--ink-2);text-decoration:none;padding:10px 4px}
.v4 .v4-acct-links a:hover{text-decoration:underline;text-underline-offset:3px}

/* Help: FAQ rows open in place */
.v4 .v4-acct-faq details{border-top:1px solid var(--line)}
/* while searching: no hairline above the first row still showing */
.v4 .v4-acct-faq details:not(:not([hidden])~details),.v4 [data-v4-hgroup] .lrow:not(:not([hidden])~.lrow){border-top:0}
.v4 .v4-acct-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:10px 4px;cursor:pointer;font-size:16px;color:var(--ink)}
.v4 .v4-acct-faq summary::-webkit-details-marker{display:none}
.v4 .v4-acct-faq summary::after{content:"+";flex:none;font-size:18px;line-height:1;color:var(--sub);transition:transform .2s}
.v4 .v4-acct-faq details[open] summary::after{transform:rotate(45deg)}
.v4 .v4-acct-faq .ans{margin:0;padding:0 4px 18px;font-size:15px;line-height:1.55;color:var(--ink-2)}
.v4 [data-v4-hgroup][hidden],.v4 [data-v4-h][hidden]{display:none}

@media (max-width:760px){
  .v4 .v4-acct-stage{padding-bottom:20px}
  .v4 .v4-acct-head{padding:0 16px}
  .v4 .v4-acct-head .h1{font-size:34px}
  .v4 .v4-acct-head .v4-sub{font-size:15px;margin-top:6px}
  .v4 .v4-acct-code{padding:20px;margin-top:18px}
  .v4 .v4-acct-code .c{font-size:40px}
  .v4 .v4-acct-search{margin-top:16px}
  .v4 .v4-acct-me{gap:14px}
  .v4 .v4-acct-me .av{width:64px;height:64px;font-size:22px}
  .v4 .v4-acct-me h1{font-size:28px}
  .v4 .v4-acct-me p{font-size:14px;margin-top:2px}
  .v4 .v4-acct-figs{padding:18px 20px}
  .v4 .v4-acct-figs .big{font-size:26px}
  .v4 .v4-acct-body .v4-card.v4-acct-pad,.v4 .v4-acct-body .v4-acct-form{padding:20px}
}

/* assets/v4/parts/badge.css */
/* ==========================================================================
   fix 6 Part 6: THE badge, one look everywhere (bonfium-fix6/PROMPT.md Part 6, screens/BADGE_LATEST.png).
   Markup: bf_badge() in app/v4-badge-lib.php, the only place that prints it. Its PNG twin (emails, share
   and Open Graph images): bf_badge_gd() in the same file; on the seller's own photos the /badge tool draws
   the same geometry in the browser (assets/fix3/badge.js, window.F3Badge). Loaded on every v4 page (the
   assets/v4/parts/ glob), so any page can print it.

   The look: the header pill's clear liquid glass (the --pill-* tokens of assets/fix3/glass.css, with their
   values as fallbacks), the top light, a 1 px light rim; left "Protected by" over the site's own logo
   (#logo-bonfium from app/logo-sprite.php: the wordmark and the warm glow behind its "F", never redrawn),
   a thin hairline, right "Name · @handle" / nothing / the code. Never a number about the person.
   Two sizes: the tool's (default) and --sm. Nothing in it is under 12 px. Two tones: white (darker photos)
   and --ink (lighter ones), the tool's own contrast rule. No backdrop-filter or reduced transparency:
   solid light rgba(255,255,255,.94) with ink text, never a dark fill.
   ========================================================================== */
.bf-badge{--s:1.1;--bh:calc(56px * var(--s));--bpl:calc(15px * var(--s));--bpr:calc(16px * var(--s));--brad:calc(20px * var(--s));
  --bpb:calc(11px * var(--s));--blw:calc(68px * var(--s));--blt:calc(6.5px * var(--s));--bgap:calc(14px * var(--s));--bdi:calc(13px * var(--s));--brt:calc(15px * var(--s));
  --bfg:#fff;--bpbc:rgba(255,255,255,.86);--bdc:rgba(255,255,255,.4);
  position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;display:inline-flex;align-items:center;flex:none;vertical-align:middle;
  max-width:100%;height:var(--bh);padding:0 var(--bpr) 0 var(--bpl);border-radius:var(--brad);white-space:nowrap;color:var(--bfg);
  background:var(--pill-bg,rgba(255,255,255,.16));
  -webkit-backdrop-filter:var(--pill-filter,blur(20px) saturate(1.7));backdrop-filter:var(--pill-filter,blur(20px) saturate(1.7));
  box-shadow:var(--pill-edge,inset 0 1px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.12)),var(--pill-shadow,0 10px 28px -14px rgba(15,21,25,.28));
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;text-align:left;letter-spacing:0}
/* the inset highlights: top light and a soft bounce at the bottom, and the 1 px light rim */
.bf-badge::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.22) 0,rgba(255,255,255,0) 45%,rgba(255,255,255,0) 85%,rgba(255,255,255,.12) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.bf-badge-l{display:flex;flex-direction:column;align-items:flex-start;flex:none;min-width:var(--blw);padding-bottom:calc(var(--bh) * .0536)}
.bf-badge-pb{font:500 var(--bpb)/1 var(--text,'Instrument Sans',system-ui,sans-serif);color:var(--bpbc);white-space:nowrap}
.bf-badge-logo{display:block;width:var(--blw);height:calc(var(--blw) * .11308);margin-top:var(--blt);overflow:visible;color:var(--bfg)}
.bf-badge-d{align-self:stretch;flex:none;width:1px;margin:var(--bdi) var(--bgap);background:var(--bdc)}
.bf-badge-r{min-width:0;overflow:hidden;text-overflow:ellipsis;font:500 var(--brt)/1.2 var(--display,'Outfit',system-ui,sans-serif);white-space:nowrap}

/* the small size: the same badge a step down, its smallest words still 12 px */
.bf-badge--sm{--bh:48px;--bpl:13px;--bpr:14px;--brad:17px;--bpb:12px;--blw:72px;--blt:5px;--bgap:11px;--bdi:11px;--brt:14px}

/* ink on lighter photos (the tool's contrast rule): the same glass, ink words and the ink logo */
.bf-badge--ink{--bfg:#0F1519;--bpbc:rgba(15,21,25,.74);--bdc:rgba(15,21,25,.2)}

/* no glass: solid light with ink words, never a dark fill (tests/v4_test.php) */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .bf-badge{background:rgba(255,255,255,.94);--bfg:#0F1519;--bpbc:rgba(15,21,25,.74);--bdc:rgba(15,21,25,.2)}
}
@media (prefers-reduced-transparency:reduce){
  .bf-badge{background:rgba(255,255,255,.94);-webkit-backdrop-filter:none;backdrop-filter:none;--bfg:#0F1519;--bpbc:rgba(15,21,25,.74);--bdc:rgba(15,21,25,.2)}
}
@media (forced-colors:active){ .bf-badge{border:1px solid CanvasText} }

/* ---- where a page places it ---- */
/* /@handle before v5_you (app/v4-at.php): top left of the header field */
.bdg4-pfchip{position:absolute;z-index:4;top:28px;left:32px}
.bdg4-pay{margin:14px 0 0;font:400 15px/1.45 var(--ff-body);color:var(--ink-2,#3B4750)}
@media (max-width:760px){
  .bdg4-pfchip{top:14px;left:14px}
  .bdg4-pay{margin:16px 20px 0;font-size:15px}
}

/* assets/v4/parts/badge2.css */
/* Badge tool v2 (/app/badge while badge_tool_v2 is on; docs/badge-v2/PROMPT.md §6). Every rule is under
   .bd2 / .bd2-pg / .bdg2-*, which only the v2 pages print, so nothing here touches another page. Paper page,
   clear liquid glass only (the sticky bar is the floating-menu glass: white .26, blur 36, saturate 1.8). */

.v4 .bd2{max-width:1200px;margin:0 auto;padding:0 24px 64px;color:var(--ink)}
.v4 .bd2 [hidden]{display:none!important}
.v4 .bd2-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.v4 .bd2-head{margin:8px 0 28px}
.v4 .bd2-h1{margin:0;font:400 48px/1.05 var(--display);letter-spacing:-.035em;color:var(--ink)}
.v4 .bd2-one{margin:12px 0 0;font:400 16px/1.45 var(--text);color:var(--ink-2)}
.v4 .bd2-lab{margin:0 0 10px;font:600 14px/1.3 var(--text);color:var(--ink)}
.v4 .bd2-h2{margin:0 0 8px;font:500 20px/1.25 var(--display);letter-spacing:-.02em}

/* desktop: left the controls (flex 1 1 520px), right the live preview (0 1 480px, sticky at 24 px) */
.v4 .bd2-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);column-gap:56px;align-items:start}
.v4 .bd2-grid>*{grid-column:1;min-width:0}
.v4 .bd2-side{grid-column:2;grid-row:1/span 6;position:sticky;top:24px;display:flex;flex-direction:column;gap:14px}
.v4 .bd2.is-vinted .bd2-grid{grid-template-columns:minmax(0,760px)}
.v4 .bd2-grid>.bd2-sites,.v4 .bd2-grid>.bd2-vinted,.v4 .bd2-grid>.bd2-seg,.v4 .bd2-grid>.bd2-ctl{margin:0 0 24px}

/* chips: a real radiogroup, the input stays a focusable radio */
.v4 .bd2-chips{display:flex;flex-wrap:wrap;gap:8px}
.v4 .bd2-chip{position:relative;display:inline-flex;cursor:pointer}
.v4 .bd2-chip input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.v4 .bd2-chip span{display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:999px;background:#fff;
  box-shadow:inset 0 0 0 1px var(--line-2);font:500 15px/1 var(--text);color:var(--ink);white-space:nowrap;transition:background var(--t-fast),color var(--t-fast)}
.v4 .bd2-chip input:checked+span{background:var(--ink);color:#fff;box-shadow:none}
.v4 .bd2-chip input:focus-visible+span{outline:3px solid rgba(14,20,23,.3);outline-offset:2px}

/* the segmented control: real radio inputs in a paper track */
.v4 .bd2-seg{display:flex;gap:4px;padding:4px;margin:0;border:0;border-radius:999px;background:var(--paper-3);min-inline-size:0}
.v4 .bd2-seg label{position:relative;flex:1;display:flex}
.v4 .bd2-seg input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.v4 .bd2-seg label>span{flex:1;display:flex;align-items:center;justify-content:center;height:40px;padding:0 14px;border-radius:999px;
  font:500 15px/1 var(--text);color:var(--ink-2);white-space:nowrap;transition:background var(--t-fast),color var(--t-fast)}
.v4 .bd2-seg input:checked+span{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(14,20,23,.08)}
.v4 .bd2-seg input:focus-visible+span{outline:3px solid rgba(14,20,23,.3);outline-offset:1px}
.v4 .bd2-short{display:none}

/* the preview */
.v4 .bd2-prev{border-radius:20px;overflow:hidden}
.v4 .bd2-slides{display:flex;align-items:center;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:20px;background:var(--paper-3);transition:opacity var(--t-base)}
.v4 .bd2-slides::-webkit-scrollbar{display:none}
.v4 .bd2-slides.is-stale{opacity:.6}
.v4 .bd2-slides:focus-visible{outline:3px solid rgba(14,20,23,.3);outline-offset:2px}
.v4 .bd2-slide{flex:none;width:100%;height:auto;max-height:70vh;object-fit:contain;scroll-snap-align:center;display:block}
.v4 .bd2-empty{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;padding:24px;border:1.5px dashed var(--line-2);border-radius:20px;
  background:#fff;font:400 15px/1.45 var(--text);color:var(--sub);text-align:center;cursor:pointer}
.v4 .bd2-empty:focus-visible{outline:3px solid rgba(14,20,23,.3);outline-offset:2px}
.v4 .bd2-card{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:20px;background:var(--paper-3)}
.v4 .bd2-linebox{margin:0;padding:20px 22px;border-radius:20px;background:var(--paper-3);font:400 16px/1.5 var(--text);color:var(--ink)}

/* the main action: ink, a small spinner while the copies are being made */
.v4 .bd2-go{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:50px;padding:0 22px;border:0;border-radius:999px;
  background:var(--ink);color:#fff;font:600 16px/1 var(--text);cursor:pointer}
.v4 .bd2-go:hover{background:#1C252A}
.v4 .bd2-go:focus-visible{outline:3px solid rgba(14,20,23,.35);outline-offset:3px}
.v4 .bd2-go[disabled]{cursor:default;opacity:.5}
.v4 .bd2-go.is-busy[disabled]{opacity:.75}
.v4 .bd2-spin{display:none;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:bd2-spin .8s linear infinite;flex:none}
.v4 .bd2-go.is-busy .bd2-spin{display:inline-block}
@keyframes bd2-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.v4 .bd2-spin{animation-duration:2.4s}}
.v4 .bd2-saved{margin:0;font:400 14px/1.45 var(--text);color:var(--ink-2)}
.v4 .bd2-tolink{padding:0;border:0;background:none;font:600 14px/1.45 var(--text);color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* in-app browsers */
.v4 .bd2-inapp{padding:18px 20px}
.v4 .bd2-inapp-t{margin:0 0 12px;font:500 16px/1.4 var(--text);color:var(--ink)}
.v4 .bd2-inapp-s{margin:12px 0 0;font:400 14px/1.45 var(--text);color:var(--sub)}
.v4 .bd2-pill{height:40px;padding:0 18px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:600 14px/1 var(--text);cursor:pointer}
.v4 .bd2-pill:focus-visible{outline:3px solid rgba(14,20,23,.35);outline-offset:3px}

/* the controls */
.v4 .bd2-ctl{display:flex;flex-direction:column;gap:22px}
.v4 .bd2-photoctl{display:flex;flex-direction:column;gap:22px}
.v4 .bd2-photoctl[hidden]{display:none}
.v4 .bd2-choose{align-self:flex-start}
.v4 .bd2-strip{display:flex;flex-wrap:wrap;gap:8px;margin:-8px 0 0;padding:0;list-style:none}
.v4 .bd2-strip[hidden]{display:none}
.v4 .bd2-th{display:block;width:64px;height:64px;padding:0;border:0;border-radius:12px;background:var(--paper-3) center/cover no-repeat;cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(14,20,23,.08)}
.v4 .bd2-th[aria-pressed="true"]{box-shadow:0 0 0 2px var(--ink)}
.v4 .bd2-th:focus-visible{outline:3px solid rgba(14,20,23,.3);outline-offset:4px}
.v4 .bd2-tip,.v4 .bd2-note{margin:-8px 0 0;font:400 14px/1.45 var(--text);color:var(--sub)}
.v4 .bd2-note{margin:0}
.v4 .bd2-err{margin:-8px 0 0;padding:0;list-style:none;font:500 14px/1.45 var(--text);color:var(--coral)}
.v4 .bd2-err:empty{display:none}
.v4 .bd2-corners{display:flex;flex-wrap:wrap;gap:8px}
.v4 .bd2-auto{height:44px;padding:0 16px;border-radius:12px;border:0;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2);font:500 15px/1 var(--text);color:var(--ink);cursor:pointer}
.v4 .bd2-corner{position:relative;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2);cursor:pointer}
.v4 .bd2-corner i{position:absolute;width:16px;height:8px;border-radius:3px;background:var(--line-2)}
.v4 .bd2-corner--tl i{top:7px;left:7px}.v4 .bd2-corner--tr i{top:7px;right:7px}
.v4 .bd2-corner--bl i{bottom:7px;left:7px}.v4 .bd2-corner--br i{bottom:7px;right:7px}
.v4 .bd2-auto[aria-checked="true"],.v4 .bd2-corner[aria-checked="true"]{box-shadow:inset 0 0 0 2px var(--ink)}
.v4 .bd2-corner[aria-checked="true"] i,.v4 .bd2-corner.is-auto i{background:var(--ink)}
.v4 .bd2-corner.is-auto{box-shadow:inset 0 0 0 1px var(--ink-2)}
.v4 :is(.bd2-auto,.bd2-corner):focus-visible{outline:3px solid rgba(14,20,23,.3);outline-offset:2px}
.v4 .bd2-rules{margin:4px 0 0;font:400 13px/1.45 var(--text);color:var(--sub)}
.v4 .bd2-vinted{padding:22px 24px}
.v4 .bd2-vinted p{margin:0 0 8px;font:400 15px/1.5 var(--text);color:var(--ink-2)}
.v4 .bd2-vinted p:last-child{margin:0}

/* not public: one card */
.v4 .bd2--off{max-width:560px;padding-top:24px}
.v4 .bd2-offcard{padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.v4 .bd2-offh{margin:0;font:400 28px/1.15 var(--display);letter-spacing:-.03em}

/* ---- phone (390): one column; the preview after the segmented control; the sticky bottom bar ---- */
@media (max-width:899px){
  .v4 .bd2{padding:0 16px calc(50px + 32px + env(safe-area-inset-bottom))}
  .v4 .bd2-head{margin:0 0 20px}
  .v4 .bd2-h1{font-size:30px;line-height:1.1}
  .v4 .bd2-one{font-size:15px;margin-top:8px}
  .v4 .bd2-grid{display:flex;flex-direction:column;align-items:stretch}
  .v4 .bd2-side{position:static;margin:0 0 24px}
  .v4 .bd2-grid>.bd2-sites,.v4 .bd2-grid>.bd2-vinted,.v4 .bd2-grid>.bd2-seg{margin:0 0 20px}
  .v4 .bd2-sites{order:1}.v4 .bd2-vinted{order:2}.v4 .bd2-seg{order:3}.v4 .bd2-side{order:4}.v4 .bd2-ctl{order:5}.v4 .bd2-rules{order:6}
  .v4 .bd2-long{display:none}.v4 .bd2-short{display:inline}
  .v4 .bd2-prev,.v4 .bd2-slides,.v4 .bd2-empty,.v4 .bd2-card,.v4 .bd2-linebox{border-radius:16px}
  .v4 .bd2-bar{position:fixed;z-index:30;left:0;right:0;bottom:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:rgba(255,255,255,.26);-webkit-backdrop-filter:blur(36px) saturate(1.8);backdrop-filter:blur(36px) saturate(1.8);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 -10px 28px -18px rgba(15,21,25,.22);color:var(--ink);transition:transform var(--t-base)}
  .v4 .bd2-bar.is-kb{transform:translateY(110%)}
  .v4 .bd2.is-vinted .bd2-bar{display:none}
}
@media (max-width:899px) and (prefers-reduced-transparency:reduce){
  .v4 .bd2-bar{background:rgba(255,255,255,.94);-webkit-backdrop-filter:none;backdrop-filter:none}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  @media (max-width:899px){.v4 .bd2-bar{background:rgba(255,255,255,.94)}}
}

/* ---- /@handle under v2 (fix 6 Part 6: its chip rules are gone; /@handle prints the one badge, bf_badge()) ---- */
.bdg2-pay{margin:14px 0 0}
.pf-cols.bdg2-cols{display:block}
.pf-cols.bdg2-cols .pf-main{display:none}
.pf-cols.bdg2-cols .pf-aside{max-width:480px}
.v4 .bd2-acctrow{margin:16px 0 0;padding:4px 20px}
/* one photo, one badge (9 Oct): the big preview is enough, no thumbnail strip */
.v4 .bd2 [data-bd2-strip]{display:none!important}

/* assets/v4/parts/home.css */
/* Bonfium v4, home page (docs/v4/PROMPT-v4.md §8.5, §3; motion: docs/v4/docs/motion-v4.md).
   "Put Bonfium on your listing.": five listing pages that stick and pile up like a book, and the
   home page's own "Nobody has to go first." section. Markup: app/v4-home.php. Everything is scoped
   to .v4h* (the home body carries no .v4 class). Only transform and opacity move. */

.v4h,.v4h-cta{--v4h-ink:#0E1417;--v4h-ink2:#3B4750;--v4h-sub:#5B6A74;
  --v4h-display:var(--display,'Outfit','Instrument Sans',system-ui,sans-serif);
  --v4h-text:var(--text,'Instrument Sans',system-ui,-apple-system,'Segoe UI',sans-serif);
  font-family:var(--v4h-text);color:var(--v4h-ink);-webkit-font-smoothing:antialiased}
/* full bleed: the home page's sections sit in a narrower centred column */
.v4h{--v4h-top:96px;--v4h-step:46px;position:relative;padding:0 0 8px;margin-inline:calc(50% - 50vw)}
.v4h *,.v4h-cta *{box-sizing:border-box}

/* ---------- intro, on paper ---------- */
.v4h-intro{text-align:center;padding:72px 24px 40px;max-width:900px;margin:0 auto}
.v4h-eyebrow{margin:0;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--v4h-sub)}
.v4h-h2{margin:10px 0 0;font-family:var(--v4h-display);font-weight:400;font-size:56px;line-height:1.05;letter-spacing:-.035em;color:var(--v4h-ink)}
.v4h-lead{margin:14px auto 0;max-width:560px;font-size:18px;line-height:1.5;color:var(--v4h-ink2)}

/* ---------- the pages ---------- */
.v4h-pages{display:flex;flex-direction:column;align-items:center;position:relative}
.v4h-sn{display:block;width:100%;height:0;flex:none}
.v4h-end{display:block;flex:none;height:18vh}
.v4h-pg{position:sticky;top:calc(var(--v4h-top) + var(--i) * var(--v4h-step));flex:none;
  width:min(1360px,calc(100vw - 40px));min-height:var(--v4h-h,600px);
  /* every page's bottom edge lines up, so the stack leaves as one book instead of folding shut */
  margin:0 auto calc(64px + (4 - var(--i)) * var(--v4h-step));
  border-radius:32px;overflow:hidden;isolation:isolate;color:#fff;transform-origin:50% 0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 -10px 30px -14px rgba(14,20,23,.28),0 30px 60px -30px rgba(14,20,23,.45)}
.v4h-pg>picture.bg{position:absolute;inset:0;z-index:-3;display:block}
.v4h-pg>picture.bg img{display:block;width:100%;height:100%;object-fit:cover}
.v4h-pg>.grain,.v4h-cta>.grain{position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:var(--grain-src,url(/assets/grain/grain-256.png)) repeat;background-size:var(--grain-size,128px) var(--grain-size,128px);mix-blend-mode:soft-light}

/* the strip that stays visible once the next page covers this one */
.v4h-tab{height:46px;display:flex;align-items:center;padding:0 32px;font-size:15px;line-height:1.2;color:rgba(255,255,255,.86)}
.v4h-tab span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v4h-tab b{font-weight:600;color:#fff;margin-right:10px;font-variant-numeric:tabular-nums}

.v4h-body{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:56px;align-items:center;padding:28px 72px 56px;min-height:554px}
.v4h-copy h3{margin:0;font-family:var(--v4h-display);font-weight:400;font-size:56px;line-height:1.02;letter-spacing:-.035em;color:#fff;text-wrap:balance}
.v4h-copy p{margin:18px 0 0;max-width:520px;font-size:18px;line-height:1.5;color:rgba(255,255,255,.9)}
.v4h-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 22px;border-radius:999px;background:#fff;color:var(--v4h-ink);
  font:600 15px/1 var(--v4h-text);text-decoration:none;white-space:nowrap;transition:transform 80ms ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.v4h-btn:active{transform:scale(.98)}
.v4h-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.v4h-copy .v4h-btn{margin-top:26px}

/* ---------- the generic listing card ---------- */
.v4h-lst{width:380px;justify-self:end;background:#fff;color:var(--v4h-ink);border-radius:18px;overflow:hidden;
  box-shadow:0 1px 0 rgba(14,20,23,.04),0 18px 40px -18px rgba(14,20,23,.35)}
.v4h-ph{position:relative;aspect-ratio:1/1;overflow:hidden;isolation:isolate}
.v4h-ph.bd-light{background:linear-gradient(160deg,#F2EFE9,#DAD3C8)}
.v4h-ph.bd-warm{background:linear-gradient(160deg,#ECDFCB,#C8B092)}
.v4h-ph.bd-stone{background:linear-gradient(160deg,#DDE1E2,#AAB2B6)}
.v4h-ph.bd-dark{background:linear-gradient(160deg,#4A4743,#1E1D1B)}
.v4h-ph.bd-night{background:linear-gradient(160deg,#33414A,#12191D)}
.v4h-ph>.grain{position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(/assets/grain/grain-256.png) repeat;background-size:128px;mix-blend-mode:soft-light}
.v4h-ph .it{position:absolute;left:50%;top:46%;width:58%;height:auto;transform:translate(-50%,-50%);color:rgba(255,255,255,.92)}
.v4h-ph.bd-light .it,.v4h-ph.bd-warm .it,.v4h-ph.bd-stone .it{color:rgba(14,20,23,.82)}
.v4h-meta{padding:12px 14px 14px}
.v4h-meta .pr{font-family:var(--v4h-display);font-size:22px;line-height:1.2;letter-spacing:-.02em}
.v4h-meta .ti{margin-top:2px;font-size:15px;line-height:1.35}
.v4h-meta .pl{margin-top:4px;font-size:13px;line-height:1.35;color:var(--v4h-sub)}

/* the badge: the one Bonfium badge (fix 6 Part 6: bf_badge(), assets/v4/parts/badge.css), small, bottom left,
   as the /badge tool puts it on a photo (13% of the photo's side) */
.v4h-ph>.v4h-badge{position:absolute;left:4%;bottom:4%;max-width:92%}

/* ---------- covered pages sink a little: scale(1 − 0.02 × depth) from the top centre ----------
   Each page j > 0 has a zero-height marker at its own place in the flow (.v4h-sn, a view timeline
   that scrolls normally while the pages stick). As page j rises from the bottom of the window to its
   sticky top, every page under it shrinks one step; the steps add up (animation-composition:add).
   Without scroll-driven animations, home.js writes the same transform from one rAF scroll handler. */
@supports (animation-timeline:view()) {
  .v4h-pages{timeline-scope:--v4h-p1,--v4h-p2,--v4h-p3,--v4h-p4}
  .v4h-pg.v4h-p0,.v4h-pg.v4h-p1,.v4h-pg.v4h-p2,.v4h-pg.v4h-p3{animation-name:v4h-sink;animation-timing-function:linear;animation-fill-mode:both;animation-duration:auto;animation-composition:add}
  .v4h-pg.v4h-p0{animation-name:v4h-sink,v4h-sink,v4h-sink,v4h-sink;animation-timeline:--v4h-p1,--v4h-p2,--v4h-p3,--v4h-p4;
    animation-range:cover 0% cover calc(100vh - 142px),cover 0% cover calc(100vh - 188px),cover 0% cover calc(100vh - 234px),cover 0% cover calc(100vh - 280px)}
  .v4h-pg.v4h-p1{animation-name:v4h-sink,v4h-sink,v4h-sink;animation-timeline:--v4h-p2,--v4h-p3,--v4h-p4;
    animation-range:cover 0% cover calc(100vh - 188px),cover 0% cover calc(100vh - 234px),cover 0% cover calc(100vh - 280px)}
  .v4h-pg.v4h-p2{animation-name:v4h-sink,v4h-sink;animation-timeline:--v4h-p3,--v4h-p4;
    animation-range:cover 0% cover calc(100vh - 234px),cover 0% cover calc(100vh - 280px)}
  .v4h-pg.v4h-p3{animation-timeline:--v4h-p4;animation-range:cover 0% cover calc(100vh - 280px)}
  @keyframes v4h-sink{from{transform:scale(1)}to{transform:scale(.98)}}
  @keyframes v4h-sink-m{from{transform:scale(1)}to{transform:scale(.97)}}
}

/* ---------- tablet ---------- */
@media (max-width:1180px) and (min-width:761px){
  .v4h-body{grid-template-columns:minmax(0,1fr) 340px;gap:40px;padding:28px 48px 48px}
  .v4h-copy h3{font-size:44px}
  .v4h-lst{width:340px}
}

/* ---------- phone: 100vw − 20 px, a 40 px strip, the listing under the text ---------- */
@media (max-width:760px){
  .v4h{--v4h-top:72px;--v4h-step:40px}
  .v4h-intro{text-align:left;padding:44px 20px 22px}
  .v4h-h2{margin-top:8px;font-size:36px;line-height:1.08}
  .v4h-lead{margin:12px 0 0;font-size:16px}
  .v4h-pg{width:calc(100vw - 20px);border-radius:28px}
  .v4h-tab{height:40px;padding:0 20px;font-size:14px}
  .v4h-body{display:block;min-height:0;padding:14px 22px 26px}
  .v4h-copy h3{font-size:34px;line-height:1.05}
  .v4h-copy p{margin-top:10px;font-size:16px}
  .v4h-copy .v4h-btn{margin-top:18px}
  .v4h-lst{width:min(300px,100%);margin:20px auto 0}
  .v4h-end{height:12vh}
  @supports (animation-timeline:view()) {
    .v4h-pg.v4h-p0{animation-name:v4h-sink-m,v4h-sink-m,v4h-sink-m,v4h-sink-m}
    .v4h-pg.v4h-p1{animation-name:v4h-sink-m,v4h-sink-m,v4h-sink-m}
    .v4h-pg.v4h-p2{animation-name:v4h-sink-m,v4h-sink-m}
    .v4h-pg.v4h-p3{animation-name:v4h-sink-m}
    .v4h-pg.v4h-p0{animation-range:cover 0% cover calc(100vh - 112px),cover 0% cover calc(100vh - 152px),cover 0% cover calc(100vh - 192px),cover 0% cover calc(100vh - 232px)}
    .v4h-pg.v4h-p1{animation-range:cover 0% cover calc(100vh - 152px),cover 0% cover calc(100vh - 192px),cover 0% cover calc(100vh - 232px)}
    .v4h-pg.v4h-p2{animation-range:cover 0% cover calc(100vh - 192px),cover 0% cover calc(100vh - 232px)}
    .v4h-pg.v4h-p3{animation-range:cover 0% cover calc(100vh - 232px)}
  }
}

/* ---------- reduced motion: no sticking, no scaling, normal cards 24 px apart ---------- */
@media (prefers-reduced-motion:reduce){
  .v4h-pg{position:relative;top:auto;margin-bottom:24px;animation:none!important;transform:none!important}
  .v4h-end{display:none}
}

/* ---------- "Nobody has to go first." (§3: the home page's last section, above the footer) ---------- */
.v4h-cta{position:relative;isolation:isolate;overflow:hidden;width:min(1360px,calc(100vw - 40px));margin:72px 0 0 calc(50% - min(680px,50vw - 20px));padding:64px 32px;
  border-radius:32px;background:#0E1417;color:#fff;text-align:center}
.v4h-cta>.grain{opacity:.5}
.v4h-cta h2{margin:0;font-family:var(--v4h-display);font-weight:400;font-size:44px;line-height:1.08;letter-spacing:-.035em;color:#fff}
.v4h-cta .acts{margin-top:28px;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.v4h-cta .v4h-btn.line{background:transparent;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.v4h-cta .v4h-btn.line:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)}
@media (max-width:760px){
  .v4h-cta{width:calc(100vw - 20px);margin:48px 0 0 calc(50% - 50vw + 10px);padding:44px 20px;border-radius:28px;text-align:left}
  .v4h-cta h2{font-size:32px}
  .v4h-cta .acts{flex-direction:column;align-items:stretch;margin-top:24px}
}
/* the CTA is the home page's last section: the footer card follows 48 px (phone 32 px) after it, not after the shell's own padding */
main.shell:has(>#v-home .v4h-cta){padding-bottom:0}

/* assets/v4/parts/listing.css */
/* The badge without logging in: /badge, the listing page bonfium.com/K7Q4MX and the "Have a code?" field
   in the home hero (badge_listing_code; docs/listing-code/PROMPT.md). Every rule is under .lc-* (printed
   only by those pages and by switched-on entry points), so nothing here touches another page.
   Clear liquid glass only (white .16-.26, never a dark tint), white cards on the page's field. */

.lc-pg [hidden]{display:none!important}

/* ---------- /badge: the field stage with the title and, when done, the one white card ---------- */
.v4 .lc-bstage{padding-bottom:44px}
.v4 .lc-btop{max-width:1200px;margin:0 auto;padding:0 24px}
.v4 .lc-bh1{color:#fff;max-width:14ch}
.v4 .lc-bsub{color:rgba(255,255,255,.88);margin-top:12px;max-width:52ch}
.v4 .lc-done{max-width:600px;margin:28px 0 0;padding:28px 28px 24px;color:var(--ink);outline:none}
.v4 .lc-done-l{margin:0 0 8px;font:600 14px/1.3 var(--text);color:var(--ink-2)}
.v4 .lc-coderow{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 24px}
.v4 .lc-codebig{font:400 44px/1 var(--display);letter-spacing:.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.v4 .lc-linebox{margin:0 0 12px;padding:16px 18px;border-radius:16px;background:var(--paper-3);font:400 16px/1.5 var(--text);color:var(--ink)}
.v4 .lc-linerow{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.v4 .lc-rules{margin:10px 0 0;font:400 13px/1.45 var(--text);color:var(--sub)}
.v4 .lc-saveblock{margin:24px 0 0;padding:20px 0 0;border-top:1px solid var(--line)}
.v4 .lc-saved{margin:10px 0 0;font:500 15px/1.4 var(--text);color:var(--ink)}
.v4 .lc-inapp{margin:14px 0 0}
.v4 .lc-inapp p{margin:0 0 10px;font:500 15px/1.4 var(--text)}
.v4 .lc-inapp .lc-sub{margin:10px 0 0;font-weight:400;font-size:14px;color:var(--sub)}
.v4 .lc-acct{margin:24px 0 0;padding:20px 0 0;border-top:1px solid var(--line)}
.v4 .lc-acct-h{margin:0 0 6px;font:500 20px/1.25 var(--display);letter-spacing:-.02em}
.v4 .lc-acct p{margin:0 0 14px;font:400 15px/1.5 var(--text);color:var(--ink-2)}
.v4 .lc-pill{height:40px;padding:0 18px;border:0;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line-2);
  font:600 14px/1 var(--text);color:var(--ink);cursor:pointer}
.v4 .lc-pill.ink{background:var(--ink);color:#fff;box-shadow:none}
.v4 .lc-pill:focus-visible,.v4 .lc-textlink:focus-visible{outline:3px solid rgba(14,20,23,.3);outline-offset:2px}
.v4 .lc-textlink{padding:0;border:0;background:none;font:600 14px/1.45 var(--text);color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.v4 .lc-textlink[disabled]{color:var(--sub);text-decoration:none;cursor:default}

/* ---------- /badge: the steps (left) and the live preview (right, sticky) ---------- */
.v4 .lc-b{max-width:1200px;margin:0 auto;padding:28px 24px 64px;color:var(--ink)}
.v4 .lc-bgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);column-gap:48px;align-items:start}
.v4 .lc-steps{display:flex;flex-direction:column;gap:16px;min-width:0}
.v4 .lc-side{position:sticky;top:24px;display:flex;flex-direction:column;gap:14px;min-width:0}
.v4 .lc-b.is-vinted .lc-bgrid{grid-template-columns:minmax(0,760px)}
.v4 .lc-b.is-done .lc-bgrid{grid-template-columns:minmax(0,600px)}
.v4 .lc-step{padding:24px 28px;display:flex;flex-direction:column;gap:16px}
.v4 .lc-sh{margin:0;font:400 24px/1.2 var(--display);letter-spacing:-.025em;color:var(--ink)}
.v4 .lc-step .fl{margin:0}
.v4 .lc-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.v4 .lc-step .bd2-lab{margin:4px 0 -6px}
.v4 .lc-vinted{padding:18px 20px;border-radius:16px;background:var(--paper-3)}
.v4 .lc-vh{margin:0 0 8px;font:500 20px/1.25 var(--display);letter-spacing:-.02em}
.v4 .lc-vinted p{margin:0 0 8px;font:400 15px/1.5 var(--text);color:var(--ink-2)}
.v4 .lc-vinted p:last-child{margin:0}
.v4 .lc-choose{align-self:flex-start}
.v4 .lc-step .bd2-strip{margin:0}
.v4 .lc-step .bd2-tip{margin:-6px 0 0}
.v4 .lc-step .bd2-err{margin:0}
.v4 .lc-row{display:flex;flex-direction:column;gap:16px}
.v4 .lc-check{display:flex;gap:10px;align-items:flex-start;font:400 15px/1.45 var(--text);color:var(--ink);cursor:pointer}
.v4 .lc-check input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--ink)}
.v4 .lc-step .bd2-note{margin:0}
.v4 .lc-inrow{display:flex;gap:8px;align-items:stretch}
.v4 .lc-inrow .field-in{flex:1;min-width:0}
.v4 .lc-inrow .btn{flex:none}
.v4 .lc-cc{flex:0 0 112px!important}
.v4 .lc-otp{letter-spacing:.3em;font-variant-numeric:tabular-nums;max-width:180px}
.v4 .lc-contact{display:flex;flex-direction:column;gap:14px;margin:0}
.v4 .lc-coderowin .lc-textlink{margin-top:10px}
.v4 .lc-contact>.lc-textlink{align-self:flex-start}
.v4 .lc-msgline{margin:0;font:400 14px/1.45 var(--text);color:var(--ink-2)}
.v4 .lc-msgline:empty{display:none}
.v4 .lc-msgline.is-bad,.v4 .lc-need.is-bad{color:var(--coral)}
.v4 .lc-confirmed{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:10px;row-gap:4px;font:500 15px/1.45 var(--text);color:var(--ink);overflow-wrap:anywhere}
.v4 .lc-confirmed .lc-textlink{grid-column:2;justify-self:start}
.v4 .lc-tick{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;flex:none}
.v4 .lc-note{margin:0;font:400 14px/1.45 var(--text);color:var(--sub)}
.v4 .lc-need{margin:10px 0 0;font:400 14px/1.4 var(--text);color:var(--sub);text-align:center}
.v4 .lc-need:empty{display:none}
.v4 .lc-side .bd2-rules{margin:0}

/* ---------- the listing page: one card on the field ---------- */
.v4 .lc-stage{padding-bottom:48px}
.v4 .lc-wrap{max-width:520px;margin:0 auto;padding:8px 16px 0;color:#fff}
.v4 .lc-card{padding:0;overflow:hidden;color:var(--ink)}
.v4 .lc-photo{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:var(--paper-3)}
.v4 .lc-body{padding:20px 24px 22px}
.v4 .lc-item{margin:0;font:400 28px/1.15 var(--display);letter-spacing:-.03em;color:var(--ink);overflow-wrap:anywhere}
.v4 .lc-price{margin:10px 0 0;font:400 40px/1 var(--display);letter-spacing:-.02em;color:var(--ink)}
.v4 .lc-fee{margin:10px 0 0;font:400 15px/1.4 var(--text);color:var(--ink-2)}
.v4 .lc-initial{display:flex;justify-content:center;margin:0 0 20px}
.v4 .lc-initial span{display:flex;align-items:center;justify-content:center;width:132px;height:132px;border-radius:50%;
  background:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 0 0 1px rgba(255,255,255,.3),0 10px 28px -14px rgba(15,21,25,.3);
  -webkit-backdrop-filter:blur(20px) saturate(1.6);backdrop-filter:blur(20px) saturate(1.6);font:400 64px/1 var(--display);color:#fff}
.v4 .lc-under{margin:20px 0 0}
.v4 .lc-site{margin:0 0 6px;font:500 16px/1.45 var(--text);color:#fff}
.v4 .lc-check{color:inherit}
.v4 .lc-under .lc-check{display:block;margin:0 0 20px;font:400 16px/1.5 var(--text);color:rgba(255,255,255,.9);cursor:auto}
.v4 .lc-state{margin:0;padding:16px 18px;border-radius:16px;background:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 0 0 1px rgba(255,255,255,.24);
  -webkit-backdrop-filter:blur(20px) saturate(1.6);backdrop-filter:blur(20px) saturate(1.6);font:500 16px/1.5 var(--text);color:#fff}
.v4 .lc-acts{display:flex;gap:10px;flex-wrap:wrap}
.v4 .lc-payform{margin:0}
.v4 .lc-cap{margin:10px 0 0;font:400 13px/1.45 var(--text);color:rgba(255,255,255,.82)}
.v4 .lc-report{margin:22px 0 0}
.v4 .lc-report summary{display:inline-block;cursor:pointer;list-style:none;font:500 14px/1.45 var(--text);color:rgba(255,255,255,.9);text-decoration:underline;text-underline-offset:3px}
.v4 .lc-report summary::-webkit-details-marker{display:none}
.v4 .lc-reportform{margin:12px 0 0;padding:18px 20px;display:flex;flex-direction:column;gap:14px;align-items:flex-start;color:var(--ink)}
.v4 .lc-reportform fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.v4 .lc-reportform legend{margin:0 0 6px;padding:0;font:600 15px/1.3 var(--text)}
.v4 .lc-reportform label{display:flex;gap:10px;align-items:center;font:400 15px/1.4 var(--text);cursor:pointer}
.v4 .lc-reportform input{width:18px;height:18px;accent-color:var(--ink)}
.v4 .lc-foot{display:flex;gap:8px;align-items:center;margin:28px 0 0;font:400 14px/1.45 var(--text);color:rgba(255,255,255,.85)}
.v4 .lc-card--msg{padding:28px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.v4 .lc-msg{margin:0;font:400 28px/1.15 var(--display);letter-spacing:-.03em;color:var(--ink)}
.v4 .lc-msgsub{margin:0;font:400 16px/1.5 var(--text);color:var(--ink-2)}

/* ---------- the home hero: "Have a code?" (the same field as "Got a code from a seller?"), clear glass ---------- */
.lc-herocode{display:flex;align-items:center;gap:8px;max-width:440px;min-height:56px;margin:0 0 24px;padding:6px 6px 6px 22px;border-radius:999px;
  background:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 0 0 1px rgba(255,255,255,.28),0 10px 28px -14px rgba(15,21,25,.3);
  -webkit-backdrop-filter:blur(24px) saturate(1.7);backdrop-filter:blur(24px) saturate(1.7)}
.lc-herocode label{flex:1;font:500 15px/1.2 var(--ff-body,'Instrument Sans',system-ui,sans-serif);color:#fff;white-space:nowrap}
.lc-herocode input{width:118px;min-width:0;border:0;background:none;font:500 16px/1 var(--ff-body,'Instrument Sans',system-ui,sans-serif);letter-spacing:.08em;
  color:#fff;text-align:right;text-transform:uppercase;outline:none;padding:10px 6px}
.lc-herocode input::placeholder{color:rgba(255,255,255,.7);text-transform:none}
.lc-herocode input:focus-visible{background:rgba(255,255,255,.14);border-radius:10px}
.lc-herocode button{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#0F1519;cursor:pointer}
.lc-herocode button[disabled]{opacity:.55;cursor:default}
.lc-herocode button:focus-visible{outline:3px solid rgba(255,255,255,.7);outline-offset:2px}
.lc-herocode+.bf-ferr,.lc-herocode .bf-ferr{color:#fff}
.lc-ntlink{margin:0}

/* ---------- phone (390) ---------- */
@media (max-width:899px){
  .v4 .lc-btop{padding:0 16px}
  .v4 .lc-done{padding:22px 20px 20px;margin-top:20px}
  .v4 .lc-codebig{font-size:44px}
  .v4 .lc-b{padding:16px 16px calc(50px + 64px + env(safe-area-inset-bottom))}
  .v4 .lc-bgrid{display:flex;flex-direction:column;align-items:stretch;gap:16px}
  /* the steps and the preview interleave: what, photos, the preview, the contact */
  .v4 .lc-steps{display:contents}
  .v4 .lc-steps>:nth-child(1){order:1}.v4 .lc-steps>:nth-child(2){order:2}.v4 .lc-steps>:nth-child(3){order:4}
  .v4 .lc-side{position:static;order:3}
  .v4 .lc-step{padding:20px}
  .v4 .lc-sh{font-size:22px}
  .v4 .lc-two{grid-template-columns:1fr;gap:16px}
  .v4 .lc-bar .lc-need{margin:6px 0 0;font-size:13px}
  .v4 .bd2-prev,.v4 .lc-side .bd2-slides,.v4 .lc-side .bd2-empty{border-radius:16px}
  .v4 .lc-b.is-vinted .lc-bar{display:none}
  .v4 .lc-wrap{padding:0 16px}
  .v4 .lc-item{font-size:26px}
  .v4 .lc-price{font-size:36px}
  .lc-herocode{max-width:none;margin:0 0 18px;min-height:52px}
  .lc-herocode label{font-size:14px}
  .lc-herocode input{width:100px;font-size:15px}
}
@media (prefers-reduced-transparency:reduce){
  .v4 .lc-state,.v4 .lc-initial span{background:rgba(255,255,255,.26)}
}
/* one photo, one badge (9 Oct): the big preview is enough, no thumbnail strip */
.lc-pg [data-lc-strip]{display:none!important}

/* assets/v4/parts/money.css */
/* ==========================================================================
   v4 Activity (§5.3, V4ActivityM) and Money · Payout details · History (§5.4, V4MoneyM, V4Money, V4PayoutsM).
   Pages: app/v4-activity.php, app/v4-money.php (body class money-pg).
   ========================================================================== */

.v4.money-pg .h1.xl{font-size:56px}
.v4.money-pg .money-below{margin-top:24px}
.v4.money-pg .money-emptyline{padding:20px 4px}
.v4.money-pg .money-empty{padding:20px 24px}

/* ---------- Activity: one line per event ---------- */
.v4.money-pg .money-group{margin:22px 8px 8px}
.v4.money-pg .money-group:first-child{margin-top:6px}
.v4.money-pg .money-evs{padding:4px 22px}
.v4.money-pg .money-ev{display:flex;align-items:center;gap:12px;min-height:46px;padding:11px 0;border-top:1px solid var(--line);font-size:15px;color:var(--ink)}
.v4.money-pg .money-ev:first-child{border-top:0}
.v4.money-pg .money-ev .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v4.money-pg .money-ev time{font-size:13px;color:var(--sub);white-space:nowrap;font-variant-numeric:tabular-nums}
.v4.money-pg .money-dot{width:6px;height:6px;border-radius:50%;background:var(--ink);flex:none}
.v4.money-pg .money-ev:active{background:rgba(14,20,23,.03)}

/* ---------- Money: the sheet on the field ---------- */
.v4.money-pg .money-top{display:grid;grid-template-columns:minmax(0,1fr) 560px;gap:48px;align-items:end;padding-top:20px}
.v4.money-pg .money-sheet{padding:24px 28px;display:grid;grid-template-columns:1.4fr 2fr;gap:20px;align-items:end;color:#fff}
.v4.money-pg .money-sheet .muted{font-size:14px}
.v4.money-pg .money-held .big{font-size:44px;line-height:1.1}
.v4.money-pg .money-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.v4.money-pg .money-two .big{font-size:26px;line-height:1.15}
.v4.money-pg .money-grid{display:grid;grid-template-columns:380px minmax(0,1fr);gap:16px;align-items:start}
.v4.money-pg .money-links{padding:4px 22px}
.v4.money-pg .money-links .chev{display:inline-flex}
.v4.money-pg .money-last{padding:4px 24px}
.v4.money-pg .trow .a.money-unpaid{color:var(--sub)}
.v4.money-pg .trow .av.empty{background:#fff;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--sub)}

/* ---------- Payout details ---------- */
.v4.money-pg .money-stack{display:flex;flex-direction:column;gap:16px}
.v4.money-pg .money-pcard{padding:24px 28px}
.v4.money-pg .money-phead{display:flex;justify-content:space-between;align-items:center;gap:12px}
.v4.money-pg .money-steps{list-style:none;margin:8px 0 0;padding:0}
.v4.money-pg .money-steps .lrow{min-height:56px}
.v4.money-pg .money-ok{color:var(--teal);display:inline-flex;width:18px;flex:none}
.v4.money-pg .money-mk{display:inline-flex;justify-content:center;width:18px;flex:none}
.v4.money-pg .money-note{font-size:15px;line-height:1.45;color:var(--ink-2);margin:10px 0 0}
.v4.money-pg .money-act{margin-top:16px}
.v4.money-pg .money-steps + .money-act{margin-top:10px}
.v4.money-pg .money-capline{margin-top:8px}
.v4.money-pg .money-also{margin-top:14px;text-align:center}
.v4.money-pg .money-form{display:grid;gap:16px;margin-top:18px}
.v4.money-pg .money-form .lbl{margin-bottom:8px}
.v4.money-pg .money-form .btn{margin-top:2px}
.v4.money-pg .money-form .v3-check{display:flex;align-items:center;gap:8px;min-height:36px;font-size:15px}

@media (max-width:760px){
  .v4.money-pg .h1.xl{font-size:34px}
  .v4.money-pg .money-below{margin-top:14px}
  .v4.money-pg .money-group{margin:20px 8px 8px}
  .v4.money-pg .money-evs{padding:4px 18px}
  .v4.money-pg .money-top{display:block;padding-top:14px}
  .v4.money-pg .money-sheet{display:block;padding:20px;margin-top:18px}
  .v4.money-pg .money-two{display:flex;gap:24px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12)}
  .v4.money-pg .money-two .big{font-size:22px}
  .v4.money-pg .money-held .big{margin-top:4px}
  .v4.money-pg .money-grid{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:0 10px}
  .v4.money-pg .money-links,.v4.money-pg .money-last{padding:4px 16px}
  .v4.money-pg .money-stack{gap:10px}
  .v4.money-pg .money-pcard{padding:20px}
}
@media (max-width:760px){
  .v4.money-pg .stage .money-head{padding:0 16px}
}

/* assets/v4/parts/new.css */
/* Start a trade, one page (app/v4-new.php, §7.2; boards V4New, V4NewM, V4NewBuyM) */
.v4 .v4-new-stage{padding-bottom:40px}
.v4 .v4-new-top{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:40px;align-items:end;min-height:150px}
.v4 .v4-new-top .h1{font-size:56px;line-height:1.02}
.v4 .v4-sides{display:inline-flex;gap:4px;padding:4px;border-radius:999px;margin-top:22px}
.v4 .v4-sides button{height:44px;padding:0 22px;border-radius:999px;font-size:15px;font-weight:500;color:#fff;transition:background-color .15s,color .15s}
.v4 .v4-sides button[aria-checked="true"]{background:#fff;color:var(--ink)}
.v4 .v4-totals{padding:8px 24px}
.v4 .v4-totals[hidden]{display:none}
.v4 .v4-totals .r{display:flex;align-items:baseline;justify-content:space-between;gap:16px;min-height:60px;padding:12px 0}
.v4 .v4-totals .r+.r{border-top:1px solid rgba(255,255,255,.14)}
.v4 .v4-totals .r span{font-size:15px;color:rgba(255,255,255,.78)}
.v4 .v4-totals .big{font-size:34px;line-height:1}
.v4 .v4-totals .big.s{font-size:22px}

.v4 .v4-new{margin-top:24px}
.v4 .v4-newgrid{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:16px;align-items:start;max-width:1152px;margin:0 auto}
.v4 .v4-newform{padding:24px 28px 8px}
.v4 .v4-newform .fl{margin-bottom:18px}
.v4 .v4-newform .fl.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.v4 .v4-newform .err{color:var(--coral);font-size:14px;margin-top:6px}
.v4 .v4-banner{background:#FBE9E5;color:#8E2C1B;border-radius:var(--r-inner);padding:12px 16px;font-size:15px;margin-bottom:16px}
.v4 .v4-forseller{font-size:15px;color:var(--ink-2);margin-bottom:16px}
.v4 .v4-welcome{font-size:14px;color:var(--teal);margin:-6px 0 14px}
.v4 .v4-welcome[hidden]{display:none}
.v4 .v4-price input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:16px;color:var(--ink);outline:none;height:100%}
.v4 .v4-price .nt-cur{color:var(--ink);margin-right:4px}
.v4 .v4-payer{display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--paper-3);height:52px}
.v4 .v4-payer button{flex:1;border-radius:999px;font-size:15px;font-weight:500;color:var(--ink-2);min-width:0;padding:0 8px;white-space:nowrap}
.v4 .v4-payer button[aria-checked="true"]{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(14,20,23,.1)}
.v4 .v4-payer button:disabled{opacity:.45;cursor:not-allowed}
.v4 .v4-payer[hidden],.v4 .v4-dpanel[hidden],.v4 [data-v4-sellonly][hidden]{display:none}
.v4 .v4-kinds{margin-top:10px}
.v4 .v4-dpanel{margin-top:14px}
.v4 .v4-moredet{border-top:1px solid var(--line);margin:4px 0 0}
.v4 .v4-moredet>summary{list-style:none;cursor:pointer;border-top:0;min-height:64px}
.v4 .v4-moredet>summary::-webkit-details-marker{display:none}
.v4 .v4-moredet>summary .v svg{transition:transform .2s}
.v4 .v4-moredet[open]>summary .v svg{transform:rotate(90deg)}
.v4 .v4-moredet[open]>summary{margin-bottom:6px}
.v4 .v4-newside{display:grid;gap:16px}
.v4 .v4-createcard{padding:22px 24px;text-align:center}
.v4 .v4-createcard .btn{width:100%;height:52px;font-size:16px}
.v4 .v4-createcard .cap{margin-top:14px}
.v4 .v4-coderow{display:flex;align-items:center;gap:8px;padding:6px 10px 6px 24px;min-height:64px}
.v4 .v4-coderow .t{font-size:16px;flex:1}
.v4 .v4-coderow input{width:110px;border:0;background:none;font:inherit;font-size:15px;letter-spacing:.06em;color:var(--ink);text-align:right;outline:none;text-transform:uppercase}
.v4 .v4-coderow input::placeholder{color:var(--sub);text-transform:none}
.v4 .v4-coderow input:focus{background:var(--paper-3);border-radius:10px;padding:8px}
.v4 .v4-acctbtns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v4 .v4-acctbtns .btn{width:100%}
.v4.v4-newpage .actbar .t1{display:block;font-weight:600;font-size:16px;font-variant-numeric:tabular-nums}
.v4.v4-newpage .actbar .t2{display:block;font-size:14px;color:var(--sub)}
@media (max-width:1100px){.v4 .v4-newgrid,.v4 .v4-new-top{grid-template-columns:minmax(0,1fr) 360px}}
@media (max-width:900px){.v4 .v4-newgrid{grid-template-columns:minmax(0,1fr)}.v4 .v4-new-top{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){
  .v4 .v4-new-stage{padding-bottom:12px}
  .v4 .v4-new-top{min-height:0}
  .v4 .v4-new-top .h1{font-size:34px}
  .v4 .v4-sides{display:flex;width:100%;margin-top:16px}
  .v4 .v4-sides button{flex:1;padding:0 8px}
  .v4 .v4-new{margin-top:10px}
  .v4 .v4-newform{padding:20px 20px 4px}
  .v4 .v4-newform .fl.two{grid-template-columns:1fr;gap:18px}
  .v4 .v4-coderow{background:none;border:0;padding:4px 16px 4px 16px}
  .v4 .v4-coderow input{width:96px}
  .v4.v4-newpage .actbar{border-radius:22px;left:10px;right:10px}
}

/* fix 5 Part 6 (bonfium-fix5 boards/DIGITAL.png): the delivery switches use the shared .f4-seg (assets/fix4/ui.css);
   "Digital" is always selectable; a guest gets one line under it, and the add step (?add=1) after the account. */
.v4 .v4-dseg>button{min-height:44px}
.v4 .v4-dseg[hidden],.v4 .v4-dline[hidden]{display:none}
.v4 .v4-dline{margin-top:10px;font-size:14px;color:var(--sub)}
.v4 .v4-add-lead{margin-top:14px;max-width:560px;text-wrap:pretty;font-size:17px;line-height:1.45;color:rgba(255,255,255,.82)}
.v4 .v4-add .v4-addform{max-width:680px;margin:0 auto;padding:24px 28px 28px}
.v4 .v4-addsum{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:14px 18px;margin-bottom:20px;border-radius:var(--r-inner);background:var(--paper-3);font-size:16px}
.v4 .v4-addsum .t{min-width:0;overflow-wrap:anywhere}
.v4 .v4-addsum .num{flex:none;font-variant-numeric:tabular-nums}
.v4 .v4-addnote{margin-top:16px}
.v4 .v4-addgo{width:100%;height:52px;margin-top:14px;font-size:16px}
@media (max-width:760px){
  .v4 .v4-dseg>button{padding:0 8px;white-space:normal;line-height:1.15}
  .v4 .v4-add-lead{font-size:15px}
  .v4 .v4-add .v4-addform{padding:20px}
}

/* assets/v4/parts/room.css */
/* ==========================================================================
   v4 room (app/v4-room.php, PROMPT-v4 §5.2): boards V4RoomM, V4RoomCheckM, V4Room, V4RoomCheck.
   Values from docs/v4/reference/html/bf4.css ("the room, compact").
   ========================================================================== */

/* ---------- the stage ---------- */
.v4 .v4r-stage{padding-bottom:36px}
.v4 .v4r-top{padding-top:18px}
.v4 .v4r-head{display:grid;grid-template-columns:160px minmax(0,1fr) 160px;align-items:center;gap:24px;margin-top:20px;color:#fff}
.v4 .v4r-mid{text-align:center;min-width:0}
.v4 .v4r-item{font-size:40px;line-height:1.1;font-weight:400;margin:0;overflow-wrap:anywhere}
.v4 .v4r-amt{font-size:64px;line-height:1.05;margin-top:4px}
.v4 .v4r-status{margin:14px 0 0;font-size:16px;font-weight:600;line-height:1.35}
.v4 .v4r-seat{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:17px;min-width:0;text-align:center}
.v4 .v4r-seat>span:last-child,.v4 .v4r-seat>a{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
.v4 .v4r-seat>a:hover{text-decoration:underline;text-underline-offset:3px}
.v4 .v4r-seat .av{width:96px;height:96px;font-size:30px}

/* 5 dots on a line, no labels: done = white, now = white + halo, next = outline */
.v4 .v4r-dots{display:flex;align-items:center;max-width:420px;margin:26px auto 0}
.v4 .v4r-dots i{width:10px;height:10px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7)}
.v4 .v4r-dots i.d{background:#fff;box-shadow:none}
.v4 .v4r-dots i.n{background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.25)}
.v4 .v4r-dots s{flex:1;height:1.5px;background:rgba(255,255,255,.4);text-decoration:none}
.v4 .v4r-dots s.d{background:#fff}
.v4 .v4r-dots.is-off{opacity:.6}

/* your move, desktop: one tinted sheet, one row */
.v4 .v4r-move{max-width:760px;margin:30px auto 0;padding:16px 16px 16px 24px;display:flex;align-items:center;gap:16px}
.v4 .v4r-move-b{flex:1;min-width:0}
.v4 .v4r-move-t{font-family:var(--text);font-size:17px;font-weight:600;line-height:1.3;margin:0;letter-spacing:0}
.v4 .v4r-move-p{font-size:15px;margin:2px 0 0;line-height:1.35}
.v4 .v4r-move-big{font-size:32px;letter-spacing:.04em;line-height:1;white-space:nowrap}
.v4 .v4r-move-acts{display:flex;gap:16px;flex:none}
.v4 .v4r-move-acts form{display:flex}
.v4 .v4r-err{max-width:760px;margin:24px auto 0}

/* ---------- below the stage ---------- */
.v4 .v4r-below{margin-top:24px;display:flex;flex-direction:column;gap:16px}
.v4 .v4r-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start}
.v4 .v4r-tl{padding:12px 28px}
.v4 .v4r-ev{display:flex;gap:12px;align-items:baseline;padding:12px 0;border-top:1px solid var(--line);font-size:15px;line-height:1.4}
.v4 .v4r-ev:first-child{border-top:0}
.v4 .v4r-ev .t{flex:1;min-width:0;color:var(--ink)}
.v4 .v4r-ev .t b{font-weight:inherit}
.v4 .v4r-ev time{font-size:13px;color:var(--sub);white-space:nowrap}
.v4 .v4r-more{margin:4px 0 10px;font-size:14px}
.v4 .v4r-deal{padding:8px 24px}
.v4 .v4r-kv{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:15px}
.v4 .v4r-kv:first-child{border-top:0}
.v4 .v4r-kv span{color:var(--sub)}
.v4 .v4r-kv b{font-weight:400;color:var(--ink)}
.v4 .v4r-kv.strong span,.v4 .v4r-kv.strong b{font-weight:600;color:var(--ink)}
.v4 .v4r-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 20px;padding:2px 0 0;font-size:14px;font-weight:600}
.v4 .v4r-links a,.v4 .v4r-links button{color:var(--ink-2);background:none;border:0;padding:0;font:inherit;cursor:pointer}
.v4 .v4r-links a:hover,.v4 .v4r-links button:hover{color:var(--ink)}
.v4 .v4r-links .x{color:var(--coral)}
.v4 .v4r-links .x:hover{color:#9E3420}

/* the cards that only some rooms have */
.v4 .v4r-card{padding:24px 28px}
.v4 .v4r-files{padding:4px 24px}
.v4 .v4r-files .lrow .btn{flex:none}
.v4 .v4r-files-cap{padding:14px 4px 4px}
.v4 .v4r-secret{display:flex;align-items:center;gap:16px;padding:16px 24px}
.v4 .v4r-secret .t{color:var(--sub);font-size:15px}
.v4 .v4r-secret b{flex:1;min-width:0;font-size:24px;overflow-wrap:anywhere}
.v4 .v4r-next{padding:4px 24px}
.v4 .v4r-next .lrow[hidden]{display:none}

/* §7.2 after Create: a small white glass badge, one line, one button */
.v4 .v4r-badgecard{display:flex;align-items:center;gap:16px;padding:14px 14px 14px 16px}
.v4 .v4r-badgecard[hidden]{display:none}
.v4 .v4r-badge{flex:none;height:64px;padding:0 10px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#8A6A4A,#3E5866);position:relative;overflow:hidden;isolation:isolate}
/* fix 6 Part 6: the one Bonfium badge (bf_badge(), small) on that sample photo */
.v4 .v4r-badgecard-b{flex:1;min-width:0;display:flex;align-items:center;gap:16px}
.v4 .v4r-badgecard-t{flex:1;min-width:0;font-weight:600;font-size:16px;line-height:1.3}
.v4 .v4r-x{width:40px;height:40px;border-radius:50%;border:0;background:none;color:var(--sub);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.v4 .v4r-x:hover{background:var(--paper-3);color:var(--ink)}

/* ---------- phones ---------- */
@media (max-width:760px){
  .v4 .v4r-stage{padding-bottom:22px}
  .v4 .v4r-head{display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;margin-top:0;padding:4px 20px 0}
  .v4 .v4r-mid{display:contents}
  .v4 .v4r-item{order:1;width:100%;font-size:30px}
  .v4 .v4r-amt{order:2;width:100%;font-size:44px;margin-top:6px}
  .v4 .v4r-me{order:3;margin-top:26px}
  .v4 .v4r-dots{order:4;flex:1;margin:0;max-width:none;align-self:center;transform:translateY(-14px);margin-top:26px}
  .v4 .v4r-them{order:5;margin-top:26px}
  .v4 .v4r-status{order:6;width:100%;text-align:center;margin-top:14px;font-size:15px}
  .v4 .v4r-seat{font-size:15px;gap:8px;width:72px}
  .v4 .v4r-seat .av{width:56px;height:56px;font-size:18px}
  .v4 .v4r-below{margin-top:14px;gap:10px;padding:0 10px}
  .v4 .v4r-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .v4 .v4r-tl{padding:8px 18px}
  .v4 .v4r-deal{padding:6px 18px}
  .v4 .v4r-links{justify-content:center;padding-top:8px}
  .v4 .v4r-card{padding:20px}
  .v4 .v4r-files,.v4 .v4r-next{padding:4px 16px}
  .v4 .v4r-secret{padding:14px 16px;flex-wrap:wrap}
  .v4 .v4r-badgecard{gap:12px;padding:12px 6px 12px 12px;align-items:flex-start}
  .v4 .v4r-badgecard-b{flex-direction:column;align-items:flex-start;gap:8px}
  .v4 .v4r-badgecard-t{font-size:15px}
  .v4 .v4r-badge{height:60px;padding:0 6px;border-radius:12px}
  /* a move without a button (e.g. "Payment is not available yet"): one quiet card, no bar */
  .v4 .v4r-mmove{display:flex;flex-direction:column;gap:2px;padding:14px 18px}
  .v4 .v4r-mmove b{font-weight:600;font-size:16px}
  .v4 .v4r-mmove span{font-size:14px;color:var(--sub)}

  /* the sticky glass bar: title + one line, share as an icon, at most 2 buttons */
  body.v4r-page .actbar{left:10px;right:10px;bottom:calc(14px + env(safe-area-inset-bottom));min-height:0;border-radius:22px;gap:10px;padding:10px 10px 10px 18px}
  body.v4r-page .actbar .v4r-bar-t{flex:1;min-width:0}
  body.v4r-page .actbar .v4r-bar-t b{display:block;font-size:16px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.v4r-page .actbar .v4r-bar-t span{display:block;font-size:14px;color:var(--sub);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.v4r-page .actbar .btn{height:46px;padding:0 18px;flex:none}
  body.v4r-page .actbar .btn.line{padding:0 14px}
  body.v4r-page .actbar form{display:flex;flex:none}
  body.v4r-page .actbar .v4r-ic{width:44px;height:44px;background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
  body.v4r-page.has-actbar .v3-main{padding-bottom:96px}
}
@media (min-width:761px) and (max-width:1000px){
  .v4 .v4r-head{grid-template-columns:120px minmax(0,1fr) 120px;gap:16px}
  .v4 .v4r-seat .av{width:80px;height:80px;font-size:26px}
  .v4 .v4r-grid{grid-template-columns:minmax(0,1fr)}
  .v4 .v4r-move{flex-wrap:wrap}
  .v4 .v4r-links{justify-content:center}
}

/* assets/v4/parts/site.css */
/* ui_v4 §6 on the older pages (ui.php, body.v4-site): the error page gets its own field */
.v4-site .bf-errpage{position:relative;isolation:isolate;overflow:hidden;max-width:none;margin:10px 10px 0;border-radius:24px;color:#fff;
  padding:160px max(24px,calc((100% - 1152px)/2)) 56px;background:#84562E center/cover no-repeat;
  background-image:-webkit-image-set(url('/assets/fields/tobacco-slate-16x9-sm.webp') 1x,url('/assets/fields/tobacco-slate-16x9.webp') 2x);
  background-image:image-set(url('/assets/fields/tobacco-slate-16x9-sm.webp') 1x,url('/assets/fields/tobacco-slate-16x9.webp') 2x)}
.v4-site .bf-errpage::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(14,20,23,0) 50%,rgba(14,20,23,.42) 100%)}
.v4-site .bf-errpage h1{color:#fff}
.v4-site .bf-errpage p{color:rgba(255,255,255,.88)!important}
.v4-site .bf-errpage .btn.dark{background:#fff!important;color:#0E1417!important}
.v4-site .bf-errpage .btn.ghost{background:rgba(255,255,255,.16)!important;color:#fff!important;border-color:rgba(255,255,255,.4)!important;-webkit-backdrop-filter:blur(20px) saturate(1.7);backdrop-filter:blur(20px) saturate(1.7)}
@media (max-width:760px){
  .v4-site .bf-errpage{padding:120px 20px 40px;
    background-image:-webkit-image-set(url('/assets/fields/tobacco-slate-4x5-sm.webp') 1x,url('/assets/fields/tobacco-slate-4x5.webp') 2x);
    background-image:image-set(url('/assets/fields/tobacco-slate-4x5-sm.webp') 1x,url('/assets/fields/tobacco-slate-4x5.webp') 2x)}
}

/* assets/v4/parts/trades.css */
/* Trades /app/ (app/v4-trades.php, §5.1) */
.v4 .v4-trades-stage{padding-bottom:28px}
.v4 .v4-trades-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:40px;align-items:end;min-height:200px}
.v4 .v4-trades-hello .h1{font-size:64px;line-height:1}
.v4 .v4-trades-top .v4-needs{align-self:end}
.v4 .v4-more{display:inline-block;margin:6px 0 12px;color:#fff;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.v4 .v4-empty .nrow{border-top:0}
.v4 .v4-empty-cta{padding:0 0 16px}
.v4 .v4-below{margin-top:40px;max-width:1200px}
.v4 .v4-below .v4-tabs,.v4 .v4-below .v4-card{max-width:1152px;margin-left:auto;margin-right:auto}
.v4 .v4-tabs a .d{display:inline-block}
.v4 .trow .t>span{display:block}
.v4 .trow .t>span>span{display:inline}
.v4 .v4-none{padding:22px 4px}
.v4 .trow[hidden],.v4 .v4-none[hidden]{display:none}
@media (max-width:900px){.v4 .v4-trades-top{grid-template-columns:minmax(0,1fr);gap:20px;min-height:0}}
@media (max-width:760px){
  .v4 .v4-trades-hello .h1{font-size:34px}
  .v4 .v4-trades-stage{padding-bottom:10px}
  .v4 .v4-trades-top{gap:18px}
  .v4 .v4-needs{padding:2px 16px;margin:0 -6px}
  .v4 .v4-below{margin-top:24px}
  .v4 .v4-tabs{margin:0 6px 12px}
}

