:root {
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-futura: var(--font-sans);
  --font-futura-bold: var(--font-display);
  --font-weight-futura-book: 400;
  --font-weight-futura-bold: 700;
  --font-weight-futura-extra-bold: 800;
  --ink: #171817;
  --muted: #737570;
  --line: #dcded9;
  --surface: #f5f5f1;
  --surface-strong: #eceee9;
  --section-surface: #fbfbfa;
  --accent: #2a98d6;
  --accent-dark: #0181c8;
  --white: #fff;
  --radius-sm: 0.6rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-btn: 999px;
  --radius-pill: 999px;
  --radius: var(--radius-xl);
  --text-body: 16px;
  --text-ui: 15px;
  --text-label: 14px;
  --text-meta: 13px;
  --controls-indent: 54px;
  --controls-gap: 14px;
  --page-shell-width: 1560px;
  --page-shell-half-width: 780px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --panel-title-offset: 70px;
  color-scheme: only light;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.font-futura-book {
  font-family: var(--font-futura);
  font-style: normal;
  font-weight: var(--font-weight-futura-book);
}

.font-futura-bold {
  font-family: var(--font-futura-bold);
  font-style: normal;
  font-weight: var(--font-weight-futura-bold);
}

.font-futura-extra-bold {
  font-family: var(--font-futura);
  font-style: normal;
  font-weight: var(--font-weight-futura-extra-bold);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 0%, rgba(42, 152, 214, 0.08), transparent 24rem),
    #fff;
}

button,
select,
input {
  font: inherit;
}

button,
label,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
select,
input[type="radio"] + span {
  transition: 160ms ease;
}

.site-header {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  min-height: 76px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.header-meta {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: clamp(12px, 2vw, 20px);
}

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  gap: 2px;
}

.lang-switch__btn {
  min-width: 2.65rem;
  min-height: 2.15rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.lang-switch__btn:hover {
  color: var(--accent);
}

.lang-switch__btn.is-active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 2px 10px rgb(42 152 214 / 0.16);
}

.lang-switch__btn:focus-visible {
  outline: 3px solid rgb(42 152 214 / 0.32);
  outline-offset: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-default {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-qtubes,
.brand-hero {
  display: none;
  width: 150px;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 22px;
  letter-spacing: 0;
}

.brand-name {
  font-size: 19px;
}

.prototype-label {
  margin-left: 16px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.site-header > fieldset[hidden] {
  display: none;
}

.theme-picker,
.layout-view-picker,
.size-view-picker {
  display: grid;
  grid-template-columns: repeat(2, auto);
  margin: 0 18px 0 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.theme-picker {
  grid-template-columns: repeat(4, auto);
}

.layout-view-picker {
  margin-left: auto;
}

.size-view-picker {
  margin-left: 0;
}

.theme-picker legend,
.layout-view-picker legend,
.size-view-picker legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-picker label,
.layout-view-picker label,
.size-view-picker label {
  cursor: pointer;
}

.theme-picker input,
.layout-view-picker input,
.size-view-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-picker span,
.layout-view-picker span,
.size-view-picker span {
  display: block;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.theme-picker input:checked + span,
.layout-view-picker input:checked + span,
.size-view-picker input:checked + span {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 5px rgba(23, 24, 23, 0.1);
}

.theme-picker input:focus-visible + span,
.layout-view-picker input:focus-visible + span,
.size-view-picker input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.header-help {
  margin-left: auto;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.header-help:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.hero-banner {
  position: relative;
  display: none;
  width: calc(min(var(--page-shell-width), 100%) - var(--page-gutter) - var(--page-gutter));
  margin: 0 auto;
  aspect-ratio: 2650 / 672;
  overflow: hidden;
  background: #202020;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-copy {
  position: absolute;
  top: 50%;
  left: var(--panel-title-offset);
  display: flex;
  width: 17%;
  flex-direction: column;
  align-items: flex-start;
  --hero-copy-shift: clamp(3px, 0.45vw, 7px);
  gap: clamp(4px, 0.5vw, 8px);
  transform: translateY(-50%);
}

.hero-banner-slogan {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.22));
  transform: translateY(calc(0px - var(--hero-copy-shift)));
}

.hero-banner-kicker {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(14px, 2.1vw, 32px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(var(--hero-copy-shift));
}

html[data-theme="hero"] .site-header {
  padding-left: calc(
    50% - min(var(--page-shell-half-width), 50%) + var(--page-gutter) + var(--panel-title-offset)
  );
}

html[data-theme="hero"] .brand-default {
  display: none;
}

html[data-theme="hero"] .brand-hero {
  display: block;
}

html[data-theme="hero"] .hero-banner {
  display: block;
}

html[data-theme="hero"] .intro {
  display: none;
}

html[data-theme="hero"] main {
  padding-top: clamp(6px, 0.8vw, 12px);
}

html[data-theme="hero"] .configurator {
  border-top: 0;
}

main {
  width: min(var(--page-shell-width), 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter) 80px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  column-gap: 48px;
  align-items: end;
  padding: clamp(28px, 3vw, 48px) 0 54px;
}

.eyebrow,
.preview-kicker {
  margin: 0 0 13px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.intro .eyebrow {
  grid-column: 1 / -1;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.98;
}

.intro-copy {
  max-width: 460px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.configurator {
  display: grid;
  grid-template-columns: minmax(480px, 2fr) minmax(450px, 1fr) minmax(346px, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--ink);
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 0;
}

html[data-layout="single"] .field-grid,
html[data-layout="single"] .option-cards {
  grid-template-columns: 1fr;
}

html[data-layout="single"] .controls .segmented {
  grid-auto-flow: row;
  grid-auto-columns: 1fr;
  grid-template-columns: 1fr !important;
  max-width: none;
}

html[data-layout="single"] .controls .color-options {
  display: grid;
  grid-template-columns: 1fr;
}

.step {
  margin: 0;
  padding: 28px 20px 30px;
  border: 1px solid #eceeea;
  border-radius: var(--radius-xl);
  background: var(--section-surface);
  overflow: visible;
}

.step-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 26px;
}

.step-heading > div {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  min-width: 0;
}

.step-number {
  flex: 0 0 40px;
  width: 40px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.step h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.step-title-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.step-help-trigger {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #9aa19a;
  border-radius: 50%;
  color: #5b615b;
  background: #fff;
  font-size: var(--text-label);
  font-weight: 700;
  line-height: 1;
  cursor: help;
  flex: 0 0 auto;
  transition:
    border-color 140ms ease,
    color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.step-help-trigger:hover,
.step-help-trigger:focus-visible,
.step-help-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #f3f9fc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 152, 214, 0.16);
}

.step-help-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: min(460px, calc(100vw - 48px));
  padding: 16px 18px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 24, 22, 0.14);
  color: var(--ink);
  font-size: var(--text-ui);
  font-weight: 450;
  line-height: 1.55;
}

.step-help-popover[hidden] {
  display: none;
}

.step-help-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.step-help-popover p {
  margin: 0 0 10px;
  color: #3d403c;
  font-size: var(--text-ui);
  line-height: 1.55;
}

.step-help-popover p:last-child {
  margin-bottom: 0;
}

.step-help-popover ul {
  margin: 0 0 10px;
  padding-left: 1.1em;
}

.step-help-popover li {
  margin: 0 0 8px;
  color: #3d403c;
  font-size: var(--text-ui);
  line-height: 1.55;
}

.step-help-popover li:last-child {
  margin-bottom: 0;
}

.step-help-popover strong {
  color: var(--ink);
  font-weight: 700;
}

.step-heading p,
.template-help,
.dialog-info {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-ui);
  line-height: 1.55;
}

fieldset {
  margin: 0 0 27px var(--controls-indent);
  padding: 0;
  border: 0;
}

fieldset:last-child {
  margin-bottom: 0;
}

legend,
.select-field > span,
.size-field > span,
.custom-color > span:first-child {
  display: block;
  margin-bottom: 10px;
  color: #4f514d;
  font-size: var(--text-label);
  font-weight: 700;
}

.segmented {
  display: grid;
  gap: var(--controls-gap);
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented:has(> :nth-child(1):last-child) {
  grid-template-columns: minmax(0, 1fr);
}

.segmented:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segmented:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segmented:has(> :nth-child(5):last-child) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.segmented:has(> :nth-child(6):last-child) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.segmented label,
.option-card,
.color-choice {
  position: relative;
  cursor: pointer;
}

.segmented input,
.option-card input,
.color-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented label > span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #fff;
  font-size: var(--text-ui);
  font-weight: 600;
}

.segmented input:checked + span {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(16, 17, 16, 0.12);
}

#closure-options label > .closure-option-content {
  min-height: 48px;
  grid-template-columns: 40px auto;
  gap: 8px;
  padding: 8px 12px;
}

.closure-option-icon {
  width: 40px;
  height: 24px;
  overflow: visible;
}

.closure-option-icon path {
  fill: currentColor;
  fill-opacity: 0.08;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.closure-option-icon path + path {
  fill: none;
}

#closure-options input:checked + .closure-option-content .closure-option-icon path {
  fill-opacity: 0.16;
}

#closure-options input:checked + .closure-option-content .closure-option-icon path + path {
  fill: none;
}

.segmented input:focus-visible + span,
.option-card input:focus-visible ~ span,
.color-choice input:focus-visible + span {
  outline: 3px solid rgba(42, 152, 214, 0.3);
  outline-offset: 2px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--controls-gap);
  margin-left: var(--controls-indent);
}
.size-field-grid {
  gap: 0;
}

.size-field-grid .size-field:first-child {
  padding-right: calc(var(--controls-gap) / 2);
}

.size-field-grid .size-field + .size-field {
  padding-left: calc(var(--controls-gap) / 2);
  border-left: 1px solid var(--line);
}

.cold-stamping-grid {
  gap: 0;
  margin-bottom: 27px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cold-stamping-switch {
  position: relative;
  display: block;
  cursor: pointer;
}

.cold-stamping-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cold-stamping-switch > span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #fff;
  font-size: var(--text-ui);
  font-weight: 600;
}

.cold-stamping-switch input:checked + span {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(16, 17, 16, 0.12);
}

.cold-stamping-switch input:focus-visible + span {
  outline: 3px solid rgba(42, 152, 214, 0.3);
  outline-offset: 2px;
}

.cold-stamping-grid > .size-field:first-child {
  padding-right: calc(var(--controls-gap) / 2);
}

.cold-stamping-grid > .size-field + .size-field {
  padding-left: calc(var(--controls-gap) / 2);
  border-left: 1px solid var(--line);
}

.cold-stamping-switch:has(input:disabled) {
  cursor: not-allowed;
}

.cold-stamping-switch input:disabled + span {
  color: #a8aaa5;
  background: var(--surface);
  box-shadow: none;
  cursor: not-allowed;
}

.cold-stamping-switch input:disabled:checked + span {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  opacity: 0.72;
}

.print-feature-detail.is-inactive,
.cmyk-channel-options.is-inactive {
  opacity: 0.46;
}

.print-feature-detail.is-inactive {
  pointer-events: none;
}

.cmyk-channel-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.cmyk-channel-swatch {
  --channel-ink: #7a7d78;
  position: relative;
  display: block;
  cursor: pointer;
  color-scheme: only light;
  forced-color-adjust: none;
}

.cmyk-channel-swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cmyk-channel-swatch > span[aria-hidden="true"] {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--channel-ink);
  opacity: 0.16;
  transition:
    opacity 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.cmyk-channel-swatch input:checked + span[aria-hidden="true"] {
  opacity: 1;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(16, 17, 16, 0.16);
}

.cmyk-channel-swatch input:focus-visible + span[aria-hidden="true"] {
  outline: 3px solid rgba(42, 152, 214, 0.3);
  outline-offset: 2px;
}

.cmyk-channel-swatch[data-tone="cyan"] { --channel-ink: #00a0d8; }
.cmyk-channel-swatch[data-tone="magenta"] { --channel-ink: #e2188a; }
.cmyk-channel-swatch[data-tone="yellow"] { --channel-ink: #f0d000; }
.cmyk-channel-swatch[data-tone="black"] { --channel-ink: #1a1a1a; }

.cmyk-channel-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.select-field select,
.size-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.select-field select:focus,
.size-field select:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(23, 24, 23, 0.08);
}

.size-options {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)) !important;
  max-width: none;
}

.size-options[hidden],
.size-field select[hidden] {
  display: none;
}

.select-field[hidden] {
  display: none;
}

.field-grid:has(> .select-field[hidden]),
.field-grid:has(> #orifice-field[hidden]) {
  grid-template-columns: 1fr;
}

#orifice-field[hidden],
.print-feature-detail[hidden] {
  display: none;
}

#orifice-field {
  grid-column: 1 / -1;
}

.closure-fields {
  margin-top: 27px;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--controls-gap);
}

.option-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.option-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.material-swatch {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  overflow: visible;
  background: transparent;
  border: 0;
  color-scheme: only light;
  forced-color-adjust: none;
}

.material-swatch img {
  display: block;
  width: 56px;
  max-width: none;
  height: auto;
  transform: translateX(-2px);
}

.option-card strong,
.option-card small {
  display: block;
}

.option-card strong {
  margin-bottom: 4px;
  font-size: var(--text-ui);
}

.option-card small {
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.35;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--controls-gap);
}

.color-choice {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: var(--text-ui);
  font-weight: 600;
}

.color-choice::after {
  width: 27px;
  content: "";
}

.color-choice > span:last-of-type {
  text-align: center;
}

.color-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.color-choice:has(input:disabled) {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.48;
}

.color-dot {
  display: block;
  width: 27px;
  height: 27px;
  border: 1px solid #c8cac6;
  border-radius: 50%;
  color-scheme: only light;
  forced-color-adjust: none;
}

.color-dot-white {
  background: #f5f4ef;
}

.color-dot-black {
  background: #191919;
}

.color-dot-custom {
  background: conic-gradient(#ed4b38, #e6b539, #51a969, #3b8bc4, #7d55b5, #ed4b38);
}

.custom-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.custom-color[hidden] {
  display: none;
}

.segmented-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


.station-meter {
  margin: 0 0 27px var(--controls-indent);
  padding: 0;
  border: 0;
  background: transparent;
}

.station-meter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: var(--text-label);
  font-weight: 700;
}

.station-meter-heading strong {
  color: var(--accent-dark);
  font-size: var(--text-ui);
}

.print-station-rail {
  --station-gap: 4px;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: var(--station-gap);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 14px 0 12px;
  padding: 0;
  list-style: none;
}

.print-station {
  --station-ink: var(--accent);
  --station-ink-text: #fff;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 52px;
  aspect-ratio: 0.72 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.print-station.is-idle {
  opacity: 0.72;
  background: #fff;
  border-color: var(--line);
  color: #a8aaa5;
}

.print-station.is-active {
  opacity: 1;
  border-color: var(--station-ink);
  background: var(--station-ink);
  color: var(--station-ink-text);
  box-shadow: 0 6px 14px rgba(16, 17, 16, 0.12);
}

.print-station[data-tone="primer"] {
  --station-ink: #b9bdb4;
  --station-ink-text: #2f322e;
}

.print-station[data-tone="cyan"] {
  --station-ink: #00a0d8;
}

.print-station[data-tone="magenta"] {
  --station-ink: #e2188a;
}

.print-station[data-tone="yellow"] {
  --station-ink: #f0d000;
  --station-ink-text: #3f3a00;
}

.print-station[data-tone="black"] {
  --station-ink: #1a1a1a;
}

.print-station[data-tone="spot-1"] {
  --station-ink: #ef5d45;
}

.print-station[data-tone="spot-2"] {
  --station-ink: #2faba0;
}

.print-station[data-tone="spot-3"] {
  --station-ink: #8f5de0;
}

.print-station[data-tone="spot-4"] {
  --station-ink: #ef8a2a;
}

.print-station[data-tone="spot-5"] {
  --station-ink: #e58aaf;
  --station-ink-text: #3f1528;
}

.print-station[data-tone="foil"],
.print-station[data-tone="foil-other"] {
  --station-ink: #c5c8c0;
  --station-ink-text: #2f322e;
}

.print-station[data-tone="foil-gold"] {
  --station-ink: #d4b45a;
  --station-ink-text: #3d2f0f;
}

.print-station[data-tone="foil-silver"] {
  --station-ink: #b8bec8;
  --station-ink-text: #2f322e;
}

.print-station[data-tone="matte"] {
  --station-ink: #ddd2c2;
  --station-ink-text: #3d372f;
}

.print-station[data-tone="varnish"] {
  --station-ink: #9ec5db;
  --station-ink-text: #21506b;
}

.station-meter p,
.station-meter small {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.station-meter small {
  display: block;
  margin-top: 4px;
}

.additional-color-control {
  display: grid;
  gap: var(--controls-gap);
  width: 100%;
  max-width: none;
}

.additional-color-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.additional-color-stepper {
  display: inline-grid;
  grid-template-columns: 46px minmax(48px, auto) 46px;
  align-items: center;
  gap: 7px;
}

.additional-color-stepper button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.additional-color-stepper button:hover:not(:disabled) {
  border-color: var(--accent);
}

.additional-color-stepper button:focus-visible {
  outline: 3px solid rgba(42, 152, 214, 0.3);
  outline-offset: 2px;
}

.additional-color-stepper button:disabled {
  color: #a8aaa5;
  background: var(--surface);
  cursor: not-allowed;
}

.additional-color-stepper output {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.additional-color-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.additional-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.additional-color-swatch {
  --swatch-ink: #c5c8c0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color-scheme: only light;
  forced-color-adjust: none;
}

.additional-color-swatch.is-idle {
  opacity: 0.5;
  background: #fff;
}

.additional-color-swatch.is-active {
  opacity: 1;
  border-color: transparent;
  background: var(--swatch-ink);
}

.additional-color-swatch[data-tone="spot-1"] { --swatch-ink: #ef5d45; }
.additional-color-swatch[data-tone="spot-2"] { --swatch-ink: #2faba0; }
.additional-color-swatch[data-tone="spot-3"] { --swatch-ink: #8f5de0; }
.additional-color-swatch[data-tone="spot-4"] { --swatch-ink: #ef8a2a; }
.additional-color-swatch[data-tone="spot-5"] { --swatch-ink: #e58aaf; }

.additional-color-hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.additional-color-hint[hidden] {
  display: none;
}

.print-finish-options {
  max-width: none;
}

.segmented input:disabled + span {
  border-color: var(--line);
  color: #a8aaa5;
  background: var(--surface);
  box-shadow: none;
  cursor: not-allowed;
}

.quote-only-note {
  margin: 12px 0 0 var(--controls-indent);
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.order-details {
  margin-left: var(--controls-indent);
}

.text-field {
  display: block;
  margin-bottom: 24px;
}

.text-field > span,
.quantity-grid label > span:first-child {
  display: block;
  margin-bottom: 10px;
  color: #4f514d;
  font-size: var(--text-label);
  font-weight: 700;
}

.required-mark {
  color: #c0392b;
  font-weight: 700;
}

.text-field input,
.quantity-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
}

.text-field input:focus,
.quantity-input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(42, 152, 214, 0.12);
}

.quantity-fields {
  margin: 0;
}

.contact-fields {
  margin: 26px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--controls-gap);
}

.contact-grid .text-field {
  margin-bottom: 0;
}

.contact-notes-field {
  margin: var(--controls-gap) 0 0;
}

.contact-notes-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: calc(1.45em * 5 + 24px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  overflow-y: auto;
  field-sizing: fixed;
}

.contact-notes-field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(42, 152, 214, 0.12);
}

.quantity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--controls-gap);
}

.quantity-grid > label[hidden] {
  display: none;
}

.quantity-grid .quantity-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.quantity-grid .quantity-input,
.quantity-grid .quantity-input-wrap input {
  width: 100%;
  padding-right: 34px;
}

.quantity-grid .quantity-input-wrap > span:last-child {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  pointer-events: none;
}

.field-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}

.custom-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 24px 54px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: #4f514d;
  font-size: 13px;
  font-weight: 700;
}

.custom-quantity[hidden] {
  display: none;
}

.quantity-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-meta);
}

.quantity-input-wrap input {
  width: 130px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.production-fieldset {
  margin-top: 26px;
}

.custom-color > span:first-child {
  margin: 0;
}

.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

input[type="color"] {
  width: 34px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}

#custom-color-value {
  min-width: 66px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.preview-panel {
  --preview-stage-min-height: 570px;
  --preview-visual-height: 550px;
  --preview-stage-margin-top: 22px;
  --preview-stage-margin-bottom: 20px;
  --preview-panel-padding: clamp(16px, 1.5vw, 22px);
  --preview-dims-padding-y: 12px;
  --preview-artwork-margin-bottom: 20px;
  --preview-artwork-padding: 15px;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  margin-top: 0;
  padding: var(--preview-panel-padding);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(24, 24, 22, 0.08);
}

.live-summary {
  --live-summary-row-padding-y: 7px;
  --live-summary-group-gap: 8px;
  --live-summary-group-padding-y: 12px;
  --live-summary-title-margin: 8px;
  --live-summary-font-size: var(--text-ui);
  position: sticky;
  display: flex;
  flex-direction: column;
  align-self: start;
  top: 18px;
  height: auto;
  max-height: calc(100vh - 36px);
  margin-top: 0;
  padding: clamp(16px, 1.5vw, 22px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 18px 60px rgba(24, 24, 22, 0.06);
}

.live-summary h2 {
  flex: 0 0 auto;
  margin-bottom: 12px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.05;
}

.live-summary .preview-kicker {
  display: block;
  flex: 0 0 auto;
}

.live-summary-rows {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--live-summary-group-gap);
  margin: 0;
  min-height: 0;
  overflow: auto;
}

.live-summary .live-summary-rows.dialog-summary {
  margin-bottom: 0;
  padding-top: 0;
  border-top: 0;
}

.live-summary .summary-group {
  min-width: 0;
  margin: 0;
  padding: var(--live-summary-group-padding-y) 14px;
  border: 1px solid #eceeea;
  border-radius: var(--radius-md);
  background: var(--section-surface);
}

.summary-group {
  min-width: 0;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid #eceeea;
  border-radius: var(--radius-md);
  background: var(--section-surface);
}

.live-summary .summary-group-title {
  margin: 0 0 var(--live-summary-title-margin);
}

.summary-group-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.summary-group-rows {
  display: grid;
  gap: 0;
}

.live-summary .live-summary-rows .summary-group-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: var(--live-summary-row-padding-y) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--live-summary-font-size);
  line-height: 1.25;
}

.live-summary .live-summary-rows .summary-group-rows > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.live-summary .live-summary-rows strong {
  max-width: 55%;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inquiry-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.inquiry-button {
  display: flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-btn);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-ui);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.turnstile-wrap {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 12px;
  min-height: 65px;
}

#turnstile-widget {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

#turnstile-widget[data-size="compact"] {
  width: 150px;
  margin-inline: auto;
}

#turnstile-widget iframe {
  display: block;
}

.turnstile-status {
  margin: 6px 0 0;
  color: #9b2f2f;
  font-size: var(--text-meta);
  line-height: 1.4;
}

.inquiry-button:hover {
  background: var(--accent-dark);
}

.inquiry-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.inquiry-resend-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: var(--text-meta);
  font-weight: 700;
}

.inquiry-resend-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(42, 152, 214, 0.08);
}

.inquiry-resend-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.inquiry-status {
  flex: 0 0 auto;
  margin: 10px 0 0;
  font-size: var(--text-meta);
  line-height: 1.5;
  color: #555753;
}

.inquiry-status[data-state="error"] {
  color: #9b2f2f;
}

.inquiry-status[data-state="success"] {
  color: #2f6b45;
}

.inquiry-status a {
  color: inherit;
  font-weight: 700;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid rgba(23, 24, 23, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 40px rgba(24, 24, 22, 0.16);
  color: var(--ink);
  font-size: var(--text-ui);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast[data-state="success"] {
  border-color: rgba(47, 107, 69, 0.22);
  color: #245538;
}

.app-toast[data-state="error"] {
  border-color: rgba(155, 47, 47, 0.22);
  color: #8a2a2a;
}

.app-toast[data-state="info"] {
  color: #3d403c;
}

.tube-stage,
#tube-visual,
.color-input-wrap,
input[type="color"] {
  color-scheme: only light;
  forced-color-adjust: none;
}

html[data-theme="hero"] .preview-panel {
  --preview-artwork-margin-bottom: 20px;
  --preview-artwork-padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 18px 60px rgba(24, 24, 22, 0.06);
}

html[data-theme="hero"] .preview-note,
html[data-theme="hero"] .dimensions,
html[data-theme="hero"] .summary-button {
  display: none;
}

html[data-theme="hero"] .artwork-panel {
  margin: var(--preview-artwork-margin-bottom) 0 0;
  padding: var(--preview-artwork-padding) 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

html[data-theme="hero"] .template-download {
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

html[data-theme="hero"] .template-download:hover {
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}

html[data-theme="hero"] .template-help {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.preview-header h2 {
  margin-bottom: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.preview-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 8px;
}

.tube-preview-mode {
  display: grid;
  grid-template-columns: repeat(2, auto);
  margin: 0;
  padding: 2px;
  border: 1px solid #d2d4cf;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.58);
}

.tube-preview-mode label {
  cursor: pointer;
}

.tube-preview-mode input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.tube-preview-mode span {
  display: block;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.tube-preview-mode input:checked + span {
  color: #fff;
  background: var(--accent);
}

.tube-preview-mode input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.preview-note {
  padding: 6px 9px;
  border: 1px solid #d2d4cf;
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.tube-stage {
  position: relative;
  display: grid;
  min-height: var(--preview-stage-min-height);
  place-items: center;
  margin: var(--preview-stage-margin-top) 0 var(--preview-stage-margin-bottom);
  overflow: hidden;
  border: 1px solid #e0e2dd;
  border-radius: var(--radius-md);
  background: #e6e6e6;
}

.tube-stage[data-artwork="true"] {
  touch-action: none;
}

#tube-visual {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 430px);
  height: var(--preview-visual-height);
}

.artwork-stage-overlays {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.artwork-stage-overlays[hidden] {
  display: none;
}

.artwork-gesture-guide {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(84px, 26%);
  opacity: 0;
  transform: translate(-50%, -52%);
  pointer-events: none;
  transition: opacity 160ms ease;
}

.artwork-gesture-guide svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.artwork-gesture-guide-halo,
.artwork-gesture-guide-core {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.artwork-gesture-guide-halo {
  color: rgba(255, 255, 255, 0.96);
}

.artwork-gesture-guide-core {
  color: rgba(20, 22, 19, 0.82);
}

.artwork-gesture-guide-halo .gesture-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 6.2;
}

.artwork-gesture-guide-core .gesture-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
}

.artwork-gesture-guide-halo .gesture-fill {
  fill: currentColor;
  stroke: none;
}

.artwork-gesture-guide-core .gesture-fill {
  fill: currentColor;
  stroke: none;
}

.tube-stage[data-artwork="true"]:has(#tube-visual:hover) .artwork-gesture-guide,
.tube-stage[data-artwork="true"]:has(#artwork-group:focus-visible) .artwork-gesture-guide {
  opacity: 0.94;
}

.tube-stage[data-artwork="true"]:has(#artwork-group:active) .artwork-gesture-guide {
  opacity: 0;
}

.artwork-stage-zoom {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: none;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(24, 24, 22, 0.08);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.tube-stage[data-artwork="true"]:has(#tube-visual:hover) .artwork-stage-zoom,
.tube-stage[data-artwork="true"] .artwork-stage-zoom:hover,
.tube-stage[data-artwork="true"] .artwork-stage-zoom:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.artwork-stage-zoom-label,
.artwork-stage-zoom output {
  color: #4f514d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.artwork-stage-zoom output {
  min-width: 3.4em;
  letter-spacing: 0.02em;
  text-align: right;
  text-transform: none;
}

.artwork-stage-zoom input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  transform: none;
}

.artwork-stage-zoom:hover,
.artwork-stage-zoom:focus-within {
  background: rgba(255, 255, 255, 0.88);
}

@media (hover: none) {
  .tube-stage[data-artwork="true"] .artwork-stage-zoom {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

#tube-body {
  stroke: #aeb1ad;
  stroke-width: 1.2;
  transition: 260ms ease;
}

#sealed-body-shading {
  pointer-events: none;
}

#tube-stage[data-body="transparent"] #tube-body {
  stroke: rgba(90, 90, 90, 0.42);
}

#tube-seal-line {
  stroke: #9b9d99;
  stroke-width: 2;
}

#artwork-group {
  cursor: grab;
  outline: none;
  touch-action: none;
}

#artwork-group:active {
  cursor: grabbing;
}

#artwork-group:focus-visible {
  filter: drop-shadow(0 0 3px var(--accent));
}

#sealed-artwork-object,
#sealed-artwork-canvas {
  overflow: hidden;
  pointer-events: all;
}

#sealed-artwork-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#artwork-shading {
  pointer-events: none;
}

#sealed-band-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.52);
  stroke-width: 1;
  stroke-linecap: round;
}

#sealed-band-ridges {
  fill: none;
  stroke: rgba(80, 82, 79, 0.13);
  stroke-width: 0.65;
  stroke-linecap: round;
}

#standard-cap-main,
#flip-cap-main {
  fill: url(#cap-gradient);
  stroke: rgba(22, 22, 21, 0.28);
  stroke-width: 1;
  transition: 220ms ease;
}

#flip-cap-lid-line {
  stroke: rgba(20, 20, 19, 0.5);
  stroke-width: 1.6;
}

#flip-cap-notch {
  fill: none;
  stroke: rgba(20, 20, 19, 0.72);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.cap-highlight {
  fill: rgba(255, 255, 255, 0.32);
  transition: opacity 180ms ease;
}

.dimension line {
  stroke: #787a78;
  stroke-width: 1;
}

.dimension text {
  fill: #555753;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dimensions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.dimensions div {
  padding: var(--preview-dims-padding-y) 10px;
  border-right: 1px solid var(--line);
}

.dimensions div:last-child {
  border-right: 0;
}

.dimensions dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dimensions dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.artwork-panel {
  margin: 0 0 var(--preview-artwork-margin-bottom);
  padding: var(--preview-artwork-padding);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.68);
}

.artwork-panel-header,
.artwork-file-row,
.artwork-zoom > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.artwork-panel h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.artwork-panel h3 span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artwork-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.artwork-upload-button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.artwork-upload-button:hover {
  color: #fff;
  background: var(--accent);
}

.artwork-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.artwork-upload-button:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.artwork-status {
  margin-top: 9px !important;
}

.artwork-status[data-state="error"] {
  color: #a52920;
}

.artwork-controls {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.artwork-file-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artwork-remove-button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid #c9cbc6;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.artwork-remove-button span {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.artwork-remove-button:hover {
  border-color: #a52920;
  color: #a52920;
  background: rgba(165, 41, 32, 0.04);
}

.template-download {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid #d4d6d1;
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}

.template-download:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(24, 24, 22, 0.08);
}

.download-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 20px;
}

.template-download strong,
.template-download small {
  display: block;
}

.template-download strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.template-download small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-type {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.template-help {
  margin: 9px 4px 22px;
  font-size: 12px;
}

.summary-button,
.dialog-primary {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-btn);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.summary-button:hover,
.dialog-primary:hover {
  background: var(--accent-dark);
}

.summary-dialog {
  --dialog-row-height: 38px;
  --dialog-row-font-size: 14px;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 24px);
  padding: 38px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 90px rgba(15, 15, 14, 0.25);
}

.summary-dialog[open] {
  display: flex;
  flex-direction: column;
}

.summary-dialog > :not(.dialog-summary) {
  flex-shrink: 0;
}

.summary-dialog::backdrop {
  background: rgba(20, 21, 20, 0.58);
  backdrop-filter: blur(5px);
}

.summary-dialog h2 {
  max-width: 390px;
  margin-bottom: 25px;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
}

.dialog-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.dialog-summary .summary-group-title {
  margin-bottom: 8px;
}

.dialog-summary .summary-group-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.dialog-summary .summary-group-rows > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-dialog .dialog-summary .summary-group-rows > div {
  height: var(--dialog-row-height);
  align-items: center;
  padding: 0;
  font-size: var(--dialog-row-font-size);
  line-height: 1.05;
}

.dialog-summary span:first-child {
  color: var(--muted);
}

.dialog-summary strong {
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dialog-info {
  margin-bottom: 22px;
}

.dialog-primary {
  justify-content: center;
}

html:is([data-theme="futura"], [data-theme="hero"]) {
  font-family: var(--font-sans);
  font-weight: 400;
}

html:is([data-theme="futura"], [data-theme="hero"]) h1 {
  font-family: var(--font-display);
  font-weight: 800;
}

html:is([data-theme="futura"], [data-theme="hero"]) :where(
  h2,
  h3,
  strong,
  button,
  label,
  select,
  .brand-name,
  .prototype-label,
  .eyebrow,
  .preview-kicker,
  .step-number,
  .summary-group-title,
  .preview-note,
  .download-type
) {
  font-family: var(--font-display);
  font-weight: 700;
}

html[data-theme="qtubes"] {
  --ink: #191919;
  --muted: #666;
  --line: #d8d8d8;
  --surface: #f4f4f4;
  --surface-strong: #e9e9e9;
  --section-surface: #fafafa;
  --accent: #009bfd;
  --accent-dark: #0877bb;
  --radius: 3px;
  font-family: "Titillium Web", "Arial Narrow", "Segoe UI", sans-serif;
}

html[data-theme="qtubes"] body {
  background: #fff;
}

html[data-theme="qtubes"] .site-header {
  min-height: 70px;
  border-bottom: 3px solid var(--accent-dark);
  background: #191919;
  backdrop-filter: none;
}

html[data-theme="qtubes"] .brand-default {
  display: none;
}

html[data-theme="qtubes"] .brand-qtubes {
  display: block;
  filter: grayscale(1) brightness(0) invert(1);
}

html[data-theme="qtubes"] .prototype-label {
  border-color: #4a4a4a;
  border-radius: 0;
  color: #b8b8b8;
}

html[data-theme="qtubes"] .theme-picker {
  border-color: #444;
  border-radius: 2px;
  background: #262626;
}

html[data-theme="qtubes"] .theme-picker span {
  border-radius: 1px;
  color: #aaa;
  font-weight: 600;
}

html[data-theme="qtubes"] .theme-picker input:checked + span {
  color: #fff;
  background: var(--accent-dark);
  box-shadow: none;
}

html[data-theme="qtubes"] .header-help {
  border-color: #777;
  color: #fff;
  font-weight: 600;
}

html[data-theme="qtubes"] .header-help:hover {
  border-color: var(--accent);
  color: var(--accent);
}

html[data-theme="qtubes"] main {
  width: min(1280px, 100%);
}

html[data-theme="qtubes"] .intro {
  padding: clamp(28px, 3vw, 48px) 0 46px;
}

html[data-theme="qtubes"] .eyebrow,
html[data-theme="qtubes"] .preview-kicker {
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.08em;
}

html[data-theme="qtubes"] h1 {
  font-size: clamp(42px, 4.7vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.03;
}

html[data-theme="qtubes"] .intro-copy {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
}

html[data-theme="qtubes"] .configurator {
  border-top: 3px solid var(--accent-dark);
}

html[data-theme="qtubes"] .step-number,
html[data-theme="qtubes"] .step h2,
html[data-theme="qtubes"] .preview-header h2 {
  font-weight: 600;
}

html[data-theme="qtubes"] .step-number {
  color: var(--accent-dark);
}

html[data-theme="qtubes"] .step,
html[data-theme="qtubes"] .summary-group {
  border-radius: 2px;
}

html[data-theme="qtubes"] .segmented label > span,
html[data-theme="qtubes"] .cold-stamping-switch > span,
html[data-theme="qtubes"] .additional-color-stepper button,
html[data-theme="qtubes"] .select-field select,
html[data-theme="qtubes"] .size-field select,
html[data-theme="qtubes"] .option-card,
html[data-theme="qtubes"] .custom-color,
html[data-theme="qtubes"] .custom-quantity,
html[data-theme="qtubes"] .quantity-input-wrap input,
html[data-theme="qtubes"] .contact-notes-field textarea {
  border-radius: 2px;
}

html[data-theme="qtubes"] .segmented input:checked + span,
html[data-theme="qtubes"] .cold-stamping-switch input:checked + span {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  box-shadow: none;
}

html[data-theme="qtubes"] .segmented input:focus-visible + span,
html[data-theme="qtubes"] .cold-stamping-switch input:focus-visible + span,
html[data-theme="qtubes"] .option-card input:focus-visible ~ span,
html[data-theme="qtubes"] .color-choice input:focus-visible + span {
  outline-color: rgba(0, 155, 253, 0.35);
}

html[data-theme="qtubes"] .select-field select:focus,
html[data-theme="qtubes"] .size-field select:focus,
html[data-theme="qtubes"] .option-card:has(input:checked),
html[data-theme="qtubes"] .color-choice:has(input:checked) {
  border-color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent-dark);
}


html[data-theme="qtubes"] .preview-panel {
  border: 1px solid #d6d6d6;
  border-radius: 2px;
  background: #f5f5f5;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

html[data-theme="qtubes"] .preview-note,
html[data-theme="qtubes"] .tube-stage,
html[data-theme="qtubes"] .template-download,
html[data-theme="qtubes"] .summary-dialog,
html[data-theme="qtubes"] .dialog-close {
  border-radius: 2px;
}

html[data-theme="qtubes"] .tube-stage {
  border-color: #d5d5d5;
  background: #e6e6e6;
}

html[data-theme="qtubes"] .template-download,
html[data-theme="qtubes"] .summary-button,
html[data-theme="qtubes"] .dialog-primary {
  border-radius: 1px;
  background: var(--accent-dark);
}

html[data-theme="qtubes"] .template-download,
html[data-theme="qtubes"] .template-download .download-type {
  color: #fff;
}

html[data-theme="qtubes"] .template-download small {
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="qtubes"] .template-download:hover,
html[data-theme="qtubes"] .summary-button:hover,
html[data-theme="qtubes"] .dialog-primary:hover {
  background: #005f9b;
}

html[data-theme="qtubes"] .summary-dialog::backdrop {
  background: rgba(25, 25, 25, 0.68);
}


@media (max-height: 700px) {
  .summary-dialog {
    padding: 22px;
  }

  .summary-dialog h2 {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .summary-dialog .eyebrow {
    margin-bottom: 6px;
  }

  .summary-dialog .dialog-summary {
    margin-bottom: 10px;
  }

  .summary-dialog .dialog-info {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.25;
  }

  .summary-dialog .dialog-primary {
    min-height: 44px;
  }
}

@media (max-width: 1459px) {
  .configurator {
    grid-template-columns: minmax(480px, 2fr) minmax(0, 1fr) minmax(346px, 1fr);
  }
}

@media (max-width: 1050px) {
  .quantity-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .configurator {
    grid-template-columns: minmax(360px, 1.6fr) minmax(180px, 1fr) minmax(334px, 1fr);
  }

  .preview-panel {
    --preview-stage-min-height: 510px;
    --preview-visual-height: 490px;
  }

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

  .dimensions div:nth-child(2) {
    border-right: 0;
  }

  .dimensions div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 1000px) {
  .configurator {
    display: flex;
    flex-direction: column;
  }

  .controls {
    width: 100%;
    padding-right: 0;
  }

  .preview-panel,
  .live-summary {
    position: static;
    width: 100%;
    margin: 24px 0 0;
  }

  .preview-panel {
    max-height: none !important;
    overflow: visible !important;
  }

  .live-summary {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-meta {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  .lang-switch__btn {
    min-width: 2.45rem;
    min-height: 2rem;
    font-size: 0.68rem;
  }

  .prototype-label,
  .header-help {
    display: none;
  }

  .intro {
    display: block;
    padding: 36px 0 40px;
  }

  .intro-copy {
    margin-top: 24px;
  }

}

@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  html[data-theme="hero"] .site-header {
    padding-left: calc(
      50% - min(var(--page-shell-half-width), 50%) + var(--page-gutter) + var(--panel-title-offset)
    );
  }

  .hero-banner-copy {
    left: var(--panel-title-offset);
  }

  .site-header {
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 8px;
  }

  .prototype-label,
  .header-help {
    display: none;
  }

  .theme-picker {
    margin-right: 0;
  }

  .layout-view-picker {
    order: 3;
    width: 100%;
    margin: 8px 0 0;
    grid-template-columns: repeat(2, 1fr);
  }

  .size-view-picker {
    order: 4;
    width: 100%;
    margin: 8px 0 0;
    grid-template-columns: repeat(2, 1fr);
  }


  .theme-picker span,
  .layout-view-picker span,
  .size-view-picker span {
    padding: 6px 8px;
    font-size: 12px;
  }

  html[data-theme="qtubes"] .brand-qtubes,
  html[data-theme="hero"] .brand-hero {
    width: 118px;
  }

  main {
    padding-bottom: 44px;
  }

  h1 {
    font-size: 42px;
  }

  .preview-panel {
    --preview-stage-min-height: 460px;
    --preview-visual-height: 450px;
    padding: 18px;
    border-radius: var(--radius-xl);
  }

  .preview-note {
    display: none;
  }

  .step-heading > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .step-help-popover {
    width: min(360px, calc(100vw - 36px));
  }

  fieldset,
  .field-grid,
  .order-details,
  .station-meter,
  .quote-only-note,
  .custom-quantity {
    --controls-indent: 44px;
  }

  fieldset {
    margin: 0 0 27px var(--controls-indent);
  }

  .field-grid,
  .order-details {
    margin-left: var(--controls-indent);
  }

  .station-meter {
    margin: 0 0 27px var(--controls-indent);
  }

  .quote-only-note {
    margin: 12px 0 0 var(--controls-indent);
  }

  .print-station-rail {
    --station-gap: 3px;
    margin-top: 12px;
  }

  .print-station {
    min-height: 46px;
    font-size: 12px;
  }

  .field-grid,
  .option-cards {
    grid-template-columns: 1fr;
  }

  .size-field-grid .size-field:first-child {
    padding-right: 0;
  }

  .size-field-grid .size-field + .size-field {
    margin-top: 18px;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .cold-stamping-grid > .size-field:first-child {
    padding-right: 0;
  }

  .cold-stamping-grid > .size-field + .size-field {
    margin-top: 18px;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .custom-color {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-quantity {
    align-items: flex-start;
    flex-direction: column;
    margin-left: var(--controls-indent);
  }

  .summary-dialog {
    padding: 32px 22px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
