/* ============================================================
   PinMyMoment — Design System
   Warm · Minimal · Emotional · Premium (deliberately NOT "POD")
   ============================================================ */

:root {
  --paper: #faf7f2;
  --surface: #ffffff;
  --cream: #f3ede3;
  --ink: #26221e;
  --ink-soft: #4a443e;
  --muted: #857c72;
  --line: #eae3d8;
  --line-strong: #d9cfc0;
  --clay: #b4552d;
  --clay-dark: #96431f;
  --clay-tint: #f6e8e0;
  --sage: #6f7f6a;
  --sage-tint: #e9ede7;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(38, 34, 30, 0.05), 0 2px 8px rgba(38, 34, 30, 0.04);
  --shadow-md: 0 2px 6px rgba(38, 34, 30, 0.06), 0 14px 36px rgba(38, 34, 30, 0.09);
  --shadow-lg: 0 4px 12px rgba(38, 34, 30, 0.08), 0 24px 60px rgba(38, 34, 30, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* anchored sections stop below the sticky header instead of underneath it */
[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
em { font-style: italic; font-family: var(--serif); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--clay);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--clay); }

.section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: 40px; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------------- Header ---------------- */
/* ★ THE HEADER'S BOX IS RESERVED BEFORE THE SCRIPT FILLS IT (2026-10-31).
   `#site-header` is an empty element in every page's static HTML — the nav is
   built by app.js — so it had NO height at first paint and then opened to 73px
   (72px `.nav-row` + the 1px rule) once ~25 scripts had run. Measured on a
   Pixel 5 against production: the document sat at 0 for the first ~850 ms and
   the whole page moved down 73px at ~950 ms, which is the largest single
   layout shift on the site and the one that dominates the PDP's CLS.
   Reserving the height costs a blank 73px band for under a second and removes
   the shift entirely. 73px, not 72px: the settled box measured 73 at 390, 768,
   1280 and 1440 CSS px — one rule covers every breakpoint. If the nav's height
   ever changes, `.nav-row`'s height and this number move together or the shift
   comes back. */
#site-header { min-height: 73px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand {
  display: inline-flex; align-items: baseline;
  font-family: var(--serif); font-size: 29px; font-weight: 600;
  letter-spacing: 0.002em; line-height: 1; white-space: nowrap;
  flex-shrink: 0;
}
.brand .brand-pin { color: var(--ink); letter-spacing: -0.01em; }
.brand .brand-my { color: var(--clay); font-style: italic; margin-left: 1px; font-weight: 600; }
.brand .brand-moment { color: var(--clay); font-style: italic; margin-left: 0; font-weight: 500; letter-spacing: 0.005em; }

/* collection glyphs in the nav */
.nav-links a .nav-i { width: 15px; height: 15px; flex-shrink: 0; margin-right: 6px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 10px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: all 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--clay); }
.nav-spacer { flex: 1; }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); transition: all 0.18s; }
.cart-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--clay); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.nav-toggle { display: none; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; width: 40px; height: 40px; align-items: center; justify-content: center; }

/* ---------------- Buttons ---------------- */
/* The HTML `hidden` attribute maps to UA `display:none`, but ANY author display
   rule (e.g. .btn's inline-flex) outranks the UA sheet — so a "hidden" button
   stayed on screen. Every JS toggle of `.hidden = …` assumes the standard
   semantics, so enforce them globally. */
[hidden] { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--ink); color: #fff;
  transition: all 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: #000; }
.btn:active { transform: translateY(0); }
.btn-clay { background: var(--clay); }
.btn-clay:hover { background: var(--clay-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; background: var(--surface); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
/* The danger verb. Red is the one colour in this palette that means "this is
   not a normal action" — used ONLY by the delete confirmation, never by a
   routine control, so its rarity is the warning. */
.btn-danger { background: #a33b2e; color: #fff; }
.btn-danger:hover { background: #8c3126; box-shadow: var(--shadow-md); }

/* ---------------- Hero ---------------- */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 58px; margin: 20px 0 22px; }
.hero h1 .accent { color: var(--clay); font-style: italic; }
.hero .lede { font-size: 18.5px; color: var(--ink-soft); max-width: 480px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.trust-row { display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--sage); }

.hero-visual { position: relative; }
.hero-visual > img { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.hero-card {
  position: absolute; left: -34px; bottom: 36px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow-lg); max-width: 250px;
}
.hero-card .hc-eyebrow { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.hero-card .hc-title { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.hero-card .hc-quote { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 14.5px; margin-top: 2px; }
.hero-card .hc-years { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: 0.08em; }

/* ---------------- Collection cards ---------------- */
.coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.coll-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: all 0.25s ease; display: block;
}
.coll-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.coll-card img { aspect-ratio: 4/4.6; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.coll-card:hover img { transform: scale(1.035); }
.coll-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,34,30,0) 34%, rgba(38,34,30,0.72) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; color: #fff;
}
.coll-overlay .coll-emoji { font-size: 21px; margin-bottom: 6px; }
.coll-overlay h3 { font-size: 30px; color: #fff; }
.coll-overlay .coll-quote { font-family: var(--serif); font-style: italic; font-size: 15.5px; opacity: 0.92; margin: 4px 0 12px; }
.coll-overlay .coll-cta { font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 7px; }

/* ---------------- Steps ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.step-num {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--clay-tint); color: var(--clay);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 21px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------------- Before / After ---------------- */
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: end; }
.ba { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ba img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.ba .ba-label { padding: 14px 20px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.ba.after .ba-label { color: var(--clay); }
.ba-note { margin-top: 34px; text-align: center; font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--ink-soft); }
.ba-note strong { color: var(--ink); font-style: normal; }

/* ---------------- Product cards & grid ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prod-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; display: block;
  transition: all 0.22s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prod-card .pc-imgwrap { position: relative; overflow: hidden; }
.prod-card img { aspect-ratio: 4/4.3; object-fit: cover; width: 100%; transition: transform 0.45s ease; }
.prod-card:hover img { transform: scale(1.04); }
.pc-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(250, 247, 242, 0.94); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.pc-body { padding: 18px 20px 20px; }
.pc-body h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
.pc-price { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--clay); }
/* ★ THE CARD SENTENCE IS A BOX OF EXACTLY TWO LINES (2026-10-30).
   `.pc-short` carries `benefit || short`, and the two are not the same length:
   the seeded benefits run 25–62 characters while `short` runs 49–156. The
   line therefore wrapped to one row on some cards and two on others, and
   because `.pc-cta` sits directly below it, "Create Yours" landed on eight
   different baselines in one 12-card grid (measured on the live site:
   ctaTop = 943 / 964 / 1566 / 1587 / 2175 / 2196 / 2784 / 2805).

   Two rules together, not one:
     · `-webkit-line-clamp: 2` — the box never grows past two lines, so a long
       sentence is trimmed to two rows with an ellipsis instead of pushing its
       own card's button down;
     · `min-height: 2 lines` — the box is never SHORTER than two lines, so a
       short sentence does not pull its button up.
   Either rule alone leaves the grid ragged in one direction. Both, and every
   card's body is the same height, so every button is on one line.

   The height is written in `em` of the element's own font-size (13.5px) and
   `1.55` is the line-height declared right above it, so the reserved box is
   exactly the height of two rendered lines — no magic pixel count that would
   drift the day the font-size changes. */
.pc-short {
  margin-top: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.55;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  min-height: 2lh;
  min-height: calc(2 * 1.55em);
}

/* ---------------- Quote band ---------------- */
.quote-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 84px 0; text-align: center; }
.quote-band blockquote { font-family: var(--serif); font-size: 34px; line-height: 1.35; max-width: 780px; margin: 0 auto 18px; font-weight: 500; }
.quote-band blockquote .accent { color: var(--clay); font-style: italic; }
.quote-band .qb-sub { color: var(--muted); font-size: 15px; }

/* ---------------- Memory entry chips (home CTA) ---------------- */
.memory-chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.memory-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 500; transition: all 0.18s;
}
.memory-chip:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------------- Collection page hero ---------------- */
.coll-hero { padding: 64px 0 40px; }
.coll-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.coll-hero h1 { font-size: 48px; margin: 16px 0 12px; }
.coll-hero .coll-quote-lg { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--clay); margin-bottom: 16px; }
.coll-hero p.lede { color: var(--ink-soft); font-size: 17px; max-width: 460px; }
.coll-hero img { border-radius: 18px; box-shadow: var(--shadow-md); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }

/* ---------------- PDP ---------------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 26px 0 30px; }
.crumbs a:hover { color: var(--clay); }
.pdp-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: start; }

/* ★ THE FIRST SCREEN IS RESERVED WHILE THE PDP IS STILL LOADING (2026-10-31).
   `product.html` is a shell: `#pdp-root` is empty until the catalogue answers
   and product.js builds 2 200px of markup (measured: inserted at ~1.5 s on a
   throttled Pixel 5). Before that the page is header + 21px of breadcrumb +
   THE FOOTER — which is therefore inside the first viewport, and then gets
   pushed off it in one frame. That single push was worth 0.164 CLS, measured
   against production, and it is the kind of shift a screenshot cannot show:
   nothing looks broken, one element simply stops being where it was.
   Reserving one screen of the grid keeps the footer below the fold for the
   whole loading window, so the insertion adds content instead of moving it.
   The 120px is the header (73) plus the breadcrumb and its margins. */
#pdp-root { min-height: calc(100vh - 120px); }

/* ---------- PDP "complete the set" strip ---------- */
.also-band { margin-top: 84px; padding-top: 56px; border-top: 1px solid var(--line); }
.also-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.also-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; transition: transform 0.18s, box-shadow 0.18s; }
.also-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(74,68,62,0.12); }
.also-thumb svg { width: 100%; display: block; border-radius: 8px; }
/* The band can now hold a real photograph instead of the drawing; the metrics
   have to match the svg rule above or the four cards stop lining up.

   ★ `height: auto` IS LOAD-BEARING, NOT DECORATION (2026-10-28)
   The band writes width/height ATTRIBUTES from the upload's real pixel size
   (600×600, 1100×1100). Those attributes are presentational hints: a definite
   height that silently wins over `aspect-ratio`, because the ratio only decides
   the height when it is `auto`. Without this line the four thumbnails rendered
   at the upload's native height (600px+) inside a ~195px column, got cropped by
   the card, and read as four giant close-ups of a face rather than as products.
   Exactly the same trap `.prod-card img.pc-photo` above already documents —
   the two rules must stay identical or the band drifts again. */
.also-thumb img { width: 100%; height: auto; display: block; border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; }
/* the sibling previews re-render as the shopper types — fade the swap so it
   reads as "your memory appearing", not as a flicker */
.also-thumb svg.pmm-mock { animation: alsoSwap 320ms ease; }
@keyframes alsoSwap { from { opacity: 0.55; } to { opacity: 1; } }
.also-name { font-family: var(--serif); font-weight: 600; font-size: 15.5px; margin-top: 10px; color: var(--ink); }
.also-meta { font-size: 13px; color: var(--clay); margin-top: 3px; font-weight: 600; }
.also-meta span { color: var(--ink-soft); font-weight: 500; }

/* ★ THE WHOLE MEDIA COLUMN PINS, NOT JUST THE STAGE (2026-10-14)
   The stage alone used to be sticky, so the filmstrip underneath it scrolled up
   and disappeared behind the stage as soon as the shopper scrolled. Pinning the
   column keeps the big image AND its thumbnails on screen together. The stage
   stays `relative` (not `static`) because the arrows (.gal-nav) anchor to it. */
.pdp-gallery { display: grid; gap: 12px; position: sticky; top: 92px; align-self: start; }
.preview-stage {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm);
}
.frame-mock {
  background: #efe9df; border-radius: 6px; padding: 16px;
  box-shadow: var(--shadow-md);
}
.frame-inner { background: #fff; padding: 26px 26px 20px; box-shadow: inset 0 0 0 1px rgba(38,34,30,0.05); }
.frame-photo { aspect-ratio: 4/4.4; background: var(--cream); overflow: hidden; display: flex; }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; }
.frame-photo .ph-empty { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; width: 100%; color: var(--muted); font-size: 13px; }
.frame-text { text-align: center; margin-top: 18px; min-height: 64px; }
.frame-text .ft-name { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.frame-text .ft-message { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--ink-soft); margin-top: 4px; }
.frame-text .ft-date { font-size: 12px; letter-spacing: 0.22em; color: var(--muted); margin-top: 7px; }
.preview-hint { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }
/* photo position tools (drag + zoom inside the print area) */
.mock-stage { touch-action: none; }
.mock-stage.dragging { cursor: grabbing; }
.mock-stage:not(.dragging):has(.pa-photo) { cursor: grab; }
.fit-tools {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px;
  margin-top: 10px; padding: 8px 12px;
  border: 1px dashed var(--line-strong); border-radius: 10px;
  font-size: 12.5px; color: var(--ink-soft); background: var(--surface);
}
.fit-btn {
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-family: inherit; cursor: pointer;
}
.fit-btn:hover { border-color: var(--clay); color: var(--clay); }
.fit-zoom { display: inline-flex; align-items: center; gap: 8px; }
.fit-zoom input[type="range"] { width: 120px; accent-color: var(--clay); }
.fit-hint { color: var(--muted); }

.pdp-info .pdp-type { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.pdp-info h1 { font-size: 40px; margin: 10px 0 10px; }
.pdp-price { font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pdp-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pdp-short { color: var(--ink-soft); margin-bottom: 22px; }

.personalize { border-top: 1px solid var(--line); padding-top: 26px; display: grid; gap: 20px; }
/* ★ The colour/size picker is a SIBLING above `.personalize` (2026-10-14), so it
   carries its own spacing: it is no longer spaced by `.personalize`'s grid gap. */
#variant-picker { display: grid; gap: 16px; margin-bottom: 26px; }
.personalize h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field label .opt { color: var(--muted); font-weight: 400; }
.input, textarea.input, select.input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-family: inherit; font-size: 14.5px; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }
textarea.input { resize: vertical; min-height: 74px; }

.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 22px; text-align: center; color: var(--muted);
  background: var(--cream); transition: all 0.18s; cursor: pointer;
  display: flex; gap: 14px; align-items: center; justify-content: center;
  font-size: 14px;
}
.dropzone:hover, .dropzone.drag { border-color: var(--clay); color: var(--clay); background: var(--clay-tint); }
.dz-thumb { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-strong); }
.dz-hasfile { border-style: solid; border-color: var(--sage); background: var(--sage-tint); color: var(--ink-soft); }
#dz-inner { display: flex; align-items: center; gap: 10px; }
.dz-file { width: 54px; height: 54px; flex-shrink: 0; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; outline: 1px solid var(--line-strong); cursor: pointer; background: #fff; position: relative; }
.dz-file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-file.cur { border-color: var(--clay); outline-color: transparent; }
.dz-file.cur::after { content: "✓"; position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--clay); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }

.style-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip.selected { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- variant picker (PDP colour / size) ----------
   Rendered ONLY when a product has more than one sellable variant. A product
   with one variant (every product today) renders nothing at all, so this block
   adds no markup and no styles to the existing page. */
.var-group { display: grid; gap: 9px; }
.var-group + .var-group { margin-top: 4px; }
.var-head { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.var-head .var-picked { font-weight: 400; color: var(--muted); }
.var-opts { display: flex; flex-wrap: wrap; gap: 9px; }

/* colour: a swatch dot when a hex is known, a text chip when it is not.
   Filling the unknown case with a guessed colour would be a lie the shopper
   can see, so absence degrades to the label instead. */
.swatch {
  --sw: #d9cfc0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--sw);
  padding: 0; position: relative; transition: all 0.15s;
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch .sw-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.swatch.nohex {
  width: auto; min-width: 34px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-soft);
}
.swatch.nohex[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

/* an out-of-stock variant is shown but inert — visible so the shopper knows the
   option exists, greyed so it never looks selectable */
.swatch[disabled] { opacity: 0.38; cursor: not-allowed; }
.swatch[disabled]:hover { transform: none; }
.swatch[disabled]::after {
  content: ""; position: absolute; inset: 42% 6% auto 6%;
  border-top: 1.5px solid var(--ink-soft); transform: rotate(-28deg);
}

/* size: text chips, reusing .chip's look so the two groups read as one control */
.var-opts .chip[disabled] { opacity: 0.42; cursor: not-allowed; text-decoration: line-through; }
.var-opts .chip[disabled]:hover { border-color: var(--line-strong); }

.pdp-ctas { margin-top: 8px; display: grid; gap: 12px; }
.pdp-assure { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.pdp-assure span { display: inline-flex; align-items: center; gap: 6px; }

.accordion { margin-top: 34px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.acc-head .acc-arrow { transition: transform 0.2s; color: var(--muted); }
.acc-item.open .acc-arrow { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 2px 18px; font-size: 14px; color: var(--muted); }
.acc-item.open .acc-body { display: block; }
.acc-body ul { padding-left: 18px; display: grid; gap: 6px; }

/* ---------------- Cart ---------------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.cart-list { display: grid; gap: 18px; }
.cart-item {
  display: grid; grid-template-columns: 108px 1fr auto; gap: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; align-items: center;
}
.cart-item img { width: 108px; height: 108px; object-fit: cover; border-radius: 10px; }
.ci-name { font-weight: 600; font-size: 15px; }
.ci-opts { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: grid; gap: 2px; }
/* the colour · size line on a cart keepsake card (2026-10-15) */
.ci-variant { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.ci-price { font-weight: 600; color: var(--ink); }
.ci-remove { background: none; border: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; margin-top: 8px; padding: 0; cursor: pointer; }
.ci-remove:hover { color: var(--clay); }
/* back into the editor: the product page with this exact design loaded */
.ci-actions { display: flex; align-items: baseline; gap: 16px; margin-top: 8px; }
.ci-actions .ci-remove { margin-top: 0; }
.ci-link { color: inherit; text-decoration: none; }
.ci-link:hover { color: var(--clay); }
/* the cart-edit notice on the product page */
.edit-note { margin: 10px 0 0; padding: 10px 14px; border: 1px solid #ecd9c8; border-radius: 12px; background: #fdf6ee; font-size: 13.5px; color: #6b5140; }
.edit-note strong { color: var(--clay); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: none; background: var(--surface); font-size: 15px; color: var(--ink-soft); }
.qty button:hover { background: var(--cream); }
.qty .qty-num { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; }
.ci-right { text-align: right; display: grid; gap: 8px; justify-items: end; }

.summary-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  position: sticky; top: 92px;
}
.summary-card h3 { font-family: var(--sans); font-size: 16px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-soft); padding: 7px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 15px; font-size: 17px; font-weight: 700; color: var(--ink); }
/* The waived shipping price, struck through next to "Free". Muted and lighter
   than the "Free" that follows it: the struck number is history, the word is
   the answer. `text-decoration-thickness` keeps the line thin enough to read
   at 13px on a retina screen. */
.sum-was { color: var(--muted); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; margin-right: 5px; }
.sum-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 18px; }
.empty-cart { text-align: center; padding: 80px 0; }
.empty-cart .ec-icon { font-size: 44px; margin-bottom: 14px; }
.empty-cart h1, .empty-cart h2 { font-size: 30px; margin-bottom: 10px; }
.empty-cart p { color: var(--muted); margin-bottom: 26px; }

/* ---------------- Recent orders (the cart, when empty) ----------------
   Checkout empties the cart on approval, which used to leave the shopper with
   no way back to what they had just bought. This is that way back. It reads a
   local record, so guests and members get the same thing. */
.recent-orders {
  max-width: 620px; margin: 4px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.recent-orders h2 { font-family: var(--sans); font-size: 15.5px; margin-bottom: 8px; }
.recent-note { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.recent-order {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.recent-order .ro-no { font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.recent-order .ro-meta { flex: 1; font-size: 13px; color: var(--muted); }
.recent-order .ro-go { font-size: 13px; font-weight: 600; color: var(--clay-dark); white-space: nowrap; }
.recent-order:hover .ro-go { text-decoration: underline; }

/* An order that exists but has NOT been paid for is not history: on an otherwise
   empty cart it is the one actionable thing on the page, so it is tinted and it
   sits above the list of settled orders. Same design tokens as everything else —
   this is a state, not a new visual language. */
.recent-orders.awaiting-payment { border-color: var(--clay); background: var(--clay-tint); }
.recent-orders.awaiting-payment h2 { color: var(--clay-dark); }
.recent-orders.awaiting-payment .recent-note strong { color: var(--clay-dark); }
.recent-orders.awaiting-payment .recent-order { border-top-color: rgba(180, 85, 45, 0.22); }

/* ★ "Signed in as …" — shown under the empty cart when the visitor IS a member.
   A member's orders live on the server and follow the account to any device, so
   the cart (which can only speak for THIS browser) must point at them rather
   than let "empty" read as "your order is gone". The negative top margin pulls
   it up out of the empty panel's own 80px bottom padding. */
.signed-in-note {
  max-width: 460px; margin: -34px auto 0; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.signed-in-note p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 10px; }
.signed-in-note strong { color: var(--ink); word-break: break-all; }
.sn-link { font-size: 13.5px; font-weight: 600; color: var(--clay-dark); text-decoration: none; }
.sn-link:hover { text-decoration: underline; }

/* -------- Awaiting payment, laid out as a classic cart --------
   An unpaid order is an unfinished purchase, so it renders AS a cart: order
   number, item lines, quantity, price, total. Same design tokens as the
   summary card — this is a state, not a new visual language. The section is
   wider than the compact recent-orders list because a four-column table needs
   the room. */
.cart-awaiting { max-width: 860px; }
.cart-awaiting h2 { font-size: 17px; }
.cart-order {
  background: var(--surface); border: 1px solid rgba(180, 85, 45, 0.25);
  border-radius: 12px; padding: 16px 20px 18px; margin-top: 14px;
}
.co-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.co-no { font-size: 14px; color: var(--ink); }
.co-date { font-size: 12.5px; color: var(--muted); }
.co-pill {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--clay-dark); border: 1px solid var(--clay);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.co-go { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--clay-dark); text-decoration: none; white-space: nowrap; }
.co-go:hover { text-decoration: underline; }
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  padding: 10px 8px 7px 0; border-bottom: 1px solid var(--line);
}
.cart-table td {
  padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: 14px; color: var(--ink-soft);
}
.cart-table tbody tr:last-child td { border-bottom: none; }
.ct-item .ct-name { display: block; font-weight: 600; color: var(--ink); }
.ct-item .ct-opts { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ct-num { text-align: right; white-space: nowrap; }
th.ct-num { text-align: right; }
.ct-line { font-weight: 600; color: var(--ink); }
.co-summary { max-width: 280px; margin-left: auto; padding-top: 12px; }
.co-summary .sum-row { font-size: 13.5px; padding: 4px 0; }
.co-summary .sum-row.total { margin-top: 6px; padding-top: 10px; font-size: 15.5px; }
@media (max-width: 640px) {
  .cart-order { padding: 14px; }
  .co-go { margin-left: 0; }
}

/* ---------------- Checkout ---------------- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-card + .form-card { margin-top: 20px; }
.form-card h3 { font-family: var(--sans); font-size: 15.5px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.form-card h3 .step-dot { width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
/* consent (COPPA / CCPA / marketing) — P4 */
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 12px; cursor: pointer; }
.consent-row input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--ink); }
.consent-row a { color: var(--ink); text-decoration: underline; }
.consent-required { font-size: 12px; color: var(--clay-dark); margin-top: -4px; margin-bottom: 12px; }
.sum-items { display: grid; gap: 12px; margin-bottom: 16px; }
.sum-item { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.sum-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.sum-item .si-name { font-weight: 600; }
.sum-item .si-sub { color: var(--muted); font-size: 12px; }
.pay-methods { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; transition: all 0.15s; }
.pay-option:hover { border-color: var(--ink); }
.pay-option input { margin-top: 3px; accent-color: var(--clay); }
.pay-option .po-title { font-weight: 600; font-size: 14px; }
.pay-option .po-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.place-order { margin-top: 22px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------------- Order confirm ---------------- */
.confirm-wrap { max-width: 640px; margin: 0 auto; text-align: center; padding: 72px 0 96px; }
.confirm-check { width: 74px; height: 74px; border-radius: 999px; background: var(--sage-tint); color: var(--sage); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.confirm-wrap h1 { font-size: 42px; margin-bottom: 12px; }
.order-no-pill { display: inline-block; background: var(--cream); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 20px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 26px; }
.confirm-steps { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 34px; display: grid; gap: 0; }
.confirm-step { display: flex; gap: 16px; padding: 14px 0; }
.confirm-step + .confirm-step { border-top: 1px dashed var(--line); }
.cs-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; background: var(--clay-tint); color: var(--clay); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.confirm-step h4 { font-size: 14.5px; font-family: var(--sans); }
.confirm-step p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------------- About / FAQ ---------------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-grid img { border-radius: 18px; box-shadow: var(--shadow-md); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.belief-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; text-align: center; }
.belief-band p { font-family: var(--serif); font-size: 30px; max-width: 720px; margin: 0 auto; line-height: 1.4; }
.faq-list { max-width: 720px; margin: 0 auto; }

/* ---------------- Admin ---------------- */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 24px 96px; }
.admin-gate { max-width: 420px; margin: 64px auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.admin-gate h1 { font-size: 30px; margin-bottom: 8px; }
.admin-gate p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.admin-table tr:last-child td { border-bottom: none; }
/* ---- owner dashboard ----
   The revenue tile and the attributed tile sit in the SAME row on purpose: they
   are the two numbers an operator is most likely to confuse, and the label under
   each one says where it came from. */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 820px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
.dash-tile {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.dash-tile.dash-wide { grid-column: 1 / -1; }
.dash-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dash-v { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; line-height: 1.1; color: var(--ink); }
.dash-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.dash-line {
  font-size: 12.5px; color: var(--ink-soft); background: var(--cream);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.dash-actions { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.dash-win {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600;
}
.dash-win.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.dash-h2 { font-size: 22px; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; }
.status-pending_payment { background: var(--clay-tint); color: var(--clay-dark); }
.status-paid { background: var(--sage-tint); color: var(--sage); }
.status-in_production { background: #e8ecf6; color: #4a5d92; }
.status-shipped { background: #f1e9f7; color: #7a5a99; }
.order-detail { margin-top: 26px; }
.od-items { display: grid; gap: 14px; }
.od-item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.od-item img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }

/* ---------------- Footer ---------------- */
.site-footer { background: #211d19; color: #cfc7bc; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding: 64px 0 44px; }
.footer-brand .brand { color: #fff; font-size: 24px; }
.footer-brand .brand .brand-pin { color: #fff; }
.footer-brand .brand .brand-my { color: #e2987a; }
.footer-brand .brand .brand-moment { color: #e2987a; }
.footer-brand p { font-size: 13.5px; color: #a39a8e; margin-top: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--sans); }
.footer-col a { display: block; font-size: 14px; color: #a39a8e; padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-base { border-top: 1px solid #3a342e; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #857c72; }
.footer-base a { color: #857c72; text-decoration: underline; }
.footer-base a:hover { color: #cfc7bc; }

/* ---------------- Toast & misc ---------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: 44px; margin: 10px 0 8px; }
.page-head p { color: var(--muted); max-width: 560px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Header actions (account + cart) ---------------- */
.nav-actions { display: flex; gap: 10px; align-items: center; }
.acct-avatar {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--clay); color: #fff;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
/* A signed-in member must be unmistakable at a glance — the whole point of
   the header avatar is to answer "am I signed in?" without opening /account. */
.cart-btn.is-member { border-color: var(--clay); }
.acct-avatar-on {
  background: transparent; color: var(--clay);
  box-shadow: inset 0 0 0 2px var(--clay);
  font-size: 15px; font-weight: 700;
}

/* ---------------- SVG mockups ---------------- */
.pc-imgwrap-mock { background: var(--cream); }
/* P-E: an uploaded photograph replaced the drawn mockup. The wrap matches the
   mock's cream so a slow or refused image still lands on the same surface the
   card has always had. The picture must also occupy EXACTLY the mock's box:
   uploads arrive in any aspect (Admin accepts any PNG/JPEG/WebP ≤ 2 MB — the
   frame photo is 800×900), while `.prod-card img` above sizes photos at 4/4.3
   and mock SVGs are 1/1, so a portrait upload rendered its card visibly taller
   than every mockup beside it and the grid reflowed on hydration. The 1/1 lock
   below pins EVERY card image to one box no matter what was uploaded;
   object-fit: cover (inherited from `.prod-card img`) crops instead of
   stretching, so the upload never distorts. */
.pc-imgwrap-photo { background: var(--cream); }
/* The height:auto below is NOT cosmetic: productCard writes width/height
   ATTRIBUTES from the upload's real pixel size, and those attributes act as
   presentational hints — a definite height that silently disables
   aspect-ratio. Without this override an 800px-tall upload renders 800px tall
   no matter what the ratio rules say (measured 391×800 on :8790/pet). Same
   trio as the svg rule: width 100% (from `.prod-card img`), height auto,
   ratio 1/1. */
.prod-card img.pc-photo { aspect-ratio: 1 / 1; height: auto; }
.pc-imgwrap-mock svg, .mock-stage svg, .ci-mock svg, .si-thumb svg, .od-thumb svg, .ord-thumb svg {
  width: 100%; height: auto; display: block;
}
.pc-imgwrap-mock svg { aspect-ratio: 1 / 1; }
.ci-mock { width: 108px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: var(--cream); }
.cart-item { grid-template-columns: 108px 1fr auto; }
.si-thumb { width: 52px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: var(--cream); }
.sum-item { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.od-thumb { width: 84px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.ord-thumb { width: 96px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
/* ★ THE ORDER LIST'S PICTURE IS THE CUSTOMER'S, LAID OVER THE PRODUCT MOCK.
   The mock stays in the DOM underneath as the fallback: if the file cannot be
   loaded the customer's picture removes itself and the product is still there,
   which is honest and never a broken image. */
.ord-thumb { position: relative; }
.ord-thumb-bg { width: 100%; }
.ord-thumb-bg svg { width: 100%; height: auto; display: block; }
.ord-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- Account page ---------------- */
.acct-wrap { max-width: 460px; margin: 56px auto 0; }
.acct-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 34px 26px; box-shadow: var(--shadow-md);
}
.acct-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.acct-brand h1 { font-size: 30px; }
.acct-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: var(--cream); border-radius: 999px; padding: 4px; margin-bottom: 22px;
}
.acct-tab {
  border: none; background: transparent; border-radius: 999px;
  padding: 9px 6px; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all 0.15s;
}
.acct-tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
/* 2026-11-13: the Google doorway is back (owner's call, brand verification
   passed). The mark sits on its own white tile because the button is `btn-ink`
   — a four-colour G on dark ink loses the red and the yellow. The divider is
   drawn from two pseudo-elements rather than a border so the word sits in a
   real gap, not on top of the line. */
.acct-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.acct-g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 4px; background: #fff; flex: none;
}
.acct-g svg { display: block; }
.acct-or {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 2px; font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.acct-or::before, .acct-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.acct-or span { flex: none; }
.acct-lead { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.acct-card .btn { margin-top: 6px; }
.acct-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.acct-alt a { color: var(--clay); text-decoration: underline; }
.acct-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 14px; }
.form-msg { font-size: 13px; color: var(--clay-dark); margin-top: 14px; text-align: center; }
.form-msg.ok { color: var(--sage); }

.dash-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 52px 0 30px;
}
.dash-id { display: flex; align-items: center; gap: 18px; }
.dash-id h1 { font-size: 36px; }
.dash-id p { color: var(--muted); font-size: 13.5px; }
.acct-avatar-lg { width: 58px; height: 58px; font-size: 26px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; align-items: start; }
.dash-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.dash-card h3 { font-family: var(--sans); font-size: 16px; margin-bottom: 16px; }
.dash-card section + section, .dash-grid section { margin-bottom: 0; }
.dash-grid .dash-card:nth-child(3) { grid-column: 1 / -1; }
.dash-muted { color: var(--muted); font-size: 13.5px; }
.emoji-row { display: flex; gap: 8px; flex-wrap: wrap; }
.emoji-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 18px; transition: all 0.14s;
}
.emoji-btn:hover { border-color: var(--clay); }
.emoji-btn.on { background: var(--clay-tint); border-color: var(--clay); }
.pass-row { display: grid; gap: 10px; }

.ord { border-bottom: 1px solid var(--line); }
.ord:last-child { border-bottom: none; }
.ord summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 13px 2px; list-style: none;
}
.ord summary::-webkit-details-marker { display: none; }
.ord-no { font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; flex: 1; }
.ord-total { font-weight: 600; font-size: 13.5px; }
.ord-body { padding: 0 2px 18px; }
.ord-items { display: grid; gap: 12px; margin-top: 10px; }
.ord-item { display: flex; gap: 14px; align-items: center; }
.ord-item-name { font-weight: 600; font-size: 13.5px; }

/* Pay now — a pending order resumes its own PayPal session (checkout ?repay=).
   Same clay accent as the other primary actions; sized to sit inside the
   summary row between the status pill and the total. */
.ord-pay, .co-pay {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--clay); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.03em; text-decoration: none; white-space: nowrap;
}
.ord-pay:hover, .co-pay:hover { background: var(--clay-dark); }
.co-pay { margin-left: 4px; }

/* Order-history pager — chunks of five ("1–5", "6–10", …) under the list. */
.ord-pager { display: flex; align-items: center; gap: 8px; padding: 14px 2px 4px; flex-wrap: wrap; }
.ord-page {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: inherit;
}
.ord-page:hover { border-color: var(--clay); color: var(--clay-dark); }
.ord-page.on { background: var(--clay); border-color: var(--clay); color: #fff; }
.ord-page.nav { padding: 5px 10px; }
.ord-page[disabled] { opacity: .4; cursor: default; }
.ord-page[disabled]:hover { border-color: var(--line); color: var(--ink); }

.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 14px; }
.mem-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--cream);
}
.mem-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.mem-empty {
  width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.mem-cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; background: var(--surface); }
.mem-title { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-foot { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; row-gap: 5px; padding: 7px 11px 9px; background: var(--surface); }
.mem-date { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.mem-ord {
  border: 1px solid var(--clay); background: none; color: var(--clay);
  font: inherit; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.mem-ord:hover { background: var(--clay-tint, #faf1ec); }
.acct-face { display: inline-flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
.mem-del { border: none; background: none; color: var(--muted); font-size: 13px; padding: 0 2px; }
.mem-del:hover { color: var(--clay); }

/* ============================================================
   V2 — Emotional DTC Commerce upgrade (PRD V2 / AI-Native spec)
   ============================================================ */

/* ---------------- accessibility helpers ---------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

/* ---------------- hero trust line (PRD §5) ---------------- */
.trust-line {
  font-size: 13.5px; color: var(--muted); letter-spacing: 0.01em;
  margin-top: -14px;
}

/* memory category card body copy (PRD §6) */
.coll-overlay .coll-body {
  font-size: 13.5px; color: rgba(255, 255, 255, 0.86);
  line-height: 1.5; margin: 0 0 13px;
}

/* inline belief quote on collection pages (PRD §14 step 2) */
.belief-inline { text-align: center; max-width: 660px; margin: 0 auto; }
.belief-inline p {
  font-family: var(--serif); font-style: italic; font-size: 25px;
  line-height: 1.4; color: var(--ink-soft);
}
.belief-inline span { display: block; font-size: 13px; color: var(--muted); margin-top: 9px; }

/* filter status readout (shop-all) */
.filter-status {
  text-align: center; font-size: 13px; color: var(--muted);
  margin: -18px 0 30px;
}

/* ---------------- order confirmation v2 extras ---------------- */
.confirm-sub { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.progress-note {
  font-size: 13.5px; color: var(--ink-soft); max-width: 620px; margin: 22px auto 0;
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 15px 18px; line-height: 1.6;
}
.confirm-help { margin-top: 30px; font-size: 13.5px; color: var(--muted); }
.confirm-help a { text-decoration: underline; }
.cs-thumb {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 10px;
  overflow: hidden; background: var(--cream); border: 1px solid var(--line);
}
.cs-thumb svg { width: 100%; height: 100%; display: block; }
.share-msg.err { color: #b4552d; }

/* ---------------- header additions ---------------- */
.nav-cta { white-space: nowrap; }
.nav-actions { gap: 8px; }

.search-panel {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0 20px;
  box-shadow: var(--shadow-sm);
}
.search-input { font-size: 15.5px; padding: 13px 16px; }
.search-results { margin-top: 14px; display: grid; gap: 8px; }
.sr-hint { font-size: 13px; color: var(--muted); }
.sr-item {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper);
  transition: all 0.15s;
}
.sr-item:hover { border-color: var(--clay); background: var(--clay-tint); }
.sr-thumb { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: var(--cream); }
.sr-thumb svg { width: 100%; height: 100%; display: block; }
.sr-text { display: grid; gap: 1px; }
.sr-text strong { font-size: 14px; }
.sr-text em { font-size: 12.5px; color: var(--muted); font-style: normal; }

/* ---------------- footer additions ---------------- */
.footer-social { margin-top: 14px; }
.footer-social .fs-label {
  display: block; font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #7d746a; margin-bottom: 6px;
}
.footer-social a { display: inline-block; margin-right: 12px; }
.footer-legal a { color: #857c72; }
.news-form { margin-top: 22px; max-width: 320px; }
.news-label { display: block; font-size: 13px; color: #cfc7bc; margin-bottom: 8px; }
.news-row { display: flex; gap: 8px; }
.news-row .input {
  background: #2c2722; border-color: #453e36; color: #f2ece4;
  padding: 10px 13px; font-size: 13.5px;
}
.news-row .input::placeholder { color: #8b8177; }
.news-msg { font-size: 12.5px; margin-top: 9px; }
.news-msg.ok { color: #a8c19c; }
.news-msg.err { color: #e2987a; }

/* ---------------- rating (only rendered with real data) ---------------- */
.pc-rating { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.pc-rating .stars { color: #d9973f; letter-spacing: 0.06em; font-size: 13px; }
.pc-rating .rating-num { font-weight: 600; color: var(--ink-soft); }
.pc-rating .rating-count { color: var(--muted); }

/* ---------------- product card v2 ---------------- */
.prod-card .pc-link { display: block; }
.pc-body h3 a { color: inherit; }
.pc-body h3 a:hover { color: var(--clay); }
.pc-cta { margin-top: 14px; }
.pc-tag { top: 12px; }

/* ---------------- Before → After (three stages, PRD §8) ---------------- */
.ba3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; }
.ba3-step {
  border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); transition: transform 0.25s ease;
}
.ba3-step:hover { transform: translateY(-4px); }
.ba3-step img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; display: block; }
.ba3-label { padding: 15px 20px; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.ba3-eyebrow { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ba3-name { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.ba3-mid { border-color: var(--clay); }
.ba3-mid .ba3-eyebrow { color: var(--clay); }
.ba3-after { box-shadow: var(--shadow-md); }

/* ---------------- Digital Proof USP (PRD §10) ---------------- */
.proof-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 84px 0; }
.proof-wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: center; }
.proof-copy h2 { font-size: 40px; margin: 12px 0 16px; }
.proof-copy .lede { color: var(--ink-soft); font-size: 17px; margin-bottom: 26px; max-width: 520px; }
.proof-flow { display: grid; justify-items: center; gap: 8px; }
.pf-step {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 13px;
}
.pf-hi { border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-tint); }
.pf-num {
  width: 26px; height: 26px; border-radius: 999px; flex: 0 0 auto;
  background: var(--clay-tint); color: var(--clay);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
}
.pf-hi .pf-num { background: var(--clay); color: #fff; }
.pf-label { font-size: 14.5px; font-weight: 600; }
.pf-arrow { color: var(--line-strong); font-size: 15px; }

/* ---------------- Occasion grid (PRD §12) ---------------- */
.occ-grid { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; max-width: 840px; margin: 0 auto; }
.occ-chip {
  padding: 11px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: all 0.17s;
}
.occ-chip:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------------- Customer Stories (PRD §11) ---------------- */
.story-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0;
  display: flex; flex-direction: column;
}
.story-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.story-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.story-card blockquote {
  font-family: var(--serif); font-size: 19px; line-height: 1.45; font-style: italic;
  padding: 20px 22px 10px; color: var(--ink);
}
.story-card figcaption {
  padding: 0 22px 22px; margin-top: auto;
  display: grid; gap: 3px; font-size: 13px; color: var(--muted);
}
.story-card figcaption strong { color: var(--ink); font-size: 13.5px; }
.story-card figcaption em { font-style: normal; color: var(--clay); font-size: 12.5px; }
.verified { color: var(--sage); font-size: 11.5px; }

/* ---------------- FAQ (PRD §38) ---------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 30px 17px 2px;
  font-size: 15.5px; font-weight: 600; color: var(--ink); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "▾"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--muted); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-a { padding: 0 30px 18px 2px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------------- final CTA band ---------------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: 44px; max-width: 720px; margin: 14px auto 14px; }
.final-cta p { color: var(--muted); font-size: 17px; margin-bottom: 30px; }
.final-cta .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------------- image quality check (PRD §36) ---------------- */
.qcheck {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); padding: 14px 16px; margin-top: 12px;
}
.qcheck-bad { border-color: #d9a08a; background: #fdf5f1; }
.qc-head { font-size: 13.5px; font-weight: 600; margin-bottom: 9px; }
.qc-list { list-style: none; display: grid; gap: 7px; }
.qc-list li { display: flex; gap: 9px; font-size: 13px; line-height: 1.45; }
.qc-mark { flex: 0 0 auto; font-weight: 700; }
.qc-ok .qc-mark { color: var(--sage); }
.qc-warn .qc-mark { color: #c1852f; }
.qc-list strong { font-weight: 600; display: block; }
.qc-list em { font-style: normal; color: var(--muted); font-size: 12.5px; }

/* ---------------- share system (PRD §28-31) ---------------- */
.share-row { margin-top: 22px; border-top: 1px dashed var(--line-strong); padding-top: 18px; }
.share-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 11px;
}
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  transition: all 0.15s; font-family: inherit;
}
.share-btn .s-ic { flex: 0 0 auto; display: block; }
.share-btn:hover { border-color: var(--clay); color: var(--clay); }
.share-native { background: var(--ink); color: #fff; border-color: var(--ink); }
.share-native:hover { background: #000; color: #fff; }
.share-msg { font-size: 12.5px; color: var(--sage); margin-top: 9px; }

/* ---------------- share card (PRD §31) ---------------- */
.share-card-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-top: 34px; text-align: center;
}
.share-card-block h3 { font-family: var(--serif); font-size: 25px; margin-bottom: 6px; }
.share-card-block > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.sc-preview { display: flex; justify-content: center; margin-bottom: 22px; }
.sc-preview canvas { max-width: 300px; width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); }
.sc-sizes { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }

/* ---------------- share nudge (under the PDP preview) ----------------
   Raised the instant the studio hands a finished artwork back. It sits in the
   preview column because that is where the shopper is already looking; it is
   dismissible, and once dismissed it stays gone for the session. */
.share-nudge {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  padding: 11px 12px; border-radius: 12px;
  background: var(--clay-tint); border: 1px solid #ecd9cd;
}
.sn-thumb {
  width: 46px; height: 46px; border-radius: 9px; flex: 0 0 auto;
  background: var(--surface) center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(38, 34, 30, 0.06);
}
.sn-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sn-copy strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sn-copy span { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
/* `display:flex` above would defeat the [hidden] attribute — the same trap
   `.gal-nav[hidden]` documents. A prompt that cannot be hidden would reappear. */
.share-nudge[hidden] { display: none; }
.sn-go { flex: 0 0 auto; padding: 8px 16px !important; font-size: 13px !important; }
.sn-x {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: transparent; color: var(--muted); font-size: 12px; line-height: 1;
}
.sn-x:hover { color: var(--ink); background: rgba(38, 34, 30, 0.06); }
@media (max-width: 560px) {
  .share-nudge { flex-wrap: wrap; }
  .sn-copy { flex: 1 1 140px; }
  .sn-go { order: 3; width: 100%; }
}

/* ---------------- share sheet (the keepsake → a post) ----------------
   A modal rather than a longer row, because the thing being shared is a
   PICTURE: it needs room to be looked at before it is sent, and the six
   networks need somewhere to explain what each one will actually carry. */
body.ss-lock { overflow: hidden; }
.ssheet { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ss-backdrop { position: absolute; inset: 0; background: rgba(38, 34, 30, 0.44); backdrop-filter: blur(2px); }
.ss-panel {
  position: relative; z-index: 1; width: min(880px, 100%); max-height: calc(100vh - 48px);
  overflow: auto; background: var(--paper); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 30px 32px 26px;
  animation: ss-in 0.18s ease-out;
}
@keyframes ss-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.ss-x {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  color: var(--muted); font-size: 14px; line-height: 1; display: flex;
  align-items: center; justify-content: center; transition: all 0.15s;
}
.ss-x:hover { color: var(--ink); border-color: var(--line-strong); }
.ss-head { margin-bottom: 20px; padding-right: 40px; }
.ss-title { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin-top: 8px; }
.ss-body { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }

/* the picture, framed on paper the way the product photographs are */
.ss-preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; min-height: 180px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.ss-preview img { width: 100%; height: auto; border-radius: 7px; display: block; }
.ss-loading, .ss-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 26px 12px; line-height: 1.5; }
.ss-formats { display: flex; gap: 7px; margin-top: 12px; }
.ss-formats[hidden] { display: none; }
.ss-fmt {
  flex: 1; padding: 8px 6px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  transition: all 0.15s;
}
.ss-fmt.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ss-hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* the primary action, then everything that only sends a link */
.ss-primary { display: flex; flex-direction: column; gap: 9px; }
.ss-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  font-family: inherit; transition: all 0.15s;
}
.ss-btn:hover { border-color: var(--clay); color: var(--clay); }
.ss-btn svg { flex: 0 0 auto; }
.ss-btn-primary { background: var(--clay); border-color: var(--clay); color: #fff; font-weight: 600; }
.ss-btn-primary:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; }
.ss-secondary { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-secondary .ss-btn { flex: 1 1 auto; padding: 9px 14px; font-size: 12.5px; }
.ss-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 12px; }

.ss-divider { position: relative; text-align: center; margin: 20px 0 14px; }
.ss-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.ss-divider span { position: relative; background: var(--paper); padding: 0 12px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.ss-nets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-net {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  font-family: inherit; text-align: left; transition: all 0.15s;
}
.ss-net:hover { border-color: var(--clay); background: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ss-net-ic { display: flex; width: 16px; height: 16px; align-items: center; justify-content: center; flex: 0 0 auto; }
.ss-net-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.ss-net-sub { margin-left: auto; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ss-msg { font-size: 12.5px; margin-top: 12px; line-height: 1.5; }
.ss-msg.ok { color: var(--sage); }

@media (max-width: 760px) {
  .ssheet { padding: 0; align-items: flex-end; }
  .ss-panel { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 24px 20px 22px; }
  .ss-body { grid-template-columns: 1fr; gap: 20px; }
  .ss-preview { max-height: 34vh; }
  .ss-preview img { max-height: 32vh; width: auto; margin: 0 auto; }
  .ss-nets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-title { font-size: 25px; }
}

/* ---------------- gallery (PRD §19) ---------------- */
/* (`.pdp-gallery`'s own rule lives with the sticky note above.) */
.gal-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* operator photographs in the filmstrip: square thumbs like the synthetic ones */
.gal-thumb { aspect-ratio: 1/1; overflow: hidden; }
/* stage arrows — sit on the sticky preview-stage (a positioned element) */
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,0.88);
  color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 4; transition: background 0.15s, color 0.15s;
}
.gal-nav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.gal-nav.gal-prev { left: 14px; }
.gal-nav.gal-next { right: 14px; }
.gal-nav[hidden] { display: none; }
/* the big photograph view (operator upload) fills the stage like the SVG mock */
.stage-photo {
  width: 100%; height: auto; display: block; border-radius: 12px;
  background: var(--cream); object-fit: contain;
}
.gal-thumb {
  /* ★ BIGGER THUMBNAILS (operator request, 2026-10-14): 68 → 96px. They sit
     under the big image and read as a real filmstrip now, and `.gal-thumbs`
     wraps instead of overflowing when an album has many photographs. */
  width: 96px; height: 96px; flex: 0 0 auto; border-radius: 12px; overflow: hidden;
  border: 1.5px solid var(--line); background: var(--cream); padding: 0;
  transition: border-color 0.15s;
}
.gal-thumb svg { width: 100%; height: 100%; display: block; }
.gal-thumb.on { border-color: var(--clay); }
.gal-thumb:hover { border-color: var(--ink-soft); }
/* The caption rule that used to sit here (the small uppercase "Product photo —
   cover" line under the strip) was deleted on 2026-10-26 along with its element.
   The name lives on as each thumbnail's aria-label and each image's alt, where it
   is read out rather than read. */

/* ---------------- PDP additions ---------------- */
.pdp-proof-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--sage-tint); border: 1px solid #cfdac8;
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 18px;
}
.pdp-proof-note .pn-icon { color: var(--sage); flex: 0 0 auto; margin-top: 2px; }
.pdp-proof-note strong { display: block; font-size: 13.5px; }
.pdp-proof-note span { font-size: 12.5px; color: var(--ink-soft); }
.pdp-sticky {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(250, 247, 242, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  align-items: center; gap: 14px;
}
.pdp-sticky .ps-info { flex: 1; min-width: 0; }
.pdp-sticky .ps-name { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-sticky .ps-price { font-size: 16px; font-weight: 700; }

/* ---------------- shop-all filters ---------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
  margin-bottom: 40px;
}
.filter-chip {
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft); transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-empty { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 50px 0; }
.grid-empty a { color: var(--clay); text-decoration: underline; }
/* P-E: the PDP of a product the catalogue no longer sells (archived or deleted
   while the page was open). It spans the PDP grid the same way an empty product
   grid does, and it says what it does NOT mean — an order already placed and a
   cart already filled are untouched. */
.pdp-gone { grid-column: 1 / -1; text-align: center; padding: 90px 20px; }
.pdp-gone h1 { font-family: var(--serif); font-size: 32px; font-weight: 500; margin-bottom: 12px; }
.pdp-gone p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; line-height: 1.6; }

/* ---------------- order confirmation v2 ---------------- */
.progress-track {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 0; margin: 40px 0 8px; position: relative;
}
.pt-step { text-align: center; position: relative; }
.pt-dot {
  width: 30px; height: 30px; border-radius: 999px; margin: 0 auto 9px;
  background: var(--surface); border: 2px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  position: relative; z-index: 2;
}
.pt-step.done .pt-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.pt-step.current .pt-dot { background: var(--clay); border-color: var(--clay); color: #fff; }
.pt-step::before {
  content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px;
  background: var(--line-strong); z-index: 1;
}
.pt-step:first-child::before { display: none; }
.pt-step.done::before, .pt-step.current::before { background: var(--sage); }
.pt-label { font-size: 11.5px; color: var(--muted); line-height: 1.35; padding: 0 4px; }
.pt-step.done .pt-label, .pt-step.current .pt-label { color: var(--ink); font-weight: 600; }

/* ---------------- my moments (PRD §34) ---------------- */
.moment-row {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.moment-row:last-child { border-bottom: none; }
.moment-thumb { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.moment-thumb svg, .moment-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.moment-body { flex: 1; min-width: 0; }
.moment-body h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.moment-body p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.moment-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .hero h1 { font-size: 46px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: repeat(2, 1fr); }
  .ba3 { grid-template-columns: 1fr; }
  .story-grid-3 { grid-template-columns: 1fr 1fr; }
  .proof-wrap { grid-template-columns: 1fr; gap: 36px; }
  .progress-track { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .pt-step::before { display: none; }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 60px; }
  .hero-grid, .coll-hero-grid, .pdp-grid, .cart-layout, .checkout-layout, .story-grid { grid-template-columns: 1fr; gap: 36px; }
  /* relative, not static: the stage arrows (.gal-nav) anchor to this box on
     mobile too — a static ancestor would throw them to the page. */
  .preview-stage { position: relative; top: auto; }
  /* the pinned media column is a desktop affordance — on a phone it would eat
     the viewport, so the column scrolls normally again */
  .pdp-gallery { position: static; }
  .summary-card { position: static; }
  .ba-wrap { grid-template-columns: 1fr; }
  .coll-grid { grid-template-columns: 1fr; }
  .coll-card img { aspect-ratio: 4/3.2; }
  .hero-card { left: 12px; bottom: 14px; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    box-shadow: var(--shadow-md); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-grid-3 { grid-template-columns: 1fr; }
  .quote-band blockquote { font-size: 26px; }
  .page-head h1 { font-size: 34px; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .final-cta h2 { font-size: 32px; }
  .proof-copy h2 { font-size: 32px; }
  /* PRD §42 — sticky bottom CTA on mobile product pages */
  .pdp-sticky { display: flex; }
  body[data-page="product"] { padding-bottom: 74px; }
}
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px 1fr; }
  .ci-mock { width: 84px; }
  .ci-right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .hero h1 { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .ai-row { flex-direction: column; }
  .ai-status { margin-left: 0; text-align: left; }
  .acct-card { padding: 26px 20px 20px; }
  .acct-brand h1 { font-size: 25px; }
  .also-grid { grid-template-columns: 1fr; }
  .nav-actions .cart-btn#search-btn { display: none; }
  /* header must fit 390px: with the hamburger, a non-shrinking wordmark and three
     action buttons, the desktop 26px gap overflows the viewport by ~32px. */
  .nav-row { gap: 12px; }
  .brand { font-size: 24px; }
  .nav-actions { gap: 6px; }
  .section-head h2 { font-size: 31px; }
  .final-cta h2 { font-size: 27px; }
  .proof-copy h2 { font-size: 27px; }
  .ba-note { font-size: 21px; }
  .moment-row { flex-wrap: wrap; }
  .moment-actions { width: 100%; }
  .share-btns .share-btn { flex: 1 1 auto; text-align: center; }
  .progress-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  /* 320px (iPhone SE 1st-gen / older Android): reclaim gutter + shrink wordmark so
     the hamburger + account + cart row still fits without a sideways scroll. */
  .container { padding: 0 16px; }
  .nav-row { gap: 10px; }
  .brand { font-size: 21px; }
}

/* ==========================================================================
   V2 — landing pages (long-tail SEO), policy & support pages
   Appended block; nothing above is modified.
   ========================================================================== */

/* --- landing page prose ---------------------------------------------------- */
.lp-intro { max-width: 720px; margin: 0 auto; text-align: center; }
.lp-intro p { font-size: 17.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 16px; }
.lp-intro p:last-child { margin-bottom: 0; }

/* --- fact list (neutral, factual, no marketing claims) -------------------- */
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0; }
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px;
}
.fact dt { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact dd { margin: 0; font-size: 16px; color: var(--ink); line-height: 1.55; }

/* --- related links --------------------------------------------------------- */
.related-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.related-link {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.related-link:hover { border-color: var(--clay); color: var(--clay); }

/* --- policy / support document layout -------------------------------------- */
.doc { max-width: 760px; margin: 0 auto; }
.doc h2 {
  font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 600;
  margin: 42px 0 14px; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-family: "Inter", sans-serif; font-size: 16px; font-weight: 600; margin: 26px 0 8px; color: var(--ink); }
.doc p, .doc li { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); background: #fff; }
.doc td { color: var(--ink-soft); }
.doc-note {
  background: var(--paper-2, #F3EDE4); border-left: 3px solid var(--clay);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 0 0 22px;
  font-size: 15.5px; color: var(--ink-soft); line-height: 1.7;
}
.doc-updated { font-size: 13.5px; color: var(--muted); margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }

/* --- how-it-works step detail ---------------------------------------------- */
.hiw-step {
  display: grid; grid-template-columns: 78px 1fr; gap: 26px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.hiw-step:last-of-type { border-bottom: 0; }
.hiw-num {
  font-family: "Cormorant Garamond", serif; font-size: 44px; font-weight: 600;
  color: var(--clay); line-height: 1;
}
.hiw-body h3 { font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.hiw-body p { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 10px; }
.hiw-body ul { margin: 0; padding-left: 20px; }
.hiw-body li { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 6px; }

/* --- track order form ------------------------------------------------------ */
.track-form { max-width: 520px; margin: 0 auto; }
.track-form label { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.track-form .track-row { display: flex; gap: 10px; }
.track-form .input { flex: 1 1 auto; }
.track-help { font-size: 14.5px; color: var(--muted); margin-top: 14px; text-align: center; }

@media (max-width: 860px) {
  .hiw-step { grid-template-columns: 56px 1fr; gap: 18px; }
  .hiw-num { font-size: 34px; }
  .doc h2 { font-size: 26px; }
  .track-form .track-row { flex-direction: column; }
}

/* ==========================================================================
   V2.1 — Gifts For dropdown + recipient landing entry cards
   ========================================================================== */

/* --- header dropdown -------------------------------------------------------- */
.nav-dd { position: relative; }
.nav-dd-btn {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: all 0.18s;
}
.nav-dd-btn:hover { color: var(--ink); }
.nav-dd-btn.active { color: var(--ink); border-bottom-color: var(--clay); }
.nav-dd-btn .dd-caret { font-size: 10px; margin-left: 5px; color: var(--muted); transition: transform 0.18s; }
.nav-dd.open .dd-caret { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: -14px; z-index: 60;
  min-width: 250px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(38, 27, 20, 0.13);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.nav-dd.open .dd-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dd-menu a {
  display: flex; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.dd-menu a:hover { background: var(--paper-2, #F3EDE4); color: var(--ink); }
.dd-sep { height: 1px; background: var(--line); margin: 8px 10px; }
.dd-menu a.dd-special {
  align-items: center; gap: 12px;
  background: linear-gradient(135deg, #FDF6EF, #F9E9DE);
  border: 1px solid #EDD3BF;
}
.dd-menu a.dd-special:hover { background: linear-gradient(135deg, #FCEFE1, #F5DFCB); color: var(--ink); }
.dd-sp-emoji { font-size: 21px; flex: 0 0 auto; }
.dd-special strong { display: block; font-size: 14.5px; color: var(--clay); }
.dd-special em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* --- recipient landing: 人→场景 entry cards ---------------------------------- */
.path-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.path-card {
  display: flex; flex-direction: column; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 22px 20px; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.path-card:hover {
  transform: translateY(-3px); border-color: #E5C9B4;
  box-shadow: 0 14px 30px rgba(38, 27, 20, 0.09);
}
.path-num {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  color: var(--clay); letter-spacing: 0.06em;
}
.path-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.path-desc { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.path-cta { font-size: 13.5px; font-weight: 600; color: var(--clay); margin-top: auto; padding-top: 8px; }

/* --- mobile: dropdown becomes an in-flow group ------------------------------- */
@media (max-width: 1020px) {
  .nav-dd { width: 100%; }
  .nav-dd-btn { width: 100%; justify-content: space-between; padding: 13px 2px; font-size: 16px; }
  .dd-menu {
    position: static; min-width: 0; box-shadow: none; border: none; border-radius: 0;
    padding: 0 0 6px 14px; display: none;
    opacity: 1; transform: none; pointer-events: auto;
  }
  .nav-dd.open .dd-menu { display: block; }
  .dd-menu a { font-size: 15px; padding: 10px 8px; }
}

/* ===================== AI Creator Studio (/create) ===================== */
.cs-hero { max-width: 720px; margin: 54px auto 26px; text-align: center; }
.cs-hero .eyebrow { display: block; margin-bottom: 12px; }
.cs-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 14px; }
.cs-hero .lede { font-size: 17px; color: var(--ink-2, #57534e); margin: 0; }
.cs-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 30px auto 34px; max-width: 860px; }
.cs-step { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line, #e7e0d8); color: var(--ink-soft, #8a8378); font-size: 13px; font-weight: 600; background: #fff; }
.cs-step .cs-dot { width: 24px; height: 24px; border-radius: 50%; background: #f1ece5; display: grid; place-items: center; font-size: 12px; color: var(--ink-soft, #8a8378); }
.cs-step.on { border-color: #B4552D; color: var(--ink, #1c1917); }
.cs-step.on .cs-dot { background: #B4552D; color: #fff; }
.cs-step.done .cs-dot { background: #2f7d4f; color: #fff; }
.cs-drop { max-width: 640px; margin: 0 auto; padding: 54px 30px; text-align: center; border: 2px dashed var(--line, #e7e0d8); border-radius: 18px; background: #fffdf9; cursor: pointer; display: grid; gap: 8px; justify-items: center; transition: border-color .18s, background .18s; }
.cs-drop svg { margin-bottom: 4px; }
.cs-drop strong { font-family: var(--serif, serif); font-size: 24px; color: var(--ink, #1c1917); }
.cs-drop span { color: var(--ink-2, #57534e); font-size: 14px; }
.cs-drop .cs-hint { font-size: 12.5px; color: var(--ink-soft, #8a8378); max-width: 420px; }
.cs-drop.over, .cs-drop:focus-visible { border-color: #B4552D; background: #fdf6ef; }
.cs-err { max-width: 640px; margin: 14px auto 0; text-align: center; color: #b4231d; font-size: 14px; }
.cs-pipe { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--line, #e7e0d8); border-radius: 18px; padding: 30px; }
.cs-pipe-thumbwrap { position: relative; }
.cs-pipe-thumbwrap img { width: 100%; border-radius: 12px; display: block; background: #f4efe8; }
.cs-pipe-thumbwrap img + img { position: absolute; inset: 0; }
.cs-pipe-bar { height: 8px; background: #f1ece5; border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.cs-pipe-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #B4552D, #d97b4a); border-radius: 999px; transition: width .6s ease; }
.cs-pipe-msg { font-family: var(--serif, serif); font-size: 21px; font-weight: 600; margin: 0 0 6px; color: var(--ink, #1c1917); }
.cs-pipe-sub { color: var(--ink-2, #57534e); font-size: 14px; margin: 0 0 14px; }
.cs-styles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; max-width: 860px; margin: 26px auto; }
.cs-style { text-align: left; padding: 18px; border: 1.5px solid var(--line, #e7e0d8); border-radius: 14px; background: #fff; cursor: pointer; display: grid; gap: 4px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cs-style:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(74,68,62,.10); }
.cs-style.on { border-color: #B4552D; box-shadow: 0 0 0 1px #B4552D inset; }
.cs-style strong { font-family: var(--serif, serif); font-size: 18px; color: var(--ink, #1c1917); }
.cs-style span { font-size: 13px; color: var(--ink-2, #57534e); }
.cs-note { max-width: 860px; margin: 18px auto 0; text-align: center; color: #2f7d4f; font-size: 14px; font-weight: 600; }
.cs-busy { text-align: center; color: var(--ink-2, #57534e); font-size: 14px; }
.cs-preview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 380px); gap: 34px; max-width: 1020px; margin: 30px auto; align-items: start; }
.cs-mock { background: #fff; border: 1px solid var(--line, #e7e0d8); border-radius: 18px; padding: 22px; position: relative; touch-action: none; }
.cs-mock svg { width: 100%; display: block; }
.cs-side { background: #fff; border: 1px solid var(--line, #e7e0d8); border-radius: 18px; padding: 24px; display: grid; gap: 14px; }
.cs-side h3 { margin: 0; font-family: var(--serif, serif); font-size: 22px; color: var(--ink, #1c1917); }
.cs-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cs-prod { position: relative; border: 1.5px solid var(--line, #e7e0d8); border-radius: 12px; background: #fff; padding: 8px; cursor: pointer; display: grid; gap: 2px; justify-items: center; transition: border-color .15s; }
.cs-prod.on { border-color: #B4552D; box-shadow: 0 0 0 1px #B4552D inset; }
.cs-prod-thumb svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.cs-prod strong { font-size: 11.5px; color: var(--ink, #1c1917); text-align: center; }
.cs-prod-price { font-size: 12px; color: #B4552D; font-weight: 700; }
.cs-badge { position: absolute; top: -9px; right: 8px; background: #2f7d4f; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.cs-field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink-2, #57534e); }
.cs-field input { border: 1px solid var(--line, #e7e0d8); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink, #1c1917); background: #fffdf9; }
.cs-field input:focus { outline: 2px solid rgba(180,85,45,.35); border-color: #B4552D; }
.cs-scale { font-size: 12.5px; color: var(--ink-soft, #8a8378); margin: 0; }
.cs-proof { font-size: 12.5px; color: #2f7d4f; margin: 0; text-align: center; }
@media (max-width: 860px) {
  .cs-pipe { grid-template-columns: 1fr; }
  .cs-preview-grid { grid-template-columns: 1fr; }
  .cs-products { grid-template-columns: repeat(3, 1fr); }
}

/* AI status chip (embedded pipeline on PDP) */
.pdp-ai-status { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 14px; border-radius: 12px; background: #fdf3ec; border: 1px solid #ecd6c8; color: #7a4a2e; font-size: 13.5px; font-weight: 500; }
.pdp-ai-status strong { color: #B4552D; }

/* layer toggle (photo/text) in fit-tools */
.layer-toggle { display: inline-flex; border: 1px solid var(--line, #e7e0d8); border-radius: 999px; overflow: hidden; background: #fff; }
.lt-btn { border: 0; background: transparent; padding: 7px 14px; font: 600 12.5px/1 Inter, system-ui, sans-serif; color: var(--ink-soft, #8a8378); cursor: pointer; }
.lt-btn.on { background: #B4552D; color: #fff; }
.lt-btn:disabled { opacity: .45; cursor: not-allowed; }
/* ---- the design's photo stack (2026-10-26) -------------------------------
   One chip per picture under the canvas. The strip is how a picture is chosen
   when two of them overlap, and how it is removed without hunting for a handle
   that may be behind another picture. */
.ds-pics { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 0 4px; }
.ds-chip { position: relative; display: inline-block; line-height: 0; }
.ds-pick {
  width: 34px; height: 34px; padding: 0; border: 1px solid var(--line, #e7e0d8);
  border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer;
}
.ds-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-chip.on .ds-pick { border-color: #B4552D; box-shadow: 0 0 0 2px rgba(180, 85, 45, .18); }
.ds-x {
  position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; padding: 0;
  border: 0; border-radius: 50%; background: #2e2a26; color: #fff; font-size: 10px;
  line-height: 16px; text-align: center; cursor: pointer;
}
.ds-count { font: 600 11px/1 Inter, system-ui, sans-serif; color: var(--muted, #8a8378); padding-left: 2px; }

/* The selection box is HTML on top of the design SVG: `pointer-events: none` so
   the picture under it can still be dragged, with the handles opting back in. */
.sel-box {
  position: fixed; z-index: 30; pointer-events: none;
  border: 1px dashed #B4552D; border-radius: 2px;
  transform-origin: 50% 50%;
}
.sel-box .sb-h {
  position: absolute; pointer-events: auto; width: 22px; height: 22px; padding: 0;
  border: 1px solid #e7e0d8; border-radius: 50%; background: #fff; color: #8a3d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22); cursor: pointer;
  display: grid; place-items: center; font-size: 12px; line-height: 1;
}
.sel-box .sb-del { top: -11px; left: -11px; }
.sel-box .sb-rot { top: -32px; left: 50%; margin-left: -11px; cursor: grab; }
.sel-box .sb-scale { bottom: -11px; right: -11px; background: #B4552D; border-color: #B4552D; color: #fff; cursor: nwse-resize; }




/* ===================== AI Creator Studio (PDP launch button) ===================== */
.studio-open-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 16px; border: 1.5px solid #B4552D; border-radius: 12px; background: #fdf6ef; color: #B4552D; font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s, transform .15s; }
.studio-open-btn:hover { background: #fbeadd; transform: translateY(-1px); }

/* ===================== AI Creator Studio (full-screen, three zones) ===================== */
.cstudio { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-rows: 54px 1fr auto; background: #FAF7F2; color: #1c1917; }
.cstudio[hidden] { display: none; }
/* author display rules (.btn, .cs-dirs…) must never resurrect hidden elements */
.cstudio [hidden] { display: none !important; }
.cstudio-top { display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid #e7e0d8; background: #fffdf9; }
.cstudio-brand { font: 700 15px/1 Inter, system-ui, sans-serif; letter-spacing: .2px; }
.cstudio-crumb { flex: 1; font-size: 13px; color: #8a8378; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cstudio-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e7e0d8; background: #fff; color: #57534e; font-size: 15px; cursor: pointer; }
.cstudio-x:hover { border-color: #B4552D; color: #B4552D; }

/* LAYOUT (2026-10-09b rework) — the studio no longer renders designs on-site,
   so the giant artboard is gone. The left rail is a NARROW column: the four
   steps, a compact preview board and the apply button. Everything the shopper
   actually works on (shape · prompt · external doors · upload) owns the wide
   right column. */
/* ★ WIDE PREVIEW, NARROW CONTROLS (2026-10-18). The studio opens at about half
   the screen so the shopper can put their AI image tool beside it — at that
   width the old 280px-artboard / wide-form split was exactly backwards: the
   thing you are judging was tiny and the form sprawled. The board now takes the
   free space and the controls sit in a fixed, readable column. */
.cstudio-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); min-height: 0; }
.cstudio-canvas { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; min-height: 0; overflow: auto; }
/* preview board — a compact square, not a canvas: it only has to show the
   photo the shopper brought and the artwork they took back */
.cs-artboard { position: relative; flex: 0 0 auto; width: 100%; max-width: min(100%, 460px); margin: 0 auto; aspect-ratio: 1 / 1; min-height: 0; display: grid; place-items: center; border: 1.5px solid #e7e0d8; border-radius: 16px; background: conic-gradient(#f1ece4 25%, transparent 0 50%, #f1ece4 0 75%, transparent 0) 0 0/22px 22px #fffdf9; overflow: hidden; }
.cs-artboard:has(.cs-empty) { background: #fffdf9; }
.cs-art { max-width: 92%; max-height: min(46vh, 400px); object-fit: contain; filter: drop-shadow(0 8px 18px rgba(28,25,23,.12)); }
/* the photo handoff: drag it out, copy it, or save it — the shopper has to give
   this file to a tool that lives in another window */
.cs-photo-tools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 2px auto 0; max-width: 460px; width: 100%;
  font: 500 12px/1.3 Inter, system-ui, sans-serif; color: #8a8378;
}
.cs-photo-hint { margin-right: auto; }
/* one control, because it is the only handoff a browser can actually perform:
   copy the picture, paste it in the other tool. (Dragging a JS-built File into
   another window is not supported by Chromium — measured, see creator-studio.js.) */
.cs-photo-copy {
  border: 1px solid #e0d6c9; border-radius: 999px; background: #fffdf9;
  color: #4a443e; padding: 6px 12px;
  font: 600 11.5px/1 Inter, system-ui, sans-serif;
  cursor: pointer; transition: border-color .15s, color .15s, transform .15s;
}
.cs-photo-copy:hover { border-color: #B4552D; color: #B4552D; }
.cs-photo-copy:active { transform: scale(.98); }
#cs-artboard img, #cs-thumb img { -webkit-user-drag: none; user-select: none; }
@media (max-width: 700px) {
  .cs-photo-hint { display: none; }
}
.cs-empty { display: grid; place-items: center; width: 100%; height: 100%; }
.cs-empty-btn { display: grid; justify-items: center; gap: 6px; padding: 24px 14px; border: 2px dashed #d8cfc4; border-radius: 18px; background: #fffdf9; cursor: pointer; }
.cs-empty-btn span { font-size: 24px; }
.cs-empty-btn strong { font: 600 13.5px/1.2 Inter, system-ui, sans-serif; color: #1c1917; text-align: center; }
.cs-empty-btn em { font-style: normal; font-size: 11px; line-height: 1.45; color: #8a8378; max-width: 190px; text-align: center; }
.cs-empty-btn:hover { border-color: #B4552D; }

/* three design directions — legacy composer only (no default path renders these) */
.cs-designs { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-design { flex: 1 1 100px; min-width: 0; display: grid; gap: 5px; justify-items: center; text-align: center; border: 1.5px solid #e7e0d8; border-radius: 14px; background: #fff; padding: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cs-design:hover { border-color: #d8cfc4; }
.cs-design.on { border-color: #B4552D; box-shadow: 0 0 0 2px rgba(180,85,45,.18); }
.cs-design-thumb { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: conic-gradient(#f1ece4 25%, transparent 0 50%, #f1ece4 0 75%, transparent 0) 0 0/18px 18px #fbf8f3; }
.cs-design-thumb img { max-width: 86%; max-height: 86%; object-fit: contain; }
.cs-design-name { font: 600 13.5px/1.2 Inter, system-ui, sans-serif; color: #1c1917; }
.cs-design-why { font-size: 11.5px; color: #8a8378; }

.cs-canvas-foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.cs-quality { font-size: 11.5px; line-height: 1.4; color: #8a8378; }

.cstudio-side { border-left: 1px solid #e7e0d8; background: #fffdf9; padding: 18px 16px 26px; overflow: auto; min-height: 0; }
.cs-side-title { margin: 0 0 14px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; }
.cs-preserve { border: 1.5px solid #ecd6c8; background: #fdf6ef; border-radius: 14px; padding: 12px; margin-bottom: 14px; display: grid; gap: 8px; }
.cs-preserve h4 { margin: 0; font: 600 13.5px/1 Inter, system-ui, sans-serif; color: #B4552D; }
.cs-preserve p { margin: 0; font-size: 12px; color: #57534e; }
.cs-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1c1917; cursor: pointer; }
.cs-toggle input { accent-color: #B4552D; }
.cs-toggle em { margin-left: auto; font-style: normal; font-size: 11px; color: #2e7d4f; font-weight: 600; }
.cs-group { margin-bottom: 16px; }
.cs-group h4 { margin: 0 0 8px; font: 600 12px/1 Inter, system-ui, sans-serif; letter-spacing: .4px; text-transform: uppercase; color: #8a8378; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chip { border: 1px solid #e7e0d8; border-radius: 999px; background: #fff; padding: 7px 12px; font: 500 12.5px/1 Inter, system-ui, sans-serif; color: #4a443e; cursor: pointer; }
.cs-chip:hover { border-color: #B4552D; color: #B4552D; }
.cs-chip.on { background: #B4552D; border-color: #B4552D; color: #fff; }
.cs-hint { font-size: 12px; color: #8a8378; }
.cs-story { width: 100%; border: 1px solid #e7e0d8; border-radius: 12px; padding: 10px 12px; font: 400 13.5px/1.5 Inter, system-ui, sans-serif; color: #1c1917; background: #fff; resize: vertical; }
.cs-story:focus { outline: 2px solid rgba(180,85,45,.3); border-color: #B4552D; }
.cs-more-toggle { width: 100%; text-align: left; border: none; background: none; padding: 8px 0; font: 600 13px/1 Inter, system-ui, sans-serif; color: #B4552D; cursor: pointer; }

/* ---------------- prompt-first: the four steps ---------------- */
/* vertical progress rail in the narrow left column */
.cs-flow { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cs-flow-step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border: 1px solid #e7e0d8; border-radius: 999px; background: #fff; font: 600 12px/1 Inter, system-ui, sans-serif; color: #8a8378; }
.cs-flow-step span { width: 20px; height: 20px; border-radius: 50%; background: #f1ece5; color: #8a8378; display: grid; place-items: center; font-size: 11px; }
.cs-flow-step.on { border-color: #B4552D; color: #1c1917; }
.cs-flow-step.on span { background: #B4552D; color: #fff; }
.cs-flow-step.done span { background: #2f7d4f; color: #fff; }
.cs-block { border-top: 1px solid #ece5dc; padding-top: 14px; margin-top: 14px; display: grid; gap: 9px; }
.cs-block h4 { margin: 0; font: 600 12.5px/1 Inter, system-ui, sans-serif; letter-spacing: .3px; text-transform: uppercase; color: #8a8378; }
.cs-target { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #4a443e; }
.cs-target select { flex: 1; min-width: 0; border: 1px solid #e7e0d8; border-radius: 8px; background: #fff; padding: 6px 8px; font: 500 12.5px/1.2 Inter, system-ui, sans-serif; color: #1c1917; }
.cs-optimize { border: none; border-radius: 10px; background: #B4552D; color: #fff; padding: 11px 14px; font: 700 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.cs-optimize:hover { background: #9d4a26; }
.cs-optimize[disabled] { opacity: .55; cursor: default; }
.cs-prompt-label { font-size: 11.5px; color: #8a8378; }
#cs-prompt { width: 100%; border: 1px solid #e7e0d8; border-radius: 10px; background: #fff; padding: 9px 10px; font: 400 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1c1917; resize: vertical; }
#cs-prompt:focus { outline: 2px solid rgba(180,85,45,.25); border-color: #B4552D; }
.cs-prompt-bar { display: flex; align-items: center; gap: 8px; }
.cs-prompt-mode { flex: 1; min-width: 0; font-size: 11px; color: #2f7d4f; }
.cs-prompt-mode.basic { color: #a8560f; }
.cs-copy { border: 1px solid #B4552D; background: none; color: #B4552D; border-radius: 999px; padding: 5px 11px; font: 600 11.5px/1 Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.cs-copy:hover { background: #faf1ec; }
.cs-copy[disabled] { opacity: .45; cursor: default; }
.cs-ext-note { margin: 0; font-size: 12px; line-height: 1.5; color: #57534e; }
.cs-ext-btn { text-align: left; border: 1.5px solid #1c1917; border-radius: 10px; background: #fff; color: #1c1917; padding: 10px 12px; font: 600 12.5px/1.3 Inter, system-ui, sans-serif; cursor: pointer; }
.cs-ext-btn:hover { border-color: #B4552D; color: #B4552D; }
.cs-ext-btn[data-ext="nano_banana"] { border-color: #B4552D; }
.cs-ext-feedback { margin: 0; font-size: 11.5px; line-height: 1.45; }
.cs-ext-feedback.ok { color: #2f7d4f; }
.cs-ext-feedback.warn { color: #a8560f; }
.cs-ext-fallback { margin: 0; font-size: 11.5px; line-height: 1.45; color: #57534e; }
.cs-ext-fallback a { color: #B4552D; }
.cs-upload-btn { display: block; text-align: center; border: 1.5px dashed #B4552D; border-radius: 10px; background: #fffdf9; color: #B4552D; padding: 12px; font: 700 12.5px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.cs-upload-btn:hover { background: #fdf6ef; }
.cs-upload-note { margin: 0; font-size: 11px; line-height: 1.45; color: #8a8378; }

/* chat card — Canva-style floating composer */
.cstudio-input { border-top: 1px solid #e7e0d8; background: #fffdf9; padding: 12px 18px 14px; }
.cs-status { font-size: 12.5px; color: #8a8378; margin: 0 0 6px; }
.cs-reply { font-size: 12.5px; color: #4a443e; background: #fdf6ef; border: 1px solid #ecd6c8; border-radius: 10px; padding: 7px 10px; margin: 0 auto 8px; max-width: 760px; }
.cs-chat { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #e7e0d8; border-radius: 22px; box-shadow: 0 14px 40px rgba(28,25,23,.10); padding: 12px 14px 10px; display: grid; gap: 10px; }
#cs-text { width: 100%; border: none; background: transparent; padding: 2px 4px; font: 400 14.5px/1.5 Inter, system-ui, sans-serif; color: #1c1917; resize: none; }
#cs-text:focus { outline: none; }
.cs-chat-bar { display: flex; align-items: center; gap: 10px; }
.cs-thumb-wrap { position: relative; flex-shrink: 0; }
.cs-thumb { width: 52px; height: 52px; border-radius: 12px; border: 1px solid #e7e0d8; background: #f6f1ea; display: grid; place-items: center; overflow: hidden; }
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cs-thumb-swap { position: absolute; top: -7px; left: -7px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #e7e0d8; background: #fff; color: #57534e; font-size: 12px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(28,25,23,.12); }
.cs-thumb-swap:hover { border-color: #B4552D; color: #B4552D; }
.cs-add-mini { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid #e7e0d8; background: #fff; color: #57534e; font-size: 19px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.cs-add-mini:hover { border-color: #B4552D; color: #B4552D; }
.cs-mode { font: 500 12.5px/1 Inter, system-ui, sans-serif; color: #8a8378; display: inline-flex; align-items: center; gap: 5px; }
.cs-send { margin-left: auto; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: none; background: #1c1917; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .15s, opacity .15s; }
.cs-send:hover { transform: scale(1.05); }
.cs-send:disabled { opacity: .45; cursor: default; transform: none; }
.cs-side-tab { display: none; }

@media (max-width: 700px) {
  .cstudio-body { grid-template-columns: 1fr; }
  .cstudio-canvas { padding: 12px 14px; gap: 10px; }
  /* on phones the rail collapses back to a horizontal strip: steps wrap on
     one row and the preview board stays small and centered */
  .cs-flow { flex-direction: row; flex-wrap: wrap; }
  .cs-artboard { max-width: 200px; margin: 0 auto; }
  .cs-art { max-height: 26vh; }
  .cstudio-side { position: fixed; top: 54px; right: 0; bottom: 0; width: min(330px, 90vw); transform: translateX(110%); transition: transform .22s ease; z-index: 5; box-shadow: -18px 0 50px rgba(28,25,23,.18); }
  .cstudio-side.sheet { transform: none; }
  .cs-side-tab { display: block; position: fixed; right: 14px; bottom: 118px; z-index: 6; border: 1.5px solid #B4552D; background: #fffdf9; color: #B4552D; border-radius: 999px; padding: 10px 16px; font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(28,25,23,.18); }
  .cs-designs { overflow-x: auto; padding-bottom: 4px; }
  .cs-design { flex: 0 0 128px; }
  .cs-design-why { display: none; }
  .cs-chat { border-radius: 18px; }
  .cs-send { width: 38px; height: 38px; }
}

/* ============================================================
   P1-⑤ — My Creations & the version tree
   ============================================================ */
.cr-root { padding: 34px 0 84px; }

.cr-head { margin-bottom: 20px; }
.cr-head h1 { font-family: var(--serif); font-size: 38px; line-height: 1.15; }
.cr-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cr-head-actions { display: flex; gap: 8px; align-items: center; }
.cr-back { display: inline-block; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.cr-back:hover { color: var(--clay); }
.cr-hint { font: 400 12.5px/1.4 var(--sans); color: var(--muted); margin-left: 8px; }

.cr-note {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line-strong); background: var(--cream);
  border-radius: var(--radius); padding: 13px 16px; margin-bottom: 22px;
}
.cr-note p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.cr-note a { color: var(--clay); text-decoration: underline; }

.cr-empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 46px 26px; text-align: center; background: var(--surface);
}
.cr-empty-emoji { font-size: 34px; }
.cr-empty h1, .cr-empty h2 { font-family: var(--serif); font-size: 26px; margin: 8px 0 6px; }
.cr-empty .btn { margin-top: 16px; }

/* ---------- list ---------- */
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 20px; }
.cr-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s;
}
.cr-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cr-thumb {
  display: grid; place-items: center; aspect-ratio: 4/3;
  background: repeating-conic-gradient(#f2ede4 0% 25%, #fbf8f3 0% 50%) 50% / 18px 18px;
  font-size: 30px; color: var(--muted);
}
.cr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cr-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 15px; }
.cr-title { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.cr-sub { font-size: 12.5px; color: var(--muted); }
.cr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cr-tag {
  font: 600 11px/1 var(--sans); letter-spacing: .02em;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 9px; color: var(--muted);
}
.cr-tag-ok { border-color: var(--sage); background: var(--sage-tint); color: var(--sage); }
.cr-tag-quiet { border-style: dashed; }

/* ---------- detail ---------- */
.cr-wrap { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cr-card-panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 20px 20px 22px; box-shadow: var(--shadow-sm);
}
.cr-card-panel h2 { font-family: var(--sans); font-size: 15px; letter-spacing: .01em; margin-bottom: 16px; }
.cr-vers { display: grid; gap: 12px; }

.cr-ver {
  display: grid; grid-template-columns: 46px 78px minmax(0, 1fr) auto;
  gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  background: var(--paper);
}
.cr-ver.on { border-color: var(--sage); background: var(--sage-tint); }
.cr-ver-no {
  font: 600 13px/1 var(--sans); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 0; text-align: center; background: var(--surface);
}
.cr-ver-thumb {
  width: 78px; height: 78px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
  background: repeating-conic-gradient(#f2ede4 0% 25%, #fbf8f3 0% 50%) 50% / 14px 14px; font-size: 22px; color: var(--muted);
}
.cr-ver-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cr-ver-body { min-width: 0; }
.cr-ver-prompt { font-size: 13.5px; color: var(--ink-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cr-ver-meta, .cr-ver-tree { font-size: 12px; color: var(--muted); margin-top: 3px; }
.cr-ver-tree a { color: var(--clay); text-decoration: none; }
.cr-ver-tree a:hover { text-decoration: underline; }
.cr-ver-actions { display: flex; gap: 8px; align-items: center; }

.cr-art h3 { font-family: var(--sans); font-size: 15px; margin-bottom: 12px; }
.cr-spec { display: grid; gap: 8px; margin: 0 0 14px; }
.cr-spec > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.cr-spec dt { font-size: 12.5px; color: var(--muted); }
.cr-spec dd { font-size: 13px; font-weight: 600; text-align: right; }
.cr-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }

.cr-compare { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.cr-compare-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cr-compare-head h2 { font-family: var(--serif); font-size: 24px; }
.cr-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cr-compare-fig { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cr-compare-thumb {
  display: grid; place-items: center; aspect-ratio: 1/1; min-height: 220px;
  background: repeating-conic-gradient(#f2ede4 0% 25%, #fbf8f3 0% 50%) 50% / 20px 20px;
}
.cr-compare-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cr-compare-fig figcaption { padding: 11px 13px 13px; display: grid; gap: 3px; }
.cr-compare-fig figcaption strong { font-size: 13px; }
.cr-compare-fig figcaption span { font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .cr-wrap { grid-template-columns: 1fr; }
  .cr-head h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .cr-ver { grid-template-columns: 40px 62px minmax(0, 1fr); }
  .cr-ver-thumb { width: 62px; height: 62px; }
  .cr-ver-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .cr-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

/* ============================================================================
   Admin V1 — shell, sidebar and the shared primitives (admin-ui.js)
   ----------------------------------------------------------------------------
   Desktop-first and deliberately unglamorous: a console is read, not admired.
   The palette is the storefront's (paper / ink / clay) with a muted sage and a
   muted red added for the status pills, so an operator's eye can trust colour
   without the page turning into a dashboard of primary colours.

   The pmm- prefix keeps these from colliding with the storefront's classes; the
   account page already owns .dash-grid and .dash-card with a different shape.
   ============================================================================ */

.admin-app-boot { max-width: 440px; margin: 0 auto; padding: 32px 24px 96px; }

.admin-app {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: 0;
  max-width: 1520px;
  margin: 0 auto;
  padding: 26px 26px 96px;
  align-items: start;
}

.admin-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.admin-brand { display: flex; gap: 10px; align-items: center; }
.admin-brand-mark {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px;
  background: var(--clay); color: #fff; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
}
.admin-brand-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.admin-brand-ver { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.06em; }

.admin-nav { display: grid; gap: 2px; }
.admin-nav-item {
  display: block; padding: 8px 11px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
.admin-nav-item:hover { background: var(--cream); color: var(--ink); }
.admin-nav-item.on { background: var(--clay-tint); color: var(--clay-dark); font-weight: 600; }
.admin-nav-more { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-nav-sub { font-size: 13px; }
.admin-nav-note { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 1px; }

.admin-side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.admin-signout {
  justify-self: start; background: none; border: none; padding: 0;
  font: inherit; font-size: 13px; color: var(--clay); text-decoration: underline; cursor: pointer;
}

.admin-main { padding-left: 30px; min-width: 0; }

/* ---- page furniture ------------------------------------------------------ */

.pmm-page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding: 4px 0 20px;
}
.pmm-page-head h1 { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.15; margin: 6px 0 6px; }
.pmm-page-head p { color: var(--muted); font-size: 13.5px; max-width: 640px; }
.pmm-eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pmm-eyebrow a { color: var(--clay); text-decoration: none; }
.pmm-eyebrow a:hover { text-decoration: underline; }
.pmm-page-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.pmm-banner {
  margin-bottom: 18px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--clay-tint); border: 1px solid #ecd3c3; color: var(--clay-dark); font-size: 13px;
}

.pmm-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.pmm-toolbar-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pmm-toolbar-right { display: flex; gap: 10px; align-items: center; }
.pmm-input { max-width: 260px; }
select.pmm-input { max-width: 210px; }

/* ---- pager (shared by every admin list) -----------------------------------
   Sits UNDER the table, aligned to its right edge, because it describes the
   table above it. `margin-left:auto` on the controls keeps the "page 2 of 7"
   text anchored left where the eye already is after scrolling a long page. */
.pmm-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.pmm-pager-info { font-variant-numeric: tabular-nums; }
.pmm-pager-controls { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.pmm-page-btn { min-width: 34px; padding-left: 9px; padding-right: 9px; }
.pmm-page-btn[disabled] { opacity: 0.4; cursor: default; }
select.pmm-pager-size { max-width: 120px; padding-top: 4px; padding-bottom: 4px; font-size: 12.5px; }

/* A page turn dims the table it is replacing instead of erasing it: the pager
   stays where the operator's cursor is, so a second click means something. */
.pmm-busy { opacity: 0.55; transition: opacity 120ms ease; pointer-events: none; }

/* ---- settings form (phase 8) ---------------------------------------------- */
/* One row per key: label, input, and underneath them the two truths the server
   owns — the wired declaration (what reads this value today) and, after a
   refused save, the per-key validation error. */
.pmm-set-field { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pmm-set-field:last-child { border-bottom: none; }
.pmm-set-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.pmm-set-wired { font-size: 12px; color: var(--muted); line-height: 1.5; max-width: 60ch; }
.pmm-set-error { font-size: 12.5px; color: var(--bad, #b42318); line-height: 1.5; max-width: 60ch; }


.pmm-note { font-size: 11.5px; color: var(--muted); }
.pmm-sub { font-size: 12px; color: var(--muted); }
/* The variant label on an Admin order line — WHITE, L. Deliberately NOT
   `.pmm-badge`: a badge carries a status tone, and "BLACK" is not a verdict.
   This is a fact about the garment, so it reads as neutral ink on cream, at a
   size an operator can catch without leaning in. */
.pmm-chip {
  display: inline-block; background: var(--cream); border: 1px solid var(--line);
  color: var(--ink); border-radius: 999px; padding: 2px 9px; margin: 3px 4px 3px 0;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.pmm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.pmm-h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.pmm-h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.pmm-line { font-size: 13px; color: var(--ink-soft); background: var(--cream); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; }
.pmm-plain-list { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }

/* ---- badges -------------------------------------------------------------- */

.pmm-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  background: var(--cream); color: var(--muted);
}
.pmm-badge[data-tone="ok"] { background: var(--sage-tint); color: #3f6b4a; }
.pmm-badge[data-tone="warn"] { background: var(--clay-tint); color: var(--clay-dark); }
.pmm-badge[data-tone="bad"] { background: #f8e2de; color: #9a3524; }
.pmm-badge[data-tone="info"] { background: #e7eef4; color: #33566f; }
.pmm-badge[data-tone="muted"] { background: var(--cream); color: var(--muted); }

.pmm-status-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px;
}
.pmm-status-cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; display: grid; gap: 7px;
}
.pmm-status-key { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---- cards --------------------------------------------------------------- */

.pmm-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 18px; overflow: hidden;
}
.pmm-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--cream);
}
.pmm-card-title { font-family: var(--sans); font-size: 14.5px; font-weight: 600; }

/* ★ Artwork review on the order page (2026-10-19): one row per line, the
   customer's own upload on the left, the blocking state and the one action on
   the right. */
.rev-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rev-next { margin: 10px 0 14px; font-size: 13px; color: var(--ink-2, #57534e); }
.rev-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line, #e7e0d8);
}
.rev-row:first-of-type { border-top: 0; }
.rev-thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: #f4efe8; display: grid; place-items: center;
  font: 500 11px/1 var(--sans); color: var(--muted, #8a8378);
}
.rev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev-thumb--empty { border: 1px dashed var(--line, #e7e0d8); background: #fffdf9; }
.rev-main { display: grid; gap: 3px; min-width: 0; }
.rev-main strong { font-size: 13.5px; }
.rev-sub { font-size: 12px; color: var(--muted, #8a8378); }
.rev-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rev-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* ★ the review workspace (P0): two pictures, the geometry drawn on one of them,
   and the checklist that has to be answered before anything is printed. */
.rev-modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; }
.rev-modal__backdrop { position: absolute; inset: 0; background: rgba(28, 25, 23, .45); }
.rev-modal__panel {
  position: relative; width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  overflow: auto; background: #fffdf9; border-radius: 16px; padding: 20px 22px 18px;
  box-shadow: 0 24px 64px rgba(28, 25, 23, .28); outline: none;
}
.rev-modal__head { display: flex; align-items: flex-start; gap: 14px; }
.rev-modal__head h2 { margin: 0; font: 600 17px/1.25 var(--serif, Georgia, serif); }
.rev-modal__sub { margin: 2px 0 0; font-size: 12px; color: var(--muted, #8a8378); }
.rev-modal__close { margin-left: auto; padding: 4px 10px; }
.rev-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 8px; }
.rev-pane { margin: 0; }
.rev-pane figcaption { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #8a8378); margin-bottom: 6px; }
.rev-stage {
  position: relative; aspect-ratio: 4 / 5; background: #f4efe8; border-radius: 12px;
  overflow: hidden; display: grid; place-items: center;
}
.rev-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* ★ THE TWO DOWNLOADS SIT DIRECTLY UNDER THEIR PICTURE.
   That is where an operator looks for "give me this file": the left one hands
   over the shopper's source so it can be processed elsewhere, the right one
   hands over the production file at canvas size so it can be fine-tuned. Full
   width so it reads as belonging to the image above it rather than as a stray
   link that happened to land in the caption.
   (`hidden` is the default until the blob URL exists — a download that downloads
   nothing is worse than no button, and `display:block` below would otherwise
   beat the UA's `[hidden]` rule.) */
.rev-dl {
  display: block; width: 100%; margin-top: 8px; padding: 8px 10px;
  text-align: center; text-decoration: none;
  font-size: 12.5px; letter-spacing: .02em;
  color: var(--ink-2, #57534e); background: #fbf7f0;
  border: 1px solid #e6ddcf; border-radius: 10px;
  transition: background .15s ease, border-color .15s ease;
}
.rev-dl:hover { background: #f4ecdf; border-color: #d9cbb6; }
.rev-dl:focus-visible { outline: 2px solid #b4552d; outline-offset: 2px; }
.rev-dl[hidden] { display: none; }
.rev-none, .rev-loading { font-size: 12px; color: var(--muted, #8a8378); }
.rev-guide { position: absolute; pointer-events: none; border-radius: 8px; }
.rev-guide--bleed { border: 1px dashed rgba(180, 85, 45, .85); }
.rev-guide--safe { border: 1px dashed rgba(22, 128, 92, .8); }
.rev-readout {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  font-size: 12px; color: var(--ink-2, #57534e); padding: 8px 10px;
  background: #fbf7f0; border-radius: 10px;
}
.rev-readout--empty { color: var(--muted, #8a8378); }
.rev-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.rev-group { border: 1px solid var(--line, #e7e0d8); border-radius: 12px; padding: 10px 12px 12px; }
.rev-group legend { font-size: 12px; font-weight: 600; padding: 0 4px; }
.rev-group label { display: flex; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.rev-auto { color: var(--muted, #8a8378); }
.rev-notes { display: grid; gap: 6px; font-size: 12.5px; }
.rev-notes textarea { border: 1px solid var(--line, #e7e0d8); border-radius: 10px; padding: 8px 10px; font: inherit; resize: vertical; }
.rev-evidence { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; }
.rev-evidence__hint { font-size: 11.5px; color: var(--muted, #8a8378); }
.rev-evidence__list { display: flex; gap: 8px; }
.rev-evidence__list img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line, #e7e0d8); }
.rev-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line, #e7e0d8); }
/* the record, read back: verdicts per artwork version, proofs, and the newest
   verdict's screenshots */
.rev-history { margin-top: 14px; border-top: 1px solid var(--line, #e7e0d8); padding-top: 12px; }
.rev-history h3 { margin: 0 0 8px; font: 600 13px/1.2 var(--sans); }
.rev-history__empty { margin: 0; font-size: 12.5px; color: var(--muted, #8a8378); }
.rev-history__latest { margin: 0 0 10px; font-size: 12.5px; }
.rev-history__evidence { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.rev-evidence__item { display: block; }
.rev-evidence__item img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line, #e7e0d8); display: block; }
.rev-history__table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 8px; }
.rev-history__table th { text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #8a8378); padding: 4px 8px 4px 0; }
.rev-history__table td { padding: 5px 8px 5px 0; border-top: 1px solid var(--line, #e7e0d8); vertical-align: top; }
.rev-history__notes { max-width: 320px; }
.rev-history__ev { color: var(--muted, #8a8378); }
@media (max-width: 720px) {
  .rev-compare, .rev-form { grid-template-columns: 1fr; }
}
.rev-upload.is-busy { opacity: .55; pointer-events: none; }
.pmm-card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pmm-card-actions { flex: 0 0 auto; }
.pmm-card-body { padding: 4px 0 0; }
.pmm-card-body > p, .pmm-card-body > .pmm-sub, .pmm-card-body > .pmm-note, .pmm-card-body > .pmm-plain-list, .pmm-card-body > .pmm-kv { margin: 14px 18px; }
.pmm-card-body > .pmm-h3 { margin: 16px 18px 8px; }

/* ---- tables -------------------------------------------------------------- */

.pmm-table-wrap { width: 100%; overflow-x: auto; }
.pmm-table { width: 100%; border-collapse: collapse; }
.pmm-table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.pmm-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
.pmm-table tr:last-child td { border-bottom: none; }
.pmm-row-link { cursor: pointer; }
.pmm-row-link:hover td { background: var(--cream); }
.pmm-row-link:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
a.pmm-mono { color: var(--clay); text-decoration: none; }
a.pmm-mono:hover { text-decoration: underline; }

/* ---- key/value, grids ---------------------------------------------------- */

.pmm-kv { display: grid; gap: 9px; }
.pmm-kv-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.pmm-kv-row dt { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pmm-kv-row dd { font-size: 13.5px; color: var(--ink); line-height: 1.55; }

.pmm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pmm-grid-2 > .pmm-card { margin-bottom: 0; }
.pmm-grid-2 { margin-bottom: 18px; }

/* ---- timeline ------------------------------------------------------------ */

.pmm-timeline { list-style: none; margin: 0; padding: 14px 18px 18px; display: grid; gap: 2px; }
.pmm-timeline li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 8px 0; position: relative; }
.pmm-timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 5px; top: 22px; bottom: -8px; width: 1px; background: var(--line-strong);
}
.pmm-timeline-dot {
  width: 11px; height: 11px; border-radius: 999px; margin-top: 4px;
  background: var(--surface); border: 2px solid var(--clay);
}
.pmm-timeline-top { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }

.pmm-details { margin: 0 18px 16px; }
.pmm-details summary { cursor: pointer; font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.pmm-details .pmm-table th:first-child, .pmm-details .pmm-table td:first-child { padding-left: 6px; }

/* ---- asset preview (Creative Assets, phase 4) ----------------------------
   The slot holds a loading state, an image, or an error card, and the card must
   not jump between those three heights — an operator comparing two assets should
   not see the page reflow every time. A dark checkerboard would be wrong here:
   the console is light, and a "transparent" backdrop that is not the card's own
   background reads as a broken image. */
.pmm-asset-preview { min-height: 180px; display: flex; align-items: center; justify-content: center; }
.pmm-asset-preview img { background: var(--surface-2, #f4f1ec); }
.pmm-asset-preview .pmm-loading, .pmm-asset-preview .pmm-empty, .pmm-asset-preview .pmm-error {
  width: 100%; border: 0; box-shadow: none; padding: 18px;
}

/* ---- states -------------------------------------------------------------- */

.pmm-empty, .pmm-error, .pmm-stub, .pmm-loading {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; box-shadow: var(--shadow-sm);
}
.pmm-empty { margin-bottom: 18px; }
.pmm-empty h3, .pmm-error h3, .pmm-stub h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.pmm-empty p, .pmm-error p, .pmm-stub p { font-size: 13.5px; color: var(--muted); max-width: 560px; margin: 0 auto 14px; }
.pmm-empty .btn { margin-top: 4px; }
.pmm-error { border-color: #eccfc7; background: #fdf6f4; }
.pmm-error h3 { color: var(--clay-dark); }
.pmm-error-hint { color: var(--ink-soft) !important; }
.pmm-error-code { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }
.pmm-stub { text-align: left; padding: 30px 28px; margin-bottom: 18px; }
.pmm-stub-phase {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--cream); color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.pmm-stub ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.95; }
.pmm-loading { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.pmm-spinner {
  width: 14px; height: 14px; border-radius: 999px; flex: 0 0 auto;
  border: 2px solid var(--line-strong); border-top-color: var(--clay);
  animation: pmm-spin 0.7s linear infinite;
}
@keyframes pmm-spin { to { transform: rotate(360deg); } }

/* ---- dashboard tiles ----------------------------------------------------- */

.pmm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.pmm-metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: grid; gap: 5px; box-shadow: var(--shadow-sm);
}
.pmm-metric-wide { grid-column: 1 / -1; }
.pmm-metric-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pmm-metric-k-gap { margin-left: 14px; }
.pmm-metric-v { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--ink); }
.pmm-metric-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---- dashboard §4 operational counters (phase 7) -------------------------- */
/* One cell per counter: the number, its name, and the definition the SQL owns.
   The definition renders under the number so the operator never has to guess
   which question a figure answers — and the browser never re-words it. */
.pmm-ops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pmm-ops-cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: grid; gap: 4px; align-content: start; box-shadow: var(--shadow-sm);
}
.pmm-ops-n { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--ink); }
.pmm-ops-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.pmm-ops-def { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .pmm-ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pmm-ops-grid { grid-template-columns: 1fr; } }

.pmm-actions { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.pmm-win {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px;
  padding: 5px 13px; font: inherit; font-size: 12.5px; color: var(--ink-soft); cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.pmm-win:hover { border-color: var(--clay); }
.pmm-win.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---- tabs ---------------------------------------------------------------- */

.pmm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.pmm-tab {
  background: none; border: none; border-bottom: 2px solid transparent; padding: 9px 14px;
  font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer;
}
.pmm-tab:hover { color: var(--ink); }
.pmm-tab.on { color: var(--ink); border-bottom-color: var(--clay); font-weight: 600; }
.pmm-tab-count { font-size: 11.5px; color: var(--muted); }

/* ---- gate additions ------------------------------------------------------ */

.pmm-gate-err { color: var(--clay-dark); font-size: 13px; margin-top: 10px; }
.pmm-gate-msg[data-tone="bad"] { color: var(--clay-dark); }
.pmm-gate-links { margin-top: 14px; font-size: 13px; }
.pmm-gate-links a { color: var(--clay); }

/* ---- toast --------------------------------------------------------------- */

#pmm-toast-host { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.pmm-toast {
  background: var(--ink); color: var(--paper); font-size: 13px;
  padding: 11px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); max-width: 320px;
}
.pmm-toast[data-tone="ok"] { background: #2f6b45; }
.pmm-toast[data-tone="bad"] { background: #9a3524; }

/* ---- danger zone (asset detail) -------------------------------------------
   The one card on the detail page that is allowed to look alarming: a hairline
   red border, no fill change, and the confirm copy in full sentences. The
   styling says "slow down"; the two-step wiring is what actually stops the
   mis-click. */
.pmm-danger { padding: 14px 18px 18px; display: grid; gap: 10px; }
.pmm-danger p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.pmm-danger #asset-danger-confirm {
  border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; justify-items: start;
}
#od-asset-danger.pmm-card { border-color: #d8a79e; }

/* ---- responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .pmm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmm-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .admin-app { grid-template-columns: minmax(0, 1fr); padding: 18px 18px 80px; }
  .admin-side { position: static; }
  .admin-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin-main { padding: 18px 0 0; }
  .pmm-status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmm-page-head { flex-direction: column; align-items: flex-start; }
  .pmm-page-head h1 { font-size: 28px; }
  .pmm-kv-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 560px) {
  .pmm-metrics { grid-template-columns: minmax(0, 1fr); }
  .pmm-status-strip { grid-template-columns: minmax(0, 1fr); }
  .pmm-input, select.pmm-input { max-width: none; width: 100%; }
}

/* ===== account auth — Kittl-style centered card (2026-10-05) ===== */
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-ink:hover { opacity: 0.9; }
.btn-ink[disabled] { opacity: 0.4; cursor: not-allowed; }
.acct-mark { display: flex; justify-content: center; margin-bottom: 10px; color: var(--ink); }
.acct-mark svg { width: 28px; height: 28px; }
.acct-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 600; text-align: center; margin: 0 0 6px; }
.acct-sub { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 0 0 20px; }
.acct-forgot { text-align: center; margin-top: 14px; }
.acct-forgot a { color: var(--clay); font-weight: 600; text-decoration: underline; }
.acct-switch { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 22px; line-height: 1.8; }
.acct-switch a { color: var(--clay); font-weight: 600; text-decoration: underline; }
.acct-terms { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; margin-top: 14px; }
.acct-terms a { color: var(--muted); text-decoration: underline; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 44px; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: none; padding: 6px; cursor: pointer; color: var(--muted); display: flex; }
.pass-eye:hover { color: var(--ink-soft); }
.pass-eye.on { color: var(--ink); }
.pass-eye:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 6px; }
.pass-eye svg { width: 18px; height: 18px; }

/* ---- product gallery (P-C) ------------------------------------------------ */
/* The Admin image manager. A tile is a picture, its facts and its four verbs;
   the grid is a grid so a product with one picture and a product with nine both
   look deliberate. `draggable` is the reorder affordance, so the cursor says so. */

.pmm-gallery {
  margin: 16px 18px 6px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.pmm-shot {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden; display: flex; flex-direction: column;
  cursor: grab;
}
.pmm-shot:active { cursor: grabbing; }
.pmm-shot[data-cover="true"] { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay-tint); }
.pmm-shot-img {
  position: relative; aspect-ratio: 4 / 3; background: var(--cream);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pmm-shot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmm-shot-flag { position: absolute; top: 8px; left: 8px; }
.pmm-shot-broken { font-size: 11.5px; color: var(--muted); padding: 8px; text-align: center; }
.pmm-shot figcaption { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 8px; }
.pmm-shot-meta { font-size: 11.5px; color: var(--muted); }
.pmm-shot-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pmm-shot-actions .btn { padding: 4px 8px; font-size: 12px; }
.pmm-shot-actions [data-del]:hover { color: var(--clay-dark); }

/* P-D — the list's product thumbnail.
   A square that does not resize the row when the picture is taller or wider
   than the others, and a placeholder that is the same square so a product
   without a picture (or with one the public door refuses) keeps the column
   aligned instead of collapsing it. */
.pmm-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-2, #f3f1ec);
  border: 1px solid var(--line, #e6e2da);
}
.pmm-thumb-empty { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------------------
   Print Profiles — an unverified number must LOOK unverified.
   ---------------------------------------------------------------------------
   Every seeded profile is `verified = false`: those are the numbers the shop
   has been printing from, but no supplier ever signed them off. A screen that
   renders that state the same way it renders a confirmed number is a screen
   that will be trusted for the wrong reason, so the row itself is marked —
   not just a badge someone has to read.

   The amber is the same `--clay` family the console already uses for "needs
   attention", so it reads as caution without inventing a new colour language. */
.pmm-prof-row[data-unverified="1"] > td {
  background: var(--clay-tint);
}
.pmm-prof-row[data-unverified="1"] > td:first-child {
  box-shadow: inset 3px 0 0 var(--clay);
}
.pmm-prof-row > td { transition: background 120ms ease; }

/* The editor that opens under a row. Three columns because the fields fall
   into three kinds of claim: how big, how sharp, and what file. */
.pmm-pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 4px 0 10px;
}
.pmm-pf-col h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pmm-pf-field { margin-bottom: 8px; }
.pmm-pf-label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.pmm-pf-hint { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.pmm-pf-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 12px;
  color: var(--ink-soft);
}
.pmm-pf-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pmm-pf-check { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; font-size: 13px; }
.pmm-pf-msg { font-size: 12px; color: var(--muted); }
.pmm-pf-row-actions { white-space: nowrap; }
.pmm-pf-row-actions .btn { margin-right: 4px; }

.pmm-pf-summary { display: flex; align-items: center; gap: 18px; }
.pmm-pf-big { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); }
.pmm-pf-big span { font-size: 18px; color: var(--muted); }
.pmm-pf-side { font-size: 13px; color: var(--ink-soft); }
.pmm-pf-summary.is-warn .pmm-pf-big { color: var(--clay-dark); }

/* The throwaway row a brand-new placement hangs its form from. It is scaffolding,
   not data — it exists for the seconds between "Add placement" and "Save", and if
   the operator cancels, it goes away without ever having been a profile. */
.pmm-prof-pending > td { background: var(--cream); }
.pmm-pf-status {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
