/*
  Sticker Studio CSS map, 2026-06-28 hygiene pass.
  This file is still intentionally loaded as one stylesheet; the section map
  documents the current cascade before any future physical split.

  Sections:
  01 Foundation, tokens, reset, body base
  02 Local review tools chrome
  03 Base shell, topbar, workspace, audience visibility
  04 Builder controls, designer canvas, Starter Pack, template fields
  05 Template and asset pickers
  06 Global controls, forms, spec controls, order rail, workflow panels
  07 Proof frame, draft preview, operator/shop bench, artifacts
  08 Base responsive pass
  09 Approved Sticker Studio shell
  10 Sticker Studio mock-accurate alignment
  11 Sticker Studio lower workspace polish
  12 Recipe-first Studio shell translation
  13 Sticker Studio hierarchy cleanup
  14 Gang-sheet cutter Slice 1
*/

/* 01 Foundation, tokens, reset, body base */
:root {
  color-scheme: light;
  --ink: #0f0f0f;
  --graphite: #2f302d;
  --muted: #66615a;
  --line: #d8d1c7;
  --paper: #fbfaf7;
  --surface: #f1eee8;
  --panel: #fffdfa;
  --command: rgba(251, 250, 247, 0.96);
  --accent: #00a88f;
  --accent-soft: #f3fffb;
  --accent-ink: #087b6f;
  --teal: #0b6f66;
  --active-teal: #00a88f;
  --cyan: #34c7ee;
  --purple: #7a55c7;
  --active-purple: #3f286f;
  --studio-accent: linear-gradient(90deg, var(--cyan), var(--accent), var(--purple));
  --warm: #c89a37;
  --ok: #17835b;
  --warn: #ae6416;
  --danger: #9f351f;
  --shadow: 0 18px 42px rgba(15, 15, 15, 0.13);
  --soft-shadow: 0 10px 24px rgba(15, 15, 15, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden],
.form-value-source {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 15, 15, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--surface) 58%, var(--paper));
  background-size: 34px 34px, 34px 34px, auto;
  color: var(--ink);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

/* 02 Local review tools chrome */
.local-review-tools {
  position: fixed;
  right: auto;
  bottom: 14px;
  left: 14px;
  z-index: 80;
  width: min(178px, calc(100vw - 28px));
  border: 1px solid rgba(15, 15, 15, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 16px 34px rgba(15, 15, 15, 0.16);
  padding: 0;
  backdrop-filter: blur(12px);
}

.local-review-tools[open] {
  width: min(460px, calc(100vw - 28px));
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) {
  right: 14px;
  left: auto;
  width: 46px;
}

body[data-demo-audience="builder"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) {
  width: 46px;
}

.local-review-tools summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.local-review-tools summary::-webkit-details-marker {
  display: none;
}

.local-review-tools summary::after {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 168, 143, 0.22);
  border-radius: 999px;
  background: rgba(0, 168, 143, 0.08);
  color: #0b6f66;
  font-size: 13px;
  font-weight: 950;
  content: "+";
}

.local-review-tools[open] summary::after {
  content: "-";
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary {
  grid-template-columns: 1fr;
  min-height: 46px;
  place-items: center;
  padding: 8px;
}

body[data-demo-audience="builder"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary {
  grid-template-columns: 1fr;
  min-height: 46px;
  place-items: center;
  padding: 8px;
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary span,
body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary strong,
body[data-demo-audience="builder"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary span,
body[data-demo-audience="builder"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary strong {
  display: none;
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary::after {
  width: 28px;
  height: 28px;
}

body[data-demo-audience="builder"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary::after {
  width: 28px;
  height: 28px;
}

.local-review-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(15, 15, 15, 0.1);
  padding: 0 10px 10px;
}

.local-review-tools div,
.local-review-tools summary {
  min-width: 0;
}

.local-review-tools span,
.local-review-tools small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 830;
  line-height: 1.1;
}

.local-review-tools span {
  color: #0b6f66;
  text-transform: uppercase;
}

.local-review-tools strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.12;
}

.local-review-tools small {
  margin-top: 2px;
}

.local-review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.local-review-links a {
  display: inline-flex;
  min-height: 30px;
  min-width: 0;
  align-items: center;
  border: 1px solid rgba(0, 168, 143, 0.22);
  border-radius: 7px;
  background: rgba(0, 168, 143, 0.08);
  color: #0b6f66;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  white-space: normal;
}

.local-review-links a[aria-current] {
  border-color: rgba(15, 15, 15, 0.22);
  background: rgba(15, 15, 15, 0.08);
  color: var(--muted);
}

.local-review-readiness {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.local-review-readiness div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.64);
  padding: 7px;
}

.local-review-readiness span,
.local-review-readiness strong {
  overflow-wrap: anywhere;
}

.local-review-readiness span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.local-review-readiness strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
}

.local-review-tools button {
  flex: 0 0 auto;
  grid-column: 1 / -1;
  justify-self: start;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.local-review-tools button:hover,
.local-review-tools button:focus-visible {
  background: #26332f;
}

/* 03 Base shell, topbar, workspace, audience visibility */
button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 16px;
}

.studio {
  position: relative;
  min-height: calc(100vh - 32px);
  background: rgba(251, 250, 247, 0.9);
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.studio::before {
  position: absolute;
  top: -1px;
  left: 26px;
  z-index: 2;
  width: 140px;
  height: 3px;
  background: var(--studio-accent);
  content: "";
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.16);
  background: var(--command);
  backdrop-filter: blur(14px);
  color: var(--ink);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h1::before {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  font-size: 15px;
  font-weight: 950;
  box-shadow: 1px 2px 0 rgba(15, 15, 15, 0.5);
  content: "DV";
  transform: rotate(-2deg);
}

.topbar p {
  margin-top: 6px;
  color: var(--active-purple);
  font-size: 13px;
  font-weight: 800;
}

.status {
  min-width: 132px;
  padding: 8px 11px;
  border: 1px solid rgba(0, 168, 143, 0.34);
  border-radius: 999px;
  background: #f3fffb;
  color: var(--accent-ink);
  text-align: center;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, 430px);
  gap: 0;
}

body[data-demo-audience="customer"] .workspace,
body[data-demo-audience="shop"] .workspace {
  grid-template-columns: minmax(0, 1fr);
}

body[data-demo-audience="customer"] .result,
body[data-demo-audience="shop"] .result {
  padding: 20px clamp(18px, 4vw, 48px);
}

body[data-demo-audience="customer"] .controls,
body[data-demo-audience="customer"] .mobile-quick-start,
body[data-demo-audience="customer"] .builder-brief,
body[data-demo-audience="customer"] .review-files-panel,
body[data-demo-audience="customer"] .status-grid,
body[data-demo-audience="customer"] .summary,
body[data-demo-audience="customer"] .operator-stack,
body[data-demo-audience="customer"] .technical-drawer,
body[data-demo-audience="customer"] .proof-view-toggle,
body[data-demo-audience="shop"] .controls,
body[data-demo-audience="shop"] .mobile-quick-start,
body[data-demo-audience="shop"] .builder-brief,
body[data-demo-audience="shop"] .customer-summary-panel,
body[data-demo-audience="shop"] .builder-proof-decision-panel,
body[data-demo-audience="shop"] .summary {
  display: none;
}

body[data-demo-audience="customer"] .proof-frame,
body[data-demo-audience="shop"] .proof-frame {
  min-height: 560px;
}

body[data-demo-audience="customer"] .proof-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
}

body[data-demo-audience="shop"] .operator-stack,
body[data-demo-audience="shop"] .review-files-panel {
  background: rgba(255, 255, 255, 0.045);
}

body[data-demo-audience="shop"] .result {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--graphite);
  background-size: 30px 30px, 30px 30px, auto;
  color: var(--paper);
}

body[data-demo-audience="shop"] .order-rail,
body[data-demo-audience="shop"] .approval-strip div,
body[data-demo-audience="shop"] .review-files-panel,
body[data-demo-audience="shop"] .status-card,
body[data-demo-audience="shop"] .operator-stack,
body[data-demo-audience="shop"] .preflight-panel,
body[data-demo-audience="shop"] .decision-panel,
body[data-demo-audience="shop"] .provider-panel,
body[data-demo-audience="shop"] .acceptance-panel,
body[data-demo-audience="shop"] .readiness-panel,
body[data-demo-audience="shop"] .artifact-group,
body[data-demo-audience="shop"] .technical-drawer {
  border-color: rgba(251, 250, 247, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper);
}

body[data-demo-audience="shop"] .order-rail-item,
body[data-demo-audience="shop"] .summary div {
  border-color: rgba(251, 250, 247, 0.12);
  background: rgba(15, 15, 15, 0.18);
}

body[data-demo-audience="shop"] .order-rail-header span,
body[data-demo-audience="shop"] .order-rail-item span,
body[data-demo-audience="shop"] .approval-strip span,
body[data-demo-audience="shop"] .review-files-header span,
body[data-demo-audience="shop"] .operator-stack-header span,
body[data-demo-audience="shop"] .preflight-header span,
body[data-demo-audience="shop"] .decision-panel > div:first-child > span,
body[data-demo-audience="shop"] .provider-panel > div:first-child > span,
body[data-demo-audience="shop"] .artifact-group > span,
body[data-demo-audience="shop"] .summary dt,
body[data-demo-audience="shop"] .status-card span,
body[data-demo-audience="shop"] .technical-drawer summary {
  color: var(--cyan);
}

body[data-demo-audience="shop"] .order-rail-header strong,
body[data-demo-audience="shop"] .order-rail-item strong,
body[data-demo-audience="shop"] .approval-strip strong,
body[data-demo-audience="shop"] .review-files-header strong,
body[data-demo-audience="shop"] .operator-stack-header strong,
body[data-demo-audience="shop"] .preflight-header strong,
body[data-demo-audience="shop"] .decision-panel strong,
body[data-demo-audience="shop"] .provider-panel strong,
body[data-demo-audience="shop"] .status-card strong,
body[data-demo-audience="shop"] .summary dd {
  color: var(--paper);
}

body[data-demo-audience="shop"] .order-rail-item small,
body[data-demo-audience="shop"] .decision-panel p,
body[data-demo-audience="shop"] .provider-panel p,
body[data-demo-audience="shop"] .artifact-empty,
body[data-demo-audience="shop"] #manualFlags {
  color: rgba(251, 250, 247, 0.68);
}

body[data-demo-audience="shop"] .proof-frame {
  border-color: rgba(52, 199, 238, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(52, 199, 238, 0.1), transparent 44%),
    #161814;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

body[data-demo-audience="shop"] .proof-toolbar,
body[data-demo-audience="shop"] .proof-confidence,
body[data-demo-audience="shop"] .inspection-legend {
  border-color: rgba(251, 250, 247, 0.12);
  background: rgba(15, 15, 15, 0.82);
  color: var(--paper);
}

body[data-demo-audience="shop"] .proof-stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(52, 199, 238, 0.1), transparent 44%),
    #161814;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

body[data-demo-audience="shop"] .proof-toolbar span,
body[data-demo-audience="shop"] .proof-confidence span,
body[data-demo-audience="shop"] .inspection-legend span {
  color: var(--cyan);
}

body[data-demo-audience="shop"] .proof-toolbar strong,
body[data-demo-audience="shop"] .proof-view-note,
body[data-demo-audience="shop"] .proof-confidence strong,
body[data-demo-audience="shop"] .proof-confidence p {
  color: var(--paper);
}

/* 04 Builder controls, designer canvas, Starter Pack, template fields */
.controls {
  grid-column: 2;
  grid-row: 1;
  padding: 18px;
  border-right: 1px solid rgba(15, 15, 15, 0.14);
  border-left: 1px solid rgba(15, 15, 15, 0.14);
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 15, 15, 0.02) 1px, transparent 1px),
    var(--panel);
  background-size: 30px 30px, 30px 30px, auto;
}

.control-group {
  margin-bottom: 18px;
}

.group-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 14px;
  border: 1px dashed rgba(0, 168, 143, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 168, 143, 0.09), rgba(255, 255, 255, 0.88)),
    #f6fffb;
}

.dropzone input {
  width: 118px;
}

.dropzone input::file-selector-button {
  margin-right: 8px;
  border: 1px solid rgba(15, 15, 15, 0.16);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 9px;
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone strong {
  font-size: 15px;
  font-weight: 950;
}

.dropzone span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 18px;
}

.demo-row button,
.mobile-quick-actions button {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.demo-row button strong,
.demo-row button small,
.mobile-quick-actions button strong,
.mobile-quick-actions button small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-row button strong,
.mobile-quick-actions button strong {
  font-size: 13px;
  line-height: 1.15;
}

.demo-row button small,
.mobile-quick-actions button small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.demo-row button[data-demo="review"] {
  grid-column: 1 / -1;
}

.studio-view {
  min-width: 0;
}

.studio-view[hidden] {
  display: none !important;
}

.browse-gallery {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.browse-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.browse-gallery-head span,
.browse-gallery-head strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.browse-gallery-head h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  font-weight: 950;
}

.browse-gallery-intro {
  max-width: 680px;
  margin: 8px 0 0;
  color: #4f6069;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

.browse-filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.browse-filter-rail button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.browse-filter-rail button[aria-pressed="true"] {
  border-color: rgba(0, 137, 111, 0.62);
  background: #e7fbf6;
  color: var(--accent-ink);
}

.browse-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}

.browse-template-card {
  display: grid;
  gap: 9px;
  content-visibility: auto;
  contain-intrinsic-size: 250px 300px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: 0 12px 28px rgba(43, 35, 25, 0.06);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.browse-template-card:hover {
  border-color: rgba(0, 137, 111, 0.48);
  background: #fff;
  box-shadow: 0 16px 34px rgba(43, 35, 25, 0.12);
}

.browse-template-thumb {
  position: relative;
  min-height: 152px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 15, 15, 0.035) 1px, transparent 1px),
    #f7f3ec;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain, 18px 18px, 18px 18px;
}

.browse-template-thumb::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(15, 15, 15, 0.28);
  font-size: 34px;
  font-weight: 950;
  content: attr(data-template-initials);
  pointer-events: none;
}

.browse-template-thumb[style*="background-image"]::after {
  content: "";
}

.browse-template-card-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.browse-template-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.08;
}

.browse-template-card span {
  color: #5b6972;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;
}

.browse-template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.browse-template-tags small {
  padding: 4px 6px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 999px;
  color: #4e6069;
  background: #f4f8f8;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.browse-template-tags small[data-browse-tag="personalizable"] {
  border-color: rgba(0, 137, 111, 0.34);
  color: var(--accent-ink);
  background: #e7fbf6;
}

.browse-template-card-action {
  justify-self: start;
  margin-top: 2px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.customize-shell {
  display: grid;
  gap: 14px;
  max-width: 1380px;
  margin: 0 auto;
}

.customize-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: #fffdfa;
  padding: 12px;
  box-shadow: var(--soft-shadow);
}

.customize-header button {
  flex: 0 0 auto;
  min-height: 36px;
  border-color: rgba(0, 137, 111, 0.24);
  background: #f1fffb;
  color: #087b6f;
}

.customize-header div {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.customize-header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.customize-header h2 {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.customize-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 14px;
  align-items: start;
}

.customize-designer-mount {
  min-width: 0;
}

.customize-designer-mount .designer-panel {
  margin-bottom: 0;
}

.customize-quantity-panel {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 12px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--soft-shadow);
}

.customize-quantity-head {
  display: grid;
  gap: 3px;
}

.customize-quantity-head span,
.template-field-color small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.customize-quantity-head strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.customize-quantity-head small {
  color: #087b6f;
  font-size: 13px;
  font-weight: 850;
}

.customize-quantity-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.customize-quantity-tiers button {
  display: grid;
  gap: 2px;
  min-height: 54px;
  border-color: rgba(15, 15, 15, 0.12);
  background: #fffdfa;
  padding: 8px;
  text-align: left;
}

.customize-quantity-tiers button.is-active {
  border-color: rgba(0, 137, 111, 0.7);
  background: #eafff8;
  box-shadow: inset 0 0 0 1px rgba(0, 137, 111, 0.16);
}

.customize-quantity-tiers strong,
.customize-quantity-tiers span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.customize-quantity-tiers strong {
  font-size: 17px;
  line-height: 1;
}

.customize-quantity-tiers span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.customize-add-order {
  min-height: 42px;
  background: var(--ink);
  color: var(--paper);
}

.template-field-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.template-field-input-group {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.template-field-count {
  justify-self: end;
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
}

.template-field-color {
  display: grid;
  gap: 3px;
  justify-items: center;
}

.template-field-color input[type="color"] {
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(13, 26, 39, 0.14);
  border-radius: 7px;
  background: transparent;
}

body[data-studio-view="customize"] .customize-shell {
  max-width: 1520px;
  padding: 0 clamp(12px, 1.6vw, 22px) 18px;
}

body[data-studio-view="customize"] .customize-header {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  min-height: 58px;
  border-radius: 0;
  box-shadow: none;
}

body[data-studio-view="customize"] .customize-header div {
  text-align: left;
}

body[data-studio-view="customize"] .customize-workspace {
  display: grid;
  grid-template-columns: minmax(72px, 84px) minmax(260px, 330px) minmax(420px, 1fr) minmax(300px, 360px);
  grid-template-areas: "studio-tools studio-builder studio-builder studio-inspector";
  gap: 0;
  align-items: stretch;
  min-height: min(860px, calc(100vh - 162px));
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgba(19, 32, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 39, 0.045) 1px, transparent 1px),
    #fffdfa;
  background-size: 24px 24px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

body[data-studio-view="customize"] .customize-studio-tools {
  grid-area: studio-tools;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px 10px;
  border-right: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

body[data-studio-view="customize"] .customize-studio-tools button,
body[data-studio-view="customize"] .customize-studio-tools label {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  min-height: 66px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #52636d;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

body[data-studio-view="customize"] .customize-studio-tools button:focus-visible {
  border-color: #087b6f;
  background: rgba(0, 168, 143, 0.1);
  color: #087b6f;
  outline: 3px solid #087b6f;
  outline-offset: 2px;
}

body[data-studio-view="customize"] .customize-studio-tools span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 7px;
  background: #ffffff;
  color: #20313a;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

body[data-studio-view="customize"] .customize-studio-tools strong {
  display: block;
  min-width: 0;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-studio-view="customize"] .customize-designer-mount {
  grid-area: studio-builder;
  min-width: 0;
  border-right: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(255, 253, 250, 0.78);
}

body[data-studio-view="customize"] .customize-studio-inspector {
  grid-area: studio-inspector;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  max-height: calc(100vh - 164px);
  overflow-y: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  scrollbar-width: thin;
}

body[data-studio-view="customize"] .customize-selected-layer,
body[data-studio-view="customize"] .designer-layer-stack-panel,
body[data-studio-view="customize"] .customize-quantity-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(13, 26, 39, 0.12);
  background: transparent;
  padding: 0 0 14px;
  box-shadow: none;
}

body[data-studio-view="customize"] .customize-selected-layer {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

body[data-studio-view="customize"] .customize-selected-layer span,
body[data-studio-view="customize"] .designer-layer-stack-head span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

body[data-studio-view="customize"] .customize-selected-layer strong,
body[data-studio-view="customize"] .designer-layer-stack-head strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body[data-studio-view="customize"] .customize-selected-layer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body[data-studio-view="customize"] .customize-selected-layer-actions button {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #52636d;
  font-size: 10px;
  font-weight: 820;
}

body[data-studio-view="customize"] .customize-selected-layer-actions button:disabled {
  color: #8b99a1;
  background: #eef4f6;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-panel {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(420px, 1fr);
  grid-template-areas:
    "panel-picker-head panel-canvas"
    "panel-recipe panel-canvas"
    "panel-advanced panel-canvas";
  align-items: start;
  gap: 16px;
  min-height: 100%;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-panel {
  overflow: hidden;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-canvas-stage {
  grid-area: panel-canvas;
  width: min(100%, 680px);
  justify-self: center;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-template-heading {
  grid-area: panel-picker-head;
  margin: 0;
}

body[data-studio-view="customize"] .customize-studio-inspector #designerTemplateFields {
  align-self: start;
  max-height: none;
  overflow: visible;
  border-bottom: 1px solid rgba(13, 26, 39, 0.12);
  border-radius: 0;
  background: transparent;
  padding: 0 0 14px;
  scrollbar-width: thin;
}

body[data-studio-view="customize"] .customize-studio-inspector .template-fields-panel[data-recolor-active="true"] {
  position: static;
  bottom: auto;
  z-index: auto;
  box-shadow: none;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-advanced-tools {
  display: contents;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-advanced-tools summary {
  display: none;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-toolbar {
  grid-area: panel-advanced;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-self: start;
  gap: 8px;
  margin: 0;
  padding: 0;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-inspector {
  display: none;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-clip-heading {
  display: none;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-asset-picker-head {
  grid-area: panel-picker-head;
  display: grid;
  gap: 9px;
  align-self: start;
  min-width: 0;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-asset-title {
  display: grid;
  gap: 2px;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-asset-title span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-asset-title strong {
  color: #20313a;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-asset-picker-head input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 7px;
  background: #ffffff;
  color: #20313a;
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-asset-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-asset-filters button {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #52636d;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

body[data-studio-view="customize"] .customize-designer-mount .designer-asset-filters button[aria-pressed="true"] {
  border-color: rgba(0, 168, 143, 0.36);
  background: rgba(0, 168, 143, 0.11);
  color: #087b6f;
}

#view-customize:not([data-template-id]) .customize-designer-mount .designer-asset-picker-head {
  display: none;
}

body[data-studio-view="customize"] .customize-designer-mount #designerClipArt {
  grid-area: panel-recipe;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  max-height: calc(100vh - 244px);
  margin: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

#view-customize[data-template-id] .customize-designer-mount .designer-panel-header,
#view-customize[data-template-id] .customize-designer-mount .library-note,
#view-customize[data-template-id] .customize-designer-mount .starter-pack-filters,
#view-customize[data-template-id] .customize-designer-mount .starter-pack-readout {
  display: none;
}

#view-customize[data-template-id] .customize-designer-mount #designerTemplates {
  grid-area: panel-recipe;
  align-content: start;
  gap: 9px;
  max-height: calc(100vh - 244px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

#view-customize[data-template-id] .customize-designer-mount .designer-toolbar {
  grid-area: panel-advanced;
}

#view-customize[data-template-id] .customize-designer-mount #designerClipArt {
  grid-area: panel-recipe;
  max-height: calc(100vh - 244px);
}

#view-customize[data-template-id] .customize-designer-mount .designer-save-strip {
  display: none;
}

body[data-studio-view="customize"] .designer-layer-stack {
  display: grid;
  gap: 6px;
}

body[data-studio-view="customize"] .designer-layer-empty,
body[data-studio-view="customize"] .designer-layer-row {
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(13, 26, 39, 0.1);
  border-radius: 7px;
  background: #ffffff;
}

body[data-studio-view="customize"] .designer-layer-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

body[data-studio-view="customize"] .designer-layer-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  text-align: left;
}

body[data-studio-view="customize"] .designer-layer-row[aria-pressed="true"] {
  border-color: rgba(0, 168, 143, 0.35);
  background: rgba(0, 168, 143, 0.1);
}

body[data-studio-view="customize"] .designer-layer-handle {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: rgba(13, 26, 39, 0.08);
  color: #52636d;
  font-size: 10px;
  font-weight: 900;
}

body[data-studio-view="customize"] .designer-layer-row strong,
body[data-studio-view="customize"] .designer-layer-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-studio-view="customize"] .designer-layer-row strong {
  color: #20313a;
  font-size: 12px;
  line-height: 1.15;
}

body[data-studio-view="customize"] .designer-layer-row small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.1;
}

body[data-studio-view="customize"] .clip-art-empty {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  border: 1px dashed rgba(13, 26, 39, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
}

body[data-studio-view="customize"] .clip-art-empty strong,
body[data-studio-view="customize"] .clip-art-empty small {
  display: block;
  min-width: 0;
}

body[data-studio-view="customize"] .clip-art-empty strong {
  color: #20313a;
  font-size: 12px;
  font-weight: 900;
}

body[data-studio-view="customize"] .clip-art-empty small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

body[data-studio-view="customize"] .customize-quantity-panel {
  position: static;
}

@media (max-width: 1180px) {
  body[data-studio-view="customize"] .customize-workspace {
    grid-template-columns: minmax(72px, 84px) minmax(280px, 0.92fr) minmax(360px, 1.08fr);
    grid-template-areas:
      "studio-tools studio-builder studio-builder"
      "studio-tools studio-inspector studio-inspector";
  }

  body[data-studio-view="customize"] .customize-studio-inspector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    border-top: 1px solid rgba(15, 15, 15, 0.12);
  }

  body[data-studio-view="customize"] .customize-studio-inspector #designerTemplateFields,
  body[data-studio-view="customize"] .customize-quantity-panel {
    border-bottom: 0;
  }

  body[data-studio-view="customize"] .designer-layer-stack-panel {
    border-bottom: 0;
  }

  body[data-studio-view="customize"] .customize-designer-mount .designer-panel {
    grid-template-columns: minmax(220px, 0.54fr) minmax(360px, 1fr);
    grid-template-areas:
      "panel-picker-head panel-canvas"
      "panel-recipe panel-canvas"
      "panel-advanced panel-advanced";
  }

  body[data-studio-view="customize"] .customize-designer-mount .designer-canvas-stage {
    width: min(100%, 560px);
  }
}

@media (max-width: 980px) {
  body[data-studio-view="customize"] .customize-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "studio-tools"
      "studio-builder"
      "studio-inspector";
  }

  body[data-studio-view="customize"] .customize-studio-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(15, 15, 15, 0.12);
  }

  body[data-studio-view="customize"] .customize-studio-tools button,
  body[data-studio-view="customize"] .customize-studio-tools label {
    min-height: 54px;
    padding-right: 4px;
    padding-left: 4px;
  }

  body[data-studio-view="customize"] .customize-studio-tools strong {
    font-size: 9px;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  body[data-studio-view="customize"] .customize-designer-mount {
    border-right: 0;
  }

  body[data-studio-view="customize"] .customize-studio-inspector {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .customize-header {
    align-items: stretch;
  }

  body[data-studio-view="customize"] .customize-header {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  body[data-studio-view="customize"] #customizeRestorePreviousDesign {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  body[data-studio-view="customize"] .customize-header div {
    grid-column: 3;
    grid-row: 1;
  }

  .customize-header div {
    text-align: left;
  }

  .customize-quantity-tiers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .customize-quantity-tiers button {
    min-height: 48px;
    padding: 7px 5px;
  }

  .customize-quantity-tiers strong {
    font-size: 15px;
  }

  .template-field-controls {
    grid-template-columns: 1fr;
  }

  .template-field-color {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
  }
}

@media (max-width: 760px) {
  body[data-studio-view="customize"] .customize-shell {
    padding-right: 0;
    padding-left: 0;
  }

  body[data-studio-view="customize"] .customize-designer-mount .designer-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "panel-picker-head"
      "panel-recipe"
      "panel-canvas"
      "panel-advanced";
    gap: 10px;
    padding: 10px;
  }

  body[data-studio-view="customize"] .customize-designer-mount .designer-canvas-stage {
    width: 100%;
  }

  body[data-studio-view="customize"] .customize-designer-mount #designerClipArt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 360px;
  }

  #view-customize[data-template-id] .customize-designer-mount #designerTemplates {
    max-height: 260px;
  }
}

.designer-panel {
  display: grid;
  gap: 12px;
  margin: 2px 0 18px;
  padding: 12px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  box-shadow: var(--soft-shadow);
}

.designer-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.designer-panel-header span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.designer-panel-header strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.designer-panel-header button {
  min-width: 58px;
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 6px;
  color: #52636d;
  font-size: 12px;
  font-weight: 760;
}

.designer-canvas-stage {
  display: grid;
  gap: 8px;
  width: 100%;
}

.designer-restore-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(190, 116, 0, 0.42);
  border-radius: 7px;
  color: #4f3510;
  background: #fff7df;
}

.designer-restore-notice[hidden] {
  display: none;
}

.designer-restore-notice div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.designer-restore-notice strong,
.designer-restore-notice small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.designer-restore-notice strong {
  font-size: 13px;
  line-height: 1.2;
}

.designer-restore-notice small {
  color: #765923;
  font-size: 11px;
  line-height: 1.25;
}

.designer-restore-action {
  display: grid;
  min-height: 36px;
  padding: 8px 12px;
  place-items: center;
  border: 1px solid #087b6f;
  border-radius: 7px;
  color: #ffffff;
  background: #087b6f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.designer-canvas-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.8fr);
  gap: 8px;
  align-items: stretch;
}

.designer-backdrop-control,
.designer-layer-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.designer-backdrop-control {
  grid-template-columns: minmax(72px, 0.6fr) repeat(3, minmax(64px, 1fr));
  align-items: center;
}

.designer-layer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.designer-backdrop-control span {
  color: #52636d;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.designer-backdrop-control button,
.designer-layer-actions button {
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.05;
  text-align: center;
}

.designer-backdrop-control button[aria-pressed="true"] {
  border-color: rgba(0, 137, 111, 0.62);
  background: #0f1b20;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.designer-layer-actions button:disabled {
  color: #7b8a94;
}

@media (max-width: 720px) {
  .designer-restore-notice {
    grid-template-columns: 1fr;
  }

  .designer-restore-action {
    width: 100%;
  }

  .designer-canvas-controls {
    grid-template-columns: 1fr;
  }

  .designer-backdrop-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .designer-backdrop-control span {
    grid-column: 1 / -1;
  }
}

.designer-canvas-frame {
  position: relative;
  display: grid;
  place-items: stretch;
  width: 100%;
  aspect-ratio: var(--designer-aspect, 1 / 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 168, 143, 0.2), transparent 30%),
    radial-gradient(circle at 78% 82%, rgba(200, 154, 55, 0.18), transparent 34%),
    #12191d;
  background-position:
    center,
    center,
    center;
  background-size: auto;
  overflow: hidden;
}

.designer-canvas-frame[data-backdrop="checker"] {
  border-color: rgba(15, 15, 15, 0.14);
  background:
    linear-gradient(45deg, rgba(13, 26, 39, 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(13, 26, 39, 0.055) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(13, 26, 39, 0.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(13, 26, 39, 0.055) 75%),
    #fffdfa;
  background-position:
    0 0,
    0 9px,
    9px -9px,
    -9px 0;
  background-size: 18px 18px;
}

.designer-canvas-frame[data-backdrop="light"] {
  border-color: rgba(15, 15, 15, 0.14);
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 168, 143, 0.08), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(200, 154, 55, 0.1), transparent 32%),
    #fffdfa;
}

.source-region-map {
  position: absolute;
  z-index: 6;
  display: block;
  min-width: 28px;
  min-height: 22px;
  pointer-events: none;
  border: 2px solid rgba(214, 111, 38, 0.95);
  border-radius: 6px;
  background: rgba(255, 168, 82, 0.16);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.82),
    0 12px 24px rgba(43, 30, 18, 0.18);
}

.source-region-map[hidden] {
  display: none;
}

.source-region-map-stack {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.source-region-map-stack[hidden] {
  display: none;
}

.source-region-map-item {
  border-color: rgba(223, 96, 26, 0.96);
  background:
    linear-gradient(135deg, rgba(255, 250, 237, 0.52), rgba(255, 168, 82, 0.1));
}

.source-region-map-index {
  position: absolute;
  display: grid;
  place-items: center;
  left: -9px;
  top: -9px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: #fff;
  background: #b84f12;
  box-shadow: 0 8px 18px rgba(43, 30, 18, 0.22);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.source-region-map-label {
  position: absolute;
  left: -2px;
  top: -25px;
  max-width: 180px;
  padding: 4px 6px;
  border-radius: 5px;
  color: #ffffff;
  background: rgba(78, 45, 16, 0.94);
  font-size: 9px;
  font-weight: 820;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.designer-canvas-frame[data-source-region-active="true"]::before {
  position: absolute;
  z-index: 6;
  left: var(--source-region-left, 0);
  top: var(--source-region-top, 0);
  width: var(--source-region-width, 0);
  height: var(--source-region-height, 0);
  min-width: 18px;
  min-height: 18px;
  pointer-events: none;
  border: 2px solid rgba(214, 111, 38, 0.95);
  border-radius: 6px;
  background: rgba(255, 168, 82, 0.12);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.82),
    0 12px 24px rgba(43, 30, 18, 0.18);
  content: "";
}

.designer-canvas-frame::after {
  position: absolute;
  inset: 2.5%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(15, 15, 15, 0.16);
  opacity: 0.64;
  pointer-events: none;
  z-index: 2;
  content: "";
}

.designer-canvas-frame[data-backdrop="checker"]::after,
.designer-canvas-frame[data-backdrop="light"]::after {
  border-color: rgba(18, 49, 58, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.designer-canvas-frame[data-shape="circle"]::after {
  border-radius: 999px;
}

.designer-canvas-frame[data-shape="rounded-rectangle"]::after {
  border-radius: 9%;
}

/* CUT-CLARITY (2026-07-16): the old custom-shape ::after drew a decorative dashed blob
   unrelated to any real contour. The live overlay (.designer-cutline-overlay) now draws the
   engine-parity estimated cut line instead, so the pseudo-frame is hidden for custom shape. */
.designer-canvas-frame[data-shape="custom"]::after {
  display: none;
}

.designer-cutline-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.designer-cutline-hint,
.designer-control-hint {
  display: block;
  color: rgba(13, 26, 39, 0.62);
  font-size: 0.72rem;
  line-height: 1.3;
}

.designer-backdrop-control .designer-control-hint {
  flex-basis: 100%;
}

.designer-cutline-hint {
  margin-top: 6px;
}

.customize-shape-strip {
  border: 1px solid rgba(13, 26, 39, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.customize-shape-strip .shape-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.customize-order-notice,
.operator-proof-notice {
  margin: 10px 0;
}

.customize-add-order-hint {
  display: block;
  margin-top: 6px;
  color: rgba(13, 26, 39, 0.62);
  font-size: 0.72rem;
  text-align: center;
}

.designer-canvas-frame .canvas-container,
.designer-canvas-frame canvas {
  width: 100% !important;
  height: 100% !important;
}

.designer-canvas-frame .canvas-container {
  position: absolute !important;
  inset: 0;
  z-index: 1;
}

.designer-canvas-frame canvas {
  display: block !important;
}

.designer-starter-overlay {
  position: absolute;
  inset: 12px;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(9, 110, 234, 0.2);
  border-radius: 7px;
  background:
    radial-gradient(circle at 82% 18%, rgba(200, 154, 55, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.96));
  box-shadow: 0 18px 48px rgba(15, 32, 48, 0.08);
}

.starter-overlay-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.starter-overlay-header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.starter-overlay-header strong {
  color: #132433;
  font-size: 13px;
  line-height: 1.15;
  text-align: right;
}

.starter-preview-grid {
  display: grid;
  gap: 8px;
}

.starter-preview-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 88px;
  padding: 8px;
  border-color: rgba(9, 110, 234, 0.18);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.starter-preview-card:hover {
  border-color: rgba(9, 110, 234, 0.45);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(9, 110, 234, 0.12);
}

.starter-preview-card .template-thumb {
  min-height: 72px;
}

.starter-preview-card .template-copy {
  align-content: center;
  gap: 4px;
}

.starter-preview-card strong,
.starter-preview-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.starter-preview-card strong {
  color: #20313a;
  font-size: 13px;
  line-height: 1.15;
}

.starter-preview-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.designer-save-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.designer-save-strip .designer-current-card {
  grid-column: 1 / -1;
  min-height: 58px;
  background:
    linear-gradient(180deg, rgba(243, 255, 251, 0.88), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.designer-save-strip div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 64px;
  padding: 9px;
  border: 1px solid rgba(13, 26, 39, 0.09);
  border-radius: 7px;
  background: #ffffff;
}

.designer-save-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.designer-save-strip strong,
.designer-save-strip small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.designer-save-backup {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.designer-save-backup[hidden] {
  display: none;
}

.customize-design-save-notice {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(167, 84, 24, 0.35);
  border-radius: 9px;
  background: #fff7ed;
  color: #5f2c0d;
}

.customize-design-save-notice[hidden] {
  display: none;
}

.customize-design-save-notice span {
  color: #8b4518;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customize-design-save-notice strong,
.customize-design-save-notice small {
  display: block;
  overflow-wrap: anywhere;
}

.customize-design-save-notice small {
  color: #713a16;
  font-size: 11px;
  line-height: 1.35;
}

.customize-design-save-notice .designer-save-backup {
  color: #7a2f00;
}

.designer-save-strip strong {
  color: #20313a;
  font-size: 12px;
  line-height: 1.18;
}

.designer-current-card strong {
  font-size: 13px;
}

.designer-save-strip small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.starter-pack-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 116px;
  overflow: auto;
  scrollbar-width: thin;
}

.starter-pack-filters button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  border-color: rgba(13, 26, 39, 0.12);
  background: #ffffff;
  color: #20313a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.starter-pack-filters button[aria-pressed="true"] {
  border-color: rgba(0, 168, 143, 0.34);
  background: rgba(0, 168, 143, 0.08);
  color: var(--teal);
}

.starter-pack-filters strong {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 26, 39, 0.08);
  color: #263746;
  font-size: 10px;
  line-height: 1;
}

.starter-pack-readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.starter-pack-readout div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(13, 26, 39, 0.09);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
    #ffffff;
}

.starter-pack-readout span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.starter-pack-readout strong {
  display: block;
  min-width: 0;
  color: #20313a;
  font-size: 11px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.template-fields-panel {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(13, 26, 39, 0.1);
  border-radius: 7px;
  background: #f8fbff;
}

.template-fields-panel[data-source-fidelity="true"] {
  border-color: rgba(137, 94, 31, 0.25);
  background: #fffaf1;
}

.template-fields-panel[data-locked-base-template="true"] {
  border-color: rgba(0, 137, 111, 0.28);
  background: #f4fffb;
}

.template-fields-panel[hidden] {
  display: none;
}

.template-fields-header {
  display: grid;
  gap: 4px;
}

.template-fields-header div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.template-fields-header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.template-fields-header strong,
.template-fields-header small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.template-fields-header strong {
  color: #20313a;
  font-size: 12px;
  line-height: 1.18;
  text-align: right;
}

.template-fields-header small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.template-field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.template-field-group-label {
  display: none;
}

.template-field-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.44fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 7px;
  border: 1px solid rgba(13, 26, 39, 0.1);
  border-radius: 7px;
  background: #ffffff;
}

.template-field-row[data-field-mode="source-panel"] {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  min-height: 78px;
  padding: 8px;
}

.template-field-row[data-field-mode="source-panel"] {
  border-color: rgba(137, 94, 31, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
}

.template-field-row[data-field-mode="customer-slot"] {
  border-color: rgba(0, 137, 111, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f7fffc 100%);
}

.template-field-row[data-field-mode="source-panel"]:focus-within,
.template-field-row[data-field-mode="source-panel"]:hover {
  border-color: rgba(214, 111, 38, 0.72);
  background: linear-gradient(180deg, #fffefd 0%, #fff7e8 100%);
  box-shadow: inset 0 0 0 1px rgba(214, 111, 38, 0.18);
}

.template-field-row[data-field-mode="customer-slot"]:focus-within,
.template-field-row[data-field-mode="customer-slot"]:hover {
  border-color: rgba(0, 137, 111, 0.72);
  background: linear-gradient(180deg, #ffffff 0%, #ecfff8 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 137, 111, 0.16);
}

.template-field-row[data-field-mode="source-panel"][data-review-value-state="edited"] {
  border-color: rgba(0, 137, 111, 0.58);
  background: linear-gradient(180deg, #ffffff 0%, #f1fff9 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 137, 111, 0.14);
}

.template-field-label-group {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-areas:
    "chip label"
    "chip mode";
  align-items: center;
  gap: 2px 6px;
  min-width: 0;
}

.template-field-map-chip {
  grid-area: chip;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  color: #ffffff;
  background: #b84f12;
  box-shadow: 0 6px 14px rgba(43, 30, 18, 0.16);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
}

.template-field-row[data-field-mode="canvas-text"] .template-field-map-chip {
  background: #52636d;
}

.template-field-row[data-field-mode="customer-slot"] .template-field-map-chip {
  background: #00896f;
}

.template-field-row[data-field-mode="source-panel"][data-review-value-state="edited"] .template-field-map-chip {
  background: #00896f;
}

.template-field-label-text {
  grid-area: label;
  min-width: 0;
  color: #49616f;
  font-size: 9.5px;
  font-weight: 820;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.template-field-mode {
  grid-area: mode;
  color: #7a6a55;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
}

.template-field-row[data-field-mode="customer-slot"] .template-field-mode,
.template-field-row[data-field-mode="customer-slot"] .template-field-save-note {
  display: none;
}

.template-field-row input {
  min-width: 0;
  height: 38px;
  margin-top: 0;
  padding: 7px 9px;
  border-color: rgba(13, 26, 39, 0.12);
  font-size: 13px;
  font-weight: 760;
}

.template-field-row[data-field-mode="source-panel"] input:focus {
  border-color: rgba(214, 111, 38, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 168, 82, 0.18);
}

.template-field-row[data-field-mode="customer-slot"] input:focus {
  border-color: rgba(0, 137, 111, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 190, 150, 0.16);
}

.template-field-save-note {
  color: #7a6a55;
  font-size: 9px;
  font-weight: 780;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.template-field-row[data-field-mode="source-panel"][data-review-value-state="edited"] .template-field-save-note {
  color: #00705d;
}

@media (max-width: 720px) {
  .template-field-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.designer-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.designer-toolbar button,
.designer-image-trigger {
  display: grid;
  min-height: 36px;
  place-items: center;
  text-align: center;
  border-radius: 7px;
  color: #23323a;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.1;
}

.designer-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.designer-section-heading span {
  color: #263746;
  font-size: 11px;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.designer-section-heading strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.designer-toolbar button:disabled,
.designer-layer-actions button:disabled {
  color: #7b8a94;
}

.designer-inspector {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 9px;
}

.designer-inspector-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.designer-inspector-head span,
.designer-inspector-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.designer-inspector-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.designer-inspector-head strong {
  color: #20313a;
  font-size: 12px;
  line-height: 1.15;
  text-align: right;
}

.designer-inspector label {
  min-width: 0;
}

.designer-inspector small {
  display: block;
  color: #66757e;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.15;
}

.designer-inspector input[type="range"] {
  height: 28px;
  padding: 0;
  accent-color: var(--accent);
}

.designer-inspector input:disabled {
  background: #edf3f5;
  color: #7b8a94;
}

.designer-advanced-tools {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 8px;
  background: #f8f5ef;
  overflow: hidden;
}

.designer-advanced-tools summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  color: #263746;
  cursor: pointer;
}

.designer-advanced-tools summary::after {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  color: var(--teal);
  content: "+";
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.designer-advanced-tools[open] summary::after {
  content: "-";
}

.designer-advanced-tools summary::marker {
  content: "";
}

.designer-advanced-tools summary span,
.designer-advanced-tools summary strong {
  display: block;
  grid-column: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.designer-advanced-tools summary span {
  color: #263746;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.12;
  text-transform: uppercase;
}

.designer-advanced-tools summary strong {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
  line-height: 1.22;
}

.designer-advanced-tools[open] {
  padding-bottom: 10px;
}

.designer-advanced-tools[open] .designer-toolbar,
.designer-advanced-tools[open] .designer-inspector,
.designer-advanced-tools[open] .designer-section-heading,
.designer-advanced-tools[open] .clip-art-grid {
  margin-right: 10px;
  margin-left: 10px;
}

.template-grid,
.clip-art-grid,
.clip-art-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.clip-art-grid {
  grid-template-columns: 1fr;
}

.template-grid {
  grid-template-columns: 1fr 1fr;
}

/* 05 Template and asset pickers */
.template-group-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.template-group-heading:first-child {
  margin-top: 0;
}

.template-group-heading span {
  color: #263746;
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.template-group-heading strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.template-details-group {
  grid-column: 1 / -1;
  border: 1px solid rgba(13, 26, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.92);
  overflow: hidden;
}

.template-details-group summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  color: #263746;
  cursor: pointer;
}

.template-details-group summary::marker {
  color: var(--teal);
}

.template-details-group summary span,
.template-details-group summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.template-details-group summary span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.template-details-group summary strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-align: right;
}

.template-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 8px 8px;
}

.template-grid button,
.clip-art-grid button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 56px;
  padding: 8px;
  text-align: left;
  border-radius: 8px;
}

.template-grid button {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
  min-height: 150px;
  padding: 9px;
  background: #ffffff;
}

.template-grid button.template-card-featured {
  grid-column: 1 / -1;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  align-items: stretch;
  min-height: 118px;
  padding: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.template-card-featured .template-thumb {
  min-height: 96px;
}

.template-card-featured .template-copy {
  align-content: center;
  gap: 5px;
}

.template-grid .template-card-featured strong {
  font-size: 14px;
  line-height: 1.15;
}

.template-grid .template-card-featured small {
  font-size: 11px;
  line-height: 1.25;
}

.template-grid button.active {
  border-color: var(--accent);
  background: #f6fffb;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 143, 0.16);
}

.template-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--template-thumb-aspect, 1 / 1);
  min-height: 86px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 168, 143, 0.09), transparent 38%),
    linear-gradient(180deg, #ffffff, #fffdfa);
  overflow: hidden;
}

.template-thumb[data-template-kind="dv-core-record-crate-drop"] {
  background:
    url("/designer-assets/dv-core-record-crate-component-crate.png") 18% 42% / 42% no-repeat,
    url("/designer-assets/dv-core-record-crate-component-base-frame-35x25.png") 56% 52% / 92% no-repeat,
    radial-gradient(circle at 50% 44%, rgba(19, 169, 184, 0.12), transparent 42%),
    radial-gradient(circle at 72% 38%, rgba(106, 58, 184, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6f1e6);
}

.template-thumb[data-template-kind="dv-core-vhs-tape-drop"] {
  background:
    url("/designer-assets/dv-core-vhs-tape-component-purple-arrow.png") 62% 17% / 20% no-repeat,
    url("/designer-assets/dv-core-vhs-tape-component-base-frame-35x25.png") center / 94% no-repeat,
    radial-gradient(circle at 50% 44%, rgba(19, 169, 184, 0.12), transparent 42%),
    radial-gradient(circle at 72% 36%, rgba(106, 58, 184, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6f1e6);
}

.template-thumb[data-template-kind="dv-core-product-batch-label"] {
  background:
    url("/designer-assets/dv-core-product-batch-component-globe-mark.png") 21% 48% / 26% no-repeat,
    url("/designer-assets/dv-core-product-batch-component-base-frame-35x25.png") center / 94% no-repeat,
    radial-gradient(circle at 42% 52%, rgba(19, 169, 184, 0.12), transparent 42%),
    radial-gradient(circle at 76% 36%, rgba(88, 102, 61, 0.11), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6f1e6);
}

.template-thumb[data-template-kind="dv-core-pop-up-event-pass"] {
  background:
    url("/designer-assets/dv-core-pop-up-booth-component-smile-drip.png") 79% 33% / 24% no-repeat,
    url("/designer-assets/dv-core-pop-up-booth-component-base-frame-35x25.png") center / 96% no-repeat,
    radial-gradient(circle at 28% 50%, rgba(19, 169, 184, 0.14), transparent 42%),
    radial-gradient(circle at 72% 40%, rgba(107, 51, 170, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6f1e6);
}

.template-thumb[data-template-kind="dv-core-shop-hold-proof"] {
  background:
    url("/designer-assets/dv-core-shop-hold-component-base-frame-35x25.png") center / 94% no-repeat,
    radial-gradient(circle at 28% 48%, rgba(224, 51, 36, 0.12), transparent 38%),
    radial-gradient(circle at 72% 36%, rgba(19, 169, 184, 0.11), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6f1e6);
}

.template-thumb[data-template-kind="dv-core-sticker-bomb-pack-insert"] {
  background:
    url("/designer-assets/dv-core-sticker-bomb-component-base-frame-35x20.png") center / 94% no-repeat,
    radial-gradient(circle at 30% 48%, rgba(106, 58, 184, 0.12), transparent 38%),
    radial-gradient(circle at 70% 38%, rgba(19, 169, 184, 0.11), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6f1e6);
}

.template-thumb[data-template-kind="dv-core-proof-run-strip"] {
  background:
    url("/designer-assets/dv-core-spray-check-clean.svg") 84% 24% / 22% no-repeat,
    url("/designer-assets/dv-core-proof-check-red-clean.svg") 82% 62% / 28% no-repeat,
    url("/designer-assets/dv-core-motion-slashes-clean.svg") 18% 70% / 24% no-repeat,
    url("/designer-assets/dv-core-scribble-underline-clean.svg") 50% 72% / 48% no-repeat,
    url("/designer-assets/dv-core-registration-cross-clean.svg") 14% 24% / 18% no-repeat,
    radial-gradient(circle at 32% 50%, rgba(19, 169, 184, 0.13), transparent 40%),
    radial-gradient(circle at 76% 38%, rgba(224, 51, 36, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6f1e6);
}

.template-copy {
  display: grid;
  gap: 3px;
}

.template-grid strong,
.template-grid small,
.clip-art-grid strong,
.clip-art-grid small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.template-grid strong,
.clip-art-grid strong {
  color: #20313a;
  font-size: 12px;
  line-height: 1.15;
}

.template-grid small,
.clip-art-grid small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.template-card-meta,
.template-card-use {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.template-card-meta {
  color: #263746;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.16;
  text-transform: uppercase;
}

.template-card-use {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.template-empty-state {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  padding: 12px;
  border: 1px dashed rgba(13, 26, 39, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
}

.template-empty-state strong,
.template-empty-state small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.template-empty-state strong {
  color: #20313a;
  font-size: 12px;
}

.template-empty-state small {
  color: var(--muted);
  font-size: 11px;
}

.clip-art-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
}

.clip-art-group summary {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #263746;
  cursor: pointer;
  list-style: none;
}

.clip-art-group summary::-webkit-details-marker {
  display: none;
}

.clip-art-group summary span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #263746;
  font-size: 11px;
  font-weight: 840;
  line-height: 1.1;
  text-transform: uppercase;
}

.clip-art-group summary strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.1;
}

.clip-art-group summary::after {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 999px;
  color: #263746;
  content: "+";
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
}

.clip-art-group[open] summary::after {
  content: "-";
}

.clip-art-group-grid {
  padding-top: 2px;
}

.clip-art-group:not([open]) .clip-art-group-grid {
  display: none;
}

.clip-art-swatch {
  grid-row: 1 / 3;
  display: block;
  width: 26px;
  height: 26px;
  background: var(--clip-fill, #00a3ff);
  border: 2px solid #142027;
}

.clip-art-swatch[data-clip-kind="star"] {
  clip-path: polygon(50% 0, 61% 33%, 96% 35%, 68% 55%, 79% 90%, 50% 69%, 21% 90%, 32% 55%, 4% 35%, 39% 33%);
}

.clip-art-swatch[data-clip-kind="heart"] {
  border-radius: 42% 42% 48% 48%;
  transform: rotate(45deg) scale(0.82);
}

.clip-art-swatch[data-clip-kind="bolt"] {
  clip-path: polygon(36% 0, 86% 0, 58% 39%, 89% 39%, 27% 100%, 42% 56%, 9% 56%);
}

.clip-art-swatch[data-clip-kind="sparkle"] {
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
}

.clip-art-swatch[data-clip-kind="scallop-seal"] {
  background:
    radial-gradient(circle at center, transparent 34%, var(--clip-accent, #00a3ff) 36% 48%, transparent 50%),
    var(--clip-fill, #fff4d6);
  border-radius: 999px;
  clip-path: polygon(50% 0, 57% 13%, 71% 6%, 76% 21%, 92% 20%, 87% 36%, 100% 50%, 87% 64%, 92% 80%, 76% 79%, 71% 94%, 57% 87%, 50% 100%, 43% 87%, 29% 94%, 24% 79%, 8% 80%, 13% 64%, 0 50%, 13% 36%, 8% 20%, 24% 21%, 29% 6%, 43% 13%);
}

.clip-art-swatch[data-clip-kind="pickup-ticket"] {
  background:
    linear-gradient(var(--clip-accent, #f36c3d), var(--clip-accent, #f36c3d)) center 70% / 72% 16% no-repeat,
    var(--clip-fill, #ffffff);
  border-radius: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 34%, 88% 50%, 100% 66%, 100% 100%, 0 100%, 0 66%, 12% 50%, 0 34%);
}

.clip-art-swatch[data-clip-kind="batch-label"] {
  background:
    linear-gradient(var(--clip-accent, #142027), var(--clip-accent, #142027)) center 30% / 64% 13% no-repeat,
    linear-gradient(#ffffff, #ffffff) center 74% / 64% 14% no-repeat,
    var(--clip-fill, #69d38a);
  border-radius: 7px;
}

.clip-art-swatch[data-clip-kind="slap-burst"] {
  background:
    linear-gradient(160deg, transparent 0 42%, var(--clip-accent, #ff5c8a) 43% 58%, transparent 59%),
    var(--clip-fill, #ffca3a);
  clip-path: polygon(3% 24%, 31% 3%, 54% 10%, 92% 20%, 84% 47%, 100% 74%, 57% 94%, 35% 82%, 5% 97%, 13% 58%);
}

.clip-art-swatch[data-clip-kind="proof-check"] {
  background:
    linear-gradient(135deg, transparent 0 38%, var(--clip-accent, #00a3ff) 39% 48%, transparent 49%),
    linear-gradient(45deg, transparent 0 47%, var(--clip-accent, #00a3ff) 48% 58%, transparent 59%),
    var(--clip-fill, #e8fbff);
  border-radius: 7px;
}

.clip-art-swatch[data-clip-kind="leaf-sprig"] {
  background:
    radial-gradient(ellipse at 27% 52%, var(--clip-fill, #58724d) 0 18%, transparent 19%),
    radial-gradient(ellipse at 49% 38%, var(--clip-fill, #58724d) 0 18%, transparent 19%),
    radial-gradient(ellipse at 68% 60%, var(--clip-fill, #58724d) 0 18%, transparent 19%),
    linear-gradient(30deg, transparent 0 47%, var(--clip-accent, #c69a3a) 48% 54%, transparent 55%),
    #fbf7ec;
  border-radius: 7px;
}

.clip-art-swatch[data-clip-kind="apothecary-frame"] {
  background:
    linear-gradient(var(--clip-accent, #c89a37), var(--clip-accent, #c89a37)) center 72% / 64% 10% no-repeat,
    var(--clip-fill, #fffaf0);
  border-radius: 8px;
  clip-path: polygon(0 0, 36% 0, 43% 15%, 57% 15%, 64% 0, 100% 0, 100% 33%, 88% 50%, 100% 67%, 100% 100%, 64% 100%, 57% 85%, 43% 85%, 36% 100%, 0 100%, 0 67%, 12% 50%, 0 33%);
}

.clip-art-swatch[data-clip-kind="botanical-sprig"] {
  background:
    radial-gradient(ellipse at 35% 33%, var(--clip-fill, #58724d) 0 17%, transparent 18%),
    radial-gradient(ellipse at 65% 43%, var(--clip-fill, #58724d) 0 17%, transparent 18%),
    radial-gradient(ellipse at 42% 67%, var(--clip-fill, #58724d) 0 17%, transparent 18%),
    linear-gradient(78deg, transparent 0 47%, var(--clip-accent, #c89a37) 48% 54%, transparent 55%),
    #fbf7ec;
  border-radius: 7px;
}

.clip-art-swatch[data-clip-kind="review-rosette"] {
  background:
    radial-gradient(circle at center, var(--clip-fill, #f7f0df) 0 46%, transparent 47%),
    var(--clip-accent, #58724d);
  border-radius: 999px;
  clip-path: polygon(50% 0, 56% 12%, 69% 5%, 75% 19%, 90% 18%, 86% 34%, 100% 50%, 86% 66%, 90% 82%, 75% 81%, 69% 95%, 56% 88%, 50% 100%, 44% 88%, 31% 95%, 25% 81%, 10% 82%, 14% 66%, 0 50%, 14% 34%, 10% 18%, 25% 19%, 31% 5%, 44% 12%);
}

.clip-art-swatch[data-clip-kind="ribbon"] {
  border-radius: 5px;
}

.clip-art-swatch[data-clip-kind="badge"] {
  background:
    linear-gradient(var(--clip-accent, #00a3ff), var(--clip-accent, #00a3ff)) center 68% / 72% 18% no-repeat,
    var(--clip-fill, #ffffff);
  border-radius: 999px;
}

.clip-art-swatch[data-clip-kind="qr-frame"] {
  background:
    linear-gradient(var(--clip-accent, #142027), var(--clip-accent, #142027)) 28% 28% / 22% 22% no-repeat,
    linear-gradient(var(--clip-accent, #142027), var(--clip-accent, #142027)) 72% 28% / 22% 22% no-repeat,
    linear-gradient(var(--clip-accent, #142027), var(--clip-accent, #142027)) 28% 72% / 22% 22% no-repeat,
    linear-gradient(var(--clip-accent, #142027), var(--clip-accent, #142027)) 70% 70% / 12% 12% no-repeat,
    var(--clip-fill, #ffffff);
  border-radius: 3px;
}

.clip-art-swatch[data-clip-kind="scallop-seal"],
.clip-art-swatch[data-clip-kind="leaf-sprig"],
.clip-art-swatch[data-clip-kind="apothecary-frame"],
.clip-art-swatch[data-clip-kind="botanical-sprig"],
.clip-art-swatch[data-clip-kind="review-rosette"],
.clip-art-swatch[data-clip-kind="coffee-cup"],
.clip-art-swatch[data-clip-kind="candle-jar"],
.clip-art-swatch[data-clip-kind="thank-you-tag"],
.clip-art-swatch[data-clip-kind="market-awning"],
.clip-art-swatch[data-clip-kind="pickup-ticket"],
.clip-art-swatch[data-clip-kind="qr-frame"],
.clip-art-swatch[data-clip-kind="batch-label"],
.clip-art-swatch[data-clip-kind="slap-burst"],
.clip-art-swatch[data-clip-kind="proof-check"],
.clip-art-swatch[data-clip-kind="event-badge"],
.clip-art-swatch[data-clip-kind="service-calendar"],
.clip-art-swatch[data-clip-kind="pop-up-booth"],
.clip-art-swatch[data-clip-kind="reorder-loop"] {
  clip-path: none;
  border-radius: 7px;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 88%;
}

.clip-art-swatch[data-source-type="local-svg"] {
  clip-path: none;
  border-radius: 7px;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 88%;
}

.clip-art-swatch[data-clip-kind="scallop-seal"] {
  background-image: url("/designer-assets/dv-core-bank-made-local-dot.png");
}

.clip-art-swatch[data-clip-kind="leaf-sprig"] {
  background-image: url("/designer-assets/dv-leaf-sprig.svg");
}

.clip-art-swatch[data-clip-kind="apothecary-frame"] {
  background-image: url("/designer-assets/dv-apothecary-frame.svg");
}

.clip-art-swatch[data-clip-kind="botanical-sprig"] {
  background-image: url("/designer-assets/dv-botanical-sprig.svg");
}

.clip-art-swatch[data-clip-kind="review-rosette"] {
  background-image: url("/designer-assets/dv-review-rosette.svg");
}

.clip-art-swatch[data-clip-kind="coffee-cup"] {
  background-image: url("/designer-assets/dv-coffee-cup.svg");
}

.clip-art-swatch[data-clip-kind="candle-jar"] {
  background-image: url("/designer-assets/dv-candle-jar.svg");
  background-size: 72%;
}

.clip-art-swatch[data-clip-kind="thank-you-tag"] {
  background-image: url("/designer-assets/dv-thank-you-tag.svg");
}

.clip-art-swatch[data-clip-kind="market-awning"] {
  background-image: url("/designer-assets/dv-market-awning.svg");
}

.clip-art-swatch[data-clip-kind="pickup-ticket"] {
  background-image: url("/designer-assets/dv-pickup-ticket.svg");
}

.clip-art-swatch[data-clip-kind="qr-frame"] {
  background-image: url("/designer-assets/dv-care-qr-frame.svg");
}

.clip-art-swatch[data-clip-kind="batch-label"] {
  background-image: url("/designer-assets/dv-batch-label.svg");
}

.clip-art-swatch[data-clip-kind="slap-burst"] {
  background-image: url("/designer-assets/dv-window-slap.svg");
}

.clip-art-swatch[data-clip-kind="proof-check"] {
  background-image: url("/designer-assets/dv-proof-check.svg");
}

.clip-art-swatch[data-clip-kind="event-badge"] {
  background-image: url("/designer-assets/dv-event-badge.svg");
}

.clip-art-swatch[data-clip-kind="service-calendar"] {
  background-image: url("/designer-assets/dv-service-calendar.svg");
  background-size: 76%;
}

.clip-art-swatch[data-clip-kind="pop-up-booth"] {
  background-image: url("/designer-assets/dv-pop-up-booth.svg");
}

.clip-art-swatch[data-clip-kind="reorder-loop"] {
  background-image: url("/designer-assets/dv-reorder-loop.svg");
  background-size: 78%;
}

.clip-art-swatch[data-source-type="local-png"] {
  clip-path: none;
  border-radius: 7px;
  background-color: #f6f1e6;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 92%;
}

/* 06 Global controls, forms, spec controls, order rail, workflow panels */
button,
.artifact-links a,
#manifestLink,
.mobile-upload-trigger {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  padding: 9px 10px;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

button:hover,
.artifact-links a:hover,
#manifestLink:hover,
.mobile-upload-trigger:hover {
  border-color: rgba(0, 168, 143, 0.45);
  background: #ffffff;
}

button:focus-visible,
a[href]:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.mobile-upload-trigger:focus-visible {
  outline: 3px solid #087b6f;
  outline-offset: 2px;
}

.proof-frame:focus {
  outline: 3px solid #087b6f;
  outline-offset: 2px;
}

button:disabled,
button[aria-disabled="true"] {
  border-color: #cdd9df;
  background: #e8f0f3;
  color: #7b8a94;
  cursor: not-allowed;
}

button:disabled:hover,
button[aria-disabled="true"]:hover {
  border-color: #cdd9df;
}

button.customize-add-order {
  border-color: rgba(15, 15, 15, 0.88);
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

button.customize-add-order:hover,
button.customize-add-order:focus-visible {
  border-color: rgba(0, 168, 143, 0.72);
  background: #142027;
  color: var(--paper);
}

.mobile-quick-start {
  display: none;
}

.mobile-proof-strip {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(22, 135, 90, 0.28);
  border-radius: 8px;
  background: #f7fcfa;
}

.mobile-proof-strip span,
.mobile-proof-strip strong,
.mobile-proof-strip small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mobile-proof-strip span {
  color: var(--ok);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.mobile-proof-strip strong {
  color: #123323;
  font-size: 16px;
  line-height: 1.16;
}

.mobile-proof-strip small {
  color: #456255;
  font-size: 12px;
  line-height: 1.25;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.choice-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.choice-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.choice-heading strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
}

.shape-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shape-choice {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 9px;
  min-height: 66px;
  padding: 9px;
  text-align: left;
}

.shape-choice-wide {
  grid-column: 1 / -1;
}

.shape-choice.active {
  border-color: var(--accent);
  background: #f6fffb;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 143, 0.16);
}

.shape-choice strong,
.shape-choice small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.shape-choice strong {
  font-size: 13px;
  line-height: 1.15;
}

.shape-choice small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.shape-icon {
  grid-row: 1 / 3;
  display: block;
  width: 30px;
  height: 26px;
  border: 2px solid var(--ink);
  background: #ffffff;
}

.shape-icon-rectangle {
  width: 32px;
  height: 22px;
}

.shape-icon-rounded {
  width: 32px;
  height: 22px;
  border-radius: 7px;
}

.shape-icon-square {
  width: 26px;
  height: 26px;
}

.shape-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

.shape-icon-custom {
  border-style: dashed;
  border-radius: 42% 18% 35% 24%;
}

label,
legend {
  color: var(--graphite);
  font-size: 12px;
  font-weight: 690;
  line-height: 1.2;
}

input,
select {
  width: 100%;
  height: 40px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
}

.range-control {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.range-control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.range-control label span {
  min-width: 34px;
  color: var(--accent-ink);
  text-align: right;
  font-size: 12px;
  font-weight: 760;
}

.range-control input {
  height: 28px;
  margin-top: 8px;
  padding: 0;
  accent-color: var(--accent);
}

.range-control.disabled {
  opacity: 0.55;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mode-note {
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.segmented label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 560;
}

.segmented input {
  width: auto;
  height: auto;
  margin: 0;
}

.advanced-cutline {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.advanced-cutline:not([open]) {
  border-color: rgba(15, 15, 15, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.advanced-cutline summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.advanced-cutline summary::-webkit-details-marker {
  display: none;
}

.advanced-cutline summary::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid #52636d;
  border-bottom: 2px solid #52636d;
  transform: rotate(45deg);
  content: "";
}

.advanced-cutline[open] summary::after {
  transform: rotate(225deg);
}

.advanced-cutline summary span,
.advanced-cutline summary strong {
  display: block;
}

.advanced-cutline summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.advanced-cutline summary strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
}

.advanced-cutline.is-secondary summary strong {
  color: #52636d;
}

.advanced-cutline.is-review-path summary strong {
  color: var(--warn);
}

.advanced-cutline .range-control,
.advanced-cutline .segmented,
.advanced-cutline .mode-note {
  margin-right: 12px;
  margin-left: 12px;
}

.advanced-cutline .mode-note {
  margin-bottom: 12px;
}

.command-row {
  display: block;
  margin-bottom: 16px;
}

.primary {
  width: 100%;
  min-height: 46px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 168, 143, 0.2);
}

.primary:hover {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  color: #ffffff;
}

.primary:disabled,
.primary[aria-disabled="true"] {
  border-color: #c9d6dd;
  background: #dfe9ed;
  color: #667781;
}

.result {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(40, 127, 122, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(40, 127, 122, 0.08) 1px, transparent 1px),
    #fbfaf7;
  background-size: 28px 28px, 28px 28px, auto;
}

.proof-header,
.artifact-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.proof-header {
  position: relative;
  order: 1;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, 0.22);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.72) 58%, rgba(15, 15, 15, 0.58)),
    url("/studio-assets/dv-webkit/site-banner-2026.png") center / cover,
    var(--ink);
  padding: 14px 18px;
  color: var(--paper);
}

.proof-header::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(52, 199, 238, 0.08), rgba(0, 168, 143, 0.05), rgba(122, 85, 199, 0.09)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 48%, rgba(0, 0, 0, 0.34));
  content: "";
  pointer-events: none;
}

.proof-header > div {
  position: relative;
  z-index: 1;
  max-width: 640px;
  min-width: 0;
}

.proof-header > div > span {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(15, 15, 15, 0.58);
  text-transform: uppercase;
}

.proof-header h2 {
  margin-top: 3px;
  color: var(--paper);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  line-height: 0.9;
  text-shadow:
    0 2px 0 rgba(15, 15, 15, 0.9),
    0 8px 18px rgba(15, 15, 15, 0.48);
}

.proof-reference {
  display: block;
  margin-top: 5px;
  color: rgba(251, 250, 247, 0.84);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.builder-brief {
  order: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.92);
}

.builder-brief > div {
  display: grid;
  align-content: center;
  gap: 6px;
}

.builder-brief span,
.workflow-steps li::before {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.builder-brief strong {
  font-size: 25px;
  line-height: 1.1;
}

.builder-brief p {
  color: var(--muted);
  line-height: 1.4;
}

.order-rail {
  order: 3;
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--soft-shadow);
}

.order-rail::before {
  width: 112px;
  height: 3px;
  background: var(--studio-accent);
  content: "";
}

.order-rail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.order-rail-header span,
.order-rail-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.order-rail-header strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  text-align: right;
  font-weight: 950;
}

.order-rail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.order-rail-item {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 86px;
  padding: 11px;
  border: 1px solid rgba(15, 15, 15, 0.11);
  border-radius: 7px;
  background: #ffffff;
}

.order-rail-item[data-order-step="proof"] {
  border-color: rgba(0, 168, 143, 0.3);
  background: #f6fffb;
}

.order-rail-item strong,
.order-rail-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-rail-item strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 950;
}

.order-rail-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.approval-strip {
  order: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.approval-strip div {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 68px;
  padding: 11px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 7px;
  background: #fffdfa;
}

.approval-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.approval-strip strong {
  color: #20313a;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.approval-strip.ready div {
  border-color: rgba(22, 135, 90, 0.24);
  background: #f7fcfa;
}

.approval-strip.ready strong {
  color: #106842;
}

.approval-strip.draft div {
  border-color: rgba(0, 122, 185, 0.22);
  background: #f5fbff;
}

.approval-strip.draft strong {
  color: #086fa7;
}

.approval-strip.blocked div {
  border-color: rgba(184, 88, 18, 0.24);
  background: #fff8ef;
}

.approval-strip.blocked strong {
  color: var(--warn);
}

.brief-action {
  width: fit-content;
  min-width: 170px;
  min-height: 38px;
  margin-top: 6px;
  border-color: #0a82c5;
  background: var(--accent);
  color: #ffffff;
  font-weight: 780;
}

.brief-action:hover {
  border-color: #075f91;
  background: #075f91;
  color: #ffffff;
}

.preflight-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.customer-summary-panel {
  order: 6;
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1.45fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.92);
}

.customer-summary-panel.ready {
  border-color: rgba(22, 135, 90, 0.35);
  background: #f7fcfa;
}

.customer-summary-panel.draft {
  border-color: rgba(0, 122, 185, 0.34);
  background: #f5fbff;
}

.customer-summary-panel.blocked {
  border-color: rgba(184, 88, 18, 0.35);
  background: #fff8ef;
}

.customer-summary-copy {
  display: grid;
  align-content: center;
  gap: 7px;
}

.customer-summary-copy span,
.customer-summary-grid span,
.operator-stack-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.customer-summary-copy strong {
  font-size: 22px;
  line-height: 1.12;
}

.customer-summary-panel.ready .customer-summary-copy strong {
  color: var(--ok);
}

.customer-summary-panel.draft .customer-summary-copy strong {
  color: #086fa7;
}

.customer-summary-panel.blocked .customer-summary-copy strong {
  color: var(--warn);
}

.customer-summary-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.customer-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.customer-summary-grid div {
  min-width: 0;
  min-height: 74px;
  padding: 11px;
  border: 1px solid rgba(13, 26, 39, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.customer-summary-grid strong {
  display: block;
  margin-top: 7px;
  color: #20313a;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.builder-proof-decision-panel {
  order: 7;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.94);
}

.builder-proof-decision-panel[hidden] {
  display: none;
}

.builder-proof-decision-panel.ready {
  border-color: rgba(22, 135, 90, 0.35);
  background: #f2fbf7;
}

.builder-proof-decision-panel.draft {
  border-color: rgba(0, 122, 185, 0.3);
  background: #f3faff;
}

.builder-proof-decision-panel.blocked {
  border-color: rgba(184, 88, 18, 0.34);
  background: #fff7ed;
}

.builder-proof-decision-copy {
  display: grid;
  gap: 7px;
}

.builder-proof-decision-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.builder-proof-decision-copy strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.builder-proof-decision-panel.ready .builder-proof-decision-copy strong {
  color: var(--ok);
}

.builder-proof-decision-panel.draft .builder-proof-decision-copy strong {
  color: #086fa7;
}

.builder-proof-decision-panel.blocked .builder-proof-decision-copy strong {
  color: var(--warn);
}

.builder-proof-decision-copy p,
.builder-proof-decision-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.builder-proof-decision-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.builder-proof-decision-actions button {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.builder-proof-decision-primary {
  border-color: rgba(0, 122, 185, 0.5);
  background: var(--accent);
  color: #ffffff;
}

.builder-proof-decision-primary:not(:disabled):hover {
  border-color: #075f91;
  background: #075f91;
}

.builder-proof-decision-secondary {
  border-color: rgba(0, 168, 143, 0.3);
  background: #ffffff;
  color: #0b6f66;
}

.builder-proof-decision-secondary:not(:disabled):hover {
  border-color: rgba(0, 168, 143, 0.55);
  background: #effaf6;
}

.builder-proof-decision-actions button:disabled,
.builder-proof-decision-actions button[aria-disabled="true"] {
  border-color: rgba(15, 15, 15, 0.1);
  background: #edf1f2;
  color: #647178;
  cursor: not-allowed;
}

.builder-proof-decision-note {
  grid-column: 1 / -1;
  margin: -3px 0 0;
  font-weight: 760;
}

.preflight-panel.ready {
  border-color: rgba(22, 135, 90, 0.35);
  background: #effaf5;
}

.preflight-panel.draft {
  border-color: rgba(0, 122, 185, 0.3);
  background: #edf8ff;
}

.preflight-panel.blocked {
  border-color: rgba(184, 88, 18, 0.35);
  background: #fff4e8;
}

.preflight-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.preflight-header span,
.preflight-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.preflight-header strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  text-align: right;
}

.preflight-panel.ready .preflight-header strong {
  color: var(--ok);
}

.preflight-panel.draft .preflight-header strong {
  color: #086fa7;
}

.preflight-panel.blocked .preflight-header strong {
  color: var(--warn);
}

.preflight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.preflight-grid div {
  min-width: 0;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(13, 26, 39, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
}

.preflight-grid strong {
  display: block;
  margin-top: 7px;
  color: #24343d;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfc;
  color: #2d3b43;
  font-size: 12px;
  font-weight: 780;
}

.workflow-steps li::before {
  display: block;
  margin-bottom: 8px;
  content: "Pending";
}

.workflow-steps li.active {
  border-color: rgba(0, 127, 149, 0.34);
  background: #edf8ff;
  color: #086fa7;
}

.workflow-steps li.active::before {
  content: "Now";
  color: #086fa7;
}

.workflow-steps li.done {
  border-color: rgba(22, 135, 90, 0.3);
  background: #effaf5;
  color: var(--ok);
}

.workflow-steps li.done::before {
  content: "Done";
  color: var(--ok);
}

.workflow-steps li.blocked {
  border-color: rgba(184, 88, 18, 0.35);
  background: #fff4e8;
  color: var(--warn);
}

.workflow-steps li.blocked::before {
  content: "Hold";
  color: var(--warn);
}

#proofState {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

h2 {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.25;
}

.status-grid {
  order: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.status-card {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.status-card span,
.status-card strong {
  display: block;
}

.status-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.status-card strong {
  margin-top: 8px;
  font-size: 15px;
}

.status-card.ready {
  border-color: rgba(22, 135, 90, 0.35);
  background: #effaf5;
}

.status-card.ready strong {
  color: var(--ok);
}

.status-card.draft {
  border-color: rgba(0, 122, 185, 0.3);
  background: #edf8ff;
}

.status-card.draft strong {
  color: #086fa7;
}

.status-card.blocked {
  border-color: rgba(184, 88, 18, 0.35);
  background: #fff4e8;
}

.status-card.blocked strong {
  color: var(--warn);
}

.decision-panel,
.provider-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.decision-panel span,
.decision-panel strong,
.decision-panel p,
.provider-panel span,
.provider-panel strong,
.provider-panel p {
  display: block;
}

.decision-panel > div:first-child,
.provider-panel > div:first-child {
  min-width: 0;
}

.decision-panel > div:first-child > span,
.provider-panel > div:first-child > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.decision-panel strong,
.provider-panel strong {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.2;
}

.decision-panel p,
.provider-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.decision-panel.ready,
.provider-panel.ready {
  border-color: rgba(22, 135, 90, 0.35);
  background: #effaf5;
}

.decision-panel.ready strong,
.provider-panel.ready strong {
  color: var(--ok);
}

.decision-panel.draft,
.provider-panel.draft {
  border-color: rgba(0, 122, 185, 0.3);
  background: #edf8ff;
}

.decision-panel.draft strong,
.provider-panel.draft strong {
  color: #086fa7;
}

.decision-panel.blocked,
.provider-panel.blocked {
  border-color: rgba(184, 88, 18, 0.35);
  background: #fff4e8;
}

.decision-panel.blocked strong,
.provider-panel.blocked strong {
  color: var(--warn);
}

.decision-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 260px;
}

.decision-tags span {
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #38342f;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.1;
}

/* 07 Proof frame, draft preview, operator/shop bench, artifacts */
.proof-frame {
  order: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 520px;
  margin-top: 0;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(52, 199, 238, 0.07), transparent 38%),
    #fffdfa;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.proof-frame.is-draft {
  border-color: rgba(52, 199, 238, 0.45);
}

.proof-frame.is-ready {
  border-color: rgba(22, 135, 90, 0.42);
  box-shadow: inset 0 0 0 2px rgba(22, 135, 90, 0.08);
}

.proof-frame.is-review,
.proof-frame.is-stale {
  border-color: rgba(184, 88, 18, 0.42);
  box-shadow: inset 0 0 0 2px rgba(184, 88, 18, 0.08);
}

.proof-frame[data-proof-audience="customer"] {
  border-color: rgba(0, 168, 143, 0.42);
}

.proof-frame[data-proof-audience="customer"] .proof-toolbar {
  background: rgba(255, 255, 255, 0.9);
}

.proof-frame[data-proof-audience="shop"] {
  border-color: rgba(52, 199, 238, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(52, 199, 238, 0.1), transparent 44%),
    #161814;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.proof-frame[data-proof-audience="shop"] .proof-toolbar,
.proof-frame[data-proof-audience="shop"] .inspection-legend {
  border-color: rgba(251, 250, 247, 0.12);
  background: rgba(15, 15, 15, 0.82);
  color: var(--paper);
}

.proof-frame[data-proof-audience="shop"] .proof-stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(52, 199, 238, 0.1), transparent 44%),
    #161814;
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.proof-frame[data-proof-audience="shop"] .proof-toolbar span,
.proof-frame[data-proof-audience="shop"] .inspection-legend span {
  color: var(--cyan);
}

.proof-frame[data-proof-audience="shop"] .proof-toolbar strong,
.proof-frame[data-proof-audience="shop"] .proof-view-note,
.proof-frame[data-proof-audience="shop"] .proof-confidence p {
  color: var(--paper);
}

.proof-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.proof-confidence {
  display: grid;
  gap: 3px;
  min-width: 176px;
  max-width: 240px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.proof-confidence span,
.proof-confidence strong {
  display: block;
}

.proof-confidence span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.proof-confidence strong {
  color: #23323a;
  font-size: 14px;
  line-height: 1.15;
}

.proof-confidence p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.proof-frame.is-draft .proof-confidence {
  border-color: rgba(0, 122, 185, 0.3);
  background: #edf8ff;
}

.proof-frame.is-draft .proof-confidence strong {
  color: #086fa7;
}

.proof-frame.is-ready .proof-confidence {
  border-color: rgba(22, 135, 90, 0.35);
  background: #effaf5;
}

.proof-frame.is-ready .proof-confidence strong {
  color: var(--ok);
}

.proof-frame.is-review .proof-confidence,
.proof-frame.is-stale .proof-confidence {
  border-color: rgba(184, 88, 18, 0.35);
  background: #fff4e8;
}

.proof-frame.is-review .proof-confidence strong,
.proof-frame.is-stale .proof-confidence strong {
  color: var(--warn);
}

body[data-demo-audience="shop"] .proof-frame .proof-confidence {
  border-color: rgba(251, 250, 247, 0.12);
  background: rgba(15, 15, 15, 0.82);
}

body[data-demo-audience="shop"] .proof-frame .proof-confidence span {
  color: var(--cyan);
}

body[data-demo-audience="shop"] .proof-frame .proof-confidence strong,
body[data-demo-audience="shop"] .proof-frame .proof-confidence p {
  color: var(--paper);
}

.proof-toolbar span,
.proof-toolbar strong {
  display: block;
}

.proof-toolbar span {
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.proof-toolbar strong {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.proof-view-note {
  max-width: 620px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.proof-view-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 4px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.07);
}

.proof-view-toggle button {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 132px;
  min-height: 42px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.proof-view-toggle button span,
.proof-view-toggle button small {
  display: block;
  line-height: 1.1;
}

.proof-view-toggle button span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  text-transform: none;
}

.proof-view-toggle button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

.proof-view-toggle button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.proof-view-toggle button[data-proof-view="preview"].active {
  border-color: #13875a;
  background: #13875a;
}

.proof-view-toggle button[data-proof-view="inspection"].active {
  border-color: #8a3f00;
  background: #8a3f00;
}

.proof-view-toggle button.active span,
.proof-view-toggle button.active small {
  color: #ffffff;
}

.proof-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 15, 15, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(52, 199, 238, 0.08), transparent 42%),
    #f7f3eb;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.inspection-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.inspection-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #33434c;
  font-size: 12px;
  font-weight: 720;
}

.inspection-legend i {
  display: inline-block;
  width: 32px;
  height: 0;
  border-top: 3px solid #ff00ff;
}

.inspection-legend .legend-bounds {
  border-color: #00a3ff;
  border-style: dashed;
}

.draft-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: min(82%, 680px);
  max-height: 70vh;
  aspect-ratio: var(--draft-aspect, 1 / 1);
  overflow: visible;
  background: var(--draft-background, transparent);
}

body[data-demo-audience="shop"] .draft-preview[data-outline="active"]::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.36),
    inset 0 0 0 14px #ffffff;
  content: "";
}

.draft-preview img {
  position: absolute;
  inset:
    var(--draft-art-inset-y, 0)
    var(--draft-art-inset-x, 0);
  z-index: 1;
  width: auto;
  height: auto;
  object-fit: contain;
}

.draft-cutline {
  position: absolute;
  inset: var(--draft-inset, 7%);
  border: var(--draft-outline-px, 8px) solid rgba(18, 49, 58, 0.32);
  border-radius: var(--draft-radius, 20%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
  pointer-events: none;
  z-index: 2;
}

.draft-preview[data-shape="circle"] .draft-cutline {
  border-radius: 999px;
}

.draft-preview[data-shape="circle"] {
  border-radius: 0;
}

.draft-preview[data-shape="square"] {
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.draft-preview[data-shape="square"] .draft-cutline,
.draft-preview[data-shape="sheet"] .draft-cutline {
  border-radius: 0;
}

.draft-preview[data-shape="sheet"] {
  border-radius: 0;
}

.draft-preview[data-shape="rounded-rectangle"] .draft-cutline {
  border-radius: 8%;
}

.draft-preview[data-shape="rounded-rectangle"] {
  border-radius: 0;
}

.draft-preview[data-shape="custom"] .draft-cutline {
  border-style: dashed;
}

.draft-preview[data-shape="custom"] {
  border-radius: 0;
}

.draft-preview[data-artwork-mode="starter"] {
  background: transparent;
}

.draft-preview[data-artwork-mode="starter"]::before {
  content: none;
}

.draft-preview[data-cutline-mode="fixed"] .draft-cutline {
  border-style: solid;
  opacity: 0.72;
}

.draft-preview[data-outline="none"] .draft-cutline {
  border-color: transparent;
  box-shadow: none;
  opacity: 0;
}

.summary {
  order: 9;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.summary div {
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.summary dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.operator-stack {
  order: 10;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.7);
}

.operator-stack-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.operator-stack-header strong {
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
}

.operator-detail-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.operator-detail-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 92px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-left: 4px solid rgba(15, 15, 15, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  text-decoration: none;
}

.operator-detail-card:focus-visible {
  outline: 3px solid #087b6f;
  outline-offset: 2px;
}

.operator-detail-card:hover {
  transform: translateY(-1px);
}

.operator-detail-card[aria-disabled] {
  cursor: default;
}

.operator-detail-card[aria-disabled]:hover {
  transform: none;
}

.operator-detail-card span,
.operator-detail-card strong,
.operator-detail-card small {
  display: block;
  min-width: 0;
}

.operator-detail-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.operator-detail-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.operator-detail-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.operator-detail-card.ready {
  border-color: rgba(22, 135, 90, 0.2);
  border-left-color: rgba(22, 135, 90, 0.68);
  background: rgba(239, 250, 245, 0.88);
}

.operator-detail-card.ready strong {
  color: var(--ok);
}

.operator-detail-card.draft {
  border-color: rgba(0, 122, 185, 0.22);
  border-left-color: rgba(0, 122, 185, 0.6);
  background: rgba(237, 248, 255, 0.88);
}

.operator-detail-card.draft strong {
  color: #086fa7;
}

.operator-detail-card.blocked {
  border-color: rgba(184, 88, 18, 0.24);
  border-left-color: rgba(184, 88, 18, 0.68);
  background: rgba(255, 244, 232, 0.9);
}

.operator-detail-card.blocked strong {
  color: var(--warn);
}

.operator-stack .preflight-panel,
.operator-stack .decision-panel,
.operator-stack .provider-panel,
.operator-stack .acceptance-panel,
.operator-stack .readiness-panel,
.operator-stack .artifact-board,
.operator-stack .technical-drawer {
  margin-top: 0;
}

.operator-stack .preflight-panel,
.operator-stack .decision-panel,
.operator-stack .provider-panel,
.operator-stack .acceptance-panel,
.operator-stack .readiness-panel,
.operator-stack .artifact-group,
.operator-stack .technical-drawer {
  box-shadow: none;
}

#preflightPanel,
#acceptancePanel,
#productionReadinessPanel,
#receiptDrawer {
  scroll-margin-top: 104px;
}

.acceptance-panel,
.readiness-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
}

.acceptance-panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.acceptance-panel.ready {
  border-color: rgba(22, 135, 90, 0.35);
  background: #effaf5;
}

.acceptance-panel.draft {
  border-color: rgba(0, 122, 185, 0.3);
  background: #edf8ff;
}

.acceptance-panel.blocked {
  border-color: rgba(184, 88, 18, 0.35);
  background: #fff4e8;
}

.readiness-panel {
  border: 1px solid #d9b184;
  background: #fff9ef;
}

.acceptance-header,
.readiness-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.preflight-header > div,
.acceptance-header > div,
.readiness-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.acceptance-header span,
.acceptance-group > span,
.readiness-header span,
.readiness-group > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.acceptance-header strong,
.readiness-header strong {
  font-size: 15px;
  line-height: 1.25;
  text-align: right;
}

.acceptance-panel.ready .acceptance-header strong {
  color: var(--ok);
}

.acceptance-panel.draft .acceptance-header strong {
  color: #086fa7;
}

.acceptance-panel.blocked .acceptance-header strong {
  color: var(--warn);
}

.readiness-header strong {
  color: var(--danger);
}

.section-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section-status.ready {
  border-color: rgba(22, 135, 90, 0.22);
  background: rgba(239, 250, 245, 0.9);
  color: var(--ok);
}

.section-status.draft {
  border-color: rgba(0, 122, 185, 0.22);
  background: rgba(237, 248, 255, 0.9);
  color: #086fa7;
}

.section-status.blocked {
  border-color: rgba(184, 88, 18, 0.24);
  background: rgba(255, 244, 232, 0.9);
  color: var(--warn);
}

.acceptance-panel p,
.readiness-panel p {
  color: #4d5b64;
  font-size: 13px;
  line-height: 1.45;
}

.acceptance-grid,
.readiness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.acceptance-group,
.readiness-group {
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(23, 35, 43, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.74);
}

.readiness-group {
  border-color: rgba(159, 53, 31, 0.22);
}

.acceptance-group ul,
.readiness-group ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 17px;
}

.acceptance-group li,
.readiness-group li {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.proof-frame img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
}

.proof-frame #preview:not([hidden]) {
  padding: clamp(10px, 1.7vw, 18px);
  border: 1px solid rgba(75, 67, 58, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(75, 67, 58, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(75, 67, 58, 0.04) 1px, transparent 1px),
    #f3eee5;
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow:
    0 18px 34px rgba(23, 35, 43, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.72);
}

.empty {
  color: var(--muted);
}

.review-files-panel {
  order: 7;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.74);
}

.review-files-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.review-files-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.review-files-header strong {
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.25;
  text-align: right;
}

.shop-bench-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 10px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.86);
  padding: 12px;
}

.shop-bench-cockpit-main {
  grid-column: 1;
  grid-row: 1;
}

.shop-bench-cockpit-grid {
  grid-column: 2;
  grid-row: 1;
}

.shop-review-path {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 15, 15, 0.12);
}

.shop-review-path-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 42px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  padding: 7px;
  text-align: left;
}

.shop-review-path-button span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(52, 199, 238, 0.14);
  color: #086fa7;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.shop-review-path-button strong {
  color: currentColor;
  font-size: 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.shop-review-path-button:hover,
.shop-review-path-button:focus-visible,
.shop-review-path-button.is-active {
  border-color: rgba(52, 199, 238, 0.5);
  background: rgba(223, 247, 255, 0.86);
  color: #075f90;
}

.shop-review-path-button:focus-visible {
  outline: 3px solid #087b6f;
  outline-offset: 2px;
}

.shop-review-path-button.is-active span {
  background: #34c7ee;
  color: #07354a;
}

.is-shop-review-active {
  outline: 2px solid rgba(52, 199, 238, 0.52);
  outline-offset: 3px;
}

.shop-bench-cockpit-main,
.shop-bench-cockpit-grid > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.shop-bench-cockpit-main {
  border-right: 1px solid rgba(15, 15, 15, 0.12);
  padding-right: 12px;
}

.shop-bench-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shop-bench-cockpit span,
.shop-bench-cockpit strong,
.shop-bench-cockpit small,
.shop-bench-cockpit p {
  display: block;
  min-width: 0;
}

.shop-bench-cockpit span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.shop-bench-cockpit strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.shop-bench-cockpit-main strong {
  font-size: 22px;
}

.shop-bench-cockpit p,
.shop-bench-cockpit small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.28;
}

.shop-bench-cockpit .shop-review-path-button span {
  color: #086fa7;
  font-size: 11px;
  line-height: 1;
  text-transform: none;
}

.shop-bench-cockpit .shop-review-path-button strong {
  color: currentColor;
  font-size: 12px;
  line-height: 1.1;
}

.shop-bench-cockpit .shop-review-path-button.is-active span {
  color: #07354a;
}

.shop-bench-cockpit.ready {
  border-color: rgba(22, 135, 90, 0.24);
  background: rgba(239, 250, 245, 0.9);
}

.shop-bench-cockpit.ready .shop-bench-cockpit-main strong,
.shop-bench-cockpit.ready .shop-bench-cockpit-grid strong {
  color: var(--ok);
}

.shop-bench-cockpit.draft {
  border-color: rgba(0, 122, 185, 0.24);
  background: rgba(237, 248, 255, 0.9);
}

.shop-bench-cockpit.draft .shop-bench-cockpit-main strong,
.shop-bench-cockpit.draft .shop-bench-cockpit-grid strong {
  color: #086fa7;
}

.shop-bench-cockpit.blocked {
  border-color: rgba(184, 88, 18, 0.28);
  background: rgba(255, 244, 232, 0.94);
}

.shop-bench-cockpit.blocked .shop-bench-cockpit-main strong,
.shop-bench-cockpit.blocked .shop-bench-cockpit-grid strong {
  color: var(--warn);
}

.review-files-panel .artifact-board {
  margin-top: 0;
}

.artifact-board {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.artifact-group {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.artifact-group > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.artifact-links {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.artifact-empty {
  color: var(--muted);
  font-size: 13px;
}

.receipt-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.receipt-snapshot div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 92px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  padding: 11px;
}

.receipt-snapshot span,
.receipt-snapshot strong,
.receipt-snapshot small {
  display: block;
  min-width: 0;
}

.receipt-snapshot span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.receipt-snapshot strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.receipt-snapshot small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.receipt-snapshot.ready div {
  border-color: rgba(22, 135, 90, 0.22);
  background: rgba(239, 250, 245, 0.86);
}

.receipt-snapshot.ready strong {
  color: var(--ok);
}

.receipt-snapshot.draft div {
  border-color: rgba(0, 122, 185, 0.22);
  background: rgba(237, 248, 255, 0.86);
}

.receipt-snapshot.draft strong {
  color: #086fa7;
}

.receipt-snapshot.blocked div {
  border-color: rgba(184, 88, 18, 0.24);
  background: rgba(255, 244, 232, 0.9);
}

.receipt-snapshot.blocked strong {
  color: var(--warn);
}

.bench-action-strip,
.prepress-path-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bench-action-strip div,
.prepress-path-strip div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 86px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-left: 4px solid rgba(15, 15, 15, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  padding: 11px;
}

.bench-action-strip span,
.bench-action-strip strong,
.bench-action-strip small,
.prepress-path-strip span,
.prepress-path-strip strong,
.prepress-path-strip small {
  display: block;
  min-width: 0;
}

.bench-action-strip span,
.prepress-path-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.bench-action-strip strong,
.prepress-path-strip strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.bench-action-strip small,
.prepress-path-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.bench-action-strip.ready div,
.prepress-path-strip.ready div {
  border-color: rgba(22, 135, 90, 0.2);
  border-left-color: rgba(22, 135, 90, 0.68);
  background: rgba(239, 250, 245, 0.88);
}

.bench-action-strip.ready strong,
.prepress-path-strip.ready strong {
  color: var(--ok);
}

.bench-action-strip.draft div,
.prepress-path-strip.draft div {
  border-color: rgba(0, 122, 185, 0.22);
  border-left-color: rgba(0, 122, 185, 0.6);
  background: rgba(237, 248, 255, 0.88);
}

.bench-action-strip.draft strong,
.prepress-path-strip.draft strong {
  color: #086fa7;
}

.bench-action-strip.blocked div,
.prepress-path-strip.blocked div {
  border-color: rgba(184, 88, 18, 0.24);
  border-left-color: rgba(184, 88, 18, 0.68);
  background: rgba(255, 244, 232, 0.9);
}

.bench-action-strip.blocked strong,
.prepress-path-strip.blocked strong {
  color: var(--warn);
}

.shop-evidence-drawer {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.68);
  padding: 0;
}

.shop-evidence-drawer summary {
  display: grid;
  grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.shop-evidence-drawer summary::-webkit-details-marker {
  display: none;
}

.shop-evidence-drawer summary::after {
  display: inline-grid;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border: 1px solid rgba(52, 199, 238, 0.32);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  content: "+";
}

.shop-evidence-drawer[open] summary::after {
  content: "-";
}

.shop-evidence-drawer summary span,
.shop-evidence-drawer summary strong,
.shop-evidence-drawer summary small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.shop-evidence-drawer summary span {
  grid-column: 2;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.shop-evidence-drawer summary strong {
  grid-column: 3;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.16;
}

.shop-evidence-drawer summary small {
  grid-column: 4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  text-align: right;
}

.shop-evidence-grid {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

#manualFlags {
  color: var(--muted);
  font-size: 13px;
}

#manualFlags.warning {
  color: var(--danger);
}

#manualFlags.ok {
  color: var(--ok);
}

.technical-drawer {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.technical-drawer summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  padding: 12px;
  cursor: pointer;
  color: var(--ink);
}

.technical-drawer summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.technical-drawer summary strong {
  color: #087496;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}

.technical-drawer summary small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
}

pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #171717;
  color: #f5f2ec;
  font-size: 12px;
  line-height: 1.5;
}

/* 08 Base responsive pass */
@media (max-width: 820px) {
  .shell {
    padding: 0;
  }

  .studio {
    min-height: 100vh;
    border: 0;
  }

  .topbar {
    gap: 10px;
    padding: 18px 20px 20px;
  }

  .status {
    min-width: 0;
    text-align: left;
  }

  .topbar,
  .decision-panel,
  .provider-panel,
  .acceptance-header,
  .readiness-header,
  .preflight-header,
  .review-files-header,
  .operator-stack-header,
  .proof-toolbar,
  .order-rail-header,
  .builder-brief {
    align-items: flex-start;
    flex-direction: column;
  }

  .decision-tags {
    justify-content: flex-start;
    max-width: none;
  }

  .workspace {
    display: flex;
    flex-direction: column;
  }

  body[data-demo-audience="customer"] .result,
  body[data-demo-audience="shop"] .result {
    display: contents;
    padding: 0;
  }

  .status-grid,
  .summary,
  .acceptance-grid,
  .readiness-grid,
  .artifact-board,
  .shop-bench-cockpit-grid,
  .receipt-snapshot,
  .bench-action-strip,
  .prepress-path-strip,
  .preflight-grid,
  .operator-detail-map,
  .customer-summary-grid,
  .order-rail-grid,
  .workflow-steps,
  .builder-brief {
    grid-template-columns: 1fr 1fr;
  }

  .shop-bench-cockpit {
    grid-template-columns: 1fr;
  }

  .shop-bench-cockpit-grid,
  .shop-bench-cockpit-main {
    grid-column: 1;
    grid-row: auto;
  }

  .shop-bench-cockpit-main {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 15, 15, 0.12);
    padding-right: 0;
    padding-bottom: 10px;
  }

  .shop-review-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-evidence-drawer summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shop-evidence-drawer summary span {
    grid-column: 2;
  }

  .shop-evidence-drawer summary strong,
  .shop-evidence-drawer summary small {
    grid-column: 1 / -1;
  }

  .shop-evidence-drawer summary small {
    text-align: left;
  }

  .customer-summary-panel {
    grid-template-columns: 1fr;
  }

  .result {
    display: contents;
    padding: 0;
  }

  .result > *,
  .controls {
    margin-right: 20px;
    margin-left: 20px;
  }

  .mobile-quick-start {
    order: 1;
    display: grid;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(0, 122, 185, 0.3);
    background: #ffffff;
  }

  .mobile-quick-start span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-quick-start strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.2;
  }

  .designer-toolbar button,
  .designer-layer-actions button,
  .designer-image-trigger {
    min-height: 44px;
    font-size: 13px;
  }

  .designer-inspector input[type="range"] {
    height: 44px;
  }

  .mobile-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mobile-quick-actions button,
  .mobile-upload-trigger {
    display: grid;
    min-height: 42px;
    place-items: center;
    text-align: center;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.15;
  }

  .mobile-quick-actions button {
    align-content: center;
    justify-items: center;
  }

  .mobile-build-action {
    min-height: 44px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .mobile-quick-start {
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 10px;
    padding: 10px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .mobile-quick-start > div:first-child {
    display: none;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .mobile-quick-actions {
    gap: 6px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .mobile-quick-actions button,
  body[data-builder-stage]:not([data-builder-stage="empty"]) .mobile-upload-trigger {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .mobile-build-action {
    min-height: 40px;
  }

  body[data-builder-stage="proof"] .mobile-quick-actions,
  body[data-builder-stage="review"] .mobile-quick-actions,
  body[data-builder-stage="stale"] .mobile-quick-actions,
  body[data-builder-stage="error"] .mobile-quick-actions {
    display: none;
  }

  body[data-builder-stage="proof"] .mobile-quick-start,
  body[data-builder-stage="review"] .mobile-quick-start {
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 9px;
  }

  body[data-builder-stage="proof"] .mobile-proof-strip,
  body[data-builder-stage="review"] .mobile-proof-strip {
    padding: 8px;
  }

  .order-rail {
    order: 2;
  }

  .proof-header {
    order: 3;
  }

  .proof-frame {
    order: 4;
  }

  body[data-builder-stage="proof"] .proof-frame,
  body[data-builder-stage="review"] .proof-frame {
    order: 2;
    margin-top: 0;
  }

  body[data-builder-stage="proof"] .proof-header,
  body[data-builder-stage="review"] .proof-header {
    display: none;
  }

  body[data-builder-stage="proof"] .order-rail,
  body[data-builder-stage="review"] .order-rail {
    order: 3;
  }

  body[data-demo-audience="customer"][data-builder-stage="proof"] .order-rail,
  body[data-demo-audience="customer"][data-builder-stage="review"] .order-rail {
    order: 2;
  }

  body[data-demo-audience="customer"][data-builder-stage="proof"] .proof-frame,
  body[data-demo-audience="customer"][data-builder-stage="review"] .proof-frame {
    order: 3;
  }

  .approval-strip {
    order: 5;
  }

  .builder-brief {
    order: 6;
  }

  .brief-action {
    display: none;
  }

  .customer-summary-panel {
    order: 7;
  }

  .builder-proof-decision-panel {
    order: 8;
  }

  .review-files-panel {
    order: 9;
  }

  .controls {
    order: 10;
    margin-top: 20px;
    margin-bottom: 0;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-grid {
    order: 10;
  }

  .summary {
    order: 11;
  }

  .operator-stack {
    order: 12;
    margin-bottom: 20px;
  }

  .readiness-header strong,
  .acceptance-header strong,
  .preflight-header strong,
  .review-files-header strong,
  .order-rail-header strong,
  .operator-stack-header strong {
    text-align: left;
  }

  .proof-frame {
    min-height: 320px;
  }

  .proof-stage {
    min-height: 260px;
    width: 100%;
  }

  .proof-view-toggle {
    justify-content: flex-start;
  }

  .proof-confidence {
    width: 100%;
    max-width: none;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-toolbar {
    gap: 8px;
    padding: 8px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-toolbar > div:first-child {
    display: none;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-view-note,
  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-confidence p {
    display: none;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-confidence {
    padding: 7px 9px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-view-toggle {
    width: 100%;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-view-toggle button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 31px;
    padding: 6px 8px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .order-rail {
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .order-rail-header strong {
    font-size: 14px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .order-rail-item {
    min-height: 72px;
    padding: 9px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .approval-strip {
    margin-top: 8px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .approval-strip div {
    min-height: 58px;
    padding: 8px;
  }
}

@media (max-width: 520px) {
  .grid,
  .status-grid,
  .summary,
  .demo-row,
  .designer-save-strip,
  .builder-brief,
  .customer-summary-panel,
  .builder-proof-decision-panel,
  .builder-proof-decision-actions,
  .customer-summary-grid,
  .preflight-grid,
  .operator-detail-map,
  .acceptance-grid,
  .readiness-grid,
  .artifact-board,
  .shop-bench-cockpit-grid,
  .receipt-snapshot,
  .bench-action-strip,
  .prepress-path-strip {
    grid-template-columns: 1fr;
  }

  .shop-review-path {
    grid-template-columns: 1fr 1fr;
  }

  .builder-brief strong {
    font-size: 22px;
  }

  .builder-brief {
    gap: 12px;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .template-grid button.template-card-featured {
    grid-template-columns: 1fr;
    min-height: 136px;
  }

  .template-grid button {
    min-height: 132px;
  }

  .template-thumb {
    min-height: 74px;
  }

  .template-card-featured .template-thumb {
    min-height: 82px;
  }

  .designer-starter-overlay {
    inset: 10px;
    gap: 8px;
    padding: 10px;
  }

  .starter-preview-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 78px;
    padding: 7px;
  }

  .starter-preview-card .template-thumb {
    min-height: 62px;
  }

  .starter-overlay-header {
    align-items: start;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .builder-brief {
    gap: 8px;
    padding: 12px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .builder-brief strong {
    font-size: 20px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .builder-brief p {
    font-size: 14px;
    line-height: 1.28;
  }

  .workflow-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .workflow-steps li {
    min-height: 58px;
    padding: 7px;
    font-size: 11px;
  }

  .workflow-steps li::before {
    margin-bottom: 5px;
    font-size: 9px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .workflow-steps {
    gap: 5px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .workflow-steps li {
    min-height: 48px;
    padding: 6px;
    font-size: 10px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .workflow-steps li::before {
    margin-bottom: 3px;
    font-size: 8px;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-stage {
    gap: 10px;
    min-height: 220px;
    padding: 10px;
    place-content: start center;
  }

  body[data-builder-stage]:not([data-builder-stage="empty"]) .proof-badge {
    position: static;
    justify-self: stretch;
    width: 100%;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .approval-strip {
    grid-template-columns: 1fr;
  }
}

/* Approved Sticker Studio shell */
:root {
  --wide: min(1400px, calc(100vw - 72px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 15, 15, 0.16);
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  width: var(--wide);
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.brand:hover {
  border-color: transparent;
  background: transparent;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 1px 2px 0 rgba(15, 15, 15, 0.5);
  transform: rotate(-2deg);
}

.brand strong,
.brand span {
  display: block;
  min-width: 0;
}

.brand strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.site-nav a,
.site-nav button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 36px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav .is-active {
  background: var(--active-purple);
  box-shadow:
    inset 0 2px 6px rgba(15, 15, 15, 0.38),
    inset 0 0 0 1px rgba(0, 194, 173, 0.58);
  color: #00c2ad;
}

.shell {
  width: var(--wide);
  min-height: auto;
  margin: 0 auto 48px;
  padding: 0 0 48px;
}

.studio-hero {
  margin: 50px 0 22px;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
  padding: 10px;
}

.hero-frame::before,
.studio::before {
  position: absolute;
  top: -1px;
  left: 22px;
  width: 108px;
  height: 3px;
  background: var(--studio-accent);
  content: "";
}

.hero-strip {
  position: relative;
  min-height: 196px;
  aspect-ratio: 1955 / 260;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
}

.hero-strip-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.hero-strip::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(251, 250, 247, 0.2);
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.86), rgba(15, 15, 15, 0.66) 58%, rgba(15, 15, 15, 0.5)),
    linear-gradient(180deg, rgba(15, 15, 15, 0.08), rgba(15, 15, 15, 0.2) 52%, rgba(15, 15, 15, 0.32));
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  padding: clamp(28px, 4vw, 44px) clamp(34px, 5vw, 62px);
  color: var(--paper);
}

.hero-copy h1 {
  display: block;
  font-size: clamp(50px, 7vw, 92px);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-copy h1::before {
  display: none;
}

.hero-boundary {
  margin: 10px 0 0;
  border-left: 4px solid var(--studio-accent);
  padding: 9px 12px 4px;
  color: var(--ink);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 850;
  line-height: 1.38;
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.hero-rail div {
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 13px;
}

.hero-rail span,
.label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-rail strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.studio {
  min-height: auto;
}

.studio-state-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.13);
  background: rgba(255, 255, 255, 0.76);
}

.studio-state-strip strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 950;
}

.studio-state-strip p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-head h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.panel-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.intake-paths {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.intake-card {
  display: grid;
  gap: 4px;
  min-height: 88px;
  border: 1px solid rgba(15, 15, 15, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  text-decoration: none;
}

.intake-card.is-primary {
  border-color: rgba(0, 168, 143, 0.42);
  background: #f6fffb;
}

.intake-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.1;
}

.intake-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.dropzone::before {
  flex: 0 0 74px;
  align-self: stretch;
  min-height: 70px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.04), rgba(15, 15, 15, 0.2)),
    url("/studio-assets/dv-webkit/die-cut-stickers.png") center / cover;
  content: "";
}

body[data-demo-audience="builder"] .demo-row,
body[data-demo-audience="builder"] .builder-brief,
body[data-demo-audience="builder"] .review-files-panel,
body[data-demo-audience="builder"] .status-grid,
body[data-demo-audience="builder"] .summary,
body[data-demo-audience="builder"] .operator-stack,
body[data-demo-audience="builder"] .technical-drawer,
body[data-demo-audience="builder"] .advanced-cutline,
body[data-demo-audience="builder"] .shop-bench-heading {
  display: none;
}

body[data-demo-audience="builder"] .workspace {
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, 430px);
}

body[data-demo-audience="builder"] .result {
  padding: 18px;
}

body[data-demo-audience="builder"] .controls {
  border-right: 0;
  border-left: 1px solid rgba(15, 15, 15, 0.14);
}

.proof-header {
  min-height: 60px;
}

.proof-header h2 {
  font-size: clamp(18px, 2vw, 24px);
}

body[data-demo-audience="shop"] .studio-hero {
  display: none;
}

body[data-demo-audience="shop"] .order-rail,
body[data-demo-audience="shop"] .customer-summary-panel,
body[data-demo-audience="shop"] .builder-proof-decision-panel,
body[data-demo-audience="shop"] .builder-brief,
body[data-demo-audience="shop"] .mobile-quick-start {
  display: none;
}

.shop-bench-heading {
  order: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(251, 250, 247, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper);
}

.shop-bench-heading h2 {
  margin-top: 4px;
  color: var(--paper);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.shop-bench-heading p {
  max-width: 760px;
  margin-top: 8px;
  color: rgba(251, 250, 247, 0.74);
  font-size: 15px;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(0, 194, 173, 0.42);
  border-radius: 999px;
  color: #00c2ad;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

body[data-demo-audience="shop"] .proof-header {
  display: none;
}

body[data-demo-audience="shop"] .proof-frame {
  border-top: 1px solid rgba(52, 199, 238, 0.28);
  border-radius: 8px;
}

@media (max-width: 820px) {
  :root {
    --wide: min(100vw, 100%);
  }

  .site-header__inner,
  .studio-state-strip,
  .shop-bench-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__inner {
    width: 100%;
    gap: 10px;
    padding: 12px 20px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    justify-content: center;
    padding: 7px 6px;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .shell {
    width: 100%;
    margin-bottom: 0;
  }

  .studio-hero {
    margin: 18px 12px 12px;
  }

  .hero-copy {
    padding: 28px 24px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 16vw, 74px);
  }

  .hero-rail,
  .approval-strip {
    grid-template-columns: 1fr;
  }

  body[data-demo-audience="builder"] .workspace {
    display: flex;
    flex-direction: column;
  }

  body[data-demo-audience="builder"] .result {
    display: flex;
    flex-direction: column;
    padding: 12px;
  }

  body[data-demo-audience="builder"] .controls {
    border-left: 0;
  }

  body[data-demo-audience="builder"] .mobile-quick-start {
    display: grid;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 16px;
  }

  .hero-strip {
    min-height: 210px;
    aspect-ratio: auto;
  }

  .hero-rail {
    gap: 7px;
  }

  .studio-state-strip,
  .controls,
  body[data-demo-audience="builder"] .result {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Sticker Studio mock-accurate alignment */
:root {
  --wide: min(1400px, calc(100vw - 72px));
}

.site-header__inner {
  min-height: 88px;
}

.brand-logo {
  width: 54px;
  height: 48px;
  object-fit: contain;
}

.brand-mark {
  display: none;
}

.brand-subtitle {
  letter-spacing: 0.08em;
}

.studio-hero {
  margin: 34px 0 18px;
}

.hero-strip {
  min-height: 154px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  max-width: 620px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(43px, 5vw, 64px);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
  text-shadow:
    0 2px 0 rgba(15, 15, 15, 0.9),
    0 8px 18px rgba(15, 15, 15, 0.45);
}

.hero-boundary {
  max-width: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.hero-rail {
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.92), rgba(15, 15, 15, 0.8)),
    url("/studio-assets/dv-webkit/site-banner-2026.png") center / cover,
    var(--ink);
  background-position: center, center 48%, center;
  background-size: auto, cover, auto;
  box-shadow: var(--soft-shadow);
}

.hero-rail div {
  border: 0;
  border-right: 1px solid rgba(251, 250, 247, 0.16);
  border-radius: 0;
  background: transparent;
  padding: 13px 14px;
  text-align: center;
}

.hero-rail div:last-child {
  border-right: 0;
}

.hero-rail span {
  color: rgba(251, 250, 247, 0.38);
  letter-spacing: 0.04em;
}

.hero-rail strong {
  margin-top: 3px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
}

.hero-message {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.76)),
    url("/studio-assets/dv-webkit/site-banner-2026.png") center / cover,
    var(--ink);
  background-position: center, center 58%, center;
  background-size: auto, cover, auto;
  box-shadow: var(--soft-shadow);
  padding: 12px 18px;
}

.hero-message strong {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-message span {
  color: rgba(251, 250, 247, 0.88);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.studio {
  min-height: auto;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.studio::before,
.studio-state-strip {
  display: none;
}

.real-builder-shell {
  display: grid;
  grid-template-columns: minmax(230px, 272px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  scroll-margin-top: 104px;
}

body[data-demo-audience="customer"] .real-builder-shell,
body[data-demo-audience="shop"] .real-builder-shell {
  grid-template-columns: minmax(0, 1fr);
}

.customer-center {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 0;
  align-self: start;
  max-height: calc(100vh - 98px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(15, 15, 15, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 250, 0.9)),
    var(--panel);
  box-shadow: var(--soft-shadow);
}

body[data-demo-audience="customer"] .customer-center,
body[data-demo-audience="shop"] .customer-center {
  display: none;
}

body[data-studio-view="proof"] .studio-hero {
  display: none;
}

body[data-demo-audience="shop"] .result {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--graphite);
  background-size: 30px 30px, 30px 30px, auto;
  color: var(--paper);
}

body[data-demo-audience="shop"] .result > * {
  margin-right: 0;
  margin-left: 0;
}

body[data-demo-audience="shop"] .shop-bench-heading {
  position: relative;
  order: 1;
  min-height: 126px;
  align-items: center;
  scroll-margin-top: 104px;
  margin: 0;
  overflow: hidden;
  border-color: rgba(251, 250, 247, 0.18);
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.92), rgba(15, 15, 15, 0.74) 58%, rgba(15, 15, 15, 0.64)),
    url("/studio-assets/dv-webkit/site-banner-2026.png") center / cover,
    var(--ink);
  background-position: center, center 64%, center;
  background-size: auto, cover, auto;
  box-shadow: var(--soft-shadow);
}

body[data-demo-audience="shop"] .shop-bench-heading::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(52, 199, 238, 0.08), rgba(0, 168, 143, 0.04), rgba(122, 85, 199, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), transparent 48%, rgba(0, 0, 0, 0.38));
  content: "";
  pointer-events: none;
}

body[data-demo-audience="shop"] .shop-bench-heading > * {
  position: relative;
  z-index: 1;
}

body[data-demo-audience="shop"] .shop-bench-heading h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  text-shadow:
    0 2px 0 rgba(15, 15, 15, 0.9),
    0 8px 18px rgba(15, 15, 15, 0.45);
}

body[data-demo-audience="shop"] .shop-bench-heading p {
  max-width: 760px;
  color: rgba(251, 250, 247, 0.86);
  font-weight: 760;
  line-height: 1.32;
  text-shadow: 0 2px 8px rgba(15, 15, 15, 0.58);
}

body[data-demo-audience="shop"] .approval-strip {
  order: 2;
  margin: 0;
}

body[data-demo-audience="shop"] .proof-frame {
  order: 3;
  min-height: 500px;
  border-top: 1px solid rgba(52, 199, 238, 0.28);
  border-radius: 8px;
}

body[data-demo-audience="shop"] .review-files-panel {
  order: 4;
  margin-top: 0;
}

body[data-demo-audience="shop"] .status-grid {
  order: 5;
  margin-top: 0;
}

body[data-demo-audience="shop"] .operator-stack {
  order: 6;
  margin-top: 0;
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .proof-frame {
  order: 4;
  min-height: clamp(340px, 42vw, 500px);
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .review-files-panel {
  order: 3;
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .proof-stage {
  min-height: clamp(300px, 36vw, 460px);
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .proof-frame img {
  max-height: min(46vh, 500px);
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .review-files-panel,
body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .status-grid,
body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .operator-stack {
  border-color: rgba(52, 199, 238, 0.16);
  background: rgba(15, 15, 15, 0.22);
}

body[data-demo-audience="shop"] .operator-stack-header strong,
body[data-demo-audience="shop"] .operator-detail-card strong,
body[data-demo-audience="shop"] .technical-drawer summary {
  color: var(--paper);
}

body[data-demo-audience="shop"] .operator-detail-card {
  border-color: rgba(251, 250, 247, 0.12);
  border-left-color: rgba(52, 199, 238, 0.44);
  background: rgba(15, 15, 15, 0.2);
}

body[data-demo-audience="shop"] .operator-detail-card span,
body[data-demo-audience="shop"] .technical-drawer summary span {
  color: var(--cyan);
}

body[data-demo-audience="shop"] .operator-detail-card small,
body[data-demo-audience="shop"] .technical-drawer summary small {
  color: rgba(251, 250, 247, 0.68);
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .shop-evidence-drawer {
  border-color: rgba(251, 250, 247, 0.14);
  background: rgba(15, 15, 15, 0.18);
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .shop-evidence-drawer summary strong {
  color: var(--paper);
}

body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .shop-evidence-drawer summary small {
  color: rgba(251, 250, 247, 0.66);
}

body[data-demo-audience="shop"] .operator-detail-card.ready {
  border-color: rgba(74, 221, 151, 0.22);
  border-left-color: rgba(74, 221, 151, 0.66);
  background: rgba(23, 131, 91, 0.13);
}

body[data-demo-audience="shop"] .operator-detail-card.ready strong {
  color: #84e4b7;
}

body[data-demo-audience="shop"] .operator-detail-card.draft {
  border-color: rgba(52, 199, 238, 0.24);
  border-left-color: rgba(52, 199, 238, 0.66);
  background: rgba(52, 199, 238, 0.1);
}

body[data-demo-audience="shop"] .operator-detail-card.draft strong {
  color: #dff7ff;
}

body[data-demo-audience="shop"] .operator-detail-card.blocked {
  border-color: rgba(255, 176, 143, 0.26);
  border-left-color: rgba(255, 176, 143, 0.7);
  background: rgba(174, 100, 22, 0.14);
}

body[data-demo-audience="shop"] .operator-detail-card.blocked strong {
  color: #ffb08f;
}

body[data-demo-audience="shop"] .section-status {
  border-color: rgba(251, 250, 247, 0.14);
  background: rgba(15, 15, 15, 0.2);
  color: rgba(251, 250, 247, 0.72);
}

body[data-demo-audience="shop"] .section-status.ready {
  border-color: rgba(74, 221, 151, 0.22);
  background: rgba(23, 131, 91, 0.14);
  color: #84e4b7;
}

body[data-demo-audience="shop"] .section-status.draft {
  border-color: rgba(52, 199, 238, 0.24);
  background: rgba(52, 199, 238, 0.1);
  color: #dff7ff;
}

body[data-demo-audience="shop"] .section-status.blocked {
  border-color: rgba(255, 176, 143, 0.26);
  background: rgba(174, 100, 22, 0.14);
  color: #ffb08f;
}

body[data-demo-audience="shop"] .technical-drawer {
  border-color: rgba(251, 250, 247, 0.14);
  background: rgba(15, 15, 15, 0.2);
}

body[data-demo-audience="shop"] .technical-drawer summary strong {
  color: #dff7ff;
}

body[data-demo-audience="shop"] .artifact-links a,
body[data-demo-audience="shop"] #manifestLink {
  border-color: rgba(52, 199, 238, 0.34);
  background: rgba(52, 199, 238, 0.1);
  color: #dff7ff;
}

body[data-demo-audience="shop"] .artifact-links a:hover,
body[data-demo-audience="shop"] #manifestLink:hover {
  border-color: rgba(52, 199, 238, 0.58);
  background: rgba(52, 199, 238, 0.18);
  color: #ffffff;
}

body[data-demo-audience="shop"] .receipt-snapshot div {
  border-color: rgba(251, 250, 247, 0.12);
  background: rgba(15, 15, 15, 0.2);
}

body[data-demo-audience="shop"] .receipt-snapshot span {
  color: var(--cyan);
}

body[data-demo-audience="shop"] .receipt-snapshot strong {
  color: var(--paper);
}

body[data-demo-audience="shop"] .receipt-snapshot small {
  color: rgba(251, 250, 247, 0.68);
}

body[data-demo-audience="shop"] .receipt-snapshot.ready div {
  border-color: rgba(74, 221, 151, 0.22);
  background: rgba(23, 131, 91, 0.13);
}

body[data-demo-audience="shop"] .receipt-snapshot.ready strong {
  color: #84e4b7;
}

body[data-demo-audience="shop"] .receipt-snapshot.blocked div {
  border-color: rgba(255, 176, 143, 0.26);
  background: rgba(174, 100, 22, 0.14);
}

body[data-demo-audience="shop"] .receipt-snapshot.blocked strong {
  color: #ffb08f;
}

body[data-demo-audience="shop"] .bench-action-strip div {
  border-color: rgba(251, 250, 247, 0.12);
  border-left-color: rgba(52, 199, 238, 0.44);
  background: rgba(15, 15, 15, 0.2);
}

body[data-demo-audience="shop"] .prepress-path-strip div {
  border-color: rgba(251, 250, 247, 0.12);
  border-left-color: rgba(200, 154, 55, 0.5);
  background: rgba(15, 15, 15, 0.2);
}

body[data-demo-audience="shop"] .bench-action-strip span,
body[data-demo-audience="shop"] .prepress-path-strip span {
  color: var(--cyan);
}

body[data-demo-audience="shop"] .bench-action-strip strong,
body[data-demo-audience="shop"] .prepress-path-strip strong {
  color: var(--paper);
}

body[data-demo-audience="shop"] .bench-action-strip small,
body[data-demo-audience="shop"] .prepress-path-strip small {
  color: rgba(251, 250, 247, 0.68);
}

body[data-demo-audience="shop"] .bench-action-strip.ready div,
body[data-demo-audience="shop"] .prepress-path-strip.ready div {
  border-color: rgba(74, 221, 151, 0.22);
  border-left-color: rgba(74, 221, 151, 0.66);
  background: rgba(23, 131, 91, 0.13);
}

body[data-demo-audience="shop"] .bench-action-strip.ready strong,
body[data-demo-audience="shop"] .prepress-path-strip.ready strong {
  color: #84e4b7;
}

body[data-demo-audience="shop"] .bench-action-strip.draft div,
body[data-demo-audience="shop"] .prepress-path-strip.draft div {
  border-color: rgba(52, 199, 238, 0.24);
  border-left-color: rgba(52, 199, 238, 0.66);
  background: rgba(52, 199, 238, 0.1);
}

body[data-demo-audience="shop"] .bench-action-strip.draft strong,
body[data-demo-audience="shop"] .prepress-path-strip.draft strong {
  color: #dff7ff;
}

body[data-demo-audience="shop"] .bench-action-strip.blocked div,
body[data-demo-audience="shop"] .prepress-path-strip.blocked div {
  border-color: rgba(255, 176, 143, 0.26);
  border-left-color: rgba(255, 176, 143, 0.7);
  background: rgba(174, 100, 22, 0.14);
}

body[data-demo-audience="shop"] .bench-action-strip.blocked strong,
body[data-demo-audience="shop"] .prepress-path-strip.blocked strong {
  color: #ffb08f;
}

body[data-demo-audience="shop"] .status-card.ready {
  border-color: rgba(74, 221, 151, 0.26);
  background: rgba(23, 131, 91, 0.16);
}

body[data-demo-audience="shop"] .status-card.ready strong,
body[data-demo-audience="shop"] #manualFlags.ok {
  color: #84e4b7;
}

body[data-demo-audience="shop"] .status-card.blocked {
  border-color: rgba(255, 176, 143, 0.3);
  background: rgba(174, 100, 22, 0.16);
}

body[data-demo-audience="shop"] .status-card.blocked strong,
body[data-demo-audience="shop"] #manualFlags.warning {
  color: #ffb08f;
}

body[data-demo-audience="shop"][data-builder-stage="empty"] .review-files-panel,
body[data-demo-audience="shop"][data-builder-stage="empty"] .status-grid {
  display: none;
}

body[data-demo-audience="shop"][data-builder-stage="empty"] .proof-frame {
  min-height: 360px;
}

body[data-demo-audience="shop"][data-builder-stage="empty"] .proof-stage {
  min-height: 360px;
}

body[data-demo-audience="shop"][data-builder-stage="empty"] .proof-badge,
body[data-demo-audience="shop"][data-builder-stage="empty"] .mock-proof-sticker {
  display: none;
}

body[data-demo-audience="shop"][data-builder-stage="empty"] .empty {
  display: grid;
  width: min(100%, 420px);
  min-height: 160px;
  place-items: center;
  border: 1px dashed rgba(52, 199, 238, 0.34);
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.36);
  color: rgba(251, 250, 247, 0.82);
  padding: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 850;
}

.customer-center::before {
  position: absolute;
  top: 0;
  left: 18px;
  z-index: 2;
  width: 94px;
  height: 3px;
  background: var(--studio-accent);
  content: "";
}

.account-rail__head {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 126px;
  overflow: hidden;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.12);
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.72) 58%, rgba(15, 15, 15, 0.58)),
    url("/studio-assets/dv-webkit/site-banner-2026.png") center / cover,
    var(--ink);
  color: var(--paper);
}

.account-rail__head::after,
body[data-demo-audience="builder"] .panel-head::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(52, 199, 238, 0.08), rgba(0, 168, 143, 0.05), rgba(122, 85, 199, 0.09)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 48%, rgba(0, 0, 0, 0.34));
  content: "";
  pointer-events: none;
}

.account-rail__head > *,
body[data-demo-audience="builder"] .panel-head > * {
  position: relative;
  z-index: 1;
}

.account-rail__head strong {
  display: block;
  color: var(--paper);
  font-size: clamp(24px, 2vw, 26px);
  font-weight: 950;
  line-height: 0.92;
  text-shadow:
    0 2px 0 rgba(15, 15, 15, 0.9),
    0 8px 18px rgba(15, 15, 15, 0.48);
}

.account-rail__head span {
  display: block;
  margin-top: 6px;
  color: rgba(251, 250, 247, 0.9);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.14;
  text-shadow: 0 2px 8px rgba(15, 15, 15, 0.58);
}

.customer-center__status-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 248, 0.88));
}

.customer-center__status-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.16);
  border-left: 5px solid rgba(15, 15, 15, 0.2);
  border-radius: 8px;
  background: #fffdfa;
  padding: 11px 12px;
  box-shadow: 0 1px 0 rgba(15, 15, 15, 0.04);
}

.customer-center__status-card::after {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.24);
  content: "";
}

.customer-center__status-card--proof {
  border-left-color: rgba(0, 168, 143, 0.48);
}

.customer-center__status-card--release {
  border-left-color: rgba(200, 154, 55, 0.58);
}

.customer-center__status-strip span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.07);
  color: rgba(15, 15, 15, 0.68);
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.customer-center__status-strip strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.real-builder-shell[data-center-state="ready"] .customer-center__status-card--release,
.real-builder-shell[data-center-state="review"] .customer-center__status-card,
.real-builder-shell[data-center-state="blocked"] .customer-center__status-card {
  border-color: rgba(200, 154, 55, 0.36);
  border-left-color: rgba(200, 154, 55, 0.72);
  background: #fff8e8;
}

.real-builder-shell[data-center-state="ready"] .customer-center__status-card--proof {
  border-color: rgba(0, 168, 143, 0.34);
  border-left-color: rgba(0, 168, 143, 0.7);
  background: #f2fffa;
}

.real-builder-shell[data-center-state="ready"] .customer-center__status-card--proof::after {
  background: var(--active-teal);
}

.real-builder-shell[data-center-state="ready"] .customer-center__status-card--release::after,
.real-builder-shell[data-center-state="review"] .customer-center__status-card::after,
.real-builder-shell[data-center-state="blocked"] .customer-center__status-card::after {
  background: #c89a37;
}

.rail-list {
  display: grid;
  gap: 1px;
  background: rgba(15, 15, 15, 0.1);
}

.rail-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  background: #fffdfa;
  color: var(--ink);
  padding: 13px 15px;
  text-align: left;
}

.rail-button strong,
.rail-button span {
  display: block;
}

.rail-button strong {
  font-size: 14px;
  font-weight: 950;
}

.rail-button span span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.rail-button small {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(0, 168, 143, 0.2);
  border-radius: 999px;
  background: rgba(0, 168, 143, 0.08);
  color: #0b6f66;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.rail-button[data-rail-scope="Future"] small {
  border-color: rgba(200, 154, 55, 0.24);
  background: rgba(200, 154, 55, 0.1);
  color: #865f16;
}

.rail-button em {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}

.rail-button.is-active {
  background: #f6fffb;
  box-shadow: inset 3px 0 0 var(--active-teal);
}

.rail-button.is-active em {
  background: var(--active-teal);
}

.rail-button:hover,
.rail-button:focus-visible {
  background: #f7fffc;
}

.customer-center__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(15, 15, 15, 0.1);
  border-top: 1px solid rgba(15, 15, 15, 0.08);
}

.customer-center__grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.78);
}

.customer-center__grid span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(0, 194, 173, 0.1);
  color: #0b6f66;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.customer-center__grid strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.16;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.customer-center__boundary {
  margin: 12px 15px 15px;
  border-radius: 6px;
  background: rgba(15, 15, 15, 0.94);
  color: rgba(251, 250, 247, 0.9);
  padding: 10px 11px;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.28;
}

.real-builder-shell[data-center-state="ready"] .customer-center__grid [data-center-cell="proof"] {
  background: rgba(0, 168, 143, 0.1);
}

.real-builder-shell[data-center-state="ready"] .customer-center__grid [data-center-cell="release"],
.real-builder-shell[data-center-state="review"] .customer-center__grid [data-center-cell="proof"],
.real-builder-shell[data-center-state="review"] .customer-center__grid [data-center-cell="release"],
.real-builder-shell[data-center-state="blocked"] .customer-center__grid [data-center-cell="proof"],
.real-builder-shell[data-center-state="blocked"] .customer-center__grid [data-center-cell="release"] {
  background: rgba(200, 154, 55, 0.12);
}

body[data-demo-audience="builder"] .workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 18px;
}

body[data-demo-audience="builder"] .result,
body[data-demo-audience="builder"] .controls {
  position: relative;
  align-self: start;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

body[data-demo-audience="builder"] .result::before,
body[data-demo-audience="builder"] .controls::before {
  position: absolute;
  top: -1px;
  left: 22px;
  z-index: 3;
  width: 108px;
  height: 3px;
  background: var(--studio-accent);
  content: "";
}

body[data-demo-audience="builder"] .result {
  grid-column: 1;
  grid-row: 1;
  grid-template-rows: auto;
  padding: 0;
  background: #ffffff;
}

body[data-demo-audience="builder"] .controls {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  border-left: 1px solid rgba(15, 15, 15, 0.18);
}

body[data-demo-audience="builder"] .controls .control-group {
  margin: 0;
  padding: 0 18px 18px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.1);
}

body[data-demo-audience="builder"] .panel-head {
  position: relative;
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 -18px 16px;
  border-bottom: 1px solid rgba(15, 15, 15, 0.12);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.9), rgba(15, 15, 15, 0.72) 58%, rgba(15, 15, 15, 0.58)),
    url("/studio-assets/dv-webkit/site-banner-2026.png") center / cover,
    var(--ink);
  color: var(--paper);
  padding: 14px 18px;
}

body[data-demo-audience="builder"] .panel-head .label {
  color: var(--cyan);
  font-size: 10px;
  text-shadow: 0 2px 8px rgba(15, 15, 15, 0.58);
}

body[data-demo-audience="builder"] .panel-head h2 {
  margin: 4px 0 0;
  color: var(--paper);
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 0.94;
  text-shadow:
    0 2px 0 rgba(15, 15, 15, 0.9),
    0 8px 18px rgba(15, 15, 15, 0.48);
}

body[data-demo-audience="builder"] .panel-head p {
  max-width: 390px;
  margin: 6px 0 0;
  color: rgba(251, 250, 247, 0.9);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.16;
  text-shadow: 0 2px 8px rgba(15, 15, 15, 0.58);
}

body[data-demo-audience="builder"] .intake-paths {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

body[data-demo-audience="builder"] .intake-card {
  min-height: 142px;
  align-content: start;
  background: #fffdfa;
  padding: 12px;
}

body[data-demo-audience="builder"] .intake-card span {
  font-size: 10px;
  letter-spacing: 0.04em;
}

body[data-demo-audience="builder"] .intake-card strong {
  margin-top: 4px;
  font-size: 14px;
}

body[data-demo-audience="builder"] .dropzone {
  position: relative;
  min-height: 86px;
  margin-bottom: 16px;
  background: #f6fffb;
}

body[data-demo-audience="builder"] .dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

body[data-demo-audience="builder"] .designer-panel {
  display: grid;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
}

body[data-demo-audience="builder"] .designer-panel-header {
  order: 1;
  border: 0;
  padding: 0;
}

body[data-demo-audience="builder"] .library-note {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-demo-audience="builder"] .library-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(0, 168, 143, 0.24);
  border-radius: 999px;
  background: rgba(0, 168, 143, 0.07);
  color: var(--teal);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-demo-audience="builder"] .designer-template-heading {
  order: 3;
}

body[data-demo-audience="builder"] #designerTemplates {
  order: 4;
}

body[data-demo-audience="builder"] .designer-canvas-stage {
  order: 5;
}

body[data-demo-audience="builder"] #designerTemplateFields {
  order: 6;
}

body[data-demo-audience="builder"] .designer-save-strip {
  order: 7;
}

body[data-demo-audience="builder"] .designer-advanced-tools {
  order: 8;
}

body[data-demo-audience="builder"] .designer-clip-heading {
  order: 9;
}

body[data-demo-audience="builder"] #designerClipArt {
  order: 10;
}

body[data-demo-audience="builder"] .designer-toolbar {
  order: 11;
}

body[data-demo-audience="builder"] .designer-inspector {
  order: 12;
}

.proof-header {
  min-height: 126px;
  border-radius: 0;
  padding: 14px 18px;
}

.proof-header h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: 0;
  text-transform: uppercase;
}

.proof-reference {
  max-width: 520px;
  margin-top: 5px;
  color: rgba(251, 250, 247, 0.9);
  font-size: 13px;
  font-weight: 720;
  text-shadow: 0 2px 8px rgba(15, 15, 15, 0.54);
}

.proof-safe-pill {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 28px;
  align-self: center;
  background: #f3fffb;
  color: #087b6f;
  padding: 5px 9px;
  font-size: 10px;
  text-shadow: none;
  white-space: nowrap;
}

.proof-frame {
  min-height: 520px;
  border-radius: 0;
  box-shadow: none;
}

body[data-demo-audience="builder"] .proof-frame {
  border: 1px solid rgba(75, 67, 58, 0.2);
  border-radius: 0 0 8px 8px;
  background: #f7f3eb;
}

body[data-demo-audience="builder"] .proof-frame.is-empty,
body[data-demo-audience="builder"] .proof-frame[data-proof-audience="draft"] {
  border-color: rgba(15, 15, 15, 0.18);
}

body[data-demo-audience="builder"] .proof-stage {
  position: relative;
  min-height: 520px;
}

.proof-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(0, 168, 143, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  padding: 11px 12px;
}

.proof-badge span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-badge strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.mock-proof-sticker {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(72%, 420px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 22px 38px rgba(15, 15, 15, 0.2),
    inset 0 0 0 16px #ffffff,
    inset 0 0 0 20px rgba(0, 168, 143, 0.5);
}

.mock-proof-sticker::before {
  position: absolute;
  inset: -13px;
  z-index: -1;
  border: 2px solid rgba(15, 15, 15, 0.08);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.7);
  content: "";
}

.mock-proof-sticker::after {
  position: absolute;
  inset: 36px;
  border: 1px dashed rgba(122, 85, 199, 0.32);
  border-radius: inherit;
  content: "";
}

.mock-proof-sticker img {
  position: relative;
  z-index: 2;
  width: 64%;
  height: 64%;
  object-fit: contain;
}

body[data-builder-stage="empty"] .empty {
  display: none;
}

body[data-builder-stage]:not([data-builder-stage="empty"]) .mock-proof-sticker {
  display: none;
}

body[data-demo-audience="builder"] .approval-strip {
  border-top: 1px solid rgba(15, 15, 15, 0.12);
  background: rgba(15, 15, 15, 0.1);
  gap: 1px;
  margin: 0;
}

body[data-demo-audience="builder"] .approval-strip div {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 14px 16px;
}

@media (max-width: 980px) {
  .real-builder-shell,
  body[data-demo-audience="builder"] .workspace,
  body[data-demo-audience="shop"] .workspace,
  .hero-rail,
  .hero-message,
  .customer-center__grid,
  body[data-demo-audience="builder"] .intake-paths {
    grid-template-columns: 1fr;
  }

  .hero-message span {
    text-align: left;
  }

  .customer-center {
    max-height: none;
    overflow: visible;
    position: relative;
    top: auto;
  }

  .rail-list {
    grid-template-columns: repeat(4, minmax(176px, 1fr));
    overflow-x: auto;
  }

  .customer-center__grid div {
    border-bottom: 0;
  }

  .customer-center__grid div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --wide: min(100% - 20px, 1180px);
  }

  .site-header__inner {
    min-height: 0;
  }

  .brand-logo {
    width: 40px;
    height: 36px;
  }

  .studio-hero {
    margin-top: 18px;
  }

  .hero-strip {
    min-height: 112px;
  }

  .hero-copy {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-boundary {
    font-size: 13px;
  }

  .hero-rail {
    margin-top: 18px;
  }

  .rail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .rail-button {
    min-height: 76px;
    padding: 13px 14px;
  }

  body[data-demo-audience="builder"] .panel-head {
    display: grid;
  }

  .proof-header h2 {
    font-size: 37px;
  }
}

/* Sticker Studio lower workspace polish */
body[data-demo-audience="builder"] .workspace {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 20px;
  align-items: start;
}

body[data-demo-audience="builder"] .result,
body[data-demo-audience="builder"] .controls {
  display: grid;
  min-width: 0;
}

body[data-demo-audience="builder"] .controls {
  align-content: start;
  background: rgba(255, 255, 255, 0.9);
}

body[data-demo-audience="builder"] .controls .control-group {
  padding: 0 16px 16px;
}

body[data-demo-audience="builder"] .panel-head {
  margin: 0 -16px 14px;
  padding: 14px 16px;
}

body[data-demo-audience="builder"] .intake-card {
  min-height: 118px;
}

body[data-demo-audience="builder"] .dropzone {
  min-height: 76px;
}

body[data-demo-audience="builder"] .dropzone::before {
  flex-basis: 62px;
  min-height: 58px;
}

body[data-demo-audience="builder"] .designer-panel {
  gap: 10px;
}

body[data-demo-audience="builder"] .template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-demo-audience="builder"] .template-grid button,
body[data-demo-audience="builder"] .template-grid button.template-card-featured {
  grid-column: auto;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  padding: 8px;
}

body[data-demo-audience="builder"] .template-thumb,
body[data-demo-audience="builder"] .template-card-featured .template-thumb {
  min-height: 0;
  aspect-ratio: var(--template-thumb-aspect, 1 / 1);
}

body[data-demo-audience="builder"] .template-copy,
body[data-demo-audience="builder"] .template-card-featured .template-copy {
  align-content: center;
  gap: 3px;
}

body[data-demo-audience="builder"] .template-grid .template-card-featured strong,
body[data-demo-audience="builder"] .template-grid strong {
  font-size: 12px;
  line-height: 1.15;
}

body[data-demo-audience="builder"] .template-grid .template-card-featured small,
body[data-demo-audience="builder"] .template-grid small {
  font-size: 10px;
  line-height: 1.18;
}

body[data-demo-audience="builder"] .clip-art-group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-demo-audience="builder"] .clip-art-grid button,
body[data-demo-audience="builder"] .clip-art-group-grid button {
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: start;
  min-height: 72px;
  padding: 8px;
  text-align: left;
}

body[data-demo-audience="builder"] .clip-art-group-grid strong,
body[data-demo-audience="builder"] .clip-art-group-grid small {
  overflow-wrap: normal;
  word-break: normal;
}

body[data-demo-audience="builder"] .clip-art-swatch {
  grid-row: auto;
  width: 34px;
  height: 34px;
}

body[data-demo-audience="builder"] .designer-canvas-stage {
  width: min(100%, 380px);
  justify-self: center;
}

body[data-demo-audience="builder"] .order-rail,
body[data-demo-audience="builder"] .customer-summary-panel,
body[data-demo-audience="builder"] .builder-proof-decision-panel {
  margin: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-demo-audience="builder"] .order-rail {
  border-top: 1px solid rgba(15, 15, 15, 0.12);
}

body[data-demo-audience="builder"] .shop-bench-heading {
  display: none;
  align-items: center;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(246, 255, 251, 0.94), rgba(255, 255, 255, 0.96));
  color: var(--ink);
  padding: 11px 16px;
}

body[data-demo-audience="builder"] .shop-bench-heading > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

body[data-demo-audience="builder"] .shop-bench-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.05;
  text-transform: none;
}

body[data-demo-audience="builder"] .shop-bench-heading p {
  flex-basis: 100%;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.22;
}

body[data-demo-audience="builder"] .shop-bench-heading .status-pill {
  border-color: rgba(0, 168, 143, 0.32);
  background: rgba(0, 168, 143, 0.08);
  color: #0b6f66;
}

body[data-demo-audience="builder"] .customer-summary-panel {
  border-bottom: 0;
}

body[data-demo-audience="builder"] .builder-proof-decision-panel {
  border-bottom: 0;
}

@media (min-width: 981px) {
  .local-review-tools {
    left: 326px;
  }

  body[data-demo-audience="shop"] .local-review-tools {
    right: 14px;
    left: auto;
  }

  body[data-demo-audience="builder"] .controls {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  body[data-demo-audience="builder"] .controls::-webkit-scrollbar {
    width: 10px;
  }

  body[data-demo-audience="builder"] .controls::-webkit-scrollbar-thumb {
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.24);
  }

  body[data-demo-audience="builder"] .controls .primary {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 -12px 22px rgba(15, 15, 15, 0.08);
  }
}

@media (max-width: 980px) {
  body[data-demo-audience="builder"] .workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body[data-demo-audience="builder"] .result,
  body[data-demo-audience="builder"] .controls {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  body[data-demo-audience="builder"] .result {
    order: 1;
    align-content: start;
  }

  body[data-demo-audience="builder"] .controls {
    position: relative;
    order: 2;
    max-height: none;
    overflow: visible;
  }

  body[data-demo-audience="builder"] .result > *,
  body[data-demo-audience="builder"] .controls {
    margin-right: 0;
    margin-left: 0;
  }

  body[data-demo-audience="builder"] .designer-canvas-stage {
    width: 100%;
  }

  body[data-demo-audience="builder"] .clip-art-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .local-review-tools {
    right: auto;
    bottom: 70px;
    left: 10px;
    width: min(174px, calc(100vw - 20px));
  }

  body[data-demo-audience="shop"] .local-review-tools {
    bottom: 10px;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools {
    right: 10px;
    left: auto;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) {
    width: 52px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) {
    top: 82px;
    right: 10px;
    bottom: auto;
    left: auto;
    width: 52px;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools summary {
    gap: 6px;
  }

  body[data-demo-audience="builder"] .local-review-tools summary {
    gap: 6px;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary {
    grid-template-columns: 1fr;
    min-height: 52px;
    place-items: center;
    padding: 8px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) summary {
    grid-template-columns: 1fr;
    min-height: 52px;
    place-items: center;
    padding: 8px;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary span,
  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary strong {
    display: none;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) summary span,
  body[data-demo-audience="builder"] .local-review-tools:not([open]) summary strong {
    display: none;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary::after {
    width: 32px;
    height: 32px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) summary::after {
    width: 32px;
    height: 32px;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools strong {
    font-size: 11px;
    line-height: 1.05;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .local-review-tools small {
    font-size: 9px;
  }

  .local-review-tools[open] {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .local-review-panel {
    grid-template-columns: 1fr;
  }

  .local-review-readiness {
    grid-template-columns: 1fr 1fr;
  }

  .local-review-links a {
    min-height: 26px;
    padding: 6px 8px;
  }

  body[data-demo-audience="builder"] .shop-bench-heading {
    align-items: flex-start;
    padding: 10px 12px;
  }

  body[data-demo-audience="builder"] .shop-bench-heading > div {
    gap: 6px 8px;
  }

  body[data-demo-audience="builder"] .shop-bench-heading .status-pill {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 10px;
  }

  body[data-demo-audience="shop"][data-builder-stage="empty"] .proof-frame,
  body[data-demo-audience="shop"][data-builder-stage="empty"] .proof-stage {
    min-height: 300px;
  }

  body[data-demo-audience="shop"][data-builder-stage="empty"] .proof-stage {
    place-items: start center;
    padding-top: 30px;
  }

  body[data-demo-audience="shop"][data-builder-stage="empty"] .empty {
    min-height: 96px;
    padding: 14px;
    font-size: 14px;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .review-files-panel .shop-bench-cockpit {
    order: 1;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .review-files-panel .artifact-board {
    order: 2;
  }

  body[data-demo-audience="shop"]:not([data-builder-stage="empty"]) .review-files-panel .shop-evidence-drawer {
    order: 3;
  }

  .site-header {
    position: static;
  }

  body[data-demo-audience="builder"] .workspace {
    gap: 12px;
  }

  body[data-demo-audience="builder"] .result,
  body[data-demo-audience="builder"] .controls {
    border-radius: 8px;
  }

  body[data-demo-audience="builder"] .proof-header {
    order: 1;
    display: grid;
    min-height: 118px;
    gap: 12px;
    padding: 14px;
  }

  body[data-demo-audience="builder"] .proof-header > div {
    max-width: none;
  }

  body[data-demo-audience="builder"] .proof-header > div > span {
    font-size: 11px;
  }

  body[data-demo-audience="builder"] .proof-reference {
    display: block;
  }

  body[data-demo-audience="builder"] .proof-safe-pill {
    justify-self: start;
    min-height: 32px;
    padding: 8px 11px;
    font-size: 11px;
  }

  body[data-demo-audience="builder"] .proof-frame,
  body[data-demo-audience="builder"] .proof-stage {
    min-height: 340px;
  }

  body[data-demo-audience="builder"] .proof-frame {
    order: 2;
  }

  body[data-demo-audience="builder"] .mobile-quick-start {
    order: 3;
  }

  body[data-demo-audience="builder"][data-builder-stage="empty"] .mobile-quick-start {
    display: none;
  }

  body[data-demo-audience="builder"] .order-rail {
    order: 4;
  }

  body[data-demo-audience="builder"] .approval-strip {
    order: 5;
  }

  body[data-demo-audience="builder"] .mock-proof-sticker {
    width: min(76%, 300px);
  }

  body[data-demo-audience="builder"] .order-rail-grid,
  body[data-demo-audience="builder"] .customer-summary-grid {
    grid-template-columns: 1fr;
  }

  body[data-demo-audience="builder"] .intake-card {
    min-height: 0;
  }

  body[data-demo-audience="builder"] .template-grid,
  body[data-demo-audience="builder"] .clip-art-group-grid {
    grid-template-columns: 1fr;
  }

  body[data-demo-audience="builder"] .template-grid button,
  body[data-demo-audience="builder"] .template-grid button.template-card-featured {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 76px;
  }

  body[data-demo-audience="builder"] .template-thumb,
  body[data-demo-audience="builder"] .template-card-featured .template-thumb {
    min-height: 0;
  }
}

/* Recipe-first Studio shell translation */
body[data-demo-audience="builder"] .real-builder-shell {
  grid-template-columns: 1fr;
  gap: 18px;
}

body[data-demo-audience="builder"] .customer-center {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
  max-height: none;
  overflow: hidden;
}

body[data-demo-audience="builder"] .account-rail__head {
  min-height: 92px;
  border-bottom: 0;
}

body[data-demo-audience="builder"] .customer-center__status-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  border-bottom: 0;
}

body[data-demo-audience="builder"] .rail-list {
  display: none;
}

body[data-demo-audience="builder"] .customer-center__grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-demo-audience="builder"] .customer-center__boundary {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 0;
}

body[data-demo-audience="builder"] .workspace {
  grid-template-columns: 1fr;
  gap: 18px;
}

body[data-demo-audience="builder"] .controls,
body[data-demo-audience="builder"] .result {
  grid-column: 1;
  grid-row: auto;
}

body[data-demo-audience="builder"] .controls {
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 15, 15, 0.024) 1px, transparent 1px),
    rgba(255, 255, 255, 0.9);
  background-size: 28px 28px, 28px 28px, auto;
}

body[data-demo-audience="builder"] .controls .control-group:first-child {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

body[data-demo-audience="builder"] .controls .control-group:not(:first-child) {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
}

body[data-demo-audience="builder"] .controls .control-group:not(:first-child) .group-title,
body[data-demo-audience="builder"] .controls .control-group:not(:first-child) .spec-strip {
  margin: 0;
}

body[data-demo-audience="builder"] .panel-head {
  min-height: 86px;
  margin-bottom: 0;
}

body[data-demo-audience="builder"] .intake-paths {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

body[data-demo-audience="builder"] .intake-card {
  min-height: 86px;
}

body[data-demo-audience="builder"] .dropzone,
body[data-demo-audience="builder"] .demo-row {
  margin-bottom: 0;
}

body[data-demo-audience="builder"] .designer-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(420px, 1.36fr) minmax(300px, 0.86fr);
  grid-template-areas:
    "panel-filter panel-canvas panel-fields"
    "panel-recipe panel-canvas panel-fields"
    "panel-recipe panel-readout panel-fields"
    "panel-recipe panel-save panel-fields"
    "panel-recipe panel-advanced panel-fields";
  gap: 14px;
  margin-top: 2px;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.92);
  padding: 14px;
  box-shadow: 0 14px 30px rgba(15, 15, 15, 0.08);
}

body[data-demo-audience="builder"] .designer-panel-header {
  grid-area: panel-head;
  display: flex;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-bottom: 0;
  padding-bottom: 0;
}

body[data-demo-audience="builder"] .library-note {
  grid-area: panel-note;
  display: none;
}

body[data-demo-audience="builder"] .starter-pack-filters {
  grid-area: panel-filter;
  align-self: start;
  padding-right: 2px;
}

body[data-demo-audience="builder"] .starter-pack-readout {
  grid-area: panel-readout;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
}

body[data-demo-audience="builder"] .designer-template-heading {
  display: none;
}

body[data-demo-audience="builder"] #designerTemplates {
  grid-area: panel-recipe;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 9px;
  padding: 0;
}

body[data-demo-audience="builder"] #designerTemplates .template-group-heading {
  min-height: 36px;
  align-items: end;
}

body[data-demo-audience="builder"] #designerTemplates > button,
body[data-demo-audience="builder"] #designerTemplates .template-details-grid button,
body[data-demo-audience="builder"] #designerTemplates button.template-card-featured {
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border-radius: 7px;
  padding: 10px;
}

body[data-demo-audience="builder"] #designerTemplates > button.active {
  box-shadow:
    inset 0 0 0 2px rgba(52, 199, 238, 0.6),
    0 8px 18px rgba(15, 15, 15, 0.08);
}

body[data-demo-audience="builder"] #designerTemplates .template-thumb {
  min-height: 0;
}

body[data-demo-audience="builder"] .template-details-group {
  border-radius: 7px;
}

body[data-demo-audience="builder"] .template-details-group summary {
  min-height: 42px;
}

body[data-demo-audience="builder"] .template-details-grid {
  grid-template-columns: 1fr;
}

body[data-demo-audience="builder"] .designer-canvas-stage {
  grid-area: panel-canvas;
  width: min(100%, 680px);
  justify-self: center;
  align-self: start;
}

body[data-demo-audience="builder"] .designer-canvas-frame {
  width: 100%;
  border-radius: 8px;
  box-shadow:
    0 20px 34px rgba(15, 15, 15, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

body[data-demo-audience="builder"] .designer-starter-overlay {
  display: grid;
  inset: 18px;
  gap: 12px;
  padding: 14px;
  border-color: rgba(0, 137, 111, 0.24);
  background:
    radial-gradient(circle at 86% 14%, rgba(117, 64, 210, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 255, 251, 0.97));
  box-shadow: 0 18px 34px rgba(15, 15, 15, 0.1);
}

body[data-demo-audience="builder"] .designer-starter-overlay[hidden] {
  display: none;
}

body[data-demo-audience="builder"] .starter-overlay-header {
  display: grid;
  gap: 3px;
}

body[data-demo-audience="builder"] .starter-overlay-header strong {
  color: var(--ink);
  font-size: 16px;
  text-align: left;
}

body[data-demo-audience="builder"] .starter-preview-grid {
  gap: 10px;
}

body[data-demo-audience="builder"] .starter-preview-card {
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 92px;
  border-color: rgba(0, 137, 111, 0.22);
}

body[data-demo-audience="builder"] .starter-preview-card:focus-visible {
  outline: 3px solid #087b6f;
  outline-offset: 2px;
}

body[data-demo-audience="builder"] #designerTemplateFields {
  grid-area: panel-fields;
  align-self: start;
  padding: 12px;
  background: rgba(255, 253, 250, 0.96);
}

body[data-demo-audience="builder"] .template-field-list {
  grid-template-columns: 1fr;
  gap: 7px;
}

body[data-demo-audience="builder"] .template-field-row {
  min-height: 54px;
  padding: 7px;
}

body[data-demo-audience="builder"] .template-field-row input {
  min-height: 38px;
  font-size: 15px;
  font-weight: 850;
}

body[data-demo-audience="builder"] .zone-recolor-panel {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

body[data-demo-audience="builder"] .zone-recolor-panel[hidden] {
  display: none;
}

body[data-demo-audience="builder"] .zone-recolor-heading,
body[data-demo-audience="builder"] .zone-recolor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}

body[data-demo-audience="builder"] .zone-recolor-heading {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, auto);
  color: rgba(20, 32, 39, 0.78);
  font-size: 12px;
  text-transform: uppercase;
}

body[data-demo-audience="builder"] .zone-recolor-actions,
body[data-demo-audience="builder"] .zone-colorway-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

body[data-demo-audience="builder"] .zone-recolor-actions {
  justify-content: end;
}

body[data-demo-audience="builder"] .zone-colorway-rail {
  padding: 7px;
  border: 1px solid rgba(20, 32, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

body[data-demo-audience="builder"] .template-style-variants {
  min-width: 0;
  border: 1px solid rgba(0, 127, 149, 0.28);
  border-radius: 9px;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 201, 76, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.86);
}

body[data-demo-audience="builder"] .template-style-variants > summary {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

body[data-demo-audience="builder"] .template-style-variants > summary::-webkit-details-marker {
  display: none;
}

body[data-demo-audience="builder"] .template-style-variants > summary::after {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid #087b6f;
  border-bottom: 2px solid #087b6f;
  transform: rotate(45deg);
  content: "";
}

body[data-demo-audience="builder"] .template-style-variants[open] > summary::after {
  transform: rotate(225deg);
}

body[data-demo-audience="builder"] .template-style-variants > summary > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body[data-demo-audience="builder"] .template-style-variants > summary strong,
body[data-demo-audience="builder"] .template-style-variants > summary small {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-demo-audience="builder"] .template-style-variants > summary strong {
  color: #20313a;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

body[data-demo-audience="builder"] .template-style-variants > summary small {
  color: #39706c;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-demo-audience="builder"] .template-style-variant-body {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 0 10px 10px;
}

body[data-demo-audience="builder"] .template-style-variant-helper,
body[data-demo-audience="builder"] .template-style-variant-status {
  min-width: 0;
  color: #52636d;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-demo-audience="builder"] .template-style-variant-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
}

body[data-demo-audience="builder"] .template-style-variant-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  border-color: rgba(20, 32, 39, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #20313a;
  text-align: left;
}

body[data-demo-audience="builder"] .template-style-variant-button[aria-pressed="true"] {
  border-color: #087b6f;
  background: #effaf6;
  box-shadow: inset 0 0 0 1px rgba(8, 123, 111, 0.14);
}

body[data-demo-audience="builder"] .template-style-variant-button[aria-disabled="true"] {
  opacity: 0.62;
}

body[data-demo-audience="builder"] .template-style-variant-button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body[data-demo-audience="builder"] .template-style-variant-button strong,
body[data-demo-audience="builder"] .template-style-variant-button small {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-demo-audience="builder"] .template-style-variant-button strong {
  font-size: 11px;
  font-weight: 920;
}

body[data-demo-audience="builder"] .template-style-variant-button small {
  color: #617079;
  font-size: 9px;
  font-weight: 800;
}

body[data-demo-audience="builder"] .template-style-variant-preview {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 2px;
  width: 26px;
  height: 26px;
  padding: 2px;
  border: 1px solid rgba(20, 32, 39, 0.14);
  border-radius: 7px;
  background: #ffffff;
}

body[data-demo-audience="builder"] .template-style-variant-preview span {
  min-width: 0;
  border-radius: 2px;
}

body[data-demo-audience="builder"] .template-style-variant-status {
  min-height: 30px;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(0, 127, 149, 0.08);
}

body[data-demo-audience="builder"] .designer-version-pilot {
  min-width: 0;
  border: 1px solid rgba(117, 84, 200, 0.26);
  border-radius: 9px;
  background:
    radial-gradient(circle at 100% 0, rgba(117, 84, 200, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.86);
}

body[data-demo-audience="builder"] .designer-version-pilot > summary {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

body[data-demo-audience="builder"] .designer-version-pilot > summary::-webkit-details-marker {
  display: none;
}

body[data-demo-audience="builder"] .designer-version-pilot > summary::after {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid #7554c8;
  border-bottom: 2px solid #7554c8;
  transform: rotate(45deg);
  content: "";
}

body[data-demo-audience="builder"] .designer-version-pilot[open] > summary::after {
  transform: rotate(225deg);
}

body[data-demo-audience="builder"] .designer-version-pilot > summary > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body[data-demo-audience="builder"] .designer-version-pilot > summary small,
body[data-demo-audience="builder"] .designer-version-pilot > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-demo-audience="builder"] .designer-version-pilot > summary small {
  color: #67577e;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-demo-audience="builder"] .designer-version-pilot > summary strong {
  color: #2f2540;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

body[data-demo-audience="builder"] .designer-version-pilot-body {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 0 10px 10px;
}

body[data-demo-audience="builder"] .designer-version-pilot-content {
  display: grid;
  min-width: 0;
  gap: 9px;
}

body[data-demo-audience="builder"] .designer-version-intro,
body[data-demo-audience="builder"] .designer-version-status {
  min-width: 0;
  color: #5d5468;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-demo-audience="builder"] .designer-version-pilot fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body[data-demo-audience="builder"] .designer-version-pilot legend {
  margin-bottom: 6px;
  color: #42384f;
  font-size: 10px;
  font-weight: 900;
}

body[data-demo-audience="builder"] .designer-version-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

body[data-demo-audience="builder"] .designer-version-choice {
  position: relative;
  display: block;
  min-width: 0;
}

body[data-demo-audience="builder"] .designer-version-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body[data-demo-audience="builder"] .designer-version-card {
  display: grid;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  border: 2px solid rgba(32, 49, 58, 0.12);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

body[data-demo-audience="builder"] .designer-version-choice input:focus-visible + .designer-version-card {
  outline: 3px solid #087b6f;
  outline-offset: 2px;
}

body[data-demo-audience="builder"] .designer-version-choice input:checked + .designer-version-card {
  border-color: #7554c8;
  box-shadow: 0 0 0 1px rgba(117, 84, 200, 0.15);
}

body[data-demo-audience="builder"] .designer-version-choice[data-applied="true"] .designer-version-card {
  background: #f3fbf8;
}

body[data-demo-audience="builder"] .designer-version-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #12191d;
}

body[data-demo-audience="builder"] .designer-version-card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 6px 7px;
}

body[data-demo-audience="builder"] .designer-version-card-copy strong,
body[data-demo-audience="builder"] .designer-version-card-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-demo-audience="builder"] .designer-version-card-copy strong {
  color: #28343b;
  font-size: 11px;
  font-weight: 920;
  line-height: 1.1;
}

body[data-demo-audience="builder"] .designer-version-card-copy small {
  color: #67577e;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
}

body[data-demo-audience="builder"] .designer-version-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

body[data-demo-audience="builder"] .designer-version-actions button,
body[data-demo-audience="builder"] .designer-version-start {
  min-width: 0;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body[data-demo-audience="builder"] .designer-version-actions button:first-child,
body[data-demo-audience="builder"] .designer-version-start {
  border-color: rgba(117, 84, 200, 0.44);
  background: #7554c8;
  color: #ffffff;
}

body[data-demo-audience="builder"] .designer-version-actions button:disabled {
  border-color: rgba(32, 49, 58, 0.1);
  background: #e8ecee;
  color: #66737a;
}

body[data-demo-audience="builder"] .designer-version-status {
  min-height: 28px;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(117, 84, 200, 0.08);
}

body[data-demo-audience="builder"] .zone-recolor-action,
body[data-demo-audience="builder"] .zone-colorway-button,
body[data-demo-audience="builder"] .zone-reset-button {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

body[data-demo-audience="builder"] .zone-colorway-button {
  flex: 1 1 82px;
  color: #133136;
  background: rgba(0, 168, 143, 0.1);
}

body[data-demo-audience="builder"] .zone-recolor-row {
  min-height: 48px;
  padding: 7px;
  border: 1px solid rgba(20, 32, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

body[data-demo-audience="builder"] .zone-recolor-row span {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

body[data-demo-audience="builder"] .zone-recolor-row input[type="color"] {
  width: 42px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(20, 32, 39, 0.16);
  border-radius: 8px;
  background: transparent;
}

body[data-demo-audience="builder"] .zone-recolor-row small,
body[data-demo-audience="builder"] .zone-recolor-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-demo-audience="builder"] .zone-contrast-warning {
  grid-column: 1 / -1;
  padding: 4px 6px;
  border-radius: 6px;
  color: #7d3a10;
  background: rgba(242, 179, 61, 0.16);
}

body[data-demo-audience="builder"] .zone-contrast-warning[hidden] {
  display: none;
}

body[data-demo-audience="builder"] .template-field-row[data-field-mode="source-panel"] {
  min-height: 78px;
  padding: 8px;
}

body[data-demo-audience="builder"] .designer-save-strip {
  grid-area: panel-save;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-demo-audience="builder"] .designer-advanced-tools {
  grid-area: panel-advanced;
  align-self: start;
  background: rgba(255, 253, 250, 0.9);
}

body[data-demo-audience="builder"] .controls .control-group.secondary-builder-tools:not(:first-child),
body[data-demo-audience="builder"] .controls .secondary-builder-tools {
  display: block;
  grid-template-columns: none;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 253, 250, 0.86);
}

body[data-demo-audience="builder"] .secondary-builder-tools > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  cursor: pointer;
  padding: 13px 18px;
}

body[data-demo-audience="builder"] .secondary-builder-tools > summary::after {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  color: var(--teal);
  content: "+";
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

body[data-demo-audience="builder"] .secondary-builder-tools[open] > summary::after {
  content: "-";
}

body[data-demo-audience="builder"] .secondary-builder-tools > summary::marker {
  content: "";
}

body[data-demo-audience="builder"] .secondary-builder-tools > summary span,
body[data-demo-audience="builder"] .secondary-builder-tools > summary strong {
  display: block;
  grid-column: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-demo-audience="builder"] .secondary-builder-tools > summary span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.12;
  text-transform: uppercase;
}

body[data-demo-audience="builder"] .secondary-builder-tools > summary strong {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

body[data-demo-audience="builder"] .secondary-builder-tools[open] > .spec-strip,
body[data-demo-audience="builder"] .secondary-builder-tools[open] > .grid,
body[data-demo-audience="builder"] .secondary-builder-tools[open] > .advanced-cutline {
  margin: 0 18px 14px;
}

body[data-demo-audience="builder"] .secondary-builder-tools[open] > .grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body[data-demo-audience="builder"] #outlineDetails[open] > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-demo-audience="builder"] .controls > .primary {
  min-height: 56px;
  border-radius: 0 0 8px 8px;
}

body[data-demo-audience="builder"] .result {
  order: 2;
}

@media (min-width: 981px) {
  body[data-demo-audience="builder"] .controls {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  body[data-demo-audience="builder"] .controls .primary {
    position: relative;
    bottom: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  body[data-demo-audience="builder"] .designer-panel {
    grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.18fr);
    grid-template-areas:
      "panel-recipe panel-canvas"
      "panel-fields panel-fields"
      "panel-save panel-save"
      "panel-advanced panel-advanced";
  }

  body[data-demo-audience="builder"] #designerTemplateFields {
    grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
    gap: 12px;
  }

  body[data-demo-audience="builder"] .template-field-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-demo-audience="builder"] .customer-center,
  body[data-demo-audience="builder"] .customer-center__status-strip,
  body[data-demo-audience="builder"] .customer-center__grid,
  body[data-demo-audience="builder"] .designer-panel,
  body[data-demo-audience="builder"] .controls .control-group:not(:first-child),
  body[data-demo-audience="builder"] #designerTemplateFields {
    grid-template-columns: 1fr;
  }

  body[data-demo-audience="builder"] .designer-panel {
    grid-template-areas:
      "panel-canvas"
      "panel-fields"
      "panel-filter"
      "panel-recipe"
      "panel-readout"
      "panel-save"
      "panel-advanced";
  }

  body[data-demo-audience="builder"] .template-field-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-demo-audience="builder"] .designer-starter-overlay {
    align-content: start;
    inset: 12px;
    padding: 12px;
  }
}

@media (max-width: 620px) {
  body[data-demo-audience="builder"] .customer-center__grid,
  body[data-demo-audience="builder"] .intake-paths,
  body[data-demo-audience="builder"] .designer-save-strip,
  body[data-demo-audience="builder"] .starter-pack-readout,
  body[data-demo-audience="builder"] .template-field-list {
    grid-template-columns: 1fr;
  }

  body[data-demo-audience="builder"] .template-fields-panel[data-recolor-active="true"] {
    position: sticky;
    bottom: 8px;
    z-index: 8;
    max-height: min(54vh, 430px);
    overflow-y: auto;
    border-color: rgba(0, 168, 143, 0.28);
    background: rgba(255, 253, 250, 0.96);
    box-shadow: 0 -10px 28px rgba(13, 25, 31, 0.16);
  }

  body[data-demo-audience="builder"] .customer-center {
    display: none;
  }

  body[data-demo-audience="builder"] .controls .control-group:first-child,
  body[data-demo-audience="builder"] .designer-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  body[data-demo-audience="builder"] .designer-panel-header {
    display: grid;
  }

  body[data-demo-audience="builder"] .starter-preview-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 78px;
    padding: 7px;
  }

  body[data-demo-audience="builder"] .starter-preview-card .template-thumb {
    min-height: 60px;
  }

  body[data-demo-audience="builder"] .zone-recolor-heading {
    grid-template-columns: 1fr;
  }

  body[data-demo-audience="builder"] .zone-recolor-actions {
    justify-content: stretch;
  }

  body[data-demo-audience="builder"] .zone-recolor-action {
    flex: 1 1 96px;
  }

  body[data-demo-audience="builder"] .zone-recolor-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  body[data-demo-audience="builder"] .zone-recolor-mode {
    grid-column: 1 / -1;
  }

  body[data-demo-audience="builder"] .panel-head {
    margin-right: -12px;
    margin-left: -12px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) {
    right: 8px;
    width: 44px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) summary {
    min-height: 44px;
    padding: 6px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) summary::after {
    width: 28px;
    height: 28px;
  }
}

/* Sticker Studio hierarchy cleanup: one hero, compact status, recipe-first workspace */
body[data-demo-audience="builder"] .shell {
  padding-bottom: 36px;
}

body[data-demo-audience="builder"] .studio-hero {
  margin: 22px 0 14px;
}

body[data-demo-audience="builder"] .hero-frame {
  padding: 8px;
}

body[data-demo-audience="builder"] .hero-strip {
  min-height: 124px;
  aspect-ratio: auto;
}

body[data-demo-audience="builder"] .hero-copy {
  max-width: 700px;
  padding: clamp(20px, 2.6vw, 32px) clamp(24px, 3.6vw, 42px);
  z-index: 3;
}

body[data-demo-audience="builder"] .hero-copy h1 {
  font-size: clamp(40px, 4.5vw, 58px);
  line-height: 0.92;
}

body[data-demo-audience="builder"] .hero-boundary {
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.4;
}

body[data-demo-audience="builder"] .hero-spray-tag {
  position: absolute;
  top: 52%;
  left: clamp(320px, 31%, 460px);
  z-index: 2;
  width: min(52%, 660px);
  height: auto;
  opacity: 0.98;
  pointer-events: none;
  transform: translateY(-42%) rotate(-1.5deg);
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.42));
}

body[data-demo-audience="builder"] .hero-rail,
body[data-demo-audience="builder"] .hero-message {
  display: none;
}

body[data-demo-audience="builder"] .real-builder-shell {
  gap: 8px;
}

body[data-demo-audience="builder"] .customer-center {
  grid-template-columns: minmax(136px, 0.18fr) minmax(0, 0.82fr);
  align-items: center;
  border-color: rgba(15, 15, 15, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(15, 15, 15, 0.06);
}

body[data-demo-audience="builder"] .customer-center::before {
  left: 16px;
  width: 86px;
}

body[data-demo-audience="builder"] .account-rail__head {
  min-height: 44px;
  align-content: center;
  border-right: 1px solid rgba(15, 15, 15, 0.1);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 7px 12px;
}

body[data-demo-audience="builder"] .account-rail__head::after {
  display: none;
}

body[data-demo-audience="builder"] .account-rail__head strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  text-shadow: none;
}

body[data-demo-audience="builder"] .account-rail__head span {
  display: none;
}

body[data-demo-audience="builder"] .customer-center__status-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}

body[data-demo-audience="builder"] .customer-center__status-card {
  min-height: 38px;
  padding: 6px 9px;
  box-shadow: none;
}

body[data-demo-audience="builder"] .customer-center__status-strip strong {
  font-size: 12px;
  line-height: 1.14;
}

body[data-demo-audience="builder"] .customer-center__grid {
  display: none;
}

body[data-demo-audience="builder"] .customer-center__boundary {
  display: none;
}

body[data-demo-audience="builder"] .controls .control-group:first-child {
  gap: 8px;
  padding-top: 10px;
}

body[data-demo-audience="builder"] .panel-head {
  display: none;
}

body[data-demo-audience="builder"] .panel-head::after {
  display: none;
}

body[data-demo-audience="builder"] .panel-head .label {
  color: var(--teal);
  font-size: 10px;
  text-shadow: none;
}

body[data-demo-audience="builder"] .panel-head h2 {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
  text-shadow: none;
}

body[data-demo-audience="builder"] .panel-head p {
  max-width: 620px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  text-shadow: none;
}

body[data-demo-audience="builder"] .designer-panel {
  order: 1;
  position: relative;
  grid-template-areas:
    "panel-filter panel-canvas panel-fields"
    "panel-recipe panel-canvas panel-fields"
    "panel-recipe panel-readout panel-fields"
    "panel-recipe panel-save panel-fields"
    "panel-recipe panel-advanced panel-fields";
  margin-top: 0;
  padding: 10px;
}

body[data-demo-audience="builder"] .intake-paths {
  order: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body[data-demo-audience="builder"] .intake-card {
  min-height: 76px;
  padding: 10px;
}

body[data-demo-audience="builder"] .intake-card strong {
  font-size: 13px;
}

body[data-demo-audience="builder"] .intake-card p {
  font-size: 11px;
  line-height: 1.22;
}

body[data-demo-audience="builder"] .dropzone {
  order: 3;
  min-height: 68px;
  margin: 0;
}

body[data-demo-audience="builder"] .dropzone::before {
  flex-basis: 54px;
  min-height: 50px;
}

body[data-demo-audience="builder"] .demo-row {
  order: 4;
}

body[data-demo-audience="builder"] .designer-panel-header {
  display: none;
}

body[data-demo-audience="builder"] .library-note {
  display: none;
}

body[data-demo-audience="builder"] .designer-canvas-stage {
  width: min(100%, 620px);
}

body[data-demo-audience="builder"] .local-review-tools {
  right: 14px;
  bottom: 14px;
  left: auto;
  top: auto;
}

body[data-demo-audience="builder"] .local-review-tools:not([open]) {
  width: 46px;
}

body[data-demo-audience="builder"] .local-review-tools:not([open]) summary {
  grid-template-columns: 1fr;
  min-height: 46px;
  place-items: center;
  padding: 8px;
}

body[data-demo-audience="builder"] .local-review-tools:not([open]) summary span,
body[data-demo-audience="builder"] .local-review-tools:not([open]) summary strong {
  display: none;
}

body[data-demo-audience="builder"] .local-review-tools:not([open]) summary::after {
  width: 28px;
  height: 28px;
}

body[data-demo-audience="builder"] .local-review-tools[open] {
  right: 14px;
  left: auto;
  width: min(420px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 28px));
  overflow: auto;
}

@media (min-width: 1181px) {
  body[data-demo-audience="builder"] .designer-panel {
    grid-template-columns: minmax(220px, 0.78fr) minmax(390px, 1.28fr) minmax(280px, 0.82fr);
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  body[data-demo-audience="builder"] .designer-panel {
    grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.18fr);
    grid-template-areas:
      "panel-filter panel-canvas"
      "panel-recipe panel-canvas"
      "panel-recipe panel-readout"
      "panel-fields panel-fields"
      "panel-save panel-save"
      "panel-advanced panel-advanced";
  }
}

@media (max-width: 980px) {
  body[data-demo-audience="builder"] .hero-strip {
    min-height: 118px;
    aspect-ratio: auto;
  }

  body[data-demo-audience="builder"] .customer-center {
    grid-template-columns: minmax(118px, 0.32fr) minmax(0, 0.68fr);
  }

  body[data-demo-audience="builder"] .designer-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "panel-canvas"
      "panel-fields"
      "panel-filter"
      "panel-recipe"
      "panel-readout"
      "panel-save"
      "panel-advanced";
  }

  body[data-demo-audience="builder"] #designerTemplateFields {
    grid-template-columns: 1fr;
  }

  body[data-demo-audience="builder"] .account-rail__head,
  body[data-demo-audience="builder"] .customer-center__status-strip {
    border-bottom: 0;
  }

  body[data-demo-audience="builder"] .account-rail__head {
    border-right: 1px solid rgba(15, 15, 15, 0.1);
  }

  body[data-demo-audience="builder"] .customer-center__boundary {
    grid-column: 1;
  }

  body[data-demo-audience="builder"] .intake-paths {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body[data-demo-audience="builder"] .studio-hero {
    margin-top: 12px;
  }

  body[data-demo-audience="builder"] .hero-strip {
    min-height: 106px;
  }

  body[data-demo-audience="builder"] .hero-copy {
    padding: 18px;
  }

  body[data-demo-audience="builder"] .hero-copy h1 {
    font-size: 34px;
  }

  body[data-demo-audience="builder"] .hero-boundary {
    padding: 9px 10px 3px;
    font-size: 13px;
  }

  body[data-demo-audience="builder"] .hero-spray-tag {
    top: 60%;
    left: 22%;
    width: 76%;
    opacity: 0.68;
  }

  body[data-demo-audience="builder"] .customer-center {
    display: grid;
  }

  body[data-demo-audience="builder"] .customer-center__status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  body[data-demo-audience="builder"] .account-rail__head {
    min-height: 46px;
    padding: 9px 12px;
  }

  body[data-demo-audience="builder"] .account-rail__head strong {
    font-size: 16px;
  }

  body[data-demo-audience="builder"] .customer-center__status-card {
    min-height: 40px;
    padding: 6px 7px;
  }

  body[data-demo-audience="builder"] .customer-center__status-strip span {
    font-size: 8px;
    line-height: 1;
  }

  body[data-demo-audience="builder"] .customer-center__status-strip strong {
    font-size: 11px;
    line-height: 1.06;
  }

  body[data-demo-audience="builder"] .customer-center__boundary {
    display: none;
    padding: 10px 12px;
    font-size: 10px;
  }

  body[data-demo-audience="builder"] .library-note {
    display: none;
  }

  body[data-demo-audience="builder"] .designer-panel {
    gap: 10px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "panel-canvas"
      "panel-fields"
      "panel-filter"
      "panel-recipe"
      "panel-readout"
      "panel-save"
      "panel-advanced";
    padding-top: 10px;
  }

  body[data-demo-audience="builder"] .designer-panel-header {
    padding-bottom: 8px;
  }

  body[data-demo-audience="builder"] .local-review-tools {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: auto;
    width: 44px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) {
    top: auto;
    right: -14px;
    bottom: 8px;
    left: auto;
    width: 34px;
  }

  body[data-demo-audience="builder"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) {
    top: auto;
    right: -14px;
    bottom: 8px;
    left: auto;
    width: 34px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) summary,
  body[data-demo-audience="builder"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary {
    min-height: 34px;
    padding: 4px;
  }

  body[data-demo-audience="builder"] .local-review-tools:not([open]) summary::after,
  body[data-demo-audience="builder"]:not([data-builder-stage="empty"]) .local-review-tools:not([open]) summary::after {
    width: 24px;
    height: 24px;
  }

  body[data-demo-audience="builder"] .local-review-tools[open] {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  body[data-demo-audience="builder"] .controls .control-group:first-child,
  body[data-demo-audience="builder"] .designer-panel {
    padding-right: 10px;
    padding-left: 10px;
  }

  body[data-demo-audience="builder"] .panel-head {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 12px;
    padding-left: 12px;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-group-label {
    display: block;
    grid-column: 1 / -1;
    margin: 2px 0 -2px;
    color: #38525f;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row {
    grid-column: 1 / -1;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row[data-mobile-density="compact"] {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    min-height: 58px;
    padding: 6px;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row[data-mobile-density="compact"] .template-field-label-group {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label";
    gap: 0;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row[data-mobile-density="compact"] .template-field-map-chip,
  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row[data-mobile-density="compact"] .template-field-mode {
    display: none;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row[data-mobile-density="compact"] .template-field-label-text {
    font-size: 8.5px;
    line-height: 1;
    white-space: nowrap;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row[data-mobile-density="compact"] input {
    height: 34px;
    min-height: 34px;
    padding: 6px 7px;
    font-size: 13px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  body[data-demo-audience="builder"] .customer-center {
    grid-template-columns: 1fr;
  }

  body[data-demo-audience="builder"] .account-rail__head {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 15, 15, 0.1);
  }

  body[data-demo-audience="builder"] .customer-center__status-strip {
    gap: 8px;
    padding: 8px;
  }

  body[data-demo-audience="builder"] .customer-center__status-card {
    min-height: 54px;
    padding: 8px 9px;
  }

  body[data-demo-audience="builder"] .customer-center__status-strip strong {
    font-size: 12px;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] {
    padding: 10px;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-list {
    gap: 5px;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row[data-mobile-density="compact"] {
    padding: 5px;
  }

  body[data-demo-audience="builder"] #designerTemplateFields[data-template-id="dv-core-product-batch-label"] .template-field-row[data-mobile-density="compact"] input {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 12px;
  }
}

/* 14 Gang-sheet cutter Slice 1 */
.gang-sheet-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 8px;
  background: #fffdfa;
  padding: 10px;
}

body[data-demo-audience="builder"] .gang-sheet-panel {
  order: 4;
}

.gang-sheet-panel__head,
.piece-review-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gang-sheet-panel__head div,
.piece-review-panel__head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gang-sheet-panel__head span,
.piece-review-panel__head span {
  color: #5b6b70;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.gang-sheet-panel__head strong,
.piece-review-panel__head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.05;
}

.gang-sheet-dropzone {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 74px;
  border: 1px dashed rgba(0, 126, 113, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 168, 143, 0.08), rgba(255, 255, 255, 0.92)),
    #f6fffb;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
}

.gang-sheet-dropzone::before {
  width: 56px;
  height: 52px;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 15, 15, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f3d66b, #49b8c6 48%, #ef6f61);
  background-size: 14px 14px, 14px 14px, auto;
  content: "";
}

.gang-sheet-dropzone span {
  color: #3d5b63;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.gang-sheet-dropzone strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.16;
}

.gang-sheet-dropzone.is-dragging {
  border-color: rgba(239, 111, 97, 0.74);
  background:
    linear-gradient(135deg, rgba(239, 111, 97, 0.12), rgba(255, 255, 255, 0.94)),
    #fff7f4;
}

.gang-sheet-dropzone:focus-visible {
  outline: 3px solid #087b6f;
  outline-offset: 2px;
}

.piece-review-panel {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(15, 15, 15, 0.1);
  padding-top: 10px;
}

.piece-review-panel[hidden] {
  display: none;
}

.piece-review-panel__head a {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 999px;
  color: #135f72;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  text-decoration: none;
}

.piece-review-panel p {
  margin: 0;
  color: #5b6b70;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.28;
}

.piece-review-toolbar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 7px 9px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: #f7faf8;
  padding: 7px;
}

.piece-review-toolbar[hidden] {
  display: none;
}

.piece-review-toolbar__count {
  color: #40575d;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.piece-review-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.piece-review-toolbar__button {
  min-height: 30px;
  border: 1px solid rgba(0, 126, 113, 0.34);
  border-radius: 6px;
  background: #e9fff8;
  color: #0f5561;
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 7px 8px;
}

.piece-review-toolbar__button.is-secondary {
  border-color: rgba(15, 15, 15, 0.14);
  background: #ffffff;
  color: #40575d;
}

.piece-review-toolbar__button:hover:not(:disabled),
.piece-review-toolbar__button:focus-visible:not(:disabled) {
  border-color: rgba(239, 111, 97, 0.64);
  background: #fff3ef;
  color: #8c3029;
}

.piece-review-toolbar__button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.piece-review-toolbar__split-control {
  display: inline-grid;
  grid-template-columns: max-content 46px;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: #52666c;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 4px 6px;
  white-space: nowrap;
}

.piece-review-toolbar__split-control input {
  width: 46px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.16);
  border-radius: 5px;
  color: var(--ink);
  font: inherit;
  padding: 4px;
}

.piece-review-toolbar__status {
  grid-column: 1 / -1;
  min-height: 12px;
  color: #52666c;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.piece-review-toolbar__status:empty {
  display: none;
}

.piece-review-toolbar__status.is-error {
  color: #a1372e;
}

.piece-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.piece-review-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px;
}

.piece-review-card.is-selected {
  border-color: rgba(0, 126, 113, 0.52);
  background: #f4fffb;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 143, 0.18);
}

.piece-review-card__select {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #52666c;
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.piece-review-card__select input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #007e71;
}

.piece-review-card__frame {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  min-height: 88px;
  place-items: center;
  border: 1px solid rgba(15, 15, 15, 0.16);
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(15, 15, 15, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 15, 15, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 15, 15, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 15, 15, 0.06) 75%),
    #f8faf8;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.piece-review-card__frame::after {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(239, 111, 97, 0.78);
  border-radius: 5px;
  content: "";
  pointer-events: none;
}

.piece-review-card img {
  display: block;
  max-width: calc(100% - 18px);
  max-height: calc(100% - 18px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 0 rgba(15, 15, 15, 0.92))
    drop-shadow(0 2px 1px rgba(15, 15, 15, 0.22));
}

.piece-review-card__copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.piece-review-card__copy strong,
.piece-review-card__copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.piece-review-card__copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
}

.piece-review-card__copy small {
  color: #5d6d72;
  font-size: 10px;
  font-weight: 800;
}

.piece-review-card__actions {
  display: flex;
  min-width: 0;
}

.piece-review-card__cutline-button {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(0, 126, 113, 0.36);
  border-radius: 6px;
  background: #e9fff8;
  color: #0f5561;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 8px 9px;
}

.piece-review-card__cutline-button:hover:not(:disabled),
.piece-review-card__cutline-button:focus-visible:not(:disabled) {
  border-color: rgba(239, 111, 97, 0.64);
  background: #fff3ef;
  color: #8c3029;
}

.piece-review-card__cutline-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.piece-cutline-result {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-top: 1px solid rgba(15, 15, 15, 0.1);
  padding-top: 7px;
}

.piece-cutline-result[hidden] {
  display: none;
}

.piece-cutline-result p {
  margin: 0;
  color: #4d6268;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.piece-cutline-result.is-error p {
  color: #a1372e;
}

.piece-cutline-result__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.piece-cutline-result__preview {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #135f72;
  text-decoration: none;
}

.piece-cutline-result__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(45deg, rgba(15, 15, 15, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 15, 15, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 15, 15, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 15, 15, 0.05) 75%),
    #ffffff;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  background-size: 14px 14px;
  object-fit: contain;
  padding: 4px;
}

.piece-cutline-result__preview span {
  overflow: hidden;
  color: #5d6d72;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.piece-cutline-result__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 3px 7px;
  margin: 0;
}

.piece-cutline-result__facts dt,
.piece-cutline-result__facts dd {
  margin: 0;
  min-width: 0;
  font-size: 10px;
  line-height: 1.18;
}

.piece-cutline-result__facts dt {
  color: #6b777b;
  font-weight: 900;
  text-transform: uppercase;
}

.piece-cutline-result__facts dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 850;
}

.piece-cutline-result__badges,
.piece-cutline-result__links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.piece-cutline-result__badge,
.piece-cutline-result__links a {
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 999px;
  background: #f7faf8;
  color: #40575d;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 6px;
  text-decoration: none;
}

.piece-cutline-result__badge[data-flag="multiple-foreground-contours"],
.piece-cutline-result__badge[data-flag="hold-after-cutline"],
.piece-cutline-result__badge[data-flag="manual-review-required"] {
  border-color: rgba(239, 111, 97, 0.34);
  background: #fff5f0;
  color: #8c3029;
}

.piece-review-grid__empty {
  grid-column: 1 / -1;
  min-height: 64px;
  border: 1px dashed rgba(15, 15, 15, 0.14);
  border-radius: 8px;
  color: #5d6d72;
  display: grid;
  font-size: 12px;
  font-weight: 840;
  place-items: center;
  text-align: center;
}

@media (max-width: 980px) {
  .piece-review-grid {
    max-height: 440px;
  }
}

@media (max-width: 520px) {
  .gang-sheet-panel__head,
  .piece-review-panel__head {
    align-items: start;
    flex-direction: column;
  }

  .piece-review-toolbar {
    grid-template-columns: 1fr;
  }

  .piece-review-toolbar__controls {
    justify-content: start;
  }

  .piece-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 520px;
  }
}

/* Customize studio owns its layout after the older builder-audience cascade. */
body[data-demo-audience="builder"][data-studio-view="customize"] .studio-hero {
  display: none;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-workspace {
  grid-template-columns: minmax(72px, 84px) minmax(260px, 330px) minmax(420px, 1fr) minmax(300px, 360px);
  grid-template-areas: "studio-tools studio-builder studio-builder studio-inspector";
  gap: 0;
  align-items: stretch;
  height: min(860px, calc(100vh - 220px));
  min-height: 0;
  overflow: hidden;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount {
  min-height: 0;
  overflow: hidden;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-panel {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(420px, 1fr);
  grid-template-areas:
    "panel-filter panel-canvas"
    "panel-readout panel-canvas"
    "panel-picker-head panel-canvas"
    "panel-recipe panel-canvas"
    "panel-save panel-canvas"
    "panel-advanced panel-canvas";
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px;
  box-shadow: none;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-canvas-stage {
  grid-area: panel-canvas;
  order: initial;
  width: min(100%, 680px);
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-template-heading {
  grid-area: panel-picker-head;
  display: flex;
  order: initial;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .starter-pack-filters {
  grid-area: panel-filter;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .starter-pack-readout {
  grid-area: panel-readout;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount #designerTemplates {
  grid-area: panel-recipe;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: thin;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-save-strip {
  grid-area: panel-save;
}

body[data-demo-audience="builder"][data-studio-view="customize"] #view-customize[data-template-id] .designer-template-heading,
body[data-demo-audience="builder"][data-studio-view="customize"] #view-customize[data-template-id] #designerTemplates {
  display: none;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-advanced-tools {
  display: contents;
  order: initial;
  border: 0;
  background: transparent;
  padding: 0;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-advanced-tools summary,
body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-inspector,
body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-clip-heading {
  display: none;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-asset-picker-head {
  grid-area: panel-picker-head;
  order: initial;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-toolbar {
  grid-area: panel-advanced;
  order: initial;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount #designerClipArt {
  grid-area: panel-recipe;
  order: initial;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  max-height: calc(100vh - 244px);
  overflow-y: auto;
  padding: 0 2px 0 0;
}

body[data-demo-audience="builder"][data-studio-view="customize"] #view-customize:not([data-template-id]) .designer-asset-picker-head,
body[data-demo-audience="builder"][data-studio-view="customize"] #view-customize:not([data-template-id]) .designer-clip-heading,
body[data-demo-audience="builder"][data-studio-view="customize"] #view-customize:not([data-template-id]) #designerClipArt {
  display: none;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  max-height: calc(100vh - 164px);
  overflow-y: auto;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector > * {
  grid-area: auto;
  min-width: 0;
  width: 100%;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-selected-layer {
  order: 1;
  grid-template-columns: minmax(0, 1fr);
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-selected-layer-actions {
  display: grid;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector #designerTemplateFields {
  order: 2;
  grid-area: auto;
  display: grid;
  max-height: none;
  overflow: visible;
  border-bottom: 1px solid rgba(13, 26, 39, 0.12);
  border-radius: 0;
  background: transparent;
  padding: 0 0 14px;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector .template-field-list {
  grid-template-columns: minmax(0, 1fr);
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector .designer-inspector {
  order: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  border-bottom: 1px solid rgba(13, 26, 39, 0.12);
  padding-bottom: 14px;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector .designer-inspector label {
  display: grid;
  gap: 4px;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector .designer-inspector input {
  margin-top: 0;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .designer-layer-stack-panel {
  order: 4;
}

body[data-demo-audience="builder"][data-studio-view="customize"] .customize-quantity-panel {
  order: 5;
  position: static;
}

@media (max-width: 1180px) {
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-workspace {
    grid-template-columns: minmax(72px, 84px) minmax(280px, 0.92fr) minmax(360px, 1.08fr);
    grid-template-areas:
      "studio-tools studio-builder studio-builder"
      "studio-tools studio-inspector studio-inspector";
    height: min(860px, calc(100dvh - 220px));
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 980px) {
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "studio-tools"
      "studio-builder"
      "studio-inspector";
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-tools button,
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-tools label {
    padding-right: 4px;
    padding-left: 4px;
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-tools strong {
    font-size: 9px;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-studio-inspector {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-panel {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "panel-canvas"
      "panel-filter"
      "panel-readout"
      "panel-picker-head"
      "panel-recipe"
      "panel-save"
      "panel-advanced";
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-workspace {
    grid-template-rows: max-content max-content max-content;
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount {
    height: auto;
    overflow: visible;
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] #view-customize:not([data-template-id]) .customize-designer-mount #designerTemplates {
    max-height: 280px;
    min-height: 0;
    overflow-y: auto;
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-canvas-stage,
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .starter-pack-filters,
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .starter-pack-readout,
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-asset-picker-head,
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount #designerTemplates,
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount #designerClipArt,
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-save-strip,
  body[data-demo-audience="builder"][data-studio-view="customize"] .customize-designer-mount .designer-toolbar {
    min-width: 0;
    width: 100%;
  }

  body[data-demo-audience="builder"][data-studio-view="customize"] #view-customize[data-template-id] .customize-designer-mount #designerClipArt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 360px;
  }

  body[data-studio-view][data-demo-audience] .brand,
  body[data-studio-view][data-demo-audience] .site-nav a,
  body[data-studio-view][data-demo-audience] .site-nav button,
  body[data-studio-view][data-demo-audience] .studio-view button,
  body[data-studio-view][data-demo-audience] .studio-view a[href],
  body[data-studio-view][data-demo-audience] .studio-view input:not([type="hidden"]),
  body[data-studio-view][data-demo-audience] .studio-view select,
  body[data-studio-view][data-demo-audience] .studio-view summary {
    min-height: 44px;
  }

  body[data-studio-view][data-demo-audience] .studio-view input[type="color"] {
    min-width: 44px;
  }
}

@media (max-width: 768px) {
  body[data-studio-view="browse"] .browse-gallery {
    gap: 12px;
    padding: 14px;
  }

  body[data-studio-view="browse"] .browse-gallery-head {
    display: grid;
    align-items: start;
    gap: 7px;
  }

  body[data-studio-view="browse"] .browse-gallery-head strong {
    justify-self: start;
  }

  body[data-studio-view="browse"] .browse-filter-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1px 1px 5px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  body[data-studio-view="browse"] .browse-filter-rail button {
    flex: 0 0 auto;
  }
}
