/* ─────────────────────────────────────────────────
   Design tokens

   Teal and blue sit next to each other on the wheel, so
   they blend cleanly in gradients. Violet separates the
   two return outcomes without looking like an error.

   Each hue has an -ink variant: the plain tone for
   fills and large display type, the ink for anything at
   body size, which needs the contrast on the surface.
   ───────────────────────────────────────────────── */
:root {
  --bg: #1d2532;
  --bg-rgb: 29, 37, 50;
  --bg-raised: #2a3445;
  --bg-card: #252e3d;
  --bg-sunk: #2f3a4b;
  --tint-rgb: 196, 212, 236;
  --line: rgba(var(--tint-rgb), 0.13);
  --line-strong: rgba(var(--tint-rgb), 0.24);
  --text: #e8eef6;
  --text-dim: #97a6bb;
  --teal: #2fe6c4;
  --teal-ink: #8ffce4;
  --teal-rgb: 47, 230, 196;
  --blue: #4cc3f0;
  --blue-ink: #9adcfb;
  --blue-rgb: 76, 195, 240;
  --violet: #b9a2ff;
  --violet-ink: #d0c1ff;
  --violet-rgb: 185, 162, 255;
  --clay: #ff8163;
  --clay-ink: #ffab8f;
  --clay-rgb: 255, 129, 99;
  --pink: #f472b6;
  --pink-ink: #f9b4da;
  --pink-rgb: 244, 114, 182;
  --grad: linear-gradient(180deg, #f7f9fc, #d3dce8);
  --grad-glow: rgba(var(--tint-rgb), 0.3);
  --grad-ink: linear-gradient(120deg, var(--teal-ink), var(--blue-ink) 68%, #8fd8ff);
  --shadow-sm: 0 1px 2px rgba(6, 10, 18, 0.35), 0 3px 14px rgba(6, 10, 18, 0.25);
  --shadow-md: 0 4px 16px rgba(6, 10, 18, 0.4), 0 0 46px rgba(var(--teal-rgb), 0.1);
  --card-grad-1: #263040;
  --card-grad-2: #212a38;
  --nav-bg: rgba(29, 37, 50, 0.72);
  --nav-border: rgba(196, 212, 236, 0.13);
  --menu-bg: #2a3445;
  --toast-bg: rgba(38, 48, 64, 0.92);
  --grain-blend: overlay;
  --grain-opacity: 0.05;
  --radius: 18px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

:where(input[type="checkbox"]) {
  appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--bg-sunk) center / 12px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
:where(input[type="checkbox"]):hover { border-color: var(--check, var(--teal)); }
:where(input[type="checkbox"]):checked {
  border-color: var(--check, var(--teal));
  background-color: var(--check, var(--teal));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231d2532' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5'/%3E%3C/svg%3E");
}
:where(input[type="checkbox"]):focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
:where(input[type="checkbox"]):disabled { opacity: 0.45; cursor: not-allowed; }

::selection { background: var(--teal); color: #fff; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; }

a { color: var(--blue-ink); }

:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono { font-family: var(--font-mono); }
.nums { font-variant-numeric: tabular-nums; }

/* Paper grain — multiply keeps it reading as texture rather than dirt */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.24'/%3E%3C/svg%3E");
}

/* Scroll progress bar */
#progress, #navigating {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 800;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  #progress { animation: growX linear both; animation-timeline: scroll(root); }
}
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

#navigating {
  height: 3px;
  z-index: 801;
  opacity: 0;
}
#navigating.on {
  opacity: 1;
  animation: navigate 8s cubic-bezier(0.1, 0.8, 0.2, 1) both;
}
@keyframes navigate {
  from { transform: scaleX(0.08); }
  to { transform: scaleX(0.92); }
}

/* ─────────────────────────────────────────────────
   Sticky glass nav

   The bar carries the wordmark and nothing else —
   everywhere to go, the theme switch and who you are
   hang off it in a menu. One target instead of nine,
   and the same target at every width.
   ───────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--nav-border);
  box-shadow: var(--shadow-md);
  max-width: calc(100vw - 24px);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.wordmark-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 15px;
  border: none;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: background 0.2s;
}
.wordmark-trigger:hover { background: rgba(var(--tint-rgb), 0.07); }
.wordmark-trigger .wordmark {
  font: 700 13px var(--font-mono);
  letter-spacing: 0.22em;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark-trigger .caret {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease-out);
}
.wordmark-trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font: 700 10.5px/1 var(--font-mono);
}
.nav-badge[hidden] { display: none; }

/* The menu itself: a non-modal dialog, so the page
   underneath stays live while it's open. The bar can
   afford to be glass because nothing but the wordmark
   sits on it. A list of labels can't — the hero
   headline reads straight through — so the panel is
   solid and leaves the glass to the bar above it. */
.nav-menu {
  position: absolute;
  inset: calc(100% + 11px) auto auto 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  width: 340px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 90px);
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--menu-bg);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.nav-menu[open] { animation: menuIn 0.24s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: translate(-50%, -9px) scale(0.96); } }

.nav-menu-pages { list-style: none; }
.nav-menu-sections { display: grid; gap: 10px; margin-top: 10px; }
.nav-menu-section {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(var(--tint-rgb), 0.025);
}
.nav-menu-section h3 {
  margin: 7px 10px 8px;
  color: var(--teal-ink);
  font: 700 10.5px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 640px) {
  .nav-menu { width: 520px; }
  .nav-menu-sections { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.nav-menu a, .nav-menu .sign-out {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 40px;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--text-dim);
  font: 500 13px var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover, .nav-menu .sign-out:hover {
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.07);
}
.nav-menu a.on {
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.1);
  box-shadow: inset 3px 0 var(--teal);
  font-weight: 600;
}
.nav-menu-pages kbd {
  display: inline-grid;
  order: 1;
  margin-left: auto;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--bg-raised);
  color: var(--text-dim);
  font: 500 11px var(--font-mono);
  line-height: 1;
}
.nav-menu-pages kbd:empty { display: none; }
@media (any-hover: none) {
  .nav-menu-pages kbd { display: none; }
}
.nav-menu-account {
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
  padding: 14px 10px 10px;
  border-top: 1px solid var(--line);
}
.nav-menu-account .whoami, .nav-menu-account .whomail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-menu-account .whoami { color: var(--text); font: 600 13px var(--font-sans); }
.nav-menu-account .whomail { color: var(--text-dim); font-size: 11.5px; }
.nav-menu form.button_to { display: block; margin: 0; }
.nav-menu-actions { display: flex; gap: 8px; }
.nav-menu-actions > * { flex: 1; min-width: 0; }

/* ── Avatars ──────────────────────────────────── */
.pj-avatar {
  --size: 36px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: hsl(var(--hue) 30% 26%);
  color: hsl(var(--hue) 60% 86%);
  font: 700 calc(var(--size) * 0.36) / 1 var(--font-sans);
  letter-spacing: 0.02em;
}

.pj-avatar.agent {
  border-radius: 30%;
  background: linear-gradient(135deg, hsl(var(--hue) 40% 26%), hsl(calc(var(--hue) + 40) 40% 20%));
  font-size: calc(var(--size) * 0.5);
  box-shadow: inset 0 0 0 1px rgba(var(--tint-rgb), 0.08);
}

.pj-avatar.large { --size: 48px; }
.pj-avatar.small { --size: 24px; }
.pj-avatar.tiny { --size: 18px; }

/* ─────────────────────────────────────────────────
   Profile: you, top right, with this device's
   notifications switch. Glass like the nav bar,
   and out of the way on a phone when it is.
   ───────────────────────────────────────────────── */
.header-account {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search: a pill next to the bell that opens a
   palette over the page. */
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 8px 0 15px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: var(--nav-bg);
  color: var(--text-dim);
  font: 500 13px var(--font-sans);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.search-trigger:hover { color: var(--teal); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger-label { min-width: 72px; text-align: left; }
.site-search kbd {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--bg-sunk);
  color: var(--text-dim);
  font: 500 10.5px/1 var(--font-mono);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .search-trigger { justify-content: center; width: 42px; padding: 0; }
  .search-trigger-label, .search-trigger kbd { display: none; }
}

.search-palette {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--menu-bg);
  color: var(--text);
  box-shadow: var(--shadow-md), 0 0 80px -30px rgba(var(--teal-rgb), 0.45);
  overflow: hidden;
}
.search-palette[open] { animation: searchIn 0.3s var(--ease-out); }
.search-palette::before {
  content: "";
  position: absolute;
  inset: 0 10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--blue), transparent);
  pointer-events: none;
}
.search-palette::backdrop {
  background: rgba(var(--bg-rgb), 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@keyframes searchIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.search-box > svg { flex: none; width: 18px; height: 18px; color: var(--teal); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 400 17px var(--font-sans);
}
.search-box input::placeholder { color: var(--text-dim); opacity: 0.8; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-results {
  max-height: min(60vh, 500px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}
.search-results:empty { display: none; }
.search-group header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 10px 4px;
}
.search-group h3 {
  margin: 0;
  color: var(--text-dim);
  font: 700 10.5px var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.search-all { color: var(--text-dim); font: 600 11.5px var(--font-sans); text-decoration: none; }
.search-all:hover { color: var(--teal); }
.search-result {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}
.search-result.tall { padding-top: 8px; padding-bottom: 8px; }
.search-result.active {
  background: linear-gradient(90deg, rgba(var(--teal-rgb), 0.12), var(--bg-sunk) 60%);
  box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb), 0.24);
}
.search-result.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad);
  box-shadow: 0 0 10px var(--grad-glow);
}
.search-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-sunk);
  color: var(--text-dim);
}
.search-result.active .search-icon {
  border-color: rgba(var(--teal-rgb), 0.35);
  background: rgba(var(--teal-rgb), 0.12);
  color: var(--teal);
}
.search-icon svg { width: 15px; height: 15px; }
.search-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-label {
  overflow: hidden;
  font: 540 14px var(--font-sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-snippet mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(var(--teal-rgb), 0.22);
  color: var(--text);
}
.search-hint {
  flex: none;
  max-width: 45%;
  margin-left: auto;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-arrow { display: none; flex: none; color: var(--teal); }
.search-hint + .search-arrow { margin-left: 0; }
.search-arrow svg { display: block; width: 14px; height: 14px; }
.search-result.active .search-arrow { display: block; margin-left: auto; animation: searchNudge 0.3s var(--ease-out) both; }
.search-result.active .search-hint + .search-arrow { margin-left: 0; }
@keyframes searchNudge { from { opacity: 0; transform: translateX(-6px); } }
.search-none { margin: 0; padding: 28px; color: var(--text-dim); font-size: 14px; text-align: center; }
.search-results:has(.search-result) .search-none { display: none; }
@media (max-width: 720px) {
  .search-palette { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; }
  .search-box { padding-top: env(safe-area-inset-top); height: calc(58px + env(safe-area-inset-top)); }
  .search-results { max-height: calc(100dvh - 58px - env(safe-area-inset-top)); }
  .search-result { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; padding-top: 8px; padding-bottom: 8px; }
  .search-icon { grid-row: span 2; }
  .search-hint { grid-column: 2; max-width: none; margin-left: 0; }
  .search-result .search-arrow, .search-result.active .search-arrow { display: none; }
}
@media (pointer: coarse) and (max-width: 820px) {
  .search-box input { font-size: 16px; }
}

.profile { position: fixed; left: 24px; bottom: 24px; z-index: 50; }
.notifications-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: var(--nav-bg);
  color: var(--text-dim);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow-md);
}
.notifications-trigger:hover { color: var(--teal); }
.notifications-trigger svg { width: 20px; height: 20px; }
.notifications-trigger .nav-badge { position: absolute; top: -4px; right: -5px; }
.notifications { position: relative; }
.notifications-trigger { cursor: pointer; }
.notifications-menu {
  position: absolute;
  inset: calc(100% + 11px) 0 auto auto;
  width: 400px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--menu-bg);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.notifications-menu[open] { animation: dropIn 0.24s var(--ease-out); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-9px) scale(0.96); } }
.notifications-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; }
.notifications-heading h2 { margin: 0; font: 650 16px var(--font-sans); }
.notifications-read-all, .notification-mark-unread {
  border: none;
  background: none;
  color: var(--teal);
  font: 500 12px var(--font-sans);
  cursor: pointer;
}
.notifications-read-all:hover, .notification-mark-unread:hover { text-decoration: underline; }
.notifications-items { list-style: none; padding: 0; margin: 0; }
.notification { position: relative; border-top: 1px solid var(--line); }
.notification.unread { background: rgba(var(--teal-rgb), 0.08); }
.notification-open { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 16px 34px 16px 18px; text-align: left; border: 0; background: none; color: var(--text); cursor: pointer; }
.notification-open:hover { background: rgba(var(--tint-rgb), 0.05); }
.notification-open strong { font: 600 13px/1.4 var(--font-sans); }
.notification-context { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--text-dim); font: 500 11.5px/1.4 var(--font-sans); }
.notification-context b { flex: none; color: var(--teal-ink); font-weight: 650; }
.notification-place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-place:not(:empty)::before { content: "· "; }
.notification-body { color: var(--text-dim); font: 400 12.5px/1.5 var(--font-sans); overflow-wrap: anywhere; }
.notification-open time { color: var(--text-dim); font: 400 11px var(--font-sans); }
.notification-dot { position: absolute; right: 16px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.notification-mark-unread { margin: 0 18px 12px; }
.notifications-empty { margin: 0; padding: 20px 18px; color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.notifications-empty p { margin: 0; }
.notifications-footer {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  background: none;
  color: var(--teal);
  font: 600 12.5px var(--font-sans);
  cursor: pointer;
}
.notifications-footer:hover { background: rgba(var(--teal-rgb), 0.06); }

.notifications-panel {
  position: fixed;
  inset: 12px 12px 12px auto;
  width: min(460px, calc(100vw - 24px));
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--menu-bg);
  color: var(--text);
  box-shadow: var(--shadow-md), 0 32px 80px rgba(8, 20, 26, 0.22);
  overflow: hidden;
  translate: calc(100% + 24px) 0;
  transition: translate 0.42s var(--ease-out), display 0.42s allow-discrete, overlay 0.42s allow-discrete;
}
.notifications-panel[open] { translate: 0 0; }
@starting-style { .notifications-panel[open] { translate: calc(100% + 24px) 0; } }
.notifications-panel::backdrop {
  background: rgba(8, 20, 26, 0);
  backdrop-filter: blur(0);
  transition: background 0.3s, backdrop-filter 0.3s, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
}
.notifications-panel[open]::backdrop { background: rgba(8, 20, 26, 0.32); backdrop-filter: blur(3px); }
@starting-style { .notifications-panel[open]::backdrop { background: rgba(8, 20, 26, 0); backdrop-filter: blur(0); } }
:root:has(.notifications-panel:modal) { overflow: hidden; }
.notifications-panel:not(:modal) { top: 70px; z-index: 950; }
@media (min-width: 900px) {
  :root:has(.notifications-panel[open]:not(:modal)) body { padding-right: 484px; }
}
.notifications-panel-content { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.notifications-panel .notifications-list { min-height: 100%; padding-bottom: 24px; }
.notifications-panel .notifications-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 22px 18px 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}
.notifications-title { margin-right: auto; }
.notifications-panel .notifications-heading h2 { font-size: 22px; font-weight: 750; }
.notifications-title p { margin: 5px 0 0; color: var(--text-dim); font-size: 12.5px; }
.notifications-order, .notifications-panel-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, rotate 0.3s var(--ease-out);
}
.notifications-panel-close:hover { color: var(--text); rotate: 90deg; }
.notifications-order:hover { color: var(--text); }
.notifications-order svg { width: 18px; height: 18px; }
.notifications-panel-close svg { width: 16px; height: 16px; }
.notifications-panel .notifications-items { display: flex; flex-direction: column; gap: 4px; padding: 6px 12px 0; }
.notifications-day {
  padding: 18px 12px 6px;
  color: var(--text-dim);
  font: 650 11px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notifications-panel .notification { border: 0; border-radius: 16px; overflow: hidden; transition: background 0.2s; }
.notifications-panel .notification.unread { box-shadow: inset 3px 0 0 var(--teal); }
.notifications-panel .notification-open { padding: 14px 40px 14px 16px; }
.notifications-panel .notification-dot { right: 18px; top: 20px; box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.16); }
.notifications-panel .notification-mark-unread { margin: -4px 16px 12px; }
.notifications-panel .notifications-empty { display: grid; justify-items: center; gap: 14px; padding: 72px 40px; text-align: center; }
.notifications-panel .notifications-empty svg {
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: 50%;
  background: rgba(var(--teal-rgb), 0.1);
  color: var(--teal);
}
.notifications-older {
  display: block;
  margin: 16px auto 0;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font: 600 12.5px var(--font-sans);
  cursor: pointer;
}
.notifications-older:hover { border-color: var(--teal); color: var(--teal); }
@media (max-width: 720px) {
  .notifications-panel { inset: 0; width: 100%; border: 0; border-radius: 0; translate: 100% 0; }
  @starting-style { .notifications-panel[open] { translate: 100% 0; } }
  .notifications-panel .notifications-heading { padding-top: max(22px, env(safe-area-inset-top)); }
  .notifications-panel .notifications-list { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
.profile-trigger {
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.profile-trigger .pj-avatar { --size: 30px; }
.profile-menu {
  position: absolute;
  inset: auto auto calc(100% + 11px) 0;
  width: 264px;
  max-width: calc(100vw - 28px);
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--menu-bg);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.profile-menu[open] { animation: profileIn 0.24s var(--ease-out); }
@keyframes profileIn { from { opacity: 0; transform: translateY(9px) scale(0.96); } }
.profile-account {
  display: flex;
  flex-direction: column;
  margin: 0 -8px 7px;
  padding: 5px 20px 11px;
  border-bottom: 1px solid var(--line);
}
.profile-account .whoami, .profile-account .whomail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-account .whoami { color: var(--text); font: 600 13px var(--font-sans); }
.profile-account .whomail { color: var(--text-dim); font-size: 11.5px; }
.push-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 12px;
  background: none;
  color: var(--text);
  font: 500 13px var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.push-toggle:hover:not(:disabled) { background: rgba(var(--tint-rgb), 0.07); }
.push-toggle:disabled { color: var(--text-dim); cursor: default; }
.push-toggle .switch {
  position: relative;
  flex: none;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.2s;
}
.push-toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease-out);
}
.push-toggle[aria-checked="true"] .switch { background: var(--teal); }
.push-toggle[aria-checked="true"] .switch::after { transform: translateX(14px); }
.push-hint {
  padding: 2px 12px 6px;
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.45;
}

/* ─────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────── */
.hero {
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --tint-rgb: 255, 255, 255;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --bg-sunk: rgba(255, 255, 255, 0.08);
  --bg-raised: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  min-height: clamp(410px, 58vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 148px 32px 44px;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(63, 214, 189, 0.55) 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(29, 79, 134, 0.8) 0%, transparent 60%),
    linear-gradient(135deg, #07403b, #0a2c40 60%, #081d2a);
  isolation: isolate;
  color-scheme: dark;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.hero h1.sku-title { font: 800 clamp(1.6rem, 4.6vw, 3rem) var(--font-mono); letter-spacing: -0.02em; }
.hero h1 .word { white-space: nowrap; }
.hero h1 .ch { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(3deg); animation: chIn 0.72s var(--ease-out) forwards; }
@keyframes chIn { to { opacity: 1; transform: none; } }
.hero .lede {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 56ch;
  margin-top: 14px;
  text-wrap: pretty;
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font: 500 13px var(--font-sans);
  color: var(--text-dim);
}
.hero .meta b { color: var(--blue-ink); font-weight: 700; }

/* ─────────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
/* Prose reads best narrow; a table reads best wide. */
.wrap.wide { max-width: 1560px; }
.wrap.full { max-width: none; padding: 0 18px; }
section.band { padding: 64px 0 0; }
section.band:last-child { padding-bottom: 64px; }
.run-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 32px; }
.run-actions + .band { padding-top: 32px; }
.run-actions .act { padding: 10px 18px; font-size: 12px; }
.arguments-toggle {
  margin-top: 10px;
  cursor: pointer;
  font: 600 11.5px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.arguments-toggle:hover { color: var(--text); }
.arguments-code { position: relative; }
.arguments-code pre { padding-right: 48px; }
.copy-code {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text-dim);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy-code svg { width: 16px; height: 16px; }
.copy-code:hover { color: var(--teal-ink); border-color: var(--line-strong); background: rgba(var(--teal-rgb), 0.08); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.band-head h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.band-head.section-head { margin-bottom: 24px; }
.band-head.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.data-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.data-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised, rgba(255, 255, 255, 0.03));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), background 0.2s;
}
.data-tile:hover { border-color: rgba(var(--teal-rgb), 0.5); background: rgba(var(--teal-rgb), 0.06); transform: translateY(-2px); }
.data-tile-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(var(--teal-rgb), 0.12); color: var(--teal-ink); }
.data-tile-icon svg { width: 18px; height: 18px; }
.data-tile-body { display: grid; flex: 1; gap: 3px; min-width: 0; }
.data-tile-head { display: flex; align-items: center; gap: 8px; }
.data-tile-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--bg-sunk); color: var(--text-dim); font: 600 11px var(--font-sans); }
.data-tile-body small { overflow: hidden; color: var(--text-dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.data-tile-arrow { color: var(--text-dim); transition: transform 0.2s var(--ease-out), color 0.2s; }
.data-tile:hover .data-tile-arrow { color: var(--teal-ink); transform: translateX(3px); }
.band-head .hint { color: var(--text-dim); font: 500 13px var(--font-sans); }
.band.arguments pre {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-sunk);
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Dot-grid backdrop, radially masked so it fades out */
.dotted { position: relative; }
.dotted::before {
  content: "";
  position: absolute;
  inset: -40px -40px 0;
  z-index: -1;
  background-image: radial-gradient(rgba(var(--tint-rgb), 0.15) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 15%, transparent 72%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────
   Reveals
   ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(26px); }
.stagger.in > * { opacity: 1; transform: none; animation: stagger-in 0.6s var(--ease-out) backwards; }
.stagger.in > *:nth-child(1) { animation-delay: 0.02s; }
.stagger.in > *:nth-child(2) { animation-delay: 0.09s; }
.stagger.in > *:nth-child(3) { animation-delay: 0.16s; }
.stagger.in > *:nth-child(4) { animation-delay: 0.23s; }
.stagger.in > *:nth-child(5) { animation-delay: 0.3s; }
.stagger.in > *:nth-child(6) { animation-delay: 0.37s; }
.stagger.in > *:nth-child(7) { animation-delay: 0.44s; }
@keyframes stagger-in { from { opacity: 0; transform: translateY(26px); } }

/* ─────────────────────────────────────────────────
   KPI bento — tilt + spotlight + soft depth
   ───────────────────────────────────────────────── */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  perspective: 1100px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--line);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.35s;
  will-change: transform;
}
.tile:hover { box-shadow: var(--shadow-md); }
/* Cursor spotlight: lights the 1px ring, then the fill */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), rgba(var(--teal-rgb), 0.7), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
}
.tile:hover::before { opacity: 1; }
.tile .inner {
  position: relative;
  height: 100%;
  border-radius: calc(var(--radius) - 1px);
  padding: 22px 24px;
  background: linear-gradient(165deg, var(--card-grad-1), var(--card-grad-2) 78%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  transition: background 0.4s ease;
}
.tile .inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, -300px) var(--my, -300px), rgba(var(--teal-rgb), 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.tile:hover .inner::after { opacity: 1; }
.tile .lbl {
  font: 600 11.5px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tile .val {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
/* A tile that names somewhere to go rather than a number. The label is a phrase, not a
   figure, so it takes reading size and gives width back as the screen narrows. */
.tile .val.destination { font-size: clamp(1.45rem, 4.6vw, 1.9rem); line-height: 1.22; }
.tile .sub { font-size: 0.82rem; color: var(--text-dim); }
.tile .float { transform: translateZ(38px); }

/* A bento of links rather than readouts. Tilting moves the thing you're aiming
   at, and the lifted layer floats in front of the card's own link and eats the
   click meant for it — so these tiles lie flat and hold still. The spotlight
   stays: it follows the pointer without moving anything. */
.bento.still { perspective: none; }
.bento.still .tile { transform-style: flat; }
.bento.still .tile .float { transform: none; }

.tile.wide { grid-column: span 2; }
.tile.full { grid-column: 1 / -1; }

/* ─────────────────────────────────────────────────
   Controls — sliding segmented pill + search
   ───────────────────────────────────────────────── */
.controls {
  position: sticky;
  top: 0;
  z-index: 400;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 16px 0;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(var(--bg-rgb), 0));
}
/* Statuses, filter and search share one row wherever there's room for all three, so the row
   is laid out rather than wrapped: a flex row would sooner drop the search onto a line of
   nothing than narrow the filter, and it's the filter — whose width is whatever field is
   picked — that should give. The search holds the right edge, small, above the table it
   narrows. */
.catalogue-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 14px;
}
.catalogue-controls .segmented { grid-area: 1 / 1; }
.catalogue-controls .field-filter { grid-area: 1 / 2; justify-self: start; min-width: 0; max-width: 100%; }
.catalogue-controls .field-combobox { min-width: 108px; }
.catalogue-controls .value-combobox { min-width: 132px; }
.catalogue-controls .field-filter select { min-width: 78px; }
.catalogue-controls .search { grid-area: 1 / 3; flex: none; width: 210px; }
.catalogue-controls .search input { padding: 8px 14px 8px 32px; font-size: 12.5px; }
.catalogue-controls .search .icon { left: 12px; font-size: 12px; }
/* Too narrow for three abreast: the filter takes the line below the statuses and the search,
   rather than the search taking a line with nothing else on it. */
@media (max-width: 1480px) {
  .catalogue-controls { grid-template-columns: minmax(0, max-content) 1fr; }
  .catalogue-controls .search { grid-area: 1 / 2; justify-self: end; }
  .catalogue-controls .segmented { justify-self: stretch; }
  .catalogue-controls .segmented .seg { flex: 1; }
  .catalogue-controls .field-filter { grid-area: 2 / 1; justify-self: stretch; }
  .catalogue-controls .value-combobox { flex: 1; }
}
.segmented {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.segmented .pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: rgba(var(--teal-rgb), 0.13);
  border: 1px solid rgba(var(--teal-rgb), 0.45);
  box-sizing: border-box;
  transition: transform 0.4s var(--ease-out), width 0.4s var(--ease-out);
}
.segmented .seg {
  position: relative;
  background: none;
  border: none;
  color: var(--text-dim);
  font: 600 12.5px var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s;
}
.segmented .seg:hover { color: var(--text); }
.segmented .seg.active { color: var(--teal-ink); }
.segmented .seg .n { font-size: 11.5px; font-variant-numeric: tabular-nums; opacity: 0.7; margin-left: 6px; }
.segmented .seg .n:empty {
  display: inline-block;
  width: 3ch;
  height: 0.8em;
  border-radius: 4px;
  background: var(--line-strong);
  animation: pulse 1.6s ease-in-out infinite;
}

/* Rows that slide where they don't fit — the statuses, the steps of a workflow. Each fades
   off at the end it runs past and holds its edge at the end it has reached, so the fade is
   only ever over what there's more of. The mask clips the shadow with it, so a row wide
   enough to fit carries neither. */
.segmented.fade-start, .segmented.fade-end,
.stepper.fade-start, .stepper.fade-end {
  --fade-in: 0px;
  --fade-out: 0px;
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade-in), #000 calc(100% - var(--fade-out)), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-in), #000 calc(100% - var(--fade-out)), transparent);
}
.segmented.fade-start, .stepper.fade-start { --fade-in: 22px; }
.segmented.fade-end, .stepper.fade-end { --fade-out: 22px; }

.catalogue-actions {
  display: flex;
  align-items: center;
  margin: 2px 0 20px;
}
.catalogue-actions-links {
  display: flex;
  justify-content: flex-start;
  gap: 9px;
  flex-wrap: wrap;
}
.catalogue-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), border-color 0.25s, background 0.25s, box-shadow 0.25s, opacity 0.15s;
}
.catalogue-action:hover { transform: translateY(-2px); }
.catalogue-action:active { transform: translateY(0) scale(0.98); }
.catalogue-action.delete {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.38);
  background: rgba(var(--clay-rgb), 0.08);
}
.catalogue-action.delete:hover {
  border-color: var(--clay);
  background: rgba(var(--clay-rgb), 0.16);
  box-shadow: 0 8px 18px rgba(var(--clay-rgb), 0.12);
}
.catalogue-action.create {
  color: var(--bg);
  border-color: transparent;
  background: var(--text);
}
.catalogue-action.create:hover { opacity: 0.88; }
.catalogue-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}
.catalogue-action.create .catalogue-action-icon { background: rgba(var(--bg-rgb), 0.18); }
.catalogue-action.delete .catalogue-action-icon { background: rgba(var(--clay-rgb), 0.13); }
.catalogue-action-icon svg { width: 16px; height: 16px; }
.catalogue-action-label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.catalogue-action-label strong { font-size: 12.5px; }
.catalogue-action-label small { font-size: 10.5px; opacity: 0.72; }
.catalogue-action-arrow {
  margin-left: 2px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s var(--ease-out);
}
.catalogue-action:hover .catalogue-action-arrow { transform: translateX(3px); }
/* The box that opens the filter earns its keep only where the filter doesn't fit. Until
   then it isn't there, and the bar is the three controls it always was. */
.filter-open, .filter-open-label { display: none; }
.field-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
}
.field-filter-label {
  color: var(--text-dim);
  font: 600 11px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.field-filter select,
.combobox-control input {
  min-width: 118px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background-color: transparent;
  font: 600 12.5px var(--font-sans);
  outline: none;
}
.field-filter select { padding: 7px 26px 7px 4px; cursor: pointer; }
.filter-combobox { position: relative; }
.field-combobox { min-width: 145px; }
.value-combobox { min-width: 200px; }
.filter-combobox > select { width: 100%; }
.combobox-control { display: flex; align-items: center; width: 100%; }
.combobox-control input { width: 100%; min-width: 0; padding: 7px 2px 7px 4px; }
.combobox-control input::placeholder { color: var(--text-dim); }
/* A list field's values sit in the box itself, so the pills and the box taking the next one
   wrap together rather than in rows of their own. The box gives up width to them rather than
   holding all of it and pushing the arrow onto a line of its own. */
.value-combobox .combobox-control { flex-wrap: wrap; gap: 4px 2px; }
.value-combobox .combobox-control input { flex: 1 1 96px; width: auto; min-width: 96px; }
.value-combobox .tag { margin: 3px 0; }
/* Says the filter being built is finished. It sits inside the bar the filter is built in,
   so it reads as the end of that row rather than as an action of the page. */
.filter-apply {
  flex: none;
  align-self: center;
  padding: 6px 14px;
  border: 1px solid rgba(var(--teal-rgb), 0.4);
  border-radius: 999px;
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.12);
  font: 600 11.5px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.18s var(--ease-out);
}
.filter-apply:hover:enabled { border-color: var(--teal); background: rgba(var(--teal-rgb), 0.2); }
.filter-apply:active:enabled { transform: scale(0.97); }
.filter-apply:disabled { opacity: 0.4; cursor: default; }
.combobox-toggle {
  flex: none;
  width: 24px;
  height: 28px;
  padding: 0;
  border: 0;
  color: var(--text-dim);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.combobox-toggle:hover { color: var(--text); }
.combobox-toggle { display: inline-grid; place-items: center; font-size: 0; }
.combobox-toggle::before {
  content: "";
  width: 12px;
  height: 12px;
  translate: 0 4px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Nothing to answer yet reads as quiet rather than as missing. */
.field-filter select:disabled,
.combobox-control input:disabled { color: var(--text-dim); cursor: default; }
.combobox-toggle:disabled { opacity: 0.4; cursor: default; }
.combobox-toggle:disabled:hover { color: var(--text-dim); }
.combobox-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 500;
  width: max-content;
  min-width: 100%;
  max-width: min(340px, calc(100vw - 36px));
  max-height: min(360px, 55vh);
  max-height: min(360px, 55dvh);
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-md);
}
.combobox-options [role="option"] {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  font: 600 12.5px var(--font-sans);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.combobox-options [role="option"]:hover,
.combobox-options [role="option"][aria-selected="true"] {
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.12);
}
.combobox-options [role="option"][hidden] { display: none; }
.combobox-empty {
  display: block;
  padding: 9px 10px;
  color: var(--text-dim);
  font: 500 12.5px var(--font-sans);
  white-space: nowrap;
}
.combobox-options[hidden],
.combobox-empty[hidden],
.filter-combobox[hidden],
.combobox-control[hidden] { display: none; }
.field-filter select:focus-visible,
.combobox-control:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.16); border-radius: 8px; }
.field-filter select option {
  background-color: var(--bg-raised);
  color: var(--text);
}

.activity-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 22px;
}
.bundle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 12.5px var(--font-sans);
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}
.bundle-toggle:hover { color: var(--text); }
.bundle-toggle input { width: 15px; height: 15px; }
.bundle-toggle:has(input:checked) { color: var(--teal-ink); }

.hidden-jobs { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 20px; }
.hidden-job {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 12.5px var(--font-sans);
  color: var(--text-dim);
  background: rgba(var(--tint-rgb), 0.05);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.hidden-job b { color: var(--text); font-weight: 700; }
.hidden-job .x { font-size: 14px; line-height: 1; opacity: 0.6; }
.hidden-job:hover { color: var(--text); border-color: var(--teal); background: rgba(var(--teal-rgb), 0.07); }
.hidden-job:hover .x { opacity: 1; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 20px; }
.active-filter {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 7px;
  font: 500 12.5px var(--font-sans);
  color: var(--text-dim);
  text-decoration: none;
  background: rgba(var(--tint-rgb), 0.05);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.active-filter .active-filter-field { color: var(--text); font-weight: 700; }
.active-filter b { color: var(--text); font-weight: 700; }
.active-filter .x { font-size: 14px; line-height: 1; opacity: 0.6; }
/* A list filter reads back as the values it holds, so the chip carries the same pills the
   box that built it did — sized to sit on one line of the chip rather than to stand out. */
.active-filter .value-tags { gap: 4px; }
.active-filter .value-tags .tag { padding: 1px 7px; font-size: 11px; }
.active-filter:hover { color: var(--text); border-color: var(--teal); background: rgba(var(--teal-rgb), 0.07); }
.active-filter:hover .x { opacity: 1; }

.run .titled { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 3px 0 8px; }
.run .titled .name { margin: 0; }

.hide-job {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  font-size: 15px;
  line-height: 1;
  color: var(--text-dim);
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.18s var(--ease-out);
}
.hide-job:hover, .hide-job:focus-visible {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.5);
  background: rgba(var(--clay-rgb), 0.1);
}
.hide-job:active { transform: scale(0.9); }

.record.folding {
  transition: max-height 0.36s var(--ease-out), padding-top 0.36s var(--ease-out),
              padding-bottom 0.36s var(--ease-out), opacity 0.36s var(--ease-out);
}

.record.bundle-hidden { display: none; }

/* The deck: sheets peeking out below the front card, drawn as offset shadows
   so there's no extra markup to keep in step with the card itself. */
.record.bundled {
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow:
    0 5px 0 -1px var(--bg-card), 0 5px 0 0 var(--line),
    var(--shadow-sm);
}
.record.bundled.deep {
  margin-bottom: 18px;
  box-shadow:
    0 5px 0 -1px var(--bg-card), 0 5px 0 0 var(--line),
    0 10px 0 -2px var(--bg-card), 0 10px 0 -1px var(--line),
    var(--shadow-sm);
}
.record.bundled:hover {
  box-shadow:
    0 5px 0 -1px var(--bg-card), 0 5px 0 0 rgba(var(--teal-rgb), 0.35),
    var(--shadow-md);
}
.record.bundled.deep:hover {
  box-shadow:
    0 5px 0 -1px var(--bg-card), 0 5px 0 0 rgba(var(--teal-rgb), 0.35),
    0 10px 0 -2px var(--bg-card), 0 10px 0 -1px rgba(var(--teal-rgb), 0.22),
    var(--shadow-md);
}

.stack-count {
  font: 600 11.5px var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.1);
  border: 1px solid rgba(var(--teal-rgb), 0.32);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  font: 500 13.5px var(--font-sans);
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search input::placeholder { color: var(--text-dim); }
.search input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.13); }
.search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 13px; pointer-events: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.dates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
}
.dates input {
  font: 500 12.5px var(--font-sans);
  color: var(--text);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 6px 8px;
  outline: none;
}
.dates input:hover { background: rgba(var(--tint-rgb), 0.05); }
.dates input:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 0; }
.dates .to { color: var(--text-dim); font-size: 12px; }

.export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font: 600 12.5px var(--font-sans);
  text-decoration: none;
  color: var(--teal-ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.18s var(--ease-out);
}
.export:hover { border-color: var(--teal); }
.export:active { transform: scale(0.97); }
.export .ico { font-size: 13px; opacity: 0.75; }

/* ─────────────────────────────────────────────────
   Results header, records, pager
   ───────────────────────────────────────────────── */
#results { transition: opacity 0.2s; }
#results.loading { opacity: 0.45; }

.deferred-records .loading-line { margin: 0 0 18px; }
.skeleton-rows { display: grid; gap: 8px; }
.skeleton-row {
  height: 34px;
  border-radius: 8px;
  background: var(--line);
  animation: pulse 1.6s ease-in-out infinite;
}
.skeleton-row:nth-child(even) { animation-delay: 0.2s; }

.results {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 4px 12px;
}
.results .where { font: 500 12.5px var(--font-sans); color: var(--text-dim); }
.results .row-count { margin-left: auto; }

.records { display: flex; flex-direction: column; gap: 12px; margin: 0 0 26px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 0 44px;
}
.pager .step {
  font: 600 12.5px var(--font-sans);
  text-decoration: none;
  color: var(--teal-ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.18s var(--ease-out);
}
.pager .step:hover { border-color: var(--teal); }
.pager .step:active { transform: scale(0.97); }
.pager .step.off { color: var(--text-dim); opacity: 0.45; box-shadow: none; pointer-events: none; }
.pager .pos { font: 500 12.5px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text-dim); }
.page-sizes {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: 500 12.5px var(--font-sans);
}
.page-sizes .lbl { color: var(--text-dim); margin-right: 6px; }
.page-sizes .page-size {
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 999px;
  padding: 4px 10px;
  transition: color 0.2s, background 0.2s;
}
.page-sizes .page-size:hover { color: var(--teal-ink); }
.page-sizes .page-size.active { color: var(--teal-ink); background: var(--bg-raised); box-shadow: var(--shadow-sm); }

.record {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
              border-color 0.3s, box-shadow 0.4s, background-color 0.4s ease;
}
.record.in { opacity: 1; transform: none; }
.record:hover {
  border-color: rgba(var(--teal-rgb), 0.45);
  box-shadow: var(--shadow-md);
}
.record.hide { display: none; }

/* Sheen sweep on hover — transform only, never janks */
.record::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 45%;
  height: 220%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--teal-rgb), 0.07), transparent);
  transform: skewX(-18deg) translateX(0);
  transition: transform 0.95s var(--ease-out);
}
.record:hover::before { transform: skewX(-18deg) translateX(460%); }

/* Border beam — a comet traces the hovered record */
.record .beam {
  display: none;
  position: absolute;
  width: 84px;
  height: 2px;
  border-radius: 2px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, var(--teal), var(--teal-ink));
  offset-path: rect(0% 100% 100% 0% round var(--radius));
  animation: beam 5.5s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.record .beam.b2 {
  animation-delay: -2.75s;
  background: linear-gradient(90deg, transparent, var(--blue), var(--blue-ink));
}
@supports (offset-path: rect(0% 100% 100% 0%)) { .record .beam { display: block; } }
.record:hover .beam { opacity: 1; }
@keyframes beam { to { offset-distance: 100%; } }

.record .row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 118px 1fr 120px 1.55fr 152px;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
}
.record .when { font: 500 12.5px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text-dim); }
.record .when .ago { display: block; color: rgba(92, 117, 128, 0.8); font-size: 10.5px; margin-top: 2px; }

.record .who .order {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 15px var(--font-mono);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--teal-ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.record .who a.order:hover { color: var(--blue-ink); border-bottom-color: currentColor; }
.record .who .order .out {
  font-size: 10px;
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.record .who a.order:hover .out { opacity: 0.75; transform: none; }
.record .who .name { font-size: 13px; color: var(--text); }
.record .who .country {
  display: inline-flex;
  align-items: center;
  font: 700 9.5px var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--blue-ink);
  background: rgba(var(--blue-rgb), 0.12);
  border: 1px solid rgba(var(--blue-rgb), 0.34);
  border-radius: 5px;
  padding: 1px 5px;
  margin-left: 2px;
}
.record .who .mail { font-size: 11px; color: var(--text-dim); overflow-wrap: anywhere; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
/* Confirmed is the normal case, so it stays quiet — only the dot carries colour.
   Clay is reserved for the exception. */
.chip.confirmed .dot { background: var(--teal); }
.chip.cancelled,
.chip.failed {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.3);
  background: rgba(var(--clay-rgb), 0.08);
}
/* A live product is the normal case; one that's active but hidden from the
   storefront is the exception, so that's the one that gets the warm mark. */
.chip.live .dot { background: var(--teal); }
.chip.unpublished {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.3);
  background: rgba(var(--clay-rgb), 0.08);
}
.chip.archived { opacity: 0.62; }
.chip.active .dot { background: var(--teal); }
.chip.expired { opacity: 0.62; }
/* A refund that went out on its own is the normal case, so only the dot carries
   colour. One waiting stays quiet, and one left to CS gets the warm mark. */
.chip.refunded .dot { background: var(--teal); }
.chip.waiting { opacity: 0.7; }
.chip.waiting .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-dim); }
.chip.held {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.3);
  background: rgba(var(--clay-rgb), 0.08);
}
.chip.out-of-stock {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.3);
  background: rgba(var(--clay-rgb), 0.08);
}

.lines { display: flex; flex-direction: column; gap: 7px; }
.line { display: flex; align-items: baseline; gap: 9px; font-size: 12.5px; }
.kind {
  display: inline-block;
  flex: none;
  font: 700 10.5px var(--font-sans);
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}
/* Both outcomes are useful at a glance, with different colours for each. */
.kind.exchange { color: var(--teal-ink); background: rgba(var(--teal-rgb), 0.12); border: 1px solid rgba(var(--teal-rgb), 0.34); }
.kind.refund { color: var(--violet-ink); background: rgba(var(--violet-rgb), 0.1); border: 1px solid rgba(var(--violet-rgb), 0.3); }
.kind.by-hand { color: var(--pink-ink); background: rgba(var(--pink-rgb), 0.1); border: 1px solid rgba(var(--pink-rgb), 0.3); }
.line .desc { display: block; color: var(--text); }
.line .why { display: block; color: var(--text-dim); font-size: 11px; margin-top: 1px; }
.line .swap { display: block; font: 600 10.5px var(--font-mono); color: var(--teal-ink); margin-top: 2px; }

.ship { text-align: right; }
.ship .carrier { font-size: 11px; color: var(--text-dim); line-height: 1.35; }
.track {
  font: 600 11.5px var(--font-mono);
  color: var(--blue-ink);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 9px;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), border-color 0.25s, background 0.25s;
}
.track:hover { border-color: var(--blue); background: rgba(var(--blue-rgb), 0.07); }
.track:active { transform: scale(0.94); }

.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-dim);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty .big { font-size: 2rem; margin-bottom: 10px; }

/* ─────────────────────────────────────────────────
   Products — the catalogue, as a table

   One row per SKU, one column per column, so what
   you read on screen is what's in the row.

   Empty reads NULL rather than an em dash. A dash
   could mean nobody filled it in or nobody synced it;
   NULL says which.
   ───────────────────────────────────────────────── */
.sheet {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 0 0 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

/* The products catalogue pairs .sheet with a pinned scrollbar strip below
   (see .sheet-scrollbar), wired up by sheetScrolling() in portal.js. Its own
   native scrollbar is only hidden once .js confirms that's in place — without
   it, .sheet falls back to its bare, unwrapped styling (own margin/radius,
   own visible scrollbar), same as the no-JS path for orders and returns. */
.sheet-wrap {
  margin: 0 0 26px;
}
.sheet-wrap.js .sheet {
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  scrollbar-width: none;
}
.sheet-wrap.js .sheet::-webkit-scrollbar { display: none; }

/* A 50-row table's own scrollbar sits at the very bottom of the table,
   out of reach until you scroll all the way down. This repeats it in a
   slim strip pinned to the bottom of the viewport instead, via a filler
   the same width as the table — hidden until the table actually overflows. */
.sheet-scrollbar {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 4;
  height: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
}
.sheet-scrollbar.overflowing { display: block; }
.sheet-scrollbar > div { height: 1px; }

.catalogue {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  white-space: nowrap;
}

.catalogue th {
  position: sticky;
  z-index: 3;
  text-align: left;
  font: 600 10px var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--text-dim);
  background: var(--bg-sunk);
}

.catalogue .columns th {
  top: 0;
  height: 30px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-card);
}

.catalogue th.sortable a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.catalogue th.sortable a:hover { color: var(--teal-ink); }
.catalogue th .caret {
  font-size: 9px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s, transform 0.25s var(--ease-out);
}
.catalogue th.sortable a:hover .caret { opacity: 0.4; }
.catalogue th.sorted { color: var(--teal-ink); }
.catalogue th.sorted .caret { opacity: 1; }
.catalogue th.sorted.asc .caret { transform: rotate(180deg); }
.catalogue th .column-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: -2px 0 -2px 2px;
  padding: 2px;
  border: 0;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s;
}
.catalogue th .column-info:hover,
.catalogue th .column-info[aria-expanded="true"] { color: var(--teal-ink); }
.catalogue th .column-info svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.column-details {
  position: fixed;
  inset: auto;
  width: min(320px, calc(100vw - 24px));
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  color: var(--text);
  text-align: left;
  white-space: normal;
}
.column-details[open] { animation: column-details-in 0.18s var(--ease-out); }
@keyframes column-details-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
}
.column-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.column-details-header h2 {
  color: var(--text);
  font: 700 12px var(--font-mono);
  letter-spacing: 0.04em;
}
.column-details-requirement {
  flex: none;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.1);
  font: 700 10px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.column-details-body { margin-top: 9px; }
.column-details-body p { color: var(--text-dim); font-size: 12px; line-height: 1.45; }

/* The first column names the grain the table is read at rather than a field, so it holds a
   toggle instead of a label: SKU shows every size, SKU16 rolls them into their SKU16 group,
   and SKU6 rolls those into their style. Sorting by it stays available as a caret beside
   the choice. */
.catalogue th.grain { padding: 0 10px; }
.catalogue th.grain .grain-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.catalogue th.grain .segmented {
  padding: 2px;
  gap: 0;
  box-shadow: none;
}
.catalogue th.grain .pill {
  top: 2px;
  height: calc(100% - 4px);
}
.catalogue th.grain .seg {
  padding: 3px 9px;
  font: 700 10.5px var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
}
.catalogue th.grain .seg:hover { color: var(--text); }
.catalogue th.grain .seg.active { color: var(--teal-ink); }

.catalogue th.grain .grain-sort {
  display: inline-flex;
  padding: 2px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
/* Quiet until the header is under the cursor, like every other column's caret — a mark
   sitting there permanently reads as punctuation rather than a control. */
.catalogue th.grain .grain-sort .caret { opacity: 0; }
.catalogue th.grain:hover .grain-sort .caret { opacity: 0.35; }
.catalogue th.grain .grain-sort:hover { color: var(--teal-ink); }
.catalogue th.grain .grain-sort:hover .caret { opacity: 0.7; }
.catalogue th.grain.sorted .grain-sort { color: var(--teal-ink); }
.catalogue th.grain.sorted .grain-sort .caret { opacity: 1; }
.catalogue th.grain.sorted.asc .grain-sort .caret { transform: rotate(180deg); }

.catalogue td {
  height: 34px;
  padding: 0 14px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s;
}
.catalogue tbody tr:last-child td { border-bottom: 0; }
.catalogue tbody tr[data-row-href] { cursor: pointer; }
.catalogue tbody tr:nth-child(even) td { background: rgba(var(--tint-rgb), 0.02); }
.catalogue tbody tr:hover td { background: rgba(var(--teal-rgb), 0.08); }

.catalogue td.sku a {
  font: 700 11.5px var(--font-mono);
  color: var(--teal-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.catalogue td.sku a:hover { border-bottom-color: currentColor; }
.catalogue td.sku a.comments-marker {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(var(--teal-rgb), 0.14);
  font: 700 11px var(--font-sans);
}

/* A SKU we hold no product for: shaped like its linked siblings, but dimmed and
   dotted so it reads as a dead end rather than a link someone forgot to wire up. */
.catalogue td.sku .unlinked {
  font: 700 11.5px var(--font-mono);
  color: var(--text-dim);
  border-bottom: 1px dotted currentColor;
}
.catalogue .copy {
  margin-left: 6px;
  padding: 2px 4px;
  color: var(--text-dim);
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.catalogue .copy-icon,
.catalogue .copy-check-icon { display: block; width: 18px; height: 18px; }
.catalogue .copy-check-icon { display: none; }
.catalogue .copy.copied { color: var(--teal-ink); opacity: 1; }
.catalogue .copy.copied .copy-icon { display: none; }
.catalogue .copy.copied .copy-check-icon { display: block; }
.copy-tooltip {
  position: fixed;
  z-index: 20;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--teal-ink);
  background: var(--toast-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font: 600 12px var(--font-sans);
  pointer-events: none;
  transform: translate(-50%, -100%);
  animation: copy-tooltip-in 0.35s var(--ease-out) both;
}
@keyframes copy-tooltip-in {
  from { opacity: 0; transform: translate(-50%, -85%); }
  to { opacity: 1; transform: translate(-50%, -100%); }
}
.catalogue tr:hover .copy { opacity: 1; }
.catalogue .copy:hover { color: var(--teal-ink); }

.catalogue td.at,
.catalogue td.handle { font: 500 11px var(--font-mono); color: var(--text-dim); }
.catalogue td.handle { max-width: 190px; }

.catalogue td.linked a {
  color: var(--teal-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.catalogue td.linked a:hover { border-bottom-color: currentColor; }

/* Sits inside a row that navigates on click, so hovering it has to announce
   itself as its own target — hence the ring, not just a brightening. */
.catalogue td.sku a.shopify {
  display: inline-flex;
  margin-right: 7px;
  padding: 2px;
  border-bottom: 0;
  border-radius: 5px;
  vertical-align: middle;
  opacity: 0.5;
  transition: opacity 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.catalogue tr:hover td.sku a.shopify { opacity: 0.8; }
.catalogue td.sku a.shopify:hover {
  border-bottom: 0;
  opacity: 1;
  background: rgba(149, 191, 71, 0.18);
  box-shadow: 0 0 0 1.5px rgba(149, 191, 71, 0.6);
}

.catalogue .qty { text-align: right; }
.catalogue td.qty {
  font: 600 12px var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
/* Most of the catalogue sits at zero, so zero is the background hum, not the
   signal. It recedes and the counts that mean something carry the weight. */
.catalogue td.qty.zero { color: var(--text-dim); font-weight: 500; }
.catalogue td.qty.differs { color: var(--clay-ink); }

/* Stock lives in its own table, so the join shows as a rule down the page. The
   left edge of the group is already the SKU's own rule, so only the far side
   needs drawing. */
.catalogue .joined { border-right: 1px solid var(--line-strong); }

/* Free text and lists would each set the table's width on their own. Cap them and
   let the row read; the full value is one click away on the product. */
.catalogue td.clip { max-width: 190px; }

/* A list keeps its pills on one line and scrolls inside the cap rather than wrapping the
   row to twice the height.

   A cell that scrolls with nothing to scroll it by only reads as a cell that has been cut
   off, so the bar is always there, and it darkens under the cursor. Solid colours rather
   than the tints the rules elsewhere are drawn in: a scrollbar asked for a translucent
   colour is composited at the browser's discretion, and comes out lighter under the cursor
   as readily as darker.

   The bar needs a lane of its own under the pills, and a row sized for one line of text has
   no room to give it — squeezing it in there either clipped the bar against the rule below
   or pressed the pills up against the rule above. So a list cell asks for the height it
   needs and the row grants it: the pills sit centred with air around them, and the lane
   below is the bar's. */
.catalogue td.list { max-width: 240px; height: 42px; }
.value-tags.scroll {
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: -6px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
  transition: scrollbar-color 0.2s;
}
.catalogue td.list:hover .value-tags.scroll { scrollbar-color: var(--text) transparent; }
.value-tags.scroll::-webkit-scrollbar { height: 6px; }
.value-tags.scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--text-dim);
  transition: background-color 0.2s;
}
.catalogue td.list:hover .value-tags.scroll::-webkit-scrollbar-thumb {
  background: var(--text);
}
.value-tags.scroll .tag { flex: none; }

/* Every stored field is a column, so the sheet scrolls sideways. The SKU rides
   along at the left edge, otherwise a row three screens over says nothing about
   which SKU it belongs to.

   The stripe and the hover elsewhere are translucent tints over the card, which
   is fine when there's a card behind them. Here the columns pass underneath, so
   every state has to be mixed into an opaque fill instead — a tint of its own
   would let the row show through. */
.catalogue .columns th:first-child,
.catalogue td.sku {
  position: sticky;
  left: 0;
  border-right: 1px solid var(--line-strong);
}
.catalogue .columns th:first-child { z-index: 4; }
.catalogue tbody td.sku { z-index: 1; background: var(--bg-card); }
.catalogue tbody tr:nth-child(even) td.sku {
  background: color-mix(in srgb, rgb(var(--tint-rgb)) 2%, var(--bg-card));
}
.catalogue tbody tr:hover td.sku {
  background: color-mix(in srgb, rgb(var(--teal-rgb)) 8%, var(--bg-card));
}

.catalogue .chip { font-size: 9.5px; padding: 3px 8px; letter-spacing: 0.08em; }

.catalogue .null {
  font: 500 9.5px var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(var(--tint-rgb), 0.3);
}

.hero .colour {
  display: block;
  font: 600 13px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}

/* The SKU on a product's own page, wearing the teal the table links in. */
.hero .meta .code {
  max-width: 100%;
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.02em;
  text-align: left;
  overflow-wrap: anywhere;
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.09);
  border: 1px solid rgba(var(--teal-rgb), 0.28);
  border-radius: 7px;
  padding: 4px 9px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.18s var(--ease-out);
}
.hero .meta .code:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), 0.16); }
.hero .meta .code:active { transform: scale(0.95); }

/* ─────────────────────────────────────────────────
   Jobs — the queue, live
   ───────────────────────────────────────────────── */
#board { transition: opacity 0.25s; }
#board.loading { opacity: 0.6; }

.chip.finished .dot { background: var(--teal); }
.chip.running {
  color: var(--blue-ink);
  border-color: rgba(var(--blue-rgb), 0.34);
  background: rgba(var(--blue-rgb), 0.09);
}
.chip.running .dot { background: var(--blue); animation: beat 1.4s ease-in-out infinite; }
.chip.queued .dot { background: var(--text-dim); animation: beat 2.4s ease-in-out infinite; }
.chip.scheduled .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-dim); }
.chip.blocked .dot { background: var(--clay); }
.chip.failed {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.3);
  background: rgba(var(--clay-rgb), 0.08);
}
.chip.never { opacity: 0.55; }
.chip.delivered .dot { background: var(--teal); }
.chip.delayed .dot { background: var(--violet); }
.chip.bounced,
.chip.complained,
.chip.rejected {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.3);
  background: rgba(var(--clay-rgb), 0.08);
}
.chip.accepted .dot { background: var(--teal); }
.chip.partially_shipped .dot { background: var(--violet); }
.chip.shipped .dot { background: var(--teal); }
.chip.sending .dot { background: var(--blue); }
.chip.batched .dot { background: var(--blue); }
.chip.stuck {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.3);
  background: rgba(var(--clay-rgb), 0.08);
}
.chip.unlocked .dot { background: var(--teal); }
.chip.tone-violet { color: var(--violet-ink); border-color: rgba(var(--violet-rgb), 0.34); background: rgba(var(--violet-rgb), 0.1); }
.chip.tone-blue { color: var(--blue-ink); border-color: rgba(var(--blue-rgb), 0.34); background: rgba(var(--blue-rgb), 0.1); }
.chip.tone-teal { color: var(--teal-ink); border-color: rgba(var(--teal-rgb), 0.34); background: rgba(var(--teal-rgb), 0.1); }
.chip.tone-clay { color: var(--clay-ink); border-color: rgba(var(--clay-rgb), 0.34); background: rgba(var(--clay-rgb), 0.1); }

.selection-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tal-actions {
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(var(--violet-rgb), 0.3);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-card) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.tal-actions-label { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; color: var(--violet-ink); font: 700 12px var(--font-sans); }
.tal-actions-label svg { width: 14px; height: 14px; }
.catalogue td.pick { width: 1%; }
.catalogue td.line-summaries { max-width: none; }
.catalogue .line-summary { display: flex; align-items: center; gap: 6px; }
.catalogue .line-summary + .line-summary { margin-top: 4px; }
.catalogue .carton { display: inline-flex; align-items: center; white-space: nowrap; }
.catalogue .carton { gap: 8px; }
.catalogue .carton .copy { margin-left: -4px; }
.catalogue .carton .shipped-on { font: 500 11px var(--font-mono); color: var(--text-dim); }

@keyframes beat {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

.act {
  font: 550 13px var(--font-sans);
  border-radius: 9px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), border-color 0.25s, background 0.25s, color 0.25s;
}
.act.go {
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.1);
  border: 1px solid rgba(var(--teal-rgb), 0.34);
}
.act.go:hover { background: rgba(var(--teal-rgb), 0.2); border-color: var(--teal); }
/* The same weight as a go, in clay — an action that destroys something shouldn't read
   quieter than the one that saves it. */
.act.danger {
  color: var(--clay-ink);
  background: rgba(var(--clay-rgb), 0.1);
  border: 1px solid rgba(var(--clay-rgb), 0.34);
}
.act.danger:hover { background: rgba(var(--clay-rgb), 0.2); border-color: var(--clay); }
.act.edit {
  color: var(--blue-ink);
  background: rgba(var(--blue-rgb), 0.1);
  border: 1px solid rgba(var(--blue-rgb), 0.34);
}
.act.edit:hover { background: rgba(var(--blue-rgb), 0.2); border-color: var(--blue); }
.act.drop {
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.act.drop:hover { color: var(--clay-ink); border-color: rgba(var(--clay-rgb), 0.5); background: rgba(var(--clay-rgb), 0.07); }
.act:active { transform: scale(0.95); }
.act[disabled] { opacity: 0.45; pointer-events: none; }
.act.disabled { opacity: 0.45; cursor: not-allowed; }

.record.job, .record.run { padding: 20px 22px; }
.record.job .head, .record.run .head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
}
.job .ident, .run .ident { min-width: 0; }
.job .type, .run .type {
  font: 600 11.5px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.job .name, .run .name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3px 0 8px;
  overflow-wrap: break-word;
}
.job .code {
  max-width: 100%;
  font: 700 11.5px var(--font-mono);
  letter-spacing: 0.02em;
  text-align: left;
  overflow-wrap: anywhere;
  color: var(--blue-ink);
  background: rgba(var(--blue-rgb), 0.08);
  border: 1px solid rgba(var(--blue-rgb), 0.26);
  border-radius: 7px;
  padding: 4px 9px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.18s var(--ease-out);
}
.job .code:hover { border-color: var(--blue); background: rgba(var(--blue-rgb), 0.16); }
.job .code:active { transform: scale(0.95); }
.job .handle { font-size: 11px; color: var(--text-dim); margin-left: 9px; }
.job .facts, .run .facts { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.job .fact, .run .fact { font: 500 12.5px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text-dim); white-space: nowrap; }

.pips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.pip { width: 26px; height: 5px; border-radius: 999px; background: var(--bg-sunk); }
.pip.finished { background: var(--teal); }
.pip.running { background: var(--blue); animation: beat 1.4s ease-in-out infinite; }
.pip.failed { background: var(--clay); }
.pip.queued, .pip.scheduled { background: var(--line-strong); }

.record.job, .record.run { cursor: pointer; }
.record.run.failed { border-color: rgba(var(--clay-rgb), 0.32); }
.run .failure {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.run .failure .err { font-size: 12px; color: var(--clay-ink); overflow-wrap: anywhere; }
.run .failure .failed-items {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}
.run .failure .failed-items li { margin-top: 4px; }
.run .failure .args { font-size: 11px; color: var(--text-dim); margin-top: 5px; overflow-wrap: anywhere; }
.run .failure .facts { margin-top: 12px; }
.run .failure .trace { margin-top: 12px; }
.run .failure .trace summary, .run .failure .trace-label {
  font: 600 11.5px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
}
.run .failure .trace summary:hover, .run .failure .trace-label:hover { color: var(--text); }
.run .failure .trace pre {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-sunk);
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-dim);
  overflow-x: auto;
}

/* ─────────────────────────────────────────────────
   Product detail
   ───────────────────────────────────────────────── */
.hero.small { min-height: clamp(220px, 30vh, 320px); padding-top: 108px; }
.hero .back {
  display: inline-block;
  font: 500 14px var(--font-sans);
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 10px;
}
.hero .back:hover { color: var(--text); }
.hero .meta { flex-wrap: wrap; gap: 10px 14px; }
.hero .meta a { color: var(--blue-ink); font-size: 13px; text-decoration: none; }
.hero .meta a:hover { text-decoration: underline; }

.fields { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.fields .field {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.fields dt { font: 600 11.5px var(--font-sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.fields dd { font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.fields dd a.shopify {
  display: inline-flex;
  margin-right: 7px;
  padding: 2px;
  border-radius: 5px;
  vertical-align: middle;
  opacity: 0.8;
  transition: opacity 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.fields dd a.shopify:hover {
  opacity: 1;
  background: rgba(149, 191, 71, 0.18);
  box-shadow: 0 0 0 1.5px rgba(149, 191, 71, 0.6);
}
.fields .fact { font: 500 12.5px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--text-dim); margin-right: 12px; white-space: nowrap; }
.fields .fact b { color: var(--text); font-weight: 700; }
.fields .stock-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.fields .stock-form label { font: 500 11.5px var(--font-mono); color: var(--text-dim); }
.fields .stock-form input[type="number"] { width: 110px; font-variant-numeric: tabular-nums; }

/* ─────────────────────────────────────────────────
   Workflows — a job, broken into steps

   The catalogue tiles and the step rail share one
   idea: the next thing to do is the only thing
   carrying colour.
   ───────────────────────────────────────────────── */
.tile.workflow .inner { justify-content: flex-start; gap: 16px; }
.tile.workflow { position: relative; }
.tile .card-link { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.tile.workflow .val { font-size: clamp(1.3rem, 4.2vw, 1.6rem); line-height: 1.3; }
.tile.workflow .go { color: var(--teal-ink); transition: transform 0.3s var(--ease-out); display: inline-block; }
.tile.workflow:hover .go { transform: translateX(5px); }
.tile.soon { opacity: 0.72; }
.tile.soon .val { font-size: 1.4rem; color: var(--text-dim); }

.stepper {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 8px;
  margin: 0 0 26px;
}
.stepper .step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  font: 600 12.5px var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--text-dim);
  box-shadow: var(--shadow-sm);
}
.stepper .step .num {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--bg-sunk);
  font-size: 10.5px;
  font-weight: 800;
}
.stepper .step.done { color: var(--teal-ink); border-color: rgba(var(--teal-rgb), 0.28); }
.stepper .step.done .num { background: rgba(var(--teal-rgb), 0.14); color: var(--teal-ink); }
.stepper .step.on { color: var(--text); border-color: var(--line-strong); }

/* A finished step is the way back to it, so it behaves like one: the whole chip is the
   target, and its tick turns into an arrow under the cursor. */
.stepper .step.back { padding: 0; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.stepper .step.back a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 9px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}
.stepper .step.back .arrow { display: none; }
.stepper .step.back:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.1);
  transform: translateY(-1px);
}
.stepper .step.back:hover .tick { display: none; }
.stepper .step.back:hover .arrow { display: inline; }
.stepper .step.back:hover .num { background: rgba(var(--teal-rgb), 0.24); }
.stepper .step.back a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.stepper .step.on .num { background: var(--grad); color: var(--bg); }

/* The change: one field, one new value */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--card-grad-1), var(--card-grad-2));
  box-shadow: var(--shadow-sm);
  padding: 26px 26px 22px;
  margin-bottom: 22px;
}
.panel .lbl {
  display: block;
  font: 600 11.5px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.panel .lbl.spaced { margin-top: 26px; }

.settings { display: grid; gap: 14px; }
.settings-heading { margin-top: 18px; }
.settings-heading h2 { margin: 0; font-size: 18px; }
.settings-heading p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; }
.settings-link { display: flex; align-items: center; gap: 16px; color: var(--text); text-decoration: none; }
.settings-link:hover { border-color: rgba(var(--teal-rgb), 0.45); }
.settings-link-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--teal-rgb), 0.1); font-size: 20px; }
.settings-link-text { display: grid; gap: 2px; }
.settings-link-text small { color: var(--text-dim); font-size: 12.5px; }
.settings-link-arrow { margin-left: auto; color: var(--teal-ink); }

.access-table { padding: 0; overflow-x: auto; }
.access-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(calc(var(--permissions) + 1), minmax(68px, 1fr)) 72px;
  align-items: center;
  gap: 8px;
  min-width: 860px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.access-row:last-child { border-bottom: 0; }
.access-row:hover:not(.access-head) { background: rgba(var(--tint-rgb), 0.03); }
.access-head { padding-block: 12px; background: var(--bg-sunk); color: var(--text-dim); font: 650 10.5px/1.3 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; }
.access-head span:not(:first-child) { text-align: center; }
.access-user { display: flex; flex-direction: column; min-width: 0; }
.access-user strong { font-size: 14px; }
.access-user span { color: var(--text-dim); font-size: 12px; overflow-wrap: anywhere; }
.access-toggle { display: flex; justify-content: center; cursor: pointer; }
.access-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.access-toggle input { width: 18px; height: 18px; }
.access-row:has(.admin input:checked) .access-toggle:not(.admin) { opacity: 0.35; }
.access-save { visibility: hidden; justify-self: end; }
.access-row.dirty .access-save { visibility: visible; }

.change-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.change-row .what { font: 600 12px var(--font-mono); color: var(--text); }
.change-row .what.to { color: var(--text-dim); }
.choices { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.choice { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.required-marker { color: var(--clay-ink); margin-left: 2px; }
.product-form .change-row .what { flex: 0 0 43px; }
.product-form .change-row + .change-row { margin-top: 8px; }
.product-fields-form .change-row .what { flex: 0 0 115px; }
.product-fields-form .change-row + .change-row { margin-top: 8px; }
.product-fields-form .group-message { flex-basis: 100%; margin: 0 0 0 127px; }
.product-form .sku16-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
}
.product-form .sku16-row .field-message { grid-column: 2; }
.sku16-rows { display: flex; flex-direction: column; gap: 14px; }
.sku16-entry {
  position: relative;
  padding: 14px 48px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sku16-entry .sku16-remove {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.sku16-entry .sku16-remove:hover {
  color: var(--clay-ink);
  background: rgba(var(--clay-rgb), 0.09);
  border-color: rgba(var(--clay-rgb), 0.28);
}

.option-row .remove, .member-row .move, .size-chart-grid .remove {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.option-row .remove:hover, .size-chart-grid .remove:hover {
  color: var(--clay-ink);
  background: rgba(var(--clay-rgb), 0.09);
  border-color: rgba(var(--clay-rgb), 0.28);
}

/* Where the SKUs don't agree there's no value to hand back, so the row names what each
   SKU16 reads instead — the level a change lands on. */
.readings {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(var(--blue-rgb), 0.28);
  border-radius: 10px;
  background: rgba(var(--blue-rgb), 0.06);
}
.readings .lbl { color: var(--blue-ink); }
.readings ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 0 18px;
}
.readings li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  font-size: 12.5px;
}
.readings .colourway {
  flex: 0 0 auto;
  font: 500 11.5px var(--font-mono);
  color: var(--text-dim);
}
.readings .was {
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* A field the catalogue keeps as a list. Every value it holds sits in the box as a tag with
   an × on it, and the space after them takes the next one — a comma or Enter finishes it.
   What all of them add up to is one line of comma-separated values, which is what gets
   submitted, so without JS the same line is simply typed into the box. */
.change-form .tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 4px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-sunk);
  cursor: text;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.change-form .tags:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.13);
}
/* The list lays its tags out in the box itself, so they wrap with the entry rather than
   inside a row of their own. */
.tag-list { display: contents; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 4px 3px 9px;
  border: 1px solid rgba(var(--teal-rgb), 0.35);
  border-radius: 999px;
  background: rgba(var(--teal-rgb), 0.1);
  color: var(--teal-ink);
  font: 600 11.5px var(--font-sans);
  overflow-wrap: anywhere;
}
/* A list read back rather than typed: the same pills, quiet by default, with the ones only
   one side of the change holds picked out — a pill on one side only is the part that moves.
   The strike-through belongs to those pills, not to the whole line they sit on. */
.value-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  vertical-align: middle;
}
/* A pill reads the same on both sides of the arrow, so it takes none of the tracking the
   line it sits on is set in — the same value a hair wider above than below is the kind of
   thing you see without being able to say why. */
.value-tags .tag {
  padding: 2px 9px;
  border-color: var(--line-strong);
  background: rgba(var(--tint-rgb), 0.05);
  color: var(--text-dim);
  letter-spacing: normal;
}
.changes .from:has(.value-tags),
.changes .from.spread .was:has(.value-tags) { text-decoration: none; }
.changes .from .tag.moving {
  border-color: rgba(var(--clay-rgb), 0.4);
  background: rgba(var(--clay-rgb), 0.09);
  color: var(--clay-ink);
  text-decoration: line-through;
  text-decoration-color: rgba(var(--clay-rgb), 0.55);
}
.changes .to .tag.moving {
  border-color: rgba(var(--teal-rgb), 0.45);
  background: rgba(var(--teal-rgb), 0.12);
  color: var(--teal-ink);
}

.tag-drop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 600 13px/1 var(--font-sans);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background-color 0.2s;
}
.tag-drop:hover { opacity: 1; background: rgba(var(--teal-rgb), 0.22); }
.tag-drop:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 1px; opacity: 1; }
.change-form .tags input.tag-entry {
  flex: 1 1 70px;
  min-width: 70px;
  padding: 3px 4px;
  font-size: 12.5px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.change-form .tags input.tag-entry:focus { outline: none; box-shadow: none; }
/* What's about to change, one line per field. The same list reads under the grid while
   the change is being made and on review before it's written, so the last look at it is
   the one that's been there all along — larger there, since it's the last. */
.changes { list-style: none; margin: 0; padding: 0; }
.changes li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.changes li:first-child { border-top: 0; }
.changes .field { flex: 0 0 160px; font-weight: 600; color: var(--text-dim); }
.changes .from {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(var(--clay-rgb), 0.55);
}
.changes .arrow { color: var(--teal-ink); font-family: var(--font-mono); }
.changes .to { font-weight: 700; color: var(--text); }

/* A value here can be a whole row of tags, and a row of tags wraps — which under a label
   sitting to its left would start halfway across the panel. So the label goes above it. */
.changes.big li { font-size: 1.0625rem; padding: 11px 0; gap: 5px 12px; }
.changes.big .field { flex: 0 0 100%; font-size: 13.5px; }
.changes.big .to { letter-spacing: -0.015em; }

/* On review that reading has no single value being replaced, so each one is named with how
   many SKUs say it. */
.changes .from.spread {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  text-decoration: none;
}
.changes .from.spread .reading {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid rgba(var(--clay-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--clay-rgb), 0.07);
  font-size: 13px;
}
.changes .from.spread .was {
  text-decoration: line-through;
  text-decoration-color: rgba(var(--clay-rgb), 0.55);
  overflow-wrap: anywhere;
}
.changes .from.spread .nums {
  font: 600 10.5px var(--font-mono);
  color: var(--text-dim);
}

/* A size set names the values and matching SKU codes in token boxes, so every pairing stays easy
   to scan while the next entry can still be typed in the same place. */
.option-rows { display: flex; flex-direction: column; gap: 10px; }
.option-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.4fr) auto minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}
.option-row .is {
  font: 500 11.5px var(--font-mono);
  color: var(--text-dim);
  text-align: center;
}
.option-row .encodes { color: var(--text-dim); }
.option-row .option-name { font-family: var(--font-mono); }
.option-row .tags { min-width: 0; }
.option-row .tags.has-code-mismatch { border-color: var(--clay); box-shadow: 0 0 0 4px rgba(var(--clay-rgb), 0.1); }
.option-row.member-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto 34px; }
.member-moves { display: inline-flex; gap: 4px; }
.member-row .move { font-size: 14px; }
.member-row .move:hover {
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.08);
  border-color: rgba(var(--teal-rgb), 0.28);
}
.member-row:first-child .move[data-move="up"],
.member-row:last-child .move[data-move="down"] { visibility: hidden; }

.tab-group-actions { margin: 0 0 18px; }
.tab-group-list, .shipping-method-list { padding: 0; overflow: hidden; }
.tab-group-row, .shipping-method-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  align-items: center;
  gap: 8px 24px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.shipping-method-row { grid-template-columns: 1fr auto; }
.tab-group-row:last-child, .shipping-method-row:last-child { border-bottom: 0; }
.shipping-method-row .button_to { margin: 0; }
.dpd-prefix { font-weight: 600; color: var(--text); }
.tab-group-name, .shipping-method-title { font-weight: 600; color: var(--text); text-decoration: none; }
.tab-group-name:hover, .shipping-method-title:hover { color: var(--teal-ink); text-decoration: underline; }
.tab-group-empty { padding: 18px 22px; margin: 0; }
.content-tile-row { grid-template-columns: 96px minmax(140px, 220px) 1fr; }
.content-tile-thumb { width: 96px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--line); }
.member-product { min-width: 0; color: var(--text-dim); font-size: 13px; overflow-wrap: anywhere; }
.wardrobe-slug { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.wardrobe-slug code { font-family: var(--font-mono); color: var(--text); }
.wardrobe-slug .copy { padding: 2px 4px; color: var(--text-dim); background: none; border: 0; cursor: pointer; }
.wardrobe-slug .copy:hover { color: var(--teal-ink); }
.wardrobe-slug .copy-icon, .wardrobe-slug .copy-check-icon { display: block; width: 16px; height: 16px; }
.wardrobe-slug .copy-check-icon, .wardrobe-slug .copy.copied .copy-icon { display: none; }
.wardrobe-slug .copy.copied { color: var(--teal-ink); }
.wardrobe-slug .copy.copied .copy-check-icon { display: block; }
.member-on-page {display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; white-space: nowrap; }
.member-off-page { display: block; margin-top: 4px; font-size: 12px; }
.member-product:has(.member-on-page :checked) .member-off-page { display: none; }
.tag.removed, .value-tags .tag.removed {
  border-color: rgba(var(--clay-rgb), 0.4);
  background: rgba(var(--clay-rgb), 0.09);
  color: var(--clay-ink);
}
.change-form .wardrobe-status { width: auto; min-width: 180px; }
.wardrobe-image { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.wardrobe-image-preview { width: 200px; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.wardrobe-image-preview.removing { opacity: .35; }
.wardrobe-image-fields { display: grid; gap: 8px; min-width: 0; flex: 1 1 220px; }
.wardrobe-image-fields .fine { margin: 0; overflow-wrap: anywhere; }
.wardrobe-image-fields input[type=file] { max-width: 100%; }
.wardrobe-preview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.wardrobe-preview-head h2 { margin: 0; }
.wardrobe-preview > .fine { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); max-width: 70ch; }
.wardrobe-preview > .oops { margin: 14px 0 0; font: 500 13px var(--font-sans); color: var(--clay-ink); }
.wardrobe-preview-placements { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.wardrobe-preview-placement { margin: 0; }
.wardrobe-preview-panel { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.wardrobe-preview-panel li { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; }
.wardrobe-preview-panel img, .wardrobe-preview-no-image {
  width: 60px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--line);
}
.wardrobe-preview-no-image { display: grid; place-items: center; font-size: 10px; color: var(--text-dim); }
.wardrobe-preview-panel li > span { display: grid; gap: 2px; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.wardrobe-preview-panel .fine { font-size: 12px; color: var(--text-dim); }
.wardrobe-preview-panel s { margin-left: 6px; color: var(--text-dim); }

.sku-preview { display: flex; flex-direction: column; gap: 5px; margin-top: 16px; }
.sku-preview-groups { display: grid; gap: 10px; }
.sku-preview-group { display: grid; gap: 3px; }
.sku-preview-group code { color: var(--teal-ink); font: 500 13px var(--font-mono); }

/* A size set is picked whole, so the card is the choice and the pencil beside it is the
   only way to change what's inside one. */
.size-sets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 10px;
  margin-top: 12px;
}
.size-set {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.2s, background-color 0.2s;
}
.size-set:hover { border-color: var(--text-dim); }
.size-set label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 44px 13px 15px;
  cursor: pointer;
}
.size-set input { position: absolute; opacity: 0; width: 0; height: 0; }
.size-set .size-set-name { font: 700 13.5px var(--font-sans); color: var(--text); }
.size-set .size-set-dimensions { font: 500 11.5px var(--font-mono); color: var(--text-dim); }

.size-set-edit {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.size-set-edit svg { width: 15px; height: 15px; }
.size-set-edit:hover {
  color: var(--teal-ink);
  border-color: var(--teal);
  background: rgba(var(--teal-rgb), 0.06);
}
.size-set-edit:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }

/* The tick is the border and the wash, so the state has to come from the radio itself —
   a class set on render would only ever show what the last request chose. */
.size-set:has(input:checked) {
  border-color: rgba(var(--teal-rgb), 0.55);
  background: rgba(var(--teal-rgb), 0.07);
}
.size-set:has(input:checked) .size-set-name { color: var(--teal-ink); }
.size-set:has(input:focus-visible) { outline: 2px solid var(--teal-ink); outline-offset: 2px; }

.add-filter.spaced { margin-top: 14px; }
.size-set-name-input { max-width: 320px; }

.size-chart-actions, .fabric-actions, .size-set-actions { margin: 0 0 18px; }

/* Fabrics: one section per group, each in its own hue, with a card per fabric. The ones in
   no group come last. */
.fabric-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-sunk);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.fabric-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.13); }
.fabric-search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--text-dim); stroke-width: 2; stroke-linecap: round; }
.fabric-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 500 15px var(--font-sans);
  outline: none;
}
.fabric-search input::placeholder { color: var(--text-dim); }
.fabric-search-none { margin: 8px 0 40px; color: var(--text-dim); font-size: 15px; }
.fabric-group[hidden], .fabric-card[hidden], .fabric-jump-chip[hidden] { display: none; }
.fabric-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
}
.fabric-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--text);
  font: 600 12.5px var(--font-sans);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.fabric-jump-chip span { color: var(--text-dim); font-weight: 500; }
.fabric-jump-chip:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), 0.1); color: var(--teal-ink); }
.fabric-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 10px 22px 10px 10px;
  border: 1px solid rgba(var(--teal-rgb), 0.4);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(var(--teal-rgb), 0.18), rgba(var(--blue-rgb), 0.12));
  box-shadow: var(--shadow-sm);
  color: var(--teal-ink);
  font: 650 15px var(--font-sans);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.fabric-action:hover { transform: translateY(-1px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.fabric-action:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.fabric-action-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  transition: transform 0.35s var(--ease-out);
}
.fabric-action:hover .fabric-action-icon.plus { transform: rotate(90deg); }
.fabric-action-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.fabric-group { --tone-rgb: var(--teal-rgb); --tone-ink: var(--teal-ink); margin-bottom: 44px; scroll-margin-top: 90px; }
.fabric-group.tone-blue { --tone-rgb: var(--blue-rgb); --tone-ink: var(--blue-ink); }
.fabric-group.tone-violet { --tone-rgb: var(--violet-rgb); --tone-ink: var(--violet-ink); }
.fabric-group.tone-clay { --tone-rgb: var(--clay-rgb); --tone-ink: var(--clay-ink); }
.fabric-group.ungrouped { --tone-rgb: var(--tint-rgb); --tone-ink: var(--text-dim); }
.fabric-group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.fabric-group-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  letter-spacing: -0.02em;
}
.fabric-group-head h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgb(var(--tone-rgb));
  box-shadow: 0 0 12px rgba(var(--tone-rgb), 0.6);
}
.fabric-group-head .hint { color: var(--text-dim); font: 500 13px var(--font-sans); }
.fabric-group-link { display: block; color: inherit; text-decoration: none; border-radius: 12px; }
.fabric-group-link:hover h2, .fabric-group-link:focus-visible h2 { color: rgb(var(--tone-rgb)); }
.fabric-group-image { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 12px; background: var(--bg-sunk); }
.fabric-group-title { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.fabric-group-byline, .fabric-group-description { flex-basis: 100%; margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.fabric-group-byline { color: var(--text); font-weight: 550; }
.fabric-actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
button.fabric-action { cursor: pointer; }

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.fabric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 16px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(var(--tone-rgb), 0.08), transparent 55%), linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2));
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.fabric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgb(var(--tone-rgb));
  opacity: 0.7;
}
.fabric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--tone-rgb), 0.45);
  box-shadow: var(--shadow-md);
}
.fabric-card:focus-visible { outline: 2px solid var(--tone-ink); outline-offset: 2px; }
.fabric-card.unused { opacity: 0.6; }
.fabric-card.unused:hover { opacity: 1; }
.fabric-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fabric-card-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.fabric-card-count { flex: none; color: var(--text-dim); font: 500 12px var(--font-sans); }
.fabric-card-count b { color: var(--tone-ink); font-weight: 700; font-size: 13px; }
.fabric-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}
.fabric-card .value-tags { margin-top: auto; }

.fabric-show { --tone-rgb: var(--teal-rgb); }
.fabric-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  margin-bottom: 44px;
}
.fabric-fact {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2));
  box-shadow: var(--shadow-sm);
}
.fabric-fact h2 {
  margin-bottom: 12px;
  color: var(--text-dim);
  font: 650 11.5px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fabric-fact > .cw-edit { display: block; }
.fabric-image-change { margin-top: 12px; }
.fabric-fact-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fabric-fact-none { color: var(--text-dim); font-size: 14px; }
.fabric-group-photo { display: block; width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--bg-sunk); }
.fabric-delete { margin-top: 28px; }
.tag-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-chip {
  padding: 6px 14px;
  border: 1px solid rgba(var(--violet-rgb), 0.34);
  border-radius: 999px;
  background: rgba(var(--violet-rgb), 0.1);
  color: var(--violet-ink);
  font: 600 13px var(--font-sans);
}
.tag-chip:has(.tag-chip-remove) { display: inline-flex; align-items: center; gap: 4px; padding-right: 6px; }
.tag-chip-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.tag-chip-remove:hover, .tag-chip-remove:focus-visible { opacity: 1; background: rgba(var(--violet-rgb), 0.22); }
.tag-chip.is-added { border-color: rgba(var(--teal-rgb), 0.7); background: rgba(var(--teal-rgb), 0.14); color: var(--text); }
.tag-chip.is-removed { opacity: 0.55; text-decoration: line-through; border-style: dashed; }
.tag-chip-add { position: relative; display: inline-flex; }
.tag-chip-plus {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  font: 800 18px var(--font-sans);
  line-height: 1;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out);
}
.tag-chip-plus:hover, .tag-chip-plus[aria-expanded="true"] { transform: rotate(90deg); }
.tag-chip-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 6px;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--menu-bg);
  box-shadow: var(--shadow-md);
}
.tag-chip-menu[hidden] { display: none; }
.tag-chip-options { display: grid; gap: 2px; max-height: 240px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.tag-chip-options[hidden] { display: none; }
.tag-chip-option { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.tag-chip-option.is-active, .tag-chip-option:hover { background: rgba(var(--tint-rgb), 0.12); }

.fabric-styles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}
.fabric-style {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--card-grad-1), var(--card-grad-2));
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.fabric-style:hover { transform: translateY(-3px); border-color: rgba(var(--teal-rgb), 0.45); box-shadow: var(--shadow-md); }
.fabric-style:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.fabric-style.unlive { opacity: 0.65; }
.fabric-style.unlive:hover { opacity: 1; }
.fabric-style-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-sunk);
}
.fabric-style-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.fabric-style:hover .fabric-style-cover img { transform: scale(1.04); }
.fabric-style-no-photo { color: var(--text-dim); font: 500 12px var(--font-sans); }
.fabric-style-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.fabric-style-name { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.fabric-style-count { color: var(--text-dim); font: 500 12px var(--font-sans); }
.fabric-style-count b { color: var(--teal-ink); }
.fabric-style-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; }
.fabric-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--swatch, rgba(var(--tint-rgb), 0.12));
  box-shadow: inset 0 0 0 1px rgba(var(--tint-rgb), 0.25);
}
.fabric-swatch-more { color: var(--text-dim); font: 600 11px var(--font-sans); }

@media (max-width: 640px) {
  .fabric-jump { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 28px; padding-bottom: 4px; scrollbar-width: none; }
  .fabric-jump-chip { flex: none; }
  .fabric-grid { gap: 10px; }
  .fabric-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fabric-style-body { padding: 8px 9px 10px; }
}
.size-chart-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px 16px;
}
.size-chart-copy { display: block; margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.size-chart-copy .fine { margin: 8px 0 0; }
.size-chart-fields label, .size-chart-copy-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.change-form .size-chart-fields label input[type="text"] { flex: none; }
.size-chart-grid { margin: 10px 0 0; }
.size-chart-grid .catalogue td { padding: 6px 8px; }
.size-chart-grid .catalogue th { padding: 0 8px; }
.change-form .size-chart-grid input[type="text"] { width: 100%; min-width: 120px; padding: 7px 10px; }
.change-form .size-chart-grid .measurement-value input[type="text"] {
  min-width: 64px;
  font-family: var(--font-mono);
  text-align: right;
}

@media (max-width: 720px) {
  .size-chart-fields { grid-template-columns: 1fr; }
}

.change-form input[type="text"], .change-form input[type="number"], .change-form input[type="datetime-local"], .change-form select, .change-form textarea {
  font: 600 13.5px var(--font-sans);
  letter-spacing: -0.01em;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-sunk);
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s, color 0.2s;
}
.change-form input[type="text"] { flex: 1 1 220px; }
.change-row.prices-row { align-items: flex-start; }
.prices-grid { border-collapse: separate; border-spacing: 8px 6px; margin: -6px -8px; }
.prices-grid th { font: 600 11.5px var(--font-sans); letter-spacing: 0.04em; color: var(--text-dim); text-align: left; }
.prices-grid tbody th { padding-right: 4px; color: var(--text); }
.prices-grid input[type="number"] { width: 110px; font-variant-numeric: tabular-nums; }
.change-form textarea { display: block; width: 100%; box-sizing: border-box; line-height: 1.5; resize: vertical; }
.change-row textarea { flex: 1 1 220px; width: auto; }
.change-form lexxy-editor {
  --lexxy-color-canvas: var(--bg-sunk);
  --lexxy-color-text: var(--text);
  --lexxy-color-ink: var(--text);
  --lexxy-color-ink-medium: var(--text-dim);
  --lexxy-color-ink-light: var(--text-dim);
  --lexxy-color-ink-lighter: var(--line-strong);
  --lexxy-color-ink-lightest: var(--bg-card);
  --lexxy-color-ink-inverted: var(--bg-card);
  --lexxy-color-text-subtle: var(--text-dim);
  --lexxy-color-link: var(--teal-ink);
  --lexxy-color-accent-dark: var(--teal-ink);
  --lexxy-color-accent-medium: var(--teal);
  --lexxy-color-accent-light: rgba(var(--teal-rgb), 0.22);
  --lexxy-color-accent-lightest: rgba(var(--teal-rgb), 0.12);
  --lexxy-font-base: var(--font-sans);
  --lexxy-font-mono: var(--font-mono);
  --lexxy-toolbar-button-size: 30px;
  --lexxy-editor-rows: 8lh;
  display: block;
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-sunk);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
/* A description only keeps basic formatting, so the tools that make anything else are hidden
   rather than offered and then quietly dropped. */
.change-form lexxy-editor :is([name="code"], [name="table"], [name="divider"], [name="highlight"],
  [name="file"], [name="image"], lexxy-highlight-dropdown) {
  display: none;
}
/* A field the SKU6 already carries is shown for reassurance, not for editing — so it wears a
   lock in the space its own padding gives up. */
.change-form .settled-field { position: relative; display: flex; flex: 1 1 220px; }
.change-form input.settled {
  flex: 1 1 auto;
  width: 100%;
  padding-left: 33px;
  border-style: dashed;
  cursor: not-allowed;
}
.settled-lock {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
/* Native selects keep type-to-search, which is the only sane way through 359 colours. */
.change-form select {
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.change-row select { flex: 0 1 240px; width: auto; }
.change-form select:disabled { color: var(--text-dim); opacity: 0.55; cursor: not-allowed; }
.change-form input:disabled { opacity: 0.65; cursor: wait; }

/* Half a SKU16 is wrong rather than unfinished, but saying so before anything has been typed
   would be scolding an empty field — hence the placeholder-shown guard. */
.change-form input:invalid:not(:placeholder-shown) {
  border-color: rgba(var(--clay-rgb), 0.65);
  background: rgba(var(--clay-rgb), 0.05);
}
.change-form input:invalid:not(:placeholder-shown):focus {
  border-color: var(--clay-ink);
}
.field-message {
  display: block;
  margin-top: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(var(--clay-rgb), 0.28);
  border-radius: 8px;
  background: rgba(var(--clay-rgb), 0.08);
  color: var(--clay-ink);
  font: 500 12px/1.4 var(--font-sans);
}
.field-message[hidden] { display: none; }
.required-message {
  margin: 3px 0 0;
  color: var(--clay-ink);
  font: 500 12px/1.4 var(--font-sans);
}
.required-message[hidden] { display: none; }
.group-message .link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
/* A dropdown you can type into wears the row's own box rather than the pill it wears up in
   the catalogue filter, so every control in a row reads as one of a set. */
.change-form .filter-combobox .combobox-control {
  display: flex;
  padding: 0 3px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-sunk);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.change-form .filter-combobox .combobox-control:focus-within {
  border-color: var(--teal);
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.13);
}
/* The box belongs to the control around it, not to the input inside it — otherwise the
   row's own input styling draws a second one within the first. */
.change-form .filter-combobox .combobox-control input {
  padding: 9px 4px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: 600 13.5px var(--font-sans);
  letter-spacing: -0.01em;
}
.change-form .filter-combobox .combobox-control input:focus { box-shadow: none; }
.change-form .filter-combobox .combobox-toggle { height: 34px; }

.change-form input[type="text"]:focus, .change-form input[type="number"]:focus, .change-form select:focus, .change-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.13);
}

.filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 16px; }
.add-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  font: 600 12.5px var(--font-sans);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.add-filter:disabled { opacity: 0.45; cursor: not-allowed; }
.add-filter:hover:not(:disabled) {
  color: var(--teal-ink);
  border-color: var(--teal);
  border-style: solid;
  background: rgba(var(--teal-rgb), 0.06);
}
.add-filter span { font-size: 14px; line-height: 1; }
a.add-filter { text-decoration: none; }

.silhouettes[hidden] { display: none; }
.silhouette-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.silhouette-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(var(--teal-rgb), 0.025);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.silhouette-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.silhouette-choice .silhouette-box {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: transparent;
  font-size: 14px;
  font-weight: 800;
  background: var(--bg-sunk);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.silhouette-choice .silhouette-name { font: 700 13px var(--font-sans); color: var(--text); }
.silhouette-choice:has(input:checked) {
  border-color: rgba(var(--teal-rgb), 0.55);
  background: rgba(var(--teal-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.08);
}
.silhouette-choice:has(input:checked) .silhouette-box {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.silhouette-choice:has(input:focus-visible) { outline: 2px solid var(--teal-ink); outline-offset: 2px; }

.jl-sizes {
  margin: 4px 0 22px;
  padding: 16px 18px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(var(--teal-rgb), 0.025);
}
.jl-sizes[hidden] { display: none; }
.jl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jl-title { font: 700 14px var(--font-sans); color: var(--text); }
.jl-count { font: 600 13px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--teal-ink); }
.jl-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.jl-tool {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-sunk);
  color: var(--text);
  font: 600 12px var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.jl-tool:hover { border-color: rgba(var(--teal-rgb), 0.55); background: rgba(var(--teal-rgb), 0.08); }
.jl-hint { color: var(--text-dim); font-size: 12px; }
.jl-scroll { overflow-x: auto; padding-bottom: 4px; }
.jl-grid { border-collapse: separate; border-spacing: 4px; }
.jl-grid th { padding: 0; font-weight: 600; text-align: center; white-space: nowrap; }
.jl-grid .jl-corner { padding: 0 8px 0 0; color: var(--text-dim); font: 600 12px var(--font-sans); text-align: left; }
.jl-axis {
  min-width: 34px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font: 600 13px var(--font-sans);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.jl-axis:hover { border-color: var(--line-strong); color: var(--text); }
.jl-axis.some { color: var(--text); }
.jl-axis.all { color: var(--teal-ink); }
tbody .jl-axis { width: 100%; text-align: left; }
.jl-grid td { padding: 0; }
.jl-cell { position: relative; display: block; width: 34px; height: 30px; cursor: pointer; }
.jl-cell input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jl-tick {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--bg-sunk);
  transition: border-color 0.15s, background-color 0.15s;
}
.jl-cell:hover .jl-tick { border-color: rgba(var(--teal-rgb), 0.6); }
.jl-cell input:checked + .jl-tick { border: 1px solid var(--teal); background: var(--teal); }
.jl-cell input:checked + .jl-tick::after { content: "✓"; color: var(--bg); font-size: 14px; font-weight: 800; }
.jl-cell input:focus-visible + .jl-tick { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.jl-barcodes { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; }
.jl-barcodes[hidden] { display: none; }
.jl-barcodes.short { color: var(--clay-ink); font-weight: 600; }

@media (max-width: 720px) {
  .option-row { grid-template-columns: 1fr 34px; gap: 6px 10px; }
  .option-row .is { display: none; }
  .option-row .encodes { display: none; }
  .option-row .remove { grid-row: 1; grid-column: 2; }
  .option-row .option-values-field { grid-column: 1; }
  .option-row .option-codes-field { grid-column: 1; }

  .option-row.member-row { grid-template-columns: 1fr auto; }
  .option-row.member-row .member-moves { grid-row: 2; grid-column: 2; }

  .tab-group-row { grid-template-columns: 1fr; }
  .content-tile-row { grid-template-columns: 96px 1fr; }
  .content-tile-row .value-tags { grid-column: 1 / -1; }
}

.change-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 22px; }
.act.big { font-size: 12.5px; padding: 11px 20px; }
.change-actions .cancel, .change-actions a.act { text-decoration: none; }
.change-actions .cancel { font-size: 12.5px; color: var(--text-dim); }
.change-actions .cancel:hover { color: var(--text); }
/* A button_to's form is only there to carry the verb, so it steps out of the row and lets
   the button sit in it. */
.change-actions form.button_to { display: contents; }
.change-form .fine, .panel > .fine { margin-top: 16px; font-size: 12px; color: var(--text-dim); max-width: 70ch; }
/* A hint on the label above it, not a footnote on the section — so it sits under it. */
.change-form .lbl + .fine { margin: -6px 0 12px; }
.change-form .oops {
  margin-top: 14px;
  font: 500 13px var(--font-sans);
  color: var(--clay-ink);
}

/* What the filters caught */

/* What the change covers. Each SKU level has its own adjacent table, so its rows stay together
   while the SKU24 table carries every option value. */
/* Standing on its own, the table is a block like a panel is and is spaced like one. Inside
   a panel it's the last thing in it, and the panel's own padding is the space. */
.coverage {
  margin: 14px 0 22px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}
.panel .coverage { margin-bottom: 0; }
.coverage .grain-tables {
  display: flex;
  align-items: stretch;
  min-width: 100%;
  width: max-content;
}
.coverage table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.coverage .grain-table { width: auto; }
.coverage .grain-table-group:not(:first-child) { border-left: 1px solid var(--line-strong); }
.coverage th {
  text-align: left;
  font: 600 11px var(--font-sans);
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--bg-sunk) 72%, var(--bg-raised));
  padding: 12px 14px 11px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.coverage th.grain { color: var(--teal-ink); }
.coverage th.grain:not(:first-child),
.coverage td.colourways,
.coverage td.sku16-list,
.coverage td.sku-list,
.coverage td.num { border-left: 1px solid var(--line-strong); }
.coverage th.num, .coverage td.num { text-align: right; }
.coverage td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text);
  background: var(--bg-raised);
  transition: background-color 0.18s ease;
}
.coverage tbody tr:last-child td { border-bottom: 0; }
.coverage tbody tr:hover td { background: rgba(var(--teal-rgb), 0.035); }
.coverage td.sku6 .mono {
  text-decoration: none;
  white-space: nowrap;
}
.coverage td.colourways, .coverage td.sku16-list { min-width: 190px; }
.coverage td.sku-list { min-width: 420px; max-width: 680px; }
.coverage .chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  font: 550 11px/1.25 var(--font-mono);
  color: var(--text-dim);
  background: color-mix(in srgb, var(--bg-sunk) 78%, var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  text-decoration: none;
  box-shadow: 0 1px 1px rgba(var(--tint-rgb), 0.04);
}
.coverage td.sku6 .chip,
.coverage td.colourways .chip,
.coverage td.sku16-list .chip,
.coverage td.sku-list .chip {
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.07);
  border-color: rgba(var(--teal-rgb), 0.22);
}
/* Every chip that leads somewhere says so the same way. */
.coverage a.chip:hover { color: var(--text); border-color: var(--line-strong); text-decoration: underline; }
.coverage td.num { font: 600 12.5px var(--font-mono); color: var(--text); white-space: nowrap; }
.coverage td.sku { font: 700 12.5px var(--font-mono); color: var(--teal-ink); white-space: nowrap; }

/* A full option set runs to hundreds of SKUs, so the review list scrolls rather than
   pushing the button that writes them off the screen. */
.coverage.tall { max-height: 460px; scrollbar-gutter: stable; }
.coverage.tall thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--line-strong);
}
.coverage .fine { margin-top: 12px; font-size: 12px; color: var(--text-dim); }

@media (max-width: 720px) {
  .coverage th { padding: 11px 12px 10px; }
  .coverage td { padding: 12px; }
  .coverage td.sku-list { min-width: 290px; }
}

/* The filters, restated on review as plain sentences */
.conditions { list-style: none; margin: 0; padding: 0; }
.conditions li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.conditions li:first-child { border-top: 0; }
.conditions li b { color: var(--text); font-weight: 700; }
/* Part of the sentence, not a label on it — so it reads in the same face as the value. */
.conditions .field {
  font-weight: 600;
  color: var(--text-dim);
  margin-right: 3px;
}

/* The products a Shopify write calls on. A change over a whole season names hundreds of
   them, so the list scrolls rather than pushing the button that starts the write down the
   page. */
.shopify-products { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.shopify-products li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.shopify-products li:first-child { border-top: 0; }
.shopify-products a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 13px var(--font-mono);
  color: var(--teal-ink);
  text-decoration: none;
  white-space: nowrap;
}
.shopify-products a:hover { text-decoration: underline; }
.shopify-products a svg { opacity: 0.7; transition: opacity 0.15s; }
.shopify-products a:hover svg { opacity: 1; }
.shopify-products .count { color: var(--text-dim); }

/* New Product review — each part of what's about to be created, stated once before it's
   written. */
.verdict {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.verdict + .verdict { border-top: 1px solid var(--line); padding-top: 14px; }
.verdict .field {
  flex: 0 0 100%;
  font: 600 11.5px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.verdict .to { color: var(--teal-ink); }
.apply { margin-top: 22px; }
.apply .change-actions { margin-top: 0; }

/* The write itself. Everything above it on the step is there to be read; this is the one
   thing to be pressed, so it sits in the middle of its own block at a size that says so. */
.write {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 14px 0 6px;
  text-align: center;
}
.write .act {
  font-size: 15px;
  padding: 17px 38px;
  border-radius: 14px;
}
.write .fine { margin: 0; }
.write .loading-line { width: min(320px, 100%); margin: 2px 0 0; }

/* One press creates the product in several places in turn, so the press is followed by a
   row per place rather than a single spinner: what is done, what is being done now, and
   what is still waiting on it. */
.creation-steps {
  display: grid;
  gap: 8px;
  width: min(420px, 100%);
  margin: 4px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.creation-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-sunk);
  overflow: hidden;
}
/* A row can grow to hold what it made, so the line itself carries the padding rather than
   the box around it. */
.creation-step > span {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
}
/* What a row made belongs inside it, under the line that says it made it — the SKU16s the
   catalogue took, the products Shopify now holds. */
.creation-made {
  list-style: none;
  margin: 0;
  padding: 0 14px 6px;
  max-height: 320px;
  overflow-y: auto;
  border-top: 1px solid rgba(var(--teal-rgb), 0.24);
}
.creation-made li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(var(--teal-rgb), 0.24);
}
.creation-made li:first-child { border-top: 0; }
.creation-made a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px var(--font-sans);
  color: var(--teal-ink);
  text-decoration: none;
}
.creation-made a.mono { font: 700 13px var(--font-mono); letter-spacing: 0.02em; }
.creation-made a:hover { color: var(--teal); }
.creation-made a svg { opacity: 0.7; transition: opacity 0.15s; }
.creation-made a:hover svg { opacity: 1; }
.creation-made .away { width: 13px; height: 13px; flex: none; }
.creation-made .count { font-size: 12.5px; color: var(--text-dim); }
.creation-step .mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11.5px;
  line-height: 1;
}
.creation-step .what { font-size: 13px; font-weight: 600; color: var(--text); }
.creation-step .said {
  font: 500 12px var(--font-sans);
  color: var(--text-dim);
}
.creation-step.pending { opacity: 0.6; }
.creation-step.done {
  border-color: rgba(var(--teal-rgb), 0.34);
  background: rgba(var(--teal-rgb), 0.08);
}
.creation-step.done .mark {
  color: var(--teal-ink);
  border-color: rgba(var(--teal-rgb), 0.4);
  background: rgba(var(--teal-rgb), 0.16);
}
.creation-step.running .mark {
  border-color: rgba(var(--blue-rgb), 0.55);
  border-top-color: transparent;
  animation: creation-step-spin 0.9s linear infinite;
}
.creation-step.running .said { color: var(--blue-ink); }
.creation-step.failed {
  border-color: rgba(var(--clay-rgb), 0.4);
  background: rgba(var(--clay-rgb), 0.08);
}
.creation-step.failed .mark {
  color: var(--clay-ink);
  border-color: rgba(var(--clay-rgb), 0.45);
  background: rgba(var(--clay-rgb), 0.16);
}
.creation-step.failed .said { color: var(--clay-ink); }
@keyframes creation-step-spin {
  to { transform: rotate(1turn); }
}

.panel.creation .change-actions { justify-content: center; }
.panel.creation form { margin: 0; }
.panel.creation .note { margin-top: 20px; }

/* One thing sits above the rows through all of it: the press, then the same press disabled
   while it runs, then the tick in its place. What can still be walked away from sits beside
   it, and goes once the press has been made. */
.write-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.write-action .cancel { font-size: 12.5px; color: var(--text-dim); text-decoration: none; }
.write-action .cancel:hover { color: var(--text); }
.write:has(button[type="submit"][disabled]) .write-action .cancel { display: none; }

/* The rows are the middle of this panel, so everything reporting on them lines up with
   them rather than against the panel's left edge. */
.panel.creation.finished { text-align: center; }
.panel.creation.finished .tick { margin-bottom: 0; }
/* Where to go next lines up under the rows — same width, and indented to where a row
   starts its mark. */
.panel.creation.finished .finished-actions {
  width: min(420px, 100%);
  margin-inline: auto;
  padding-inline: 14px;
}

/* Done */
.panel.finished { text-align: left; }
.panel.finished .tick {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(var(--teal-rgb), 0.13);
  border: 1px solid rgba(var(--teal-rgb), 0.34);
  color: var(--teal-ink);
  font-size: 19px;
  margin-bottom: 16px;
}
.panel.finished h2 { font-size: 1.5rem; margin-bottom: 8px; }
.panel.finished .lede { font-size: 14.5px; color: var(--text-dim); max-width: 62ch; }
.panel.finished .lede b { color: var(--text); font-weight: 700; }
.panel.finished .shopify-products { margin-top: 16px; }
.finished-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 22px; }
.finished-actions .act { text-decoration: none; display: inline-block; }
.finished-actions .cancel { font-size: 12.5px; color: var(--text-dim); text-decoration: none; }
.finished-actions .cancel:hover { color: var(--text); }

.shopify-creation p { max-width: 70ch; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.shopify-job-panel h2 { margin-bottom: 10px; }
.shopify-job-panel > p { max-width: 70ch; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.shopify-job-panel .change-actions form { margin: 0; }
.shopify-job-panel .note { margin-top: 22px; }
.loading-line {
  height: 6px;
  margin: 24px 0 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}
.loading-line span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  animation: loading-slide 1.4s ease-in-out infinite;
}
@keyframes loading-slide {
  0% { transform: translateX(-120%); }
  50%, 100% { transform: translateX(330%); }
}

/* Scoped to the rail: the catalogue's own SKU cells are .sku too, and a bare
   rule here paints a chip around the whole table cell. */
.skus { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* The only thing this section lists, so they carry it at reading size. */
.skus .sku {
  font: 600 14.5px var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.08);
  border: 1px solid rgba(var(--teal-rgb), 0.24);
  border-radius: 9px;
  padding: 10px 16px;
  text-decoration: none;
}
.skus .sku:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), 0.16); }
.skus .sku.more { color: var(--text-dim); background: transparent; border-color: var(--line-strong); }
.skus .sku.more:hover { color: var(--text); border-color: var(--text-dim); }

.note {
  position: relative;
  margin: 26px 0 0;
  padding: 14px 18px 14px 47px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(var(--clay-rgb), 0.5);
  background: rgba(var(--clay-rgb), 0.05);
  font-size: 12.5px;
  color: var(--text-dim);
}
/* Decoration, not content — it sits in the stylesheet so the copy stays readable. Set
   beside the text rather than in front of it: a flex icon makes flex items of the copy,
   and any emphasis in it lands in a column of its own. */
.note::before {
  content: "⚠️";
  position: absolute;
  left: 18px;
  font-size: 13px;
  line-height: 1.5;
}
/* A merge is the one outcome nobody expects, so it gets the warm mark. */
.note.warn {
  margin: 18px 0 0;
  border-left-color: var(--clay);
  background: rgba(var(--clay-rgb), 0.09);
  color: var(--text);
}
.note.warn b { font-weight: 700; }
.note.info {
  border-left-color: rgba(var(--blue-rgb), 0.5);
  background: rgba(var(--blue-rgb), 0.06);
}
.note.info::before { content: "ℹ️"; }
.band > .note:first-child { margin-top: 0; margin-bottom: 22px; }

/* ─────────────────────────────────────────────────
   Sign in
   ───────────────────────────────────────────────── */
.sign-in { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 32px 20px; }
.sign-in-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-grad-1), var(--card-grad-2));
  box-shadow: var(--shadow-md);
  text-align: center;
}
.sign-in-card .wordmark {
  font: 700 13px var(--font-mono);
  letter-spacing: 0.22em;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sign-in-card h1 { margin: 14px 0 8px; font-size: 1.6rem; }
.sign-in-card .lede { margin: 0 0 26px; color: var(--text-dim); font-size: 14px; }
.sign-in-card .domain-note { margin: 18px 0 0; color: var(--text-dim); font: 500 12.5px var(--font-sans); }

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
  font: 600 14.5px var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.18s var(--ease-out);
}
.google-button:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), 0.07); }
.google-button:active { transform: scale(0.98); }
.google-button svg { width: 18px; height: 18px; flex: none; }
.google-button.allow { border-color: var(--teal); background: rgba(var(--teal-rgb), 0.12); }
.sign-in-card form.button_to { display: block; margin: 0; }
.sign-in-card form.button_to + form.button_to { margin-top: 10px; }

/* ─────────────────────────────────────────────────
   Toasts
   ───────────────────────────────────────────────── */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 850; display: flex; flex-direction: column; gap: 10px; }
body:has(.cx-launcher) .toasts { bottom: 82px; }
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 17px;
  border-radius: 14px;
  background: var(--toast-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  animation: toastIn 0.45s var(--ease-out);
}
.toast b { color: var(--teal-ink); font-family: var(--font-mono); font-size: 12px; }
.toast.bye { animation: toastOut 0.35s var(--ease-out) forwards; }
.toast.warn { border-color: rgba(var(--clay-rgb), 0.5); background: rgba(var(--clay-rgb), 0.12); }
.freeze-banner { position: fixed; left: 22px; bottom: 22px; z-index: 850; max-width: 420px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(60%) scale(0.92); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.95); } }

footer { padding: 20px 0 70px; color: var(--text-dim); font: 500 12.5px var(--font-sans); text-align: center; }

/* ─────────────────────────────────────────────────
   Responsive

   The portal gets read on a phone as often as at a
   desk, so every page has to hold together at 360px.
   Three things give, in this order: the page loses
   its outer margin, a row that reads across becomes
   one that reads down, and a control with no width
   left to give takes a line of its own.

   What never gives is the tables. A catalogue row
   that wrapped would stop being a row, so the sheets
   keep their width and scroll sideways under a SKU
   that rides along at the left edge.
   ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .record .row { grid-template-columns: 1fr 1fr; }
  .record .ship { text-align: left; }
}

/* Statuses, filter and search stop fitting across. A bar that took three lines while
   pinned would cover the rows it filters, so it also stops being pinned. */
@media (max-width: 820px) {
  .wrap { padding: 0 24px; }
  .wrap.full { padding: 0 14px; }
  /* The hero's own gutter tracks .wrap's, or the headline and the page under it stop
     lining up on the same left edge. */
  .hero { padding: 148px 24px 44px; }

  .controls {
    position: static;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 0 2px;
    background: none;
  }
  .controls .search { flex: 1 1 100%; min-width: 0; }
  .controls .dates { flex: 1 1 100%; justify-content: center; }
  .controls .export { flex: 1 1 auto; justify-content: center; }

  /* Five statuses don't fit across a phone and none of them is the one to drop, so the
     row keeps its size and slides instead. */
  .controls .segmented {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .controls .segmented::-webkit-scrollbar { display: none; }
  .controls .seg { flex: none; }
  .hero .segmented .seg { padding: 8px 12px; }

  /* Nothing sits beside the bar at this width, so it sits over the page instead — and gets
     out of the way while the page is going past it. */
  .nav {
    left: 14px;
    transform: none;
    transition: transform 0.3s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
  }
  .nav-menu { left: 0; transform: none; transform-origin: top left; }
  .nav-menu[open] { animation-name: dropIn; }

  .catalogue-controls { grid-template-columns: minmax(0, 1fr); }
  .catalogue-controls .segmented,
  .catalogue-controls .field-filter,
  .catalogue-controls .filter-open-label,
  .catalogue-controls .search {
    grid-area: auto;
    justify-self: stretch;
    width: auto;
  }
  /* Search is what a phone comes to this page to do, so it takes the line under the
     statuses and the filter waits below it. */
  .catalogue-controls .segmented { order: 1; }
  .catalogue-controls .search { order: 2; }
  .catalogue-controls .filter-open-label { order: 3; }
  .catalogue-controls .field-filter { order: 4; }
  .catalogue-controls .search input { padding: 11px 16px 11px 40px; font-size: 13.5px; }
  .catalogue-controls .search .icon { left: 15px; font-size: 13px; }

  /* Four controls tall, the filter would push the rows off the screen before anyone had
     asked it anything. It waits behind its own label until they do. */
  .filter-open {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .filter-open-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-raised);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
  }
  .filter-open-label .caret { color: var(--text-dim); font-size: 11px; transition: transform 0.2s var(--ease-out); }
  .filter-open:checked ~ .filter-open-label { border-radius: 16px 16px 0 0; border-bottom-color: transparent; }
  .filter-open:checked ~ .filter-open-label .caret { transform: rotate(180deg); }
  .filter-open:focus-visible ~ .filter-open-label { outline: 2px solid var(--teal); outline-offset: 2px; }
  .filter-open:not(:checked) ~ .field-filter { display: none; }
  .catalogue-controls .field-filter { margin-top: -12px; border-radius: 0 0 16px 16px; padding-top: 14px; }
  /* The panel is under the label that names it, so it doesn't name itself again. */
  .field-filter > .field-filter-label { display: none; }

  /* The field, how it's asked about and the value each get the full width — three stubs
     abreast are three controls you can't read the setting of. */
  .field-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .field-filter > * { width: 100%; }
  .field-filter select { padding: 9px 26px 9px 6px; }
  .catalogue-controls .field-combobox,
  .catalogue-controls .value-combobox,
  .catalogue-controls .field-filter select { min-width: 0; }
  .filter-apply { align-self: stretch; padding: 9px 14px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .wrap.full { padding: 0 12px; }

  .hero { min-height: clamp(330px, 48vh, 480px); padding: 122px 18px 30px; }
  .hero.small { min-height: clamp(190px, 26vh, 260px); padding: 92px 18px 24px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  /* A short hero is the one with a page of work under it, and a headline sized for a
     landing screen would be the only thing on the first one. */
  .hero.small h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero .lede { font-size: 0.98rem; margin-top: 14px; }
  .hero .meta { margin-top: 20px; }
  .eyebrow { margin-bottom: 16px; }

  section.band { padding: 42px 0 0; }
  section.band:last-child { padding-bottom: 42px; }

  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile.wide { grid-column: span 1; }
  .tile .inner { padding: 18px; }

  /* Two cards abreast at this width are two cards you can't read the second line of, so
     each takes the full width and the height its own label needs. */
  .catalogue-actions-links { flex-direction: column; }
  .catalogue-action { flex: none; min-width: 0; }
  .record .row { grid-template-columns: 1fr; gap: 12px; }
  .record.job, .record.run { padding: 16px; }
  .job .handle { display: block; margin: 6px 0 0; }
  .fields .field { grid-template-columns: 1fr; padding: 15px 2px; }
  .access-table { overflow: hidden; }
  .access-head { display: none; }
  .access-row { grid-template-columns: 1fr 1fr; gap: 10px 14px; min-width: 0; padding: 16px; }
  .access-user, .access-save { grid-column: 1 / -1; }
  .access-toggle { justify-content: flex-start; gap: 8px; color: var(--text-dim); font-size: 12.5px; }
  .access-toggle span { position: static; width: auto; height: auto; clip-path: none; }
  .access-save { display: none; justify-self: start; }
  .access-row.dirty .access-save { display: inline-flex; }

  .panel { padding: 18px 16px 16px; }
  .empty { padding: 46px 16px; }
  .empty .big { font-size: 1.7rem; }

  /* A label beside its field leaves the field too narrow to hold what goes in it, and the
     ones whose labels don't fit wrap while the ones that do stay put — a form of rows that
     no longer line up. Every label takes the line above its own field instead. */
  .change-form .change-row,
  .product-form .sku16-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .product-form .change-row .what,
  .product-fields-form .change-row .what { flex: none; }
  .product-fields-form .group-message { margin: 0; }
  .product-form .sku16-row .field-message { grid-column: 1; }
  /* Stacked, a field takes the width its label has — the size it was given for a row that
     read across leaves it short of the edge everything else reaches. */
  .change-row input[type="text"], .change-row select { flex: none; width: 100%; }
  .prices-grid input[type="number"] { width: 100%; }
  .change-form .settled-field { flex: none; width: 100%; }
  /* Boxed inside a boxed panel, the entry was paying for two frames' worth of margin out
     of a screen that has none to spare. */
  .sku16-entry { padding: 12px 46px 12px 12px; }

  .catalogue .columns th { padding: 0 10px; }
  .catalogue td { padding: 0 10px; max-width: 200px; }
  .catalogue td.clip, .catalogue td.handle { max-width: 150px; }
  .catalogue td.list { max-width: 190px; }
  /* The SKU is which row this is. Cut short it names nothing, so it keeps whatever width
     it takes and gives back what it can in the size of the type. */
  .catalogue td.sku { max-width: none; }
  .catalogue td.sku a, .catalogue td.sku .unlinked { font-size: 10.5px; }

  /* The field name takes a line of its own: a value here can be a whole row of pills, and
     pills wrapping beside a label start halfway across the screen. */
  .changes .field { flex: 0 0 100%; }

  /* Steps of four different lengths wrap into a ragged block that reads as neither a row
     nor a list. They keep their line and slide, the way the statuses do, and the page
     opens on the step you're on. */
  .stepper {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-bottom: 20px;
  }
  .stepper::-webkit-scrollbar { display: none; }
  .stepper .step { flex: none; }

  /* Where you are earns a line of its own before either step does. */
  .pager { flex-wrap: wrap; gap: 10px 14px; padding-bottom: 34px; }
  .pager .pos { order: -1; flex: 1 1 100%; text-align: center; }

  .write .act { width: 100%; }
  .toasts { left: 14px; right: 14px; bottom: 14px; }
  .toast { overflow-wrap: anywhere; }
  .freeze-banner { left: 14px; right: 14px; bottom: 80px; max-width: none; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .hero { padding: 116px 14px 26px; }
  .hero.small { padding: 88px 14px 22px; }
  /* Stacked, the basis that sized these across a row would size their height instead and
     leave two cards a screen tall. Each one asks for the height its own label needs. */
  .catalogue-actions-links { flex-direction: column; }
  .catalogue-action { flex: none; min-width: 0; }

  /* Two date fields side by side stop fitting, so the period reads down instead — and the
     arrow between them turns to point the way the dates now run. */
  .controls .dates { flex-direction: column; align-items: stretch; padding: 8px 10px; }
  .controls .dates input { text-align: center; }
  .controls .dates .to { align-self: center; transform: rotate(90deg); }

  .stepper { gap: 8px 6px; }
  .stepper .step, .stepper .step.back a { padding: 7px 12px 7px 8px; }
  .sign-in-card { padding: 32px 22px; }
}

/* A phone on its side has the height of a letterbox, and a hero sized for a portrait
   screen would fill it — leaving the page itself below the fold. */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: 96px; }
  .hero.small { min-height: 0; padding-top: 88px; }
}

/* ─────────────────────────────────────────────────
   Touch — nothing to hover with

   A control that only appears under the pointer never
   appears at all, and a 15px target is a miss. Both
   are answered on whether there's a pointer rather
   than at a width: a tablet is a wide screen you
   still touch.
   ───────────────────────────────────────────────── */
@media (any-hover: none) {
  .catalogue .copy { opacity: 0.55; }
  .catalogue td.sku a.shopify { opacity: 0.8; }
  /* The column being sorted by keeps its own, brighter caret — this is the hint the other
     columns can be sorted too, not a repaint of the one that already is. */
  .catalogue th.sortable:not(.sorted) a .caret,
  .catalogue th.grain .grain-sort .caret { opacity: 0.35; }

  .tag-drop { width: 22px; height: 22px; opacity: 0.75; }
  .combobox-toggle { width: 32px; height: 32px; }
  .hide-job { width: 28px; height: 28px; }
  .option-row .remove,
  .member-row .move,
  .size-chart-grid .remove,
  .sku16-entry .sku16-remove { width: 34px; height: 34px; }
  .combobox-options [role="option"] { padding: 11px 12px; font-size: 14px; }
}

/* iOS zooms the page in on any field it reckons is too small to read, and never zooms back
   out. 16px is where it stops doing that. */
@media (pointer: coarse) and (max-width: 820px) {
  .search input,
  .catalogue-controls .search input,
  .field-filter select,
  .combobox-control input,
  .dates input,
  .change-form input[type="text"],
  .change-form select,
  .change-form textarea,
  .change-form .tags input.tag-entry,
  .change-form .filter-combobox .combobox-control input { font-size: 16px; }
}

/* ─────────────────────────────────────────────────
   Colourway — the page wears the colour it describes.
   --swatch is the colourway's own hex code; without one
   it falls back to a neutral silver.
   ───────────────────────────────────────────────── */
@property --cw-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.cw-hero, .cw {
  --cw: var(--swatch, rgb(var(--tint-rgb)));
  --cw-light: color-mix(in oklab, var(--cw), white 42%);
  --cw-deep: color-mix(in oklab, var(--cw), black 48%);
}

.cw-hero {
  min-height: clamp(380px, 54vh, 580px);
  padding-bottom: 92px;
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in oklab, var(--cw) 40%, transparent) 0%, transparent 60%),
    radial-gradient(900px 600px at 0% 100%, color-mix(in oklab, var(--cw-deep) 70%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, color-mix(in oklab, var(--cw-deep) 50%, #0c131d), #0d1622 60%, #0a111a);
}
.cw-hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(42% 52% at 76% 46%, color-mix(in oklab, var(--cw) 78%, transparent), transparent 72%),
    radial-gradient(30% 40% at 18% 90%, color-mix(in oklab, var(--cw) 40%, transparent), transparent 70%);
  filter: blur(24px) saturate(1.2);
  animation: cwBreathe 10s ease-in-out infinite alternate;
}
.cw-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cw-aura span {
  position: absolute;
  width: 34vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: cwDrift 18s ease-in-out infinite alternate;
}
.cw-aura span:nth-child(1) { background: var(--cw); top: -18vmax; right: -6vmax; }
.cw-aura span:nth-child(2) { background: var(--cw-deep); bottom: -22vmax; left: 12%; animation-duration: 23s; animation-delay: -6s; opacity: 0.3; }
.cw-aura span:nth-child(3) { background: var(--cw-light); top: 30%; left: 48%; width: 18vmax; animation-duration: 14s; animation-delay: -3s; opacity: 0.28; }

.cw-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}
.cw-hero .eyebrow .dot { background: var(--cw-light); box-shadow: 0 0 10px var(--cw-light); }
.cw-hero h1 { margin-top: 2px; }
.cw-hero .chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.86); }
.cw-hero .chip .dot { background: var(--blue); }
.cw-hero a.chip.cw-size-set { text-decoration: none; transition: background 0.25s; }
.cw-hero a.chip.cw-size-set:hover { background: rgba(255, 255, 255, 0.16); }
.cw-hero .chip.cw-size-set b { color: #fff; }
.cw-hero .chip.live .dot { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.cw-hero .chip.unpublished .dot { background: var(--clay); }
.cw-hero .chip.archived .dot { background: rgba(255, 255, 255, 0.4); }
/* Status is held per colour; SKUs that disagree are a data problem worth seeing. */

/* Links out, one per market: teal for the website, Shopify green for the admin. */
.cw-links { display: flex; flex-wrap: wrap; gap: 5px; }
.cw-link {
  --tone: var(--teal-rgb);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(var(--tone), 0.5);
  background: rgba(var(--tone), 0.13);
  font: 650 11.5px var(--font-sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.25s, box-shadow 0.35s var(--ease-out), transform 0.25s var(--ease-out);
}
.cw-link, .hero .meta a.cw-link { color: var(--text); font-size: 11.5px; text-decoration: none; }
.cw-link:hover, .hero .meta a.cw-link:hover {
  text-decoration: none;
  background: rgba(var(--tone), 0.26);
  box-shadow: 0 0 0 4px rgba(var(--tone), 0.14);
  transform: translateY(-1px);
}
.cw-link svg { flex: none; width: 14px; height: 14px; }
.cw-site svg { color: var(--teal-ink); }
.cw-shopify { --tone: 149, 191, 71; }
.cw-link-flag { font-size: 14px; line-height: 1; }
.cw-link .arrow { display: inline-block; opacity: 0.6; transition: transform 0.25s var(--ease-out), opacity 0.25s; }
.cw-link:hover .arrow { opacity: 1; transform: translate(2px, -2px); }
.cw-links-none { color: var(--text-dim); font-size: 12.5px; font-style: italic; }
.cw-page { gap: 2px; padding: 3px 9px 3px 4px; font-size: 12.5px; }
.cw-page > .cw-edit { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; }
.cw-page-handle { font: 600 12px var(--font-mono); letter-spacing: 0; text-transform: none; }
.cw-page-handle.cw-inherited { color: var(--text-dim); font-weight: 400; }
.cw-page-handle::before { content: "/products/"; color: var(--text-dim); font-weight: 400; }
.cw-page-open { padding: 2px 4px; color: inherit; text-decoration: none; }
.cw-page-open:hover .arrow { opacity: 1; transform: translate(2px, -2px); }
.cw-pages .cw-page:hover { transform: none; }


/* Stats */
.cw .tile::before { background: radial-gradient(260px circle at var(--mx, -300px) var(--my, -300px), var(--cw), transparent 62%); }
.cw .tile .inner::after { background: radial-gradient(340px circle at var(--mx, -300px) var(--my, -300px), color-mix(in oklab, var(--cw) 14%, transparent), transparent 60%); }
.cw-locations { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.cw-locations > div { display: grid; gap: 6px; cursor: default; }
.cw-location-qty {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}
.cw-market-flag { display: inline-block; font-size: 1.9rem; line-height: 1; transition: transform 0.4s var(--ease-out); }
.cw-market-name { display: grid; gap: 2px; }
.cw-market-name b { font-size: 14px; font-weight: 750; color: var(--text); }
.cw-market-name .sub { font-size: 11px; letter-spacing: 0.06em; color: var(--text-dim); }

/* Layout */
.cw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.cw-main, .cw-side { display: grid; gap: 20px; min-width: 0; }

.cw-card {
  position: relative;
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  background: linear-gradient(165deg, var(--card-grad-1), var(--card-grad-2) 78%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.cw-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cw), var(--cw-light), transparent);
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.cw-card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--cw) 35%, var(--line)); }
.cw-card:hover::before { transform: none; opacity: 1; }
.cw-card > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.cw-card h2 { font-size: 1.05rem; font-weight: 750; letter-spacing: -0.01em; }
.cw .hint { color: var(--text-dim); font: 500 13px var(--font-sans); text-decoration: none; }
.cw a.hint:hover { color: var(--text); }
.cw .lbl { font: 600 11.5px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }

/* Media */
.cw-gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 28%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.cw-shot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  background: color-mix(in oklab, var(--cw) 18%, var(--bg-sunk));
}
.cw-shot :is(img, video) { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease-out), filter 0.5s; }
.cw-shot:hover img { transform: scale(1.07); filter: saturate(1.15); }
.cw-shot .chip { position: absolute; left: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; border-color: transparent; }

.cw-media-strip { list-style: none; margin: 0; padding-left: 0; }
.cw-media.dropping { outline: 2px dashed rgba(var(--teal-rgb), 0.6); outline-offset: 4px; }
.cw-media[aria-busy="true"] .cw-media-strip { opacity: 0.6; pointer-events: none; }
.cw-media .cw-media-error { color: var(--clay-ink); }
.cw-media-shot { cursor: zoom-in; outline-offset: 3px; }
.cw-media-strip.sorting { scroll-snap-type: none; user-select: none; }
.cw-media-strip.sorting > .dragging {
  z-index: 2;
  cursor: grabbing;
  scale: 1.04;
  rotate: -1.5deg;
  box-shadow: 0 18px 44px rgba(6, 10, 18, 0.35), 0 0 0 2px rgba(var(--teal-rgb), 0.7);
  transition: scale 0.15s, rotate 0.15s, box-shadow 0.15s;
}
.cw-media-strip.sorting > :not(.dragging) { opacity: 0.55; transition: opacity 0.15s; }
.cw-media-strip.sorting > .dragging img, .cw-media-strip.sorting > .dragging:hover img { transform: none; }
.cw-media-shot.processing :is(img, video) { filter: grayscale(0.6); opacity: 0.75; }
.cw-media-shot.failed { box-shadow: inset 0 0 0 2px var(--clay); }
.cw-media-badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.cw-media-badges .chip { position: static; }
.cw-media-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font: 600 12px var(--font-sans);
  cursor: pointer;
}
.cw-media-edit:hover, .cw-media-edit:focus-visible { background: rgba(0, 0, 0, 0.72); }
.cw-media-visibility-form { position: absolute; top: 10px; left: 10px; }
.cw-media-visibility {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  cursor: pointer;
}
.cw-media-visibility svg { width: 15px; height: 15px; }
.cw-media-visibility:hover, .cw-media-visibility:focus-visible { background: rgba(0, 0, 0, 0.72); }
.cw-media-shot.is-hidden :is(img, video) { filter: grayscale(1); opacity: 0.35; }
.cw-media-shot.is-hidden .cw-media-visibility { background: var(--clay-ink); }
.cw-media-shot.is-drafted { outline: 2px dashed rgba(var(--violet-rgb), 0.8); outline-offset: 3px; }
.cw-media-shot.is-deleting :is(img, video) { filter: grayscale(1); opacity: 0.25; }
.cw-media-badges .cw-media-drafted { background: linear-gradient(120deg, rgba(var(--violet-rgb), 0.95), rgba(var(--blue-rgb), 0.9)); color: #14102a; font-weight: 700; }
.cw-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: min(92vw, 1400px);
  max-height: 92dvh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--bg-sunk);
  overflow: hidden;
}
.cw-lightbox::backdrop { background: rgba(6, 14, 22, 0.8); backdrop-filter: blur(3px); }
.cw-lightbox :is(img, video) { display: block; max-width: min(92vw, 1400px); max-height: 92dvh; object-fit: contain; }
.cw-lightbox [hidden] { display: none; }
.cw-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font: 500 22px/1 var(--font-sans);
  cursor: pointer;
}
.cw-editor.cw-media-dialog {
  inset: 0;
  margin: auto;
  width: min(520px, calc(100vw - 24px));
  height: fit-content;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  cursor: auto;
}
.cw-media-dialog > form { padding: 16px 16px 4px; }
.cw-media-dialog::backdrop { background: rgba(6, 14, 22, 0.55); backdrop-filter: blur(2px); }
.cw-media-dialog-photo { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.cw-media-dialog-photo :is(img, video) { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--bg-sunk); }
.cw-media-dialog-photo .cw-editor-hint { min-width: 0; margin: 0; }
.cw-media-status { padding: 3px 9px; border-radius: 999px; background: rgba(var(--teal-rgb), 0.14); color: var(--teal-ink); font: 650 11px var(--font-sans); }
.cw-media-status.processing { background: var(--bg-sunk); color: var(--text-dim); }
.cw-media-status.failed { background: rgba(var(--clay-rgb), 0.14); color: var(--clay-ink); }
.cw-media-field { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; }
.cw-media-field > span, .cw-media-field legend { font: 650 12.5px var(--font-sans); color: var(--text-dim); padding: 0; }
.cw-media-field em { font-style: normal; font-weight: 500; opacity: 0.8; }
.cw-media-field textarea.cw-editor-input { resize: vertical; min-height: 64px; }
.image-picker { display: flex; gap: 12px; align-items: center; padding: 10px; border: 2px dashed var(--line-strong); border-radius: 12px; cursor: pointer; }
.image-picker:hover, .image-picker:focus-within { background: rgba(var(--teal-rgb), 0.06); border-color: var(--teal); }
.image-picker-preview { position: relative; display: grid; place-items: center; flex: none; width: 72px; height: 90px; border-radius: 10px; background: var(--bg-sunk); overflow: hidden; }
.image-picker-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-picker-plus { font-size: 22px; color: var(--text-dim); }
.image-picker.has-image .image-picker-plus { display: none; }
.image-picker-text { display: grid; gap: 2px; min-width: 0; }
.image-picker-text b { font: 650 13.5px var(--font-sans); overflow-wrap: anywhere; }
.image-picker-text .hint { font: 500 12px var(--font-sans); color: var(--text-dim); }
.cw-media-tags { --check: #82a8f5; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cw-media-tag {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--text);
  font: 600 13.5px var(--font-sans);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.cw-media-tag:last-child { grid-column: 1 / -1; }
.cw-media-tag:hover { border-color: var(--line-strong); background: rgba(var(--tint-rgb), 0.07); }
.cw-media-tag:has(input:checked) { border-color: rgba(130, 168, 245, 0.55); background: rgba(130, 168, 245, 0.12); }
.cw-media-tag input { width: 18px; height: 18px; border-radius: 6px; }
.cw-media-tag .hint-tip { position: static; margin-left: auto; }
.cw-media-tag:nth-child(even) .hint-tip-text { left: auto; right: 0; }
@media (max-width: 480px) {
  .cw-media-tags { grid-template-columns: 1fr; }
  .cw-media-tag:nth-child(even) .hint-tip-text { left: 0; right: auto; }
}
.hint-tip { position: relative; display: inline-flex; }
.hint-tip-button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: #82a8f5; cursor: pointer; transition: color 0.15s ease, background 0.15s ease; }
.hint-tip-button:hover, .hint-tip-button:focus-visible { color: #adc6fa; background: rgba(130, 168, 245, 0.14); outline: none; }
.hint-tip .hint-tip-button svg { width: 16px; height: 16px; fill: none; color: currentColor; }
.hint-tip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 5;
  width: max-content;
  max-width: min(260px, calc(100vw - 72px));
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font: 500 12.5px/1.45 var(--font-sans);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.15s;
}
.hint-tip:hover .hint-tip-text, .hint-tip-button:focus + .hint-tip-text { opacity: 1; visibility: visible; transform: none; }
.cw-media-dialog-actions { display: flex; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.cw-media-dialog-actions form:last-child { margin-left: auto; }
.cw-media-add { display: grid; background: transparent; border: 2px dashed var(--line-strong); }
.cw-media-add label { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 16px; text-align: center; cursor: pointer; }
.cw-media-add label:hover, .cw-media-add label:focus-within { background: rgba(var(--teal-rgb), 0.06); }
.cw-media-add input, .cw-media-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cw-media-title { display: flex; align-items: center; gap: 10px; }
.cw-media-add-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(var(--teal-rgb), 0.4);
  background: rgba(var(--teal-rgb), 0.1);
  color: var(--teal-ink);
  font: 600 18px/1 var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.cw-media-add-button:hover { background: rgba(var(--teal-rgb), 0.2); transform: scale(1.06); }
.cw-media-add-button:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
:root[data-theme="dark"] .cw-media-add-button { color: var(--teal); }
.cw-media-plus { font-size: 28px; color: var(--teal); }

/* Pricing */

/* SKUs — a matrix in the size set's own shape, each cell heated by its stock.
   A pale colour can't heat anything, so it heats in its own deeper shade. */
.cw-skus { --cw-heat: var(--cw); margin-top: 20px; }
.cw-skus.pale { --cw-heat: var(--cw-deep); }
.cw-grid-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.cw-views { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.cw-views .lbl { flex: none; margin-right: 4px; }
.cw-view {
  flex: none;
  display: grid;
  gap: 1px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  color: var(--text-dim);
  font: 600 11px var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.cw-view b { font-size: 13px; color: var(--text); }
.cw-view:hover { border-color: var(--line-strong); }
.cw-view[aria-selected="true"] { border-color: var(--cw-heat); background: color-mix(in oklab, var(--cw-heat) 12%, transparent); }
.cw-heat-legend { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font-sans); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cw-heat-scale {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--cw-heat) 10%, var(--bg-raised)), var(--cw-heat));
  box-shadow: inset 0 0 0 1px var(--line);
}
.cw-grid-scroll { overflow-x: auto; scrollbar-width: thin; padding: 4px 0 6px; }
.cw-grid { border-collapse: separate; border-spacing: 4px; margin: -4px; font-variant-numeric: tabular-nums; }
.cw-grid th { font: 700 11.5px var(--font-sans); color: var(--text-dim); text-align: center; padding: 2px 4px; white-space: nowrap; transition: color 0.2s; }
.cw-grid tbody th { text-align: right; padding-right: 10px; }
.cw-grid tbody tr:hover th { color: var(--text); }
.cw-grid th.cw-axis-cols { color: var(--violet-ink); }
.cw-grid th.cw-axis-rows { color: var(--blue-ink); }
.cw-grid .cw-axis { font: 700 10.5px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.cw-grid .cw-axis::after { content: ""; position: absolute; border: 2px solid currentColor; opacity: 0.55; }
.cw-grid thead .cw-axis { position: relative; padding: 0 0 12px; }
.cw-grid thead .cw-axis::after { left: 4px; right: 4px; bottom: 2px; height: 7px; border-bottom: 0; border-radius: 7px 7px 0 0; }
.cw-grid tbody th.cw-axis { position: relative; box-sizing: border-box; width: 42px; min-width: 42px; padding: 0 12px 0 0; text-align: center; }
.cw-grid tbody .cw-axis::after { top: 4px; bottom: 4px; right: 2px; width: 7px; border-right: 0; border-radius: 7px 0 0 7px; }
.cw-grid tbody .cw-axis span { writing-mode: vertical-rl; transform: rotate(180deg); }
.cw-grid-frame { display: flex; align-items: flex-start; }
.cw-grid-frame[hidden] { display: none; }
.cw-grid-frame > .cw-grid-scroll { flex: 1; min-width: 0; }
.cw-grid-labels-wrap { flex: none; padding: 4px 0 6px; }
.cw-grid-labels .cw-ghost { visibility: hidden; }
.cw-row-gauge { display: block; width: 0; height: 34px; }
.cw-grid td { padding: 0; }
.cw-cell, .cw-slot { display: grid; place-items: center; width: max(44px, calc(var(--cell-ch, 0) * 1ch + 16px)); height: 34px; border-radius: 9px; }
.cw-cell {
  position: relative;
  background: color-mix(in oklab, var(--cw-heat) calc(var(--heat) * 88% + 10%), var(--bg-raised));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cw-heat) 30%, var(--line));
  color: var(--text);
  font: 700 12.5px var(--font-sans);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.cw-cell.lit { color: #fff; }
.cw-cell.sold-out { color: var(--clay-ink); background: rgba(var(--clay-rgb), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--clay-rgb), 0.28); }
.cw-cell:hover {
  z-index: 2;
  transform: scale(1.2);
  box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--cw-heat) 80%, transparent), inset 0 0 0 2px var(--cw-light);
}
.cw-skus.in .cw-cell { animation: cwPop 0.5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
.cw-slot { border: 1px dashed var(--line); background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(var(--tint-rgb), 0.04) 5px 6px); }
.cw-strays { margin-top: 20px; display: grid; gap: 8px; }
.cw-strays > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-stray {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 11.5px;
  text-decoration: none;
  transition: border-color 0.25s;
}
.cw-stray:hover { border-color: var(--cw-heat); }

/* Details */
.cw-details { list-style: none; display: grid; gap: 10px; }
.cw-details li { display: flex; gap: 12px; align-items: baseline; }
.cw-details li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--cw) 22%, transparent);
  color: color-mix(in oklab, var(--cw), var(--text) 35%);
  font: 800 11px var(--font-sans);
}
.cw-care { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(var(--tint-rgb), 0.04); }
.cw-care p { margin-top: 4px; }
.cw-description { margin-bottom: 6px; padding: 14px 16px; border-radius: 12px; background: rgba(var(--tint-rgb), 0.04); }
.cw-description-body { margin-top: 6px; font-size: 14px; line-height: 1.55; }
.cw-description-body p { margin: 0 0 10px; }
.cw-description-body > :first-child { margin-top: 0; }
.cw-description-body > :last-child { margin-bottom: 0; }
.cw-description-body ul, .cw-description-body ol { padding-left: 20px; }
.cw-editor:has(.cw-editor-rich) { width: min(560px, calc(100vw - 24px)); }
.cw-editor-rich { display: block; min-height: 160px; max-height: 50vh; overflow: auto; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-sunk); color: var(--text); }

/* Colour */
.cw-swatch-row { display: flex; align-items: center; gap: 16px; }
.cw-swatch-row > div { display: grid; }
.cw-swatch {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex: none;
  overflow: hidden;
  background: var(--cw);
  box-shadow: inset 0 0 0 1px rgba(var(--tint-rgb), 0.15), 0 10px 26px -8px color-mix(in oklab, var(--cw) 80%, transparent);
  transition: transform 0.5s var(--ease-out), border-radius 0.5s var(--ease-out);
}
.cw-swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%) -150% 0 / 250% 100% no-repeat;
  animation: cwShine 4.5s ease-in-out infinite;
}
.cw-swatch:hover { transform: rotate(-8deg) scale(1.08); border-radius: 50%; }
.cw-parents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cw-parent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: 600 12.5px var(--font-sans);
  text-transform: capitalize;
}
.cw-parent-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); background: #999; }
.pc-white { background: #fff; }
.pc-black { background: #15171a; }
.pc-blue { background: #2f6fd6; }
.pc-brown { background: #7b4a2a; }
.pc-green { background: #2f8f4e; }
.pc-grey { background: #8a8f98; }
.pc-neutral { background: #d8c8a8; }
.pc-orange { background: #f08a24; }
.pc-pink { background: #f29ab8; }
.pc-purple { background: #8d5bd6; }
.pc-red { background: #d63a3a; }
.pc-yellow { background: #f2c230; }
.pc-multi { background: conic-gradient(#d63a3a, #f2c230, #2f8f4e, #2f6fd6, #8d5bd6, #d63a3a); }

.cw-facts { display: grid; margin-top: 14px; }
.cw-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
}
.cw-facts dt { color: var(--text-dim); font-size: 13px; }
.cw-facts dd { font-weight: 600; font-size: 13.5px; text-align: right; overflow-wrap: anywhere; }

.cw-origin { display: flex; align-items: center; gap: 14px; }
.cw-origin > div { display: grid; }
.cw-origin-flag { font-size: 2.6rem; line-height: 1; animation: cwFloat 5s ease-in-out infinite; }

.cw-launch-phrase {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--cw), color-mix(in oklab, var(--cw), var(--blue) 55%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Editing in place */
.cw-edit {
  --cw-edit-tint: rgba(var(--tint-rgb), 0.06);
  --cw-edit-edge: rgba(var(--tint-rgb), 0.2);
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 6px;
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 5px;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), outline-color 0.25s var(--ease-out);
}
.cw-edit:has(> h1, > .lede, > .cw-care, > .cw-description, > .cw-parents, > .cw-facts) { display: block; }
.cw-edit-group + .cw-edit-group { margin-top: 10px; }
.cw-edit:hover, .cw-edit:focus-visible, .cw-edit.is-editing {
  background: var(--cw-edit-tint);
  box-shadow: 0 0 0 5px var(--cw-edit-tint);
  outline-color: var(--cw-edit-edge);
}
.cw-edit:focus-visible, .cw-edit.is-editing { outline: 1.5px solid color-mix(in oklab, var(--cw) 55%, var(--text)); }
.cw-hero .cw-edit { --cw-edit-tint: rgba(255, 255, 255, 0.08); --cw-edit-edge: rgba(255, 255, 255, 0.24); }
.cw-hero .cw-edit:is(:focus-visible, .is-editing) { outline-color: rgba(255, 255, 255, 0.55); }
.cw-edit-pencil {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid color-mix(in oklab, var(--cw) 45%, var(--line-strong));
  border-radius: 50%;
  background: var(--menu-bg);
  color: color-mix(in oklab, var(--cw) 60%, var(--text));
  box-shadow: 0 3px 10px -3px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
  pointer-events: none;
}
.cw-edit-pencil svg { width: 11px; height: 11px; stroke-width: 2.2; }
.cw-edit:hover > .cw-edit-pencil, .cw-facts > div:hover > dd > .cw-edit > .cw-edit-pencil, .cw-edit:focus-visible > .cw-edit-pencil, .cw-edit.is-editing > .cw-edit-pencil { opacity: 1; transform: none; }
.cw-empty { color: var(--text-dim); font-style: italic; font-weight: 500; }

.cw-facts > div:has(> dd > .cw-edit) {
  position: relative;
  border-radius: 6px;
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 0;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), outline-color 0.25s var(--ease-out);
}
.cw-facts > div:has(> dd > .cw-edit):is(:hover, :has(.cw-edit:focus-visible), :has(.cw-edit.is-editing)) {
  background: rgba(var(--tint-rgb), 0.06);
  box-shadow: 0 0 0 5px rgba(var(--tint-rgb), 0.06);
  outline-color: rgba(var(--tint-rgb), 0.2);
  outline-offset: 5px;
}
.cw-facts > div:has(> dd > .cw-edit:is(:focus-visible, .is-editing)) { outline: 1.5px solid color-mix(in oklab, var(--cw) 55%, var(--text)); }
.cw-facts > div > dd > .cw-edit { position: static; --cw-edit-tint: transparent; --cw-edit-edge: transparent; }
.cw-facts > div > dd > .cw-edit:is(:focus-visible, .is-editing):not(.is-missing) { outline-color: transparent; }

/* Fields held above the colour: by the style or the fabrication */
.cw-held-style { --held-rgb: var(--violet-rgb); --held-ink: var(--violet-ink); }
.cw-held-fabrication { --held-rgb: var(--blue-rgb); --held-ink: var(--blue-ink); }
.cw-held {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: 5px;
  background: rgba(var(--held-rgb), 0.16);
  color: var(--held-ink);
  vertical-align: -3px;
}
.cw-held svg { width: 12px; height: 12px; }
.cw-editor-held, .cw-review-chip.held { display: inline-flex; align-items: center; gap: 5px; background: rgba(var(--held-rgb), 0.16); color: var(--held-ink); }
.cw-editor-held { padding: 3px 9px 3px 6px; border-radius: 999px; font: 650 11px var(--font-sans); white-space: nowrap; }
.cw-editor .cw-editor-held svg, .cw-review-chip.held svg { width: 12px; height: 12px; fill: none; color: currentColor; }
.cw-hero .cw-empty { color: rgba(255, 255, 255, 0.55); }

.cw-edit.is-saving::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  background: linear-gradient(100deg, transparent 20%, color-mix(in oklab, var(--cw) 30%, transparent) 50%, transparent 80%) -100% 0 / 200% 100% no-repeat;
  animation: cwSaving 0.9s linear infinite;
  pointer-events: none;
}
.cw-edit.just-saved { animation: cwSaved 1.6s var(--ease-out); }
.cw-edit.just-saved::before {
  content: "✓";
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #0c1d2a;
  font: 800 13px var(--font-sans);
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.25);
  animation: cwTick 1.6s var(--ease-out) forwards;
}

.cw-edit.has-drift {
  background: rgba(245, 165, 36, 0.1);
  box-shadow: 0 0 0 6px rgba(245, 165, 36, 0.1), 0 0 0 8px rgba(245, 165, 36, 0.75);
  animation: cwNeedsFix 2s ease-in-out infinite;
}
.cw-drift-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0 auto;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: rgba(149, 191, 71, 0.16);
  border: 1px solid rgba(149, 191, 71, 0.55);
  color: color-mix(in oklab, #95bf47, var(--text) 45%);
  font: 700 11px var(--font-sans);
  text-align: left;
  overflow-wrap: anywhere;
  animation: cwPop 0.5s var(--ease-out) both;
}
.cw-drift-badge svg, .cw-drift svg { flex: none; width: 13px; height: 13px; fill: #95bf47; color: #95bf47; }
.cw-hero .cw-drift-badge { margin-left: 0; color: #e3f5c4; }

.cw-drift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 820px;
  margin: 14px 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(245, 165, 36, 0.6);
  background: linear-gradient(120deg, rgba(245, 165, 36, 0.22), rgba(245, 165, 36, 0.08) 60%, rgba(149, 191, 71, 0.12));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -20px rgba(245, 165, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  animation: cwDriftIn 0.7s var(--ease-out) both, cwDriftNudge 0.6s 0.9s ease-in-out;
}
.cw-drift-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #95bf47;
  box-shadow: 0 8px 20px -6px rgba(149, 191, 71, 0.8);
}
.cw-drift .cw-drift-icon svg { width: 24px; height: 24px; fill: #fff; color: #fff; }
.cw-drift-ping {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5a524;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}
.cw-drift-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #f5a524;
  animation: cwPing 1.6s ease-out infinite;
}
.cw-drift h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.cw-drift p { margin-top: 3px; color: rgba(255, 255, 255, 0.82); font-size: 13.5px; line-height: 1.45; }
.cw-drift p b { color: #ffd79a; }
.cw-drift-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cw-drift-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 600 12px var(--font-sans);
  cursor: pointer;
  animation: cwPop 0.45s var(--ease-out) both;
  animation-delay: calc(0.4s + var(--i, 0) * 70ms);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.cw-drift-field:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); border-color: #f5a524; transform: translateY(-2px); }
.cw-drift-field:disabled { cursor: default; }
.cw-drift-field-name { padding-right: 6px; border-right: 1px solid rgba(255, 255, 255, 0.25); font-size: 10.5px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.cw-drift-field-values { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.cw-drift-field-values s, .cw-drift-field-values b { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-drift-field-values s { opacity: 0.7; }
.cw-drift-field-values b { color: #ffd79a; }
.cw-drift-field-values ins, .cw-drift-field-values del,
.cw-deviation-badge ins, .cw-deviation-badge del { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.cw-drift-field-values ins { color: #e4dcff; font-weight: 750; }
.cw-drift-field-values del, .cw-deviation-badge del { opacity: 0.7; }
.cw-drift-field.is-list { flex-wrap: wrap; border-radius: 12px; }
.cw-drift-field.is-list .cw-drift-field-values { flex-wrap: wrap; }
.cw-drift-field.is-list ins, .cw-drift-field.is-list del { flex: none; }
.cw-drift-field-values .attention-side { opacity: 0.75; font-size: 10.5px; white-space: nowrap; }
.cw-drift-field-values .attention-side:not(:first-of-type) { margin-left: 6px; }
.cw-drift-field-values .attention-reach { padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, 0.25); opacity: 0.75; font-size: 11px; white-space: nowrap; }
.cw-drift-keep-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #12313c;
  font: 750 13px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.cw-drift-keep-all:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.5); }
.cw-drift-keep-all:disabled { opacity: 0.7; cursor: progress; }
.cw-drift-keep-all.is-saving .cw-editor-spinner { display: block; }
.cw-drift-keep-all.is-secondary { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.cw-drift-actions { display: flex; flex-direction: column; gap: 8px; }

.cw-edit.has-deviation {
  background: rgba(139, 108, 255, 0.1);
  box-shadow: 0 0 0 6px rgba(139, 108, 255, 0.1), 0 0 0 8px rgba(139, 108, 255, 0.75);
  animation: cwNeedsFix 2s ease-in-out infinite;
}
.cw-deviation-badge { background: rgba(139, 108, 255, 0.16); border-color: rgba(139, 108, 255, 0.55); color: color-mix(in oklab, #8b6cff, var(--text) 45%); }
.cw-deviation-badge svg { fill: #8b6cff; color: #8b6cff; }
.cw-hero .cw-deviation-badge { color: #e4dcff; }
.cw-drift.cw-deviation {
  border-color: rgba(139, 108, 255, 0.65);
  background: linear-gradient(120deg, rgba(139, 108, 255, 0.3), rgba(139, 108, 255, 0.1) 60%, rgba(139, 108, 255, 0.16));
  box-shadow: 0 18px 40px -20px rgba(139, 108, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.cw-deviation .cw-drift-icon { background: #8b6cff; box-shadow: 0 8px 20px -6px rgba(139, 108, 255, 0.85); }
.cw-deviation .cw-drift-icon svg { fill: rgba(255, 255, 255, 0.25); stroke: #fff; stroke-width: 1.3; }
.cw-deviation .cw-drift-icon svg .led { fill: #fff; stroke: none; }
.cw-deviation p b, .cw-deviation .cw-drift-field-values b { color: #e4dcff; }
.cw-deviation .cw-drift-field:hover:not(:disabled) { border-color: #b7a6ff; }

.cw-editor {
  --cw: var(--teal);
  --cw-ink: color-mix(in oklab, var(--cw) 60%, var(--text));
  position: fixed;
  z-index: 840;
  width: min(380px, calc(100vw - 24px));
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--menu-bg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md), 0 18px 50px -18px color-mix(in oklab, var(--cw) 70%, transparent);
  color: var(--text);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top left;
  transition: opacity 0.2s var(--ease-out), transform 0.3s var(--ease-out);
}
.cw-editor.is-above { transform-origin: bottom left; transform: translateY(8px) scale(0.96); }
.cw-editor.is-open { opacity: 1; transform: none; }
.cw-editor.is-closing { opacity: 0; transform: scale(0.97); }
.cw-editor::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cw), color-mix(in oklab, var(--cw), white 42%), var(--blue));
}
:is(.cw-editor, .cw-editor > form) > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cw-editor-name { font: 750 14px var(--font-sans); letter-spacing: -0.01em; }
.cw-editor-shopify {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: rgba(149, 191, 71, 0.14);
  color: color-mix(in oklab, #95bf47, var(--text) 45%);
  font: 650 11px var(--font-sans);
  white-space: nowrap;
}
.cw-editor-shopify[hidden] { display: none; }
.cw-editor svg { width: 14px; height: 14px; fill: #95bf47; color: #95bf47; }
.cw-editor-hint { margin: 6px 0 12px; color: var(--text-dim); font-size: 12.5px; line-height: 1.45; }
.cw-editor-see-all { display: block; width: fit-content; margin-top: 4px; }
.cw-editor-see-all::after { content: " →"; }
.cw-editor-warning {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--clay) 14%, transparent);
  color: var(--clay-ink);
  font-size: 12.5px;
  line-height: 1.45;
}
.cw-editor:has(.cw-editor-address) { width: min(460px, calc(100vw - 24px)); }
.cw-editor-address { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.cw-editor-address-field { display: grid; gap: 5px; min-width: 0; color: var(--text-dim); font: 600 11.5px var(--font-sans); }
.cw-editor-address-field.wide { grid-column: 1 / -1; }

.cw-editor-drift { margin-bottom: 12px; }
.cw-editor-drift-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: color-mix(in oklab, #f5a524, var(--text) 35%);
  font: 750 12px var(--font-sans);
}
.cw-editor-drift-head time { margin-left: auto; color: var(--text-dim); font-weight: 500; }
.cw-editor-drift-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cw-editor-drift-choice {
  --side: var(--teal);
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1.5px solid color-mix(in oklab, var(--side) 55%, var(--line));
  background: color-mix(in oklab, var(--side) 7%, var(--bg-raised));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  animation: cwPop 0.35s var(--ease-out) both;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}
.cw-editor-drift-choice.shopify { --side: #95bf47; animation-delay: 60ms; }
.cw-editor-drift-choice:hover:not(:disabled), .cw-editor-drift-choice:focus-visible {
  outline: none;
  transform: translateY(-2px);
  background: color-mix(in oklab, var(--side) 15%, var(--bg-raised));
  box-shadow: 0 10px 22px -12px var(--side);
}
.cw-editor-drift-side { color: var(--text-dim); font: 700 10.5px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.cw-editor-drift-choice b { font: 750 15px var(--font-sans); overflow-wrap: anywhere; }
.cw-editor-drift-action { color: color-mix(in oklab, var(--side), var(--text) 40%); font: 750 11.5px var(--font-sans); }
.cw-editor-drift-or { margin: 0 0 10px; color: var(--text-dim); font-size: 12px; }
.cw-editor-drift.is-deviation .cw-editor-drift-head { color: color-mix(in oklab, #8b6cff, var(--text) 35%); }
.cw-editor-drift-choice.production { --side: #8b6cff; animation-delay: 60ms; }
.cw-editor-drift-choice.staging { --side: var(--text-dim); }
.cw-editor-drift-choice.is-info { cursor: default; opacity: 0.85; }
.cw-editor-drift-items { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }
.cw-editor-drift-items ins, .cw-editor-drift-items del {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--side) 45%, var(--line));
  background: color-mix(in oklab, var(--side) 12%, var(--bg-raised));
  font: 700 12.5px var(--font-sans);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cw-editor-drift-items i { color: var(--text-dim); font: 600 13px var(--font-sans); }
.cw-editor-drift-head svg { width: 13px; height: 13px; fill: currentColor; }
.cw-editor-drift-head svg .led, .cw-deviation-badge svg .led { fill: #fff; }

.cw-editor-field { display: flex; align-items: center; gap: 8px; }
.cw-editor-input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
  font: 500 14.5px var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.cw-editor-input { resize: vertical; line-height: 1.5; }
.cw-editor-input:focus { outline: none; border-color: var(--cw-ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--cw-ink) 22%, transparent); }
.cw-editor-prefix { font: 750 15px var(--font-sans); color: var(--text-dim); }
.cw-editor-picker {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
}
.cw-editor-picker::-webkit-color-swatch-wrapper { padding: 0; }
.cw-editor-picker::-webkit-color-swatch { border: 1px solid var(--line-strong); border-radius: 12px; }
.cw-editor-picker::-moz-color-swatch { border: 1px solid var(--line-strong); border-radius: 12px; }

.cw-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.cw-move { display: grid; gap: 8px; }
.cw-move-list { display: grid; gap: 4px; max-height: 196px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.cw-move-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text);
  font: 600 13.5px var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cw-move-option:hover:not(:disabled) { border-color: color-mix(in oklab, var(--cw-ink) 60%, var(--line-strong)); }
.cw-move-option:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--cw-ink) 40%, transparent); }
.cw-move-option[aria-selected="true"] { border-color: var(--cw-ink); background: color-mix(in oklab, var(--cw-ink) 14%, var(--bg-raised)); }
.cw-move-option:disabled { cursor: not-allowed; opacity: 0.55; }
.cw-move-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-move-tag { flex: none; padding: 2px 7px; border-radius: 999px; background: var(--bg); color: var(--text-dim); font: 700 10.5px var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; }
.cw-move-none { margin: 4px 2px; color: var(--text-dim); font-size: 13px; }
.cw-editor-scope { margin: 2px 0 10px; }
.cw-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
  font: 600 13px var(--font-sans);
  text-transform: capitalize;
  cursor: pointer;
  animation: cwPop 0.35s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 25ms);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.cw-choice:hover { transform: translateY(-1px); border-color: color-mix(in oklab, var(--cw-ink) 60%, var(--line-strong)); }
.cw-choice:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--cw-ink) 40%, transparent); }
.cw-choice-tick {
  display: grid;
  place-items: center;
  width: 0;
  height: 16px;
  border-radius: 50%;
  background: var(--cw-ink);
  color: var(--bg-raised);
  font-size: 10px;
  overflow: hidden;
  transform: scale(0);
  transition: width 0.25s var(--ease-out), transform 0.3s var(--ease-out);
}
.cw-choice[aria-pressed="true"] {
  background: color-mix(in oklab, var(--cw-ink) 14%, var(--bg-raised));
  border-color: var(--cw-ink);
}
.cw-choice[aria-pressed="true"] .cw-choice-tick { width: 16px; transform: none; }
.cw-choice[class*="status-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.cw-choice.status-live::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.cw-choice.status-unpublished::before { background: var(--clay); }
.cw-choice.status-draft::before { background: var(--blue); }
.cw-choice.status-archived::before { background: var(--text-dim); opacity: 0.5; }

.cw-editor-error {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(var(--clay-rgb), 0.1);
  color: var(--clay-ink);
  font-size: 12.5px;
  line-height: 1.45;
}
.cw-editor-error::before { content: "⚠"; }
.cw-editor-error[hidden] { display: none; }
.cw-editor.is-refused { animation: cwShake 0.45s var(--ease-out); }

:is(.cw-editor, .cw-editor > form) > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; padding: 0; color: var(--text); text-align: left; }
.cw-editor-keys { margin-right: auto; color: var(--text-dim); font-size: 11.5px; }
.cw-editor-keys kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  font: 600 10.5px var(--font-sans);
  text-align: center;
}
.cw-editor-cancel, .cw-editor-save {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  font: 700 13px var(--font-sans);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), filter 0.2s, opacity 0.2s;
}
.cw-editor-cancel { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.cw-editor-save { border: 0; background: var(--grad); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 16px -6px var(--grad-glow); }
.cw-editor.tinted { --cw: rgb(var(--tint-rgb)); }
.cw-editor.tinted .cw-editor-save {
  --face: oklch(from var(--cw) max(l, 0.5) c h);
  background: linear-gradient(180deg, color-mix(in oklab, var(--face), white 28%), var(--face) 60%);
  color: oklch(from var(--face) clamp(0, (0.72 - l) * 1000, 1) 0 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 16px -6px color-mix(in oklab, var(--face) 80%, transparent);
}
.cw-editor-save:hover, .cw-editor-cancel:hover { transform: translateY(-1px); }
.cw-editor-save:hover { filter: brightness(1.08); }
.cw-editor button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.cw-editor-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(12, 29, 42, 0.3);
  border-top-color: #0c1d2a;
  animation: cwSpinner 0.7s linear infinite;
}
.cw-editor.is-saving .cw-editor-spinner { display: block; }

.cw-editor.is-sheet {
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: auto;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  transform: translateY(100%);
  transition: opacity 0.2s, transform 0.4s var(--ease-out);
}
.cw-editor.is-sheet.is-open { transform: none; }
.cw-editor.is-sheet.is-closing { transform: translateY(100%); }
.cw-editor.is-sheet .cw-editor-keys { display: none; }
.cw-editor.is-sheet .cw-editor-input { font-size: 16px; }

.cw-undos {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(620px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}
.cw-undos .cw-toast {
  position: relative;
  overflow: hidden;
  gap: 16px;
  padding: 18px 20px 20px 22px;
  border: 1px solid rgba(var(--teal-rgb), 0.55);
  border-radius: 18px;
  background: color-mix(in oklab, var(--bg-card), rgb(var(--teal-rgb)) 10%);
  box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.12), var(--shadow-md);
  font-size: 16px;
  pointer-events: auto;
  animation: cwUndoIn 0.5s var(--ease-out);
}
.cw-undos .cw-toast.bye { animation: cwUndoOut 0.35s var(--ease-out) forwards; }
.cw-toast .cw-toast-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #0c1d2a;
  font: 800 17px var(--font-sans);
  animation: cwPop 0.5s var(--ease-out) 0.1s both;
}
.cw-toast .cw-toast-said { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.cw-toast .cw-toast-said b { color: var(--text); font: 700 16px var(--font-sans); }
.cw-toast .cw-toast-shopify { color: color-mix(in oklab, #95bf47, var(--text) 40%); font: 600 13px var(--font-sans); }
.cw-toast .cw-toast-clock {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--teal);
  transform-origin: left;
  animation: cwUndoClock 30s linear forwards;
}
.cw-toast-undo {
  flex: none;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--text);
  color: var(--bg);
  font: 800 15px var(--font-sans);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.cw-toast-undo:hover { transform: scale(1.05); }
.cw-toast-undo:disabled { opacity: 0.6; transform: none; cursor: progress; }
@keyframes cwUndoIn { from { opacity: 0; transform: translateY(-120%) scale(0.96); } }
@keyframes cwUndoOut { to { opacity: 0; transform: translateY(-60%) scale(0.96); } }
@keyframes cwUndoClock { to { transform: scaleX(0); } }

@media (max-width: 640px) {
  .cw-undos { top: 10px; }
  .cw-undos .cw-toast { gap: 12px; padding: 14px 14px 16px; font-size: 15px; }
  .cw-toast .cw-toast-check { width: 28px; height: 28px; font-size: 14px; }
  .cw-toast-undo { padding: 10px 16px; }
  .cw-undos .cw-toast-dismiss { top: 1px; left: 1px; width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cw-toast .cw-toast-clock { animation: none; }
}

@media (any-hover: none) {
  .cw-edit > .cw-edit-pencil { opacity: 0.85; transform: scale(0.85); }
}

@keyframes cwSaving { to { background-position: 100% 0; } }
@keyframes cwSaved {
  0% { box-shadow: 0 0 0 6px rgba(var(--teal-rgb), 0.35), 0 0 0 8px rgba(var(--teal-rgb), 0.9); background: rgba(var(--teal-rgb), 0.16); }
  100% { box-shadow: 0 0 0 18px rgba(var(--teal-rgb), 0), 0 0 0 8px rgba(var(--teal-rgb), 0); background: transparent; }
}
@keyframes cwTick {
  0% { opacity: 0; transform: scale(0.2) rotate(-90deg); }
  25% { opacity: 1; transform: scale(1.25) rotate(0deg); }
  40%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}
@keyframes cwNeedsFix {
  0%, 100% { box-shadow: 0 0 0 6px rgba(245, 165, 36, 0.1), 0 0 0 8px rgba(245, 165, 36, 0.75); }
  50% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0.06), 0 0 0 12px rgba(245, 165, 36, 0.35); }
}
@keyframes cwShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes cwDriftIn { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }
@keyframes cwDriftNudge { 20%, 60% { transform: rotate(-0.6deg); } 40%, 80% { transform: rotate(0.6deg); } }
@keyframes cwPing { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.6); opacity: 0; } }
@media (max-width: 720px) {
  .cw-drift { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .cw-drift-keep-all, .cw-drift-actions { grid-column: 1 / -1; justify-content: center; }
  .cw-editor-drift-choices { grid-template-columns: 1fr; }
}
@keyframes cwSpinner { to { transform: rotate(360deg); } }

@keyframes cwBreathe { from { transform: scale(1) translateX(0); } to { transform: scale(1.12) translateX(-3%); } }
@keyframes cwDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vmax, 5vmax) scale(1.25); } }
@keyframes cwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes cwSpin { to { --cw-spin: 360deg; } }
@keyframes cwShine { 0%, 55% { background-position: -150% 0; } 100% { background-position: 150% 0; } }
@keyframes cwPop { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .cw-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cw-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero.cw-hero { padding-bottom: 64px; }
  .cw-hero-copy { position: relative; z-index: 1; }
  .cw-hero h1, .cw-hero .lede { padding-right: 104px; }
  .cw-card { padding: 18px 16px 20px; }
  .cw-cell, .cw-slot { width: max(38px, calc(var(--cell-ch, 0) * 1ch + 12px)); height: 32px; }
}

/* ─────────────────────────────────────────────────
   John Lewis — fixes to make, and the barcodes we own
   ───────────────────────────────────────────────── */
.jl-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clay), var(--violet));
  color: #fff;
  font: 700 1.1rem var(--font-sans);
  box-shadow: 0 8px 24px rgba(var(--clay-rgb), 0.35);
}
.jl-intro { color: var(--text-dim); max-width: 62ch; margin: 6px 0 22px; }
.jl-intro b { color: var(--text); }

.jl-fixes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.jl-fix {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-grad-1), var(--card-grad-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.jl-fix::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--swatch), rgba(var(--violet-rgb), 0.8));
}
.jl-fix:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.jl-swatch {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 45%), var(--swatch);
  box-shadow: 0 0 0 4px var(--bg-raised), 0 0 0 5px var(--line-strong), 0 10px 26px -6px var(--swatch);
}
.jl-fix-body { min-width: 0; }
.jl-fix h3 { font-size: 1.15rem; }
.jl-sku { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.04em; }
.jl-missing { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 0.8rem var(--font-sans);
  text-decoration: none;
  color: var(--clay-ink);
  background: rgba(var(--clay-rgb), 0.1);
  border: 1px solid rgba(var(--clay-rgb), 0.25);
  transition: background 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
a.jl-chip::after { content: "→"; opacity: 0.6; transition: transform 0.2s var(--ease-out); }
a.jl-chip:hover { background: rgba(var(--clay-rgb), 0.18); transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(var(--clay-rgb), 0.5); }
a.jl-chip:hover::after { transform: translateX(3px); }
.jl-chip.still { color: var(--text-dim); background: var(--bg-sunk); border-color: var(--line); }
.jl-checked { grid-column: 1 / -1; font-size: 0.74rem; color: var(--text-dim); }

.jl-all-clear {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--teal-rgb), 0.14), rgba(var(--blue-rgb), 0.08));
  border: 1px solid rgba(var(--teal-rgb), 0.3);
}
.jl-all-clear h3 { font-size: 1.4rem; }
.jl-all-clear p { color: var(--text-dim); }
.jl-tick {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: var(--bg);
  font-size: 1.8rem;
  box-shadow: 0 12px 30px -8px var(--grad-glow);
}

.jl-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin: 18px 0 22px; }
.jl-block {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 18px 22px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-grad-1), var(--card-grad-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.jl-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 11px;
  background: conic-gradient(var(--teal) 0, var(--blue) var(--taken), var(--bg-sunk) var(--taken));
  filter: drop-shadow(0 10px 22px rgba(var(--blue-rgb), 0.28));
  margin-bottom: 8px;
}
.jl-block.full .jl-ring { background: conic-gradient(var(--violet), var(--blue), var(--violet)); filter: drop-shadow(0 10px 22px rgba(var(--violet-rgb), 0.3)); }
.jl-ring-inner {
  display: grid;
  place-content: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
}
.jl-ring-val { font: 800 1.6rem var(--font-sans); letter-spacing: -0.02em; line-height: 1; }
.jl-ring-sub { font-size: 0.74rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }
.jl-block-prefix { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.05em; }
.jl-block-held { font-size: 0.8rem; color: var(--text-dim); }
.jl-block-held b { color: var(--text); }

.jl-finder { padding: 22px; }
.jl-search { display: flex; gap: 10px; }
.jl-search-input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-sunk);
  color: var(--text);
  font: 500 1rem var(--font-mono);
}
.jl-search-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.15); }
.jl-matches { list-style: none; margin-top: 16px; display: grid; gap: 6px; }
.jl-matches li {
  display: grid;
  grid-template-columns: 14ch minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-sunk);
}
.jl-ean { font-weight: 700; color: var(--blue-ink); }
.jl-match-sku { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl-match-colour { font-size: 0.85rem; color: var(--text-dim); }
.jl-on { font: 700 0.7rem var(--font-sans); padding: 3px 9px; border-radius: 999px; color: var(--bg); background: var(--grad); }
.jl-finder .fine { margin-top: 14px; }

@media (max-width: 720px) {
  .jl-fixes { grid-template-columns: minmax(0, 1fr); }
  .jl-fix { padding: 18px 16px 16px; gap: 14px; }
  .jl-swatch { width: 42px; height: 42px; }
  .jl-blocks { grid-template-columns: minmax(0, 1fr); }
  .jl-block { grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 18px; }
  .jl-ring { width: 96px; height: 96px; padding: 8px; grid-row: span 2; margin: 0; }
  .jl-ring-val { font-size: 1.2rem; }
  .jl-matches li { grid-template-columns: minmax(0, 1fr) auto; }
  .jl-match-sku, .jl-match-colour { grid-column: 1 / -1; }
  .jl-all-clear { padding: 22px; gap: 16px; }
}

/* ─────────────────────────────────────────────────
   Home — a band per section, tighter than a page's
   ───────────────────────────────────────────────── */
section.band.home-section { padding-top: 40px; }
section.band.home-section:first-child { padding-top: 64px; }
.band.home-section .bento { margin-top: 16px; grid-template-columns: repeat(3, 1fr); }
.band.home-section .tile .val.destination { font-size: clamp(1.3rem, 3vw, 1.6rem); }
@media (max-width: 1000px) {
  .band.home-section .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .band.home-section .bento { grid-template-columns: 1fr; gap: 10px; }
}

/* ─────────────────────────────────────────────────
   Customers — their sizes, read at a glance
   ───────────────────────────────────────────────── */
.fit-sizes .tile .val { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.fit-sizes .tile .val .by { margin: 0 0.12em; color: var(--text-dim); font-weight: 500; }
.catalogue.customers .chip + .chip { margin-left: 4px; }
@media (max-width: 520px) {
  .fit-sizes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fit-sizes .tile .inner { padding: 16px; }
  .fit-sizes .tile .val { font-size: 2rem; }
}

/* ─────────────────────────────────────────────────
   Products — colourways gallery and the view switch
   ───────────────────────────────────────────────── */
.view-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}
.view-switch-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), color 0.3s, box-shadow 0.3s;
}
.view-switch-option:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.view-switch-option.active {
  color: #0b1a22;
  background: linear-gradient(135deg, #fff, #dff7f2);
  box-shadow: 0 6px 24px rgba(var(--teal-rgb), 0.35);
}
.view-switch-icon { display: inline-flex; gap: 2px; }
.view-switch-icon.gallery i { width: 9px; height: 9px; border-radius: 50%; margin-left: -4px; box-shadow: 0 0 0 1.5px currentColor; }
.view-switch-icon.gallery i:nth-child(1) { margin-left: 0; background: #e4572e; }
.view-switch-icon.gallery i:nth-child(2) { background: #f2c14e; }
.view-switch-icon.gallery i:nth-child(3) { background: #2f6fde; }
.view-switch-icon.table { flex-direction: column; }
.view-switch-icon.table i { width: 14px; height: 2px; border-radius: 2px; background: currentColor; }

.cw-gallery { display: grid; gap: 44px; padding: 14px 0 28px; }
.cw-family { display: grid; gap: 32px; }
.cw-family + .cw-family { padding-top: 36px; border-top: 1px solid var(--line); }
.cw-family-head { display: grid; gap: 2px; }
.cw-family-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cw-family-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cw-style-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cw-style-head :is(h2, h3) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.cw-family .cw-style-head h3 { font-size: clamp(18px, 1.9vw, 24px); }
.cw-style-silhouette {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--bg-sunk);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.cw-style-spectrum {
  flex: 1;
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line) inset;
}
.cw-style-spectrum i { flex: 1; background: var(--swatch, var(--bg-sunk)); }
.cw-style-count { font-size: 12px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }

.cw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  perspective: 1400px;
}

.cw-tile {
  --cw: var(--swatch, #7d8a99);
  --cw-light: color-mix(in oklab, var(--cw), white 45%);
  --cw-deep: color-mix(in oklab, var(--cw), black 55%);
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(120% 90% at 30% 15%, var(--cw-light), var(--cw) 45%, var(--cw-deep) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.45s var(--ease-out);
  animation: cw-tile-in 0.7s var(--ease-out) both;
  animation-delay: calc(min(var(--i), 24) * 35ms);
}
@keyframes cw-tile-in {
  from { opacity: 0; translate: 0 28px; scale: 0.96; }
}
.cw-tile:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 24px 60px -12px color-mix(in oklab, var(--cw), transparent 30%),
    0 0 0 1px color-mix(in oklab, var(--cw-light), transparent 40%);
  z-index: 1;
}

.cw-tile-media { position: absolute; inset: 0; z-index: -2; }
.cw-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.6s;
}
.cw-tile:hover .cw-tile-media img { transform: scale(1.07); }
.cw-tile.has-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 45%, color-mix(in oklab, var(--cw-deep), transparent 15%) 100%);
}

.cw-tile-orb {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 62%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), var(--cw-light) 18%, var(--cw) 55%, var(--cw-deep) 100%);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.45), 0 0 80px color-mix(in oklab, var(--cw-light), transparent 50%);
  animation: cw-tile-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
}
@keyframes cw-tile-float { 50% { translate: -50% -56%; } }

.cw-tile-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 60%);
  transition: opacity 0.35s;
}
.cw-tile:hover .cw-tile-glow { opacity: 1; }

.cw-tile-sheen {
  position: absolute;
  inset: -50% auto -50% -60%;
  width: 40%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(12deg) translateX(-120%);
}
.cw-tile:hover .cw-tile-sheen { transform: rotate(12deg) translateX(520%); transition: transform 1.1s var(--ease-out); }

.cw-tile-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  background: rgba(10, 16, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateZ(30px);
}
.cw-tile-status .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.cw-tile-status.live .dot { background: #2fe6c4; box-shadow: 0 0 10px #2fe6c4; }
.cw-tile-status.unpublished .dot, .cw-tile-status.mixed .dot { background: var(--clay); }
.cw-tile-status.draft .dot { background: #f2c14e; }
.cw-tile-status.flagged { background: rgba(var(--clay-rgb), 0.85); color: #fff; }
.cw-tile-status.flagged .dot { background: #fff; }

.cw-tile-body {
  position: absolute;
  inset: auto 10px 10px;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(10, 16, 24, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: translateZ(50px);
  transition: background 0.35s;
}
.cw-tile:hover .cw-tile-body { background: rgba(10, 16, 24, 0.68); }
.cw-tile-style {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-tile-name {
  font-size: 19px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.cw-tile-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.78); }
.cw-tile-meta .nums { color: #fff; font-weight: 600; }
.cw-tile-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cw);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 12px var(--cw-light);
}

/* ─────────────────────────────────────────────────
   Styles — a tile per style, its colours as swatches;
   the style page, its colourways as a rail
   ───────────────────────────────────────────────── */
@property --cw { syntax: "<color>"; inherits: true; initial-value: #7d8a99; }

.cw-family-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.cw-family-head .cw-family-label, .cw-family-head h2 { grid-column: 1; }
.cw-family-head .cw-style-count { grid-column: 2; grid-row: 2; padding-bottom: 6px; }

.st-gallery {
  --st-tile: 236px;
  --st-gap: 20px;
  gap: 40px;
}
.st-gallery .cw-family { gap: 14px; }
.st-gallery .cw-family + .cw-family { padding-top: 0; border-top: 0; }
.st-gallery .cw-family-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.st-gallery .cw-family-head h2 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.fm-name { display: inline-flex; align-items: center; gap: 10px; }
.fm-link { color: inherit; text-decoration: none; }
.fm-link:hover { color: var(--teal-ink); }
.fm-edit {
  --cw: rgb(var(--violet-rgb));
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.fm-edit .cw-edit-pencil {
  position: relative;
  inset: auto;
  opacity: 0.55;
  transform: none;
  color: var(--text-dim);
  border-color: var(--line-strong);
  transition: opacity 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.3s var(--ease-out);
}
.fm-edit .cw-edit-pencil::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--violet-ink);
  opacity: 0;
  transition: opacity 0.2s;
}
.fm-edit .cw-edit-pencil svg { position: relative; }
.fm-edit:is(:hover, :focus-visible, .is-editing) > .cw-edit-pencil {
  opacity: 1;
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 4px 14px -4px rgba(var(--violet-rgb), 0.45);
  transform: scale(1.08);
}
.fm-edit:is(:hover, :focus-visible, .is-editing) > .cw-edit-pencil::before { opacity: 1; }
.cw-held-family { --held-rgb: var(--teal-rgb); --held-ink: var(--teal-ink); }
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--st-tile));
  gap: var(--st-gap);
  perspective: 1400px;
}
.st-tile { transition: transform 0.18s ease-out, box-shadow 0.45s var(--ease-out), --cw 0.7s var(--ease-out); }
.st-tile .cw-tile-media .st-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  scale: 1.06;
  transition: opacity 0.55s var(--ease-out), scale 1.2s var(--ease-out), transform 1.1s var(--ease-out);
}
.st-tile .cw-tile-media .st-shot.on { opacity: 1; scale: 1; }
.st-tile-body { gap: 8px; }
.st-tile-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.st-tile-title .cw-tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tile-silhouette {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.st-swatches { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0; }
.st-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch, rgba(255, 255, 255, 0.3));
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.35s;
}
.st-swatch:hover { transform: scale(1.35) translateY(-2px); }
.st-swatch.on {
  transform: scale(1.22);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in oklab, var(--swatch, #fff), transparent 40%), 0 0 16px var(--swatch, #fff);
}

/* The style page */
.st-hero { padding-bottom: 28px; overflow: clip; }
.st-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.st-now-dot {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--cw-light), var(--cw) 55%, var(--cw-deep));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 0 26px var(--cw-light);
  animation: pulse 2.4s ease-in-out infinite;
}

.st-rail {
  position: relative;
  max-width: 1560px;
  margin: 34px auto 0;
  padding: 0 32px;
}
.st-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 158px;
  gap: 16px;
  padding: 18px 6px 74px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  perspective: 1200px;
  mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.st-rail-track::-webkit-scrollbar { display: none; }
.st-rail .cw-tile {
  scroll-snap-align: center;
  border-radius: 20px;
  opacity: 0.62;
  filter: saturate(0.75);
  transition: transform 0.18s ease-out, opacity 0.4s, filter 0.4s, box-shadow 0.45s var(--ease-out), translate 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.st-rail .cw-tile:hover { opacity: 1; filter: none; translate: 0 -6px; }
.st-rail .cw-tile.is-picked {
  opacity: 1;
  filter: none;
  translate: 0 -12px;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 6px color-mix(in oklab, var(--cw), transparent 35%),
    0 26px 60px -12px color-mix(in oklab, var(--cw), transparent 20%);
}
.st-rail .cw-tile.is-picked::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  translate: -50% 0;
  background: #fff;
  box-shadow: 0 0 14px #fff;
}
.st-rail .cw-tile-status { top: 10px; left: 10px; padding: 4px 8px; font-size: 10px; }
.st-rail .cw-tile-body { inset: auto 6px 6px; padding: 10px 12px; border-radius: 14px; }
.st-rail .cw-tile-name { font-size: 15px; }
.st-rail .cw-tile-meta { font-size: 11px; }

.st-rail [data-st-archived] { display: none; }
.st-rail .show-archived [data-st-archived] {
  display: block;
  animation: stArchivedIn 0.6s cubic-bezier(0.25, 1.3, 0.4, 1) both;
  animation-delay: calc(var(--i) * 45ms);
}
.st-rail .show-archived [data-st-archived]:not(.is-picked) { opacity: 0.5; filter: grayscale(0.55); }
.st-rail .show-archived [data-st-archived]:not(.is-picked):hover { opacity: 1; filter: none; }
@keyframes stArchivedIn { from { opacity: 0; translate: -36px 0; scale: 0.8; filter: blur(8px); } }

.st-archived-toggle {
  align-self: center;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  height: 72%;
  padding: 0 10px;
  border-radius: 20px;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, color 0.3s, translate 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
  animation: cw-tile-in 0.7s var(--ease-out) both;
  animation-delay: calc(min(var(--i), 24) * 35ms);
}
.st-archived-toggle:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.55); color: #fff; translate: 0 -4px; }
.st-archived-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.st-archived-toggle b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.st-archived-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.st-archived-stack { display: flex; margin-bottom: 4px; }
.st-archived-stack i {
  width: 22px;
  height: 22px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--swatch, rgba(255, 255, 255, 0.3));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
  filter: grayscale(0.5);
  transition: margin 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), filter 0.3s;
}
.st-archived-stack i:first-child { margin-left: 0; }
.st-archived-toggle:hover .st-archived-stack i { margin-left: -2px; filter: none; }
.st-archived-toggle:hover .st-archived-stack i:first-child { margin-left: 0; }
.st-archived-action {
  margin-top: 4px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
}
.st-archived-action .hide, .st-archived-toggle[aria-expanded="true"] .st-archived-action .show { display: none; }
.st-archived-toggle[aria-expanded="true"] .st-archived-action .hide { display: inline; }

html.st-switching, html.st-switching * { cursor: progress; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.55s; animation-timing-function: var(--ease-out); }
#cw { view-transition-name: st-body; }
::view-transition-old(st-body) { animation: stLeave 0.32s ease-in both; }
::view-transition-new(st-body) { animation: stArrive 0.7s var(--ease-out) 0.06s both; }
::view-transition-group(st-pick) { animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.25, 1.15, 0.3, 1); }
::view-transition-old(st-pick), ::view-transition-new(st-pick) { height: 100%; object-fit: cover; border-radius: 50%; overflow: hidden; }
@keyframes stLeave { to { opacity: 0; transform: translateY(-18px) scale(0.985); filter: blur(10px); } }
@keyframes stArrive { from { opacity: 0; transform: translateY(34px) scale(0.98); filter: blur(12px); } }

@media (max-width: 640px) {
  .st-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .st-swatch { width: 12px; height: 12px; }
  .st-rail-track { grid-auto-columns: 124px; gap: 12px; }
  .st-rail { padding: 0 14px; }
  .st-hero h1 { padding-right: 0; }
}

@media (max-width: 640px) {
  .cw-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cw-tile { border-radius: 18px; }
  .cw-tile-body { inset: auto 6px 6px; padding: 10px 12px; border-radius: 14px; }
  .cw-tile-name { font-size: 15px; }
  .cw-tile-status { top: 8px; left: 8px; }
  .view-switch-option { padding: 9px 14px; }
}

/* ─────────────────────────────────────────────────
   Reduced motion — kill it all, keep it readable
   ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .stagger > *, .record { opacity: 1; transform: none; }
  .hero h1 .ch { opacity: 1; transform: none; }
  .record .beam { display: none !important; }
  .record::before { display: none; }
  .record .who .order .out { opacity: 0.75; transform: none; }
}

.info-tip-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: -2px -4px -2px 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  vertical-align: middle;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.info-tip-button:hover,
.info-tip-button:focus-visible { opacity: 1; background: rgba(var(--tint-rgb), 0.1); }
.info-tip-button svg { width: 14px; height: 14px; }
.info-tip {
  position: fixed;
  inset: auto;
  z-index: 800;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  margin: 0;
  padding: 16px 18px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font: 400 13px/1.5 var(--font-sans);
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overscroll-behavior: contain;
}
.info-tip:popover-open { animation: info-tip-in 0.2s var(--ease-out); }
@keyframes info-tip-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
}
.info-tip-eyebrow { color: var(--teal-ink); font: 650 11px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.info-tip-now {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--teal-rgb), 0.3);
  border-radius: 12px;
  background: rgba(var(--teal-rgb), 0.08);
}
.info-tip-now strong { font-size: 15px; letter-spacing: -0.01em; }
.info-tip-now p { margin: 4px 0 0; }
.info-tip-lead { margin: 8px 0 12px; color: var(--text-dim); }
.info-tip-states { display: grid; gap: 2px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.info-tip-state { padding: 6px 8px; border-radius: 8px; }
.info-tip-state dt { font-weight: 650; font-size: 12.5px; }
.info-tip-state dd { margin: 1px 0 0; color: var(--text-dim); font-size: 12.5px; }
.info-tip-state.current { background: rgba(var(--tint-rgb), 0.06); }
.info-tip-state.current dt { color: var(--teal-ink); }

/* ─────────────────────────────────────────────────
   Website deploys

   A launch pad, then a board with one lane per
   website. Bars glide between the server's answers;
   a landed lane flashes and the board throws
   confetti when every website is live.
   ───────────────────────────────────────────────── */
.wd-hero .wd-orbit { position: absolute; right: max(4vw, 24px); top: 50%; width: 340px; height: 340px; translate: 0 -40%; pointer-events: none; z-index: 1; }
.wd-orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.16); animation: wdSpin 38s linear infinite; }
.wd-orbit span:nth-child(2) { inset: 48px; border-style: solid; border-color: rgba(var(--teal-rgb), 0.28); animation-duration: 22s; animation-direction: reverse; }
.wd-orbit span:nth-child(3) { inset: 112px; border: 0; background: radial-gradient(circle at 35% 30%, rgba(var(--teal-rgb), 0.9), rgba(34, 184, 255, 0.35) 60%, transparent 72%); filter: blur(2px); animation: wdPulse 4.5s ease-in-out infinite; }
.wd-orbit span:nth-child(1)::after, .wd-orbit span:nth-child(2)::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 18px var(--teal); }
.wd-orbit span:nth-child(2)::after { background: var(--blue); box-shadow: 0 0 18px var(--blue); }
@keyframes wdSpin { to { rotate: 1turn; } }
@keyframes wdPulse { 50% { scale: 1.12; opacity: 0.75; } }

.wd-band { padding-top: 34px; }

.wd-launch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 30px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, var(--card-grad-1), var(--card-grad-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}
.wd-launch::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--wd-angle, 0deg), transparent 0 70%, rgba(var(--teal-rgb), 0.9), rgba(var(--blue-rgb), 0.9), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: wdTrace 6s linear infinite;
  pointer-events: none;
}
@property --wd-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes wdTrace { to { --wd-angle: 360deg; } }
.wd-launch.is-gone { opacity: 0; transform: translateY(-24px) scale(0.97); filter: blur(6px); }
.wd-launch-copy h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.wd-launch-copy p { color: var(--text-dim); margin-top: 6px; }

.wd-markets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wd-market input { position: absolute; opacity: 0; pointer-events: none; }
.wd-market-card {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.wd-market-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.wd-market input:checked + .wd-market-card { border-color: rgba(var(--teal-rgb), 0.65); background: linear-gradient(160deg, rgba(var(--teal-rgb), 0.14), rgba(var(--blue-rgb), 0.06)); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.08), 0 10px 30px rgba(var(--teal-rgb), 0.12); }
.wd-market input:focus-visible + .wd-market-card { outline: 2px solid var(--teal-ink); outline-offset: 3px; }
.wd-market-flag { font-size: 30px; line-height: 1.1; margin-bottom: 6px; transform-origin: 0 100%; transition: transform 0.4s cubic-bezier(0.3, 1.8, 0.5, 1); }
.wd-market input:not(:checked) + .wd-market-card .wd-market-flag { transform: scale(0.85); filter: grayscale(0.7); opacity: 0.7; }
.wd-market-name { font-weight: 700; font-size: 16px; }
.wd-market-host { color: var(--text-dim); font: 500 12px var(--font-mono); }
.wd-market-tick { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background 0.25s, border-color 0.25s, transform 0.35s var(--ease-out); }
.wd-market-tick svg { width: 14px; height: 14px; fill: none; stroke: #062a26; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 0.35s var(--ease-out) 0.05s; }
.wd-market input:checked + .wd-market-card .wd-market-tick { background: var(--teal); border-color: var(--teal); transform: scale(1.06); }
.wd-market input:checked + .wd-market-card .wd-market-tick svg { stroke-dashoffset: 0; }

.wd-launch-go { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wd-launch-note { color: var(--text-dim); font-size: 13px; }
.wd-go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: var(--bg);
  font: 800 16px var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(var(--tint-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, filter 0.25s;
  isolation: isolate;
  overflow: hidden;
}
.wd-go:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 44px rgba(var(--tint-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.wd-go:active:not(:disabled) { transform: scale(0.98); }
.wd-go:disabled { filter: grayscale(0.8) brightness(0.7); cursor: not-allowed; box-shadow: none; }
.wd-go-glow { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat; animation: wdSheen 3.2s ease-in-out infinite; }
.wd-go:disabled .wd-go-glow { display: none; }
@keyframes wdSheen { 60%, 100% { background-position: 250% 0; } }
.wd-go-rocket { display: inline-block; font-size: 19px; transition: transform 0.3s var(--ease-out); }
.wd-go:hover:not(:disabled) .wd-go-rocket { transform: translate(2px, -2px) rotate(-8deg); }
.wd-go.is-launching .wd-go-rocket { animation: wdLiftoff 0.7s cubic-bezier(0.5, 0, 0.9, 0.4) forwards; }
@keyframes wdLiftoff { 30% { transform: translate(-2px, 2px); } to { transform: translate(60px, -60px) rotate(-12deg); opacity: 0; } }

.wd-board {
  position: relative;
  padding: 30px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, var(--card-grad-1), var(--card-grad-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: wdArrive 0.7s var(--ease-out) both;
}
@keyframes wdArrive { from { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(6px); } }
.wd-board.is-succeeded { border-color: rgba(var(--teal-rgb), 0.45); box-shadow: var(--shadow-md), 0 0 80px rgba(var(--teal-rgb), 0.16); }
.wd-board.is-failed { border-color: rgba(var(--clay-rgb), 0.45); }
.wd-board-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.wd-board-title { flex: 1; min-width: 220px; }
.wd-board-eyebrow { color: var(--text-dim); font: 600 12px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; }
.wd-board-headline { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 4px 0 2px; }
.wd-board.is-succeeded .wd-board-headline { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wd-board-subline { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.wd-again { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-sunk); color: var(--text); font: 700 14px var(--font-sans); cursor: pointer; transition: transform 0.2s var(--ease-out), border-color 0.2s; }
.wd-again:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(var(--teal-rgb), 0.6); }

.wd-ring { position: relative; width: 112px; height: 112px; flex: none; }
.wd-ring svg { width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.wd-ring circle { fill: none; stroke-width: 9; }
.wd-ring-track { stroke: rgba(var(--tint-rgb), 0.1); }
.wd-ring-fill { stroke: url(#wd-ring-grad); stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(var(--teal-rgb), 0.55)); }
.wd-ring-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px var(--font-sans); letter-spacing: -0.03em; }
.is-running .wd-ring svg { animation: wdBreathe 2.4s ease-in-out infinite; }
@keyframes wdBreathe { 50% { filter: drop-shadow(0 0 14px rgba(var(--teal-rgb), 0.45)); } }
.is-succeeded .wd-ring-pct::after { content: "✓"; position: absolute; font-size: 40px; color: var(--teal-ink); animation: wdPop 0.6s var(--ease-out) both; }
.is-succeeded .wd-ring-pct { color: transparent; }
.is-failed .wd-ring-fill { stroke: var(--clay); filter: none; }
@keyframes wdPop { from { transform: scale(0.2) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.25); } }

.wd-lanes { display: grid; gap: 14px; margin-top: 26px; }
.wd-lane { position: relative; padding: 18px 20px 16px; border-radius: var(--radius); background: var(--bg-sunk); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.4s, background 0.4s; }
.wd-lane.is-succeeded, .wd-lane.is-superseded { border-color: rgba(var(--teal-rgb), 0.4); background: linear-gradient(160deg, rgba(var(--teal-rgb), 0.1), var(--bg-sunk)); }
.wd-lane.is-failed { border-color: rgba(var(--clay-rgb), 0.5); background: linear-gradient(160deg, rgba(var(--clay-rgb), 0.1), var(--bg-sunk)); }
.wd-lane.just-landed::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(var(--teal-rgb), 0.45), transparent 60%); animation: wdFlash 1.2s var(--ease-out) forwards; pointer-events: none; }
@keyframes wdFlash { from { opacity: 1; } to { opacity: 0; } }
.wd-lane-head { display: flex; align-items: baseline; gap: 10px; }
.wd-lane-flag { font-size: 22px; align-self: center; }
.wd-lane-name { font-size: 17px; }
.wd-lane-step { color: var(--text-dim); font-size: 14px; flex: 1; }
.is-running .wd-lane-step { animation: wdBlink 1.8s ease-in-out infinite; }
@keyframes wdBlink { 50% { opacity: 0.55; } }
.wd-lane-pct { font: 800 18px var(--font-sans); }
.is-succeeded .wd-lane-pct, .is-superseded .wd-lane-pct { color: var(--teal-ink); }

.wd-bar { position: relative; height: 10px; margin: 12px 0 14px; border-radius: 999px; background: rgba(var(--tint-rgb), 0.08); overflow: hidden; }
.wd-bar-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 16px var(--grad-glow); }
.is-running .wd-bar-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%) 0 0 / 40% 100% no-repeat; animation: wdShimmer 1.6s linear infinite; }
@keyframes wdShimmer { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.is-failed .wd-bar-fill { background: var(--clay); box-shadow: none; }

.wd-steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.wd-step { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--text-dim); font-size: 12px; line-height: 1.25; transition: color 0.3s; }
.wd-step::before { content: ""; position: absolute; top: 6px; left: calc(-50% + 9px); right: calc(50% + 9px); height: 2px; border-radius: 2px; background: rgba(var(--tint-rgb), 0.12); }
.wd-step:first-child::before { display: none; }
.wd-step.is-done::before, .wd-step.is-now::before { background: var(--grad); }
.wd-step-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(var(--tint-rgb), 0.25); background: var(--bg-sunk); transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out); }
.wd-step.is-done { color: var(--text); }
.wd-step.is-done .wd-step-dot { background: var(--teal); border-color: var(--teal); }
.wd-step.is-now { color: var(--teal-ink); font-weight: 700; }
.wd-step.is-now .wd-step-dot { border-color: var(--teal); background: var(--bg-sunk); box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0.6); animation: wdPing 1.4s var(--ease-out) infinite; transform: scale(1.15); }
@keyframes wdPing { to { box-shadow: 0 0 0 10px rgba(var(--teal-rgb), 0); } }
.wd-step.is-broken { color: var(--clay-ink); font-weight: 700; }
.wd-step.is-broken .wd-step-dot { background: var(--clay); border-color: var(--clay); }

.wd-lane-foot { margin-top: 12px; font-size: 13px; }
.wd-lane-foot:empty { display: none; }
.wd-lane-error { display: block; color: var(--clay-ink); font-family: var(--font-mono); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wd-lane-more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; }
.wd-lane-more-row:empty { display: none; }
.wd-lane-more:first-child .wd-lane-more-row { margin-top: 0; }
.wd-lane-toggle, .wd-lane-aws { padding: 0; border: 0; background: none; color: var(--text-dim); font: 600 12px var(--font-sans); text-decoration: none; cursor: pointer; transition: color 0.2s; }
.wd-lane-toggle:hover, .wd-lane-aws:hover { color: var(--clay-ink); }
.wd-lane-toggle::before { content: "▸"; display: inline-block; margin-right: 6px; transition: transform 0.2s var(--ease-out); }
.wd-lane-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.wd-lane-toggle-icon { display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; color: #f5bf0c; }
.wd-lane-toggle-icon.is-error { color: var(--clay); }
.wd-lane-toggle-icon svg { display: block; width: 100%; height: 100%; }
.wd-lane-log { max-height: 320px; margin: 10px 0 0; padding: 12px 14px; overflow: auto; border-radius: calc(var(--radius) - 4px); border: 1px solid rgba(var(--clay-rgb), 0.25); background: rgba(var(--tint-rgb), 0.04); color: var(--text); font: 11.5px/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; animation: wdUnfold 0.25s var(--ease-out); }
@keyframes wdUnfold { from { opacity: 0; transform: translateY(-4px); } }
.wd-lane-warnings { max-height: 360px; margin: 10px 0 0; padding: 2px 14px; overflow: auto; list-style: none; border-radius: calc(var(--radius) - 4px); border: 1px solid var(--line); background: rgba(var(--tint-rgb), 0.04); animation: wdUnfold 0.25s var(--ease-out); }
.wd-warn { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.wd-warn + .wd-warn { border-top: 1px solid var(--line); }
.wd-warn-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #f5bf0c; }
.wd-warn.is-error .wd-warn-dot, .wd-warn.is-critical .wd-warn-dot { background: var(--clay); }
.wd-warn.is-critical .wd-warn-dot { box-shadow: 0 0 0 3px rgba(var(--clay-rgb), 0.25); }
.wd-warn-title { color: var(--text); font: 600 13px var(--font-sans); }
.wd-warn-count { margin-left: 8px; color: var(--text-dim); font-size: 12px; }
.wd-warn-handles { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.wd-warn-handle { padding: 2px 8px; border-radius: 999px; background: rgba(var(--tint-rgb), 0.07); color: var(--text-dim); font: 11.5px var(--font-mono); text-decoration: none; transition: color 0.2s, background 0.2s; }
a.wd-warn-handle:hover { color: var(--text); background: rgba(var(--teal-rgb), 0.16); }
.wd-warn-error { display: block; margin-top: 6px; color: var(--clay-ink); font: 11.5px var(--font-mono); overflow-wrap: anywhere; }
.wd-lane-link { font-weight: 700; text-decoration: none; }
.wd-lane-link:hover { text-decoration: underline; }

.wd-confetti { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.wd-confetti i { position: absolute; width: var(--w); height: calc(var(--w) * 0.45); border-radius: 2px; background: var(--c); animation: wdBurst var(--d) cubic-bezier(0.15, 0.7, 0.4, 1) forwards; }
@keyframes wdBurst {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  70% { opacity: 1; }
  to { transform: translate(var(--x), calc(var(--y) + 160px)) rotate(var(--r)); opacity: 0; }
}

.wd-history { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.wd-row {
  display: grid;
  grid-template-columns: 14px minmax(150px, 1.4fr) 1fr 1fr 110px 20px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, background 0.2s;
}
.wd-row:hover { transform: translateX(4px); border-color: var(--line-strong); background: var(--bg-raised); }
.wd-row-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); }
.wd-row.wd-succeeded .wd-row-dot { background: var(--teal); box-shadow: 0 0 10px rgba(var(--teal-rgb), 0.7); }
.wd-row.wd-failed .wd-row-dot { background: var(--clay); }
.wd-row.wd-running .wd-row-dot { background: var(--blue); animation: wdPulse 1.4s ease-in-out infinite; }
.wd-row-what { display: flex; align-items: center; gap: 10px; }
.wd-row-flags { display: inline-flex; gap: 4px; }
.wd-row-flag.wd-failed { filter: grayscale(1); opacity: 0.6; }
.wd-row-who, .wd-row-when, .wd-row-took { color: var(--text-dim); font-size: 13px; }
.wd-row-go { color: var(--text-dim); transition: transform 0.2s var(--ease-out); }
.wd-row:hover .wd-row-go { transform: translateX(3px); color: var(--teal-ink); }
.wd-empty { color: var(--text-dim); margin-top: 14px; }

.wd-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 840;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--toast-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translate(-50%, 20px) scale(0.95);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), border-color 0.3s;
}
.wd-dock.is-in { opacity: 1; transform: translateX(-50%); }
.wd-dock:hover { border-color: rgba(var(--teal-rgb), 0.6); }
.wd-dock .wd-ring { width: 44px; height: 44px; }
.wd-dock .wd-ring circle { stroke-width: 12; }
.wd-dock .wd-ring-pct { font-size: 0; }
.wd-dock.is-succeeded .wd-ring-pct::after { font-size: 20px; }
.wd-dock-said { display: grid; line-height: 1.25; }
.wd-dock-said b { font-size: 14px; }
.wd-dock-detail { color: var(--text-dim); font-size: 12px; }
.wd-dock .wd-confetti { top: 50%; left: 30px; }

@media (max-width: 760px) {
  .wd-hero .wd-orbit { width: 220px; height: 220px; right: -60px; opacity: 0.6; }
  .wd-launch, .wd-board { padding: 20px; }
  .wd-markets { grid-template-columns: 1fr; }
  .wd-market-card { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .wd-market-flag { grid-row: span 2; margin: 0; }
  .wd-go { width: 100%; justify-content: center; }
  .wd-board-head { gap: 16px; }
  .wd-board-title { min-width: 0; flex: 1 1 0; }
  .wd-board-actions { flex: 1 1 100%; }
  .wd-ring { width: 72px; height: 72px; }
  .wd-ring-pct { font-size: 18px; }
  .is-succeeded .wd-ring-pct::after { font-size: 28px; }
  .wd-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wd-step-name { display: none; }
  .wd-step.is-now .wd-step-name { display: none; }
  .wd-row { grid-template-columns: 12px 1fr auto; row-gap: 2px; }
  .wd-row-who, .wd-row-took, .wd-row-go { display: none; }
  .wd-dock { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .wd-orbit span, .wd-launch::before, .wd-go-glow, .is-running .wd-bar-fill::after, .wd-step.is-now .wd-step-dot, .is-running .wd-lane-step, .is-running .wd-ring svg { animation: none; }
  .wd-board, .wd-lane-log, .wd-lane-warnings { animation: none; }
}

/* ─────────────────────────────────────────────────
   Draft changes on a style page

   An edit waits in violet: the value it replaces
   fades, the new one rides beside it. A bar drops in
   from the top to discard or review them; the review
   applies them one by one, each row ticking over.
   ───────────────────────────────────────────────── */
.cw-edit.is-drafted { --cw-edit-tint: rgba(var(--violet-rgb), 0.1); background: var(--cw-edit-tint); box-shadow: 0 0 0 5px var(--cw-edit-tint); outline: 1.5px dashed rgba(var(--violet-rgb), 0.7); }
.cw-edit.is-drafted > :not(.cw-draft-value, .cw-edit-pencil) { opacity: 0.5; text-decoration: line-through; text-decoration-color: rgba(var(--violet-rgb), 0.8); text-decoration-thickness: 1.5px; }
.cw-draft-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(var(--violet-rgb), 0.95), rgba(var(--blue-rgb), 0.9));
  color: #14102a;
  font: 700 13px/1.35 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 20px -6px rgba(var(--violet-rgb), 0.7);
  animation: cwDraftIn 0.45s var(--ease-out) both;
}
.cw-edit:has(> h1, > h2, > .lede, > .cw-care, > .cw-description, > .cw-parents) > .cw-draft-value { display: flex; width: fit-content; margin-left: 0; }
.cw-draft-arrow { opacity: 0.6; }
.cw-edit.is-undrafting > .cw-draft-value { animation: cwDraftOut 0.3s var(--ease-out) forwards; }
@keyframes cwDraftIn { from { opacity: 0; transform: translateY(-6px) scale(0.9); } }
@keyframes cwDraftOut { to { opacity: 0; transform: scale(0.85); } }

.cw-changes {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 760;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(32, 26, 58, 0.86);
  border: 1px solid rgba(var(--violet-rgb), 0.45);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 18px 50px -10px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--violet-rgb), 0.22);
  transform: translate(-50%, calc(-100% - 30px));
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.3s;
  pointer-events: none;
}
.cw-changes.is-open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cw-changes-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); flex: none; }
.cw-changes-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--violet); animation: cwChangesPing 1.8s var(--ease-out) infinite; }
@keyframes cwChangesPing { to { transform: scale(3); opacity: 0; } }
.cw-changes-said { color: var(--text); font-size: 14px; white-space: nowrap; }
.cw-changes-count { display: inline-block; margin-right: 3px; color: var(--violet-ink); font-size: 16px; }
.cw-changes-count.is-bumped { animation: cwBump 0.5s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes cwBump { 40% { transform: scale(1.5); } }
.cw-changes-actions { display: flex; gap: 6px; }
.cw-changes-discard, .cw-changes-review { border: 0; border-radius: 999px; padding: 9px 16px; font: 700 13px var(--font-sans); cursor: pointer; transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s; }
.cw-changes-discard { background: transparent; color: var(--text-dim); }
.cw-changes-discard:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.cw-changes-discard.is-confirming { background: rgba(var(--clay-rgb), 0.18); color: var(--clay-ink); animation: cwNudge 0.4s; }
@keyframes cwNudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.cw-changes-review { display: inline-flex; gap: 8px; background: linear-gradient(120deg, var(--violet), #8fb4ff); color: #14102a; box-shadow: 0 6px 20px -6px rgba(var(--violet-rgb), 0.9); }
.cw-changes-review:hover { transform: translateY(-1px); }
.cw-changes-arrow { transition: transform 0.2s var(--ease-out); }
.cw-changes-review:hover .cw-changes-arrow { transform: translateX(3px); }

.cw-review {
  width: min(760px, calc(100vw - 28px));
  max-height: min(84vh, 900px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(var(--violet-rgb), 0.35);
  border-radius: 24px;
  background: linear-gradient(170deg, #2a2846, var(--bg-card) 40%);
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.75), 0 0 80px rgba(var(--violet-rgb), 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), border-color 0.4s;
}
.cw-review[open] { display: flex; }
.cw-review.is-open { opacity: 1; transform: none; }
.cw-review.is-closing { opacity: 0; transform: translateY(14px) scale(0.98); }
.cw-review::backdrop { background: rgba(8, 10, 20, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cw-review.is-done { border-color: rgba(var(--teal-rgb), 0.55); }
.cw-review.is-partial { border-color: rgba(var(--clay-rgb), 0.5); }
.cw-review-head { display: flex; align-items: flex-start; gap: 16px; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.cw-review-head > div { flex: 1; }
.cw-review-title { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.cw-review.is-done .cw-review-title { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cw-review-summary { color: var(--text-dim); margin-top: 4px; font-size: 14px; }
.cw-review-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-sunk); color: var(--text-dim); font-size: 20px; line-height: 1; cursor: pointer; transition: rotate 0.3s var(--ease-out), color 0.2s; }
.cw-review-close:hover { rotate: 90deg; color: var(--text); }

.cw-review-list { flex: 1; overflow-y: auto; padding: 8px 28px 18px; overscroll-behavior: contain; }
.cw-review-group { margin-top: 16px; }
.cw-review-colourway { font: 700 12px var(--font-sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--violet-ink); margin-bottom: 8px; }
.cw-review-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name drop" "diff state" "error error";
  gap: 6px 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  animation: cwRowIn 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i) * 45ms + 120ms);
  transition: border-color 0.3s, background 0.3s, opacity 0.28s, transform 0.28s var(--ease-out);
  overflow: hidden;
}
@keyframes cwRowIn { from { opacity: 0; transform: translateY(12px); } }
.cw-review-row.is-dropped { opacity: 0; transform: translateX(30px); }
.cw-review-name { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cw-review-chip { padding: 2px 8px; border-radius: 999px; background: rgba(var(--tint-rgb), 0.08); color: var(--text-dim); font: 700 10.5px var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; }
.cw-review-chip.shopify { background: rgba(149, 191, 71, 0.16); color: #c2e389; }
.cw-review-chip.warn { background: rgba(var(--clay-rgb), 0.16); color: var(--clay-ink); }
.cw-review-diff { grid-area: diff; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; min-width: 0; }
.cw-review-was { color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(var(--clay-rgb), 0.7); overflow-wrap: anywhere; white-space: pre-wrap; }
.cw-review-to { color: var(--violet-ink); }
.cw-review-now { color: var(--text); font-weight: 700; padding: 1px 8px; border-radius: 6px; background: rgba(var(--violet-rgb), 0.16); overflow-wrap: anywhere; white-space: pre-wrap; }
.cw-review-drop { grid-area: drop; align-self: start; border: 0; background: none; color: var(--text-dim); font: 600 12px var(--font-sans); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.cw-review-drop:hover { color: var(--clay-ink); }
.cw-review.is-applying .cw-review-drop, .cw-review.is-done .cw-review-drop, .cw-review.is-partial .cw-review-row:not(.is-refused) .cw-review-drop { visibility: hidden; }
.cw-review-state { grid-area: state; align-self: center; width: 26px; height: 26px; border-radius: 50%; }
.cw-review-error { grid-area: error; color: var(--clay-ink); font-size: 13px; }
.cw-review-error:empty { display: none; }

.cw-review-row.is-applying { border-color: rgba(var(--violet-rgb), 0.7); }
.cw-review-row.is-applying::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(var(--violet-rgb), 0.22) 50%, transparent 80%) -100% 0 / 60% 100% no-repeat; animation: wdShimmer 1s linear infinite; pointer-events: none; }
.cw-review-row.is-applying .cw-review-state { border: 2.5px solid rgba(var(--violet-rgb), 0.3); border-top-color: var(--violet); animation: cwSpin 0.7s linear infinite; }
@keyframes cwSpin { to { rotate: 1turn; } }
.cw-review-row.is-applied { border-color: rgba(var(--teal-rgb), 0.5); background: linear-gradient(120deg, rgba(var(--teal-rgb), 0.1), var(--bg-sunk)); }
.cw-review-row.is-applied .cw-review-state { background: var(--teal); display: grid; place-items: center; animation: wdPop 0.5s var(--ease-out) both; }
.cw-review-row.is-applied .cw-review-state::after { content: "✓"; color: #062a26; font-weight: 900; font-size: 14px; }
.cw-review-row.is-refused { border-color: rgba(var(--clay-rgb), 0.6); background: linear-gradient(120deg, rgba(var(--clay-rgb), 0.1), var(--bg-sunk)); animation: cwNudge 0.4s; }
.cw-review-row.is-refused .cw-review-state { background: var(--clay); display: grid; place-items: center; }
.cw-review-row.is-refused .cw-review-state::after { content: "!"; color: #2a0d06; font-weight: 900; font-size: 14px; }

.cw-review-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 28px 22px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.12); }
.cw-review-later { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 700 14px var(--font-sans); cursor: pointer; }
.cw-review-later:hover:not(:disabled) { border-color: var(--text-dim); }
.cw-review-undo { padding: 12px 18px; border-radius: 999px; border: 0; background: var(--text); color: var(--bg); font: 800 14px var(--font-sans); cursor: pointer; }
.cw-review-undo:disabled { opacity: 0.6; cursor: progress; }
.cw-review-go { position: relative; overflow: hidden; isolation: isolate; padding: 12px 24px; border: 0; border-radius: 999px; background: linear-gradient(120deg, var(--violet), #8fb4ff); color: #14102a; font: 800 15px var(--font-sans); cursor: pointer; box-shadow: 0 10px 30px -8px rgba(var(--violet-rgb), 0.9); transition: transform 0.2s var(--ease-out); }
.cw-review-go:hover:not(:disabled) { transform: translateY(-2px); }
.cw-review-go:disabled { cursor: progress; }
.cw-review-go-sheen { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat; animation: wdSheen 2.6s ease-in-out infinite; }
.cw-review .wd-confetti { top: 30%; }

.cw-review-deploy { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 4px; border-radius: 16px; background: linear-gradient(120deg, rgba(var(--teal-rgb), 0.12), rgba(var(--blue-rgb), 0.06)); border: 1px solid rgba(var(--teal-rgb), 0.35); animation: cwRowIn 0.6s var(--ease-out) 0.3s both; }
.cw-review-deploy > div { flex: 1; display: grid; min-width: 200px; text-align: left; }
.cw-review-deploy > div span { color: var(--text-dim); font-size: 13px; }
.cw-review-deploy-error { flex: 1 1 100%; color: var(--clay-ink); font-size: 13px; }
.wd-go.small { padding: 11px 20px 11px 16px; font-size: 14px; }

.cw-choice-note { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: rgba(var(--violet-rgb), 0.18); color: var(--violet-ink); font: 700 10px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; }
.cw-review-keeps { flex-basis: 100%; color: var(--text-dim); font-size: 12.5px; }
.cw-review-chip.merge { background: rgba(var(--violet-rgb), 0.18); color: var(--violet-ink); }

.cw-merge { width: min(820px, calc(100vw - 28px)); }
.cw-merge-body { display: grid; gap: 22px; padding-top: 20px; padding-bottom: 24px; transition: opacity 0.2s; }
.cw-merge.is-checking .cw-merge-body { opacity: 0.55; }

.cw-merge-plan { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; }
.cw-merge-card { display: grid; align-content: start; gap: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-sunk); animation: cwRowIn 0.45s var(--ease-out) both; }
.cw-merge-card.is-joining { border-style: dashed; border-color: rgba(var(--violet-rgb), 0.45); background: linear-gradient(160deg, rgba(var(--violet-rgb), 0.1), var(--bg-sunk)); animation-delay: 0.08s; }
.cw-merge-card header { display: grid; gap: 2px; }
.cw-merge-card h3 { font-size: 16px; }
.cw-merge-card-note { font: 700 11px var(--font-sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
.cw-merge-card.is-joining .cw-merge-card-note { color: var(--violet-ink); }
.cw-merge-plus { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(var(--violet-rgb), 0.2); color: var(--violet-ink); font: 800 18px var(--font-sans); }
.cw-merge-colours { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-merge-colour { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--text); font: 600 12.5px var(--font-sans); text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease-out); }
.cw-merge-colour:hover { transform: translateY(-1px); border-color: var(--text-dim); }
.cw-merge-colour::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex: none; }
.cw-merge-colour.status-live::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.cw-merge-colour.status-draft::before { background: var(--blue); }
.cw-merge-colour.status-unpublished::before { background: var(--clay); }
.cw-merge-colour.status-archived { opacity: 0.6; }
.cw-merge-colour-status { color: var(--text-dim); font-weight: 500; }
.cw-merge-none { color: var(--text-dim); font-size: 13px; }
.cw-merge-result { grid-column: 1 / -1; display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; background: rgba(var(--violet-rgb), 0.1); color: var(--text-dim); font-size: 13px; }
.cw-merge-result-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.cw-merge-result b { color: var(--text); font-size: 15px; }
.cw-merge-count { padding: 1px 8px; border-radius: 999px; background: rgba(var(--violet-rgb), 0.2); color: var(--violet-ink); font: 700 11.5px var(--font-sans); }
.cw-merge-result-note.is-twice::before { content: "ⓘ "; color: var(--violet-ink); }
.cw-merge-arrow { color: var(--violet-ink); font-weight: 800; }

.cw-merge-section { display: grid; gap: 8px; }
.cw-merge-section > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cw-merge-section > header h3 { font: 700 12px var(--font-sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--violet-ink); }
.cw-merge-section > header span { color: var(--text-dim); font-size: 12.5px; }
.cw-merge-section.is-fixes > header h3 { color: var(--clay-ink); }

.cw-merge-fix { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(var(--clay-rgb), 0.45); background: linear-gradient(120deg, rgba(var(--clay-rgb), 0.1), var(--bg-sunk)); animation: cwRowIn 0.4s var(--ease-out) both; }
.cw-merge-fix-icon { font-size: 18px; line-height: 1.3; }
.cw-merge-fix-copy { display: grid; gap: 6px; min-width: 0; font-size: 14px; }
.cw-merge-fix-hint { color: var(--text-dim); font-size: 12.5px; }
.cw-merge-fix-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cw-merge-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font: 700 13px var(--font-sans); text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease-out); }
.cw-merge-link:hover { transform: translateY(-1px); border-color: var(--text-dim); }
.cw-merge-link.is-primary { border: 0; background: var(--text); color: var(--bg); }
.cw-merge-link-out { opacity: 0.7; }

.cw-merge-field { display: grid; grid-template-columns: minmax(130px, 0.32fr) 1fr; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-sunk); }
.cw-merge-field.is-clash { border-color: rgba(var(--violet-rgb), 0.55); }
.cw-merge-field.is-clash:not(.is-picked) { box-shadow: inset 3px 0 0 var(--violet); }
.cw-merge-field-name { font: 700 13px var(--font-sans); color: var(--text-dim); }
.cw-merge-field-kept { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.cw-merge-field-kept b { overflow-wrap: anywhere; }
.cw-merge-field-kept span { color: var(--text-dim); font-size: 12px; }
.cw-merge-pick { --cw-ink: var(--violet-ink); display: flex; flex-wrap: wrap; gap: 8px; }
.cw-merge-option { text-transform: none; flex-wrap: wrap; max-width: 100%; text-align: left; }
.cw-merge-option-value { overflow-wrap: anywhere; }
.cw-merge-option-from { color: var(--text-dim); font-weight: 500; font-size: 11.5px; }

.cw-merge-foot { justify-content: flex-end; }
.cw-merge-state { flex: 1; min-width: 140px; color: var(--clay-ink); font: 700 13px var(--font-sans); }
.cw-merge-state.is-ready { color: var(--teal-ink, var(--teal)); }
.cw-merge .cw-review-go:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; }
.cw-merge .cw-review-go:disabled .cw-review-go-sheen { display: none; }
.cw-merge-recheck[hidden] { display: none; }

@media (max-width: 640px) {
  .cw-merge { width: 100vw; }
  .cw-merge-plan { grid-template-columns: 1fr; }
  .cw-merge-plus { justify-self: center; }
  .cw-merge-field { grid-template-columns: 1fr; }
  .cw-merge-state { flex-basis: 100%; }
  .cw-merge-foot .cw-review-go { flex: 1; }
}

@media (max-width: 640px) {
  .cw-changes { left: 10px; right: 10px; top: auto; bottom: 74px; transform: translateY(calc(100% + 30px)); padding-left: 14px; gap: 8px; }
  .cw-changes.is-open { transform: none; }
  .cw-changes-said { flex: 1; white-space: normal; font-size: 13px; }
  .cw-changes-discard, .cw-changes-review { padding: 9px 12px; }
  .cw-changes-arrow { display: none; }
  .cw-review { width: 100vw; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .cw-review-head, .cw-review-list, .cw-review-foot { padding-left: 18px; padding-right: 18px; }
  html.has-cw-changes .toasts { bottom: 146px; }
}

@media (prefers-reduced-motion: reduce) {
  .cw-changes-pulse::after, .cw-review-go-sheen, .cw-review-row.is-applying::after { animation: none; }
  .cw-review-row { animation: none; }
}

/* Website markets */
.market-flag { font-size: 15px; margin-left: 4px; }
.market-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.market-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; }

/* Hero banners */
.hb-flag { font-size: 15px; margin-left: 4px; }
.hb-status-scheduled { color: var(--blue-ink); border-color: rgba(var(--blue-rgb), 0.4); }
.hb-status-live { color: var(--teal-ink); border-color: rgba(var(--teal-rgb), 0.45); }
.hb-status-draft, .hb-status-past { color: var(--text-dim); }
.hb-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.hb-live-market { margin: 0; }
.hb-live-link { display: grid; gap: 8px; color: var(--text); text-decoration: none; }
.hb-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.hb-summary p { margin: 0 0 8px; }
.hb-summary-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.hb-form .fine { margin: -4px 0 10px; }
.hb-checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hb-check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; }
.change-form input.hb-time { flex: none; width: auto; }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.hb-grid label { display: grid; gap: 6px; font-size: 13px; color: var(--text-dim); }
.hb-grid .hb-wide { grid-column: 1 / -1; }
.hb-media-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hb-media-field { display: grid; gap: 6px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.hb-media-field .fine { margin: 0; }

.hb-frames { display: grid; grid-template-columns: 3fr 1fr; gap: 18px; margin-top: 16px; align-items: start; }
.hb-frame-large_desktop, .hb-frame-desktop { grid-column: 1 / -1; }
.hb-frame-wrap { margin: 0; display: grid; gap: 8px; }
.hb-frame { position: relative; overflow: hidden; border-radius: 12px; background: #111; container-type: inline-size; --hb-scale: 1; }
.hb-frame-tablet .hb-frame { --hb-scale: 1.6; }
.hb-frame-mobile .hb-frame { --hb-scale: 2.6; }
.hb-media { display: block; width: 100%; height: auto; }
.hb-missing { aspect-ratio: 16 / 7; display: grid; place-items: center; color: var(--text-dim); font-size: 13px; }
.hb-content { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(4cqw * var(--hb-scale) / 2); color: #fff; }
.hb-stacked .hb-content { position: static; }
.hb-content.hb-bright { color: #1b1b1b; }
.hb-content.hb-gradient { background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.6)); }
.hb-h-start { align-items: flex-start; text-align: left; }
.hb-h-center { align-items: center; text-align: center; }
.hb-h-end { align-items: flex-end; text-align: right; }
.hb-v-start-end { justify-content: flex-start; }
.hb-v-center { justify-content: center; }
.hb-v-end { justify-content: flex-end; }
.hb-text { display: grid; gap: calc(1cqw * var(--hb-scale)); max-width: 46cqw; justify-items: inherit; }
.hb-frame-mobile .hb-text { max-width: none; }
.hb-h-start .hb-text { justify-items: start; }
.hb-h-center .hb-text { justify-items: center; }
.hb-h-end .hb-text { justify-items: end; }
.hb-title { font: 700 calc(3.4cqw * var(--hb-scale)) / 1.05 var(--font-sans); letter-spacing: -0.01em; }
.hb-size-S .hb-title { font-size: calc(2.6cqw * var(--hb-scale)); }
.hb-size-L .hb-title { font-size: calc(4.2cqw * var(--hb-scale)); }
.hb-size-XL .hb-title { font-size: calc(5.2cqw * var(--hb-scale)); }
.hb-subtitle { font-size: calc(1.3cqw * var(--hb-scale)); }
.hb-badge { font-size: calc(0.9cqw * var(--hb-scale)); padding: 0.2em 0.7em; border-radius: 99px; border: 1px solid currentColor; }
.hb-badge-filled { color: inherit; background: rgba(255, 255, 255, 0.85); color: #1b1b1b; border-color: transparent; }
.hb-badge-italic { font-style: italic; border-color: transparent; }
.hb-buttons { display: flex; flex-wrap: wrap; gap: calc(0.8cqw * var(--hb-scale)); margin-top: calc(0.6cqw * var(--hb-scale)); }
.hb-button { font: 600 calc(1cqw * var(--hb-scale)) var(--font-sans); padding: 0.8em 1.6em; border: 1px solid currentColor; }
.hb-button-primary, .hb-button-default { background: #1b1b1b; color: #fff; border-color: #1b1b1b; }
.hb-button-white { background: #fff; color: #1b1b1b; border-color: #fff; }
.hb-button-white_outline { color: #fff; border-color: #fff; }
.hb-button-secondary, .hb-button-primary_outline { color: #1b1b1b; border-color: #1b1b1b; background: transparent; }
.hb-button-brand_orange { background: #ff6b35; color: #fff; border-color: #ff6b35; }
.hb-button-link { border-color: transparent; text-decoration: underline; padding-inline: 0; }
@media (max-width: 720px) {
  .hb-frames { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────
   What a style's product page needs to be live

   The hero says whether the page could go live, and
   names what it still lacks: each a chip that opens
   its field. Fields a live page needs carry a lock;
   ones it lacks glow clay until they're filled.
   ───────────────────────────────────────────────── */
.st-ready {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 8px 10px 8px 14px;
  border-radius: 16px;
  background: rgba(var(--clay-rgb), 0.14);
  border: 1px solid rgba(var(--clay-rgb), 0.45);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(10px);
  animation: cwPop 0.5s var(--ease-out) both;
}
.st-ready b { color: var(--clay-ink); }
.st-ready.is-off { background: rgba(var(--clay-rgb), 0.22); border-color: rgba(var(--clay-rgb), 0.75); }
.st-ready.is-ready { padding-right: 14px; background: rgba(var(--teal-rgb), 0.12); border-color: rgba(var(--teal-rgb), 0.45); }
.st-ready-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #062a22;
  font-size: 11px;
  font-weight: 900;
}
.st-ready-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.st-ready-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 700 12px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.st-ready-step:hover, .st-ready-step:focus-visible { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-1px); }
.st-ready-step.is-fixed { cursor: default; opacity: 0.75; }
.st-ready-step.is-fixed:hover { transform: none; background: rgba(255, 255, 255, 0.1); }
.st-ready-step .arrow { opacity: 0.6; font-size: 11px; }
.st-ready-tick { display: none; }
.st-ready-said.is-pending, .st-ready.is-pending .st-ready-said:not(.is-pending) { display: none; }
.st-ready.is-pending .st-ready-said.is-pending { display: inline; }
.st-ready.is-pending { background: rgba(var(--violet-rgb), 0.16); border-color: rgba(var(--violet-rgb), 0.6); }
.st-ready.is-pending b { color: var(--violet-ink); }
.st-ready-step.is-drafted { border-style: dashed; border-color: rgba(var(--violet-rgb), 0.8); background: rgba(var(--violet-rgb), 0.18); }
.st-ready-step.is-drafted .st-ready-tick { display: inline; color: var(--violet-ink); }

.cw-need-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 7px 1px 5px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--cw-light, var(--text-dim)) 45%, transparent);
  background: color-mix(in oklab, var(--cw, transparent) 14%, transparent);
  color: var(--cw-light, var(--text-dim));
  font: 700 10px var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.cw-need-icon { width: 11px; height: 11px; }
.cw-media-title .cw-need-badge { margin-left: 0; }
.cw-hero .cw-need-badge { display: none; }
.cw-need-badge.is-missing { border-color: rgba(var(--clay-rgb), 0.6); background: rgba(var(--clay-rgb), 0.14); color: var(--clay-ink); }
.cw-need-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 3px rgba(var(--clay-rgb), 0.25); animation: pulse 2.4s ease-in-out infinite; }
.cw-edit:has(> h2, > .lede, > .cw-care, > .cw-description) > .cw-need-badge { margin: 6px 0 0; width: fit-content; }
.cw-edit.is-missing:not(.is-drafted) { outline: 1.5px dashed rgba(var(--clay-rgb), 0.6); outline-offset: 4px; border-radius: 8px; }
.cw-edit.is-drafted > .cw-need-badge { display: none; }
.cw-edit.is-sought { animation: cwNeedsFix 1.2s ease-in-out 2; }

.cw-editor-need {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(var(--tint-rgb), 0.07);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
}
.cw-editor .cw-editor-need svg { flex: none; width: 15px; height: 15px; fill: none; color: var(--text-dim); }
.cw-editor-need b { font-weight: 700; }
.cw-editor-need { flex-direction: column; align-items: stretch; }
.cw-editor-need-head { display: flex; align-items: center; gap: 8px; margin: 0; }
.cw-need-tiles { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 2px; }
.cw-need-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: 220px;
  padding: 5px 10px 5px 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.cw-need-tile:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.cw-need-tile-media { flex: none; width: 34px; height: 42px; border-radius: 7px; overflow: hidden; background: var(--bg); }
.cw-need-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-need-tile-words { display: grid; min-width: 0; line-height: 1.3; }
.cw-need-tile-words b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-need-tile-words span { color: var(--text-dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  .st-ready { width: 100%; border-radius: 14px; }
  .cw-need-badge { margin-left: 6px; }
}

/* ─────────────────────────────────────────────────
   Editing in place

   Description and tags open inside their own card
   rather than in a popover: the card becomes the
   editor, with the same header, notes and footer.
   Tags are chips, grouped by their prefix, added
   from a search of the tags the catalogue uses.
   ───────────────────────────────────────────────── */
[data-cw-field][hidden] { display: none !important; }
.cw-editor.is-inline {
  position: relative;
  z-index: auto;
  width: auto;
  margin: 2px 0;
  background: color-mix(in oklab, var(--menu-bg) 70%, transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--cw) 16%, transparent), 0 18px 40px -24px color-mix(in oklab, var(--cw) 70%, transparent);
  overflow: visible;
  transform: translateY(4px);
}
.cw-editor.is-inline.is-open { transform: none; }
.cw-editor.is-inline::before { border-radius: 16px 16px 0 0; }
.cw-editor.is-inline .cw-editor-rich { max-height: 60vh; min-height: 220px; }

.cw-tags { display: grid; gap: 12px; }
.cw-tag-group { display: grid; gap: 6px; }
.cw-tag-group-name { color: var(--text-dim); font: 700 10.5px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.cw-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(var(--tint-rgb), 0.06);
  color: var(--text);
  font: 600 12.5px var(--font-sans);
  overflow-wrap: anywhere;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s var(--ease-out);
}
.cw-tag svg, .cw-tag-lock { flex: none; width: 11px; height: 11px; color: var(--text-dim); fill: none; }
.cw-tag.is-managed { color: var(--text-dim); border-style: dashed; }
.cw-tag.is-added { border-color: rgba(var(--teal-rgb), 0.7); background: rgba(var(--teal-rgb), 0.14); animation: cwPop 0.3s var(--ease-out) both; }
.cw-tag.is-removed { opacity: 0.55; text-decoration: line-through; border-style: dashed; }
.cw-tag.is-armed { border-color: var(--clay); background: rgba(var(--clay-rgb), 0.18); }
.cw-tag-act {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: -6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.cw-tag-act:hover, .cw-tag-act:focus-visible { background: rgba(var(--tint-rgb), 0.16); color: var(--text); }
.cw-tag-editor { display: grid; gap: 12px; }
.cw-tag-groups { display: grid; gap: 12px; max-height: 46vh; overflow: auto; padding: 2px; }
.cw-tag-empty { margin: 0; color: var(--text-dim); font-size: 13px; }
.cw-tag-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 2px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-sunk);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cw-tag-entry:focus-within { border-color: color-mix(in oklab, var(--cw), white 45%); box-shadow: 0 0 0 3px rgba(var(--tint-rgb), 0.12); }
.cw-tag-plus { color: var(--text-dim); font-weight: 800; }
.cw-tag-input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: transparent; color: var(--text); font: 500 14px var(--font-sans); outline: none; }
.cw-tag-entry { flex-wrap: wrap; }
.cw-tag-suggestions {
  flex-basis: 100%;
  max-height: 240px;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border-top: 1px solid var(--line);
  margin: 0 -4px 0 -12px;
}
.cw-tag-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.cw-tag-suggestion.is-active, .cw-tag-suggestion:hover { background: rgba(var(--tint-rgb), 0.12); }
.cw-tag-suggestion-name { overflow-wrap: anywhere; }
.cw-tag-suggestion-count { flex: none; color: var(--text-dim); font: 600 11.5px var(--font-sans); }
.cw-tag-suggestion.is-fresh .cw-tag-suggestion-name { font-weight: 700; color: var(--text); }
.cw-tag-summary { margin: 0; color: var(--text-dim); font: 600 12px var(--font-sans); }
.cw-edit:has(> .cw-tags) { display: block; }
.cw-edit:has(> .cw-tags) > .cw-draft-value { display: flex; width: fit-content; margin: 10px 0 0; white-space: pre-wrap; }

@media (max-width: 720px) {
  .cw-editor.is-inline .cw-editor-keys { display: none; }
  .cw-tag { font-size: 13px; padding: 5px 12px; }
  .cw-tag-input { font-size: 16px; }
}
.cw-edit.is-drafted > .cw-tags { opacity: 0.8; text-decoration: none; }

/* Tags and SEO, one tab per market */
.cw-market-card > header { align-items: center; margin-bottom: 14px; }
.cw-market-agreement {
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 11.5px var(--font-sans);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.cw-market-agreement.is-same { color: var(--teal-ink); background: rgba(var(--teal-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb), 0.3); }
.cw-market-agreement.is-different { color: var(--clay-ink); background: rgba(var(--clay-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--clay-rgb), 0.34); }
.cw-market-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 16px; }
.cw-market-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.cw-market-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  font: 700 13.5px var(--font-sans);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s var(--ease-out);
}
.cw-market-tab:hover { color: var(--text); background: rgba(var(--tint-rgb), 0.07); }
.cw-market-tab:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.cw-market-tab[aria-selected="true"] {
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.13);
  box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb), 0.45);
}
.cw-market-tab-flag { font-size: 20px; line-height: 1; filter: saturate(0.7); transition: filter 0.25s, transform 0.25s var(--ease-out); }
.cw-market-tab[aria-selected="true"] .cw-market-tab-flag { filter: none; transform: scale(1.12); }
.cw-market-tab-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(var(--tint-rgb), 0.1);
  font: 700 11.5px var(--font-sans);
  text-align: center;
}
.cw-market-tab.is-unsold { opacity: 0.6; }
.cw-market-tab.is-unsold[aria-selected="true"] { opacity: 1; }
.cw-market-tab-draft {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 2px var(--bg-sunk);
  transform: scale(0);
  transition: transform 0.25s var(--ease-out);
}
.cw-market-tab.has-draft .cw-market-tab-draft { transform: none; }
.cw-tags-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid color-mix(in oklab, var(--cw) 50%, var(--line-strong));
  border-radius: 999px;
  background: linear-gradient(120deg, color-mix(in oklab, var(--cw) 22%, transparent), rgba(var(--tint-rgb), 0.04));
  color: var(--text);
  font: 700 13px var(--font-sans);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s var(--ease-out);
}
.cw-tags-sync svg { width: 15px; height: 15px; transition: transform 0.6s var(--ease-out); }
.cw-tags-sync:hover { border-color: color-mix(in oklab, var(--cw), white 30%); box-shadow: 0 8px 22px -10px color-mix(in oklab, var(--cw) 90%, transparent); transform: translateY(-1px); }
.cw-tags-sync:hover svg { transform: rotate(180deg); }
.cw-tags-sync:active { transform: none; }
.cw-tags-sync:focus-visible { outline: 2px solid color-mix(in oklab, var(--cw), white 40%); outline-offset: 2px; }
.cw-market-panel { animation: cwMarketIn 0.3s var(--ease-out) both; }
.cw-market-panel > .cw-edit + .cw-edit { margin-top: 12px; }
.cw-market-panel .cw-care:first-child { margin-top: 0; }
.cw-inherited { color: var(--text-dim); }
@keyframes cwMarketIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .cw-market-bar { align-items: stretch; }
  .cw-market-tabs { display: flex; width: 100%; }
  .cw-market-tab { flex: 1; justify-content: center; padding: 9px 8px; }
  .cw-tags-sync { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-market-panel { animation: none; }
  .cw-tags-sync svg, .cw-market-tab-flag { transition: none; }
}

/* ─────────────────────────────────────────────────
   Orders: heading and top line
   ───────────────────────────────────────────────── */
.orders-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.orders-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.orders-topline :is(.back, .eyebrow) { margin-bottom: 0; }

.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  padding: 14px 0 28px;
  perspective: 1400px;
}

.cl-card {
  --cw: var(--swatch, #5f7389);
  --cw-light: color-mix(in oklab, var(--cw), white 45%);
  --cw-deep: color-mix(in oklab, var(--cw), black 55%);
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.45s var(--ease-out);
  animation: cw-tile-in 0.7s var(--ease-out) both;
  animation-delay: calc(min(var(--i), 24) * 45ms);
}
.cl-collection {
  background: radial-gradient(120% 90% at 30% 15%, var(--cw-light), var(--cw) 45%, var(--cw-deep) 100%);
}
.cl-collection:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 26px 64px -12px color-mix(in oklab, var(--cw), transparent 25%),
    0 0 0 1px color-mix(in oklab, var(--cw-light), transparent 40%);
  z-index: 1;
}
.cl-collection.is-draft .cl-mosaic { filter: saturate(0.55); }

.cl-mosaic {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.cl-mosaic[data-count-shots="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cl-mosaic[data-count-shots="2"] { grid-template-rows: 1fr; }
.cl-mosaic[data-count-shots="3"] .cl-mosaic-cell:first-child { grid-row: span 2; }
.cl-mosaic-cell {
  --cw: var(--swatch, #5f7389);
  --cw-light: color-mix(in oklab, var(--cw), white 45%);
  --cw-deep: color-mix(in oklab, var(--cw), black 55%);
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 15%, var(--cw-light), var(--cw) 45%, var(--cw-deep) 100%);
}
.cl-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.cl-collection:hover .cl-mosaic-cell img { transform: scale(1.08); }
.cl-mosaic-cell:nth-child(2) img { transition-delay: 60ms; }
.cl-mosaic-cell:nth-child(3) img { transition-delay: 120ms; }
.cl-mosaic-cell:nth-child(4) img { transition-delay: 180ms; }
.cl-mosaic-cell .cw-tile-orb { width: 54%; animation-delay: calc(var(--i, 0) * -0.7s); }
.cl-mosaic.is-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--teal-rgb), 0.35), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(var(--violet-rgb), 0.35), transparent 55%),
    linear-gradient(150deg, #1f2b3b, #121a25);
}
.cl-mosaic-empty {
  margin-bottom: 30%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.cl-collection::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, color-mix(in oklab, var(--cw-deep), transparent 10%) 100%);
}

.cl-card-body {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(10, 16, 24, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.cl-card-name {
  font-size: 23px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.cl-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}
.cl-card-meta code { font-family: var(--font-mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.9); }

.cl-new {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
  color: var(--text);
  background:
    radial-gradient(90% 60% at 20% 10%, rgba(var(--teal-rgb), 0.16), transparent 70%),
    radial-gradient(80% 60% at 90% 90%, rgba(var(--blue-rgb), 0.14), transparent 70%),
    linear-gradient(150deg, var(--card-grad-1), var(--card-grad-2));
  border: 1.5px dashed rgba(var(--teal-rgb), 0.4);
  box-shadow: none;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.cl-new:focus-within, .cl-new:hover {
  border-color: var(--teal);
  box-shadow: 0 22px 56px -18px rgba(var(--teal-rgb), 0.45);
}
.cl-new-plus {
  position: absolute;
  top: 22%;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 44px;
  font-weight: 300;
  color: var(--teal-ink);
  background: radial-gradient(circle at 32% 28%, rgba(var(--teal-rgb), 0.35), rgba(var(--teal-rgb), 0.08) 70%);
  box-shadow: 0 0 0 1px rgba(var(--teal-rgb), 0.35), 0 0 60px rgba(var(--teal-rgb), 0.25);
  animation: cw-tile-float 6s ease-in-out infinite;
}
.cl-new-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cl-new-input {
  width: 100%;
  padding: 12px 14px;
  font: 600 16px var(--font-sans);
  color: var(--text);
  background: var(--bg-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cl-new-input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), 0.15); }
.cl-new-submit { justify-content: center; }

.cl-hero { min-height: clamp(280px, 40vh, 420px); padding-bottom: 54px; }
.cl-hero .lede { max-width: 62ch; }
.hero .meta .cl-handle { cursor: pointer; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
.cl-handle b { color: #fff; font-family: var(--font-mono); font-weight: 600; }
.hero .meta .cl-site { gap: 7px; color: #fff; text-decoration: none; border-color: rgba(var(--teal-rgb), 0.6); background: rgba(var(--teal-rgb), 0.16); }
.hero .meta .cl-site:hover { text-decoration: none; background: rgba(var(--teal-rgb), 0.3); }
.cl-site svg { width: 13px; height: 13px; }
.cl-site .arrow { transition: transform 0.2s var(--ease-out); }
.cl-site:hover .arrow { transform: translate(2px, -2px); }
.hero .meta .cl-layout { cursor: pointer; }
.cl-layout b { color: #fff; font-weight: 600; }
.cw-editor:has(.cl-grid-choices):not(.is-sheet) { width: min(440px, calc(100vw - 24px)); }
.cl-grid-choices { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.cl-grid-choices + .cl-grid-choices { margin-top: 10px; }
.cw-editor.is-sheet .cl-grid-choices { grid-template-columns: 1fr; gap: 6px; }
.cl-grid-note { grid-column: -2; margin: -4px 0 0; color: var(--text-dim); font-size: 12px; }
.cl-grid-device { color: var(--text-dim); font: 600 11px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; }
.cl-hero .chip.draft .dot { background: #f2c14e; }

.cl-band { padding-top: 34px; }
.cl-band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cl-band-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cl-count {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--teal-ink);
  background: rgba(var(--teal-rgb), 0.12);
  box-shadow: 0 0 0 1px rgba(var(--teal-rgb), 0.3) inset;
}
.cl-band-head .hint { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); }
.cl-products-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.cl-market-tabs .cw-market-tab { padding: 6px 14px 6px 10px; }
.cl-count.is-empty { color: var(--clay-ink); background: rgba(var(--clay-rgb), 0.12); box-shadow: 0 0 0 1px rgba(var(--clay-rgb), 0.3) inset; }
.cl-item-unsold:empty { display: none; }
.cl-item.is-unsold .cl-item-stock { display: none; }
.cl-item.is-unsold:not(.is-removed, .is-hidden) { opacity: 0.55; }
.cl-item.is-unsold:not(.is-removed, .is-hidden) :is(.cl-item-hide, .cl-item-remove, .cl-item-grip) { display: none; }
.cl-add { display: inline-flex; align-items: center; gap: 8px; }
.cl-add span { font-size: 18px; line-height: 0; }
.cl-add-menu { position: relative; }
.cl-add-menu summary { list-style: none; cursor: pointer; user-select: none; }
.cl-add-menu summary::-webkit-details-marker { display: none; }
.cl-add-menu summary::after { content: "▾"; margin-left: 2px; font-size: 12px; transition: rotate 0.2s; }
.cl-add-menu[open] summary::after { rotate: 180deg; }
.cl-add-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(4, 8, 14, 0.35);
  animation: cl-picker-in 0.2s var(--ease-out);
}
.cl-add-menu.is-left .cl-add-panel { right: auto; left: 0; }
.cl-add-panel button {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
}
.cl-add-panel button:is(:hover, :focus-visible) { background: rgba(var(--teal-rgb), 0.1); outline: none; }
.cl-add-panel b { font-size: 14px; }
.cl-add-panel span { font-size: 12.5px; color: var(--text-dim); }

.cl-insert .cl-tile { box-shadow: 0 0 0 2px rgba(var(--teal-rgb), 0.55), var(--shadow-sm); }
.cl-insert .cl-item-position { display: none; }
.cl-insert-kind .dot { background: #2fe6c4; }
.cl-insert .cw-tile-meta { flex-wrap: wrap; row-gap: 2px; }
.cl-insert-markets .market-flag:first-child { margin-left: 0; }
.cl-insert-wide { grid-column: span 2; }
.cl-insert-wide .cl-tile { aspect-ratio: auto; height: 100%; min-height: 160px; }
.cl-looks { height: min(640px, calc(100dvh - 48px)); }
.cl-looks-form { grid-template-rows: auto auto minmax(0, 1fr); }
.cl-looks-hint { margin: 4px 26px 8px; font-size: 13px; color: var(--text-dim); }
.cl-looks-hint a { color: var(--teal-ink); }
.cl-look-added { display: none; padding: 0 4px; font-size: 11.5px; font-weight: 700; color: var(--teal-ink); }
.cl-look:disabled { cursor: default; opacity: 0.55; }
.cl-look:disabled .cl-look-added { display: block; }
@media (max-width: 640px) {
  .cl-looks-hint { margin: 4px 16px 8px; }
}

.cl-items {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 1400px;
}
.cl-items[data-desktop-columns="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (min-width: 1280px) {
  .cl-items[data-desktop-columns=""] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.cl-item {
  position: relative;
  border-radius: 24px;
  outline-offset: 4px;
  cursor: grab;
  touch-action: auto;
}
.cl-item:focus-visible { outline: 2px solid var(--teal-ink); }
.cl-items > .cl-item:not(.cl-insert) > .cl-tile { content-visibility: auto; contain-intrinsic-size: auto none; }
.cl-skeleton { aspect-ratio: 1; border-radius: 24px; background: var(--line); animation: pulse 1.6s ease-in-out infinite; }
.cl-skeleton:nth-child(even) { animation-delay: 0.2s; }
.cl-card.cl-skeleton { border-radius: 26px; box-shadow: none; animation: pulse 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.1s); }
.cl-tile { animation-delay: calc(min(var(--i), 30) * 30ms); }
.cl-tile .cw-tile-name { font-size: 17px; }
.cl-tile .cw-tile-body { padding: 12px 14px; }
.cl-tile, .cl-card { transform-style: flat; animation-name: cl-tile-in; }
@keyframes cl-tile-in {
  from { opacity: 0; translate: 0 28px; scale: 0.96; }
}
.cl-item:nth-child(n + 25) .cl-tile { animation: none; }
.cl-tile .cw-tile-body, :is(.cl-tile, .cl-card, .cl-candidate) .cw-tile-status { transform: none; }
:is(.cl-tile, .cl-card, .cl-candidate) .cw-tile-orb { animation: none; }
.cl-item:is(.is-off, .is-unsold) .cl-tile .cw-tile-media { filter: grayscale(0.85) brightness(0.8); }
.cl-item:is(.is-off, .is-unsold) .cw-tile-meta { color: var(--clay-ink); }

.cl-item-position {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  font: 700 12px var(--font-mono);
  color: #fff;
  background: rgba(10, 16, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  transition: opacity 0.2s;
}
.cl-item-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: none;
  grid-template-columns: repeat(2, 5px);
  gap: 4px;
  padding: 10px 12px;
  translate: -50% -80%;
  border-radius: 14px;
  background: rgba(10, 16, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  touch-action: none;
  cursor: grab;
}
.cl-item-grip i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
@media (hover: none) {
  .cl-item-grip { display: grid; }
}

.cl-item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(var(--clay-rgb), 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s, scale 0.25s var(--ease-out), background 0.2s;
}
.cl-item-remove svg { width: 14px; height: 14px; }
.cl-item:is(:hover, :focus-within) .cl-item-remove { opacity: 1; scale: 1; }
.cl-item:is(:hover, :focus-within) .cl-item-position { opacity: 0; }
.cl-item-remove:hover { background: var(--clay); scale: 1.08; }
.cl-item form { margin: 0; }
@media (hover: none) {
  .cl-item-remove { opacity: 1; scale: 0.9; }
  .cl-item-position { display: none; }
}

.cl-items.sorting { user-select: none; }
.cl-items.sorting .cl-item:not(.dragging) { opacity: 0.6; transition: opacity 0.2s; }
.cl-items.sorting .cl-item-remove { display: none; }
.cl-item.dragging {
  z-index: 10;
  cursor: grabbing;
  scale: 1.05;
  rotate: -2deg;
  transition: scale 0.15s, rotate 0.15s;
}
.cl-item.dragging .cl-tile { box-shadow: 0 30px 70px -10px rgba(6, 10, 18, 0.6), 0 0 0 2px rgba(var(--teal-rgb), 0.8); }

.cl-empty-cta {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 64px 24px;
  font: inherit;
  color: var(--text-dim);
  cursor: pointer;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(var(--teal-rgb), 0.12), transparent 70%),
    linear-gradient(150deg, var(--card-grad-1), var(--card-grad-2));
  border: 1.5px dashed rgba(var(--teal-rgb), 0.4);
  border-radius: 26px;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.cl-empty-cta:hover { border-color: var(--teal); box-shadow: 0 22px 56px -18px rgba(var(--teal-rgb), 0.45); }
.cl-empty-cta strong, .cl-picker-prompt strong { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.cl-empty-orbs { position: relative; display: flex; margin-bottom: 10px; }
.cl-empty-orbs i {
  width: 46px;
  aspect-ratio: 1;
  margin-left: -12px;
  border-radius: 50%;
  box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.4), 0 0 0 3px var(--bg-card);
  animation: cw-tile-float 5s ease-in-out infinite;
}
.cl-empty-orbs i:nth-child(1) { margin-left: 0; background: radial-gradient(circle at 32% 28%, #fff8, #2f6fde 55%, #12305f); }
.cl-empty-orbs i:nth-child(2) { background: radial-gradient(circle at 32% 28%, #fff8, #c4a27a 55%, #5a4329); animation-delay: -1.6s; }
.cl-empty-orbs i:nth-child(3) { background: radial-gradient(circle at 32% 28%, #fff8, #4c6b45 55%, #1f2f1c); animation-delay: -3.2s; }

.cl-delete { justify-content: flex-end; margin-top: 4px; }

.cl-prod-copy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 10px 22px 10px 10px;
  border: 1px solid rgba(255, 196, 92, 0.55);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 196, 92, 0.22), rgba(255, 128, 92, 0.12) 60%, rgba(var(--bg-rgb), 0.4));
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 36px -14px rgba(255, 170, 70, 0.75);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.cl-prod-copy:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 170, 70, 0.9); }
.cl-prod-copy:disabled { cursor: progress; opacity: 0.7; transform: none; }
.cl-prod-copy.is-matched { cursor: default; opacity: 0.5; box-shadow: none; }
.cl-prod-copy.is-matched .cl-prod-copy-sheen { display: none; }
.cl-prod-copy-sheen { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 230, 180, 0.35) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat; animation: wdSheen 3.2s ease-in-out infinite; }
.cl-prod-copy-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #ffd27a, #ff9a5c); color: #2a1606; font-weight: 800; font-size: 18px; }
.cl-prod-copy-copy { display: grid; gap: 2px; }
.cl-prod-copy-copy b { font-size: 15px; }
.cl-prod-copy-copy span { font-size: 12.5px; color: var(--text-dim); }
.cl-prod-copy-copy span:empty { display: none; }
.cl-prod-review .cw-review-foot form { display: contents; }
.cl-prod-review.is-overwrite { border-color: rgba(var(--clay-rgb), 0.6); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.75), 0 0 80px rgba(var(--clay-rgb), 0.22); }
.cl-prod-overwrite {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 0 10px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--clay-rgb), 0.65);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(var(--clay-rgb), 0.26), rgba(var(--clay-rgb), 0.1));
  animation: cwRowIn 0.5s var(--ease-out) both;
}
.cl-prod-overwrite b { display: block; font-size: 16px; color: var(--clay-ink); }
.cl-prod-overwrite p { margin: 4px 0 0; font-size: 14px; color: var(--text); }
.cl-prod-overwrite-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--clay); color: #2a0e06; font: 900 17px var(--font-sans); }
.cl-prod-confirm { padding: 18px 28px 22px; border-top: 1px solid rgba(var(--clay-rgb), 0.5); background: rgba(var(--clay-rgb), 0.14); animation: cwRowIn 0.35s var(--ease-out) both; }
.cl-prod-confirm[hidden] { display: none; }
.cl-prod-confirm p { margin: 0 0 14px; font-size: 14px; }
.cl-prod-confirm p b { color: var(--clay-ink); font-size: 15px; }
.cl-prod-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.cl-prod-confirm-go { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--clay); color: #2a0e06; font: 800 15px var(--font-sans); cursor: pointer; transition: transform 0.2s var(--ease-out); }
.cl-prod-confirm-go:hover:not(:disabled) { transform: translateY(-2px); }
.cl-prod-confirm-go:disabled { cursor: progress; opacity: 0.7; }
.cw-review-foot[hidden] { display: none; }
.cl-prod-review .cw-review-later:disabled { opacity: 0.4; cursor: not-allowed; }

.cl-picker {
  inset: 0;
  margin: auto;
  width: min(1080px, calc(100vw - 32px));
  height: min(820px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  box-shadow: 0 40px 120px rgba(4, 8, 14, 0.6);
  overflow: hidden;
}
.cl-picker[open] { animation: cl-picker-in 0.45s var(--ease-out); }
@keyframes cl-picker-in { from { opacity: 0; translate: 0 24px; scale: 0.97; } }
.cl-picker::backdrop { background: rgba(6, 10, 18, 0.6); backdrop-filter: blur(6px); }
.cl-picker-form {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
}
.cl-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 6px;
}
.cl-picker-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.cl-picker-head h2 { margin: 2px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.cl-picker-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.cl-picker-close:hover { color: var(--text); border-color: var(--line-strong); }
.cl-picker-search {
  position: relative;
  display: block;
  margin: 12px 26px 0;
}
.cl-picker-search svg { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; translate: 0 -50%; color: var(--text-dim); }
.cl-picker-search input {
  width: 100%;
  padding: 15px 16px 15px 48px;
  font: 500 17px var(--font-sans);
  color: var(--text);
  background: var(--bg-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cl-picker-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(var(--teal-rgb), 0.14); }
.cl-picker-families {
  display: flex;
  gap: 8px;
  padding: 14px 26px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cl-family-chip {
  flex: none;
  padding: 6px 13px;
  font: 600 12.5px var(--font-sans);
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.cl-family-chip:hover { color: var(--text); border-color: var(--text-dim); }
.cl-family-chip.on { color: var(--teal-ink); border-color: var(--teal); background: rgba(var(--teal-rgb), 0.12); }
.cl-picker-results {
  overflow-y: auto;
  padding: 14px 26px 22px;
  transition: opacity 0.2s;
}
.cl-picker-results.loading { opacity: 0.45; }
.cl-picker-prompt {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 100%;
  text-align: center;
  color: var(--text-dim);
}
.cl-picker-prompt .big { font-size: 2rem; }
.cl-picker-capped { margin: 0 0 16px; font-size: 12.5px; color: var(--clay-ink); }
.cl-group:not([hidden]) ~ .cl-group:not([hidden]) { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.cl-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.cl-group-family {
  width: 100%;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cl-group-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cl-group-all {
  margin-left: auto;
  padding: 5px 12px;
  font: 600 12.5px var(--font-sans);
  color: var(--teal-ink);
  cursor: pointer;
  background: rgba(var(--teal-rgb), 0.1);
  border: 1px solid rgba(var(--teal-rgb), 0.34);
  border-radius: 999px;
}
.cl-group-all:hover { background: rgba(var(--teal-rgb), 0.2); }
.cl-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 14px;
}
.cl-candidate {
  --cw: var(--swatch, #5f7389);
  --cw-light: color-mix(in oklab, var(--cw), white 45%);
  --cw-deep: color-mix(in oklab, var(--cw), black 55%);
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 8px;
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 18px;
  animation: cl-tile-in 0.5s var(--ease-out) both;
}
.cl-candidate-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin-bottom: 6px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 15%, var(--cw-light), var(--cw) 45%, var(--cw-deep) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.3s;
}
.cl-candidate-media img { width: 100%; height: 100%; object-fit: cover; }
.cl-candidate-media .cw-tile-orb { width: 58%; }
.cl-candidate[hidden], .cl-group[hidden] { display: none; }
.cl-picker-statuses { justify-self: start; max-width: calc(100% - 52px); margin: 10px 26px 4px; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 640px) {
  .cl-picker-statuses { justify-self: stretch; max-width: calc(100% - 32px); margin: 10px 16px 4px; }
  .cl-picker-statuses .seg { flex: 1; padding: 8px 8px; }
}
.cl-candidate-media .cw-tile-status { top: 8px; left: 8px; gap: 5px; padding: 3px 8px; font-size: 10px; color: #fff; transform: none; }
.cl-candidate-media .cw-tile-status .dot { width: 6px; height: 6px; }
.cl-candidate:hover .cl-candidate-media { transform: translateY(-3px); box-shadow: 0 16px 36px -12px color-mix(in oklab, var(--cw), transparent 30%); }
.cl-candidate-name { padding: 0 4px; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.cl-candidate-meta { padding: 0 4px; font-size: 11.5px; color: var(--text-dim); }
.cl-candidate-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: transparent;
  background: rgba(10, 16, 24, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s, scale 0.3s var(--ease-out);
}
.cl-candidate-check svg { width: 15px; height: 15px; }
.cl-candidate.is-picked .cl-candidate-media { box-shadow: 0 0 0 3px var(--teal), 0 16px 36px -12px rgba(var(--teal-rgb), 0.6); }
.cl-candidate.is-picked .cl-candidate-check { color: #04201a; background: var(--teal); border-color: var(--teal); scale: 1.12; }
.cl-candidate.is-added { cursor: default; opacity: 0.45; }
.cl-candidate.is-added .cl-candidate-check { color: #fff; background: rgba(255, 255, 255, 0.3); }
.cl-candidate:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }
.cl-picker-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-card), black 8%);
}
.cl-picker-tally { flex: 1; min-width: 0; font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-picker-clear { color: var(--text-dim); background: transparent; border: 1px solid var(--line-strong); }

@media (max-width: 720px) {
  .cl-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
  .cl-items, .cl-items[data-desktop-columns] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cl-items[data-mobile-columns="1"] { grid-template-columns: minmax(0, 1fr); }
  .cl-insert-wide .cl-tile { height: auto; min-height: 0; aspect-ratio: 2 / 1; }
  .cl-items[data-mobile-columns="1"] .cl-insert-wide { grid-column: auto; }
  .cl-items[data-mobile-columns="1"] .cl-insert-wide .cl-tile { aspect-ratio: 1; }
  .cl-tile .cw-tile-name { font-size: 15px; }
  .cl-tile .cw-tile-body { inset: auto 6px 6px; padding: 10px 11px; }
  .cl-tile .cw-tile-status { top: 10px; left: 10px; font-size: 10px; padding: 4px 8px; }
  .cl-band-head { align-items: stretch; flex-direction: column; }
  .cl-picker { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .cl-picker-head, .cl-picker-results, .cl-picker-foot { padding-left: 16px; padding-right: 16px; }
  .cl-picker-search { margin: 10px 16px 0; }
  .cl-picker-families { padding-left: 16px; padding-right: 16px; }
  .cl-candidates { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cl-picker-clear { display: none; }
}

.cl-new-eyebrow .dot { background: var(--violet); box-shadow: 0 0 10px var(--violet); }

.cl-item-draft {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 5;
  translate: -50% 0;
  padding: 3px 11px;
  border-radius: 999px;
  font: 700 11px var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 6px 18px rgba(var(--violet-rgb), 0.45);
  pointer-events: none;
}
.cl-item-draft:empty { display: none; }
.cl-item.is-new .cl-tile { box-shadow: 0 0 0 2px rgba(var(--violet-rgb), 0.9), 0 18px 44px -14px rgba(var(--violet-rgb), 0.6); }
.cl-item.is-new { animation: cl-arrive 0.6s var(--ease-out) both; }
@keyframes cl-arrive { from { opacity: 0; scale: 0.9; translate: 0 18px; } }
.cl-item-position.is-moved { background: var(--violet); border-color: rgba(255, 255, 255, 0.5); }
.cl-item.is-removed { cursor: default; }
.cl-item.is-removed .cl-tile { opacity: 0.38; filter: grayscale(1); outline: 2px dashed rgba(var(--violet-rgb), 0.8); outline-offset: -2px; }
.cl-item.is-removed .cl-item-draft { background: var(--clay); box-shadow: 0 6px 18px rgba(var(--clay-rgb), 0.45); }
.cl-item.is-removed .cw-tile-name { text-decoration: line-through; }
.cl-item.is-removed .cl-item-grip, .cl-item.is-removed .cl-item-position { display: none; }
.cl-item-remove .cl-back { display: none; }
.cl-item.is-removed .cl-item-remove { opacity: 1; scale: 1; background: var(--violet); }
.cl-item.is-removed .cl-item-remove .cl-x { display: none; }
.cl-item.is-removed .cl-item-remove .cl-back { display: block; }
.cl-item.is-leaving { transition: opacity 0.2s, scale 0.2s; opacity: 0; scale: 0.85; }

.cl-review-product { display: inline-flex; align-items: center; gap: 10px; }
.cl-review-product img { width: 34px; height: 42px; object-fit: cover; border-radius: 8px; }
.cl-review-product.cw-review-was span { text-decoration: line-through; }
.cl-review-error:empty { display: none; }
.cl-review-error { margin: 12px 0 0; }
.cl-empty-cta[hidden] { display: none; }
.cl-new-eyebrow { display: flex; width: fit-content; margin: 14px 0 18px; color: var(--violet-ink); }
.cl-hero .cl-edit { margin-top: 2px; }
.cl-hero .hero-inner > .cl-edit + .cl-edit { margin-top: 10px; }
.cl-meta { align-items: center; }
.cl-hero .cl-meta .cl-edit { display: inline-flex; align-items: center; margin: 0; }
.cl-meta .cl-edit .cw-draft-value { margin-left: 8px; }
.cl-hero .chip.draft .dot, .cl-hero .chip.status-draft .dot { background: #f2c14e; }
.cl-hero .chip.live .dot { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.cl-review-value { font-weight: 650; color: var(--text); }
.cl-review-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cl-review-thumb { display: inline-block; width: 38px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--bg-sunk); }
.cl-review-strip-count { margin-left: 6px; font-size: 13px; color: var(--text-dim); }
.cl-hero.is-creating .cw-edit {
  --cw-edit-tint: rgba(var(--violet-rgb), 0.12);
  background: var(--cw-edit-tint);
  box-shadow: 0 0 0 5px var(--cw-edit-tint);
  outline: 1.5px dashed rgba(var(--violet-rgb), 0.65);
}
.cl-hero.is-creating .cw-edit:hover, .cl-hero.is-creating .cw-edit.is-editing { outline-style: solid; outline-color: var(--violet-ink); }
.cl-hero.is-creating .cw-edit > .cw-edit-pencil { opacity: 1; transform: none; border-color: rgba(var(--violet-rgb), 0.7); color: var(--violet-ink); }

.cl-create-dock {
  display: flex;
  justify-content: center;
  margin: 34px 0 10px;
}
.cl-create {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px 14px 26px;
  overflow: hidden;
  font: inherit;
  text-align: left;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  border: 1px solid rgba(var(--violet-rgb), 0.7);
  border-radius: 999px;
  background: linear-gradient(120deg, color-mix(in oklab, var(--violet), black 35%), color-mix(in oklab, var(--violet), black 10%));
  box-shadow: 0 18px 50px -12px rgba(var(--violet-rgb), 0.7), 0 0 0 6px rgba(var(--violet-rgb), 0.14);
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
  animation: cl-create-in 0.6s var(--ease-out) both;
}
@keyframes cl-create-in { from { opacity: 0; translate: 0 20px; } }
.cl-create:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -12px rgba(var(--violet-rgb), 0.85), 0 0 0 8px rgba(var(--violet-rgb), 0.18); }
.cl-create:active { transform: scale(0.97); }
.cl-create-copy { display: grid; gap: 1px; }
.cl-create-copy b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.cl-create-copy span { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.cl-create-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  border-radius: 50%;
  color: color-mix(in oklab, var(--violet), black 45%);
  background: var(--violet-ink);
  transition: transform 0.3s var(--ease-out);
}
.cl-create:hover .cl-create-arrow { transform: translateX(3px); }
.cl-create-sheen {
  position: absolute;
  inset: -50% auto -50% -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(12deg) translateX(-150%);
  animation: cl-sheen 3.6s var(--ease-out) 1s infinite;
  pointer-events: none;
}
@keyframes cl-sheen { 0%, 55% { transform: rotate(12deg) translateX(-150%); } 100% { transform: rotate(12deg) translateX(600%); } }
@media (prefers-reduced-motion: reduce) { .cl-create-sheen { animation: none; } }
.cl-hero.is-creating .hero-inner > .cl-edit + .cl-edit { margin-top: 24px; }
.cl-hero.is-creating .cl-meta { margin-top: 26px; gap: 18px; }
.cl-item-hide {
  position: absolute;
  top: 10px;
  right: 48px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(10, 16, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s, scale 0.25s var(--ease-out), background 0.2s;
}
.cl-item-hide svg { width: 15px; height: 15px; }
.cl-item-hide .cl-eye-off, .cl-item.is-hidden .cl-item-hide .cl-eye { display: none; }
.cl-item.is-hidden .cl-item-hide .cl-eye-off { display: contents; }
.cl-item:is(:hover, :focus-within) .cl-item-hide { opacity: 1; scale: 1; }
.cl-item-hide:hover { background: rgba(10, 16, 24, 0.85); scale: 1.08; }
.cl-item.is-removed .cl-item-hide { display: none; }
.cl-item.is-hidden .cl-tile .cw-tile-media { filter: grayscale(1) brightness(0.65); }
.cl-item.is-hidden .cl-tile { opacity: 0.6; }
.cl-item-hidden-mark {
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  translate: -50% -50%;
  border-radius: 999px;
  font: 700 12px var(--font-sans);
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10, 16, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.cl-item-hidden-mark svg { width: 14px; height: 14px; }
.cl-item.is-hidden:not(.is-removed) .cl-item-hidden-mark { display: inline-flex; }
@media (hover: none) { .cl-item-hide { opacity: 1; scale: 0.9; } }
.cl-card-wrap { position: relative; }
.cl-card-wrap > .cl-card { height: 100%; }
.cl-card-wrap form { margin: 0; }
.cl-card-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(var(--clay-rgb), 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s, scale 0.25s var(--ease-out), background 0.2s;
}
.cl-card-delete svg { width: 14px; height: 14px; }
.cl-card-wrap:is(:hover, :focus-within) .cl-card-delete { opacity: 1; scale: 1; }
.cl-card-delete:hover { background: var(--clay); scale: 1.08; }
@media (hover: none) { .cl-card-delete { opacity: 1; scale: 0.9; } }
.cl-card-hide {
  position: absolute;
  top: 12px;
  right: 52px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(12, 16, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s, scale 0.25s var(--ease-out), background 0.2s;
}
.cl-card-hide svg { width: 16px; height: 16px; }
.cl-card-wrap:is(:hover, :focus-within) .cl-card-hide, .cl-card-hide.is-hidden { opacity: 1; scale: 1; }
.cl-card-hide:hover { background: rgba(12, 16, 26, 0.95); scale: 1.08; }
@media (hover: none) { .cl-card-hide { opacity: 1; scale: 0.9; } }
.cl-collection.is-hidden .cl-mosaic { opacity: 0.45; filter: saturate(0.4); }
.cl-card-site {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: rgba(var(--teal-rgb), 0.3);
  border: 1px solid rgba(var(--teal-rgb), 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, scale 0.25s var(--ease-out);
}
.cl-card-site svg { width: 18px; height: 18px; }
.cl-card-site:hover { background: rgba(var(--teal-rgb), 0.55); scale: 1.08; }
.cl-card-wrap:has(.cl-card-site) .cl-card-body { padding-right: 60px; }
.cl-card-hidden-mark { position: absolute; top: 14px; left: 50%; translate: -50% 0; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(12, 16, 26, 0.85); color: #fff; font: 700 12px var(--font-sans); }
.cl-card-hidden-mark svg { width: 14px; height: 14px; }
.cl-card-hidden-mark[hidden] { display: none; }
:is(.cl-card-hidden-mark, .cl-card-hide) .cl-eye, :is(.cl-collection.is-hidden .cl-card-hidden-mark, .cl-card-hide.is-hidden) .cl-eye-off { display: contents; }
:is(.cl-card-hidden-mark, .cl-card-hide) .cl-eye-off, :is(.cl-collection.is-hidden .cl-card-hidden-mark, .cl-card-hide.is-hidden) .cl-eye { display: none; }
.cl-card-wrap.is-drafted .cl-collection { outline: 2px dashed rgba(var(--violet-rgb), 0.8); outline-offset: 3px; }
.cl-card-wrap.is-drafted .cl-card-hidden-mark { background: linear-gradient(120deg, rgba(var(--violet-rgb), 0.95), rgba(var(--blue-rgb), 0.9)); color: #14102a; }
.cl-card-wrap.is-drafted .cl-card-hide { opacity: 1; scale: 1; }
.cl-meta .chip svg { width: 13px; height: 13px; vertical-align: -2px; }
.cl-listing .cl-eye, .cl-listing.is-hidden .cl-eye-off { display: contents; }
.cl-listing .cl-eye-off, .cl-listing.is-hidden .cl-eye { display: none; }
.cw-toast-dismiss {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  font: 400 16px/1 var(--font-sans);
  color: var(--text-dim);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  opacity: 0.55;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.cw-toast-dismiss:hover, .cw-toast-dismiss:focus-visible { opacity: 1; color: var(--text); background: rgba(var(--tint-rgb), 0.12); }
.cl-edit.is-inline-editing { cursor: text; }
.cl-edit.is-inline-editing > .cw-edit-pencil { opacity: 0; }
.cl-edit [contenteditable] { outline: none; caret-color: var(--violet-ink); }
.cl-edit [contenteditable]:empty::before { content: attr(data-placeholder); opacity: 0.45; font-style: italic; }
.cl-edit .grad[contenteditable] { -webkit-text-fill-color: currentColor; color: #fff; }
.cl-review-block { display: none; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--clay-ink); }
.cw-review-row.is-blocked .cl-review-block { display: block; }
.cw-review-go.is-blocked { opacity: 0.4; cursor: not-allowed; filter: saturate(0.4); }

.hero .segmented[aria-label="Store"] { margin: 14px 0 6px; }
.catalogue.discounts td.value { font-weight: 600; color: var(--text); }
.catalogue.discounts .discount-title { font-weight: 600; color: var(--text); }
.catalogue.discounts .discount-codes { margin-left: 10px; font: 500 11.5px var(--font-sans); color: var(--text-dim); }
.catalogue.discounts .discount-automatic { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 1px 8px 1px 6px; border-radius: 999px; background: rgba(var(--violet-rgb), 0.14); color: var(--violet-ink); font: 650 11px var(--font-sans); }
.catalogue.discounts .discount-automatic svg { width: 12px; height: 12px; }
.catalogue.discounts td.sku { max-width: 420px; }
.hero h1.discount-name { font-family: var(--font-mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.discount-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.discount-kind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px; border-radius: 999px; background: rgba(var(--teal-rgb), 0.12); color: var(--teal-ink); font: 650 12px var(--font-sans); }
.discount-kind.automatic { background: rgba(var(--violet-rgb), 0.14); color: var(--violet-ink); }
.discount-kind svg { width: 13px; height: 13px; }
.discount-subtitle { color: var(--text-dim); font-size: 13px; }
.discount-tiles { margin-top: 18px; }
.discount-tiles .val { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.discount-tiles .sub { margin-top: 8px; }
.discount-add :disabled { opacity: 0.45; cursor: not-allowed; }
.discount-tiles .val.discount-date { font-size: clamp(1.3rem, 2.8vw, 1.8rem); letter-spacing: -0.02em; }
.discount-summary + .band .fields { margin-top: 14px; }

/* ─────────────────────────────────────────────────
   Styles: the new look, fields grouped by the level that holds them
   ───────────────────────────────────────────────── */
.st-levels { position: relative; display: grid; gap: 34px; margin-top: 28px; padding-left: 52px; }
.st-levels::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 17px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--teal), var(--blue), var(--violet), var(--cw, var(--teal)), var(--line));
  opacity: 0.5;
}
.st-level { --level-rgb: var(--teal-rgb); --level-ink: var(--teal-ink); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.st-level-fabrication { --level-rgb: var(--blue-rgb); --level-ink: var(--blue-ink); }
.st-level-style { --level-rgb: var(--violet-rgb); --level-ink: var(--violet-ink); }
.st-level-colourway, .st-level-sku { --level-rgb: 255, 255, 255; --level-ink: var(--text); }
.st-level-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.st-level-node {
  position: absolute;
  top: -4px;
  left: -52px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(rgba(var(--level-rgb), 0.14), rgba(var(--level-rgb), 0.14)), var(--bg);
  box-shadow: inset 0 0 0 1px rgba(var(--level-rgb), 0.4);
  color: var(--level-ink);
}
.st-level-node svg { width: 18px; height: 18px; }
.st-level-node .st-now-dot { width: 16px; height: 16px; animation: none; }
.st-level-name { display: inline-flex; align-items: baseline; gap: 10px; }
.st-level-name .lbl { color: var(--level-ink); }
.st-level-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.st-level-copy-icon { position: relative; display: inline-grid; width: 12px; height: 12px; opacity: 0; transition: opacity 0.15s; }
.st-level-copy-icon svg { grid-area: 1 / 1; width: 100%; height: 100%; transition: opacity 0.2s, scale 0.35s var(--ease-out), rotate 0.35s var(--ease-out); }
.st-level-copy-done { opacity: 0; scale: 0.3; rotate: -45deg; }
.st-level-copy-done path { stroke-width: 3; }
.st-level-copy:is(:hover, :focus-visible) .st-level-copy-text { text-decoration: underline; text-underline-offset: 3px; }
.st-level-copy:is(:hover, :focus-visible, .is-copied) .st-level-copy-icon { opacity: 1; }
.st-level-copy.is-copied .st-level-copy-link { opacity: 0; scale: 0.3; rotate: 45deg; }
.st-level-copy.is-copied .st-level-copy-done { opacity: 1; scale: 1; rotate: 0deg; }
.st-level-copy.is-copied .st-level-copy-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: st-copy-ring 0.6s var(--ease-out) forwards;
  pointer-events: none;
}
.st-level-copy-text { display: inline-block; }
.st-level-copy.is-copied .st-level-copy-text { animation: st-copy-pop 0.4s var(--ease-out); }
@keyframes st-copy-ring { from { opacity: 0.9; scale: 0.4; } to { opacity: 0; scale: 1.6; } }
@keyframes st-copy-pop { 40% { scale: 1.06; } }
@media (prefers-reduced-motion: reduce) {
  .st-level-copy-icon svg { transition: opacity 0.2s; }
  .st-level-copy.is-copied .st-level-copy-icon::after, .st-level-copy.is-copied .st-level-copy-text { animation: none; }
}
.st-level-title { font: 650 20px var(--font-display, var(--font-sans)); color: var(--text); }
.st-level-wide > .cw-card { border-top: 2px solid rgba(var(--level-rgb), 0.45); }
.st-fabric { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; }
.st-fabric-in { color: var(--text-dim); font: 500 15px var(--font-display, var(--font-sans)); }
.st-fabric > .cw-edit { border-radius: 999px; }
.st-fabric > .cw-edit > .cw-need-badge:not(.is-missing) { display: none; }
.st-fabric > .cw-edit { display: inline-flex; align-items: center; gap: 6px; }
.st-fabric .cw-edit-pencil { position: static; pointer-events: auto; opacity: 0.55; transform: none; }
.st-fabric > .cw-edit:is(:hover, :focus-visible, .is-editing) > .cw-edit-pencil { opacity: 1; }
.st-fabric-name {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--level-rgb), 0.45);
  background: rgba(var(--level-rgb), 0.12);
  color: var(--level-ink);
  font: 650 15px var(--font-display, var(--font-sans));
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
a.st-fabric-name:hover { border-color: rgba(var(--level-rgb), 0.8); background: rgba(var(--level-rgb), 0.2); }
.st-fabric-name.cw-empty { border-style: dashed; background: none; color: var(--text-dim); }
.st-fabric-assets { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; color: var(--text-dim); font-size: 13px; }
.st-fabric-assets li + li::before { content: "·"; margin-right: 12px; }
.st-level-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.cw-facts > div:has(> .st-family-image) { align-items: center; }
.st-family-image { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.st-family-image img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--bg-sunk); }
.st-level-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.st-level-pair > .cw-card, .st-level-row > .cw-card { border-top: 2px solid rgba(var(--level-rgb), 0.45); }
.st-level-pair.wide-first { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.st-level-wide { container-type: inline-size; }
.st-detail-groups { display: grid; gap: 8px 32px; margin-top: 14px; }
.st-facts-wide .cw-facts { column-gap: 32px; }
@container (min-width: 620px) {
  .st-detail-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-facts-wide .cw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 1040px) {
  .st-detail-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.st-detail-group { display: grid; align-content: start; min-width: 0; }
.st-detail-group > .lbl { color: var(--level-ink); }
.st-detail-group > .cw-facts { margin-top: 6px; }
.st-selling-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.st-selling-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "flag name" "price price" "links links";
  align-content: start;
  gap: 14px 12px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(var(--tint-rgb), 0.03);
  transition: opacity 0.25s, border-color 0.35s;
}
.st-selling-row:hover { border-color: color-mix(in oklab, var(--cw) 45%, var(--line)); }
.st-selling-row > .cw-market-flag { grid-area: flag; }
.st-selling-row > .cw-market-name { grid-area: name; align-self: center; }
.st-selling-row.off { opacity: 0.5; border-style: dashed; }
.st-selling-row.off:hover { opacity: 0.85; }
.st-selling-row.sale { border-color: rgba(var(--clay-rgb), 0.35); background: rgba(var(--clay-rgb), 0.05); }
.st-selling-price { grid-area: price; display: grid; gap: 2px; justify-items: start; }
.st-selling-amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.st-selling-amount.unpriced { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.st-selling-row.sale .st-selling-amount { color: var(--clay-ink); }
.st-selling-rrp { color: var(--text-dim); font-size: 13px; }
.st-selling-row:hover .cw-market-flag { transform: translateY(-3px) rotate(-8deg) scale(1.12); }
.st-selling-off { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--clay); color: #fff; font: 800 11px var(--font-sans); }
.st-selling-links { grid-area: links; padding-top: 12px; border-top: 1px solid var(--line); }
.st-level-links { display: flex; flex-wrap: wrap; gap: 8px; }
.st-level-link { text-decoration: none; color: var(--text-dim); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.st-level-link:hover { color: var(--text); }
.st-unknown { font-style: italic; opacity: 0.7; }
.st-level-link.on { border-color: rgba(var(--level-rgb), 0.5); background: rgba(var(--level-rgb), 0.14); color: var(--level-ink); }
.st-levels .cw-held { display: none; }
.hero.st-hero-style { min-height: 0; padding-bottom: 44px; }
.st-level[id] { scroll-margin-top: 24px; }
.st-level .st-rail { margin: 0; padding: 0; max-width: none; }
.st-level .st-rail-track { padding: 14px 6px 34px; }
.st-level .st-rail .cw-tile.is-picked { translate: 0 -8px; box-shadow: 0 0 0 2px var(--text), 0 18px 40px -16px color-mix(in oklab, var(--cw), transparent 30%); }
.st-level .st-rail .cw-tile.is-picked::before { bottom: -18px; background: var(--text); box-shadow: none; }
.st-level .st-archived-toggle { border-color: var(--line-strong); background: var(--bg-sunk); color: var(--text-dim); }
.st-level .st-archived-toggle:hover { border-color: var(--text-dim); color: var(--text); }
.st-level .st-archived-toggle b { color: var(--text); }
.st-level .st-archived-action { background: var(--bg-sunk); }
.st-level :is(.cw-drift, .cw-deviation) { margin: 0; }
.cw-tile > .cw-edit:has(> .cw-tile-status) { position: absolute; top: 10px; left: 10px; z-index: 3; border-radius: 999px; }
.cw-tile > .cw-edit > .cw-tile-status { position: static; transform: none; }
.cw-tile .cw-edit { --cw-edit-tint: rgba(255, 255, 255, 0.1); --cw-edit-edge: rgba(255, 255, 255, 0.3); }
.cw-tile .cw-edit-pencil { top: -8px; right: -10px; }
.cw-tile .cw-need-badge { display: none; }
.st-websites { margin-top: -6px; }
.st-shared-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.st-level .cw-skus { margin-top: 0; }

@media (max-width: 720px) {
  .st-levels { gap: 28px; padding-left: 0; }
  .st-level-pair.wide-first { grid-template-columns: minmax(0, 1fr); }
  .st-levels::before { display: none; }
  .st-level-head { padding-left: 44px; }
  .st-level-node { top: -6px; left: 0; width: 32px; height: 32px; box-shadow: inset 0 0 0 1px rgba(var(--level-rgb), 0.4); }
  .st-level-name { flex-wrap: wrap; }
  .st-level-title { font-size: 17px; }
}

.st-skeleton-card { display: grid; align-content: start; gap: 14px; min-height: 96px; border-top: 2px solid rgba(var(--level-rgb), 0.3); }
.st-skeleton-row { display: flex; justify-content: space-between; gap: 24px; padding-top: 12px; border-top: 1px dashed var(--line); }
.st-skeleton-bar { display: block; width: 30%; height: 12px; border-radius: 6px; background: var(--line); animation: pulse 1.6s ease-in-out infinite; }
.st-skeleton-row .st-skeleton-bar:last-child { width: 22%; animation-delay: 0.2s; }
.st-skeleton-heading { width: 26%; height: 16px; }
.st-skeleton-tiles { display: flex; gap: 16px; padding: 14px 6px 34px; overflow: hidden; }
.st-skeleton-tile { flex: none; width: 158px; aspect-ratio: 1; border-radius: 24px; background: color-mix(in oklab, var(--cw, var(--line)) 30%, var(--line)); animation: pulse 1.6s ease-in-out infinite; }
.st-skeleton-tile:nth-child(even) { animation-delay: 0.2s; }
.st-load-failed { padding: 24px 0; color: var(--text-dim); }

.np-new-style { display: flex; flex: 1; align-items: center; gap: 10px; }

.emoji-menu {
  position: fixed;
  inset: auto;
  width: max-content;
  min-width: 180px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--menu-bg);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font: 14px/1.3 var(--font-sans);
  list-style: none;
}
.emoji-menu li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emoji-menu li[aria-selected="true"] { background: rgba(var(--tint-rgb), 0.12); }
.emoji-option { font-size: 18px; line-height: 1; }

/* Collection rich filters */
.cl-band-head.rf-head { flex-direction: row; flex-wrap: wrap; align-items: center; }
.rf-head .hint { margin: 4px 0 0; }

.rf-none {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  color: var(--text-dim);
  font: 500 13.5px var(--font-sans);
}
.rf-none p { margin: 0; }
.rf-none-orbs { display: inline-flex; }
.rf-none-orbs i {
  width: 22px; height: 22px; border-radius: 50%;
  margin-left: -7px;
  border: 2px solid var(--bg-raised);
  background: linear-gradient(135deg, var(--cw, var(--teal)), var(--cw-light, var(--line-strong)));
  opacity: 0.55;
}
.rf-none-orbs i:first-child { margin-left: 0; opacity: 0.85; }
.rf-none-orbs i:nth-child(2) { opacity: 0.65; }

@keyframes rf-in { from { opacity: 0; transform: translateY(6px); } }
.rf-row[hidden], .rf-none[hidden], .rf-heading[hidden] { display: none; }


.rf-row {
  list-style: none;
  margin: -12px -12px 0;
  padding: 14px 14px 10px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.rf-tile {
  display: grid;
  gap: 3px;
  align-content: start;
  cursor: grab;
  animation: rf-in 0.45s var(--ease-out) both;
  animation-delay: calc(var(--i) * 40ms);
  transition: opacity 0.25s, filter 0.25s, transform 0.2s;
}
.rf-tile:active { cursor: grabbing; }
.rf-row.sorting { user-select: none; }
.rf-row.sorting .rf-tile:not(.dragging) { opacity: 0.6; transition: opacity 0.2s; }
.rf-row.sorting .rf-tile.dragging { position: relative; z-index: 10; cursor: grabbing; scale: 1.05; rotate: -2deg; transition: scale 0.15s, rotate 0.15s; }
.rf-row.sorting > .rf-tile.dragging { box-shadow: none; }
.rf-tile.dragging .rf-media { box-shadow: 0 30px 70px -10px rgba(6, 10, 18, 0.6); }
.rf-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  background: linear-gradient(150deg, color-mix(in oklab, var(--cw, var(--teal)) 30%, var(--bg-sunk)), var(--bg-sunk));
  box-shadow: var(--shadow-sm);
}
.rf-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease-out); }
.rf-tile:hover .rf-media img { transform: scale(1.05); }
.rf-orb {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 750 2.6rem var(--font-sans);
  color: color-mix(in oklab, var(--cw, var(--teal)) 55%, var(--text));
  opacity: 0.5;
}
.rf-missing {
  position: absolute; left: 10px; bottom: 10px;
  font: 600 11px var(--font-sans);
  padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.4); color: #fff;
  backdrop-filter: blur(6px);
}
.rf-pos {
  position: absolute; top: 8px; left: 8px;
  display: grid; place-items: center;
  height: 26px; min-width: 26px; padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42); color: #fff;
  backdrop-filter: blur(6px);
  font: 700 11.5px var(--font-sans);
}
.rf-name { font: 700 14px var(--font-sans); letter-spacing: -0.005em; }
.rf-byline { font: 500 12.5px/1.35 var(--font-sans); color: var(--text-dim); }
.rf-byline.is-empty { font-style: italic; opacity: 0.7; }
.rf-count { font: 600 11.5px var(--font-sans); color: color-mix(in oklab, var(--cw, var(--teal)) 70%, var(--text)); margin-top: 2px; }

@media (max-width: 640px) {
  .rf-row { grid-auto-columns: 136px; gap: 10px; }
}

.rf { display: grid; gap: 16px; }
.rf > header { margin-bottom: 0; }
.rf-add { flex: none; }
.rf-kind { font: 650 10.5px var(--font-sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
.rf-picker-hint { margin: 0 0 14px; font-size: 13px; color: var(--text-dim); }
.rf-tabs { margin: 0 26px 10px; justify-self: start; }
.rf-picker-form { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.rf-candidate-media { position: relative; aspect-ratio: 4 / 5; }
.rf-candidate-media .rf-missing { left: 8px; bottom: 8px; font-size: 10.5px; }
.cl-candidate.is-added .cl-look-added { display: block; }
@media (max-width: 640px) { .rf-tabs { margin: 0 16px 10px; } }

.rf-heading { max-width: none; }
.rf-draft:empty { display: none; }
.rf-draft {
  position: absolute; left: 40px; top: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--violet); color: #1b1235;
  font: 700 11px var(--font-sans);
}
.rf-tile.is-new .rf-media { outline: 2px dashed rgba(var(--violet-rgb), 0.8); outline-offset: 3px; }
.rf-pos.is-moved { background: var(--violet); color: #1b1235; }
.rf-count.is-empty { color: var(--clay-ink, #c2410c); }
.rf-media [hidden], .rf-candidate-media [hidden], .cl-candidate[hidden] { display: none; }
.cl-candidate-meta.is-empty { color: var(--clay-ink, #c2410c); }
.rf-media [data-rf-own][hidden] { display: none; }
.rf-picker [data-rf-pane-empty][hidden], .rf-picker [data-rf-pane-hint][hidden] { display: none; }
.rf-tile { position: relative; }
.rf-more {
  position: absolute; top: 8px; right: 8px;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: none; border-radius: 999px;
  background: rgba(0, 0, 0, 0.42); color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.rf-more svg { width: 16px; height: 16px; }
.rf-tile:hover .rf-more, .rf-more:focus-visible, .rf-more[aria-expanded="true"] { opacity: 1; }
.rf-more:hover, .rf-more[aria-expanded="true"] { background: rgba(0, 0, 0, 0.7); }
@media (hover: none) { .rf-more { opacity: 1; } }
.rf-menu {
  position: absolute; top: 42px; left: calc(100% - 36px); z-index: 5;
  display: grid; gap: 2px;
  min-width: 200px;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: rf-in 0.18s var(--ease-out);
}
.rf-menu[hidden] { display: none; }
.rf-menu button {
  display: grid; gap: 2px; text-align: left;
  padding: 8px 10px;
  border: none; border-radius: 10px;
  background: none; color: var(--text);
  cursor: pointer;
}
.rf-menu button[hidden] { display: none; }
.rf-menu button:hover, .rf-menu button:focus-visible { background: color-mix(in oklab, var(--text) 8%, transparent); }
.rf-menu b { font: 650 13px var(--font-sans); }
.rf-menu span { font: 500 11.5px var(--font-sans); color: var(--text-dim); }
.rf-menu .is-danger b { color: var(--clay-ink, #e2876b); }
.rf-row.sorting :is(.rf-more, .rf-menu) { display: none; }
.rf-tile:has(> .rf-menu:not([hidden])) { z-index: 6; }
.rf-shot-panels { display: grid; gap: 14px; margin-top: 18px; }
.rf-shot-panels:empty { display: none; }
.rf-shot-panel {
  display: grid; gap: 10px;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--teal-rgb), 0.35);
  background: rgba(var(--teal-rgb), 0.05);
  animation: rf-in 0.3s var(--ease-out);
}
.rf-shot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rf-shot-head b { font: 700 13.5px var(--font-sans); }
.rf-shot-head span { font: 500 12px var(--font-sans); color: var(--text-dim); }
.rf-shot-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 10px;
  overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin;
}
.rf-shot-strip .cl-candidate-name { font-size: 11.5px; line-height: 1.3; }
.rf-shot-strip .cl-candidate-check { scale: 0.85; }
.cl-items .cl-item:is(.is-filtered-out, .is-searched-out) { display: none; }
.cl-band-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cl-product-search { flex: 0 1 300px; margin: 0; }
.cl-product-search svg { left: 14px; width: 16px; height: 16px; }
.cl-product-search input { box-sizing: border-box; height: 40px; padding: 0 14px 0 38px; font-size: 14px; border-radius: 12px; }
.rf-tile { cursor: pointer; }
.rf-tile .rf-media { transition: outline-color 0.2s, box-shadow 0.25s, translate 0.25s var(--ease-out); outline: 3px solid transparent; outline-offset: 3px; }
.rf-tile.is-active .rf-media { outline-color: var(--teal); box-shadow: 0 18px 40px -14px rgba(var(--teal-rgb), 0.7); translate: 0 -4px; }
.rf-tile.is-active .rf-name { color: var(--teal-ink); }
.rf-row.has-active .rf-tile:not(.is-active) { opacity: 0.5; }
.rf-row.has-active .rf-tile:not(.is-active):hover { opacity: 0.8; }
.rf-preview {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin: 10px 0 0; padding: 8px 8px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--teal-rgb), 0.45);
  background: rgba(var(--teal-rgb), 0.08);
  color: var(--teal-ink);
  font: 600 13px var(--font-sans);
  width: fit-content;
  animation: rf-in 0.25s var(--ease-out);
}
.rf-preview[hidden] { display: none; }
.rf-preview-clear {
  border: none; border-radius: 999px;
  padding: 5px 12px;
  background: rgba(var(--teal-rgb), 0.18); color: var(--teal-ink);
  font: 650 12px var(--font-sans);
  cursor: pointer;
}
.rf-preview-clear:hover { background: rgba(var(--teal-rgb), 0.3); }
.cl-seo .cw-care, .rf-heading .cw-care { margin: 0; padding: 0; background: none; border-radius: 0; }
.cl-seo > .cw-edit, .rf-heading { border-radius: 8px; }
.cl-seo-rule { margin: 16px 0; border: none; border-top: 1px solid var(--line); }
.cl-seo .info-tip-button { color: var(--blue); opacity: 1; background: none; }
.cl-seo .info-tip-button svg { width: 16px; height: 16px; }
.cl-seo .info-tip-button:hover, .cl-seo .info-tip-button:focus-visible { color: var(--blue-ink); background: none; }
.cl-item-site {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: rgba(var(--teal-rgb), 0.55);
  border: 1px solid rgba(var(--teal-rgb), 0.7);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, scale 0.25s var(--ease-out);
}
.cl-item-site[hidden] { display: none; }
.cl-item-site svg { width: 16px; height: 16px; }
.cl-item-site:hover { background: rgba(var(--teal-rgb), 0.75); scale: 1.08; }
.cl-item:has(.cl-item-site:not([hidden])) .cw-tile-body { padding-right: 48px; }
.cl-items.sorting .cl-item-site { display: none; }
.rf-menu.is-leftward { left: auto; right: 8px; }

.title-tip {
  position: fixed;
  z-index: 1000;
  width: max-content;
  max-width: min(440px, 92vw);
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(30, 38, 52, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  color: #fff;
  font: 500 12.5px/1.45 var(--font-sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.title-tip.shown { opacity: 1; }
.title-tip[popover] { inset: auto; margin: 0; overflow: visible; }
.title-tip { white-space: pre-line; overflow-wrap: anywhere; }
.order-action-tip-text { display: none; }
.title-tip:has(> .tip-icon) { display: flex; align-items: flex-start; gap: 8px; }
.title-tip .tip-rows { display: grid; grid-template-columns: auto auto; gap: 5px 16px; margin: 0; }
.title-tip .tip-rows > div { display: contents; }
.title-tip .tip-rows dt { color: rgba(255, 255, 255, 0.6); }
.title-tip .tip-rows dd { margin: 0; text-align: right; white-space: nowrap; }
.title-tip .tip-rows b { font-weight: 650; }
.title-tip .tip-time { color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.title-tip .tip-missing { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, 0.5); font-style: italic; }
.title-tip .tip-missing svg { width: 13px; height: 13px; }
.title-tip .tip-note { margin: 0; color: rgba(255, 255, 255, 0.7); }
.title-tip :is(.tip-rows, .tip-note) + .tip-note { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.title-tip .tip-rows:last-child { margin-bottom: 0; }
.title-tip .tip-icon { display: grid; flex: none; margin-top: 1px; color: var(--text-dim); }
.title-tip .tip-icon.amber { color: rgb(255, 196, 77); }
.title-tip .tip-icon svg { width: 15px; height: 15px; }
.title-tip .tip-rows dt { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
:is(.title-tip, .order-item-return-failure) .tip-who { --tone: var(--tint-rgb); display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px 1px 5px; border-radius: 999px; background: rgba(var(--tone), 0.16); color: rgb(var(--tone)); font-weight: 600; }
:is(.title-tip, .order-item-return-failure) .tip-who svg { width: 12px; height: 12px; }
:is(.title-tip, .order-item-return-failure) .tip-who.blue { --tone: var(--blue-rgb); color: var(--blue-ink); }
:is(.title-tip, .order-item-return-failure) .tip-who.violet { --tone: var(--violet-rgb); color: var(--violet-ink); }
:is(.title-tip, .order-item-return-failure) .tip-who.clay { --tone: var(--clay-rgb); color: var(--clay-ink); }
:is(.title-tip, .order-item-return-failure) .tip-who.pink { --tone: var(--pink-rgb); color: var(--pink-ink); }
:is(.title-tip, .order-item-return-failure) .tip-who.teal { --tone: var(--teal-rgb); color: var(--teal-ink); }
:is(.title-tip, .order-item-return-failure) .tip-who.shopify { --tone: 149, 191, 71; color: #c3e388; }
.title-tip .tip-date { display: inline-flex; align-items: center; gap: 6px; }
.title-tip .tip-date svg { width: 13px; height: 13px; color: rgba(255, 255, 255, 0.5); }
.title-tip .tip-code { font: 600 12px var(--font-mono); color: #ff9a9a; }

.for-cs-done { position: relative; }
.for-cs-done > summary { list-style: none; }
.for-cs-done > summary::-webkit-details-marker { display: none; }
.for-cs-done-form { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); display: flex; gap: 8px; width: min(420px, 80vw); padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); box-shadow: var(--shadow-md); }
.for-cs-done-form input[type=text] { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised); color: var(--text); font: inherit; font-size: 13px; }

.size-strip { display: inline-flex; align-items: stretch; width: fit-content; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(var(--tint-rgb), .03); font-variant-numeric: tabular-nums; vertical-align: middle; }
.size-strip-part { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.size-strip-part + .size-strip-part { border-left: 1px solid var(--line); }
.size-strip-part small { color: var(--text-dim); font-size: 10.5px; font-weight: 500; }
.size-strip-from .changed { background: rgba(var(--clay-rgb), .1); color: var(--clay-ink); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(var(--clay-rgb), .7); }
.size-strip-to .changed { background: rgba(var(--teal-rgb), .1); color: var(--teal-ink); }
.size-strip-part.changed small { color: color-mix(in srgb, currentColor 70%, transparent); }
span.size-strip-to:not(:has(.size-strip-part)) { padding: 3px 9px; color: var(--text-dim); font-size: 12.5px; }
.size-arrow { flex: none; width: 22px; height: 12px; fill: none; stroke: var(--text-dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

q.return-reason { display: block; flex-basis: 100%; color: var(--text-dim); font-size: 12.5px; font-style: italic; quotes: "\201C" "\201D"; }

.pc-index { display: grid; gap: 18px; }
.pc-list { position: relative; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: pc; }
.pc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised, rgba(255, 255, 255, 0.03));
  counter-increment: pc;
}
.pc-row::before { content: counter(pc); min-width: 1.6em; color: var(--text-dim); font: 600 12px var(--font-sans); font-variant-numeric: tabular-nums; text-align: right; }
.pc-grip.pj-task-grip { opacity: 1; color: var(--text-dim); }
.pc-grip:hover, .pc-grip:focus-visible { color: var(--teal-ink); }
.pc-swatch-field { display: inline-flex; align-items: center; gap: 12px; }
.pc-swatch { flex: none; width: 40px; height: 40px; border-radius: 6px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(var(--tint-rgb), 0.14); }
.pc-swatch-none { background: none; box-shadow: inset 0 0 0 1px var(--line-strong); }
.pc-hex { min-width: 8ch; color: var(--text-dim); font: 500 12.5px var(--font-mono); }
.pc-body { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pc-name { margin: 0; font-size: 1.05rem; }
.pc-count { color: var(--text-dim); font: 500 12.5px var(--font-sans); text-decoration: none; }
a.pc-count:hover { color: var(--teal-ink); }
.pc-delete { display: grid; justify-items: end; gap: 4px; }
.pc-delete .oops { margin: 0; max-width: 260px; text-align: right; }

@media (max-width: 600px) {
  .pc-row { flex-wrap: wrap; gap: 8px 12px; }
  .pc-delete { order: 1; margin-left: auto; }
  .pc-body { order: 2; flex-basis: 100%; }
}
