/* Smirktag extension surfaces (Builder B): popup.html, pill.html.
   Load order: fonts-ext.css, tokens.css, base.css, ext.css. Class prefix .x-.
   Colour comes only from tokens.css (var(--tt-*)). The one exception is the PROPOSED SHARED block at the end
   (mock-shop palette), which is a proposal for tokens.css, not a page colour.
   This same file is also linked inside the pill's shadow root; selectors that start with :host only match there.
   Port notes for src/ui: .x-popup* maps to src/ui/popup, .x-dock* and .x-panel* to src/ui/panel (closed shadow
   root, all:initial host, px only). Every size here is px so the host page's rem can never change it. */

/* ======================================================================================================
   1. Shared extension pieces (popup document and pill shadow root)
   ====================================================================================================== */

/* Stamps and sample markers are must-read text: 12 px inside extension surfaces (base.css ships 11 px). */
.x-scope .tt-stamp { height: 24px; font-size: 12px; letter-spacing: .06em; }
.x-scope .tt-stamp svg { width: 13px; height: 13px; }
.x-scope .tt-sample { height: 20px; font: 600 12px/1 var(--f-ui); letter-spacing: .06em; }
.x-scope .tt-num { font-feature-settings: "tnum" 1, "lnum" 1; }

.x-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Logo: Peep, the logo symbol (D32). His four colours are theme-constant tokens. */
.x-logo { display: inline-flex; align-items: center; gap: 6px; font-size: var(--x-15); font-weight: var(--w-semi); letter-spacing: -.015em; color: var(--tt-ink); }
.x-logo svg { width: 24px; height: 24px; margin: -2px -2px -2px -3px; fill: var(--tt-tag); stroke: none; }
.x-logo svg .x-logo__c { fill: var(--tt-accent); }
.x-logo svg .x-logo__a { fill: var(--tt-accent-ink); }
.x-logo svg .x-logo__w { fill: var(--tt-tag-ink); }

/* Icon button: 32 px target, full ink-2 contrast (close and settings are never faint). */
.x-iconbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-1); color: var(--tt-ink-2); flex: none;
  transition: transform var(--d-instant) ease; }
.x-iconbtn:hover { background: var(--tt-surface-2); color: var(--tt-ink); }
.x-iconbtn:active { transform: translateY(1px); }
.x-iconbtn .x-ico { width: 18px; height: 18px; }

/* Text button ("Change", "Stop"): 32 px tall target, ink-2, underlined on hover. */
.x-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 6px; border-radius: var(--r-1);
  font-size: var(--x-13); font-weight: var(--w-medium); color: var(--tt-ink-2); text-decoration: underline; text-decoration-color: var(--tt-line-2); text-underline-offset: 3px; }
.x-link:hover { color: var(--tt-brand); text-decoration-color: currentColor; }
.x-link--brand { color: var(--tt-brand); text-decoration-color: var(--tt-brand-line); }

.x-scope .tt-btn { gap: 8px; transition: transform var(--d-instant) ease; }
.x-scope .tt-btn:active { transform: translateY(1px); }
.x-scope .tt-btn .x-ico { width: 16px; height: 16px; }

/* ---------- Verdict tag: a small punched tag, flat, brand eyelet ring (no fill) ---------- */
.x-verdict { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px;
  padding: 8px 12px 9px 38px; border-radius: 6px var(--r-2) var(--r-2) 6px; background: var(--tt-brand-tint); color: var(--tt-ink);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  /* the punched hole: shows whatever is behind the tag */
  -webkit-mask: radial-gradient(circle at 19px 50%, transparent 3.6px, var(--tt-ink) 4.2px);
          mask: radial-gradient(circle at 19px 50%, transparent 3.6px, var(--tt-ink) 4.2px); }
.x-verdict__eye { position: absolute; left: 12px; top: 50%; margin-top: -7px; }
.x-verdict__head { font-size: var(--x-15); font-weight: var(--w-semi); letter-spacing: -.01em; line-height: 24px; }
.x-verdict__stamp { justify-self: end; }
/* -soft stamp tints over the tinted tag would drop below 4.5:1, so stamps on the tag sit on an opaque surface chip */
.x-verdict .tt-stamp { background: var(--tt-surface); }
.x-verdict .tt-stamp--fake { background: color-mix(in oklab, var(--tt-fake) 10%, var(--tt-surface)); }
.x-verdict .tt-stamp--real { background: color-mix(in oklab, var(--tt-real) 10%, var(--tt-surface)); }
.x-verdict__stamp--start { justify-self: start; grid-column: 1 / -1; }
.x-verdict__line { grid-column: 1 / -1; font-size: var(--x-13); line-height: var(--x-lh); color: var(--tt-ink-2); }
.x-verdict__line .tt-num { color: var(--tt-ink); font-weight: var(--w-medium); }

/* ---------- Price block: two prices, same size and weight; words carry the comparison ---------- */
.x-price { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.x-price__k { font-size: var(--x-12); color: var(--tt-ink-3); line-height: 16px; }
.x-price__v { display: flex; align-items: center; gap: 6px; font-size: var(--x-20); font-weight: var(--w-semi); letter-spacing: -.015em; line-height: 26px; color: var(--tt-ink); }
.x-price__note { grid-column: 1 / -1; margin-top: 0; font-size: var(--x-13); line-height: 18px; color: var(--tt-ink-2); }
/* citron chip: a fill, always with a check icon, an edge and ink text */
.x-low { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 5px; border-radius: 6px; background: var(--tt-accent);
  color: var(--tt-accent-ink); box-shadow: inset 0 0 0 1px var(--tt-accent-edge); font-size: var(--x-12); font-weight: var(--w-semi); letter-spacing: 0; }
.x-low .x-ico { width: 13px; height: 13px; stroke-width: 2; }

/* ---------- Evidence (tt-leader rows) ---------- */
.x-ev { display: grid; }
.x-ev .tt-leader { gap: 6px; min-height: 26px; padding: 3px 0; font-size: var(--x-13); line-height: 18px; }
.x-ev .tt-leader > span { min-width: 0; flex: 0 1 auto; }
.x-ev .tt-leader > i { min-width: 6px; }
.x-ev .tt-leader > b { display: inline-flex; align-items: baseline; gap: 5px; flex: none; font-size: var(--x-12); font-weight: var(--w-medium); color: var(--tt-ink-2); white-space: nowrap; }
.x-ev .tt-leader > b .x-ico { width: 13px; height: 13px; align-self: center; stroke-width: 1.75; }
.x-ev__w { font-weight: var(--w-bold); letter-spacing: .04em; }
.x-ev__w--fake { color: var(--tt-fake-ink); }
.x-ev__w--real { color: var(--tt-real-ink); }
.x-ev__w--thin { color: var(--tt-thin-ink); }
.x-ev__w--none { color: var(--tt-ink-2); }

/* ---------- Chart: static, drawn once ---------- */
.x-chart { display: block; width: 100%; height: auto; overflow: visible; }
.x-chart text { font-family: var(--f-ui); font-size: 12px; font-feature-settings: "tnum" 1; fill: var(--tt-ink-3); }
.x-chart .c-fill { fill: var(--tt-chart-fill); stroke: none; }
.x-chart .c-line { fill: none; stroke: var(--tt-chart-line); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.x-chart .c-grid { stroke: var(--tt-chart-grid); stroke-width: 1; }
.x-chart .c-mrp { stroke: var(--tt-chart-mrp); stroke-width: 1.5; stroke-dasharray: 1.5 4; stroke-linecap: round; }
.x-chart .c-mrp-t { fill: var(--tt-fake-ink); font-weight: var(--w-medium); }
.x-chart .c-raise { stroke: var(--tt-fake); stroke-width: 1; }
.x-chart .c-raise-t { fill: var(--tt-ink-2); font-weight: var(--w-medium); }
.x-chart .c-low { fill: var(--tt-chart-low); stroke: var(--tt-ink); stroke-width: 1.5; }
.x-chart .c-low-t { fill: var(--tt-ink); font-weight: var(--w-semi); }
.x-chart .c-today { fill: var(--tt-brand); stroke: none; }
.x-chart .c-today-ring { fill: none; stroke: var(--tt-brand-line); stroke-width: 1.5; }
.x-chart .c-ax { fill: var(--tt-ink-3); }
.x-chart .c-drop { stroke: var(--tt-ink-3); stroke-width: 1; stroke-dasharray: 1 2.5; }

/* ---------- Engagement strip: History N of 30 days + local catches ---------- */
.x-strip { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--tt-line); background: var(--tt-surface); flex: none; }
.x-strip__hist { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--x-12); color: var(--tt-ink-2); white-space: nowrap; }
.x-strip__hist .tt-progress { width: 44px; height: 5px; flex: none; }
.x-strip__link { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 8px; border-radius: var(--r-1);
  font-size: var(--x-12); font-weight: var(--w-medium); color: var(--tt-brand); text-decoration: none; white-space: nowrap; }
.x-strip__link:hover { background: var(--tt-brand-soft); }
.x-strip__link .x-ico { width: 14px; height: 14px; }

/* "Planned, not in v1": design proposals for features src/ does not have yet */
.x-planned { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--r-1); border: 1px dashed var(--tt-line-2);
  font-size: var(--x-12); line-height: 1.4; color: var(--tt-ink-2); }
.x-planned .x-ico { width: 14px; height: 14px; margin-top: 1px; color: var(--tt-ink-3); }
.x-planned b { font-weight: var(--w-semi); color: var(--tt-ink); }
.x-planned-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: var(--r-1); border: 1px dashed var(--tt-line-2);
  font-size: var(--x-12); font-weight: var(--w-medium); color: var(--tt-ink-2); vertical-align: 1px; white-space: nowrap; }

/* ======================================================================================================
   2. Popup (popup.html): 380 x 600
   ====================================================================================================== */
.x-page { margin: 0; }
.x-popup { position: relative; width: 380px; height: 600px; display: flex; flex-direction: column; overflow: hidden; background: var(--tt-surface); color: var(--tt-ink); font-size: var(--x-13); line-height: var(--x-lh); }
.x-popup:has(.x-turn) { height: auto; max-height: 600px; }
.x-popup.is-fading { animation: x-fade var(--d-fast) linear both; }
@keyframes x-fade { from { opacity: 0; } }

.x-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 14px; flex: none; }
.x-head__spacer { flex: 1; }
.x-head__title { font-size: var(--x-15); font-weight: var(--w-semi); letter-spacing: -.01em; }

.x-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 0; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.x-prod { display: grid; gap: 2px; }
.x-prod__title { font-size: var(--x-13); line-height: 18px; color: var(--tt-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-prod__meta { display: flex; align-items: center; gap: 8px; font-size: var(--x-12); color: var(--tt-ink-3); line-height: 20px; }
.x-body > .x-price { margin-top: 2px; }
.x-body > .x-ev { margin-top: -2px; }
.x-body > .x-chart { flex: none; width: 348px; height: 120px; margin-top: -2px; }

/* Footer: pinned. The primary action ends at y = 556 (inside 560), the second row is secondary. */
.x-foot { flex: none; height: 88px; padding: 5px 16px 0; display: grid; grid-template-rows: 40px 32px; row-gap: 4px; border-top: 1px solid var(--tt-line); background: var(--tt-surface); }
.x-foot__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.x-foot__primary { flex: 1; min-width: 0; }
.x-popup .x-foot .tt-btn--sm, .x-popup .x-recap .tt-btn--sm { min-height: 32px; padding: 0 12px; }
.x-foot__meta { margin-left: auto; font-size: var(--x-12); color: var(--tt-ink-3); white-space: nowrap; }
.x-watching { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--tt-brand-soft); color: var(--tt-ink); font-weight: var(--w-semi); white-space: nowrap; }
.x-watching .x-ico { color: var(--tt-brand); }
.x-watching + .x-link { margin-left: -2px; }

/* ---------- Two-faced tag (DECISIONS D11). Front: one verdict, one number, one action. ---------- */
.x-iconbtn--count { display: inline-flex; align-items: center; width: auto; gap: 5px; text-decoration: none; color: var(--tt-ink-2); padding: 0 8px; font-size: var(--x-13); font-weight: var(--w-semi); }
.x-iconbtn--count .x-ico { width: 16px; height: 16px; }
.x-turn { padding: 6px 16px 14px; }
.x-face { display: flex; flex-direction: column; gap: 12px; }
.x-face[hidden] { display: none; }
.x-turn.is-turning .x-face { transform: scaleX(0); transition: transform 120ms var(--ease-out); }
.x-face { transform: scaleX(1); transition: transform 120ms var(--ease-out); transform-origin: 50% 50%; }
html.calm .x-face { transition: none; }

.x-tag { position: relative; display: grid; justify-items: start; gap: 0; padding: 30px 22px 22px; color: var(--tt-tag-ink); background: var(--tt-tag);
  border-radius: 10px; clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.x-tag__hole { position: absolute; left: 50%; top: 10px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--tt-surface); box-shadow: 0 0 0 2px var(--tt-accent); }
.x-tag .tt-stamp { margin-bottom: 10px; }
.x-tag__line { font-family: "Bricolage TT", var(--f-ui); font-size: 22px; font-weight: 700; line-height: 1.18; letter-spacing: -.015em; color: var(--tt-tag-ink); text-wrap: balance; }
.x-tag__mark { color: var(--tt-tag-ink); }
.x-tag__mark.is-in { color: var(--tt-accent-ink); }
.x-tag__k { margin-top: 16px; font-size: var(--x-12); font-weight: var(--w-medium); letter-spacing: .02em; color: var(--tt-tag-ink-2); }
.x-tag__v { font-size: 34px; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; color: var(--tt-accent); }
.x-tag__sub { margin-top: 4px; font-size: var(--x-13); color: var(--tt-tag-ink-2); }
.x-tag__sub .tt-num { color: var(--tt-tag-ink); font-weight: var(--w-semi); }
.x-tag__prog { width: 100%; margin-top: 8px; height: 6px; background: rgb(255 255 255 / .25); }
.x-tag__prog > i { background: var(--tt-accent); }

.x-act { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.x-cta { flex: 1; min-height: 48px; font-size: var(--x-15); }
.x-why { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--r-1);
  font-size: var(--x-13); font-weight: var(--w-semi); color: var(--tt-brand); }
.x-why:hover { background: var(--tt-brand-soft); }
.x-why .x-ico { width: 15px; height: 15px; }

/* Back: the proof, on paper */
.x-face--back { gap: 10px; }
.x-back__top { margin: -2px 0 -4px -8px; }
.x-back__h { font-family: "Bricolage TT", var(--f-ui); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; outline: none; }
.x-proof { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.x-proof__row { position: relative; padding-left: 22px; font-size: var(--x-13); line-height: 19px; }
.x-proof__row .x-ico { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; }
.x-proof__row .x-ev__w { font-size: var(--x-12); white-space: nowrap; margin-right: 6px; }
.x-proof__t { color: var(--tt-ink-2); }
.x-proof__t .tt-num { color: var(--tt-ink); font-weight: var(--w-medium); white-space: normal; }
.x-back__p { display: flex; gap: 8px; align-items: flex-start; font-size: var(--x-13); color: var(--tt-ink-2); }
.x-back__p .x-ico { margin-top: 1px; }
.x-back__foot { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: var(--x-12); color: var(--tt-ink-3); }
.x-back__foot .x-ico { width: 14px; height: 14px; }

/* Thin state: no chart, a single dot where the line will start */
.x-onedot { position: relative; height: 120px; flex: none; border-radius: var(--r-1); background: var(--tt-surface-2); display: grid; align-content: center; justify-items: start; padding: 0 16px; gap: 6px; }
.x-onedot__dot { position: absolute; right: 22px; top: 44px; width: 10px; height: 10px; border-radius: 50%; background: var(--tt-thin); box-shadow: 0 0 0 4px var(--tt-thin-soft); }
.x-onedot__track { position: absolute; left: 16px; right: 32px; top: 48px; border-top: 1.5px dashed var(--tt-line-2); }
.x-onedot__k { position: absolute; right: 16px; top: 62px; font-size: var(--x-12); color: var(--tt-ink-2); font-weight: var(--w-medium); }
.x-onedot__ax { position: absolute; left: 16px; bottom: 12px; font-size: var(--x-12); color: var(--tt-ink-3); }

/* No product */
.x-empty { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 16px; gap: 14px; }
.x-empty__art { width: 76px; height: 92px; margin: 8px 0 0; color: var(--tt-brand); }
.x-empty__art svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.x-empty__art .x-empty__tag { fill: var(--tt-brand-tint); }
.x-empty__h { font-size: var(--x-20); line-height: 1.25; font-weight: var(--w-semi); letter-spacing: -.02em; max-width: 300px; }
.x-empty__p { color: var(--tt-ink-2); }
.x-stores { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.x-stores li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--tt-surface-2); color: var(--tt-ink); font-size: var(--x-12); font-weight: var(--w-medium); }
.x-stores li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--tt-brand); }
.x-month { margin-top: auto; display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-2); background: var(--tt-surface-2); }
.x-month__top { display: flex; align-items: center; gap: 8px; font-size: var(--x-12); color: var(--tt-ink-3); }
.x-month__row { display: flex; gap: 18px; }
.x-month__row div { display: grid; }
.x-month__row b { font-size: var(--x-20); font-weight: var(--w-semi); line-height: 26px; letter-spacing: -.01em; }
.x-month__row span { font-size: var(--x-12); color: var(--tt-ink-2); }
.x-privacy { display: flex; align-items: center; gap: 6px; font-size: var(--x-12); color: var(--tt-ink-3); }
.x-privacy .x-ico { width: 14px; height: 14px; }

/* Sub-page header (recap, settings) */
.x-sub { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px 0 6px; flex: none; border-bottom: 1px solid var(--tt-line); }
.x-sub__t { font-size: var(--x-15); font-weight: var(--w-semi); letter-spacing: -.01em; }
.x-sub .tt-sample { margin-left: auto; margin-right: 6px; }

/* Weekly recap receipt */
.x-recap { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.x-receipt { position: relative; padding: 14px 16px 22px; background: var(--tt-surface-2); border-radius: var(--r-2) var(--r-2) 0 0;
  -webkit-mask: linear-gradient(var(--tt-ink), var(--tt-ink)) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 8px, transparent 4.5px, var(--tt-ink) 5px) bottom / 12px 8px repeat-x;
          mask: linear-gradient(var(--tt-ink), var(--tt-ink)) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 8px, transparent 4.5px, var(--tt-ink) 5px) bottom / 12px 8px repeat-x; }
.x-receipt__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px dashed var(--tt-line-2); }
.x-receipt__top b { font-size: var(--x-15); font-weight: var(--w-semi); }
.x-receipt__top span { font-size: var(--x-12); color: var(--tt-ink-3); }
.x-receipt .tt-leader { min-height: 30px; font-size: var(--x-13); }
.x-receipt .tt-leader > b { font-size: var(--x-15); }
.x-receipt__foot { margin-top: 6px; font-size: var(--x-12); color: var(--tt-ink-3); }
html.js .x-receipt.is-printing { animation: x-print var(--d-fast) var(--ease-out) both; }
@keyframes x-print { from { transform: translateY(-24px); opacity: 0; } }

.x-coll__h { display: flex; align-items: baseline; justify-content: space-between; }
.x-coll__h b { font-size: var(--x-13); font-weight: var(--w-semi); }
.x-coll__h span { font-size: var(--x-12); color: var(--tt-ink-3); }
.x-coll { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; padding-top: 10px; margin: 0; list-style: none; padding-left: 0; }
.x-coll li::after { content: ""; position: absolute; top: 0; left: -5px; right: -5px; border-top: 1.5px solid var(--tt-brand-line); }
.x-coll li:nth-child(3n+1)::after { left: 0; }
.x-coll li:nth-child(3n)::after { right: 0; }
.x-coll li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 4px 8px; border-radius: 4px 4px var(--r-1) var(--r-1); text-align: center;
  background: var(--tt-surface-2); font-size: var(--x-12); line-height: 1.25; color: var(--tt-ink); font-weight: var(--w-medium); }
.x-coll li::before { content: ""; position: absolute; z-index: 1; top: -4px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; border: 1.5px solid var(--tt-brand); background: var(--tt-surface); }
.x-coll li .x-ico { width: 18px; height: 18px; }
.x-coll li[data-k="fake"] .x-ico { color: var(--tt-fake-ink); }
.x-coll li[data-k="real"] .x-ico { color: var(--tt-real-ink); }
.x-coll li[data-k="brand"] .x-ico { color: var(--tt-brand); }
.x-coll li.is-locked { background: none; box-shadow: inset 0 0 0 1px var(--tt-line-2); color: var(--tt-ink-2); }
.x-coll li.is-locked .x-ico { color: var(--tt-ink-3); }
.x-coll li small { font-size: var(--x-12); color: var(--tt-ink-3); font-weight: var(--w-book); }
.x-recap__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }

/* Settings */
.x-set { flex: 1; overflow-y: auto; padding: 6px 16px 12px; }
.x-set__row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--tt-line); }
.x-set__row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.x-set__row b { font-size: var(--x-13); font-weight: var(--w-semi); }
.x-set__row span { font-size: var(--x-12); color: var(--tt-ink-2); line-height: 1.4; }
.x-switch { position: relative; width: 40px; height: 24px; flex: none; border-radius: var(--r-pill); background: var(--tt-surface-2); box-shadow: inset 0 0 0 1px var(--tt-line-2); }
.x-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--tt-ink-2); transition: transform var(--d-fast) var(--ease-out); }
.x-switch[aria-checked="true"] { background: var(--tt-brand); box-shadow: none; }
.x-switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--tt-brand-ink); }

/* Catch reveal: stamp lands (transform only; it is readable from the first frame) */
.x-land { transform: scale(1.12) rotate(-2deg); transform-origin: 100% 50%; }
.x-land.is-in { transform: none; transition: transform var(--d-mid) var(--ease-pop); }
html.calm .x-land { transform: none; }

/* ---------- Preview chrome around the popup (only when the window is wider than the popup) ---------- */
.x-dev { display: none; }
@media (min-width: 640px) {
  .x-page--popup { min-height: 100vh; display: flex; align-items: flex-start; gap: 32px; padding: 32px; background: var(--tt-bg); }
  .x-page--popup .x-popup { border-radius: 12px; box-shadow: var(--shadow-float); flex: none; }
  .x-dev { display: grid; gap: 14px; width: 260px; font-size: var(--x-13); color: var(--tt-ink-2); }
}
.x-dev__group { display: grid; gap: 6px; }
.x-dev__h { font-size: var(--x-12); font-weight: var(--w-semi); color: var(--tt-ink-3); letter-spacing: .06em; text-transform: uppercase; }
.x-dev__list { display: flex; flex-wrap: wrap; gap: 6px; }
.x-dev__list a, .x-dev__list button { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: var(--r-pill); background: var(--tt-surface); box-shadow: var(--shadow-1); color: var(--tt-ink); text-decoration: none; font-size: var(--x-12); }
.x-dev__list a[aria-current="page"], .x-dev__list button[aria-pressed="true"] { background: var(--tt-brand); color: var(--tt-brand-ink); box-shadow: none; }

/* ======================================================================================================
   3. In-page pill and panel (inside the shadow root on pill.html)
   ====================================================================================================== */
:host { all: initial; position: fixed; right: 24px; bottom: 24px; z-index: 2147483647; display: block; contain: layout style;
  font-family: var(--f-ui); font-size: var(--x-13); line-height: var(--x-lh); color: var(--tt-ink); -webkit-font-smoothing: antialiased; }
:host *, :host *::before, :host *::after { box-sizing: border-box; }
:where(.x-root) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:where(.x-root) :is(p, ul, ol) { margin: 0; padding: 0; }
:host svg { display: block; }
.x-root { font-family: var(--f-ui); font-size: var(--x-13); line-height: var(--x-lh); color: var(--tt-ink); -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: normal; }
:host :focus { outline: none; }
:host :focus-visible { outline: 2px solid var(--tt-brand); outline-offset: 2px; border-radius: 6px; }
:host .tt-btn { min-height: 40px; padding: 0 16px; font-size: var(--x-13); }
:host .tt-leader > i { border-bottom-color: var(--tt-line-2); }

/* Collapsed: Peep's dock on the page's right edge (src/ui/panel Dock). Orchid actions with a 2 px white ring in both OS
   themes; Peep sits on white with a 3 px ring in his verdict colour; the verdict slides out to his left. */
.x-dock { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform 260ms var(--ease-out, ease); }
.x-dock.is-tucked { transform: translateX(34px); }
.x-dock__btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tt-tag); color: var(--tt-tag-ink);
  box-shadow: 0 0 0 2px var(--tt-tag-chip), var(--shadow-float); transition: transform var(--d-fast) ease; }
.x-dock__btn .x-ico { width: 18px; height: 18px; }
.x-dock__btn:hover { transform: scale(1.08); }
.x-dock__tuck { width: 28px; height: 28px; background: #24103F; }
.x-dock__tuck .x-ico { width: 16px; height: 16px; }
.x-dock.is-tucked .x-dock__btn { visibility: hidden; }
.x-dock__peep { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tt-tag-chip);
  box-shadow: 0 0 0 3px var(--tt-tag), var(--shadow-float); transition: transform var(--d-fast) ease; }
.x-dock__peep:hover { transform: translateY(-2px); }
.x-dock__peep--bad { box-shadow: 0 0 0 3px var(--tt-flag-chip-ink), var(--shadow-float); }
.x-dock__face { width: 44px; height: 40px; }
.x-dock__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--tt-ink-3); box-shadow: 0 0 0 2px var(--tt-tag-chip); }
.x-dock__dot--bad { background: var(--tt-flag-chip-ink); }
.x-dock__dot--good { background: var(--tt-real); }
.x-dock__dot--accent { background: var(--tt-accent); }
.x-dock__badge { position: absolute; top: 1px; left: 1px; width: 12px; height: 12px; }
.x-dock.is-tucked .x-dock__badge, .x-dock.is-tucked .x-dock__say { display: none; }
.x-dock__say { position: absolute; right: calc(100% + 12px); top: 50%; display: flex; align-items: center; gap: 8px; height: 36px; margin-top: -18px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--tt-tag); color: var(--tt-tag-ink); box-shadow: 0 0 0 2px var(--tt-tag-chip), var(--shadow-float);
  font-size: var(--x-13); font-weight: var(--w-semi); white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(8px); transition: opacity 180ms ease, transform 180ms ease; }
.x-dock__say::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--tt-tag); transform: rotate(45deg); }
.x-dock__sub { padding-left: 8px; border-left: 1px solid color-mix(in srgb, var(--tt-tag-ink-2) 45%, transparent); color: var(--tt-tag-ink-2); font-weight: var(--w-medium); }
.x-dock__peep:hover .x-dock__say, .x-dock__peep:focus-visible .x-dock__say, .x-dock.is-say .x-dock__say { opacity: 1; transform: none; }
/* Focus: a white, aubergine, white ring outside each round control, so the cue reads on any shop colour. */
.x-dock__btn:focus-visible, .x-dock__peep:focus-visible { outline: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--tt-tag-chip), 0 0 0 4px var(--tt-accent-ink), 0 0 0 6px var(--tt-tag-chip), var(--shadow-float); }
@media (prefers-reduced-motion: reduce) { .x-dock, .x-dock__btn, .x-dock__peep, .x-dock__say { transition: none; } } /* inside the shadow root, html.calm does not reach */

/* Expanded panel: --tt-surface (follows the OS), radius 14, at most 320 px wide. Opens with 160 ms opacity + 8 px rise. */
.x-panel { width: 320px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--tt-surface); color: var(--tt-ink); box-shadow: 0 0 0 1px var(--tt-line), var(--shadow-float); }
.x-panel.is-opening { animation: x-rise var(--d-fast) var(--ease-out) both; }
@keyframes x-rise { from { opacity: 0; transform: translateY(8px); } }
.x-panel__head { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 14px; flex: none; border-bottom: 1px solid var(--tt-line); }
.x-panel__head .tt-sample { margin-left: auto; }
.x-panel__body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; }
.x-panel__prod { font-size: var(--x-12); color: var(--tt-ink-3); line-height: 1.4; }
.x-panel .x-price__v { font-size: var(--x-20); }
.x-panel .x-price { grid-template-columns: auto auto; justify-content: start; column-gap: 32px; }
.x-panel .x-verdict { grid-template-columns: 1fr; gap: 4px; }
.x-panel .x-verdict__stamp { order: -1; justify-self: start; }
.x-panel__note { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-1); background: var(--tt-surface-2); font-size: var(--x-12); color: var(--tt-ink-2); }
.x-panel__note .x-ico { width: 15px; height: 15px; color: var(--tt-ink-3); }
.x-panel__foot { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 14px; flex: none; }
.x-panel__foot .tt-btn { width: 100%; }
.x-panel__foot .x-row { display: flex; align-items: center; justify-content: space-between; }
.x-panel .x-ev .tt-leader { flex-wrap: wrap; }
.x-panel .x-ev .tt-leader > b { margin-left: auto; }

/* Coupon test inside the panel */
.x-cp__lede { font-size: var(--x-13); color: var(--tt-ink-2); }
.x-cp { display: grid; margin: 0; padding: 0; list-style: none; }
.x-cp li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; min-height: 48px; padding: 7px 0; border-top: 1px solid var(--tt-line); }
.x-cp li:last-child { border-bottom: 1px solid var(--tt-line); }
.x-cp__code { font-weight: var(--w-semi); letter-spacing: .06em; font-size: var(--x-13); }
.x-cp__sub { grid-column: 1 / -1; font-size: var(--x-12); color: var(--tt-ink-3); white-space: normal; }
.x-cp__res { grid-row: 1; grid-column: 2; }
.x-cp__wait { font-size: var(--x-12); color: var(--tt-ink-3); }
.x-cp li.is-trying .x-cp__wait { color: var(--tt-brand); font-weight: var(--w-semi); }
.x-cp__end { font-size: var(--x-13); font-weight: var(--w-medium); color: var(--tt-ink); }
.x-cp__end.is-in { animation: x-fade var(--d-mid) linear both; }

/* ======================================================================================================
   4. Mock shop pages (pill.html document). Shops' own colours come from the mock palette below.
   ====================================================================================================== */
:root[data-surface="ext"] body.x-page--shop { background: var(--tt-mock-white); color: var(--tt-mock-ink); font-size: 14px; line-height: 1.4; min-height: 100vh; }
.x-browser { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; background: var(--tt-mock-chrome); color: var(--tt-mock-chrome-ink); font-size: 13px; }
.x-browser__dots { display: flex; gap: 7px; }
.x-browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--tt-mock-chrome-dot); }
.x-browser__url { flex: 1; max-width: 640px; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r-pill); background: var(--tt-mock-white); color: var(--tt-mock-chrome-ink); }
.x-browser__url .x-ico { width: 14px; height: 14px; }
.x-browser__ext { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.x-browser__ext select, .x-browser__ext button { height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--tt-mock-line); background: var(--tt-mock-white); color: var(--tt-mock-chrome-ink); font: 500 12px var(--f-ui); }
.x-browser__ext label { font-size: 12px; }
.x-browser__ext[hidden] { display: none; }

.x-skel { display: block; height: 8px; border-radius: 4px; background: var(--tt-mock-skel); }
.x-shop { min-height: calc(100vh - 40px); background: var(--tt-mock-white); }
.x-shop p { margin: 0; }
.x-shop__crumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--tt-mock-ink-2); }
.x-shop .tt-sample { font: 600 12px/1 var(--f-ui); letter-spacing: .06em; }
.x-shop__crumb .tt-sample { color: var(--tt-mock-ink-2); border-color: var(--tt-mock-ink-2); font-size: 12px; font-family: var(--f-ui); font-weight: 600; letter-spacing: .06em; }
.x-shop__img { display: grid; place-items: center; border-radius: 8px; }
.x-shop__img svg { width: 58%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.x-shop__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.x-shop__thumbs i { aspect-ratio: 1; border-radius: 6px; }
.x-shop__t { font-size: 22px; line-height: 1.3; font-weight: 500; }
.x-shop__mrp s { text-decoration-thickness: 1px; }
.x-shop__lines { display: grid; gap: 10px; margin-top: 18px; }

/* Shop A: navy header, white page, yellow and orange buy buttons, red deal badge */
.x-shop--a .x-shop__top { height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 20px; background: var(--tt-mock-a-head); }
.x-shop--a .x-shop__logo { color: var(--tt-mock-white); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.x-shop--a .x-shop__search { flex: 1; height: 40px; display: flex; border-radius: 6px; overflow: hidden; background: var(--tt-mock-white); }
.x-shop--a .x-shop__search::after { content: ""; margin-left: auto; width: 48px; background: var(--tt-mock-a-search); }
.x-shop--a .x-shop__acct { width: 90px; height: 12px; border-radius: 3px; background: var(--tt-mock-a-sub-ink); }
.x-shop--a .x-shop__nav { height: 38px; display: flex; align-items: center; gap: 22px; padding: 0 20px; background: var(--tt-mock-a-sub); }
.x-shop--a .x-shop__nav i { width: 70px; height: 9px; border-radius: 3px; background: var(--tt-mock-a-sub-ink); }
.x-shop--a .x-shop__main { display: grid; grid-template-columns: 520px 1fr 300px; gap: 36px; padding: 18px 36px 36px; }
.x-shop--a .x-shop__img { aspect-ratio: 1; background: var(--tt-mock-a-well); color: var(--tt-mock-a-ink-2); }
.x-shop--a .x-shop__thumbs i { background: var(--tt-mock-a-well); }
.x-shop--a .x-shop__info { display: grid; gap: 10px; align-content: start; padding-top: 22px; }
.x-shop--a .x-shop__store { color: var(--tt-mock-a-link); font-size: 14px; }
.x-shop--a .x-shop__deal { justify-self: start; padding: 5px 9px; border-radius: 3px; background: var(--tt-mock-a-deal); color: var(--tt-mock-white); font-size: 13px; font-weight: 700; }
.x-shop--a .x-shop__price { display: flex; align-items: flex-start; gap: 12px; padding-top: 6px; border-top: 1px solid var(--tt-mock-a-line); }
.x-shop--a .x-shop__off { color: var(--tt-mock-a-deal); font-size: 28px; font-weight: 300; }
.x-shop--a .x-shop__now { font-size: 30px; font-weight: 500; }
.x-shop--a .x-shop__mrp { font-size: 14px; color: var(--tt-mock-a-ink-2); }
.x-shop--a .x-shop__claim { font-size: 14px; color: var(--tt-mock-a-deal); font-weight: 600; }
.x-shop--a .x-shop__offer { font-size: 14px; padding: 10px 12px; border: 1px solid var(--tt-mock-a-line); border-radius: 8px; }
.x-shop--a .x-shop__offer b { display: block; }
.x-shop--a .x-shop__box { align-self: start; margin-top: 22px; display: grid; gap: 12px; padding: 18px; border: 1px solid var(--tt-mock-a-line); border-radius: 8px; }
.x-shop--a .x-shop__box b { font-size: 24px; font-weight: 500; }
.x-shop--a .x-shop__stock { color: var(--tt-mock-a-green); font-size: 16px; }
.x-shop--a .x-shop__btn { height: 38px; display: grid; place-items: center; border-radius: var(--r-pill); font-size: 14px; color: var(--tt-mock-a-ink); }
.x-shop--a .x-shop__btn--1 { background: var(--tt-mock-a-btn); }
.x-shop--a .x-shop__btn--2 { background: var(--tt-mock-a-btn-2); }
.x-shop--a .x-skel { background: var(--tt-mock-a-well); }

/* Shop B: blue header with yellow accents, grey page, orange buy buttons, green offers */
.x-shop--b { background: var(--tt-mock-b-bg); }
.x-shop--b .x-shop__top { height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 140px; background: var(--tt-mock-b-head); }
.x-shop--b .x-shop__logo { color: var(--tt-mock-white); font-weight: 700; font-style: italic; font-size: 20px; border-bottom: 3px solid var(--tt-mock-b-yellow); line-height: 1.1; }
.x-shop--b .x-shop__search { flex: 1; max-width: 560px; height: 38px; border-radius: 4px; background: var(--tt-mock-white); }
.x-shop--b .x-shop__login { width: 110px; height: 34px; border-radius: 4px; background: var(--tt-mock-white); }
.x-shop--b .x-shop__cart { width: 70px; height: 12px; border-radius: 3px; background: var(--tt-mock-b-yellow); }
.x-shop--b .x-shop__card { margin: 12px 140px 0; padding: 20px 24px; background: var(--tt-mock-white); display: grid; grid-template-columns: 440px 1fr; gap: 32px; min-height: 760px; }
.x-shop--b .x-shop__img { aspect-ratio: 1; border: 1px solid var(--tt-mock-b-line); color: var(--tt-mock-b-ink-2); }
.x-shop--b .x-shop__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.x-shop--b .x-shop__btns span { height: 52px; display: grid; place-items: center; color: var(--tt-mock-white); font-weight: 600; font-size: 15px; border-radius: 2px; }
.x-shop--b .x-shop__btns span:first-child { background: var(--tt-mock-b-btn); }
.x-shop--b .x-shop__btns span:last-child { background: var(--tt-mock-b-btn-2); }
.x-shop--b .x-shop__info { display: grid; gap: 10px; align-content: start; padding-top: 8px; }
.x-shop--b .x-shop__t { font-size: 18px; font-weight: 400; color: var(--tt-mock-b-ink); }
.x-shop--b .x-shop__sp { color: var(--tt-mock-b-green); font-size: 14px; font-weight: 600; }
.x-shop--b .x-shop__price { display: flex; align-items: baseline; gap: 12px; }
.x-shop--b .x-shop__now { font-size: 28px; font-weight: 600; }
.x-shop--b .x-shop__mrp { font-size: 16px; color: var(--tt-mock-b-ink-2); }
.x-shop--b .x-shop__off { font-size: 16px; color: var(--tt-mock-b-green); font-weight: 600; }
.x-shop--b .x-shop__claim { justify-self: start; padding: 4px 10px; border-radius: 3px; background: var(--tt-mock-b-yellow-soft); border: 1px solid var(--tt-mock-b-yellow); font-size: 13px; font-weight: 600; }
.x-shop--b .x-shop__offers { display: grid; gap: 8px; font-size: 14px; margin-top: 6px; }
.x-shop--b .x-shop__offers i { font-style: normal; font-weight: 600; color: var(--tt-mock-b-green); margin-right: 6px; }
.x-shop--b .x-skel { background: var(--tt-mock-b-bg); }

/* Shop C: white page, plum logo, magenta-pink badges and buttons, sticky bottom bar */
.x-shop--c .x-shop__top { height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 36px; border-bottom: 1px solid var(--tt-mock-c-line); box-shadow: 0 4px 12px -8px var(--tt-mock-c-line); }
.x-shop--c .x-shop__logo { color: var(--tt-mock-c-plum); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.x-shop--c .x-shop__navc { display: flex; gap: 22px; }
.x-shop--c .x-shop__navc i { width: 56px; height: 10px; border-radius: 3px; background: var(--tt-mock-c-ink); opacity: .7; }
.x-shop--c .x-shop__search { flex: 1; max-width: 480px; height: 40px; margin-left: auto; border-radius: 6px; background: var(--tt-mock-c-well-2); }
.x-shop--c .x-shop__ic { width: 26px; height: 26px; border-radius: 50%; background: var(--tt-mock-c-pink); }
.x-shop--c .x-shop__main { display: grid; grid-template-columns: 600px 1fr; gap: 40px; padding: 20px 36px 120px; }
.x-shop--c .x-shop__gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x-shop--c .x-shop__img { aspect-ratio: 3 / 4; background: var(--tt-mock-c-well); color: var(--tt-mock-c-btn); }
.x-shop--c .x-shop__info { display: grid; gap: 12px; align-content: start; }
.x-shop--c .x-shop__brand { font-size: 22px; font-weight: 700; color: var(--tt-mock-c-ink); }
.x-shop--c .x-shop__t { font-size: 18px; color: var(--tt-mock-c-ink-2); font-weight: 400; }
.x-shop--c .x-shop__price { display: flex; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--tt-mock-c-line); }
.x-shop--c .x-shop__now { font-size: 26px; font-weight: 700; color: var(--tt-mock-c-ink); }
.x-shop--c .x-shop__mrp { font-size: 18px; color: var(--tt-mock-c-ink-2); }
.x-shop--c .x-shop__off { font-size: 18px; color: var(--tt-mock-c-pink-ink); font-weight: 700; }
.x-shop--c .x-shop__claim { justify-self: start; padding: 5px 12px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--tt-mock-c-pink), var(--tt-mock-c-pink-2)); color: var(--tt-mock-white); font-size: 13px; font-weight: 700; }
.x-shop--c .x-shop__green { color: var(--tt-mock-c-green); font-weight: 600; font-size: 14px; }
.x-shop--c .x-shop__sizes { display: flex; gap: 10px; }
.x-shop--c .x-shop__sizes span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--tt-mock-c-line-2); font-size: 14px; font-weight: 600; }
.x-shop--c .x-shop__sizes span:nth-child(2) { border-color: var(--tt-mock-c-pink); color: var(--tt-mock-c-pink-ink); }
.x-shop--c .x-shop__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.x-shop--c .x-shop__btns span { height: 54px; display: grid; place-items: center; border-radius: 6px; font-weight: 700; font-size: 15px; }
.x-shop--c .x-shop__btns span:first-child { background: var(--tt-mock-c-pink); color: var(--tt-mock-white); }
.x-shop--c .x-shop__btns span:last-child { border: 1px solid var(--tt-mock-c-line-2); color: var(--tt-mock-c-ink); }
.x-shop--c .x-shop__sticky { position: fixed; left: 0; right: 0; bottom: 0; height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 36px; background: var(--tt-mock-white); border-top: 1px solid var(--tt-mock-c-line); box-shadow: 0 -6px 16px -10px var(--tt-mock-c-line-2); }
.x-shop--c .x-shop__sticky b { font-size: 18px; }
.x-shop--c .x-shop__sticky span { margin-left: auto; width: 220px; height: 46px; border-radius: 6px; background: var(--tt-mock-c-pink); display: grid; place-items: center; color: var(--tt-mock-white); font-weight: 700; }
.x-shop--c .x-skel { background: var(--tt-mock-c-well-2); }

.x-shop--a .x-shop__foot { margin-top: 8px; background: var(--tt-mock-a-head); }
.x-shop--a .x-shop__backtop { height: 48px; display: grid; place-items: center; background: var(--tt-mock-a-sub-2); color: var(--tt-mock-white); font-size: 13px; }
.x-shop--a .x-shop__footin { display: grid; grid-template-columns: repeat(4, 160px); justify-content: center; gap: 80px; padding: 32px 0 80px; }
.x-shop--a .x-shop__footin i { height: 10px; border-radius: 3px; background: var(--tt-mock-a-sub-ink); }
.x-shop--b .x-shop__card { min-height: 0; }
.x-shop--b .x-shop__promo { margin: 12px 0 0; height: 220px; padding-left: 180px !important; display: flex; align-items: center; gap: 24px; padding: 0 40px; background: var(--tt-mock-b-head); color: var(--tt-mock-white); }
.x-shop--b .x-shop__promo b { font-size: 28px; font-weight: 800; font-style: italic; color: var(--tt-mock-b-yellow); }
.x-shop--b .x-shop__promo span { font-size: 16px; }
.x-shop--b .x-shop__promo i { margin-left: auto; margin-right: 140px; width: 260px; height: 96px; border-radius: 8px; background: var(--tt-mock-b-yellow); }
.x-shop--c .x-shop__banner { position: fixed; left: 0; right: 0; bottom: 72px; height: 76px; display: flex; align-items: center; gap: 24px; padding: 0 36px;
  background: linear-gradient(90deg, var(--tt-mock-c-plum), var(--tt-mock-c-pink) 55%, var(--tt-mock-c-pink-2)); color: var(--tt-mock-white); }
.x-shop--c .x-shop__banner b { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.x-shop--c .x-shop__banner span { font-size: 15px; }

/* Cart / checkout page (coupons variant), shop A palette */
.x-cart { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 24px 36px; background: var(--tt-mock-b-bg); min-height: calc(100vh - 140px); }
.x-cart__list, .x-cart__sum { background: var(--tt-mock-white); padding: 22px 24px; border-radius: 8px; align-self: start; }
.x-cart__h { font-size: 24px; font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--tt-mock-a-line); }
.x-cart__item { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--tt-mock-a-line); }
.x-cart__item .x-shop__img { aspect-ratio: 1; background: var(--tt-mock-a-well); color: var(--tt-mock-a-ink-2); }
.x-cart__item b { font-size: 18px; font-weight: 600; }
.x-cart__sum { display: grid; gap: 12px; font-size: 15px; }
.x-cart__row { display: flex; justify-content: space-between; }
.x-cart__row--total { padding-top: 12px; border-top: 1px solid var(--tt-mock-a-line); font-weight: 700; font-size: 18px; }
.x-cart__code { display: flex; gap: 8px; }
.x-cart__code span { flex: 1; height: 40px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--tt-mock-a-line-2); border-radius: 6px; color: var(--tt-mock-a-ink-2); font-size: 14px; }
.x-cart__code i { width: 90px; height: 40px; border-radius: 6px; background: var(--tt-mock-a-head); color: var(--tt-mock-white); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.x-cart__btn { height: 46px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--tt-mock-a-btn); color: var(--tt-mock-a-ink); }

/* ======================================================================================================
   PROPOSED SHARED: mock-shop palette for tokens.css.
   These depict the loud colours of real Indian store pages (Amazon-like, Flipkart-like, Meesho/Myntra-like)
   so the pill can be tested against them. They are never Smirktag UI colours, are constant in both themes
   (the shop page does not follow Smirktag's theme), and should move to tokens.css under a "mock shop" block
   (Builder C's style guide and Builder A's #demo frame could reuse them).
   ====================================================================================================== */
:root, [data-theme="dark"] {
  --tt-mock-white: #FFFFFF;
  --tt-mock-ink: #0F1111;
  --tt-mock-ink-2: #565959;
  --tt-mock-line: #D5D9D9;
  --tt-mock-skel: #EEEEF1;
  --tt-mock-chrome: #DEE1E6;
  --tt-mock-chrome-ink: #3C4043;
  --tt-mock-chrome-dot: #B9BDC4;
  /* Shop A (Amazon-like) */
  --tt-mock-a-head: #131921;  --tt-mock-a-sub: #232F3E;  --tt-mock-a-sub-2: #37475A;  --tt-mock-a-sub-ink: #8F98A3;
  --tt-mock-a-ink: #0F1111;   --tt-mock-a-ink-2: #565959; --tt-mock-a-link: #007185;
  --tt-mock-a-deal: #CC0C39;  --tt-mock-a-btn: #FFD814;   --tt-mock-a-btn-2: #FFA41C; --tt-mock-a-search: #FEBD69;
  --tt-mock-a-line: #D5D9D9;  --tt-mock-a-line-2: #888C8C; --tt-mock-a-well: #F3F3F3;  --tt-mock-a-green: #007600;
  /* Shop B (Flipkart-like) */
  --tt-mock-b-head: #2874F0;  --tt-mock-b-yellow: #FFE11B; --tt-mock-b-yellow-soft: #FFFBE0; --tt-mock-b-bg: #F1F3F6;
  --tt-mock-b-ink: #212121;   --tt-mock-b-ink-2: #717171;  --tt-mock-b-line: #F0F0F0;
  --tt-mock-b-green: #2E7D32; --tt-mock-b-btn: #FF9F00;    --tt-mock-b-btn-2: #FB641B;
  /* Shop C (Meesho / Myntra-like) */
  --tt-mock-c-plum: #570D48;  --tt-mock-c-pink: #F43397;   --tt-mock-c-pink-2: #FF3F6C; --tt-mock-c-pink-ink: #D1206F;
  --tt-mock-c-btn: #9F2089;   --tt-mock-c-ink: #282C3F;    --tt-mock-c-ink-2: #696E79;
  --tt-mock-c-line: #EAEAEC;  --tt-mock-c-line-2: #BFC0C6; --tt-mock-c-well: #FDEFF6;  --tt-mock-c-well-2: #F5F5F6; --tt-mock-c-green: #03A685;
}
