/* Plan 4.4 component inventory. Structure lifted from the demo (.btn / .field / .card / .chip / nav),
   re-tokened onto tokens.css: the demo's red brand gradient is exactly what matrix row 19 forbids. */
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Vazirmatn,Tahoma,sans-serif;
     font-size:var(--fs-base);line-height:1.6;padding-bottom:var(--s4)}
/* merchant screens carry the fixed nav (64px) and the FAB above it; buyer screens carry neither */
body:has(.bottom-nav){padding-bottom:calc(64px + 44px + var(--s6))}
main{max-width:var(--frame);margin:0 auto;padding:var(--s4);display:flex;flex-direction:column;gap:var(--s3)}
/* LOCAL_RUN candidate 2 B2: the 600px product photo kept its intrinsic width and pushed the mobile
   layout viewport to 616px -- sideways scrolling on the very screens buyers open from Instagram.
   An image shrinks to its container and keeps its ratio; so does any other wide media. */
main img,main video{max-width:100%;height:auto}
h1{font-size:var(--fs-h1);font-weight:800;line-height:1.5;margin:0}
/* S4B-6 (S4 review): the page titles that lead with an icon (the wallet, withdraw, identity and
   credit-line h1s) keep a gap between glyph and word -- an inline icon has none of its own. */
h1 .icon{margin-inline-end:var(--s2)}
h2{font-size:var(--fs-title);font-weight:700;margin:0 0 var(--s2)}
a{color:var(--primary)}
/* bidi: codes, mobiles and amounts stay left-to-right inside RTL text */
code,.code{font-family:ui-monospace,Menlo,Consolas,monospace;direction:ltr;unicode-bidi:isolate;
     background:transparent;border:0;padding:0}   /* row 9: text, never a filled button */

/* one primary + one secondary style (row 18). v7 (plan_01 §1.6): the shared values -- --h-btn tall,
   the 12px radius, --fs-base -- are written HERE, above every modifier further down (.fab, .btn-sm,
   .inapp-banner__open, .is-copied), so each of those keeps winning by source order. Never restate
   them in a later block: an equal-specificity rule down the file silently beats the modifiers
   (S1b, review T-2). */
button,.btn-primary,.btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);
     min-height:var(--h-btn);padding:0 var(--s4);border-radius:var(--radius);font:inherit;font-size:var(--fs-base);
     font-weight:700;cursor:pointer;text-decoration:none}
/* row 18: an unclassed button is secondary; only .btn-primary is filled, one per screen (4.4) */
button,.btn-secondary{background:var(--secondary-bg);color:var(--secondary-fg);border:1px solid var(--secondary-border)}
/* v7: the secondary is a white fill on the strong border (an unclassed button stays transparent) */
.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border-strong)}
.btn-primary{background:var(--primary);color:var(--on-primary);border:1px solid var(--primary)}
.btn-primary:hover{background:var(--primary-hover)}
.sticky-cta{position:sticky;bottom:var(--s2);width:100%;max-width:var(--frame)}   /* row 29: buyer pages have no nav */
body:has(.bottom-nav) .sticky-cta{bottom:calc(64px + var(--s2))}

/* filters must NOT look like buttons (row 18): border only, no fill */
.filter-chip{display:inline-flex;align-items:center;min-height:32px;padding:0 var(--s3);border-radius:var(--radius-pill);
     border:1px solid var(--border);background:transparent;color:var(--text-2);text-decoration:none;font-weight:400;
     font-size:var(--fs-sm)}
.filter-chip[aria-current="true"]{background:var(--primary-soft);color:var(--primary-strong);border-color:transparent}
.chip-row{display:flex;flex-wrap:wrap;gap:var(--s2)}

.card{background:var(--surface);border:0;border-radius:var(--radius);padding:var(--s4);
     display:flex;flex-direction:column;gap:var(--s2)}
.card-list{display:flex;flex-direction:column;gap:var(--s3);margin:0;padding:0;list-style:none}

/* fields: label, input, hint, error slot; error text in --danger */
label{font-weight:700;font-size:.9rem}
input,textarea,select{font:inherit;padding:var(--s2) var(--s3);border:1px solid var(--border);
     border-radius:var(--radius-sm);background:var(--surface);width:100%}
/* LOCAL_RUN candidate 2 B5: width:100% above made the consent and «شخص دیگری» boxes stretch the
   full main column as a lone centred square. A checkbox is a tick beside its text, and the label
   wraps around it in one row. */
input[type="checkbox"],input[type="radio"]{width:auto;padding:0}
label:has(input[type="checkbox"]),label:has(input[type="radio"]){display:flex;gap:var(--s2);
     align-items:flex-start}
form{display:flex;flex-direction:column;gap:var(--s3)}
.hint{color:var(--text-2);font-size:.85rem}
/* UI-X-A: an error is a light tinted line -- --danger-tint under --danger-deep text (AA), a "!" mark
   (or the warn icon of .alert-line) beside it -- never a solid red block. Red means an error and
   nothing else; the field's own line carries the same words when a field is at fault, and then
   the page shows no second copy of them. */
[role="alert"]{background:var(--danger-tint);color:var(--danger-deep);padding:var(--s2) var(--s3);
     border-radius:var(--radius-sm);margin:0;font-size:var(--fs-sm);font-weight:600}
[role="alert"]:not(.alert-line,.banner)::before{content:"!";display:inline-grid;place-items:center;
     inline-size:16px;block-size:16px;margin-inline-end:6px;border-radius:50%;background:var(--danger);
     color:var(--on-danger);font-size:11px;font-weight:800;vertical-align:1px}
[role="status"]{color:var(--muted);margin:0}
/* V7-12: a notice card is a neutral warning, never a red fill (spec §3.16/§3.23) -- red stays for errors */
.notice-card [role="alert"]{background:none;color:var(--text);padding:0}
.notice-card [role="alert"]::before{content:none}

/* row 30: the price-change caption is yellow when the price rose (information, not an error) and green when it fell */
.price-up{color:var(--warning-deep);font-weight:700}.price-down{color:var(--success-deep);font-weight:700}
.stat-tile{background:var(--surface);border:0;border-radius:var(--radius);padding:var(--s4)}
.empty-state{text-align:center;color:var(--text-2);padding:var(--s6) var(--s4);display:flex;flex-direction:column;
     gap:var(--s3);align-items:center}

/* persistent, floating bottom nav on every merchant screen (row 6) */
.bottom-nav{position:fixed;inset-inline:0;bottom:0;height:64px;max-width:calc(var(--frame) - 2*var(--s4));
     margin-inline:auto;background:var(--surface);
     border-top:1px solid var(--border);display:flex;justify-content:space-around;align-items:center;z-index:10}
.bottom-nav a{color:var(--muted);text-decoration:none;font-size:var(--fs-xs);font-weight:700;padding:var(--s2)}
.bottom-nav a[aria-current="page"]{color:var(--primary-strong);font-weight:700}
/* the floating "add product" action (row 22); v7 (§1.5): it rides the frame's edge on wide screens */
.fab{position:fixed;inset-inline-start:max(var(--s4),calc(50% - var(--frame)/2 + var(--s4)));bottom:calc(64px + var(--s4));
     border-radius:var(--radius-pill);box-shadow:var(--shadow-2);z-index:11}

@media print{.bottom-nav,.fab,.nav-brand,.no-print{display:none}body{padding:0;background:#fff}}

/* ================= v6 redesign layer (2026-09-28) — additive; every class above keeps working.
   Sourced from the designer critique + the v6 demo (designs/redesign-v6/). ================= */

/* Vazirmatn now actually loads (the stack named it for weeks; the file ships in /static/fonts).
   Numbers are tabular so amounts never jitter as they update. */
body{font-variant-numeric:tabular-nums}

/* the money row: label right, amount LEFT — the established Iranian-checkout placement (B18) */
/* LC79: a row whose label and amount cannot share 390px wraps -- the amount, never split, then
   takes its own line and (its auto margin) that line's inline end -- instead of spilling off it. */
.money-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s1) var(--s2)}
.money-row .amount{margin-inline-start:auto;text-align:start;font-weight:800;font-size:1.15rem;
  white-space:nowrap}

/* trust: the verified-seller pill sits INSIDE the seller row, one group (gestalt, B15) */
.seller-row{display:flex;align-items:center;gap:var(--s3);margin-block-end:var(--s3)}
.seller-row .avatar{width:40px;height:40px;border-radius:50%;background:var(--primary-200);
     color:var(--primary-700);display:grid;place-items:center;font-weight:700;flex:none}
.pill{display:inline-flex;align-items:center;gap:4px;background:var(--primary-tint);
     color:var(--primary-700);font-size:.72rem;font-weight:700;border-radius:999px;padding:2px 9px;
     text-decoration:none}

/* radio option cards: address / shipping / payment rows that select as a whole (v6 step 2) */
.opt{display:flex;align-items:center;gap:var(--s3);border:1px solid var(--border);background:var(--surface);
     border-radius:var(--radius);padding:var(--s3) var(--s4);margin-block-end:var(--s2);cursor:pointer}
.opt:has(input:checked){border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary)}
.opt input[type="radio"]{accent-color:var(--primary)}
.opt .opt-title{font-weight:700;font-size:.92rem}
.opt .opt-sub{display:block;color:var(--muted);font-size:.8rem}
.opt .opt-price{margin-inline-start:auto;font-weight:700;font-size:.85rem}
/* WEIGHT-SHIP A (2026-11-15): a choice's own field opens right under its own card -- the soft
   panel joined to the card's bottom; the others stay shut. A browser without :has shows every
   field, as before. */
.opt-panel{margin:calc(-1 * var(--s1)) 0 var(--s2);padding:var(--s3);background:var(--primary-soft);
  border:1px solid var(--primary-200);border-top:0;border-radius:0 0 var(--radius) var(--radius)}
.opt-panel .field{margin:0}
@supports selector(:has(*)){.opt-panel{display:none}.opt:has(input:checked)+.opt-panel{display:block}}
/* COURIER-2 r2 (2026-11-16): the delivery page's courier card follows the post choice chosen on the
   page -- collect shows its one fixed line, any other choice its pay choices -- with no script and no
   save in between. A browser without :has shows both; the save judges by the choice posted. */
@supports selector(:has(*)){form:has(input[name="choice"][value="collect"]:checked) [data-courier="prepaid"],
  form:has(input[name="choice"]:not([value="collect"]):checked) [data-courier="collect"]{display:none}}

/* order state chips: a STATUS is not a filter — tinted pills, never clickable-looking (v6 review) */
.status{display:inline-flex;align-items:center;font-size:var(--fs-xs);font-weight:700;border-radius:var(--radius-pill);
     padding:3px 10px}
.status--wait{background:var(--primary-tint);color:var(--primary-700)}
.status--sent{background:var(--success-tint);color:var(--success-deep)}

/* quiet section dividers between the merged step's groups (gestalt, A2) */
.divider{border:0;border-block-start:1px solid var(--border);margin:var(--s4) 0}
.sect-title{font-size:.85rem;font-weight:700;color:var(--text-2);margin-block-end:var(--s2)}
.text-2{color:var(--text-2)}

/* the success celebration (B21): the moment money changed hands must feel DONE */
.success-head{text-align:center;padding:var(--s6) 0 var(--s4)}
.checkbig{width:72px;height:72px;margin:0 auto var(--s4);border-radius:50%;background:var(--success-tint);
     display:grid;place-items:center}
.okmark{width:32px;height:16px;border-inline-start:4px solid var(--success);
     border-block-end:4px solid var(--success);transform:rotate(-45deg) translate(1px,-3px)}
.success-head h1{font-size:1.2rem}

/* step dots, placed LOW near the CTA — not a header banner (B12) */
.steps{display:flex;align-items:center;justify-content:center;gap:6px;padding:var(--s2) 0}
.steps i{width:6px;height:6px;border-radius:50%;background:var(--border-strong)}
.steps i.on{background:var(--primary);width:18px;border-radius:3px}

/* the floating pill tab bar (v6): detached from the screen edge, shadowed, rounded (P2) */
.bottom-nav{inset-inline:var(--s4);height:60px;max-width:calc(var(--frame) - 2*var(--s4));margin-inline:auto;
     border:1px solid var(--border);border-radius:18px;
     background:rgb(255 255 255 / .96);backdrop-filter:blur(10px);box-shadow:var(--shadow-2)}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
     flex:1;border-radius:12px;padding:var(--s1) 0}
.bottom-nav a[aria-current="page"]{background:var(--primary-soft)}

/* AD-1: the admin tab bar has more tabs than the seller's, and at 390 px the shared squeeze
   wraps them into columns. The admin nav alone carries the modifier, keeps ALL its tabs on one
   line (each at its natural width) and scrolls sideways; the seller bar's own rules above and
   below are untouched. flex-start, not space-around, so the start tab is never cut off in the
   scroll area. The tabs carry a 3 px inline padding the shared rule leaves out -- without it
   neighbouring labels fuse and the active pill hugs its text; 3 px, not var(--s1)'s 4, so the
   seven tabs stay inside the 448 px desktop bar instead of spilling 9 px past it and clipping
   a label behind the bar's scrollbar; the phones keep their 6 px label gap and still scroll.
   The focus ring is drawn 2 px inside the tab, so the scroll edge cannot clip it. */
.bottom-nav--admin{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;
     -webkit-overflow-scrolling:touch}
.bottom-nav--admin a{flex:none;white-space:nowrap;padding-inline:3px}
.bottom-nav--admin a:focus-visible{outline-offset:-2px}

/* alerts: out-of-stock is loud red-tint, low-stock soft yellow — a dashboard reads by color (C25) */
.alert{display:flex;gap:var(--s3);align-items:center;border-radius:var(--radius);padding:var(--s3) var(--s4)}
.alert--danger{background:var(--danger-tint)}
.alert--warn{background:var(--warning-tint)}

/* captions that teach (A6): small, quiet, AA wherever they sit -- --text-2 (plan_01 §1.3), never --muted:
   a caption lands on the grey page and on --primary-soft, where --muted is 4.39:1 / 4.07:1 (S1b, T-1) */
.caption{color:var(--text-2);font-size:var(--fs-sm);line-height:1.7}
.status--muted{background:var(--surface-well);color:var(--text-2)}
.status--refunded{background:var(--danger-tint);color:var(--danger-deep)}

/* the car-dashboard hierarchy (C25): the action tile is loud, summaries are quiet */
.tile-hero{border-color:var(--primary-200);background:var(--primary-tint)}
.stat-num{font-size:var(--fs-figure);font-weight:800;letter-spacing:-.02em}

/* ================= v7 layer (2026-09-29) — self-explanatory screens: the wizard, the checklist,
   field states, banners, previews, explainers, the buyer step bar and the share block. BEM, px,
   logical properties only; every token is defined in tokens.css. Motion lives in motion.css. ====== */

/* generic helpers */
.js-only{display:none}
html.js .js-only{display:revert}
html.js .no-js-only{display:none}
/* P1.1 CATEGORY-FILTER: the search's visible, tappable results -- a select's size is ignored by iPhone's WebKit. */
.cat-results{display:flex;flex-direction:column;gap:var(--s1);max-height:16rem;overflow:auto;margin:var(--s2) 0;color:var(--text-2);font-size:var(--fs-sm)}
.cat-results[hidden]{display:none}
.cat-hit{text-align:start;padding:var(--s2) var(--s3);border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:1rem}
.center{text-align:center}
.muted{color:var(--muted)}
.lead{color:var(--text-2);font-size:1rem;margin:0}
.eyebrow{align-self:flex-start}
.wordmark{font-weight:800;font-size:18px;margin:0;color:var(--text)}
.stack{display:flex;flex-direction:column;gap:var(--s3)}
.row{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap}
.row--between{justify-content:space-between}
.icon{width:20px;height:20px;flex:none;vertical-align:middle}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hidden-input{position:absolute;inline-size:1px;block-size:1px;opacity:0}
main p{margin:0}
details>summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;gap:var(--s2)}
/* S4B-1 (S4 review): a flex summary draws no browser marker, so a disclosure looked like a plain
   heading. The S4 disclosures (the wallet's «جزئیات موجودی», the Instagram page's trouble lists and
   «اتصال دستی») carry their own chevron, the .readmore treatment (#27): the triangle hidden, an
   icon that points down and turns up on [open]. Scoped to .disclose -- no other summary changes. */
.disclose>summary{list-style:none}
.disclose>summary::-webkit-details-marker{display:none}
.disclose .disclose__chev{margin-inline-start:auto;transform:rotate(90deg);
  transition:transform var(--dur-1) var(--ease-out)}
.disclose[open] .disclose__chev{transform:rotate(-90deg)}

/* buttons: press feedback, the text button, full width, the loading state */
.btn-primary,.btn-secondary,button{transition:transform var(--dur-1) var(--ease-out),background-color var(--dur-1)}
.btn-primary:active,.btn-secondary:active,button:active{transform:scale(.98)}
.btn-text{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);min-height:44px;
  padding:0 var(--s2);background:transparent;border:0;color:var(--primary-strong);font:inherit;font-weight:700;
  text-decoration:none;cursor:pointer}
.btn-block{width:100%}
.btn-sm{min-height:44px;padding:0 var(--s3);font-size:.85rem}   /* V7-08: 44px tap target */
.is-loading{pointer-events:none;opacity:.85}
.is-loading::before{content:"";width:16px;height:16px;border-radius:50%;border:2px solid currentColor;
  border-inline-end-color:transparent;flex:none}
/* NUMBER-WALL (2026-10-28): the number step's send button while the field holds no valid number --
   a look, never the disabled attribute: a press always answers (the field's own message). */
.is-muted{opacity:.55}
.is-copied{background:var(--success-tint);border-color:var(--success);color:var(--success-deep)}
.copy-status{font-size:.8rem;color:var(--text-2)}
.inline-form{display:inline-flex;flex-direction:row}

/* fields: label, control, hint, error */
.field{display:flex;flex-direction:column;gap:6px;border:0;padding:0;margin:0}
.field>label,.field>legend{font-size:14px;font-weight:700}
input,textarea,select{min-height:48px}
textarea{min-height:96px;resize:vertical}
input[type="checkbox"],input[type="radio"]{min-height:0}
.field-error,.field__error{display:flex;align-items:center;gap:6px;color:var(--danger-deep);font-size:13px;margin:0}
.field-error::before,.field__error::before{content:"!";display:inline-grid;place-items:center;width:16px;height:16px;
  border-radius:50%;background:var(--danger);color:var(--on-danger);font-size:11px;font-weight:800;flex:none}
.field--error input,.field--error textarea,.field--error select{border-color:var(--danger);background:var(--danger-tint)}
.hint{font-size:13px;color:var(--text-2);margin:0}
.counter{font-size:12px;color:var(--text-2);align-self:flex-end;margin:0}
html:not(.js) .counter{display:none}
.input-group{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:var(--radius-sm);
  background:var(--surface);overflow:hidden}
.input-group input{border:0;border-radius:0;min-width:0}
.input-prefix{display:grid;place-items:center;padding:0 var(--s3);background:var(--surface-well);
  font-weight:700;font-family:ui-monospace,Menlo,Consolas,monospace;color:var(--text-2)}
.field--error .input-group{border-color:var(--danger)}
/* F2 NUMBER-PAGE (2026-11-06, NUMBER_PAGE_V2_ENABLED): the buyer number page's live preview of
   the number the code will go to, and the code page's resend wait as a clear line by the field.
   Classes only the switched-on pages render, so the switched-off pages are today's. The preview
   reads like the sheba-helper: quiet while there is nothing to say, plain and bold (never red)
   once the number stands. The resend line is a real line, not a caption: full text colour. */
.preview-line{font-size:13px;color:var(--text-2);margin:6px 0 0;min-height:20px}
/* r3 (review MINOR 2): only the number itself is unbreakable -- its groups are joined by
   the no-break space (U+00A0, signin.js); the sentence around it wraps like any text. */
.preview-line.is-set{color:var(--text);font-weight:700}
.resend-line{font-size:14px;color:var(--text);font-weight:700;margin:6px 0 0}
.sheba-helper{font-size:13px;color:var(--text-2);min-height:20px}
.sheba-helper.is-ok{color:var(--success-deep);font-weight:700}
.sheba-helper.is-bad{color:var(--danger-deep);font-weight:700}
.caption--warn{color:var(--warning-deep);font-weight:700}
.caption--ok{color:var(--success-deep);font-weight:700}

/* banners (never red unless it is an error) */
.banner{display:flex;gap:var(--s3);align-items:flex-start;border-radius:var(--radius);padding:var(--s3) var(--s4);
  font-size:.9rem;color:var(--text);margin:0}
.banner a{font-weight:700}
.banner--warn{background:var(--warning-tint);color:var(--text)}
.banner--warn .icon{color:var(--warning-deep)}
.banner--info{background:var(--surface-well);color:var(--text)}
.banner--success{background:var(--success-tint);color:var(--success-deep);font-weight:700}
.page-alert{border-radius:var(--radius)}

/* the code chip: Latin, left-to-right, copyable text -- never a filled button */
.code-chip{display:inline-flex;align-items:center;gap:var(--s2);font-size:24px;font-weight:800;letter-spacing:.08em;
  padding:var(--s2) var(--s4);border:1px dashed var(--border-strong);border-radius:var(--radius-sm);background:var(--surface)}
.code-sm{font-size:12px;color:var(--muted)}

/* the progress ring (checklist) */
.ring{width:44px;height:44px;flex:none;position:relative;display:grid;place-items:center}
.ring svg{position:absolute;inset:0;transform:rotate(-90deg)}
.ring__track{stroke:var(--border)}
.ring__val{stroke:var(--primary);stroke-linecap:round}
.ring__label{font-size:11px;font-weight:800;color:var(--text)}

/* notice card (eligibility, merchant notices, buyer notices) */
.notice-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:var(--s6) var(--s4);display:flex;flex-direction:column;gap:var(--s3);align-items:center;text-align:center}
.notice-card .btn-primary,.notice-card .btn-secondary{width:100%}
.icon-circle{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--surface-well);
  color:var(--text-2);flex:none}
.icon-circle .icon{width:28px;height:28px}
.icon-circle--sm{width:48px;height:48px}
.icon-circle--warn{background:var(--warning-tint);color:var(--warning-deep)}
.icon-circle--error{background:var(--danger-tint);color:var(--danger-deep)}
.icon-circle--ok{background:var(--success-tint);color:var(--success-deep)}
.icon-circle--brand{background:var(--primary-tint);color:var(--primary-700)}

/* landing */
.site-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s3)}
.site-head a{font-weight:700;font-size:.9rem;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.hero{display:flex;flex-direction:column;gap:var(--s3)}
.hero h1{font-size:24px;font-weight:800;line-height:1.5}
.how{position:relative}
.how__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s4)}
.how__line{position:absolute;inset-block:20px;inset-inline-start:19px;width:2px;background:var(--primary-200);
  transform-origin:top}
.how__step{position:relative;display:flex;gap:var(--s3);align-items:flex-start;background:var(--surface);
  border-radius:var(--radius);padding:var(--s2) var(--s2) var(--s2) 0}
.how__dot{width:40px;height:40px;border-radius:50%;background:var(--primary-tint);color:var(--primary-700);
  display:grid;place-items:center;flex:none;position:relative;border:2px solid var(--surface)}
.how__num{position:absolute;inset-block-start:-6px;inset-inline-end:-6px;width:20px;height:20px;border-radius:50%;
  background:var(--primary);color:var(--on-primary);font-size:11px;font-weight:800;display:grid;place-items:center}
.how__title{font-weight:700;font-size:16px;margin:0}
.how__text{font-size:14px;color:var(--text-2);margin:0}
.need-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s3)}
.need-list li{display:flex;gap:var(--s3);align-items:flex-start;font-size:.92rem}
.need-list .icon{color:var(--success)}

/* wizard chrome */
.wizard-bar{position:sticky;top:0;z-index:5;min-height:56px;background:var(--surface);border-block-end:1px solid var(--border);
  display:flex;align-items:center;gap:var(--s2);padding:0 var(--s4)}
.wizard-bar .wordmark{font-size:15px;white-space:nowrap}
.wizard-bar form{display:inline-flex}
.wizard-account{margin-inline-start:auto;font-size:13px;color:var(--text-2);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;min-width:0;flex:1 1 auto;text-align:end}
.wizard-bar a{font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
.wizard-bar .btn-text{font-size:13px;min-height:44px}
/* S4B-5 (S4 review): the progress row's standing links («حساب من» -- the wizard's only way to the
   sign-out row -- and «سفارش‌ها») get the bar links' own tap target, 44px, not bare inline text. */
.wizard-links a{min-height:44px;display:inline-flex;align-items:center;font-weight:700;text-decoration:none}
.wizard-head{max-width:480px;margin:0 auto;padding:var(--s4) var(--s4) 0;display:flex;flex-direction:column;gap:var(--s3)}
.wizard-progress{font-size:13px;font-weight:700;color:var(--text-2);margin:0}
.wizard__bar{height:6px;border-radius:999px;background:var(--border);overflow:hidden}
.wizard__fill{height:100%;background:var(--primary);border-radius:999px;transform-origin:right;transform:scaleX(0)}
[dir="ltr"] .wizard__fill{transform-origin:left}
.wizard__fill--s1of2{transform:scaleX(.5)}.wizard__fill--s2of2{transform:scaleX(1)}
.wizard__fill--s1of3{transform:scaleX(.3334)}.wizard__fill--s2of3{transform:scaleX(.6667)}.wizard__fill--s3of3{transform:scaleX(1)}
.wizard__fill--s1of4{transform:scaleX(.25)}.wizard__fill--s2of4{transform:scaleX(.5)}
.wizard__fill--s3of4{transform:scaleX(.75)}.wizard__fill--s4of4{transform:scaleX(1)}
/* V7-01: the card's entrance slide must never widen the page (RTL overflow jiggle). clip, not hidden:
   hidden would make main a scroll container and break the sticky .wizard-footer. */
main.wizard{padding-block-end:112px;overflow-x:clip}
.wizard__card{display:flex;flex-direction:column;gap:var(--s4)}
.wizard h1{font-size:22px;font-weight:800;line-height:1.5}
.wizard-footer{position:sticky;bottom:0;z-index:4;background:var(--surface);border-block-start:1px solid var(--border);
  margin:0 calc(-1 * var(--s4));padding:var(--s3) var(--s4);display:flex;flex-direction:column;gap:var(--s1)}
.wizard-footer .btn-primary,.wizard-footer .btn-secondary{width:100%}
.wizard-footer form{gap:0}

/* the explainer stage */
.illo{position:relative;height:120px;border-radius:var(--radius);background:var(--primary-tint);overflow:hidden;
  display:grid;place-items:center}
.illo__awning{position:absolute;inset-block-start:18px;inset-inline:60px;height:22px;border-radius:6px 6px 0 0;
  background:repeating-linear-gradient(90deg,var(--primary) 0 16px,var(--surface) 16px 32px)}
.illo__shop{position:absolute;inset-block-start:40px;inset-inline:60px;bottom:14px;background:var(--surface);
  border-radius:0 0 8px 8px;padding:10px 14px;display:flex;flex-direction:column;gap:6px;box-shadow:var(--shadow)}
.illo__bar{height:10px;border-radius:6px;background:var(--border-strong);transform-origin:right}
.illo__bar--name{width:60%;background:var(--text)}
.illo__bar--line{width:90%}.illo__bar--short{width:70%}
.illo__node{position:absolute;inset-block-start:38px;width:44px;height:44px;border-radius:50%;background:var(--surface);
  display:grid;place-items:center;color:var(--primary-700);box-shadow:var(--shadow)}
/* V7-24: money flows in the RTL forward direction -- the shop at inline-start (right), the bank at
   inline-end (left), the coin travels right -> left like the buyer guide's «←» and the progress fill. */
.illo__node--shop{inset-inline-start:28px}
.illo__node--bank{inset-inline-end:28px}
.illo__path{position:absolute;inset-block-start:59px;inset-inline:76px;border-block-start:2px dashed var(--primary-200)}
.illo__track{position:absolute;inset-block-start:50px;inset-inline:84px;height:20px}
.illo__mover{position:absolute;inset:0}
.illo__coin{position:absolute;inset-block-start:0;inset-inline-end:0;width:20px;height:20px;border-radius:50%;
  background:var(--warning);border:2px solid var(--warning-500)}
.illo__check{position:absolute;inset-block-start:30px;inset-inline-end:22px;width:18px;height:18px;border-radius:50%;
  background:var(--success);color:var(--on-primary);display:grid;place-items:center}
.illo__check .icon{width:12px;height:12px}
.illo--lock>.icon{width:40px;height:40px;color:var(--primary-700)}   /* V7-20: never the badge's check */

/* shop / product live preview «خریدار این را می‌بیند» */
.preview{border:1px dashed var(--border-strong);border-radius:var(--radius);padding:var(--s3);background:var(--surface-well);
  display:flex;flex-direction:column;gap:var(--s2)}
.preview__label{font-size:12px;font-weight:700;color:var(--text-2);margin:0}
.preview .seller-row{margin:0}
.clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.buyer-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  display:flex;flex-direction:column}
.buyer-card__img{position:relative;aspect-ratio:1/1;width:100%;object-fit:cover;background:var(--surface-well);display:grid;place-items:center;
  color:var(--muted);font-size:40px;font-weight:800}
.buyer-card__body{padding:var(--s3);display:flex;flex-direction:column;gap:var(--s2)}
.buyer-card__title{font-weight:800;font-size:16px;margin:0}
/* SHOP-MORE (owner 2026-10-26): the product page's «other products of this shop» -- the same
   shop's other products, at most six, each a buyer card to THAT product's own page. The cards
   reuse the buyer card's own classes above; only the section's layout is added, existing tokens
   only, no new colours. The section renders only while the switch is on and the list is not
   empty; off, the page asks for none of this. */
.more-title{font-size:var(--fs-title);font-weight:800;margin:var(--s5) 0 0}
.more-grid{list-style:none;margin:var(--s3) 0 0;padding:0;display:grid;gap:var(--s3);
  grid-template-columns:repeat(2,minmax(0,1fr))}
.more-grid .buyer-card{color:var(--text);text-decoration:none}
.more-price{color:var(--text-2)}
.buyer-card .money-row{margin:0}

/* the upload zone */
.upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s2);
  aspect-ratio:1/1;max-width:200px;border:2px dashed var(--border-strong);border-radius:var(--radius);
  background:var(--surface);color:var(--text-2);cursor:pointer;text-align:center;padding:var(--s3);overflow:hidden}
.upload:focus-within{outline:2px solid var(--primary);outline-offset:2px}
.upload .icon{width:32px;height:32px}
.upload__cta{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--s3);border:1px solid var(--secondary-border);
  border-radius:var(--radius-sm);color:var(--text);font-weight:700;font-size:.85rem}
.upload__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.upload.has-image{border-style:solid}
.upload.has-image .upload__cta{position:relative;background:var(--surface)}
.stepper{display:flex;align-items:stretch;gap:var(--s2);max-width:200px}
.stepper input{text-align:center}
.stepper__btn{min-width:48px;min-height:48px;padding:0;font-size:1.3rem}
html:not(.js) .stepper__btn{display:none}
.price-words{font-size:13px;font-weight:700;color:var(--text-2);min-height:20px}

/* dashboard */
.dash-head{display:flex;align-items:center;gap:var(--s3)}
.dash-head h1{font-size:22px;font-weight:800}
.dash-head .greeting{font-size:14px;color:var(--text-2);margin:0}
.avatar-link{margin-inline-start:auto;width:36px;height:36px;border-radius:50%;background:var(--primary-200);
  color:var(--primary-700);display:grid;place-items:center;font-weight:800;text-decoration:none;flex:none}
.onb-card{background:var(--surface);border:1px solid var(--primary-200);border-radius:var(--radius);padding:var(--s4);
  display:flex;flex-direction:column;gap:var(--s3)}
.onb-card__head{display:flex;align-items:center;gap:var(--s3)}
.onb-card__head h2{margin:0}
.onb-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s2)}
.onb-item{display:flex;align-items:center;gap:var(--s3);padding:var(--s2) var(--s3);border-radius:var(--radius-sm)}
.onb-item__mark{width:24px;height:24px;border-radius:50%;border:2px solid var(--border-strong);display:grid;place-items:center;flex:none}
.onb-item--done .onb-item__mark{border-color:var(--success);background:var(--success);color:var(--on-primary)}
.onb-item--done .onb-item__mark .icon{width:14px;height:14px}
.onb-item--next{background:var(--primary-tint)}
.onb-item__text{display:flex;flex-direction:column;flex:1;min-width:0}
.onb-item__label{font-weight:700;font-size:.92rem}
.onb-item--done .onb-item__label{color:var(--text-2)}
.onb-item__sub{font-size:12px;color:var(--muted)}
.onb-item--next .onb-item__sub{color:var(--text-2)}   /* the next row sits on --primary-soft: --muted is 4.07:1 there (S1b, T-3) */
.onb-item .btn-primary,.onb-item .btn-secondary,.onb-item .btn-text{min-height:44px;padding:0 var(--s3);font-size:.85rem}
.tile-title{display:flex;align-items:center;gap:var(--s2);font-size:var(--fs-title);margin:0}
.tile-title .icon{color:var(--primary-700)}
.tile-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s2)}
.tile-rows a{color:var(--text);text-decoration:none;display:block;padding:var(--s2) 0;border-block-end:1px solid var(--primary-200)}
.stat-tile{display:flex;flex-direction:column;gap:var(--s2)}
.stat-tile .btn-primary,.stat-tile .btn-secondary{align-self:stretch}
.ghost-card{border:1px dashed var(--border-strong);border-radius:var(--radius);padding:var(--s3);display:flex;gap:var(--s3);
  align-items:center;background:var(--surface-well);color:var(--faint)}
.ghost-card__thumb{width:40px;height:40px;border-radius:var(--radius-sm);background:var(--surface-well);flex:none}
.ghost-card__lines{flex:1;display:flex;flex-direction:column;gap:6px}
.ghost-card__lines i{display:block;height:8px;border-radius:4px;background:var(--surface-well)}
.ghost-card__lines i+i{width:60%}
.chip-on{display:inline-flex;align-items:center;gap:4px;font-size:.72rem;font-weight:700;border-radius:999px;padding:3px 9px;
  background:var(--success-tint);color:var(--success-deep)}
.alert a{color:var(--text);font-weight:700}
.alert--warn .icon{color:var(--warning-deep)}
.alert--danger .icon{color:var(--danger)}

/* products grid */
.product-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3)}
.pcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;color:var(--text);text-decoration:none;height:100%}
.pcard__media{position:relative;aspect-ratio:1/1;background:var(--surface-well);display:grid;place-items:center;color:var(--faint)}
.pcard__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pcard__none{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--text-2)}
.pcard__title{position:absolute;inset-inline:0;bottom:0;padding:var(--s4) var(--s2) var(--s2);margin:0;color:#fff;font-weight:700;
  font-size:14px;line-height:1.5;background:linear-gradient(to top,rgb(13 12 34 / .72),rgb(13 12 34 / 0));
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard__body{padding:var(--s2) var(--s3) var(--s3);display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text-2)}
.pcard__price{font-weight:800;font-size:14px;color:var(--text)}
.stock-low{color:var(--warning-deep);font-weight:700}
.stock-out{color:var(--warning-deep);font-weight:700}
.empty-row{display:flex;align-items:center;justify-content:center;gap:var(--s2);flex-wrap:wrap}
.empty-row__tile{display:flex;flex-direction:column;align-items:center;gap:4px;padding:var(--s2);border-radius:var(--radius-sm);
  font-size:12px;color:var(--text-2);background:var(--surface)}
.empty-row__arrow{color:var(--faint)}
.empty-state h2{margin:0;color:var(--text)}

/* product detail and share */
.back-link{display:inline-flex;align-items:center;gap:4px;font-weight:700;text-decoration:none;min-height:44px}
.facts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.facts li{display:flex;justify-content:space-between;gap:var(--s3);padding:var(--s2) 0;border-block-end:1px solid var(--border)}
.facts li:last-child{border:0}
.share{display:flex;flex-direction:column;gap:var(--s4)}
.share__block{display:flex;flex-direction:column;gap:var(--s2)}
.share__block h2{margin:0}
.share textarea,.share input[readonly]{background:var(--surface-well)}
.how-to{margin:0;padding-inline-start:var(--s5);font-size:13px;color:var(--text-2);display:flex;flex-direction:column;gap:4px}
.product-mini{flex-direction:row;align-items:center;gap:var(--s3)}
.product-mini__thumb{width:56px;height:56px;border-radius:var(--radius-sm);object-fit:cover;background:var(--surface-well);flex:none;
  display:grid;place-items:center;color:var(--faint)}

/* celebration (wizard done, share, buyer done) */
.celebrate{position:relative;width:72px;height:72px;margin:0 auto}
.celebrate--sm{width:56px;height:56px}
.celebrate__circle{position:absolute;inset:0;border-radius:50%;background:var(--success-tint);display:grid;place-items:center;
  color:var(--success)}
.celebrate__circle svg{width:36px;height:36px}
.celebrate--sm .celebrate__circle svg{width:28px;height:28px}
.celebrate__check{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24}
.celebrate__burst{position:absolute;inset:0;pointer-events:none}
.celebrate__burst i{position:absolute;inset-block-start:50%;inset-inline-start:50%;width:6px;height:6px;margin:-3px;border-radius:50%;
  background:var(--primary);opacity:0}
.celebrate__burst i:nth-child(even){background:var(--warning)}
.done-head{text-align:center;display:flex;flex-direction:column;gap:var(--s2);padding-block-start:var(--s4)}
.done-head h1{font-size:20px;font-weight:800}
/* S3 removed the paid page's one next-steps list (the payment timeline took its place); its
   rules went with it. */

/* comment -> DM mini-demo */
.demo{display:flex;flex-direction:column;gap:var(--s2);align-items:center}
.demo__stage{position:relative;width:100%;max-width:280px;height:250px;border-radius:var(--radius-lg);background:var(--surface);
  border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden;padding:var(--s2);display:flex;flex-direction:column;gap:6px;
  font-size:12px}
.demo__post{display:flex;gap:var(--s2);align-items:center;background:var(--surface-well);border-radius:var(--radius-sm);padding:6px}
.demo__thumb{width:36px;height:36px;border-radius:6px;background:var(--primary-200);flex:none;object-fit:cover}
.demo__bubble{max-width:85%;padding:6px 10px;border-radius:14px;line-height:1.6}
.demo__bubble--comment{align-self:flex-start;background:var(--surface-well)}
.demo__bubble--dm{align-self:flex-end;background:var(--primary-tint);color:var(--text)}
.demo__who{font-size:10px;color:var(--text-2);display:block}
.demo__buy{position:relative;display:inline-flex;margin-block-start:4px;padding:2px 12px;border-radius:999px;background:var(--primary);
  color:var(--on-primary);font-weight:700;overflow:hidden}
.demo__tap{position:absolute;inset:0;margin:auto;width:24px;height:24px;border-radius:50%;background:var(--surface);opacity:0}
.demo__checkout{position:absolute;inset-inline:var(--s2);bottom:var(--s2);background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:6px 10px;display:flex;align-items:center;gap:6px;font-weight:700;box-shadow:var(--shadow-2)}
.demo__checkout .icon{width:16px;height:16px;color:var(--success)}
.demo__caption{font-size:12px;color:var(--text-2);text-align:center;margin:0}
/* DM redesign row 44: the two-step demo's question is three lines and a button -- a taller stage */
.demo--two .demo__stage{height:300px}

/* buyer chrome: wordmark bar, the 3-step bar, the trust line, the guide */
.buyer-bar{min-height:48px;display:grid;place-items:center;background:var(--surface);border-block-end:1px solid var(--border)}
.buyer-bar .wordmark{font-size:15px}
.steps.buyer-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:var(--s2) 0 0;align-items:start}
.buyer-steps__seg{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--muted);font-weight:400}
.buyer-steps__seg::before{content:"";display:block;width:100%;height:4px;border-radius:999px;background:var(--border)}
.buyer-steps__seg.is-done{color:var(--primary-700)}
.buyer-steps__seg.is-done::before{background:var(--primary)}
.buyer-steps__seg.is-current{color:var(--primary-700);font-weight:700}
.buyer-steps__seg.is-current::before{background:var(--primary)}
.buyer-steps__seg .icon{width:14px;height:14px}
.trust{display:flex;align-items:flex-start;justify-content:center;gap:6px;font-size:12px;color:var(--text-2);margin:0;text-align:center}
.trust .icon{width:14px;height:14px;color:var(--success);margin-block-start:3px}
.method-card{gap:var(--s2)}
.method-card .btn-secondary,.method-card .btn-primary{width:100%}
.explain-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s3)}
.explain-list li{display:flex;gap:var(--s3);align-items:flex-start;font-size:.92rem}
.explain-list .icon{color:var(--primary-700)}
.readmore>summary{font-size:.85rem;color:var(--primary-700);min-height:52px;padding-inline:var(--s4)}
.lines{list-style:none;margin:0;display:flex;flex-direction:column;gap:var(--s3)}
.lines:not(.card){padding:0}   /* V7-06: a .card.lines keeps its card padding */
.lines li{display:flex;flex-direction:column;gap:2px;padding-block-end:var(--s3);border-block-end:1px solid var(--border)}
.lines li:last-child{border:0;padding:0}

/* orders */
.order-card{display:flex;gap:var(--s3);color:inherit;text-decoration:none}
.order-card__thumb{width:48px;height:48px;border-radius:var(--radius-sm);background:var(--surface-well);flex:none;display:grid;
  place-items:center;color:var(--faint);object-fit:cover}
.order-card__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.order-card__title{font-weight:700;font-size:15px}
.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-card__foot{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);margin-block-start:4px}
.order-card__amount{font-weight:800}
.steps-list{margin:0;padding-inline-start:var(--s5);font-size:13px;color:var(--text-2)}

/* merchant tab bar with icons */
.bottom-nav a .icon{width:20px;height:20px;order:-1}
.fab{display:inline-flex;align-items:center;gap:6px}

/* admin pilot list */
.pilot-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.pilot-list li{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap;padding:var(--s2) 0;border-block-end:1px solid var(--border)}
.pilot-list li form{margin-inline-start:auto}
.upload__cta--change{display:none}
.upload.has-image .upload__cta--add,.upload.has-image>.icon{display:none}
.upload.has-image .upload__cta--change{display:inline-flex}
.pilot-entry{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap;padding:var(--s2) 0;border-block-end:1px solid var(--border)}
.pilot-entry form{margin-inline-start:auto}
.whoami-strip{max-width:480px;margin:0 auto;padding:var(--s2) var(--s4) 0;font-size:13px;color:var(--text-2)}
.how-to,.steps-list{list-style-type:persian}
.preview .buyer-card{max-width:260px;align-self:center;width:100%}

/* V7-08: a text link inside a sentence (banner «تکمیل», «راهنمای اتصال») keeps its visual size but gets
   a 44px-tall hit area: vertical padding on an inline box does not move the line. */
.tap-link{display:inline-block;padding-block:12px;margin-block:-12px;color:var(--primary-700)}
/* V7-04: «شناسه کجاست؟» -- a mock address bar with the account id highlighted */
.id-hint{margin:0;display:flex;flex-direction:column;gap:6px;padding:var(--s3);border-radius:var(--radius-sm);background:var(--surface-well)}
.id-hint__title{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14px}
.id-hint__bar{background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:6px var(--s3);font-size:12px;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}
.id-hint__bar mark{background:var(--primary-tint);color:var(--primary-700);font-weight:800;border-radius:4px;padding:0 2px}
/* V7-05: the buyer's shop description -- one copy, clamped; the label below unclamps it in place */
.readmore-clamp{display:flex;flex-direction:column;align-items:flex-start;gap:0}
.readmore__label{display:inline-flex;align-items:center;min-height:44px;font-size:.85rem;font-weight:700;
  color:var(--primary-700);cursor:pointer}
.readmore__toggle:checked~.clamp-2{display:block;-webkit-line-clamp:unset;overflow:visible}
.readmore__toggle:checked~.readmore__label{display:none}
.readmore__toggle:focus-visible~.readmore__label{outline:2px solid var(--primary);outline-offset:2px;border-radius:4px}
/* V7-09: the buyer's step bar, CTA and trust line dock together, so the sticky button never covers
   the «where am I» labels. The dock is sticky; the button inside it is not. */
.cta-dock{position:sticky;bottom:0;z-index:4;display:flex;flex-direction:column;gap:var(--s2);
  background:var(--surface);padding:var(--s2) var(--s4);margin-inline:calc(-1 * var(--s4));
  border-block-start:1px solid var(--border);max-width:var(--frame)}
.cta-dock .sticky-cta{position:static}
/* ADDR-EMPTY (2026-10-20): on the address step the dock is not sticky -- with name and mobile
   prefilled the address field sat behind it, and buyers pressed «ادامه» past an empty address.
   The button now follows the address. */
main:has(textarea#address) .cta-dock{position:static}
body:has(.bottom-nav) .cta-dock{bottom:64px}

/* ================= B layer (2026-09-29) — the «مُهر» brand (B1), «پرداخت تجمیعی» (B2/B3) and the
   looping explainers' static chrome (B4). Additive; logical properties, tokens only. ============ */

/* the logo: the mark at the reading start (right), the Persian wordmark beside it. The wordmark
   text IS the accessible name; the mark image stays decorative (alt=""). */
.brand{display:inline-flex;align-items:center;gap:var(--s2);color:var(--text);text-decoration:none}
.brand__mark{display:block;flex:none}
.buyer-bar .brand .wordmark{font-size:15px}
.wizard-bar .brand .wordmark{font-size:14px}

/* the quiet brand line above the merchant and admin tab bars: the one shared element those
   surfaces have, so every screen carries the name without touching each page's own header */
.nav-brand{display:flex;align-items:center;justify-content:center;gap:var(--s2);max-width:480px;
  margin:0 auto;padding:var(--s2) 0 var(--s3);font-size:12px;font-weight:800;color:var(--text-2)}

/* the landing hero's value line and the two method chips (B2): facts, not controls -- the
   «به‌زودی» chip is muted and has no link, so it can never read as tappable */
.hero-value{color:var(--text);font-size:1rem;font-weight:700;margin:0}
.method-row{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--s2)}
.method-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 var(--s3);
  border:1px solid var(--primary-200);border-radius:999px;background:var(--surface);
  font-size:.85rem;font-weight:700;color:var(--text)}
.method-chip .icon{width:16px;height:16px;color:var(--primary-700)}
.method-chip__state{font-size:.72rem;font-weight:800;border-radius:999px;padding:2px 8px;
  background:var(--success-tint);color:var(--success-deep)}
.method-chip--soon{border-color:var(--border);color:var(--text-2)}
.method-chip--soon .icon{color:var(--muted)}
.method-chip--soon .method-chip__state{background:var(--surface-well);color:var(--text-2)}

/* NUMBER-PREVIEW (2026-10-29): the buyer number page's pay strip -- the landing's method chips
   above the number field, read-only facts about THIS checkout. The title is the strip's only
   sentence; the chips carry no amount and no number. House tokens only. */
.pay-strip{margin:0 0 var(--s3)}
.pay-strip__title{margin:0 0 var(--s2);font-size:.85rem;font-weight:700;color:var(--text-2)}

/* the pay step's method block (B2, design P4.3/P4.4): no fake choice. One live method is a static
   white row -- a neutral lock circle, the name, one plain line; no border accent, no badge, no
   radio. The instalment idea is either ONE muted caption line on the grey page (--text-2, never
   --muted: it sits on --bg) or, when the credit journey is offered, a tappable chevron row built
   from the shared .row-link; the row's own sub-line is --text-2 on its white card. */
.pay-fixed,.pay-entry{padding-block:0}
.pay-fixed .row-link{padding-block:var(--s3);padding-inline:0;cursor:default}
.pay-fixed .row-link__lead{background:var(--surface-well);color:var(--text-2)}
.pay-fixed__sub,.pay-entry__sub{font-size:var(--fs-sm);color:var(--text-2);line-height:1.7}
.pay-entry .row-link{padding-block:var(--s3)}
.pay-soon{display:flex;align-items:center;gap:var(--s2);margin:0;color:var(--text-2);
  font-size:var(--fs-sm);line-height:1.7}
.pay-soon__icon{display:inline-grid;place-items:center;flex:none}
.pay-soon__icon .icon{width:16px;height:16px}

/* the looping explainers' shared chrome (B4): the «شروع» pin and the end check are static text,
   visible in every frame; motion only adds the highlight. The tracks fill in the reading
   direction -- transform-origin 100% is the physical RIGHT, inline-start in RTL. */
.loop-start{display:inline-flex;align-items:center;font-size:10px;font-weight:800;line-height:1.8;
  color:var(--primary-700);background:var(--primary-tint);border-radius:999px;padding:1px 8px}
.demo__post .loop-start{margin-inline-start:auto}
.illo__node .loop-start{position:absolute;inset-block-start:calc(100% + 2px);inset-inline:0;
  justify-content:center}
.loop-check{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;
  background:var(--success);color:var(--on-primary);flex:none}
.loop-check .icon{width:12px;height:12px}
.how__dot .loop-check{position:absolute;inset-block-end:-4px;inset-inline-start:-4px}
.demo__checkout .loop-check{width:18px;height:18px;margin-inline-start:auto}

/* the conversation group (fades back to the lone post on the reset) and the demo's track */
.demo__conv{display:flex;flex-direction:column;gap:6px}
.demo__track{position:absolute;inset-inline:0;bottom:0;height:3px;border-radius:999px 999px 0 0;
  background:var(--primary);transform-origin:100% 50%}

/* the bank path's fill line, drawn over the dashed path as the coin travels */
.illo__fill{position:absolute;inset-block-start:-2px;inset-inline:0;block-size:2px;
  background:var(--primary);transform-origin:100% 50%}

/* Brief D2: the connect return's confirmation card leads its page, LOUD -- the brand border and
   tint and a full-width confirm button, so the seller cannot read a returned connection as lost.
   Every token is an existing one. */
.card--ig{border:2px solid var(--primary);background:var(--primary-tint)}
.card--ig .tile-title{color:var(--primary-700)}
.card--ig .btn-primary{width:100%}

/* Brief D3: the admin nav's build line -- quiet, under the tabs (the .whoami-strip's twin). */
.nav-build{max-width:480px;margin:0 auto;padding:var(--s2) var(--s4) var(--s4);font-size:13px;
  color:var(--text-2);text-align:center}

/* P1.5/P1.6: «ویرایش» and «مدل‌ها و قیمت‌ها» under each product card -- outside its link, since
   links do not nest -- and on the product page. */
.product-grid__item{display:flex;flex-direction:column;gap:2px}
.product-grid__item .pcard{height:auto;flex:1}
.pcard-actions{display:flex;flex-wrap:wrap;justify-content:space-between}
.pcard-actions .btn-text{padding:0 4px;font-size:.8rem}
.product-actions{gap:var(--s2)}
.product-actions .btn-secondary{flex:1}

/* P1.6 «مدل‌ها و قیمت‌ها»: one card per model; the price choice as two chips (a radio each).
   Scoped under .model-row so they outrank the generic label:has(input[type=...]) row rule. */
.model-row__title{margin:0;font-weight:800}
.model-row .model-row__pick{display:inline-flex;align-items:center;gap:6px;min-height:44px;
  font-size:.85rem;font-weight:700}
.model-row__axes>summary{font-size:.85rem;color:var(--primary-700)}
.choice-chips{display:flex;flex-wrap:wrap;gap:var(--s2)}
.model-row .choice-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;
  padding:0 var(--s3);border:1px solid var(--border);border-radius:999px;background:var(--surface);
  font-size:.85rem;font-weight:700;cursor:pointer}
.model-row .choice-chip:has(input:checked){border-color:var(--primary);background:var(--primary-tint);
  color:var(--primary-700)}
.choice-chip input{accent-color:var(--primary)}
.model-row__own{display:flex;flex-direction:column;gap:6px}
.model-row__price:has(input[value="base"]:checked) .model-row__own{display:none}
.bulk-direction{width:auto;flex:none}
.bulk-percent{flex:1;min-width:0;width:auto}

/* M5 «حذف محصول»: the one destructive action; since v7 (§1.6) it is the text-only danger button
   in the layer below -- never an outline, never a red fill, which reads as an error message. */

/* M3: the in-app browser banner (buyer product page and address step) -- compact, in the brand
   tint; its open action a quiet outline in the brand ink, so the page's own CTA stays the one
   filled primary (row 18). Every token is an existing one. */
.inapp-banner{background:var(--primary-tint);border:1px solid var(--primary-200)}
.inapp-banner>.icon{color:var(--primary-700)}
.inapp-banner__body{display:flex;flex-direction:column;gap:var(--s2);min-width:0}
.inapp-banner__title{font-weight:700}
.inapp-banner__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}
.inapp-banner__open{background:var(--surface);border-color:var(--primary);color:var(--primary-700)}
/* LC77: the Instagram connect page's Android steps -- a numbered list under its own disclosure
   heading, in the page's own text colour. Every token is an existing one. */
.ig-android{margin-block:var(--s3)}
.ig-android__steps{margin:0;padding-inline-start:var(--s5);display:flex;flex-direction:column;
  gap:var(--s2);line-height:1.8;color:var(--text)}

/* ================= Buyer UI audit layer (2026-09-30) -- the buyer audit's findings that CSS answers.
   The brand tokens are unchanged (#17: only how they are used); logical properties throughout. === */

/* #1: the product page's dock carries the price beside its CTA -- one row, the CTA at the reading
   start and the price at the inline end (bottom-LEFT, v6 B18) -- so the two are always seen together */
.dock-buy{display:flex;align-items:center;gap:var(--s3)}
.dock-buy .sticky-cta{flex:1 1 auto;width:auto;min-width:0}
.dock-price{flex:none;display:flex;flex-direction:column;align-items:flex-end;margin:0;line-height:1.5}
.dock-price .text-2{font-size:.8rem}
.dock-price .amount{font-weight:800;font-size:1.15rem;white-space:nowrap}
.cta-dock .price-up,.cta-dock .price-down{font-size:.85rem;text-align:center}

/* #4: the paid headline is the page's headline, never the muted [role=status] grey */
.done-head .done-title{color:var(--text)}

/* #5: a done step's check sits IN its label's row, so every segment is one height */
.buyer-steps__label{display:inline-flex;align-items:center;gap:2px}

/* #7: the sign-in padlock's check sits ON the lock (the bank illustration's offset was for its node) */
.illo--lock .illo__check{inset-block-start:calc(50% - 28px);inset-inline-end:calc(50% - 30px)}

/* #8: every value -- not only the amounts -- takes the row's inline end: one straight value column */
.money-row>:last-child:not(:first-child){margin-inline-start:auto}
/* #9: a long code moves under its label as a whole (the label never splits) and, only if it must,
   breaks inside itself; «کپی» stays with it */
.money-row:has(code){flex-wrap:wrap}
.money-row>.text-2:first-child{white-space:nowrap}
.money-row code{overflow-wrap:anywhere}
.money-row .amount--code{font-size:1rem}

/* #10: with one method its form is not a card around the dock -- never a box in a box */
.method-card:has(>.cta-dock){background:none;border:0;border-radius:0;padding:0}

/* #11: the signed-in strip is one row -- the account wraps inside its own box and «شما نیستید؟»
   stays at the row's end, never alone on a line of its own */
.who-row{display:flex;align-items:center;gap:var(--s2)}
.who-row__id{flex:1;min-width:0;margin:0;font-size:13px;color:var(--text-2);overflow-wrap:anywhere}
.who-row form{flex:none}
.who-row__id bdi{white-space:nowrap}   /* the masked mobile never splits between its groups */

/* #12: while the buyer types, the dock keeps what the keyboard leaves room for -- the CTA (and the
   price); the step bar and the trust line come back when the field lets go */
main:has(:is(input:not([type="checkbox"]):not([type="radio"]),textarea):focus) .cta-dock :is(.buyer-steps,.trust){display:none}

/* #17: an error line keeps its icon beside the red fill, so brand-shade text never passes for it */
.alert-line{display:flex;gap:var(--s2);align-items:flex-start}
/* APPROVED-STRAIGHT r3 (2026-11-13): a server-hidden alert slot stays hidden -- the display rule above
   would otherwise beat [hidden] and show an empty red line. */
.alert-line[hidden]{display:none}
.alert-line .icon{flex:none;margin-block-start:3px}

/* #18: form controls in the brand -- a 20px tick in the primary (never browser blue), and the focus
   ring in the primary, the error colour on a field in error */
input[type="checkbox"],input[type="radio"]{accent-color:var(--primary)}
label>input[type="checkbox"]{inline-size:20px;block-size:20px;margin:2px 0 0;flex:none}
:is(input,textarea,select):focus-visible{outline:2px solid var(--primary);outline-offset:1px}
.field--error :is(input,textarea,select):focus-visible{outline-color:var(--danger)}

/* #26: on the status page, the payment as a plain fact above a refund line */
.fact-line{display:flex;gap:var(--s2);align-items:center;margin:0;font-size:.9rem;color:var(--text-2)}
.fact-line .icon{inline-size:16px;block-size:16px}

/* #27: «توضیحات محصول» says it opens -- a chevron pointing down, up once open (the flex summary
   has no disclosure marker; Safari's is hidden so there is never two) */
.readmore>summary::-webkit-details-marker{display:none}
.readmore>summary .icon{margin-inline-start:auto;transform:rotate(90deg);transition:transform var(--dur-1) var(--ease-out)}
.readmore[open]>summary .icon{transform:rotate(-90deg)}
/* B4 (P1.7): the closed row is the summary alone -- 52px, label and chevron centred, no padding below;
   the text carries its own inset once open */
.card.readmore{padding:0;gap:0}
.readmore>.sheet{padding:0 var(--s4) var(--s4)}

/* #28: a sold-out variant reads as unavailable at a glance */
.opt:has(input:disabled){opacity:.55;cursor:not-allowed}

/* B4 (P1.4): the model as value-only chips -- 44px, a 3-column grid (2 for two), radio semantics kept:
   the radio covers its chip, invisible, so a tap or the keyboard lands on the real input; `.chips>`
   outranks the generic radio-label row above */
.chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s2)}
.chips--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.chips>.chip-opt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:0;min-height:44px;padding:var(--s2) var(--s2);text-align:center;line-height:1.4;cursor:pointer;
  border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface)}
.chip-opt input{position:absolute;inset:0;inline-size:100%;block-size:100%;margin:0;opacity:0;cursor:inherit}
.chip-opt__value{font-weight:700;font-size:.9rem;overflow-wrap:anywhere}
.chip-opt__sub{font-size:.75rem;color:var(--text-2)}
.chip-opt:has(input:checked){border-color:var(--primary);background:var(--primary-tint);
  box-shadow:inset 0 0 0 1px var(--primary)}
.chip-opt:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}
.chip-opt:has(input:disabled){opacity:.55;cursor:not-allowed}
.model-static{font-weight:700;margin:0}

/* B4: the product page leads with the product -- the seller row is one line under the title, the
   trust line and terms caption sit under «تعداد» in the flow, and the pill carries its check */
main>.seller-row{margin-block-end:0}
.pill .icon{width:12px;height:12px}
.buy-notes{display:flex;flex-direction:column;gap:var(--s2)}
.buy-notes .trust{justify-content:flex-start;text-align:start}
.buy-notes .caption{margin:0}

/* #29/#30: no photo -- a small box tile, not a screen-filling square; a photo takes the card radius */
.product-nophoto{inline-size:72px;block-size:72px;border-radius:var(--radius);background:var(--surface-well);
  color:var(--faint);display:grid;place-items:center}
.product-nophoto .icon{inline-size:32px;block-size:32px}
.product-photo{border-radius:var(--radius)}

/* 2026-10-03 ID 13/14: BNPL's own enabled options for this buyer, inside the BNPL pay form.
   Quiet radio rows; the provider's terms are the provider's words, never our quote. */
.bnpl-options{margin:0 0 var(--s2);padding:0;border:0;display:flex;flex-direction:column;gap:var(--s1)}
.bnpl-options legend{padding:0}
.bnpl-option{display:flex;align-items:flex-start;gap:var(--s2);padding:var(--s1) 0}
.bnpl-option span{display:flex;flex-direction:column;gap:2px;font-size:.85rem}
.bnpl-option small{color:var(--text-2);font-size:.75rem}

/* ================= v7 (2026-10-06) -- the violet pass (plan_01 §1.6): buttons, cards, badges,
   the grouped alert, chevron rows, the bottom sheet, radio rows, figures and the frame. The old
   rules these rewrite were deleted or annotated in place in the same push. ================================= */

/* buttons: the shared --h-btn / 12px / --fs-base values, the white secondary and the text button's
   --primary-strong live ABOVE with the base button rules, so the modifiers keep winning by order
   (S1b, T-2). Only what no modifier contests is here: the focus ring, the disabled primary, and
   danger as TEXT ONLY -- never an outline, never a fill (dir. 7) */
:is(.btn-primary,.btn-secondary,button):focus-visible{outline:2px solid var(--primary-strong);outline-offset:2px}
.btn-primary:is([disabled],[aria-disabled="true"]){background:var(--surface-well);
  border-color:var(--surface-well);color:var(--muted)}
.btn-danger{background:transparent;border:0;color:var(--danger-deep)}

/* cards: white on the grey page is the separation; the action bar says "do this now" */
.card--action{border-inline-start:4px solid var(--primary)}
.card--quiet{color:var(--text-2)}

/* the status badge's warning variant (§1.6): non-interactive, never a link */
.status--warn{background:var(--warning-tint);color:var(--warning-deep)}

/* the grouped alert (§1.6, live-check delta 5): one card, its title icon in the warning colour
   -- its own rule, so the violet every other tile title takes never reaches it */
.alert-group .tile-title .icon{color:var(--warning)}
.alert-group__lead{width:36px;height:36px;border-radius:50%;background:var(--warning-tint);
  color:var(--warning-deep);display:grid;place-items:center;flex:none}
.alert-group__lead .icon{width:20px;height:20px}

/* chevron rows (§1.6): <a> or <button> rows in a .row-menu list inside a card; the separator
   between rows starts 64px in from the reading start, past the lead circle */
.row-menu{list-style:none;margin:0;padding:0}
/* S4B-3 (S4 review): a row-menu inside a card rides flush with the card's edges -- the row's own
   inline padding is the inset, so the hero's «برداشت موجودی» lines up with its figure and captions
   instead of sitting a second padding-width inside them. */
.card>.row-menu{margin-inline:calc(-1 * var(--s4))}
.row-menu>:nth-child(n+2){position:relative}
.row-menu>:nth-child(n+2)::after{content:"";position:absolute;inset-block-start:0;
  inset-inline-start:64px;inset-inline-end:0;border-block-start:1px solid var(--border);pointer-events:none}
/* S4B-7 (S4 review): a row-menu whose rows carry NO lead circle (the bank-account rows) starts
   its dividers at the row's own padding, not 64px in -- an inset sized for an icon they lack. */
.row-menu--nolead>:nth-child(n+2)::after{inset-inline-start:var(--s4)}
.row-link{display:flex;align-items:center;gap:var(--s3);width:100%;min-height:var(--h-row);
  padding:var(--s2) var(--s4);background:transparent;border:0;color:var(--text);text-decoration:none;
  font:inherit}   /* a <button> row takes the page font, not the button's bold: <a> and <button> rows match (S1b, T-6) */
.row-link:active{background:var(--surface-well)}
.row-link__lead{width:36px;height:36px;border-radius:50%;background:var(--primary-soft);
  color:var(--primary-strong);display:grid;place-items:center;flex:none}
.row-link__lead .icon{width:20px;height:20px}
.row-link__text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;text-align:start}
/* S4E-9 (S4f): a row's text column is a flex column, so a chip inside it stretched across the
   column's width; it hugs its own text now. Scoped to the row's text column -- the wallet's
   bank-account rows («تأییدشده» / «در انتظار تأیید») are the only chip that sits in one. */
.row-link__text .status{align-self:flex-start}
.row-link__title{font-size:var(--fs-base);font-weight:600}
.row-link__value{font-size:var(--fs-sm);font-weight:400;color:var(--muted);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}   /* §1.6: one line with an ellipsis (min-width:0 sits on the text column) */
.row-link__chev{color:var(--faint);flex:none;transform:scaleX(-1)}   /* the icon points back; rows go forward */
.row-link[aria-disabled="true"]{color:var(--muted)}
.row-link[aria-disabled="true"] .row-link__title,.row-link[aria-disabled="true"] .row-link__value{color:var(--muted)}

/* the bottom sheet (§1.6): opens and closes by URL hash alone, no JS to choose; the panel is
   the frame's width, docked to the bottom under its scrim */
.bsheet{display:none}
.bsheet:target{display:block;position:fixed;inset:0;z-index:20}
.bsheet__scrim{position:absolute;inset:0;background:rgb(17 24 39 / .45)}
.bsheet__panel{position:fixed;inset-block-end:0;inset-inline:0;max-width:var(--frame);margin-inline:auto;
  max-height:85vh;overflow:auto;background:var(--surface);border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  padding:var(--s4);padding-block-end:calc(var(--s4) + env(safe-area-inset-bottom));display:flex;
  flex-direction:column;gap:var(--s3)}
.bsheet__handle{width:36px;height:4px;border-radius:var(--radius-pill);background:var(--border-strong);
  align-self:center;flex:none}
.bsheet__panel>h2{margin:0}
.bsheet__close{align-self:flex-end;min-height:44px}

/* radio rows (§1.6): each row submits or navigates on its own; the ring marks the chosen one */
.radio-row{display:flex;align-items:center;gap:var(--s3);width:100%;min-height:var(--h-row);
  padding:var(--s2) var(--s4);background:transparent;border:0;border-radius:var(--radius);
  color:var(--text);font:inherit;text-align:start;text-decoration:none}
.radio-row__dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--border-strong);flex:none;
  display:grid;place-items:center}
.radio-row__text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.radio-row__title{font-size:var(--fs-base);font-weight:600}
.radio-row__sub{font-size:var(--fs-sm);color:var(--text-2)}
.radio-row[aria-pressed="true"],.radio-row[aria-current="true"]{background:var(--primary-soft)}
.radio-row[aria-pressed="true"] .radio-row__dot,.radio-row[aria-current="true"] .radio-row__dot{
  border-color:var(--primary)}
.radio-row[aria-pressed="true"] .radio-row__dot::after,.radio-row[aria-current="true"] .radio-row__dot::after{
  content:"";width:10px;height:10px;border-radius:50%;background:var(--primary)}

/* figures (§1.6): the money number, tabular, its «تومان» suffix one size down; never shown when
   its read failed (the template shows «—» and a row link instead) */
.figure{font-size:var(--fs-figure);font-weight:800;font-variant-numeric:tabular-nums;
  letter-spacing:-.02em;margin:0}
.figure__unit{font-size:var(--fs-sm);font-weight:400}
/* S3b D-5: a money figure never breaks inside its digits -- split, it reads as two numbers; only
   «تومان» may wrap below it */
.figure__num{white-space:nowrap}
/* the figure pair (plan_02 §2.2): «فروش این ماه» beside «قابل برداشت الان» -- side by side while
   both figures fit, stacked when one does not (a flex line breaks at the cards' min-content, which
   the unbreakable figure sets), so a long figure neither splits nor pushes the page sideways; one
   column under 340px. On a phone the pair's figures scale with the width (28px from 452px up),
   so a seven-digit toman figure still sits beside its partner at 360px. The whole permitted card
   is the link to the wallet page */
.figure-pair{display:flex;flex-wrap:wrap;gap:var(--s3)}
.figure-pair>*{flex:1 1 0}
@media (max-width:340px){.figure-pair>*{flex-basis:100%}}
.figure-pair>a{text-decoration:none;color:inherit}
.figure-pair .figure{font-size:clamp(var(--fs-title),6.2vw,var(--fs-figure))}

/* the grouped alert's list (plan_01 §1.6): no visible chrome beyond «دیدن فهرست», the names
   indented past the row's lead circle */
.alert-group__details{margin:0;padding-inline-start:calc(var(--s4) + 36px + var(--s3));
  padding-inline-end:var(--s4);padding-block-end:var(--s2)}
.alert-group__details summary{list-style:none;cursor:pointer;color:var(--primary-strong);
  font-size:var(--fs-sm);min-height:44px;display:inline-flex;align-items:center}
.alert-group__details summary::-webkit-details-marker{display:none}
.alert-group__details ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;
  gap:var(--s2);font-size:var(--fs-sm);color:var(--text-2)}

/* the who line: one quiet row under a title -- who this screen is about */
.who-line{display:flex;align-items:center;gap:var(--s2);font-size:var(--fs-sm);color:var(--text-2);margin:0}
/* B1-polish (design P4.2): the identity caption under the totals -- «خرید با حساب {mask} · شما نیستید؟».
   The caption's text may wrap, the masked mobile never does: «۰۹۱۲ *** ۰۰۰۰» is one unit, also on the
   sign-in's code stage (B3 note m1), where it sits inside a left-to-right isolate in the lead. */
.who-line>span{min-width:0;overflow-wrap:anywhere}
.who-line form{flex:none;margin:0}
.masked-mobile{white-space:nowrap;direction:ltr;unicode-bidi:isolate-override;display:inline-block}
/* the masked number is ONE left-to-right run wherever it shows (digits, spaces and asterisks never
   reorder against the surrounding Persian text): an isolate with a forced LTR order, one unit */
/* S2b (review B-1): the ship-to card shows the WHOLE address -- it wraps, never an ellipsis: the
   tail an ellipsis cuts in Persian is the plaque, floor and unit the courier needs, and the card's
   text is what the pay POST ships to. Any single long word breaks (anywhere) rather than pushing
   the page sideways at 360 px; the card's header row keeps its own wrap-safety below, beside
   «تغییر». */
.ship-line{margin:0;overflow-wrap:anywhere}
/* the ship-to card's header: a long recipient name wraps beside «تغییر» -- never one clipped,
   unbreakable line (the money-row's own nowrap stands down here, later in the file wins the tie) */
.money-row>.ship-head:first-child{min-width:0;white-space:normal;overflow-wrap:anywhere}
/* LC79: the ship-to head wraps INSIDE itself, so its row never wraps «تغییر» onto a line of its own */
.money-row:has(>.ship-head:first-child){flex-wrap:nowrap}
/* S2b (review B-3): the one page's what-is-priced line -- the item's own title and count above
   the totals; a long or Latin title (dir="auto") wraps whole instead of pushing the page sideways */
.item-line{margin:0;overflow-wrap:anywhere}

/* the frame (§1.5) lives on main, the nav, the FAB, .sticky-cta and .cta-dock -- their own rules
   above carry max-width:var(--frame); the grey page and white cards carry the separation */

/* ================= S5 layer (2026-10-10) -- the import gallery's checkbox overlay (plan_02 §2.6,
   live-check delta 11). Additive only: the flag-off page is exactly yesterday's. The sticky bar
   itself is the shared .cta-dock above; these rules style the overlay alone. ==================== */

/* the pick: a 44px hit area over the 1:1 thumb's leading top corner, the 22px checkbox centred in
   it. The label wraps the input, so a tap anywhere in the area toggles; the card's own links are
   untouched and the input is a structural child of the page's one batch form (IMP1: ancestry,
   never a form attribute). The dark wash keeps the pick legible over any photo, and the soft
   corner rounds into the thumb's own. Both selectors sit under .pcard__media so they outrank the
   global label:has(...) row rule and the global label>input tick metrics, which would pin the
   box to the label's start edge */
.pcard__media .pcard__check{position:absolute;z-index:2;inset-block-start:0;inset-inline-start:0;
  width:44px;height:44px;display:grid;place-items:center;cursor:pointer;
  background:rgb(17 24 39 / .35);border-end-end-radius:var(--radius-sm)}
.pcard__media .pcard__check input{width:22px;height:22px;margin:0;accent-color:var(--primary)}
.pcard__check:has(input:focus-visible){outline:2px solid var(--primary-strong);outline-offset:-2px}
/* IMP1 round 3: #batch's own children sit in natural DOM order -- hidden default submit, card
   list, bar -- because the live count below is a CSS counter that only sees the ticks PRECEDING
   it in tree order (a bar before the cards read (۰) with picks ticked), and that order is
   already list-first with the sticky bar docked at the bottom, so no #batch column-reverse
   remains. The form's default button is the visually-hidden submit the template puts first
   (Enter on a checkbox submits the selection, never «انتخاب همه», never a card's own action) */
/* IMP1 round 2: the bar now sits INSIDE #batch as a plain div, and its own column-reverse -- the
   one that keeps the primary at the bar's bottom -- lives here, not as an inline style on the
   template; the child combinator reaches only the batch form's own dock, never another .cta-dock */
#batch>.cta-dock{flex-direction:column-reverse}
/* the live count is CSS, not script (S14): main resets the counter only where the batch form is,
   every ticked pick increments it, and the primary button's ::after names it in Persian digits.
   A counter is recomputed from the DOM itself, so the count is right the moment a Back restore
   brings the ticked boxes back -- and it needs no behaviour layer at all */
main:has(#batch){counter-reset:sel}
.pcard__check input:checked{counter-increment:sel}
#batch [data-count-for]::after{content:" (" counter(sel,persian) ")"}
/* S8a (plan_02 §2.1): the landing's dock -- the page's one CTA with the terms link under it. The
   dock itself is the buyer rule above; its link line carries no margin of its own, so the dock's
   own gap is the spacing and the line sits tight under the button like the buyer trust line. */
.cta-dock .caption{margin:0}

/* ---- sp91011 ---- */
/* S-P10: the shop's Instagram profile photo over the letter avatar. The letter stays underneath, so
   a photo that fails to load (an expired CDN address) simply shows it. */
.avatar--photo{position:relative;overflow:hidden}
.avatar--photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;
  color:transparent;background:var(--primary-200)}
/* S-P11: the final, irreversible choice is danger TEXT behind a disclosure, never a button pair */
summary.danger-text{color:var(--danger-deep)}
/* S-P11 (A3): the sign-out row is not a navigation row -- no lead circle, danger text */
.row-link__title--danger{color:var(--danger-deep);font-weight:700}
/* S-P11 (B3): the dashboard's two figure tiles keep their titles on one line at 390 px */
.figure-pair .tile-title{white-space:nowrap;font-size:var(--fs-sm)}
/* ---- B6 ---- */
/* The buyer's end pages (design plan wave 2, item 11). Additive only: no existing rule is changed.
   The failed payment wears the yellow warning (P6.2) through its own modifier, so the red circle
   other pages still use is untouched; the code and time rows of an end-page notice card run edge to
   edge, label at the reading start and value at the inline end, like the paid page's card. */
.icon-circle--caution{background:var(--warning-tint);color:var(--warning-deep)}
.notice-card--end .money-row{align-self:stretch;margin:0;text-align:start}
/* ---- SP567 ---- the product page as the one edit surface (S-P5/S-P6) and the import cards that
   hold their actions (S-P7). Additive only; every rule is under a new pe-/pcard-actions name. */
.pe-head{display:flex;align-items:center;gap:var(--s2);position:relative}
.pe-head h1{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.pe-menu{position:relative}
.pe-menu>summary{list-style:none;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--border-strong);
  border-radius:var(--radius);background:var(--surface);font-size:22px;line-height:1}
.pe-menu>summary::-webkit-details-marker{display:none}
.pe-menu__panel{position:absolute;z-index:6;inset-block-start:calc(100% + var(--s1));inset-inline-start:0;
  inline-size:min(300px,calc(100vw - 2 * var(--s4)));display:flex;flex-direction:column;gap:var(--s2);padding:var(--s3);
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-2)}
.pe-menu__item{border-bottom:1px solid var(--border);padding-bottom:var(--s2)}
.pe-menu__item>summary{min-height:44px}
.pe-photo-field{align-items:center}
.pe-photo{max-width:240px;width:100%;aspect-ratio:1/1}
/* PJ-S2 (consensus D3): the code row's change sheet -- a <details> that opens in place, no
   script; open, its panel wraps under the row and spans the card. */
.pe-codesheet>summary{list-style:none;display:inline-flex;align-items:center;min-height:44px;
  padding:0 var(--s3);border:1px solid var(--border-strong);border-radius:var(--radius);
  background:var(--surface)}
.pe-codesheet>summary::-webkit-details-marker{display:none}
.pe-code .row{flex-wrap:wrap}
.pe-codesheet[open]{flex-basis:100%}
.pe-codesheet__panel{display:flex;flex-direction:column;gap:var(--s2);margin-block-start:var(--s2);
  border:1px solid var(--border);border-radius:var(--radius);padding:var(--s3);background:var(--surface)}
.pe-affix{display:flex;align-items:stretch;border:1px solid var(--border-strong);border-radius:var(--radius-sm);
  background:var(--surface);overflow:hidden}
.pe-affix input{border:0;border-radius:0;min-width:0;flex:1}
.pe-affix span{display:grid;place-items:center;padding:0 var(--s3);background:var(--surface-well);
  color:var(--text-2);font-weight:700;font-size:var(--fs-sm)}
.field--error .pe-affix{border-color:var(--danger)}
/* off: the options and the models are folded away; on: one pair, «افزودن ویژگی» for the rest */
.pe-models__body{display:none;flex-direction:column;gap:var(--s3)}
.pe-models:has(.switch__input:checked) .pe-models__body{display:flex}
.pe-create-hint{display:none}
form:has(#has_variations:checked) .pe-create-hint{display:block}
.pe-more>summary{justify-content:center;font-weight:700}
.pe-more[open]>summary{margin-block-end:var(--s3)}
.pe-picks{border:0;padding:0;margin:0}
/* LC92 «قیمت بر اساس یک ویژگی»: only the chosen option's price rows show (no JS); without :has
   every option's rows show and the server still reads only the chosen one. */
.pe-byvalue{display:flex;flex-direction:column;gap:var(--s3)}
.pe-byvalue>summary{font-weight:700}
.pe-byvalue__opt{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--s3)}
.pe-byvalue:has(#by-option option[value="0"]:checked) .pe-byvalue__opt:not(.pe-byvalue__opt--0),
.pe-byvalue:has(#by-option option[value="1"]:checked) .pe-byvalue__opt:not(.pe-byvalue__opt--1),
.pe-byvalue:has(#by-option option[value="2"]:checked) .pe-byvalue__opt:not(.pe-byvalue__opt--2){display:none}
.pe-share__actions{display:flex;flex-wrap:wrap;gap:var(--s2)}
.pe-share__text textarea,.pe-share__text input{margin-block-start:var(--s2)}
/* the sticky «انتشار» sits at the end of the form; the content after it keeps clear of the nav */
#product-form{padding-block-end:var(--s2)}
/* S-P7 (I2): an import card's actions inside its frame, one per line under a divider */
.pcard>.pcard-actions{display:flex;flex-direction:column;align-items:flex-start;gap:0;
  border-top:1px solid var(--border);padding:var(--s1) var(--s2)}
.pcard>.pcard-actions .btn-text{padding:0 var(--s1);font-size:.85rem}
.pcard>.pcard-actions .pcard-actions__quiet{color:var(--text-2);font-weight:400}

/* ---- SP4 ---- the seller's order detail built for packing, the date chips, the printable label.
   [hidden] never loses to a display rule here: .field and .chip-row set display, so the server-hidden
   carrier-name field and the JS-revealed chips need these. */
.field[hidden],.chip-row[hidden],input[hidden]{display:none}
/* APPROVED-THEN-PAY r1 (gate 1): the wait stage's leave link is server-hidden behind its 30 s
   reveal and .btn-secondary sets display, which beats the [hidden] attribute's own rule -- the
   attribute needs this, exactly like the pin above and .gvid__play's below. The seconds
   counter's element renders empty until its script's first tick, and an empty <p> would still
   take its gap in .notice-card -- so it hides while empty. */
a[data-reveal-at][hidden]{display:none}
[data-wait-clock]:empty{display:none}
.pack-card{gap:var(--s3)}
.pack-code{display:flex;align-items:center;gap:var(--s1);flex-wrap:wrap}
.btn-icon{min-height:44px;min-width:44px;padding:0;border:0;background:transparent;color:var(--text-2)}
.pack-items{display:flex;flex-direction:column;gap:var(--s1)}
.pack-item{font-size:22px;line-height:1.5;overflow-wrap:anywhere}
.pack-model,.pack-more{color:var(--text-2);font-size:var(--fs-sm);overflow-wrap:anywhere}
.pack-more{font-size:var(--fs-base)}
.pack-to{background:var(--surface-well);border-radius:var(--radius-sm);padding:var(--s3);display:flex;flex-direction:column;gap:var(--s1)}
.pack-to__label{display:flex;align-items:center;gap:var(--s1);color:var(--text-2);font-size:var(--fs-sm);font-weight:700}
.pack-to__label .icon{width:16px;height:16px}
.pack-to__name{font-size:var(--fs-title);font-weight:800;overflow-wrap:anywhere}
.pack-to__line{color:var(--text);overflow-wrap:anywhere}
.pack-full>summary{padding:0}
.pack-full>*+*{margin-block-start:var(--s2)}
.pack-full p{white-space:pre-line}
.date-chip{min-height:44px;padding:0 var(--s3);border-radius:var(--radius-pill);border:1px solid var(--border-strong);
  background:var(--surface);color:var(--text);font-size:var(--fs-sm);font-weight:700}
.date-chip[aria-pressed="true"]{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-strong)}
.date-line{color:var(--primary-strong);font-weight:700;font-size:var(--fs-sm);min-height:1.4em;margin:0}
.date-line:empty{display:none}
.label-sheet{background:var(--surface);border:2px solid var(--text);border-radius:var(--radius);padding:var(--s4);
  display:flex;flex-direction:column;gap:var(--s4)}
.label-sheet p{margin:0}
.label-cap{font-size:var(--fs-xs);font-weight:700;color:var(--text-2)}
.label-to{display:flex;flex-direction:column;gap:var(--s2)}
.label-to__name{font-size:28px;font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.label-to__mobile{font-size:24px;font-weight:800}
.label-to__address{font-size:22px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-line}
.label-to__postal{font-size:20px;font-weight:700}
.label-from,.label-items{border-block-start:1px solid var(--border-strong);padding-block-start:var(--s3);font-size:var(--fs-sm)}
.label-code{font-size:var(--fs-xs);color:var(--text-2)}
@media print{
  @page{margin:12mm}
  .label-sheet{border-color:#000;border-radius:0;padding:8mm;color:#000}
  .label-to__name{font-size:30pt}.label-to__mobile{font-size:24pt}.label-to__address{font-size:22pt}.label-to__postal{font-size:18pt}
  .label-from,.label-items{border-color:#000;font-size:11pt}.label-code,.label-cap{color:#000}
}
/* ---- b78n ---- */
/* The buyer's status and receipt pages (design plan wave 2, item 11). Additive only: no existing
   rule is changed. The status page opens with ONE state chip and a two-step track that mirrors the
   shop's dispatch record; the receipt is one card whose sections are told apart by dividers. */
.state-chip{display:inline-flex;align-items:center;gap:var(--s2);align-self:flex-start;margin:0 0 var(--s3);
  padding:6px 14px;border-radius:var(--radius-pill);font-size:var(--fs-base);font-weight:700}
.state-chip .icon{inline-size:18px;block-size:18px;flex:none}
.state-chip--wait{background:var(--primary-tint);color:var(--primary-700)}
.state-chip--ok{background:var(--success-tint);color:var(--success-deep)}
.state-chip--warn{background:var(--warning-tint);color:var(--warning-deep)}
/* S3 (redesign): the buyer's payment timeline «پردا پرداخت شما را دنبال می‌کند». The b78n
   two-step track grew into the payment's four steps and stands vertical: a long Persian label
   wraps under its own dot at 390 px instead of squeezing four columns. The states keep their
   meaning -- green is done, violet is the step in progress -- and `.is-live` marks the one step
   an automation of ours genuinely runs on (the pending page's gateway match; motion.css pulses
   it), so no dot ever pulses for the seller's own work. */
.status-track{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s4)}
.status-track li{display:flex;align-items:flex-start;gap:var(--s3);position:relative;
  font-size:var(--fs-sm);color:var(--text-2);line-height:1.6;text-align:start}
.status-track li+li::before{content:"";position:absolute;inset-block-start:calc(-1 * var(--s4));
  inset-inline-start:15px;inline-size:2px;block-size:var(--s4);background:var(--border-strong)}
.status-track li.is-done+li::before{background:var(--progress)}
.status-track__dot{position:relative;z-index:1;flex:none;inline-size:32px;block-size:32px;border-radius:50%;
  display:grid;place-items:center;background:var(--surface-well);color:var(--text-2)}
.status-track__dot .icon{inline-size:18px;block-size:18px}
.status-track li.is-done{color:var(--progress-ink);font-weight:700}
.status-track li.is-done .status-track__dot{background:var(--progress);color:var(--on-primary)}
.status-track li.is-now{color:var(--primary-700);font-weight:700}
.status-track li.is-now .status-track__dot{background:var(--primary-tint);color:var(--primary-700)}
.notice-card .status-track{align-self:stretch;margin-block-start:var(--s1)}
.receipt-card .lines{margin:0}
.receipt-total{margin-block-start:var(--s3);padding-block-start:var(--s3);border-block-start:1px solid var(--border);
  font-weight:700}
/* ---- DSA-2 ---- the paid done page's illustration: centred, never wider than its slot. */
.done-art{display:block;margin:0 auto;inline-size:96px;block-size:auto;max-inline-size:100%}
/* ---- R2 ---- the paid page's «بعدش چه می‌شود؟» lines sit a little apart, in body ink; the dead
   link and not-found pages open with the buyer hero art in a quiet top band, on the page's own
   background as a rounded tile (its field carries a pale light-beam), decorative, above the card. */
.next-steps{gap:var(--s3)}
.next-steps .fact-line{color:var(--text);font-size:var(--fs-sm);align-items:flex-start;line-height:1.7}
.next-steps .fact-line .icon{color:var(--primary);margin-block-start:var(--s1);flex:none}
.end-art{display:block;margin:var(--s2) auto 0;inline-size:120px;block-size:auto;max-inline-size:70%;
  border-radius:var(--radius-lg)}

/* ---- DSA-5 ---- the one-page «ارسال و پرداخت»: calm line items, ONE emphasised total, the
   consent line inside the dock. Scoped to .onepage so the flag-off page is untouched. */
.onepage .money-row{color:var(--text-2)}
.onepage .money-row .amount{font-weight:600;font-size:var(--fs-base);color:var(--text)}
.onepage .divider+.money-row{color:var(--text);font-weight:700}
.onepage .divider+.money-row .amount{font-weight:800;font-size:var(--fs-title)}
.onepage .ship-head strong{color:var(--text)}
.onepage .cta-terms{margin:0;text-align:center}
/* ---- R1 ---- the one-page screen, Direction A: the seller as a quiet pill, the order folded into
   one line (a plain <details>, no script), the ship-to as a compact row, the dock's CTA with its
   total beside it (visually left in RTL). Scoped to .onepage; the flag-off page is untouched. */
.seller-chip{display:inline-flex;align-items:center;gap:var(--s2);align-self:flex-start;
  padding:var(--s1) var(--s1) var(--s1) var(--s3);background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-pill);font-size:var(--fs-sm);font-weight:600;color:var(--text);max-inline-size:100%}
.seller-chip>span:last-child{overflow-wrap:anywhere}
.seller-chip .avatar{inline-size:28px;block-size:28px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:var(--primary-soft);color:var(--primary-strong);font-size:var(--fs-sm);font-weight:700}
.order-sum{display:block;padding-block:var(--s1)}
.order-sum>.order-sum__bar{display:flex;align-items:center;gap:var(--s2);min-height:var(--h-btn)}
.order-sum__label{display:inline-flex;align-items:center;gap:var(--s2);font-weight:600;color:var(--text)}
.order-sum__label>.icon:first-child{color:var(--text-2)}
.order-sum .disclose__chev{margin-inline-start:0;color:var(--text-2)}
.order-sum__total{margin-inline-start:auto;font-weight:800;font-size:var(--fs-title);color:var(--text);white-space:nowrap}
.order-sum__body{display:flex;flex-direction:column;gap:var(--s2);
  border-block-start:1px solid var(--border);padding-block:var(--s3) var(--s2);margin-block-start:var(--s1)}
.order-sum__body .divider{margin:var(--s2) 0}
.onepage .card:has(.ship-head){gap:var(--s1);padding-block:var(--s2) var(--s3)}
.onepage .card:has(.ship-head) .ship-line{font-size:var(--fs-sm);line-height:1.8}
.onepage .card:has(.ship-head) .btn-sm{margin-block:calc(-1 * var(--s2))}   /* 44px target, a tight row */
.onepage .pay-method .sect-title{font-size:var(--fs-base);color:var(--text);margin:0}
.onepage .pay-method{gap:var(--s2)}
.dock-pay{display:flex;align-items:center;gap:var(--s3)}
.dock-pay>.sticky-cta{flex:1;min-inline-size:0}
.dock-total{display:flex;flex-direction:column;align-items:flex-end;flex:none;margin:0;line-height:1.4}
.dock-total__label{font-size:var(--fs-xs);color:var(--text-2)}
.dock-total__amount{font-size:var(--fs-title);font-weight:800;color:var(--text);white-space:nowrap}
.onepage .cta-dock .trust{margin:0}
.onepage>.trust{margin-block-start:var(--s2)}

/* ---- DS1 ---- */
/* The dashboard as «what پردا did for you today» (redesign S1). Additive only: the existing
   cards keep their rules. The chip states the automation's real state (violet while it runs,
   the one warning-yellow while the breaker pauses it), the summary counts the day's recorded
   work, and the feed lists it -- a row only where its record is. */
.agent-head{display:flex;flex-direction:column;gap:var(--s3)}
.agent-chip{display:inline-flex;align-items:center;gap:var(--s2);align-self:flex-start;margin:0;
  padding:6px 14px;border-radius:var(--radius-pill);font-size:var(--fs-sm);font-weight:700;
  background:var(--primary-tint);color:var(--primary-700)}
.agent-chip--paused{background:var(--warning-tint);color:var(--warning-deep)}
a.agent-chip{text-decoration:none;min-block-size:44px}
.agent-chip__dot{inline-size:8px;block-size:8px;border-radius:50%;background:var(--primary);flex:none}
.agent-today__counts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s2)}
.agent-today__counts li,.agent-today__await{display:flex;align-items:center;gap:var(--s3);
  font-weight:600;font-size:var(--fs-base)}
.agent-today__counts .icon,.agent-today__await .icon{color:var(--primary-700);flex:none}
.agent-today__await{margin:0;border-block-start:1px solid var(--border);padding-block-start:var(--s3)}
.agent-today__zero,.agent-today__extra{margin:0}
.agent-today__extra{display:flex;align-items:center;gap:var(--s2)}
.agent-today__extra .icon{color:var(--primary-700);flex:none}
.agent-feed{gap:var(--s2)}
.agent-feed__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.agent-feed__row{display:flex;gap:var(--s3);padding-block:var(--s3)}
.agent-feed__row+.agent-feed__row,.agent-feed__more .agent-feed__row+.agent-feed__row{
  border-block-start:1px solid var(--border)}
.agent-feed__lead{width:36px;height:36px;border-radius:50%;background:var(--primary-soft);
  color:var(--primary-strong);display:grid;place-items:center;flex:none}
.agent-feed__lead .icon{width:20px;height:20px}
.agent-feed__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.agent-feed__verb{margin:0;font-weight:600;overflow-wrap:anywhere}
.agent-feed__time{margin:0;font-size:var(--fs-sm);color:var(--text-2)}
.agent-feed__why{margin:0}
.agent-feed__why summary{list-style:none;cursor:pointer;color:var(--primary-strong);
  font-size:var(--fs-sm);min-height:36px;display:inline-flex;align-items:center}
.agent-feed__why summary::-webkit-details-marker{display:none}
.agent-feed__why p{margin:0;font-size:var(--fs-sm);color:var(--text-2)}
.agent-feed__more{margin:0}
.agent-feed__more>summary{list-style:none;cursor:pointer;color:var(--primary-strong);font-weight:700;
  min-height:44px;display:flex;align-items:center;justify-content:center;
  border-block-start:1px solid var(--border)}
.agent-feed__more>summary::-webkit-details-marker{display:none}
.agent-feed__more[open]>summary{margin-block-end:var(--s2)}
.agent-feed__note{margin:0;border-block-start:1px solid var(--border);padding-block-start:var(--s3)}

/* DSA-3: the compact «امروز» strip and the folded log of «کارهای اخیر پردا». */
.agent-strip{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s2);margin:0;color:var(--text)}
.agent-strip .stat-num{font-weight:800;font-variant-numeric:tabular-nums}
details.agent-feed>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:var(--s2)}
details.agent-feed>summary::-webkit-details-marker{display:none}
details.agent-feed>summary::after{content:"";margin-inline-start:auto;inline-size:8px;block-size:8px;
  border-inline-end:2px solid var(--faint);border-block-end:2px solid var(--faint);transform:rotate(45deg)}
details.agent-feed[open]>summary::after{transform:rotate(-135deg)}
details.agent-feed>summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:var(--radius-sm)}

/* ---- DSA-7 ---- «پاسخ‌های خودکار»: when ... then ... rule cards (read only). */
.rule-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--s3)}
.rule-card{border:1px solid var(--border);border-radius:var(--radius);padding:var(--s3);background:var(--surface)}
.rule-card__head{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);margin:0;font-weight:700}
.rule-card__then{display:flex;align-items:center;gap:var(--s2);margin:var(--s2) 0 0;color:var(--text-2)}
.rule-card__arrow{transform:scaleX(-1);color:var(--progress);flex:none}

/* ---- IG post binding S4 ---- */
/* «تطبیق خودکار»: the suggested product under each post -- its own photo beside the title, so the
   seller compares the two pictures before ticking */
.match-product{display:flex;gap:8px;align-items:center}
.match-product img{width:44px;height:44px;border-radius:var(--radius-sm);object-fit:cover;flex:none}

/* ---- IGB board (B0-B2): a post beside its product, tap the post then the product ---- */
.board-how{margin:0;color:var(--text-2);font-size:var(--fs-sm)}
.board{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s2)}
.pair{background:var(--surface);border:1px solid var(--border);border-radius:12px;scroll-margin-top:12px;display:flex;flex-direction:column}
.pair--armed{border:2px solid var(--primary-strong);background:var(--primary-soft)}
.pair__link{display:grid;grid-template-columns:minmax(0,160px) 24px minmax(0,1fr);align-items:center;min-height:72px;padding:8px;color:inherit;text-decoration:none}
.pair__post{display:flex;gap:8px;align-items:center;min-width:0}
.pair__post img,.pair__none{width:56px;height:56px;border-radius:8px;object-fit:cover;flex:none;background:var(--surface-well);display:inline-flex;align-items:center;justify-content:center;color:var(--text-2)}
.pair__title,.pair__name,.chip__name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--fs-sm)}
.pair__line{height:2px;align-self:center}
.pair--bound .pair__line{background:var(--primary)}
.pair--hint .pair__line{border-top:2px dashed var(--faint)}
.pair__slot{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;min-width:0}
.pair__slot img{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:none}
.pair--hint .pair__slot img,.pair--hint .pair__name{opacity:.7}
.pair--empty .pair__slot{border:1.5px dashed var(--border);border-radius:8px;min-height:44px;justify-content:center}
.pair__choose{color:var(--primary-strong);font-weight:700;font-size:var(--fs-sm)}
.pair__change{color:var(--primary-strong);font-size:var(--fs-xs)}
.pair__yes{padding:0 8px 8px;display:flex;justify-content:flex-end}
.tray-row{list-style:none}
.tray{background:var(--surface);border:1px solid var(--primary-strong);border-radius:12px;padding:var(--s3);display:flex;flex-direction:column;gap:var(--s2)}
.tray h2{font-size:1rem;margin:0}
.tray h2:focus{outline:none}
.tray__status{margin:0;color:var(--text-2);font-size:var(--fs-sm)}
.tray__saved{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);background:var(--success-tint);color:var(--success-deep);border-radius:8px;padding:6px 10px;font-size:var(--fs-sm)}
.tray__search{display:flex;flex-direction:row;align-items:center;gap:var(--s2)}
.tray__search input{flex:1;min-width:0;min-height:44px}
.tray__search button{flex:none;width:auto}
.tray__chips{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chip{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;min-height:112px;padding:6px;border:1px solid var(--border);border-radius:8px;background:var(--surface);text-align:start;font:inherit;color:inherit;cursor:pointer}
.chip img,.chip__none{width:56px;height:56px;border-radius:8px;object-fit:cover;background:var(--surface-well);display:inline-flex;align-items:center;justify-content:center;color:var(--text-2)}
.chip--current{border:2px solid var(--success-deep)}
.chip__pill{position:absolute;inset-block-start:4px;inset-inline-end:4px}
.chip__price{font-size:var(--fs-xs);color:var(--text-2)}
.tray__links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--s2);margin:0}
.board-dock{background:var(--surface);padding-block:var(--s2)}
.board-dock__progress{display:flex;flex-direction:column;gap:4px;margin:0;font-size:var(--fs-sm)}
.board-dock__progress progress{width:100%;height:6px;accent-color:var(--primary)}
.board-dock__done{margin:0;color:var(--success-deep);font-weight:700}
main:has(.tray input:focus) .board-dock{position:static}

/* ---- UI-X-A ---- */
/* One shared language for the buyer and seller pages (design plan wave 2, item 8). Colour means one
   thing: red an error, yellow a warning, green a success, violet progress and selection. The rules
   that restyle [role="alert"], .icon-circle--warn and the step bar sit where those rules always
   were; this block holds what is new.

   THE SWITCH: one component for every on/off. A <label> around a real checkbox (the variations
   switch, no script), a <button> that POSTs (the credit line, the auto-reply: aria-checked), an <a>
   that opens the Instagram sign-in, or a disabled <div>. The title and its state sit at the start,
   the track at the end; the knob rests at the inline start when off and slides to the end when on,
   the track turning violet. An auto-reply that is PAUSED is not "on": its button says
   aria-checked="false", so the track stays neutral while the state line says «متوقف». */
.switch,label.switch:has(input[type="checkbox"]){display:flex;align-items:center;justify-content:flex-start;
  gap:var(--s3);inline-size:100%;min-height:var(--h-row);padding:var(--s2) 0;border:0;border-radius:0;
  background:transparent;color:var(--text);font:inherit;font-weight:400;text-align:start;
  text-decoration:none;cursor:pointer;position:relative}
.switch__text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.switch__title{font-size:var(--fs-base);font-weight:600}
.switch__state{font-size:var(--fs-sm);color:var(--text-2)}
.switch__input{position:absolute;inline-size:1px;block-size:1px;opacity:0}
.switch__track{flex:none;position:relative;display:block;inline-size:52px;block-size:32px;
  border-radius:var(--radius-pill);background:var(--border-strong);
  transition:background-color var(--dur-2) var(--ease-out)}
.switch__track::after{content:"";position:absolute;inset-block-start:3px;inset-inline-start:3px;
  inline-size:26px;block-size:26px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);
  transition:inset-inline-start var(--dur-2) var(--ease-out)}
.switch[aria-checked="true"] .switch__track,.switch__input:checked+.switch__track{background:var(--primary)}
.switch[aria-checked="true"] .switch__track::after,.switch__input:checked+.switch__track::after{inset-inline-start:23px}
.switch:is([disabled],[aria-disabled="true"]){cursor:not-allowed}
.switch:is([disabled],[aria-disabled="true"]) .switch__text{color:var(--text-2)}
.switch:is([disabled],[aria-disabled="true"]) .switch__track,.switch__input:disabled+.switch__track{opacity:.5}
.switch:focus-visible{outline:2px solid var(--primary-strong);outline-offset:2px;border-radius:var(--radius-sm)}
.switch__input:focus-visible+.switch__track{outline:2px solid var(--primary-strong);outline-offset:2px}
/* the confirm step's first line, as the admin's «مطمئنید؟» (AD-2b) */
.confirm-line{margin:0;font-weight:700;color:var(--text)}

/* ---- SALES r1 + DSA-6 ---- the seller's sales: period and state chips, a totals card, then one
   card row per sale (no table -- nothing scrolls sideways at 390 px); figures stay tabular. */
.sales-chips{margin-block-end:var(--s3)}
.sales-chips .chip-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.sales-chips .filter-chip{flex:none}
.sales-custom{margin-block-end:var(--s4)}
.sales-custom>summary{cursor:pointer;color:var(--primary-strong);font-weight:700;font-size:var(--fs-sm);
     min-block-size:32px;display:flex;align-items:center}
.sales-custom>summary::after{content:"▾";margin-inline-start:6px}
.sales-custom[open]>summary::after{content:"▴"}
.sales-filters{display:flex;flex-wrap:wrap;gap:var(--s3);align-items:end;margin-block-start:var(--s3)}
.sales-totals{display:grid;grid-template-columns:1fr auto;gap:var(--s2) var(--s4);align-items:end}
.sales-totals__figure strong{display:block;font-size:var(--fs-figure);font-weight:800;
     font-variant-numeric:tabular-nums}
.sales-totals__figure small{font-size:var(--fs-sm);font-weight:600;color:var(--text-2)}
.sales-totals__count{text-align:end}
.sales-totals__count strong{display:block}
.sales-totals>.caption,.sales-totals>.btn-secondary{grid-column:1/-1;justify-self:start}
.sale-list{list-style:none;margin:var(--s4) 0;padding:0;display:grid;gap:var(--s2)}
.sale-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
     padding:var(--s3);display:grid;gap:6px}
.sale-row__head{display:flex;justify-content:space-between;gap:var(--s3);align-items:baseline}
.sale-row__title{font-weight:700;overflow-wrap:anywhere}
.sale-row__amount{font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.sale-row__meta,.sale-row__foot{display:flex;flex-wrap:wrap;gap:4px var(--s3);align-items:center;
     font-size:var(--fs-sm);color:var(--text-2)}

/* ---- DSA-5 ---- the landing's hero art: words above, the illustration cropped to the seller
   figure on a phone (the art's empty half is for a wide screen's overlay), full on a wide one. */
.hero-eyebrow{color:var(--primary-strong);font-weight:700;font-size:var(--fs-sm);margin:0 0 var(--s1)}
.hero-art{display:block;inline-size:100%;block-size:auto;aspect-ratio:4/3;object-fit:cover;
     object-position:22% 50%;border-radius:var(--radius-lg);background:#F3F4F6;margin-block:var(--s3)}
@media (min-width:720px){.hero-art{aspect-ratio:auto;object-fit:contain}}

/* ---- SELLER-LANDING-VIDEOS ---- the landing's card of the ONE seller guide video: a portrait
   player, tap-to-load (the small poster is all the page fetches; the video only on a tap). */
.svid__item{margin:0}
.svid__player{display:block;width:100%;max-width:360px;aspect-ratio:9/16;max-height:70vh;margin:0 auto;background:#000;border-radius:12px}

/* ---- R4 ---- the wallet's money timeline (Direction A with B's receipt rows): five rows at most,
   one plain state each; the check mark only for a credit the seller's own ledger showed. */
.money-timeline__rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.money-timeline__row{display:flex;align-items:center;gap:var(--s3);padding-block:var(--s3);
  border-block-start:1px solid var(--border)}
.money-timeline__row:first-child{border-block-start:0}
.money-timeline__mark{inline-size:24px;block-size:24px;border-radius:50%;flex:none;display:grid;
  place-items:center;border:2px solid var(--border)}
.money-timeline__mark--done{border-color:transparent;background:var(--primary-tint);color:var(--primary-700)}
.money-timeline__mark .icon{inline-size:14px;block-size:14px}
.money-timeline__text{display:flex;flex-direction:column;gap:2px;flex:1;min-inline-size:0}
.money-timeline__state{font-weight:600}
.money-timeline__meta{display:flex;flex-wrap:wrap;column-gap:var(--s3)}
.money-timeline__art{display:block;margin-inline:auto;inline-size:120px;block-size:120px}

/* ---- R7 ---- the seller sign-in pages carry the brand lockup (mark + wordmark), not bare text. */
.signin-brand{margin:0}
.signin-brand__link{display:inline-flex;text-decoration:none}
/* ---- R5 ---- the seller lists: the orders empty state opens with the «Seller orders» art, the
   one size the wallet's art keeps; a card with no photo puts its title in body ink on the quiet
   well (the dark scrim is for a photo only); the Instagram gallery's filters are the products
   page's border-only chips, kept on one scrolling line. */
.empty-art{display:block;margin-inline:auto;inline-size:120px;block-size:120px;border-radius:var(--radius-lg)}
.pcard__media:not(:has(img)) .pcard__title{background:none;color:var(--text);padding-block-start:var(--s2)}
.empty-state .icon-circle{background:var(--primary-tint);color:var(--primary-700)}
.ig-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-block-end:2px}
.ig-filters .filter-chip{flex:none;min-height:36px;padding-inline:var(--s2)}
/* the Instagram pack: the in-app note sits on a card, not the page's own well; the code beside a
   product's name is the quiet part of its heading. */
.ig-pack .banner--info{background:var(--surface)}
.ig-pack h2 .code{font-size:var(--fs-sm);font-weight:400;color:var(--text-2)}

/* ---- R9 ---- the design-system pass: the Badge, the money breakdown, the Banner's tone edge,
   the critical button and the letter thumb. Additive: the older .status/.state-chip pills keep
   their rules for the pages this slice does not touch. Colours are the tokens' badge aliases. */
.badge{display:inline-flex;align-items:center;gap:var(--s1);block-size:24px;padding-inline:var(--s2);
  border-radius:var(--radius);font-size:var(--fs-xs);font-weight:500;line-height:1;white-space:nowrap;
  background:var(--badge-neutral-bg);color:var(--badge-neutral-fg)}
.badge--info{background:var(--badge-info-bg);color:var(--badge-info-fg)}
.badge--success{background:var(--badge-success-bg);color:var(--badge-success-fg)}
.badge--warning{background:var(--badge-warning-bg);color:var(--badge-warning-fg)}
.badge--critical{background:var(--badge-critical-bg);color:var(--badge-critical-fg)}
.row-link__text .badge{align-self:flex-start}
/* the buyer status page's one headline chip speaks the same five tones, at its own size */
.state-chip--neutral{background:var(--badge-neutral-bg);color:var(--badge-neutral-fg)}
.state-chip--info{background:var(--badge-info-bg);color:var(--badge-info-fg)}
.state-chip--success{background:var(--badge-success-bg);color:var(--badge-success-fg)}
.state-chip--warning{background:var(--badge-warning-bg);color:var(--badge-warning-fg)}
.state-chip--critical{background:var(--badge-critical-bg);color:var(--badge-critical-fg)}

/* MoneyBreakdown: label at the start, the figure at the end, «تومان» small and grey after it;
   a 1px rule before the one bold total. */
.mb-unit{font-size:var(--fs-xs);font-weight:400;color:var(--text-2)}
.amount:has(>.mb-num){font-size:var(--fs-base);font-weight:600}   /* a line, not a headline */
.receipt-total .amount:has(>.mb-num){font-size:var(--fs-title);font-weight:800}
.money-breakdown{display:flex;flex-direction:column;gap:var(--s2)}
.money-breakdown .money-row{font-size:var(--fs-sm)}
.money-breakdown .money-row .amount{font-size:var(--fs-sm);font-weight:600;color:var(--text)}
.money-breakdown .mb-total{border-block-start:1px solid var(--border);padding-block-start:var(--s3);
  margin-block-start:var(--s1);font-size:var(--fs-base);font-weight:700;color:var(--text)}
.money-breakdown .mb-total .amount{font-size:var(--fs-base);font-weight:800}
.money-breakdown .divider{display:none}   /* the total's own rule replaces it */
.sales-totals__figure small{font-size:var(--fs-xs);font-weight:400}

/* Banner: the tone is a 4px start edge and the icon; the body stays on its light tint */
.banner:not(.inapp-banner){border-inline-start:4px solid var(--border-strong)}
.banner .icon{flex:none;margin-block-start:2px}
.banner.banner--info{border-inline-start-color:var(--primary)}
.banner--info .icon{color:var(--primary-strong)}
.banner.banner--warn{border-inline-start-color:var(--warning)}
.banner.banner--success{border-inline-start-color:var(--success)}
.banner.banner--critical,.banner.banner--error,.banner[role="alert"]:not(.banner--warn,.banner--info,.banner--success){
  background:var(--danger-tint);color:var(--danger-deep);border-inline-start-color:var(--danger)}

/* the critical button: a destructive action is red-filled, never the violet primary */
.btn-critical{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);
  min-height:var(--h-btn);padding:0 var(--s4);border-radius:var(--radius);font:inherit;
  font-size:var(--fs-base);font-weight:700;text-decoration:none;cursor:pointer;
  background:var(--danger);color:var(--on-danger);border:1px solid var(--danger)}
.btn-critical:hover{background:var(--danger-deep);border-color:var(--danger-deep)}
.btn-critical:focus-visible{outline:2px solid var(--danger-deep);outline-offset:2px}

/* Thumb: a rounded square at 40/48/56; with no photo, a tint and the product's first letter */
.thumb{inline-size:48px;block-size:48px;flex:none;border-radius:var(--radius-sm);object-fit:cover;
  background:var(--surface-well)}
.thumb--40{inline-size:40px;block-size:40px}
.thumb--56{inline-size:56px;block-size:56px;border-radius:var(--radius)}
.thumb--letter{display:grid;place-items:center;background:var(--primary-soft);color:var(--primary-strong);
  font-size:var(--fs-title);font-weight:800;line-height:1}
.thumb--40.thumb--letter{font-size:var(--fs-base)}
.thumb--56.thumb--letter{font-size:var(--fs-h1)}
/* the products grid's no-photo square is the same letter thumb, at the card's size */
.pcard__media:not(:has(img)){background:var(--primary-soft)}
.pcard__letter{font-size:40px;font-weight:800;line-height:1;color:var(--primary-strong)}

/* ================= R10 (2026-10-13) -- the buyer trust shell. The shop leads the bar (avatar and
   display name; «سؤال دارید؟» only with the shop's own Instagram handle), Parda signs the footer,
   and at 960px and up the step becomes two columns -- the form ~560px on the reading side, the
   summary ~380px beside it and sticky -- with the dock back in the flow instead of a bottom bar.
   Every rule hangs off .buyer-bar--shop, .buyer-foot, .buyer-shell or .step-eyebrow, which only
   the shell's pages render: a page without them (the flag-off steps) is untouched. Pure CSS. ===== */
.buyer-bar--shop{display:block;place-items:normal}   /* the base bar centres its one child; this one spans */
.buyer-bar__in{max-width:var(--frame);margin:0 auto;min-height:56px;display:flex;align-items:center;
  gap:var(--s3);padding:var(--s1) var(--s4)}
.shop-id{display:flex;align-items:center;gap:var(--s2);margin:0;min-width:0;font-size:var(--fs-base);color:var(--text)}
.shop-id strong{font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-id .avatar{inline-size:32px;block-size:32px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:var(--primary-soft);color:var(--primary-strong);font-size:var(--fs-sm);font-weight:800;line-height:1}
.shop-ask{margin-inline-start:auto;flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;
  font-size:var(--fs-sm);font-weight:600;color:var(--primary-strong);text-decoration:none;white-space:nowrap}
.shop-ask .icon{width:18px;height:18px}
.shop-ask:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:var(--radius-sm)}
.buyer-foot{max-width:var(--frame);margin:0 auto;padding:var(--s4) var(--s4) var(--s5)}
.buyer-foot__line{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:0;
  font-size:var(--fs-xs);color:var(--text-2)}
.buyer-foot__line>.icon{width:14px;height:14px;color:var(--ok-text)}
.buyer-foot .brand{gap:4px}
.buyer-foot .brand .wordmark{font-size:var(--fs-xs);font-weight:800}
.buyer-foot a{color:var(--text-2)}
/* the sign-in is a section of step 2: its step's name, small, above the heading */
.step-eyebrow{margin:0;font-size:var(--fs-xs);font-weight:700;color:var(--primary-strong)}
@media (min-width:960px){
  .buyer-shell--split{max-width:calc(560px + 380px + var(--s6) + 2 * var(--s4));display:grid;
    grid-template-columns:560px 380px;column-gap:var(--s6);row-gap:0;justify-content:center;align-items:start}
  .buyer-shell--split>*{grid-column:1;margin-block:0 var(--s3)}
  /* the summary: the folded order (opened -- it is the page's whole money story) or the photo */
  .buyer-shell--split>:is(.order-sum,.product-photo,.product-nophoto){grid-column:2;grid-row:1 / span 40;
    position:sticky;top:var(--s4)}
  .buyer-shell--split>.order-sum::details-content{content-visibility:visible}
  .buyer-shell--split>.order-sum>summary{pointer-events:none}
  .buyer-shell--split>.order-sum :is(.disclose__chev,.order-sum__total){display:none}   /* open: its total row says it */
  .buyer-shell--split>.product-photo{border-radius:var(--radius-lg)}
  /* no bottom bar on a desktop: the dock sits at the form's end, and beside a summary card that
     already shows the total the dock does not repeat it */
  .buyer-shell .cta-dock{position:static;max-width:none;margin-inline:0;padding:var(--s2) 0 0;background:none;border:0}
  .buyer-shell .cta-dock .sticky-cta{max-width:none}
  .buyer-shell--split:has(>.order-sum) .dock-total{display:none}
  /* DESK-CTA (2026-11-15): the shop shelf stands above the dock in the page (SHELF-FIX: on a phone
     the dock is the sticky bar), but on a desktop the dock is static at the form's end -- so the
     shelf goes after it, and the price and the buy button stay in the first screen */
  .buyer-shell--split>#shop-shelf{order:1}
  body:has(.buyer-shell--split) :is(.buyer-bar__in,.buyer-foot){max-width:calc(560px + 380px + var(--s6) + 2 * var(--s4))}
}

/* ================= R11 (2026-10-13) -- the buyer after the payment. The paid page and «پیگیری
   سفارش» share one order card (thumb rows; the paid page adds «مبلغ پرداخت‌شده» as the card's one
   bold figure), the paid page lays its four facts out 2x2, a refund in flight is the timeline's
   warning step, and the follow-up under the dispatch card is a line, not a second banner. Every
   rule hangs off a class only these pages render. ===== */
.done-head{gap:var(--s1);padding-block-start:var(--s1)}
.done-head h1.done-title{font-size:var(--fs-h1);line-height:1.5}
.item-rows{list-style:none;margin:var(--s3) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--s3)}
.item-row{display:flex;align-items:center;gap:var(--s3);min-width:0}
.item-row__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.item-row__title{font-size:var(--fs-sm);font-weight:700;color:var(--text);overflow-wrap:anywhere}
.item-row__meta{font-size:var(--fs-xs);color:var(--text-2)}
.item-rows__paid{margin-block-start:var(--s3);padding-block-start:var(--s3);border-block-start:1px solid var(--border);
  font-size:var(--fs-sm);font-weight:700;color:var(--text)}
.item-rows__paid .amount:has(>.mb-num){font-size:var(--fs-title);font-weight:800}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s3) var(--s4)}
.info-cell{margin:0;display:flex;flex-direction:column;gap:2px;min-width:0;font-size:var(--fs-sm);font-weight:600;
  color:var(--text);overflow-wrap:anywhere}
.info-cell .text-2{font-size:var(--fs-xs);font-weight:400}
.info-cell__sub{font-weight:400;color:var(--text-2)}
.done-order .money-row:first-child .amount{font-size:var(--fs-base)}
.done-order .item-rows{margin-block-start:var(--s1)}
.done-head+.done-order{margin-block-start:var(--s1)}
.next-steps h2{font-size:var(--fs-base);margin:0}
.next-steps .fact-line{line-height:1.6}
.status-items .item-rows{margin-block-start:var(--s4)}
.status-track li.is-warn{color:var(--attention-text);font-weight:700}
.status-track li.is-warn .status-track__dot{background:var(--badge-warning-bg);color:var(--badge-warning-fg)}
.follow-line{color:var(--text);font-size:var(--fs-sm);align-items:flex-start;line-height:1.7}
.follow-line .icon{color:var(--primary);margin-block-start:var(--s1);flex:none}

/* ---- R12 ---- the seller's work surfaces (Shopify comparison G4/G6/G9): list tabs as plain links,
   one white list per group with a 1px rule between rows (no accent edge), the order row, the
   product row with its one-tap buy-link copy, the order page's header/cards/timeline, and the
   product form's section cards. Tokens only; no script beyond ui.js's existing copy attributes. */
.ltabs{display:flex;gap:var(--s1);border-block-end:1px solid var(--border-strong);overflow-x:auto;scrollbar-width:none}
.ltabs a{flex:none;display:inline-flex;align-items:center;min-height:44px;padding-inline:var(--s3);margin-block-end:-1px;
  border-block-end:2px solid transparent;color:var(--text-2);font-size:var(--fs-sm);font-weight:600;text-decoration:none}
.ltabs a[aria-current="page"]{color:var(--primary-strong);border-block-end-color:var(--primary);font-weight:700}
.ltabs a:focus-visible{outline:2px solid var(--primary-strong);outline-offset:-2px}
.tab-empty{padding-block:var(--s5);text-align:center}
.wlist{list-style:none;margin:0;padding:0;background:var(--surface);border-radius:var(--radius);overflow:hidden}
.wlist>li+li{border-block-start:1px solid var(--border)}
.orow,.prow__link{display:flex;align-items:center;gap:var(--s3);padding:var(--s3) var(--s4);color:inherit;text-decoration:none;min-height:var(--h-row)}
.orow:focus-visible,.prow__link:focus-visible{outline:2px solid var(--primary-strong);outline-offset:-2px}
.orow__body,.prow__body{flex:1;min-inline-size:0;display:flex;flex-direction:column;gap:2px}
.orow__top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--s2)}
.orow__title,.prow__title{font-size:15px;font-weight:700;color:var(--text);overflow-wrap:anywhere}
.orow__amount{flex:none;white-space:nowrap;font-weight:700;color:var(--text)}
.orow__who{font-size:var(--fs-sm);color:var(--text-2)}
.orow__foot,.prow__meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s1) var(--s2);margin-block-start:var(--s1)}
.orow__age{font-size:var(--fs-xs);color:var(--text-2)}
.orow__age--late{color:var(--critical-text);font-weight:700}
.prow__price{font-size:var(--fs-sm);font-weight:600;color:var(--text)}
.prow__meta{font-size:var(--fs-xs);color:var(--text-2)}
/* LC75: the row's «choose a category» line sits under it, inset like the share row. */
.prow__note{padding:0 var(--s4) var(--s3)}
.prow__note .banner{margin:0}
.prow__share{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);padding:0 var(--s4) var(--s3)}
.prow__url{flex:1 1 120px;min-inline-size:0;min-height:36px;block-size:36px;padding-block:0;font-size:var(--fs-xs);
  color:var(--text-2);background:var(--surface-well);border-color:transparent;text-overflow:ellipsis}
.prow__copy .btn-sm{min-height:36px}
.prow__copy .copy-status:empty{display:none}
html:not(.js) .prow__copy{display:none}
.plist{margin-block-end:88px}   /* the floating «افزودن محصول» never covers the last row */
.sort-menu{align-self:flex-start;position:relative}
.sort-menu>summary{display:inline-flex;align-items:center;min-height:44px;color:var(--text-2);font-size:var(--fs-sm);cursor:pointer}
.sort-menu>summary::after{content:"▾";margin-inline-start:var(--s1)}
.sort-menu__panel{position:absolute;inset-inline-start:0;z-index:5;min-inline-size:180px;background:var(--surface);
  border-radius:var(--radius-sm);box-shadow:var(--shadow-2);padding:var(--s1);display:flex;flex-direction:column}
.sort-menu__panel a{display:flex;align-items:center;min-height:44px;padding-inline:var(--s3);border-radius:var(--radius-sm);
  color:var(--text);text-decoration:none;font-size:var(--fs-sm)}
.sort-menu__panel a[aria-current="true"]{background:var(--primary-soft);color:var(--primary-strong);font-weight:700}
.od-head{display:flex;flex-direction:column;gap:var(--s1)}
.od-head__title{display:flex;align-items:center;justify-content:space-between;gap:var(--s2)}
.od-head__title h1 .code{font-size:inherit}
.od-head__meta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);margin:0;color:var(--text-2);font-size:var(--fs-sm)}
.od-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--s3)}
.od-item{display:flex;align-items:center;gap:var(--s3)}
.od-item__text{display:flex;flex-direction:column;gap:2px;min-inline-size:0}
.od-item__title{font-size:var(--fs-base);font-weight:700;overflow-wrap:anywhere}
.od-item__model{font-size:var(--fs-sm);color:var(--text-2);overflow-wrap:anywhere}
.od-facts{display:flex;flex-direction:column;gap:var(--s1);font-size:var(--fs-sm)}
.od-form{display:flex;flex-direction:column;gap:var(--s2);border-block-start:1px solid var(--border);padding-block-start:var(--s3)}
.od-cancel{text-align:center}
.od-to h2{display:flex;align-items:center;gap:var(--s1);margin:0}
.od-to h2 .icon{inline-size:18px;block-size:18px;color:var(--text-2)}
.tl-date{color:var(--text-2);font-weight:400;font-size:var(--fs-sm)}
.pe-sect,.pe-models{gap:var(--s3)}
.pe-sect__title{font-size:15px;font-weight:700;margin:0;color:var(--text)}
.pe-sect__title label{font-size:inherit;font-weight:inherit}
.insights{max-width:72rem;margin-inline:auto}
.insights__tiles{list-style:none;padding:0;display:grid;gap:var(--s3);grid-template-columns:repeat(auto-fit,minmax(11rem,1fr))}
.insights .stat-tile .amount{font-size:1.6rem;font-weight:600;margin:var(--s1) 0}
.chart{margin-block:var(--s3)}
.chart__svg{width:100%;height:auto;display:block;direction:ltr}
.chart__grid{stroke:var(--surface-well);stroke-width:1}
.chart__tick{fill:var(--muted);font-size:14px}
.chart__legend{display:flex;gap:var(--s3);flex-wrap:wrap;color:var(--text-2);margin:0 0 var(--s2)}
.chart__key{width:12px;height:12px;vertical-align:-1px;margin-inline-end:6px}
.insights__section{margin-block:var(--s4) var(--s2)}
.chart__label{fill:var(--text-2);font-size:14px}
@media (max-width:640px){.chart__tick{font-size:22px}.chart__label{font-size:24px}}
.hbars{list-style:none;padding:0;margin:0;display:grid;gap:var(--s2)}
.hbars__row{display:grid;grid-template-columns:minmax(6rem,10rem) 1fr auto;align-items:center;gap:var(--s2)}
.hbars__label{color:var(--text-2);font-size:.875rem}
.hbars__track{display:block;block-size:.9rem}
.hbars__svg{display:block;inline-size:100%;block-size:100%}
.hbars__value{color:var(--text-2);font-size:.8125rem;white-space:nowrap}
/* I6c: the seller's own «امروز» on /m -- the paid-orders card and the shop's funnel strip, one
   column inside the seller frame at every width. */
.pulse-today{display:flex;flex-direction:column;gap:var(--s3)}
.pulse-today .pgrid__cards{grid-template-columns:minmax(0,1fr)}
.pulse-today .pgrid__card--lead{grid-column:auto;grid-row:auto}
.pulse-today .pgrid__card--lead .chart__tick{font-size:24px}
/* I6 «نمای پردا»: the pulse grid -- small multiples, one metric per card, two lines by Tehran hour
   (today: violet 2px solid; yesterday: grey solid). One column
   on a phone, two from 720px, three from 1100px where the paid-orders card spans two by two. */
.pgrid__asof{color:var(--text-2);font-size:var(--fs-sm);font-weight:400}
.pgrid__legend{margin:0}
.chart__key--line{width:18px}
.pgrid__cards{list-style:none;padding:0;margin:0;display:grid;gap:var(--s3);grid-template-columns:minmax(0,1fr)}
.pgrid__card{display:flex;flex-direction:column;gap:var(--s2);min-width:0}
.pgrid__figure{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s1) var(--s3);margin:0}
.pgrid__num{font-size:var(--fs-figure);font-weight:700;line-height:1.2}
.pgrid__vs{color:var(--text-2);font-size:var(--fs-sm)}
.pgrid__card--lead .pgrid__num{font-size:2.25rem}
.pgrid__yd{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-linejoin:round}
.pgrid__hit{fill:transparent}
.pgrid__card .chart__tick{font-size:12px}
.pgrid__card--lead .chart__tick{font-size:15px}
.pgrid__table{margin-top:auto}
.pgrid__table>summary{font-size:var(--fs-sm);font-weight:400;color:var(--text-2);min-height:36px}
@media (max-width:719px){.pgrid__card--lead .chart__tick{font-size:26px}}
@media (min-width:720px){.pgrid__cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pgrid__card--lead{grid-column:span 2}}
@media (min-width:1100px){.pgrid__cards{grid-template-columns:repeat(3,minmax(0,1fr))}.pgrid__card--lead{grid-column:span 2;grid-row:span 2}}
/* I7 «نمای پردا»: one control row (seller tabs, then the period with «به‌روز تا»), then six KPI
   tiles -- 3 x 2 on a phone, one row from 960px. A tile: label, figure, the previous span below. */
.insights__lead{color:var(--text-2);margin:0 0 var(--s3)}
.insights__tabs{margin-block-end:var(--s3)}
/* A phone's tab bar scrolls: a soft shadow on its far (inline-end, left in RTL) edge says "more
   tabs this way" (tokens only, as the rest of this sheet). */
@media (max-width:719px){.insights__tabs{box-shadow:inset 14px 0 10px -10px var(--border-strong)}}
.insights__controls{flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s2);margin-block-end:var(--s3)}
.insights__asof{color:var(--text-2);font-size:var(--fs-sm);margin:0}
.kpi{list-style:none;padding:0;margin:0 0 var(--s3);display:grid;gap:var(--s2);grid-template-columns:repeat(3,minmax(0,1fr))}
.kpi__tile{background:var(--surface);border-radius:var(--radius);padding:var(--s3);min-width:0;display:flex;flex-direction:column;gap:2px}
.kpi__label{font-size:var(--fs-sm);font-weight:400;color:var(--text-2);margin:0}
.kpi__num{font-size:var(--fs-title);font-weight:700;margin:0;overflow-wrap:anywhere}
.kpi__prev{font-size:var(--fs-xs);color:var(--text-2);margin:0}
.kpi__dir--up{color:var(--ok-text)}
.kpi__dir--down{color:var(--critical-text)}
@media (min-width:960px){.kpi{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width:719px){.insights .kpi{grid-template-columns:repeat(2,minmax(0,1fr))}.insights .kpi__num{overflow-wrap:normal}}   /* INSIGHTS-V2: a phone's sales figure stays one line */
/* INSIGHTS-SHOPS (2026-11-14): the shops picker (a no-JS GET form), the shared page's shops
   table and the compare grid -- tokens only, no new colour; a table wider than the screen
   scrolls inside its own wrapper (never the page), and the compare grid's metric-label column
   sticks to the reading edge while it does. */
.insights__tabs{box-shadow:none}   /* the tabs' own more-tabs shadow left with the tab bar */
/* INSIGHTS-V2 (2026-11-15): the picker is a <details> of links (no form, so the global form
   column rule never reaches it); its summary names the scope, its panel drops over the page on a
   wide screen and spans the width on a phone, the list scrolling inside. The tabs row holds the
   picker, the way back to all shops and «previous / next» side by side. */
.insights__tabs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}
.insights__picker{position:relative;margin:0}
.insights__picker>summary{display:inline-flex;align-items:center;gap:var(--s2);min-height:44px;padding:0 var(--s3);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;list-style:none;font-size:var(--fs-sm)}
.insights__picker>summary::-webkit-details-marker{display:none}
.insights__picker>summary::after{content:"\25BE";color:var(--text-2)}
.insights__picker[open]>summary::after{content:"\25B4"}
.insights__picker-k{color:var(--text-2)}
.insights__panel{position:absolute;inset-inline-start:0;inset-block-start:calc(100% + var(--s1));z-index:20;inline-size:20rem;max-inline-size:calc(100vw - 2 * var(--s4));background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-2);padding:var(--s2)}
.insights__find{inline-size:100%;min-height:40px;padding:var(--s1) var(--s3);font-size:var(--fs-sm);margin-block-end:var(--s2)}
.insights__shoplist{list-style:none;margin:0;padding:0;max-block-size:min(22rem,55vh);overflow-y:auto}
.insights__shoplist a{display:block;padding:var(--s2) var(--s3);border-radius:var(--radius-sm);color:var(--text);text-decoration:none;font-size:var(--fs-sm)}
.insights__shoplist a:hover,.insights__shoplist a:focus-visible{background:var(--surface-well)}
.insights__shoplist a[aria-current]{background:var(--primary-soft);color:var(--primary-strong);font-weight:700}
.insights__nomatch{margin:var(--s2) var(--s3)}
.insights__pn{display:flex;gap:var(--s2);margin:0}
.insights__tabs .insights__back{margin:0}
@media (max-width:719px){
  .insights__picker{flex:1 1 100%}
  .insights__picker>summary{display:flex;inline-size:100%;justify-content:space-between}
  .insights__picker>summary b{margin-inline-end:auto}
  .insights__panel{inset-inline-end:0;inline-size:auto;max-inline-size:none}
}
.insights__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.insights__grid{border-collapse:collapse;font-size:var(--fs-sm)}
/* INSIGHTS-V2: the shops table spans the width; its headers are sort links (the current one
   marked), and a row reads as one tap target. */
.insights__grid[data-sortable]{inline-size:100%}
.insights__grid .insights__sort{color:inherit;text-decoration:none;font-weight:700;white-space:nowrap}
.insights__grid th[aria-sort] .insights__sort{color:var(--primary-strong)}
.insights__grid th[aria-sort="descending"] .insights__sort::after{content:" \25BC";font-size:.7em}
.insights__grid th[aria-sort="ascending"] .insights__sort::after{content:" \25B2";font-size:.7em}
.insights__row{cursor:pointer}
.insights__row:hover{background:var(--surface-well)}
.insights__grid th,.insights__grid td{padding:var(--s2) var(--s3);border-block-start:1px solid var(--border);text-align:start;vertical-align:top}
.insights__grid .num{direction:ltr;text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
.insights__grid caption{color:var(--text-2);font-size:var(--fs-sm);text-align:start;padding-block-end:var(--s2)}
.insights__compare th:first-child,.insights__compare td:first-child{position:sticky;inset-inline-start:0;background:var(--surface)}
.insights__go{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);margin:var(--s2) 0 0}
.insights__back{margin:0 0 var(--s3)}
/* I7 «ضربان ساعتی»: nine equal small line charts -- one column on a phone, two from 720px, three
   from 1100px; each card a compact header (title, today's total, yesterday to this hour) over a
   chart that never grows past 200px tall. The buying path is one line under the KPI strip. */
.fline{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s1) var(--s2);margin:0 0 var(--s3);color:var(--text-2);font-size:var(--fs-sm)}
.fline__title{font-weight:700;color:var(--text)}
.fline__step b{color:var(--text)}
.fline__arrow{color:var(--text-2)}
.hgrid__legend{margin:0 0 var(--s2)}
.hgrid__cards{list-style:none;padding:0;margin:0 0 var(--s3);display:grid;gap:var(--s3);grid-template-columns:minmax(0,1fr)}
.hgrid__card{display:flex;flex-direction:column;gap:var(--s1);min-width:0;padding:var(--s3)}
.hgrid__title{font-size:var(--fs-sm);font-weight:700;margin:0}
.hgrid__figure{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px var(--s2);margin:0}
.hgrid__num{font-size:var(--fs-title);font-weight:700}
.hgrid__vs{color:var(--text-2);font-size:var(--fs-xs)}
.insights .hgrid__svg{max-height:200px}
.hgrid__card .chart__tick{font-size:11px}
.hgrid__card .pgrid__table>summary{min-height:24px;font-size:var(--fs-xs)}
@media (max-width:719px){.hgrid__card{padding:var(--s2) var(--s3)}.insights .hgrid__svg{max-height:120px}}
@media (min-width:720px){.hgrid__cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.hgrid__cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.insights__more-list{margin:var(--s2) 0 0;display:grid;gap:var(--s2);grid-template-columns:repeat(auto-fill,minmax(10rem,1fr))}
.insights__more-list dt{font-size:var(--fs-sm);color:var(--text-2)}
.insights__more-list dd{margin:0;font-weight:700}
.insights__foot{color:var(--text-2);font-size:var(--fs-xs)}
/* I6b: the funnel strip -- each step's count over its label, its share of the step before on top;
   a thin rule marks the change from sellers to the period's flow. Wraps to rows on a phone. */
.fstrip{list-style:none;padding:0;margin:var(--s2) 0 0;display:grid;gap:var(--s2);grid-template-columns:repeat(auto-fill,minmax(7rem,1fr))}
.fstrip__step{display:flex;flex-direction:column;gap:2px;padding:var(--s2);border-radius:var(--radius-sm);background:var(--surface-well);min-width:0}
.fstrip__step--break{border-inline-start:3px solid var(--primary-200)}
.fstrip__rate{font-size:var(--fs-xs);color:var(--primary-strong);font-weight:700;min-height:1.2em}
.fstrip__count{font-size:var(--fs-title);font-weight:700;color:var(--text)}
.fstrip__count--na{font-size:var(--fs-sm);font-weight:400;color:var(--text-2)}
.fstrip__label{font-size:var(--fs-sm);color:var(--text-2);overflow-wrap:anywhere}
/* I6c: a ranking row opens that seller's page. */
.hbars__link{color:var(--primary-strong);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
/* FUNNELS T8: the two funnel cards. They stack on a phone (one per row at 360 px) and sit side
   by side from 720 px. A step's bar is proportional to its «آمده» with the failed part hatched
   at its end (the hatch is the page's own violet, red stays reserved for errors). */
.fcards{display:grid;gap:var(--s3);margin:0 0 var(--s3)}
@media (min-width:720px){.fcards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fcard{padding:var(--s3);margin:0}
.fcard__step{margin:0 0 var(--s3)}
.fcard__step:last-child{margin-block-end:0}
.fcard__head{display:flex;align-items:baseline;gap:var(--s2);margin:0 0 4px;flex-wrap:wrap}
.fcard__label{font-weight:700;color:var(--text);font-size:var(--fs-sm)}
.fcard__en{font-size:var(--fs-xs);color:var(--text-2);font-weight:400}
.fcard__tag{font-size:var(--fs-xs);color:var(--text-2);background:var(--surface-well);border-radius:999px;padding:0 var(--s2)}
.fcard__track{display:block;width:100%;height:8px;background:var(--surface-well);border-radius:4px;margin-block-end:4px}
.fcard__defs{position:absolute;width:0;height:0;overflow:hidden}
.fcard__bar{fill:var(--primary)}
.fcard__hatch{fill:url(#fhatch)}
.fcard__tooth{fill:var(--primary-200)}
.fcard__nums{margin:0;font-size:var(--fs-xs);color:var(--text-2)}
.fcard__nums b{color:var(--text)}
.fcard__split{margin:2px 0 0;font-size:var(--fs-xs);color:var(--text-2)}
.fcard__reasons{margin:2px 0 0;font-size:var(--fs-xs);color:var(--text-2);overflow-wrap:anywhere}
.fcard__reason{font-weight:600;color:var(--text-2)}
/* I6: on a phone a money tick («۲٫۵ میلیون») is wider than the plot's left margin; let it run into
   the card's padding instead of being cut. */
.insights .chart__svg{overflow:visible}
/* I6 (review): cash vs instalment as one thin stacked strip inside the sales card. */
.rails__title{font-size:var(--fs-sm);margin-top:var(--s2)}
.rails__svg{display:block;width:100%;height:10px;border-radius:var(--radius-pill)}
/* I6d: the secondary pulse cards and the growth cards are OPEN by default: the full chart and
   table always render, and the compact label (title, figure, delta, sparkline) is just the card's
   header. Only at 480px and below do the cards go two-up as compact cards, the body hidden until
   the card's checkbox -- visually hidden, toggled by tapping the label -- is checked; a checked
   card spans the row. Wider than 480px, without CSS, or without :has(), the full view shows. */
.pgrid__toggle{position:absolute;inline-size:1px;block-size:1px;margin:0;opacity:0;pointer-events:none}
.pgrid__sum{display:flex;flex-direction:column;align-items:stretch;gap:var(--s2);font-weight:400;font-size:inherit}
.pgrid__sum .tile-title{font-weight:700}
.pgrid__body{display:flex;flex-direction:column;gap:var(--s2);flex:1}
.pgrid__spark{display:none}
.pgrid__card--sec{position:relative}
@media (min-width:481px){.pgrid__toggle{display:none}}
@media (max-width:480px){
  .insights .pgrid__cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s2)}
  .insights .pgrid__card--lead{grid-column:1/-1}
  .pgrid__card--sec{padding:var(--s3)}
  .pgrid__sum{cursor:pointer}
  .pgrid__toggle:not(:checked)~.pgrid__body{display:none}
  .pgrid__toggle:focus-visible~.pgrid__sum{outline:2px solid var(--primary);outline-offset:4px;border-radius:var(--radius-sm)}
  .pgrid__card--sec:has(>.pgrid__toggle:checked){grid-column:1/-1}
  .pgrid__card--sec .tile-title{font-size:var(--fs-sm)}
  .pgrid__card--sec .pgrid__num{font-size:var(--fs-title)}
  .pgrid__card--sec .pgrid__vs{font-size:var(--fs-xs)}
  .pgrid__card--sec .pgrid__figure{gap:2px var(--s2)}
  .pgrid__spark{display:block;width:100%;height:32px}
  .pgrid__toggle:checked~.pgrid__sum .pgrid__spark{display:none}
}
/* I6d: the period's figure tiles go two-up on a phone as well. */
@media (max-width:480px){.insights__tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s2)}.insights .stat-tile{padding:var(--s3)}.insights .stat-tile .amount{font-size:1.15rem}}

/* LC80b (2026-10-16, the marketplace cart's own pattern): ONE radio list. Each method a
   <details name="pay-method"> card -- a radio circle before its title (violet, filled, when open),
   a 1.5px violet border when open -- and only the open card's form shows, so one button follows
   the choice. Money rows align (tabular figures). No script. */
.pm-list{display:flex;flex-direction:column;gap:var(--s2);text-align:start}
.pm{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0}
.pm[open]{border:1.5px solid var(--primary)}
.pm__sum{display:grid;grid-template-columns:auto 1fr;column-gap:var(--s2);row-gap:2px;align-items:start;padding:var(--s3);list-style:none;font-weight:400}
.pm__sum::-webkit-details-marker{display:none}
.pm__sum::before{content:"";grid-row:1 / span 3;inline-size:18px;block-size:18px;margin-block-start:2px;border-radius:50%;border:2px solid var(--border-strong);background:var(--surface);box-sizing:border-box}
.pm[open]>.pm__sum::before{border:5px solid var(--primary)}
.pm__title{font-weight:700}
.pm__sub{color:var(--text-2);font-size:var(--fs-xs);grid-column:2}
.pm__rows{grid-column:2;margin:var(--s1) 0 0;display:grid;gap:2px;font-variant-numeric:tabular-nums}
.pm__rows div{display:flex;justify-content:space-between;gap:var(--s2);font-size:var(--fs-sm)}
.pm__rows dt{color:var(--text-2)}
.pm__rows dd{margin:0;font-weight:700}
.pm__rows .pm__extra dt,.pm__rows .pm__extra dd{color:var(--text-2);font-weight:400;font-size:var(--fs-xs)}
.pm__body{display:flex;flex-direction:column;gap:var(--s2);padding:0 var(--s3) var(--s3)}
.pm__due{font-variant-numeric:tabular-nums}
.pm__h{font-weight:700;font-size:var(--fs-sm)}
.pm-steps{list-style:none;margin:0;padding:0 0 var(--s1);display:flex;gap:var(--s2);overflow-x:auto;scroll-snap-type:x mandatory}
.pm-steps__step{flex:0 0 5.5rem;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:var(--fs-xs);color:var(--text-2);text-align:center;font-variant-numeric:tabular-nums}
.pm-steps__n{inline-size:24px;block-size:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid var(--primary);color:var(--primary-strong);font-weight:700}
.pm-steps__step--now .pm-steps__n{background:var(--primary);color:var(--on-primary)}
.pm-steps__step b{color:var(--text);font-size:var(--fs-sm)}
.pm__consent{display:flex;gap:var(--s2);align-items:flex-start;font-size:var(--fs-xs);color:var(--text-2);font-weight:400}
.pm__consent input{margin-block-start:2px;flex:none}
/* PAY-CONSENT-GUIDE (2026-10-29): the unticked instalment consent -- the label takes the house's
   field--error highlight (the tokens .field--error already carries; its error TEXT colour is
   --danger-deep, the tokens pin's rule) and the guide line, written by the 409 re-render or by
   pay.js on the blocked tap, is the house's own alert-line just nudged under the label. */
.pm__consent.field--error,.bnpl-option.consent.field--error{color:var(--danger-deep)}
.pm__consent-due{margin-block-start:2px}
.pm--off{display:flex;flex-direction:column;gap:2px;padding:var(--s3);padding-inline-start:calc(var(--s3) + 18px + var(--s2));color:var(--text-2);background:var(--surface-well);position:relative}
.pm--off::before{content:"";position:absolute;inset-inline-start:var(--s3);inset-block-start:var(--s3);inline-size:18px;block-size:18px;border-radius:50%;border:2px solid var(--border);box-sizing:border-box}
.pm-group{font-weight:700;margin-block-start:var(--s2)}
.pm-group__credit{color:var(--text-2);margin-block-start:-4px}
.pm-hint{display:none;color:var(--text-2);font-size:var(--fs-sm)}
.pm-list:not(:has(details.pm[open])) .pm-hint{display:block}
.credit-promo__head{display:flex;gap:var(--s2);align-items:center}
.credit-promo__icon{inline-size:40px;block-size:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--success-tint);color:var(--success-deep);flex:none}
.credit-promo__text{display:flex;flex-direction:column;gap:2px}
/* GUIDE-1: the «راهنما ▶» row and its bottom-sheet player (static/guide.js). */
.guide-row{margin:0}
.guide-sheet{position:fixed;inset:0;z-index:50;background:rgba(17,17,26,.55);display:flex;align-items:flex-end;justify-content:center}
.guide-sheet__box{background:var(--surface);inline-size:100%;max-inline-size:480px;max-block-size:96vh;overflow:auto;border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:var(--s3);display:flex;flex-direction:column;gap:var(--s2)}
.guide-sheet__img{max-inline-size:100%;max-block-size:62vh;inline-size:auto;block-size:auto;align-self:center;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg)}
.guide-sheet__cap{font-size:18px;line-height:1.7;margin:0;min-block-size:3.4em}
.guide-sheet__nav{display:flex;justify-content:space-between}
.guide-sheet__x{align-self:flex-start}
.guide-list{list-style:none;padding:0;margin:0}
.guide-list img{inline-size:100%;block-size:auto;border-radius:var(--radius)}
/* ADDR-LEAD: the account path's empty address, first and ringed -- a ring, never a focus. */
.addr-lead{display:flex;flex-direction:column;gap:var(--s2)}
.addr-lead textarea{box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 30%,transparent);border-color:var(--primary)}
/* VIDCREDIT: the buyer guide video's card on the product page (partials/guide_video.html,
   static/guide_video.js). The clips are 720x1280 (9:16); preload=none, so the player holds its
   own aspect before the poster arrives. GVID-COSMETIC (2026-10-23): the chapters are a
   marker-less list -- the numbers live in the buttons' text, no RTL marker on its own line -- and
   the native bar waits behind a round overlay play button until the first tap (it covers the
   poster's burned-in caption); the stage holds the player and centres the overlay over it.
   GVID-MODAL: the card lives in the dialog below; the overlay stands in only when a browser
   refuses to start the video on the opening tap. */
.gvid{display:flex;flex-direction:column;gap:var(--s2);margin:0}
.gvid__title{margin:0;font-size:var(--fs-title);font-weight:700}
.gvid__sub{margin:0;color:var(--text-2);font-size:var(--fs-xs)}
.gvid__stage{position:relative}
.gvid__player{display:block;inline-size:100%;aspect-ratio:9/16;background:var(--bg);border-radius:var(--radius)}
.gvid__play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);inline-size:64px;block-size:64px;border:0;border-radius:50%;background:var(--primary);color:var(--on-primary);font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer}
.gvid__play:focus-visible{outline:2px solid var(--primary-strong);outline-offset:2px}
.gvid__play[hidden]{display:none}  /* [hidden] must win over the display rule above: no JS, or after the first tap */
.gvid__full{display:block;text-align:center;padding:var(--s2) var(--s4);border:1.5px solid var(--primary-200);border-radius:var(--radius);color:var(--primary-strong);font-weight:700;text-decoration:none;background:var(--primary-soft)}
.gvid__h{margin:var(--s1) 0 0;font-size:var(--fs-sm);font-weight:700}
.gvid__chapters{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--s1)}
.gvid__chapter{inline-size:100%;justify-content:flex-start;text-align:start;padding:var(--s1) var(--s2);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-size:var(--fs-sm)}
/* GVID-MODAL (the owner, 2026-10-23): a thin banner ABOVE the photo opens the player in a <dialog>.
   The banner's play button pulses three times, then rests (never under reduced motion); the
   dialog is the card on a dimmed backdrop, the player sized by the screen's HEIGHT so the
   full-guide link and the chapters start within reach; the page behind does not scroll. */
.gvid-banner{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);min-block-size:44px;padding:var(--s1) var(--s3);margin:0 0 var(--s2);border-radius:var(--radius);background:var(--primary-soft);color:var(--primary-strong);font-weight:700;font-size:var(--fs-sm);text-decoration:none}
.gvid-banner:focus-visible{outline:2px solid var(--primary-strong);outline-offset:2px}
.gvid-banner__play{flex:none;display:flex;align-items:center;justify-content:center;inline-size:32px;block-size:32px;border-radius:50%;background:var(--primary);color:var(--on-primary);font-size:13px;line-height:1;animation:gvid-pulse 1.4s var(--ease-in-out) .6s 3}
@keyframes gvid-pulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 color-mix(in srgb,var(--primary) 45%,transparent)}
  50%{transform:scale(1.1);box-shadow:0 0 0 8px color-mix(in srgb,var(--primary) 0%,transparent)}}
@media (prefers-reduced-motion: reduce){.gvid-banner__play{animation:none}}
.gvid-dialog{padding:0;border:0;background:transparent;inline-size:min(420px,calc(100vw - 2 * var(--s3)));max-inline-size:none;max-block-size:calc(100dvh - 2 * var(--s3));overflow:visible}
.gvid-dialog::backdrop{background:var(--scrim)}
.buyer-shell--split>.gvid-dialog{margin:auto}  /* the split layout's child margin must not pin the modal to the top */
.gvid-dialog .gvid{max-block-size:calc(100dvh - 2 * var(--s3));overflow:auto;padding:var(--s2) var(--s3) var(--s3)}
.gvid-dialog .gvid__player{block-size:min(64dvh,600px);inline-size:auto;max-inline-size:100%;margin-inline:auto}
.gvid__head{display:flex;align-items:center;justify-content:space-between;gap:var(--s2)}
.gvid-dialog .gvid__head{position:sticky;inset-block-start:calc(-1 * var(--s2));z-index:1;margin-block-start:calc(-1 * var(--s2));padding-block:var(--s2);background:var(--surface)}  /* the × never scrolls away with the chapters */
.gvid__close{flex:none;inline-size:44px;block-size:44px;border:0;border-radius:50%;background:var(--surface-well);color:var(--text);font-size:28px;line-height:1;cursor:pointer}
.gvid__close:focus-visible{outline:2px solid var(--primary-strong);outline-offset:2px}
html.gvid-lock,html.gvid-lock body{overflow:hidden}
/* DM-GUIDE-BUTTON: the DM card's guide page -- the player sized by the screen's height so
   «ادامه و پرداخت» stays in the first screen; the chapters are links into the full guide. */
.gvid-dm__player{block-size:min(60dvh,560px);inline-size:auto;max-inline-size:100%;margin-inline:auto}
a.gvid__chapter{display:flex;text-decoration:none}

/* BASKET-0 (2026-10-27): the shop shelf's search box, its paging link and its empty line -- the
   section's own rows, nothing shared. */
.shelf-search{margin:8px 0 4px}
.shelf-search input{width:100%;padding:8px 10px;border:1px solid var(--border);border-radius:8px;font:inherit;background:var(--surface);color:inherit}
.shelf-more{display:inline-block;margin-top:10px;padding:6px 14px;border:1px solid var(--border);border-radius:8px}
.shelf-empty{margin:8px 0 0}

/* BROWSER-CUE-1 (the owner, approved 2026-10-30): the product page's two cues, seen as it opens.
   (a) Inside an in-app browser the «باز کردن در مرورگر» banner stands out -- a brand-ink edge, its
   open action a full-width 48px OUTLINE (the page's own CTA stays the one filled primary) that
   glows three times from 0.6 s, then rests -- and the buy bar repeats the same hand-off as an
   outline row. (b) For every buyer the guide video is a chip ON the product photo, its play disc
   pulsing three times from 1.2 s, then resting. Motion: transform, opacity and background-color
   only, under html.motion (no JS, or a reduced-motion ask: the final frame), plus the explicit
   reduced-motion guard below. No layout shift: the chip and both rings are absolutely placed over
   boxes whose size the first paint already fixed (the photo's width/height and aspect-ratio). */
.inapp-banner--cue{border:1.5px solid var(--primary);border-inline-start-width:4px}
.inapp-banner--cue .inapp-banner__title{font-size:var(--fs-base)}
.inapp-banner--cue .inapp-banner__open{position:relative;flex:1 1 100%;min-block-size:var(--h-btn);font-size:var(--fs-base);border-width:2px}
.inapp-banner--cue .inapp-banner__open::after{content:"";position:absolute;inset:-2px;border:2px solid var(--primary);border-radius:inherit;opacity:0;pointer-events:none}
@keyframes cue-glow{0%,100%{background-color:var(--surface)}50%{background-color:var(--primary-soft)}}
@keyframes cue-ring{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.04,1.3)}}
html.motion .inapp-banner--cue .inapp-banner__open{animation:cue-glow 1.6s var(--ease-in-out) .6s 3}
html.motion .inapp-banner--cue .inapp-banner__open::after{animation:cue-ring 1.6s var(--ease-out) .6s 3}
/* the buy bar's row: the same hand-off, a quiet full-width outline under the price | CTA row */
.dock-browser{display:flex}
.dock-browser .caption{margin:0}
.dock-browser__open{flex:1 1 auto;border-color:var(--primary);color:var(--primary-700)}
main:has(:is(input:not([type="checkbox"]):not([type="radio"]),textarea):focus) .cta-dock .dock-browser{display:none}
/* BASKET-DOCK (2026-10-31): the buy bar's «افزودن به سبد» -- the buy form's second submit, a full-width
   outline right under the price | CTA row (beside them the three never fit a phone's width);
   «ادامه خرید» stays the one filled primary. It stays shown while the count is being typed:
   hiding it on focus would move it under the finger that taps it next */
.dock-basket{display:flex}
.dock-basket__add{flex:1 1 auto;border-color:var(--primary);color:var(--primary-700)}
/* BASKET-DOCK r1: a selection already in the basket -- its count read-only here (the row's own form
   is where it changes), and the summary's plain lines. */
/* `form{display:flex}` beats the hidden attribute, and a zero-height flex child of main still takes
   main's 12 px gap (measured): the held form holds only hidden inputs and must take no place. */
#buy-held[hidden]{display:none}
.dock-held__count{display:flex;align-items:baseline;gap:var(--s2);margin:0}
.dock-held .caption{margin:4px 0 0}
.basket-note{margin:6px 0 0}
/* The summary's rows: one card per line for a phone and older buyers -- title, then count with its
   save button, then the line's price and a quiet remove. Every control keeps a 44 px target. */
.basket{margin-block-start:var(--s4)}
.basket-lines{list-style:none;margin:var(--s2) 0;padding:0}
.basket-line{display:grid;grid-template-columns:1fr auto;align-items:center;gap:var(--s2);padding:var(--s3) 0;border-block-end:1px solid var(--border)}
.basket-line__title{grid-column:1/-1;font-weight:600}
.basket-line__qty{display:none}
.basket-qty{display:flex;flex-direction:row;align-items:center;gap:var(--s2);margin:0}
.basket-qty__input{inline-size:64px;min-block-size:44px;margin:0;text-align:center}
.basket-qty button,.basket-remove button{inline-size:auto;min-block-size:44px;margin:0;padding:0 var(--s3)}
.basket-remove{margin:0;justify-self:start}
.basket-remove button{background:none;border:0;box-shadow:none;color:var(--danger-deep)}
.basket-line__total{justify-self:end;font-weight:600}
.basket-total{margin:var(--s3) 0 0;font-weight:700}
/* the chip on the photo: the photo keeps its own box (display:block only drops the inline gap) and
   the chip sits at its TOP reading-start corner -- the bottom of the photo is under the sticky
   dock on a short in-app screen; without a photo it stands beside the box tile. Its ground is
   --text's ink at 78 % (--scrim's 62 % left white text near 4.5:1 over a white photo) */
.photo-cue{position:relative}
.photo-cue>.product-photo{display:block}
.photo-cue--nophoto{display:flex;align-items:center;gap:var(--s3)}
.gvid-chip{position:absolute;inset-block-start:var(--s3);inset-inline-start:var(--s3);max-inline-size:calc(100% - 2 * var(--s3));display:inline-flex;align-items:center;gap:var(--s2);min-block-size:44px;padding-block:var(--s1);padding-inline:var(--s1) var(--s3);border-radius:var(--radius-pill);background:rgb(28 26 46 / .78);color:var(--on-primary);font-size:var(--fs-sm);font-weight:700;line-height:1.4;text-decoration:none}
.photo-cue--nophoto .gvid-chip{position:static;max-inline-size:none}
.gvid-chip:focus-visible{outline:2px solid var(--primary-strong);outline-offset:2px}
.gvid-chip__play{position:relative;flex:none;display:flex;align-items:center;justify-content:center;inline-size:32px;block-size:32px;border-radius:50%;background:var(--primary);color:var(--on-primary);font-size:13px;line-height:1}
.gvid-chip__play::after{content:"";position:absolute;inset:0;border:2px solid var(--on-primary);border-radius:50%;opacity:0;pointer-events:none}
.gvid-chip__text{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@keyframes cue-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@keyframes cue-ring-round{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.7)}}
html.motion .gvid-chip__play{animation:cue-pulse 1.4s var(--ease-in-out) 1.2s 3}
html.motion .gvid-chip__play::after{animation:cue-ring-round 1.4s var(--ease-out) 1.2s 3}
@media (prefers-reduced-motion: reduce){
  .inapp-banner--cue .inapp-banner__open,.inapp-banner--cue .inapp-banner__open::after,
  .gvid-chip__play,.gvid-chip__play::after{animation:none}
}
@media (min-width:960px){   /* the one-page split: the photo's column-2 place moves to its wrapper */
  .buyer-shell--split>.photo-cue{grid-column:2;grid-row:1 / span 40;position:sticky;top:var(--s4)}
  .buyer-shell--split>.photo-cue>.product-photo{border-radius:var(--radius-lg)}
}
/* VARIANT-NO-RELOAD (2026-10-31, static/variant_swap.js): while a model tap's answer is on its way
   the dock's buttons are disabled. A light look, no spinner: the CTA keeps its colour and the row
   dims only if the answer takes longer than a blink. A fast second tap on the stepper or a chip is
   a tap, never a double-tap zoom. */
html.vs-on .stepper__btn,html.vs-on .chip-opt,html.vs-on .opt{touch-action:manipulation}
.cta-dock.is-swapping .btn-primary[disabled]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.cta-dock.is-swapping :is(.dock-buy,.dock-basket){opacity:.55}
html.motion .cta-dock.is-swapping :is(.dock-buy,.dock-basket){transition:opacity 120ms linear 120ms}
/* VARIANT-NO-RELOAD r4 gate 2 (2026-11-02, the REVISE gate): the presses the swap refuses -- the
   shelf's card adds and the selection-bearing links -- carry the dock's own is-swapping class
   (static/variant_swap.js sets it in lock()), so the refused press SHOWS: the dock's dim, its
   transition, no copy, no spinner. aria-disabled alone is not visible. */
.is-swapping:is(a,.basket-add__btn){opacity:.55}
html.motion .is-swapping:is(a,.basket-add__btn){transition:opacity 120ms linear 120ms}
/* ---- PICK-LINE ---- the dock's one line naming the model and the count the button submits
   (2026-11-02; its behaviour is static/pick_line.js, loaded on the product page only). One row
   that cannot wrap: the model truncates with an ellipsis (a long name never pushes the CTA off
   a phone), the count stays whole at the inline end -- bounded (the server prints only a count
   it would accept, pick_line.js only a parsed one), so flex:none never holds a long run. The
   dash is the line's own element: a text dash there would open the count span's block and lose
   the space before it; the model's inline-end margin is that space. Where the form's field is
   live the line is .js-only -- without scripts it cannot follow an edit, so it claims nothing
   (the app's own .js-only signal, re-pinned to flex: the generic display:revert would drop this
   line's row layout, and the bare flex above would out-rank display:none). */
.dock-pick{display:flex;align-items:baseline;margin:0;min-width:0;font-size:.85rem;color:var(--text-2)}
.dock-pick__model{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;margin-inline-end:.25em}
.dock-pick__count{flex:none;white-space:nowrap}
.dock-pick.js-only{display:none}
html.js .dock-pick.js-only{display:flex}

/* ---- ADD-PRODUCT v1 ---- (2026-11-11) the create page's status radio stacks its title
   over its one line, the optional fields' reveal chips are plain pill buttons, and the
   collected-error banner's list indents under the count. Tokens only -- no new hex. */
.ap-status{display:flex;flex-direction:column;gap:var(--s2);margin:0 0 var(--s3)}
.ap-status .opt{flex-direction:column;align-items:flex-start;gap:2px}
/* ---- ADD-PRODUCT-TOGGLES ---- (2026-11-13) the create page's stock choice and sale-status
   choice as ONE pill segmented control shape: the reference's 52px pill (4px rail + 44px
   side), the 240ms thumb (--dur-2, still under motion.css's reduced-motion guard and the
   local one below), the 12px panel radius (--radius). Without script the native radios
   show and BOTH panels stay readable; the script marks the active side (.is-active) --
   never :has() alone, older Android webviews included -- moves the thumb (.is-second on
   the group) and hides the inactive panel. Tokens only -- no new hex. */
.stk{display:flex;flex-direction:column;gap:var(--s3)}
.stk-seg{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;
  padding:4px;border-radius:var(--radius-pill);background:var(--surface-well)}
.stk-seg__thumb{display:none}
html.js .stk-seg__thumb{display:block;position:absolute;top:4px;bottom:4px;inset-inline-start:4px;
  width:calc(50% - 4px);border-radius:var(--radius-pill);background:var(--primary);
  transition:transform var(--dur-2) var(--ease-out)}
.stk-seg.is-second .stk-seg__thumb{transform:translateX(-100%)}
.stk-seg__opt{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
  min-height:44px;padding:0 var(--s2);border-radius:var(--radius-pill);cursor:pointer;
  color:var(--text-2);font-weight:700;font-size:.92rem;text-align:center}
.stk-seg__opt.is-active{color:var(--on-primary)}
.stk-seg__txt{pointer-events:none}
html.js .stk-seg input[type="radio"]{position:absolute;inline-size:1px;block-size:1px;opacity:0}
html.js .stk-seg input[type="radio"]:focus-visible + .stk-seg__txt{outline:2px solid var(--primary-200);
  outline-offset:1px;border-radius:var(--radius-pill)}
.stk-panel{display:flex;align-items:flex-start;gap:var(--s3);padding:var(--s3) var(--s4);
  border-radius:var(--radius);font-size:.9rem}
.stk-panel[hidden]{display:none}
.stk-panel__icon{flex:none;font-weight:800}
.stk-panel__q{margin:0;font-weight:800}
.stk-panel__line{margin:0}
.stk-panel--on{background:var(--success-tint);color:var(--success-deep)}
.stk-panel--count{flex-direction:column;background:var(--primary-soft);color:var(--primary-strong)}
.stk-panel--off{background:var(--surface-well);color:var(--text-2)}
/* the status card's own thumb: green while selling, grey while saved-only */
.aps-seg .stk-seg__thumb{background:var(--success)}
.aps-seg.is-second .stk-seg__thumb{background:var(--muted)}
@media (prefers-reduced-motion: reduce){html.js .stk-seg__thumb{transition:none}}
/* ---- ADDPRODUCT-V2 ---- (2026-11-13) the NEW add-product form's card shapes (partials/
   product_fields_v2.html, merchant/product_form_v2.html, onboarding/product_v2.html -- the
   gate's pages only; today's form renders none of these classes, so these rules are inert on
   it). The photo box centres in a flex column with its hint under it, the price's unit sits
   inside the input's left edge with the price-in-words line under the box (empty hides, no
   gap), the description carries the grey optional tag, and the buy-code box is the dashed
   light-purple card whose ONE text button opens the input. Tokens only -- no new hex. */
.np-photo{display:flex;flex-direction:column;align-items:center;text-align:center}
.np-photo .upload{inline-size:200px;block-size:200px;max-width:none}
.np-money{position:relative}
.np-money input{padding-left:64px}
.np-money__unit{position:absolute;left:12px;top:50%;transform:translateY(-50%);
  color:var(--text-2);font-size:.85rem;pointer-events:none}
.np-words{margin:0;font-size:13px;font-weight:700;color:var(--primary-strong)}
.np-words:empty{display:none}
.np-desc-f>label{display:flex;align-items:center;gap:6px}
.np-tag{flex:none;font-size:11px;font-weight:700;color:var(--text-2);
  background:var(--surface-well);border-radius:var(--radius-pill);padding:1px 8px}
.np-code{margin-top:var(--s4);border:1.5px dashed var(--primary-200);
  background:var(--primary-soft);border-radius:var(--radius);padding:var(--s3) var(--s4)}
.np-code__top{display:flex;align-items:center;gap:var(--s3)}
.np-code__txt{flex:1;min-width:0;display:grid;gap:2px}
.np-code__txt b{font-size:.85rem}
.np-code__txt small{font-size:12px;color:var(--text-2);line-height:1.7}
.np-code__state{margin-top:6px;font-size:12px;font-weight:700;color:var(--primary-strong)}
.np-code__edit-btn{flex:none;border:0;background:none;cursor:pointer;font:inherit;
  font-size:12px;font-weight:700;color:var(--primary);padding:6px 4px}
.np-code__edit-btn:focus-visible{outline:2px solid var(--primary-200);border-radius:6px}
.np-code__body{margin-top:var(--s3)}
.np-code__body .field{margin:0}
.ap-chip{display:inline-flex;align-items:center;min-height:40px;padding:0 var(--s3);margin:2px 0;
  border:1px solid var(--border);border-radius:999px;background:var(--surface);
  font-size:.85rem;font-weight:700;color:var(--primary-700);cursor:pointer}
.ap-error-list{margin:var(--s2) 0 0;padding-inline-start:var(--s3)}

/* ---- WALLET P2 ---- (2026-11-12) the merged wallet page's settlement sections as the redesign
   draws them (behind WALLET_MERGE_UI_ENABLED, NON_MONEY): the new-request form's bank choice is
   the house's own radio option cards (.opt) stacked as one named group -- the group's gap takes
   over from the cards' own margin, and a long masked suffix wraps inside its row instead of
   pushing it wide. Tokens only -- no new hex, no new radius. */
.settle-accts{display:flex;flex-direction:column;gap:var(--s2);margin-block-start:var(--s2)}
.settle-accts .opt{margin-block-end:0}
.settle-accts .opt-title{min-width:0;overflow-wrap:anywhere}

/* ---- ADDPRODUCT-V2 r2 ---- (2026-11-13) the category bottom sheet (partials/
   category_sheet_v2.html -- the gate's pages only; today's forms render none of these
   classes). The native select is the no-JS card; with script it swaps with the
   settings-style row and the sheet -- 85% of the screen tall, at most 480px wide, over the
   scrim, the page's scroll locked while it is open. The honest sub-line: the no-category
   line in the warning-deep pair, the instalment line in the success-deep pair, the neutral
   set line in --text-2; all on the white card. Tokens only -- no new hex. */
.apv-row{align-items:center;gap:var(--s3);inline-size:100%;margin:0;
  padding:12px 14px;border:1px solid var(--border-strong);border-radius:12px;
  background:var(--surface);cursor:pointer;text-align:start;font:inherit}
.apv-row.js-only{display:none}
html.js .apv-row.js-only{display:flex}
.apv-row:hover{background:var(--surface-well)}
.apv-row__ico{flex:none;display:grid;place-items:center;inline-size:40px;block-size:40px;
  border-radius:10px;background:var(--surface-well);color:var(--text-2)}
.apv-row__txt{flex:1;min-inline-size:0;display:grid;gap:2px}
.apv-row__title{font-size:.92rem}
.apv-row__sub{font-size:12px;font-weight:700}
.apv-row__sub--none{color:var(--warning-deep)}
.apv-row__sub--bnpl{color:var(--success-deep)}
.apv-row__sub--set{color:var(--text-2)}
.apv-row__chev{flex:none;color:var(--text-2);transform:rotate(180deg)}
.apv-scrim{position:fixed;inset:0;z-index:100;background:var(--scrim);
  align-items:flex-end;justify-content:center}
.apv-scrim.js-only{display:none}
html.js .apv-scrim.js-only{display:flex}
.apv-scrim[hidden]{display:none}
html.js .apv-scrim.js-only[hidden]{display:none}
/* ADDPRODUCT-V2 r4 (2026-11-14): the native select hides only once create_actions.js has
   wired the row and the sheet -- the card gets .apv-picker-live from the script itself, so
   a script that never runs leaves the select visible and usable (today's no-script card).
   ADD-ONLY: the generic html.js .no-js-only rule above stays, the buyer's show-price uses it. */
.apv-cat.apv-picker-live #category_id{display:none}
.apv-sheet{display:flex;flex-direction:column;inline-size:100%;max-inline-size:480px;
  block-size:85%;background:var(--surface);border-radius:20px 20px 0 0;
  padding:var(--s3) var(--s4);animation:apv-rise var(--dur-2) var(--ease-out)}
@keyframes apv-rise{from{transform:translateY(24px)}to{transform:none}}
@media (prefers-reduced-motion: reduce){.apv-sheet{animation:none}}
.apv-sheet__grab{flex:none;inline-size:36px;block-size:4px;border-radius:999px;
  background:var(--faint);margin:0 auto var(--s2)}
.apv-sheet__head{flex:none;display:flex;align-items:center;justify-content:space-between;
  gap:var(--s3)}
.apv-sheet__x{flex:none;inline-size:32px;block-size:32px;border-radius:50%;border:0;
  cursor:pointer;background:var(--surface-well);color:var(--text-2);font:inherit;
  font-size:1rem;line-height:1}
.apv-sheet__search{flex:none;margin-block:var(--s2)}
.apv-sheet__input{inline-size:100%}
.apv-sheet__list{flex:1;min-block-size:0;overflow-y:auto;margin:0;padding:0;list-style:none}
.apv-sheet__item{display:flex;align-items:center;justify-content:space-between;
  gap:var(--s3);padding:12px 14px;border-block-end:1px solid var(--border);cursor:pointer;
  font-weight:700}
.apv-sheet__item:hover,.apv-sheet__item.is-active{background:var(--surface-well)}
.apv-sheet__item.is-chosen{color:var(--primary-strong)}
.apv-sheet__mark{background:none;color:var(--primary-strong);font-weight:800}
.apv-sheet__none{padding:var(--s4);color:var(--text-2);text-align:center}
.apv-code-row{margin-block-start:var(--s3);align-items:center;justify-content:space-between}
body.apv-lock{overflow:hidden}
