/* ==========================================================================
   IPMCKart Studio — premium layer
   ──────────────────────────────────────────────────────────────────────────
   Loaded AFTER css/merchant-tokens.css and css/merchant-ui.css by every
   merchant-studio*.html page. It does two jobs:

     1. UPLIFT   — raises the shared studio primitives (.m-card, .m-stat,
                   .m-page-head, .m-rail, .m-btn, .m-pill) onto the same visual
                   language as the merchant operations console
                   (merchant-admin.css): warm canvas, hairline rings, diffused
                   elevation, mono numerals, ambient light.
     2. ADD      — gives the studio its own composition primitives
                   (.st-head, .st-bento, .st-tile, .st-stat, .st-panel,
                   .st-split, .st-reveal) so a page can be laid out as a
                   decision surface instead of a stack of plain boxes.

   Rules followed here (nothing else in the studio depends on them):
     · Colour, spacing, radii, type scale and easings all come from
       merchant-tokens.css. No new palette, no new font family.
     · Only transform/opacity animate. No animation of top/left/width/height.
     · Backdrop blur is used on fixed/sticky chrome only, never on a scrolling
       content container.
     · Every asymmetric layout collapses to one column on small screens.
   ========================================================================== */

:root {
  /* One extra easing: a long, heavy settle used for surfaces and reveals.
     merchant-tokens.css keeps its own --ease/--ease-out for legacy widgets. */
  --st-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --st-rise: cubic-bezier(0.16, 1, 0.3, 1);
  --st-ambient: rgba(227, 6, 19, 0.055);
}

/* --------------------------------------------------------------------------
   1. Ambient ground
   The studio canvas is no longer a flat grey field: two neutral washes plus one
   faint brand bloom, painted on a FIXED inert layer so scrolling never
   re-rasterises it, and a grain layer that keeps large surfaces from reading
   as flat vector. Both are pointer-events:none and sit behind all content.
   -------------------------------------------------------------------------- */
.mrx {
  position: relative;
  isolation: isolate;
}

.mrx::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(105% 62% at 8% -6%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(58% 46% at 100% 4%, var(--st-ambient) 0%, rgba(227, 6, 19, 0) 68%),
    radial-gradient(70% 52% at 62% 108%, rgba(22, 25, 29, 0.045) 0%, rgba(22, 25, 29, 0) 66%);
}

.mrx::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.075'/%3E%3C/svg%3E");
}

/* The rail and page surfaces are opaque, so they need to sit in front of the
   ambient layers rather than showing them through. */
.mrx .m-studio { background-color: transparent; }

/* --------------------------------------------------------------------------
   2. Shared primitives — uplift
   -------------------------------------------------------------------------- */

/* Card: hairline ring + diffused elevation + an inner top highlight, so the
   surface reads as a machined plate instead of a flat white rectangle. The
   padding stays on the card (the JS templates build its children directly). */
.mrx .m-card {
  border-radius: var(--r-lg);
  background-image: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  box-shadow:
    0 0 0 1px rgba(22, 25, 29, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px -26px rgba(22, 25, 29, 0.22);
  padding: var(--card-pad);
  transition: box-shadow var(--t-slow) var(--st-spring), transform var(--t-slow) var(--st-spring);
}

.mrx .m-card--primary {
  box-shadow:
    0 0 0 1px rgba(22, 25, 29, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 26px 60px -30px rgba(22, 25, 29, 0.28);
}

.mrx .m-card--flat {
  box-shadow: 0 0 0 1px var(--line);
  background-image: none;
}

/* Stat block: same treatment, with the numerals in the mono family so columns
   of figures line up. */
.mrx .m-stat {
  border-radius: var(--r-lg);
  background-image: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  box-shadow:
    0 0 0 1px rgba(22, 25, 29, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px -28px rgba(22, 25, 29, 0.2);
  gap: var(--s-3);
}

.mrx .m-stat__value {
  font-family: var(--font-mono);
  font-size: var(--fs-30);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mrx .m-stat__label {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Page head: eyebrow → display title → sub → actions. The eyebrow is the only
   place uppercase tracking is used, which is what makes the head read as
   editorial rather than as a dashboard title bar. */
.mrx .m-page-head {
  align-items: flex-start;
  gap: var(--s-6);
  margin-bottom: var(--s-10);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.mrx .m-page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 var(--s-2);
}

.mrx .m-page-head p {
  font-size: var(--fs-15);
  line-height: var(--lh-body);
  color: var(--muted);
  max-width: 68ch;
}

/* Buttons: pill geometry with an optional nested icon disc
   (<button class="m-btn m-btn--primary"><span class="m-btn__ic">…</span>Label</button>).
   The disc is what turns a flat rectangle into a deliberate object. */
.mrx .m-btn {
  border-radius: var(--r-pill);
  transition:
    background-color var(--t-base) var(--st-spring),
    border-color var(--t-base) var(--st-spring),
    color var(--t-base) var(--st-spring),
    transform var(--t-base) var(--st-spring),
    box-shadow var(--t-base) var(--st-spring);
}

.mrx .m-btn--sm { border-radius: var(--r-pill); }
.mrx .m-btn--md { border-radius: var(--r-pill); }
.mrx .m-btn--lg { border-radius: var(--r-pill); }

.mrx .m-btn__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: var(--fs-11);
  transition: transform var(--t-base) var(--st-spring), background-color var(--t-base) var(--st-spring);
}

.mrx .m-btn--sm .m-btn__ic { width: 20px; height: 20px; flex-basis: 20px; font-size: var(--fs-11); }
.mrx .m-btn--secondary .m-btn__ic,
.mrx .m-btn--quiet .m-btn__ic { background-color: rgba(22, 25, 29, 0.07); }

.mrx .m-btn:hover .m-btn__ic { transform: translateX(2px) scale(1.06); }
.mrx .m-btn--primary:hover { box-shadow: 0 14px 28px -14px rgba(22, 25, 29, 0.5); }

/* Pills carry a soft tinted fill rather than a flat grey, so state is legible
   at a glance without adding another hue to the palette. */
.mrx .m-pill {
  border-radius: var(--r-pill);
  padding: 3px 11px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 1px rgba(22, 25, 29, 0.06) inset;
}

/* Rail polish: stronger brand mark, a calmer active row, and a moving accent
   bar. The rail keeps its 44px targets and stays sticky/top-anchored. */
.mrx .m-rail {
  background-image: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  box-shadow: 1px 0 0 var(--line), 24px 0 60px -48px rgba(22, 25, 29, 0.35);
}

.mrx .m-rail__brand-mark {
  border-radius: var(--r-md);
  background-image: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 55%, #000 100%);
  box-shadow: 0 10px 22px -12px rgba(22, 25, 29, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mrx .m-rail__link {
  transition:
    background-color var(--t-base) var(--st-spring),
    color var(--t-base) var(--st-spring),
    transform var(--t-base) var(--st-spring);
}

.mrx .m-rail__link:hover { transform: translateX(2px); }

.mrx .m-rail__link[aria-current="page"] {
  background-color: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -18px rgba(22, 25, 29, 0.5);
}

.mrx .m-rail__link[aria-current="page"]::before {
  top: 12px;
  bottom: 12px;
  width: 3px;
  box-shadow: 0 0 12px rgba(227, 6, 19, 0.55);
}

.mrx .m-rail__link i {
  transition: transform var(--t-base) var(--st-spring), color var(--t-base) var(--st-spring);
}

.mrx .m-rail__link:hover i { transform: scale(1.08); }

/* Empty / loading states stop shouting: a quiet tinted plate with generous
   vertical rhythm reads as "nothing here yet" rather than as a broken box. */
.mrx .m-studio__page { padding: var(--s-10) var(--s-8) var(--s-16); }

@media (max-width: 1079px) {
  .mrx .m-studio__page { padding: var(--s-8) var(--s-5) var(--s-16); }
}

/* --------------------------------------------------------------------------
   3. Composition primitives — new
   -------------------------------------------------------------------------- */

/* Eyebrow label. Replaces the banned "SECTION 01"-style meta labels with a
   factual, lowercase-ish context tag that earns its space. */
.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-3);
}

.st-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background-color: var(--accent);
  opacity: 0.7;
}

/* Bento: 12 columns, dense flow so no cell is ever left empty. */
.st-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--s-5);
  align-items: stretch;
}

.st-bento--tight { gap: var(--s-4); }

.st-sp2 { grid-column: span 2; }
.st-sp3 { grid-column: span 3; }
.st-sp4 { grid-column: span 4; }
.st-sp5 { grid-column: span 5; }
.st-sp6 { grid-column: span 6; }
.st-sp7 { grid-column: span 7; }
.st-sp8 { grid-column: span 8; }
.st-sp9 { grid-column: span 9; }
.st-sp12 { grid-column: span 12; }
.st-r2 { grid-row: span 2; }

@media (max-width: 1180px) {
  .st-sp7, .st-sp8, .st-sp9 { grid-column: span 12; }
  .st-sp5, .st-sp6 { grid-column: span 12; }
}

@media (max-width: 900px) {
  .st-sp3, .st-sp4 { grid-column: span 6; }
}

@media (max-width: 620px) {
  .st-bento { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .st-sp2, .st-sp3, .st-sp4, .st-sp5, .st-sp6, .st-sp7, .st-sp8, .st-sp9, .st-sp12 { grid-column: 1 / -1; }
  .st-r2 { grid-row: auto; }
}

/* Tile: the studio's double-bezel surface.
   .st-tile is the outer shell (tinted, hairline ring, big radius);
   .st-tile__core is the inner plate with its own background, inner highlight
   and a concentric smaller radius. Nothing sits flat on the canvas. */
.st-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: rgba(22, 25, 29, 0.028);
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px rgba(22, 25, 29, 0.06);
  padding: 6px;
  min-width: 0;
  transition: transform var(--t-slow) var(--st-spring), box-shadow var(--t-slow) var(--st-spring);
}

.st-tile__core {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: calc(var(--r-xl) - 6px);
  background-image: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 30px -24px rgba(22, 25, 29, 0.35);
  min-width: 0;
}

.st-tile--ink .st-tile__core {
  background-image: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 60%, #0b0d10 100%);
  color: #f2f3f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.st-tile--ink .st-tile__title,
.st-tile--ink .st-tile__value { color: #ffffff; }

.st-tile--ink .st-tile__label,
.st-tile--ink .st-tile__note { color: rgba(255, 255, 255, 0.62); }

.st-tile--accent .st-tile__core {
  background-image: linear-gradient(150deg, #ffffff 0%, var(--accent-soft) 100%);
}

.st-tile--hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(22, 25, 29, 0.09), 0 30px 60px -34px rgba(22, 25, 29, 0.42);
}

.st-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.st-tile__title {
  margin: 0;
  font-size: var(--fs-17);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  line-height: var(--lh-snug);
}

.st-tile__label {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.st-tile__note {
  margin: 0;
  font-size: var(--fs-13);
  line-height: var(--lh-body);
  color: var(--muted);
}

/* Stat tile: mono numeral, unit kept small, label above. */
.st-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.st-stat__unit {
  font-family: var(--font-sys);
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--muted-2);
  margin-left: 6px;
  letter-spacing: 0;
}

.st-stat__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* Icon plate used at the top of a tile. */
.st-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--r-md);
  background-image: linear-gradient(160deg, var(--canvas-2), var(--canvas));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(22, 25, 29, 0.06);
  color: var(--ink-2);
  font-size: var(--fs-15);
}

.st-icon--accent {
  background-image: linear-gradient(160deg, var(--accent-soft), #fdf3f3);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px var(--accent-ring);
}

.st-icon--ink {
  background-image: linear-gradient(150deg, var(--ink-2), var(--ink));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.st-icon--lg { width: 52px; height: 52px; flex-basis: 52px; border-radius: var(--r-lg); font-size: var(--fs-20); }

/* Definition list used inside tiles (facts, timetable, identity). */
.st-facts {
  display: grid;
  gap: var(--s-3);
  margin: 0;
}

.st-fact {
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
}

.st-fact:last-child { border-bottom: 0; padding-bottom: 0; }

.st-fact dt {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.st-fact dd {
  margin: 0;
  font-size: var(--fs-14);
  line-height: var(--lh-snug);
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Action list: one row per next step, with a nested chevron disc. */
.st-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.st-action {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  background-color: transparent;
  box-shadow: 0 0 0 1px transparent;
  transition: background-color var(--t-base) var(--st-spring), box-shadow var(--t-base) var(--st-spring), transform var(--t-base) var(--st-spring);
}

.st-action:hover {
  background-color: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(22, 25, 29, 0.4);
  transform: translateX(3px);
}

.st-action__text { flex: 1; min-width: 0; }
.st-action__text b { display: block; font-size: var(--fs-14); font-weight: 600; line-height: var(--lh-snug); }
.st-action__text span { display: block; font-size: var(--fs-12); color: var(--muted); margin-top: 1px; }

.st-action__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background-color: var(--canvas-2);
  color: var(--ink-3);
  font-size: var(--fs-11);
  transition: transform var(--t-base) var(--st-spring), background-color var(--t-base) var(--st-spring), color var(--t-base) var(--st-spring);
}

.st-action:hover .st-action__chev {
  background-color: var(--ink);
  color: #fff;
  transform: translateX(3px);
}

/* Split: sticky aside next to a long working column (the storefront editor).
   Collapses to a single column well before the aside would be cramped. */
.st-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 336px);
  gap: var(--s-6);
  align-items: start;
}

@media (max-width: 1080px) {
  .st-split { grid-template-columns: minmax(0, 1fr); }
}

.st-sticky {
  position: sticky;
  top: var(--s-6);
}

@media (max-width: 1080px) {
  .st-sticky { position: static; }
}

/* Section divider that carries a label without looking like a form legend. */
.st-rule {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-8) 0 var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.st-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--line);
}

/* --------------------------------------------------------------------------
   4. Motion — entry reveals
   .st-reveal is VISIBLE by default, so the page is complete even with no JS.
   js/merchant-studio-ui.js adds .st-armed (which is what actually hides the
   element) and then reveals it on intersection. Only opacity and transform
   move — never a layout property — and the whole effect is skipped for
   reduced-motion users. */
.st-reveal.st-armed {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--st-rise), transform 620ms var(--st-rise);
}

.st-reveal.st-armed.is-in {
  opacity: 1;
  transform: none;
}

/* Stagger, driven by a data attribute so the observer does not touch styles. */
.st-reveal[data-st-step="1"] { transition-delay: 70ms; }
.st-reveal[data-st-step="2"] { transition-delay: 140ms; }
.st-reveal[data-st-step="3"] { transition-delay: 210ms; }
.st-reveal[data-st-step="4"] { transition-delay: 280ms; }
.st-reveal[data-st-step="5"] { transition-delay: 350ms; }
.st-reveal[data-st-step="6"] { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .st-reveal.st-armed { opacity: 1; transform: none; transition: none; }
  .st-tile--hover:hover,
  .st-action:hover,
  .mrx .m-rail__link:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   5. Preview frame — a miniature of the live storefront
   Used by the Business profile editor so the merchant sees the effect of a
   background choice instead of reading a swatch label.
   -------------------------------------------------------------------------- */
.st-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(22, 25, 29, 0.08), 0 24px 50px -32px rgba(22, 25, 29, 0.45);
  background-color: #050505;
  transition: background-color var(--t-slow) var(--st-spring);
}

.st-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background-color: rgba(255, 255, 255, 0.06);
}

.st-frame__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.22);
}

.st-frame__hero {
  position: relative;
  height: 96px;
  background-image: linear-gradient(160deg, #1b1a19 0%, #08090a 100%);
  background-size: cover;
  background-position: center;
}

.st-frame__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.6) 100%);
}

.st-frame__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.st-frame__name {
  font-size: var(--fs-17);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin: 0;
  color: var(--st-frame-ink, #f0ede8);
}

.st-frame__tag {
  font-size: var(--fs-12);
  line-height: var(--lh-snug);
  margin: 0;
  color: var(--st-frame-ink-dim, #948f88);
}

.st-frame__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: var(--s-2);
}

.st-frame__card {
  height: 38px;
  border-radius: 8px;
  background-color: var(--st-frame-card, rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.st-frame__swatch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-frame-ink-dim, #948f88);
}

.st-frame__chip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24);
}

/* Background swatch picker: a real radio group, dressed as tiles. */
.st-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

@media (max-width: 480px) {
  .st-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.st-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--r-md);
  cursor: pointer;
  background-color: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow var(--t-base) var(--st-spring), transform var(--t-base) var(--st-spring);
}

.st-swatch:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-strong), 0 14px 26px -20px rgba(22, 25, 29, 0.4); }

.st-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.st-swatch__chip {
  height: 40px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(22, 25, 29, 0.12);
}

.st-swatch__name {
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.st-swatch input:checked ~ .st-swatch__chip {
  box-shadow: inset 0 0 0 1px rgba(22, 25, 29, 0.2), 0 0 0 2px var(--ink);
}

.st-swatch:has(input:checked) {
  box-shadow: 0 0 0 2px var(--ink);
}

.st-swatch input:focus-visible ~ .st-swatch__chip {
  box-shadow: inset 0 0 0 1px rgba(22, 25, 29, 0.2), var(--ring-ink);
}

.st-swatch__tick { color: var(--green); opacity: 0; }
.st-swatch input:checked ~ .st-swatch__name .st-swatch__tick,
.st-swatch:has(input:checked) .st-swatch__tick { opacity: 1; }

/* --------------------------------------------------------------------------
   6. Ad-space cards (Advertise page)
   -------------------------------------------------------------------------- */
.st-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  grid-auto-flow: dense;
  gap: var(--s-4);
}

.st-slot {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background-image: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  box-shadow: 0 0 0 1px rgba(22, 25, 29, 0.06), 0 16px 34px -26px rgba(22, 25, 29, 0.28);
  cursor: pointer;
  text-align: left;
  border: 0;
  font-family: inherit;
  transition: transform var(--t-slow) var(--st-spring), box-shadow var(--t-slow) var(--st-spring);
}

.st-slot:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(22, 25, 29, 0.1), 0 26px 50px -28px rgba(22, 25, 29, 0.42); }

.st-slot[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ink), 0 26px 50px -28px rgba(22, 25, 29, 0.42);
}

.st-slot__price {
  font-family: var(--font-mono);
  font-size: var(--fs-20);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.st-slot__per { font-family: var(--font-sys); font-size: var(--fs-12); color: var(--muted-2); margin-left: 4px; }

.st-slot__free {
  align-self: flex-start;
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-ink);
  background-color: var(--green-soft);
  border-radius: var(--r-pill);
  padding: 2px 9px;
}

/* Booking row: review state and payment state read as two separate axes. */
.st-booking {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
}

.st-booking:last-child { border-bottom: 0; }

.st-booking__main { flex: 1; min-width: 200px; }
.st-booking__title { font-size: var(--fs-14); font-weight: 600; color: var(--ink); }
.st-booking__meta { font-size: var(--fs-12); color: var(--muted); margin-top: 2px; }

.st-booking__side { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }

/* Selected product picker rows. */
.st-pick { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }

.st-pick__row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 8px;
  border-radius: var(--r-sm);
  font-size: var(--fs-13);
  transition: background-color var(--t-fast) var(--st-spring);
}

.st-pick__row:hover { background-color: var(--canvas-2); }

.st-pick__row img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--r-xs);
  box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 40px;
}

.st-pick__row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--ink);
}

/* --------------------------------------------------------------------------
   7. Banners
   -------------------------------------------------------------------------- */
.st-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  font-size: var(--fs-14);
  line-height: var(--lh-body);
  box-shadow: inset 0 0 0 1px rgba(22, 25, 29, 0.06);
}

.st-banner--accent { background-color: var(--accent-soft); color: var(--accent-ink); }
.st-banner--green { background-color: var(--green-soft); color: var(--green-ink); }
.st-banner--gold { background-color: var(--gold-soft); color: var(--gold-ink); }
.st-banner--blue { background-color: var(--blue-soft); color: var(--blue-ink); }

.st-banner b { display: block; font-size: var(--fs-15); margin-bottom: 2px; }
.st-banner p { margin: 0; }
