:root {
  --ff-font-heading: 'Rajdhani', sans-serif;
  --ff-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-text-primary: #1d1d1f;
  --ff-text-secondary: #6e6e73;
  --ff-blue: #0071e3;
  --ff-blue-dark: #0077ED;
  --ff-blue-glow: rgba(0, 113, 227, 0.15);
  --ff-red: #FF2D2D;
  --ff-red-dark: #CC2424;
  --ff-bg-secondary: #f5f5f7;
  --ff-line: #e8e8ed;
  --ff-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --ff-shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.08);
  --ff-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--ff-font-body);
  color: var(--ff-text-primary);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  flex: 0 0 auto;
  height: 64px;
  padding: 0 28px;
  background: #0a0a0b;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; object-fit: contain; }
.brand .wordmark {
  font-family: var(--ff-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  color: #fff;
  white-space: nowrap;
}
header .crumb {
  font-family: var(--ff-font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #8899AA;
  text-transform: uppercase;
  border-left: 1px solid #2a2a2e;
  padding-left: 16px;
  white-space: nowrap;
}

.wrap { flex: 1 1 auto; min-height: 0; display: flex; }

.stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;    
  background:
    radial-gradient(900px 420px at 8% 102%, rgba(255, 45, 45, 0.06), transparent 62%),
    radial-gradient(900px 420px at 92% 102%, rgba(0, 113, 227, 0.06), transparent 62%),
    #ffffff;
}
.stage-view {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}
.stage canvas {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  background: transparent;
  touch-action: pan-y;
}
.stage-head h1 {
  font-family: var(--ff-font-heading);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.stage-head .sub {
  font-family: var(--ff-font-heading);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ff-red-dark);
}
.model-switch { display: flex; flex-wrap: wrap; gap: 6px; pointer-events: auto; }
.model-switch[hidden] { display: none; }
.model-switch a {
  display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #d5d6dc;
  background: rgba(255,255,255,.86); color: var(--ff-text, #1d1d1f); font-size: 12.5px; font-weight: 600;
  letter-spacing: .02em; text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: border-color .12s ease, background .12s ease;
}
.model-switch a:hover { border-color: #9a9ca5; background: #fff; }
.model-switch a:focus-visible { outline: none; border-color: var(--ff-blue); box-shadow: 0 0 0 3px var(--ff-blue-glow, rgba(0,113,227,.18)); }
.model-switch a[aria-current="page"] { background: #1d1d1f; border-color: #1d1d1f; color: #fff; cursor: default; }
.preset-draft { display: inline-block; margin-left: 3px; padding: 1px 5px; border-radius: 4px; background: #fff3cd; color: #7a5b00; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.stage-msg {
  margin: auto;
  text-align: center;
  color: var(--ff-text-secondary);
  font-size: 16px;
  max-width: 360px;
  padding: 24px;
}
.stage-msg p { color: var(--ff-text-primary); font-size: 17px; line-height: 1.45; }
.stage-msg-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.stage-msg-links a, .stage-retry, .sl-retry {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid #1d1d1f; background: #fff; color: #1d1d1f;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.stage-msg-links a:hover, .stage-retry:hover, .sl-retry:hover { background: #1d1d1f; color: #fff; }
.stage-retry { margin-top: 16px; }
.stage-load {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: min(340px, calc(100% - 32px)); padding: 18px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--ff-line); box-shadow: var(--ff-shadow-elevated);
  text-align: center;
}
.stage-load[hidden] { display: none; }
.sl-text { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ff-text-primary); }
.sl-track { position: relative; height: 6px; margin-top: 12px; border-radius: 99px; background: #ececf1; overflow: hidden; }
.sl-bar { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--ff-red-dark); transition: width .2s ease; }
.sl-track.indeterminate .sl-bar { width: 35% !important; animation: sl-slide 1.2s ease-in-out infinite; }
@keyframes sl-slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
.stage-load.failed .sl-track { display: none; }
.sl-retry { margin-top: 14px; }
.sl-retry[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .sl-track.indeterminate .sl-bar { animation: none; width: 100% !important; opacity: .35; } }

.panel {
  position: relative;
  overscroll-behavior: contain;
  flex: 0 0 440px;
  height: 100%;
  padding: 24px 24px 40px;
  overflow-y: auto;
  border-left: 1px solid var(--ff-line);
  background: #fff;
}
.panel h2 {
  font-family: var(--ff-font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.panel .hint {
  font-size: 14px;
  color: var(--ff-text-secondary);
  margin-bottom: 16px;
  line-height: 1.45;
}
.zone {
  background: #fff;
  border: 1px solid var(--ff-line);
  border-radius: 14px;
  box-shadow: var(--ff-shadow-card);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: var(--ff-transition-fast);
}
.zone:hover { box-shadow: var(--ff-shadow-elevated); transform: translateY(-1px); }
.zone.flash { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.zone-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 10px; }
.zone-head .name {
  font-family: var(--ff-font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.zone-head .picked { font-size: 13px; color: var(--ff-text-secondary); text-align: right; }
.zone-head .lockbadge {
  display: none;
  font-family: var(--ff-font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ff-blue);
  white-space: nowrap;
}
.zone.locked .picked { display: none; }
.zone.locked .lockbadge { display: inline; }
.zone.locked { opacity: 0.92; }
.zone.locked .swatches { opacity: 0.3; pointer-events: none; filter: grayscale(0.5); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches[hidden] { display: none; }    
.sw {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #d2d2d7;
  cursor: pointer;
  padding: 0;
  transition: var(--ff-transition-fast);
}
.sw:hover { transform: scale(1.08); }
.sw-none { background: #fff; position: relative; border-style: dashed; border-color: #b4b4ba; }
.sw-none::after {
  content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2.5px; margin-left: -1.25px;
  background: var(--ff-red, #cc2424); border-radius: 2px; transform: rotate(45deg);
}
.sw-none.active { border-style: solid; }
.sw.active {
  border-color: var(--ff-blue);
  box-shadow: 0 0 0 4px var(--ff-blue-glow);
}
.sw:focus-visible {
  outline: 2px solid var(--ff-blue);
  outline-offset: 2px;
}

.addons { display: flex; flex-direction: column; gap: 10px; }
.acc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--ff-border, #d9dbe0); border-radius: 8px; }
.acc-row.on { border-color: var(--ff-blue); }
.acc-txt { min-width: 0; }
.acc-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.acc-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); flex: none; }
.acc-sub { font-size: 13px; line-height: 1.45; color: var(--ff-text-secondary); margin-top: 2px; }
.acc-price { font-size: 14px; margin-top: 3px; }
.acc-on { font-size: 13px; font-weight: 600; color: var(--ff-blue); margin-top: 6px; }
.acc-show { margin-top: 6px; padding: 6px 0; min-height: 32px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ff-blue); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.acc-show:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.acc-step { display: flex; align-items: center; gap: 4px; flex: none; }
.acc-btn { width: 44px; height: 44px; font-size: 20px; line-height: 1; border: 1px solid var(--ff-border, #d9dbe0); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.acc-btn:disabled { opacity: .35; cursor: default; }
.acc-btn:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.acc-qty { min-width: 24px; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.addon { display: flex; flex-direction: column; gap: 5px; }
.addon-note { font-size: 13px; line-height: 1.45; color: var(--ff-text-secondary); }
.addon-lbl {
  font-family: var(--ff-font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ff-text-primary);
}
.addon select {
  font: inherit;
  font-size: 14px;
  height: 46px;
  padding: 0 12px;
  border: 1.5px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  color: var(--ff-text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.addon select:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; border-color: var(--ff-blue); }

.bases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.base-card {
  display: flex; align-items: center; gap: 11px;
  font: inherit; text-align: left; cursor: pointer;
  padding: 12px 13px;
  border: 1.5px solid #d2d2d7;
  border-radius: 13px;
  background: #fff;
}
.base-card:hover { border-color: #b6b6bb; }
.base-card.active { border-color: var(--ff-blue); box-shadow: 0 0 0 1.5px var(--ff-blue) inset; }
.base-card.pinned { opacity: 0.6; cursor: not-allowed; }
.base-card.pinned:hover { border-color: var(--ff-line); }
.base-chip {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,0.25);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.25);
}
.base-text { display: flex; flex-direction: column; min-width: 0; }
.base-name { font-family: var(--ff-font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.base-sub { font-size: 11.5px; color: var(--ff-text-secondary, #6e6e73); }
.base-card.active .base-sub { color: var(--ff-blue); font-weight: 600; }
.base-blurb { font-size: 12.5px; line-height: 1.5; color: var(--ff-text-secondary, #4a4a4f); margin-bottom: 4px; }
.cfg-section { margin-bottom: 22px; }
.cfg-section[hidden] { display: none; }
.cfg-axis { margin-bottom: 14px; }
.cfg-axis-lbl {
  font-family: var(--ff-font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ff-text-primary);
  margin-bottom: 7px;
}
.cfg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfg-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  font: inherit; text-align: left; cursor: pointer;
  padding: 12px 14px;
  border: 1.5px solid #d2d2d7;
  border-radius: 13px;
  background: #fff;
  min-width: 0;
  transition: var(--ff-transition-fast);
}
.cfg-card:hover { border-color: #b6b6bb; }
.cfg-card.active { border-color: var(--ff-blue); box-shadow: 0 0 0 1.5px var(--ff-blue) inset; }
.cfg-card:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.cfg-name { font-family: var(--ff-font-heading); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--ff-text-primary); }
.cfg-sub { font-size: 12px; line-height: 1.35; color: var(--ff-text-secondary, #6e6e73); }
.cfg-price { font-size: 12.5px; font-weight: 600; color: var(--ff-text-primary); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cfg-card.active .cfg-price { color: var(--ff-blue); }
.cfg-note { font-size: 12.5px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); background: var(--ff-bg-secondary, #f5f5f7); border-radius: 10px; padding: 9px 12px; margin-top: 8px; }
.cfg-note[hidden] { display: none; }
.stage-view.swapping canvas { opacity: 0.55; transition: opacity .15s ease; }
.pattern-price { font-size: 15px; font-weight: 700; color: var(--ff-ink, #1d1d1f); margin: 0 0 12px; min-height: 16px; }

.pattern-parts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 12px; }
.pattern-parts[hidden] { display: none; }
.pattern-parts-lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--ff-text, #1d1d1f); }
.part-chips { display: flex; gap: 6px; }
.part-chip {
  border: 1.5px solid #cfd2d8; background: #fff; color: var(--ff-text-secondary, #6b6e73);
  font: 600 13px/1 inherit; padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: all .12s ease;
}
.part-chip:hover { border-color: #9aa0a8; }
.part-chip.on { background: var(--ff-red-dark); border-color: var(--ff-red-dark); color: #fff; }
.part-chip:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.pattern-parts-hint { flex-basis: 100%; font-size: 12px; color: #8a8d92; margin-top: -2px; }

.presets { margin-bottom: 22px; }
.start-sec { margin-bottom: 22px; }    
.preset-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 10px; }
.preset-card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; text-align: center; }
.preset-thumb { aspect-ratio: 1 / 1; border-radius: 11px; overflow: hidden; border: 1.5px solid #e0e1e6; background: #f0f0f3; transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease; }
.preset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preset-thumb.solid { display: block; }
.preset-card:hover .preset-thumb { border-color: #b6b8bf; transform: translateY(-1px); }
.preset-card:focus-visible { outline: none; }
.preset-card:focus-visible .preset-thumb { border-color: var(--ff-blue); box-shadow: 0 0 0 3px var(--ff-blue-glow, rgba(0,113,227,.18)); }
.preset-name { font-size: 11.5px; font-weight: 600; color: var(--ff-text, #1d1d1f); }
.preset-cost { font-size: 11px; color: var(--ff-text-secondary, #6e6e73); margin-top: -3px; }
.preset-card.design-pick.selected .preset-thumb { border-color: var(--ff-blue); box-shadow: 0 0 0 2px var(--ff-blue); }
.preset-card.design-pick.selected .preset-name { color: var(--ff-blue); }
.eng-designs .artwork-info { margin-top: 10px; }
.deal-sub { font-size: 11px; color: var(--ff-text-secondary, #6e6e73); margin-top: -3px; }
.preset-card.deal-card.selected .preset-thumb { border-color: var(--ff-blue); box-shadow: 0 0 0 2px var(--ff-blue); }
.preset-card.deal-card.selected .preset-name { color: var(--ff-blue); }
.deal-on { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f5f5f7; font-size: 12.5px; line-height: 1.45; color: var(--ff-text, #1d1d1f); }
.deal-leave { margin-left: 4px; padding: 3px 10px; border: 1px solid #c7c8ce; border-radius: 999px; background: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.deal-leave:hover { border-color: #8e9097; }
.deal-leave:focus-visible { outline: none; border-color: var(--ff-blue); box-shadow: 0 0 0 3px var(--ff-blue-glow, rgba(0,113,227,.18)); }
.cfg-card.deal-off, .part-seg button.deal-off { opacity: .55; cursor: not-allowed; }
.deal-row { margin-bottom: 18px; padding: 14px; border-radius: 14px; background: #fff5f5; border: 1px solid #f3d2d2; }
.deal-row h2 { color: #b01818; }
.deal-hint { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--ff-text, #1d1d1f); }
.deal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.deal-card2 { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0 0 10px; border: 1.5px solid #e3e4e8; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease; }
.deal-card2:hover { border-color: #b6b8bf; transform: translateY(-1px); }
.deal-card2:focus-visible { outline: none; border-color: var(--ff-blue); box-shadow: 0 0 0 3px var(--ff-blue-glow, rgba(0,113,227,.18)); }
.deal-card2.selected { border-color: var(--ff-blue); box-shadow: 0 0 0 2px var(--ff-blue); }
.dc-pic { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 6px; }
.dc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.dc-badge { position: absolute; top: 7px; left: 7px; padding: 2px 8px; border-radius: 999px; background: #c82020; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.dc-model, .dc-name, .dc-grip, .dc-price, .dc-left { padding: 0 10px; }
.dc-model { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ff-text-secondary, #6e6e73); }
.dc-name { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ff-text, #1d1d1f); }
.dc-grip { font-size: 12px; color: var(--ff-text-secondary, #6e6e73); }
.dc-price { margin-top: 4px; font-size: 13px; }
.dc-now { font-size: 15px; font-weight: 700; color: #c82020; }
.dc-was { color: #8a8f96; }
.dc-left { margin-top: 2px; font-size: 12px; font-weight: 600; color: #b01818; }
.deal-card2.selected .dc-name { color: var(--ff-blue); }
.deal-on strong, .deal-diff, .deal-rules { display: block; }
.deal-diff { margin-top: 4px; }
.deal-rules { margin-top: 4px; color: var(--ff-text-secondary, #6e6e73); }
.deal-on .deal-leave { margin: 8px 0 0; }
body.ff-deal #startSection, body.ff-deal #configSection, body.ff-deal #barrelBuilt, body.ff-deal #presetRow,
body.ff-deal .part-seg[data-slot="grip"], body.ff-deal .addon[data-service="porting"], body.ff-deal .xb-pv { display: none !important; }
.deal-lock { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #e3e4e8; }
.deal-lock-ic { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.deal-yours { display: block; margin-top: 8px; }
.deal-yours-list { margin: 4px 0 0; padding-left: 18px; columns: 2; column-gap: 16px; font-size: 12.5px; }
.deal-yours-list li { margin: 1px 0; break-inside: avoid; }
.deal-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #fff5f5; border: 1px solid #f3d2d2; font-size: 13px; line-height: 1.4; }
.deal-nudge[hidden] { display: none; }
.deal-nudge b { color: #b01818; }
.deal-nudge-btn { padding: 4px 12px; border: 1px solid #b01818; border-radius: 999px; background: #fff; color: #b01818; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.deal-nudge-btn:hover { background: #b01818; color: #fff; }
.deal-nudge-btn:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.deal-card2.dc-flash { border-color: #c82020; box-shadow: 0 0 0 3px rgba(200,32,32,.25); }
.fd-diff { color: var(--ff-text-secondary, #6e6e73); }

.pattern-select-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 9px; margin: 8px 0 4px; }
.pat-group-hd { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-text-secondary, #6b6e73); margin: 8px 0 0; }
.pat-group-hd:first-child { margin-top: 0; }
.pat-tile { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; font: inherit; }
.pat-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 2px solid #e0e1e6; background: #f0f0f3; transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease; }
.pat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pat-tile:hover .pat-thumb { border-color: #b6b8bf; transform: translateY(-1px); }
.pat-tile:focus-visible { outline: none; }
.pat-tile:focus-visible .pat-thumb { border-color: var(--ff-blue); box-shadow: 0 0 0 3px var(--ff-blue-glow, rgba(0,113,227,.18)); }
.pat-tile.selected .pat-thumb { border-color: var(--ff-red-dark); box-shadow: 0 0 0 3px rgba(204, 36, 36, .18); }
.pat-tile.selected .pat-thumb::after { content: "\2713"; position: absolute; top: 3px; right: 4px; width: 16px; height: 16px; line-height: 16px; border-radius: 50%; background: var(--ff-red-dark); color: #fff; font-size: 11px; font-weight: 700; }
.pat-name { font-size: 11px; font-weight: 600; line-height: 1.15; color: var(--ff-text, #1d1d1f); }
.pat-cost { font-size: 10px; color: var(--ff-text-secondary, #8a8d92); }
.pat-tile.exclusive .pat-thumb { border-color: #c0942f; }
.pat-tile.exclusive.selected .pat-thumb { border-color: var(--ff-red-dark); }
.pat-tile.exclusive .pat-name { color: #9a7a28; }
.pat-none .pat-thumb { background: #fff; border-style: dashed; display: flex; align-items: center; justify-content: center; }
.pat-none .pat-thumb span { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #8a8d92; }

.pattern-colors {
  margin: -4px 0 16px;
  padding: 14px;
  border: 1.5px solid #e3e3e8;
  border-radius: 14px;
  background: #fafafa;
}
.pattern-colors[hidden] { display: none; }
.pattern-colors-lbl {
  font-size: 12.5px;
  color: var(--ff-text-secondary, #6e6e73);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.pattern-slots { display: flex; flex-direction: column; gap: 14px; }
.pslot { display: flex; flex-direction: column; gap: 7px; }
.pslot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pslot-name { font-family: var(--ff-font-heading); font-weight: 600; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.pslot-picked { font-size: 12.5px; color: var(--ff-text-secondary, #6e6e73); text-align: right; }
.pslot-legacy { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pslot-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.pat-color-btn {
  border: 1.5px solid #cfd2d8; background: #fff; color: var(--ff-text-secondary, #6b6e73);
  font: 600 13px/1 inherit; padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: all .12s ease;
}
.pat-color-btn:hover { border-color: #9aa0a8; color: var(--ff-text, #1d1d1f); }
.pat-color-btn:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.pat-cap-note { font-size: 12.5px; font-weight: 600; color: var(--ff-text-secondary, #6e6e73); }
.splatter-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--ff-line);
  border-radius: 14px;
  box-shadow: var(--ff-shadow-card);
  padding: 14px 16px;
  margin: 12px 0;
}
.splatter-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.splatter-hd h2 { margin: 0; font-size: 20px; }
.splatter-hd-price {
  font-family: var(--ff-font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ff-text-secondary, #6e6e73);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.splatter-banner {
  display: block;
  width: 100%;
  height: 104px;
  border-radius: 10px;
  border: 1px solid #e0e1e6;
}
.splatter-copy { font-size: 14.5px; line-height: 1.5; }
.splatter-fine { font-size: 12px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); }
button.big.splatter-add { width: 100%; margin-top: 2px; background: var(--ff-text-primary, #1d1d1f); border-color: var(--ff-text-primary, #1d1d1f); color: #fff; }
button.big.splatter-add:hover { background: #000; border-color: #000; }
button.big.splatter-add.on { background: #fff; border-color: #d2d2d7; color: var(--ff-text-primary, #1d1d1f); }
button.big.splatter-add.on:hover { border-color: var(--ff-text-primary, #1d1d1f); background: #fff; }
.splatter-sec .pattern-colors-lbl { margin-top: 6px; }
.splatter-swatches { margin-top: 2px; }
.sum-note { font-size: 11.5px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); padding: 2px 0 6px; }
.coverage { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.coverage-first { margin: 0 0 16px; }    
.coverage[hidden] { display: none; }
.coverage-lbl {
  font-family: var(--ff-font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ff-text-primary, #1d1d1f);
}
.coverage-hint { font-size: 12.5px; color: var(--ff-text-secondary, #6e6e73); }
.coverage-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-font-heading);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1.5px solid #cfd2d8;
  background: #fff;
  color: var(--ff-text-secondary, #6b6e73);
  cursor: pointer;
  transition: all .12s ease;
}
.cover-chip:hover { border-color: #9aa0a8; color: var(--ff-text-primary, #1d1d1f); }
.cover-chip.on { background: var(--ff-text-primary, #1d1d1f); border-color: var(--ff-text-primary, #1d1d1f); color: #fff; }
.cover-chip .cover-check { display: none; font-size: 11px; line-height: 1; }
.cover-chip.on .cover-check { display: inline; }
.cover-chip:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.pchip {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(0,0,0,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.psel {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 13px;
  height: 40px;
  padding: 0 28px 0 10px;
  border: 1.5px solid #d2d2d7;
  border-radius: 10px;
  background: #fff;
  color: var(--ff-text-primary);
  cursor: pointer;
  appearance: none;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.psel:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; border-color: var(--ff-blue); }
.prod-btn {
  margin-top: 12px;
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 11px 14px;
  border: 1.5px solid var(--ff-blue);
  border-radius: 10px;
  background: #fff;
  color: var(--ff-blue);
  cursor: pointer;
}
.prod-btn:hover { background: var(--ff-blue); color: #fff; }
.prod-intro { font-size: 13.5px; line-height: 1.5; color: var(--ff-text-secondary, #4a4a4f); margin: 0 0 14px; }
.prod-ref { text-align: center; margin-bottom: 16px; }
.prod-ref img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid #e3e3e8; object-fit: cover; }
.prod-ref span { display: block; margin-top: 6px; font-size: 12px; color: var(--ff-text-secondary, #6e6e73); }
.prod-masks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.maskfig { margin: 0; text-align: center; }
.maskfig img { width: 100%; aspect-ratio: 1; border-radius: 8px; border: 1px solid #d2d2d7; background: #000; }
.maskfig figcaption { font-size: 11.5px; margin-top: 5px; color: var(--ff-text-primary); line-height: 1.3; }
.prod-spec { margin-top: 16px; }
.prod-spec summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.prod-spec pre { white-space: pre-wrap; font-size: 11.5px; line-height: 1.45; background: #f6f6f8; border: 1px solid #e3e3e8; border-radius: 10px; padding: 12px; margin-top: 10px; overflow-x: auto; }
.prod-zipname { font-size: 12px; color: var(--ff-text-secondary, #6e6e73); margin-right: auto; align-self: center; }
.sop-frame { width: 100%; height: 64vh; border: 1px solid #e3e3e8; border-radius: 10px; background: #fff; }

.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; width: 100%; max-width: 560px; max-height: 88vh;
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--ff-line);
}
.modal-head h3 {
  font-family: var(--ff-font-heading); font-weight: 700; font-size: 20px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.modal-x { font: inherit; font-size: 26px; line-height: 1; background: none; border: none; color: var(--ff-text-secondary); cursor: pointer; padding: 0 4px; }
.modal-x:hover { color: var(--ff-text-primary); }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-actions { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--ff-line); }
.modal-actions .big { flex: 1; margin: 0; }
button.big.primary:disabled { background: #c9c9cf; border-color: #c9c9cf; color: #fff; cursor: not-allowed; transform: none; }
.share-btn { width: 100%; margin-top: 10px; font-size: 14px; }
.share-note { margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--ff-blue); word-break: break-all; }

.review-confirm { padding: 16px 22px; border-top: 1px solid var(--ff-line); background: #fafafb; }
.review-confirm h4 {
  font-family: var(--ff-font-heading); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 13px; color: var(--ff-red, #cc2424); margin: 0 0 8px;
}
.review-confirm ul { margin: 0 0 12px; padding-left: 18px; }
.review-confirm li { font-size: 12.5px; line-height: 1.5; color: var(--ff-text-secondary, #4a4a4f); margin-bottom: 6px; }
.review-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ff-text-primary); cursor: pointer; }
.review-check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; cursor: pointer; accent-color: var(--ff-blue); }

.wo-sec { margin-bottom: 18px; }
.wo-sec h4 {
  font-family: var(--ff-font-heading); font-weight: 700; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ff-text-secondary);
  margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--ff-line);
}
.wo-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 3px 0; }
.wo-row .k { color: var(--ff-text-secondary); }
.wo-row .v { text-align: right; font-weight: 500; }
.wo-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.wo-steps li { margin-bottom: 3px; }
.wo-total { display: flex; justify-content: space-between; font-family: var(--ff-font-heading); font-weight: 700; font-size: 20px; padding-top: 10px; border-top: 2px solid var(--ff-text-primary); margin-top: 6px; }
.wo-note { font-size: 12px; color: var(--ff-text-secondary); margin-top: 12px; line-height: 1.5; }

.eng-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.eng-chip {
  font: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px;
  border: 1.5px solid #d2d2d7; border-radius: 980px; background: #fff; color: var(--ff-text-secondary);
  cursor: pointer; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.eng-chip.active { border-color: var(--ff-blue); color: var(--ff-blue); }
.eng-chip:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.addbtn {
  font: inherit; font-size: 14px; font-weight: 600; height: 44px; width: 100%;
  border: 1.5px dashed #c2c2c9; border-radius: 10px; background: #fff; color: var(--ff-text-primary);
  cursor: pointer; transition: var(--ff-transition-fast);
}
.addbtn:hover { border-color: var(--ff-blue); color: var(--ff-blue); }
.rmbtn {
  font: inherit; font-size: 13px; font-weight: 600; height: 38px; width: 100%;
  border: 1.5px solid #e5b4b4; border-radius: 10px; background: #fff; color: var(--ff-red-dark);
  cursor: pointer; margin-top: 2px;
}
.rmbtn:hover { background: #fdf0f0; }

.engrave { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.engrave input[type=text] {
  font: inherit; font-size: 15px; height: 46px; padding: 0 14px;
  border: 1.5px solid #d2d2d7; border-radius: 12px; background: #fff; color: var(--ff-text-primary);
}
.engrave input[type=text]:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; border-color: var(--ff-blue); }
.engrave select {
  font: inherit; font-size: 14px; height: 46px; padding: 0 12px;
  border: 1.5px solid #d2d2d7; border-radius: 12px; background: #fff; color: var(--ff-text-primary); cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.engrave select:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; border-color: var(--ff-blue); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  flex: 1 1 0; min-width: 0; font: inherit; font-size: 13px; font-weight: 600;
  min-height: 42px; height: auto; padding: 6px 8px; line-height: 1.25;
  border: 1.5px solid #d2d2d7; border-radius: 10px; background: #fff; color: var(--ff-text-primary);
  cursor: pointer; white-space: normal; overflow-wrap: break-word; transition: var(--ff-transition-fast);
}
.seg button:hover { border-color: var(--ff-text-primary); }
.seg button.active { border-color: var(--ff-blue); background: var(--ff-blue); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
#engFillWrap { display: flex; flex-direction: column; gap: 6px; }
#engFillWrap[hidden] { display: none; }

.eng-logo { display: flex; flex-direction: column; gap: 7px; padding: 12px; border: 1px dashed #cfd2d8; border-radius: 10px; background: #fafafb; }
.logo-rights { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ff-text-primary); cursor: pointer; }
.logo-rights input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--ff-blue); flex: none; }
#engLogoFile { font-size: 12.5px; }
#engLogoFile:disabled { opacity: .45; cursor: not-allowed; }
.eng-logo .hint { margin: 0; font-size: 12px; }
.logo-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; }
.logo-info[hidden] { display: none; }
.logo-clear { font: inherit; font-size: 12px; font-weight: 600; border: 1.5px solid #cfd2d8; border-radius: 8px; background: #fff; color: var(--ff-red-dark); padding: 5px 10px; cursor: pointer; }
.logo-clear:hover { border-color: var(--ff-red-dark); }
#engFont[hidden] { display: none; }
.eng-warn { font-size: 12.5px; line-height: 1.45; font-weight: 600; color: #8a5a00; background: #fdf6e7; border: 1px solid #ecd9ad; border-radius: 10px; padding: 9px 12px; }
.eng-warn[hidden] { display: none; }
.wo-datum { color: var(--ff-text-secondary, #6b6e73); font-size: 12px; }

.zone .part-seg { margin: 2px 0 10px; }
.zone .part-seg button {
  flex: 1 1 auto; min-width: fit-content; padding: 7px 12px; min-height: 46px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.part-seg .pname { font-size: 12.5px; font-weight: 600; white-space: nowrap; line-height: 1.2; }
.part-seg .psub { font-size: 11px; font-weight: 600; color: var(--ff-text-secondary); line-height: 1.2; white-space: nowrap; }
.part-seg button.active .psub { color: rgba(255, 255, 255, 0.85); }
.placebtn {
  font: inherit; font-size: 14px; font-weight: 600; height: 44px;
  border: 1.5px solid var(--ff-blue); border-radius: 10px; background: #fff; color: var(--ff-blue);
  cursor: pointer; transition: var(--ff-transition-fast);
}
.placebtn:hover { background: var(--ff-blue-subtle, #f0f6ff); }
.placebtn.active { background: var(--ff-blue); color: #fff; }
.placebtn:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.eng-adjust { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.adj { flex: 1 1 44%; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ff-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.adj input[type=range] { width: 100%; accent-color: var(--ff-blue); cursor: pointer; }
.srange { position: relative; display: block; }
.srange input[type=range] { width: 100%; display: block; position: relative; z-index: 1; }
.srange::before {
  content: ''; position: absolute; left: var(--def, 50%); top: calc(50% + 11px);
  width: 2px; height: 6px; transform: translateX(-50%);
  background: var(--ff-text-secondary); opacity: 0.7; border-radius: 1px;
  pointer-events: none;
}

.summary {
  margin-top: 18px;
  border: 1px solid var(--ff-line);
  border-radius: 14px;
  box-shadow: var(--ff-shadow-card);
  overflow: hidden;
}
.summary h3 {
  font-family: var(--ff-font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  background: var(--ff-bg-secondary);
  border-bottom: 1px solid var(--ff-line);
}
.summary .lines { padding: 6px 16px; max-height: 220px; overflow-y: auto; }
.summary .line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; }
.summary .line .lbl { color: var(--ff-text-secondary); }
.summary .line.base .lbl { color: var(--ff-text-primary); font-weight: 600; }
.summary .line .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary .empty { font-size: 13px; color: var(--ff-text-secondary); padding: 4px 0; }
.summary .total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 16px; border-top: 1px solid var(--ff-line);
}
.summary .total .lbl { font-family: var(--ff-font-heading); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.summary .total .amt { font-family: var(--ff-font-heading); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }

.actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
button.big {
  font-family: var(--ff-font-body);
  font-size: 16px;
  font-weight: 600;
  height: 56px;
  padding: 0 24px;
  border-radius: 980px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ff-transition-fast);
  border: 1.5px solid #d2d2d7;
  background: #fff;
  color: var(--ff-text-primary);
}
button.big:hover { border-color: var(--ff-text-primary); transform: translateY(-1px); }
button.big.primary {
  background: var(--ff-blue);
  border-color: var(--ff-blue);
  color: #fff;
}
button.big.primary:hover { background: var(--ff-blue-dark); border-color: var(--ff-blue-dark); }
button.big:focus-visible {
  outline: 2px solid var(--ff-blue);
  outline-offset: 3px;
}
.note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ff-text-secondary);
  line-height: 1.5;
  background: var(--ff-bg-secondary);
  border-radius: 12px;
  padding: 12px 14px;
}

@media (prefers-reduced-motion: reduce) {
  .zone, .sw, button.big { transition: none; }
  .zone:hover, .sw:hover, button.big:hover { transform: none; }
}

@media (max-width: 900px) {
  header { padding: 0 14px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img { height: 36px; }
  .brand .wordmark { font-size: 0.9rem; letter-spacing: 0.08em; }
  header .crumb { display: none; }
  .wrap { flex-direction: column; }
  .stage { flex: 0 0 56vh; height: 56vh; }
  .stage canvas { flex: 1 1 auto; width: 100%; height: 100%; }    
  .model-switch { margin-top: 6px; gap: 5px; }
  .model-switch a { padding: 4px 10px; font-size: 12px; }
  .panel { flex: 1 1 auto; height: auto; min-height: 0; border-left: none; border-top: 1px solid var(--ff-line); padding: 18px 16px 32px; }
}

.stage-actions {
  position: static;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e8e8ed;
  padding: 10px 22px;
}
.stage-actions[hidden] { display: none; }
.sa-total { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.sa-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ff-text-secondary);
  white-space: nowrap;
}
.sa-amt {
  font-family: var(--ff-font-heading);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  color: var(--ff-text-primary);
  font-variant-numeric: tabular-nums;
}
.sa-total.on-sale .sa-amt { color: #c82020; }
.sa-deal { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.sa-deal[hidden] { display: none; }
.sa-was { color: #8a8f96; font-variant-numeric: tabular-nums; }
.sa-off { color: #c82020; font-weight: 700; }
.sa-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sa-btn {
  flex: 1 1 auto;    
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  border: 1.5px solid #d2d2d7;
  border-radius: 10px;
  background: #fff;
  color: var(--ff-text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ff-transition-fast);
}
.sa-btn[hidden] { display: none; }    
.sa-btn:hover { border-color: var(--ff-text-primary); }
.sa-btn:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.sa-btn svg { flex: none; }
.sa-mydesigns {
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ff-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.sa-mydesigns:hover { text-decoration: underline; }
.sa-mydesigns:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.sa-note {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 12.5px;
  font-weight: 600;
  color: #1a7f37;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e0e6e1;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.sa-note.sa-note--warn {
  color: #8a4b00;
  background: #fff8ec;
  border-color: #f0d4a8;
  border-radius: 12px;
  white-space: normal;
  width: max-content;
  max-width: min(560px, calc(100% - 32px));
  text-align: center;
  line-height: 1.4;
}
.sa-lead {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ff-text-secondary);
  background: #fafafc;
  border-bottom: 1px solid #ececf1;
  padding: 6px 22px;
}
.sa-lead[hidden] { display: none; }
.sa-saved { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.sa-saved-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.sa-saved-row .load {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ff-text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.sa-saved-row .load:hover { color: var(--ff-blue); }
.sa-saved-row .del {
  flex: none;
  font: inherit;
  font-size: 12px;
  border: none;
  background: none;
  color: var(--ff-text-secondary);
  cursor: pointer;
  padding: 2px 4px;
}
.sa-saved-row .del:hover { color: var(--ff-red-dark); }
@media (max-width: 900px) {
  .stage-actions { padding: 8px 14px; gap: 6px 12px; }
  .sa-amt { font-size: 23px; }
  .sa-btn { font-size: 12px; padding: 7px 9px; }
  .sa-lead { padding: 5px 14px; font-size: 10.5px; }
}

.sa-user { font-size: 11px; color: var(--ff-text-secondary); }

.my-designs { margin-bottom: 20px; }
.design-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 10px; }
.design-card { position: relative; display: flex; flex-direction: column; border: 1.5px solid #e0e1e6; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .12s ease; }
.design-card:hover { border-color: #b6b8bf; }
.design-open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; cursor: pointer; padding-bottom: 10px; }
.design-open:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: -2px; border-radius: 12px; }
.design-card .preset-thumb { display: block; aspect-ratio: 4 / 3; border: 0; border-radius: 0; border-bottom: 1px solid #ececf1; background: #fff; }
.design-card .preset-thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--ff-text-secondary); font-size: 12px; background: #f5f5f7; }
.design-card .design-name { font-family: var(--ff-font-heading); font-weight: 700; font-size: 16px; line-height: 1.15; color: var(--ff-text-primary); padding: 8px 10px 0; overflow-wrap: anywhere; }
.design-card .design-meta { font-size: 12.5px; font-weight: 600; color: var(--ff-text-primary); padding: 0 10px; }
.design-card .design-date { font-size: 12px; color: var(--ff-text-secondary); padding: 0 10px; }
.design-card .design-flag { align-self: flex-start; margin: 4px 10px 0; font-size: 11px; font-weight: 600; color: var(--ff-text-primary); background: #f0f0f3; border-radius: 999px; padding: 2px 8px; }
.design-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 5px; opacity: 0; transition: opacity .15s ease; }
.design-card:hover .design-tools, .design-card:focus-within .design-tools { opacity: 1; }
.design-tool { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ff-text-primary); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.design-tool:hover { background: var(--ff-text-primary); color: #fff; }
.design-tool.design-del:hover { background: var(--ff-red-dark); }
.design-tool:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 1px; }
@media (hover: none) { .design-tools { opacity: 1; } }
.design-confirm { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.96); font-size: 14px; font-weight: 600; text-align: center; padding: 10px; }
.design-confirm[hidden] { display: none; }
.design-confirm button { font: inherit; font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 7px 16px; cursor: pointer; min-width: 92px; }
.design-confirm .dc-yes { background: var(--ff-red-dark); color: #fff; border: 1.5px solid var(--ff-red-dark); }
.design-confirm .dc-no { background: #fff; color: var(--ff-text-primary); border: 1.5px solid #d2d2d7; }
.design-import { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px; padding: 12px 14px; border-radius: 12px; background: #f5f5f7; font-size: 14px; line-height: 1.4; }
.design-import[hidden] { display: none; }
.design-import .di-btns { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.design-import button { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.design-import .di-move { background: var(--ff-text-primary); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; }
.design-import .di-move:disabled { opacity: .6; cursor: wait; }
.design-import .di-later { background: none; border: 0; padding: 4px 0; color: var(--ff-text-secondary); text-decoration: underline; text-underline-offset: 3px; }

.sa-soon { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ff-text-primary); background: #f5f5f7; border: 1px solid #e8e8ed; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.sa-soon::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ff-red-dark); margin-right: 7px; vertical-align: 1px; }
.sa-soon[hidden] { display: none; }
.sa-btn--save { background: var(--ff-text-primary); border-color: var(--ff-text-primary); color: #fff; }
.sa-btn--save:hover { background: #000; border-color: #000; }

.preview-cta { margin-top: 16px; border: 1.5px solid #e8e8ed; border-radius: 16px; padding: 18px 18px 16px; background: #fff; }
.preview-cta[hidden] { display: none; }
.pc-kicker { font-family: var(--ff-font-heading); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ff-red-dark); }
.pc-title { font-family: var(--ff-font-heading); font-weight: 700; font-size: 26px; line-height: 1.05; text-transform: uppercase; margin: 2px 0 8px; }
.pc-copy { font-size: 15px; line-height: 1.5; color: var(--ff-text-secondary); margin-bottom: 14px; }
.preview-cta .pc-save { width: 100%; }
.pc-notify { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 15px; font-weight: 500; cursor: pointer; }
.pc-notify[hidden] { display: none; }
.pc-notify input, .sv-check input { width: 20px; height: 20px; flex: none; accent-color: var(--ff-text-primary); cursor: pointer; }

.save-card { max-width: 480px; }
.sv-lbl { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ff-text-secondary); margin-bottom: 6px; }
.sv-input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid #d2d2d7; border-radius: 12px; color: var(--ff-text-primary); }
.sv-input:focus { outline: none; border-color: var(--ff-text-primary); }
.sv-hint { font-size: 13.5px; color: var(--ff-text-secondary); margin: 8px 0 0; line-height: 1.4; }
.sv-hint[hidden] { display: none; }
.sv-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: 12px; background: #f5f5f7; cursor: pointer; }
.sv-check[hidden] { display: none; }
.sv-check span { display: flex; flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.35; }
.sv-check small { font-size: 13px; color: var(--ff-text-secondary); }
.sv-err { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ff-red-dark); }
.sv-err[hidden] { display: none; }
.sv-copy { font-size: 16px; line-height: 1.5; color: var(--ff-text-primary); margin-bottom: 4px; }
#saveGuest .sv-check { margin: 12px 0 16px; }
.sv-wide { width: 100%; margin-top: 10px; }
.sv-fine { font-size: 13px; color: var(--ff-text-secondary); text-align: center; margin: 12px 0 4px; }
.sv-textlink { display: block; margin: 6px auto 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ff-text-secondary); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sv-textlink:hover { color: var(--ff-text-primary); }
.modal-actions[hidden], .modal-actions [hidden] { display: none; }
@media (max-width: 900px) {
  .sa-soon { display: none; }             
  .design-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { padding: 12px; align-items: flex-end; }
  .modal-card { max-height: 92vh; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .big { flex: 1 1 140px; height: 52px; font-size: 15px; }
}

.artwork-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.artwork-tile { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; font: inherit; }
.artwork-thumb { aspect-ratio: 1 / 1; border-radius: 11px; overflow: hidden; border: 1.5px solid #e0e1e6; background: #f4f4f6; display: flex; align-items: center; justify-content: center; transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease; position: relative; }
.artwork-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.artwork-thumb.none { color: var(--ff-text-secondary, #6e6e73); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.artwork-tile:hover .artwork-thumb { border-color: #b6b8bf; transform: translateY(-1px); }
.artwork-tile:focus-visible { outline: none; }
.artwork-tile:focus-visible .artwork-thumb { border-color: var(--ff-blue); box-shadow: 0 0 0 3px var(--ff-blue-glow, rgba(0,113,227,.18)); }
.artwork-tile.selected .artwork-thumb { border-color: var(--ff-red-dark, #a51d1d); box-shadow: 0 0 0 3px rgba(204, 36, 36, .18); }
.artwork-name { font-size: 12px; font-weight: 600; line-height: 1.25; }
.artwork-cost { font-size: 11px; color: var(--ff-text-secondary, #6e6e73); }
.artwork-soon { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(29,29,31,.85); color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .03em; border-radius: 6px; padding: 3px 4px; }
.artwork-info { margin: 8px 0 2px; padding: 10px 12px; border-radius: 10px; background: #f4f4f6; font-size: 13px; line-height: 1.45; }
.artwork-info .ai-name { font-weight: 700; }
.artwork-info .ai-note { color: var(--ff-text-secondary, #6e6e73); font-size: 12px; margin-top: 3px; }
.artwork-info .ai-warn { color: var(--ff-red-dark, #a51d1d); font-weight: 600; font-size: 12px; margin-top: 5px; }

.optic-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--ff-line);
  border-radius: 14px;
  box-shadow: var(--ff-shadow-card);
  padding: 14px 16px;
  margin: 12px 0;
}
.optic-sec[hidden] { display: none; }
.optic-sec.flash { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.optic-sec .hint { margin: 0; }
.optic-sec .cfg-note { margin-top: 0; }
.optic-dot-lbl { margin: 2px 0 7px; }
.optic-dots .cfg-card { flex-direction: column; }
.optic-dots .cfg-name::before {
  content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  margin-right: 8px; vertical-align: -1px; background: var(--dot, #e0101c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, #e0101c) 22%, transparent), 0 0 8px color-mix(in srgb, var(--dot, #e0101c) 55%, transparent);
}
.optic-draft { background: #fff7e6; color: #7a5200; }
.zone-sub { font-family: var(--ff-font-body, inherit); font-weight: 400; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ff-text-secondary, #6e6e73); }

.barrel-sec .cfg-note { margin-top: 10px; }
.barrel-sec .xb-head { margin-top: 20px; }
.opt-await { font-size: 11.5px; line-height: 1.35; color: #8a5a00; background: #fff4d6; border-radius: 6px; padding: 2px 7px; margin-top: 4px; align-self: flex-start; }
.xb-list { display: flex; flex-direction: column; gap: 10px; }
.xb-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; border: 1px solid var(--ff-border, #d2d2d7); border-radius: 12px; padding: 12px 14px; background: #fff; }
.xb-row.on { border-color: var(--ff-blue); box-shadow: 0 0 0 1.5px var(--ff-blue) inset; }
.xb-row.off { background: var(--ff-bg-secondary, #f5f5f7); }
.xb-main { min-width: 0; flex: 1; }
.xb-name { font-weight: 600; font-size: 15px; }
.xb-inc, .xb-slide { font-size: 12.5px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); margin-top: 3px; }
.xb-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.xb-price { font-weight: 600; font-size: 14px; white-space: nowrap; }
.xb-btn { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--ff-border, #d2d2d7); background: #fff; color: inherit; border-radius: 980px; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
.xb-btn:hover { border-color: #b6b6bb; }
.xb-btn.on { background: var(--ff-blue); border-color: var(--ff-blue); color: #fff; }
.xb-btn.xb-pv { font-weight: 500; }
.xb-btn:disabled { opacity: .45; cursor: not-allowed; }
.xb-btn:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.part-set-note { margin: 6px 0 2px; }
.cfg-card .cfg-split { font-weight: 600; color: var(--ff-text, #1d1d1f); }
.barrel-preview-bar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: min(92%, 560px); z-index: 40; display: flex; gap: 12px; align-items: center; background: rgba(29,29,31,.94); color: #fff; font-size: 13.5px; line-height: 1.4; padding: 9px 12px 9px 16px; border-radius: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.28); }
.barrel-preview-bar button { font: inherit; font-size: 13px; font-weight: 600; border: 0; border-radius: 980px; padding: 6px 12px; background: #fff; color: #1d1d1f; cursor: pointer; white-space: nowrap; }
@media (max-width: 520px) { .xb-row { flex-direction: column; } .xb-side { flex-direction: row; align-items: center; flex-wrap: wrap; } }

@media (max-width: 900px) {
  header { height: 52px; }
  .brand img { height: 30px; }
  .stage { flex: 0 0 auto; height: auto; }
  .stage-view { flex: 0 0 auto; height: clamp(250px, 40vh, 480px); height: clamp(250px, 40svh, 480px); }
  .stage-actions { padding: 6px 14px; }
  .stage-actions { gap: 6px 10px; }
  .sa-lbl { font-size: 13px; letter-spacing: 0.06em; }
  .sa-btns { gap: 6px; }
  .sa-btn { min-height: 44px; font-size: 14px; padding: 0 12px; }
  .panel > .sa-lead { margin: 0 0 18px; border: 0; border-radius: 12px; background: #f5f5f7; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
  .model-switch { gap: 6px; margin-top: 4px; }
  .model-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; }

  .sw { width: 44px; height: 44px; }
  .xb-btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .eng-chip { min-height: 44px; min-width: 44px; font-size: 14px; }
  .cover-chip { min-height: 44px; }
  .logo-clear, .sa-mydesigns { min-height: 44px; }
  .design-tool { width: 44px; height: 44px; }
  .logo-rights { display: flex; align-items: center; gap: 10px; min-height: 44px; }
  .logo-rights input { width: 22px; height: 22px; flex: none; }
  #engLogoFile { min-height: 44px; }
  .adj input[type=range], .srange input[type=range] { height: 44px; }
  .sa-saved-row .load, .sa-saved-row .del { min-height: 44px; }
  .seg button, .rmbtn { min-height: 44px; }
  .sa-note { white-space: normal; width: max-content; max-width: calc(100% - 24px); border-radius: 12px; text-align: center; line-height: 1.4; }
  .brand { min-height: 44px; }

  .preset-draft, .zone-head .lockbadge, .base-sub, .base-blurb, .cfg-sub, .cfg-price, .cfg-note,
  .pattern-parts-lbl, .pattern-parts-hint, .preset-name, .pat-group-hd, .pat-tile.selected .pat-thumb::after,
  .pat-name, .pat-cost, .pat-none .pat-thumb span, .pattern-colors-lbl, .pslot-picked, .pat-cap-note,
  .splatter-fine, .sum-note, .coverage-hint, .cover-chip, .cover-chip .cover-check, .share-note,
  .review-confirm li, .wo-note, .wo-datum, .logo-rights, #engLogoFile, .eng-logo .hint, .logo-info,
  .logo-clear, .eng-warn, .part-seg .pname, .part-seg .psub, .adj, .sa-mydesigns, .sa-note, .sa-saved-row,
  .sa-saved-row .load, .sa-saved-row .del, .sa-user, .design-card .preset-thumb.empty, .design-card .design-meta,
  .design-card .design-date, .design-card .design-flag, .sa-soon, .pc-kicker, .artwork-thumb.none,
  .artwork-name, .artwork-cost, .artwork-soon, .artwork-info .ai-note, .artwork-info .ai-warn, .zone-sub,
  .opt-await, .xb-inc, .xb-slide, .prod-ref span, .maskfig figcaption, .prod-spec pre, .prod-zipname {
    font-size: 13px;
  }
}
@media (max-width: 380px) { .sa-lbl { display: none; } }
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  header { height: 40px; }
  .brand img { height: 24px; }
  .wrap { flex-direction: row; }
  .stage { flex: 1 1 auto; min-width: 0; height: 100%; }
  .stage-view { flex: 1 1 auto; height: auto; min-height: 0; }
  .stage-actions { padding: 4px 12px; gap: 4px 10px; }
  .sa-amt { font-size: 21px; }
  .panel { flex: 0 0 min(420px, 50vw); height: 100%; border-top: none; border-left: 1px solid var(--ff-line); padding: 14px 14px 28px; }
}

.stage-view::after {
  content: "Loading the part\2026"; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3;
  font-size: 13px; font-weight: 600; color: var(--ff-text-primary); background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ff-line); border-radius: 999px; padding: 7px 14px; box-shadow: var(--ff-shadow-card);
  pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility 0s linear .15s;
}
.stage-view.part-loading::after { opacity: 1; visibility: visible; transition: opacity .2s ease .35s, visibility 0s linear .35s; }
html.showcase .stage-view::after { display: none; }

.stage { container: stage / inline-size; }
.stage-actions[hidden] { display: flex; }                        
.stage-actions[hidden] .sa-right { visibility: hidden; }         
.stage-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 22px;
  min-height: 68px;
  padding: 10px 24px;
}
.stage-actions .stage-head { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 0 1 auto; }
.stage-actions .sh-name { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.stage-actions .stage-head .sub { font-size: 11px; line-height: 1; letter-spacing: 0.22em; margin: 0 0 4px; white-space: nowrap; }
.stage-actions .stage-head .sub:empty { display: none; }
.stage-actions .stage-head h1 { font-size: 30px; white-space: nowrap; }
.stage-actions .model-switch { margin: 0; flex-wrap: nowrap; }
.stage-actions .model-switch a { font-size: 13.5px; padding: 7px 14px; }
.sa-right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: 0 0 auto; min-width: 0; }
.stage-actions .sa-total { gap: 8px; }
.stage-actions .sa-amt { font-size: 28px; line-height: 1; }
.stage-actions .sa-btns { margin-left: 0; flex-wrap: nowrap; gap: 8px; }
.stage-actions .sa-btn { flex: 0 0 auto; font-size: 13.5px; padding: 9px 14px; }
@container stage (max-width: 1060px) { .stage-actions .sa-lbl { display: none; } }
@container stage (max-width: 900px) { .stage-actions .sa-soon { display: none; } }
@container stage (max-width: 760px) {
  .stage-actions { flex-wrap: wrap; padding: 8px 16px; gap: 8px 12px; }
  .stage-actions .stage-head { flex: 1 1 100%; justify-content: space-between; }
  .stage-actions .sa-right { flex: 1 1 100%; margin-left: 0; justify-content: space-between; }
}
@container stage (max-width: 520px) {
  .stage-actions .sh-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .stage-actions .stage-head { justify-content: flex-start; }
  .stage-actions .model-switch { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; min-width: 0; }
}
@container stage (max-width: 340px) {
  .stage-actions { padding: 6px 10px; }
  .stage-actions .model-switch { gap: 4px; }
  .stage-actions .model-switch a { padding: 0 9px; font-size: 13px; }
  .stage-actions .sa-btn { padding: 0 10px; }
}
@media (max-width: 900px) {
  .stage-actions .model-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; }
  .stage-actions .sa-btn { min-height: 44px; font-size: 14px; padding: 0 13px; }
  .stage-actions .sa-amt { font-size: 24px; }
}
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .stage-actions { padding: 5px 12px; gap: 6px 10px; min-height: 0; }
  .stage-actions .model-switch a { padding: 0 10px; font-size: 13px; }
}
@container stage (max-width: 340px) {
  .stage-actions .sa-btns .sa-btn { font-size: 0; gap: 0; min-width: 44px; padding: 0 12px; }
  .stage-actions .sa-btns .sa-btn svg { width: 18px; height: 18px; }
}
.panel > .sa-lead { margin: 0 0 20px; border: 0; border-radius: 12px; background: #f5f5f7; padding: 10px 14px; font-size: 13px; line-height: 1.45; color: var(--ff-text-secondary); }
.stage-hint {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 12.5px; font-weight: 500; color: var(--ff-text-secondary);
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--ff-line); border-radius: 999px;
  padding: 6px 12px; pointer-events: none;
  opacity: 1; transition: opacity .6s ease, visibility 0s linear 0s;
}
.stage-hint.pending { display: none; }
.stage-hint.gone { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.stage-hint .h-touch { display: none; }
@media (hover: none) { .stage-hint .h-mouse { display: none; } .stage-hint .h-touch { display: inline; } }
html.showcase .stage-hint { display: none !important; }
.panel { padding-left: 28px; }
@media (max-width: 900px) { .panel { padding-left: 16px; } }

.save-card { max-width: 500px; }
.fa-build { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--ff-line); border-radius: 14px; background: #fff; }
.fa-build img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--ff-bg-secondary); flex: none; }
.fa-build img[hidden] { display: none; }
.fa-btext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fa-bname { font-family: var(--ff-font-heading); font-weight: 700; font-size: 19px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.15; }
.fa-bprice { font-size: 15px; font-weight: 600; color: var(--ff-text-secondary); font-variant-numeric: tabular-nums; }
.fa-lead { font-size: 15.5px; line-height: 1.5; margin: 14px 0 4px; }
.fa-note { font-size: 14.5px; line-height: 1.45; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff7e6; color: #6b4a00; }
.fa-note[hidden] { display: none; }
.fa-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 0 14px; padding: 4px; border-radius: 980px; background: var(--ff-bg-secondary); }
.fa-tabs[hidden] { display: none; }
.fa-tabs button { font: inherit; font-size: 15px; font-weight: 600; height: 42px; border: 0; border-radius: 980px; background: transparent; color: var(--ff-text-secondary); cursor: pointer; }
.fa-tabs button[aria-selected="true"] { background: #fff; color: var(--ff-text-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.fa-tabs button:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.fa-form { display: flex; flex-direction: column; gap: 12px; }
.fa-form[hidden], .fa-done[hidden], #saveForms[hidden] { display: none; }
.fa-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fa-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fa-field > span:first-child { font-size: 14px; font-weight: 600; color: var(--ff-text-primary); }
.fa-field em, .fa-zip em { font-style: normal; font-weight: 500; color: var(--ff-text-secondary); font-size: 13px; }
.fa-field small, .fa-zip small { font-size: 13px; line-height: 1.4; color: var(--ff-text-secondary); }
.fa-field input, .fa-zip input { width: 100%; font: inherit; font-size: 17px; height: 50px; padding: 0 14px; border: 1.5px solid #d2d2d7; border-radius: 12px; color: var(--ff-text-primary); background: #fff; }
.fa-field input:focus, .fa-zip input:focus { outline: none; border-color: var(--ff-text-primary); box-shadow: 0 0 0 3px rgba(29, 29, 31, .08); }
.fa-pw { position: relative; display: block; }
.fa-pw input { padding-right: 70px; }
.fa-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 13.5px; font-weight: 600; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ff-text-secondary); cursor: pointer; }
.fa-eye:hover { color: var(--ff-text-primary); background: var(--ff-bg-secondary); }
.fa-pwhint { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ff-text-secondary); }
.fa-pwhint span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: #c7c7cc; }
.fa-pwhint span.ok { color: #1d6b38; }
.fa-pwhint span.ok::before { background: #1f9d55; }
.fa-consent { margin: 2px 0 0; }
.fa-captcha { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--ff-bg-secondary); }
.fa-captcha[hidden] { display: none; }
.fa-captcha img { max-width: 100%; height: auto; align-self: flex-start; background: #fff; border-radius: 8px; }
.fa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fa-msg { font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--ff-red-dark); margin: 0; }
.fa-msg[hidden] { display: none; }
.fa-msg.fa-msg--ok { color: #1d6b38; font-weight: 500; }
.fa-form .sv-wide { margin-top: 2px; }
.fa-form .sv-fine { margin: 0; }
.fa-link { font: inherit; font-size: 14.5px; font-weight: 600; background: none; border: 0; padding: 4px 0; color: var(--ff-text-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fa-link[hidden] { display: none; }
.fa-link:hover { color: #000; }
.fa-right { align-self: flex-end; margin-top: -4px; }
.fa-center { align-self: center; display: block; margin: 0 auto; }
#saveGuest .sv-textlink { margin-top: 14px; }
.fa-done { display: flex; flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
.fa-tick { width: 56px; height: 56px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; background: #e8f6ee; color: #1f9d55; }
.fa-done h4 { font-family: var(--ff-font-heading); font-weight: 700; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.fa-done-text { font-size: 16px; line-height: 1.5; margin: -4px 0 0; }
.fa-build--done { text-align: left; }
#faResendWrap[hidden], .fa-zip[hidden] { display: none; }
.fa-zip { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 14px; border-radius: 14px; background: var(--ff-bg-secondary); }
.fa-zip label { font-size: 15px; }
.fa-zrow { display: flex; gap: 8px; }
.fa-zrow[hidden] { display: none; }
.fa-zrow input { flex: 1; min-width: 0; }
.fa-zrow .big { height: 50px; padding: 0 20px; flex: none; }
.fa-done-actions { display: flex; flex-direction: column; gap: 10px; }
.fa-done-actions .sv-wide { margin: 0; }
.fa-done-actions [hidden] { display: none; }
a.big.fa-btnlink { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-family: var(--ff-font-body); font-size: 16px; font-weight: 600; height: 56px; padding: 0 24px; border-radius: 980px; border: 1.5px solid var(--ff-blue); background: var(--ff-blue); color: #fff; }
a.big.fa-btnlink:hover { background: var(--ff-blue-dark); border-color: var(--ff-blue-dark); }
a.big.fa-btnlink:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 3px; }
a.big.fa-btnlink[hidden] { display: none; }
@media (max-width: 520px) {
  .save-card .modal-body { padding: 16px 16px 20px; }
  .fa-lead { font-size: 15px; }
  .fa-build img { width: 84px; height: 63px; }
}
@media (max-width: 350px) { .fa-row2 { grid-template-columns: 1fr; } }

.sa-model { display: none; }
@media (max-width: 900px) and (orientation: portrait) {
  body.ff-compact .stage-actions .stage-head { display: none; }
  @container stage (max-width: 760px) {
    .stage-actions { row-gap: 8px; min-height: 0; transition: row-gap .28s ease; }    
    body.ff-compact .stage-actions { row-gap: 0; }
    .stage-actions .stage-head { overflow: hidden; max-height: var(--sh-h, 60px); transition: max-height .28s ease, opacity .2s ease, visibility 0s linear 0s; }
    body.ff-compact .stage-actions .stage-head { display: flex; max-height: 0; opacity: 0; visibility: hidden; transition: max-height .28s ease, opacity .2s ease, visibility 0s linear .28s; }
    .stage-view { overflow: hidden; transition: height .28s ease; }
    body.ff-compact .stage-view { height: calc(clamp(250px, 40vh, 480px) + var(--sh-h, 44px) + 8px); height: calc(clamp(250px, 40svh, 480px) + var(--sh-h, 44px) + 8px); }
    .stage canvas { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(clamp(250px, 40vh, 480px) + var(--sh-h, 44px) + 8px); height: calc(clamp(250px, 40svh, 480px) + var(--sh-h, 44px) + 8px); }
  }
  body.ff-compact .sa-model { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; white-space: nowrap; }
  body.ff-compact .sa-model::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  body.ff-compact .sa-model:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; border-radius: 6px; }
  body.ff-compact .stage-actions .sa-total { align-items: center; }
  body.ff-compact .stage-actions .sa-btns #shareBuildTop { font-size: 0; gap: 0; min-width: 44px; padding: 0 12px; }
  body.ff-compact .stage-actions .sa-btns #shareBuildTop svg { width: 18px; height: 18px; }
  body.ff-compact .stage-hint { display: none; }
}
@media (max-width: 900px) and (orientation: portrait) and (prefers-reduced-motion: reduce) {
  .stage-actions, .stage-actions .stage-head, body.ff-compact .stage-actions .stage-head, .stage-view { transition: none; }
}

.ship-row { margin: 0 0 22px; padding: 14px 16px 16px; border: 1px solid var(--ff-line, #e8e8ed); border-radius: 14px; background: var(--ff-bg-secondary, #f5f5f7); display: flex; flex-direction: column; gap: 10px; }
.ship-row[hidden] { display: none; }
.ship-head { display: flex; align-items: center; gap: 10px; }
.ship-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--ff-line, #e8e8ed); color: var(--ff-text-primary, #1d1d1f); display: grid; place-items: center; }
.ship-titles { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ship-lbl { font-family: var(--ff-font-heading); font-size: 17px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ff-text-primary, #1d1d1f); line-height: 1.15; }
.ship-hint { font-size: 13px; line-height: 1.4; color: var(--ff-text-secondary, #6e6e73); }
.ship-sel { width: 100%; min-height: 46px; font: inherit; font-size: 16px; font-weight: 600; padding: 10px 40px 10px 14px; border: 1px solid #c9cbd1; border-radius: 10px; color: var(--ff-text-primary, #1d1d1f); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d1d1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.ship-sel:hover { border-color: #9a9ca3; }
.ship-sel:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.ship-status { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ff-text-primary, #1d1d1f); }
.ship-status[hidden] { display: none; }
.ship-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #1f8a3b; }
.ship-status.limited::before { background: #c77700; }
.ship-dealer { background: #fff; border: 1px solid #b9d4f5; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ship-dealer[hidden] { display: none; }
.ship-badge { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #0a4fa3; background: #e6f0fc; border-radius: 999px; padding: 3px 10px; }
.ship-dealer-txt { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ff-text-primary, #1d1d1f); }
.ship-dealer-btn { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ff-text-primary, #1d1d1f); background: #fff; color: var(--ff-text-primary, #1d1d1f); cursor: pointer; }
.ship-dealer-btn:hover { background: var(--ff-text-primary, #1d1d1f); color: #fff; }
.ship-dealer-btn:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.dealer-card { max-width: 500px; }
.dealer-card .modal-head h3 { font-size: 19px; line-height: 1.2; }
.dl-lead { margin: 0 0 16px; font-size: 15.5px; line-height: 1.5; color: var(--ff-text-primary, #1d1d1f); }
.dl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: dl; }
.dl-steps li { counter-increment: dl; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.dl-steps li::before { content: counter(dl); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--ff-text-primary, #1d1d1f); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.dl-steps strong { font-size: 15px; color: var(--ff-text-primary, #1d1d1f); }
.dl-steps span { font-size: 13.5px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); }
.ship-row.flash { animation: shipFlash 1.4s ease-out 1; }
@keyframes shipFlash { 0% { box-shadow: 0 0 0 3px var(--ff-blue, #0071e3); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .ship-row.flash { animation: none; border-color: var(--ff-blue, #0071e3); } }
.cfg-card.ship-off, .acc-row.ship-off, .xb-row.ship-off { opacity: .55; }
.cfg-card.ship-off { cursor: not-allowed; }
.cfg-card.ship-off .cfg-price, .xb-row.ship-off .xb-price { color: var(--ff-text-secondary, #6e6e73); font-weight: 500; }

.sz-line {
  background: none; border: 0; margin: 0; padding: 4px 0; cursor: pointer; text-align: left;
  display: inline-block;
  font-family: var(--ff-font-body); font-size: 15px; line-height: 1.45; color: #4a4a4d;
  transition: color .15s ease;
}
.sz-line[hidden] { display: none; }
.sz-line:hover { color: var(--ff-text-primary); }
.sz-line:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 3px; border-radius: 4px; }
.sz-line strong { color: var(--ff-text-primary); font-weight: 700; }
.sz-with { white-space: nowrap; }
.sz-logo { height: 16px; width: auto; display: inline-block; vertical-align: -3px; margin-left: 2px; }
.sz-info { display: inline-block; font-size: 14px; line-height: 1; color: var(--ff-text-secondary); margin-left: 5px; }
.sz-line:hover .sz-info { color: var(--ff-blue); }
.summary .sz-line { display: block; width: 100%; padding: 0 16px 12px; margin-top: -4px; font-size: 14px; }
.sz-mini {
  position: absolute; top: 10px; left: 16px; z-index: 2;
  font-size: 12.5px; line-height: 1.2; white-space: nowrap;
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--ff-line); border-radius: 999px; padding: 5px 11px;
}
.sz-mini .sz-logo { height: 13px; vertical-align: -2px; }
.sz-mini .sz-info { font-size: 12px; margin-left: 4px; }
@container stage (max-width: 379px) { .sz-mini .sz-long { display: none; } }
.sz-pre-ph { display: none; }
@media (max-width: 900px) {
  .sz-mini { top: 8px; padding: 3px 9px; font-size: 11.5px; background: rgba(255, 255, 255, 0.8); }
  .sz-mini .sz-pre, .sz-mini .sz-w { display: none; }
  .sz-mini .sz-pre-ph { display: inline; }
  .sz-mini .sz-logo { height: 11px; margin-left: 0; vertical-align: -1px; }
  .sz-mini .sz-info { font-size: 11px; margin-left: 3px; }
  .sz-mini::before { content: ""; position: absolute; inset: -11px -6px; }
}
html.showcase .sz-mini { display: none !important; }
.sz-modal { z-index: 60; }
.sz-card { position: relative; max-width: 480px; padding: 32px 28px 24px; overflow-y: auto; color: var(--ff-text-primary); }
.sz-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.sz-x:hover { background: var(--ff-bg-secondary); }
.sz-x:focus-visible, .sz-ok:focus-visible, .sz-more:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.sz-modal-logo { height: 28px; width: auto; display: block; margin: 0 0 16px; }
.sz-title { font-family: var(--ff-font-heading); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.sz-intro { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: #4a4a4d; }
.sz-intro strong { color: var(--ff-text-primary); }
.sz-schedule { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sz-pay { padding: 12px 8px; background: #f7f7f8; border: 1px solid var(--ff-line); border-radius: 10px; text-align: center; }
.sz-pay-n { display: block; font-size: 11px; font-weight: 600; color: var(--ff-text-secondary); letter-spacing: .05em; margin-bottom: 2px; }
.sz-pay-amt { display: block; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.sz-pay-date { display: block; font-size: 12px; color: var(--ff-text-secondary); }
.sz-note { font-size: 13px; line-height: 1.5; color: var(--ff-text-secondary); margin: 0 0 20px; }
.sz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sz-more { color: var(--ff-text-primary); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sz-more:hover { color: var(--ff-blue); }
.sz-ok { margin: 0; padding: 10px 28px; }
@media (max-width: 480px) {
  .sz-card { padding: 24px 20px 20px; }
  .sz-schedule { grid-template-columns: repeat(2, 1fr); }
  .sz-actions { flex-direction: column-reverse; align-items: stretch; }
  .sz-ok { width: 100%; min-height: 44px; }
  .sz-more { text-align: center; }
}

.zone-group { background: #fafafc; border-color: #d9d9de; }
.zone-group:hover { transform: none; box-shadow: var(--ff-shadow-card); }
.zone-group[hidden] { display: none; }
.zg-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 8px; }
.zg-chips .cover-chip { justify-content: center; padding: 9px 2px; font-size: 11.5px; letter-spacing: 0.03em; white-space: nowrap; }
.zg-hint { font-size: 12.5px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); margin: 0 0 12px; }
.zdot { display: none; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c7c7cc; }
.zone.collapsible .zone-head { cursor: pointer; margin-bottom: 0; align-items: center; justify-content: flex-start; min-height: 28px; gap: 8px; }
.zone.collapsible .zone-head .name { margin-right: auto; flex: none; white-space: nowrap; }
.zone.collapsible .zone-head .zone-sub { display: block; white-space: normal; max-width: 170px; }
.zone.collapsible .zone-head .picked { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone.collapsible .zdot { display: inline-block; }
.zone.collapsible .zone-head::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 2px 3px 4px; border-right: 2px solid #8e8e93; border-bottom: 2px solid #8e8e93; transform: rotate(45deg); transition: transform .15s ease; }
.zone.collapsible.open .zone-head::after { transform: rotate(-135deg); margin-bottom: -3px; }
.zone.collapsible .zone-head:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 4px; border-radius: 6px; }
.zone.collapsible .part-seg { margin: 10px 0 0; }
.zone.collapsible .swatches { margin-top: 12px; }
.zone.collapsible:not(.open) .swatches { display: none; }
.zone.collapsible.locked .zdot, .zone.collapsible.locked .zone-head::after { display: none; }
.zone.collapsible.locked .swatches { display: none; }
.coat-pick { margin-top: 0; padding-top: 0; }
.coat-pick[hidden], .coat-pick [hidden] { display: none; }
.zone.collapsible:not(.open) .coat-pick, .zone.collapsible.locked .coat-pick { display: none; }
.coat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.coat-lbl { font-family: var(--ff-font-heading); font-weight: 600; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; }
.coat-picked { font-size: 13px; color: var(--ff-text-secondary); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coat-off { margin: 0; font-size: 12.5px; }
.coat-hint { font-size: 12.5px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); margin: 0 0 10px; }
.coat-grp-hd { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ff-text-secondary, #6e6e73); margin: 12px 0 6px; }
.coat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.coat-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 6px 2px 5px; background: #fff; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font: inherit; color: inherit; transition: var(--ff-transition-fast); }
.coat-chip:hover { border-color: #d2d2d7; }
.coat-chip:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.coat-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #d2d2d7; box-sizing: border-box; flex: none; }
.coat-chip.active .coat-sw { border-color: var(--ff-blue); box-shadow: 0 0 0 4px var(--ff-blue-glow); }
.coat-sw-none { background: #fff; position: relative; border-style: dashed; border-color: #b4b4ba; }
.coat-sw-none::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 2.5px; margin-left: -1.25px; background: var(--ff-red, #cc2424); border-radius: 2px; transform: rotate(45deg); }
.coat-chip.active .coat-sw-none { border-style: solid; }
.coat-name { font-size: 12px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coat-amt { font-size: 11px; line-height: 1.1; color: var(--ff-text-secondary, #6e6e73); }
.fin-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; margin: 2px 0 12px; background: #f0f0f3; border-radius: 11px; }
.fin-tabs[hidden] { display: none; }
.fin-tab { position: relative; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ff-text-secondary, #6e6e73); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .12s ease, color .12s ease, box-shadow .12s ease; }
.fin-tab:hover { color: var(--ff-text, #1d1d1f); }
.fin-tab.active { background: #fff; color: var(--ff-text, #1d1d1f); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.06); }
.fin-tab:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 1px; }
.fin-tab.has-pick::after { content: ""; position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--ff-blue); }
.zone[data-fin-tab="1"] > .swatches, .zone[data-fin-tab="2"] > .swatches { display: none; }
.zone[data-fin-tab="0"] > .coat-pick { display: none; }
.coat-grp { display: none; }
.zone[data-fin-tab="1"] .coat-grp[data-grp="1"], .zone[data-fin-tab="2"] .coat-grp[data-grp="2"] { display: block; }
.coat-over { color: var(--ff-text, #1d1d1f); }
@media (prefers-reduced-motion: reduce) { .fin-tab { transition: none; } }
.aj-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.aj-cards button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left; }
.aj-cards .pname, .aj-cards .psub { white-space: normal; }
.aj-cards .aj-price s { font-weight: 500; opacity: .7; margin-left: 4px; }
.aj-only { margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: #fdecec; color: #b01818; font-size: 10.5px; font-weight: 700; }
.aj-cards button.active .aj-only { background: rgba(255,255,255,.2); color: #fff; }
@media (prefers-reduced-motion: reduce) { .coat-chip { transition: none; } }
@media (max-width: 900px) and (orientation: portrait) {
  .coat-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .coat-chip { min-height: 44px; }
  .coat-sw { width: 40px; height: 40px; }
  .coat-name, .coat-amt, .coat-hint, .coat-off, .coat-grp-hd, .coat-picked { font-size: 13px; }
}
.order-bar { position: sticky; bottom: 12px; z-index: 6; display: flex; align-items: center; gap: 12px; margin: 18px 0 -28px; padding: 9px 9px 9px 18px; background: #fff; border: 1px solid var(--ff-line); border-radius: 18px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16); transition: opacity .2s ease, transform .2s ease; }
.order-bar[hidden] { display: none; }
.order-bar.ob-away { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }
.ob-total { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ob-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ff-text-secondary, #6e6e73); }
.ob-amt { font-family: var(--ff-font-heading); font-weight: 700; font-size: 23px; line-height: 1.05; }
.ob-amtrow { display: flex; align-items: baseline; gap: 8px; }
.ob-deal { display: inline-flex; gap: 6px; font-size: 12px; white-space: nowrap; }
.ob-deal[hidden] { display: none; }
.order-bar.on-sale .ob-amt { color: #c82020; }
@media (max-width: 480px) { .ob-deal .sa-off { display: none; } }
.ob-go { margin-left: auto; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ff-blue); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ob-go:hover { background: var(--ff-blue-dark); }
.ob-go:focus-visible, .ob-total:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 3px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .order-bar, .zone.collapsible .zone-head::after { transition: none; } }
@media (max-width: 900px) and (orientation: portrait) {
  body.ff-obar .panel { margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  body.ff-obar #addCart { display: none; }
  body.ff-obar .order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-sizing: border-box; height: calc(56px + env(safe-area-inset-bottom, 0px)); margin: 0; padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 12px; border: 0; border-top: 1px solid var(--ff-line); border-radius: 0; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06); transition: none; }
  body.ff-obar .order-bar.ob-away { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  body.ff-obar .ob-total { min-height: 44px; justify-content: center; }
  body.ff-obar .ob-lbl { font-size: 11px; }
  body.ff-obar .ob-amt { font-size: 19px; }
  body.ff-obar .ob-go { min-height: 44px; padding: 0 18px; font-size: 15px; }
}
@media (max-width: 900px) { .zg-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zg-chips .cover-chip { font-size: 13px; padding: 10px 4px; } }

.acc-card { border: 1px solid var(--ff-line); border-radius: 14px; box-shadow: var(--ff-shadow-card); background: #fff; overflow: hidden; }
.acc-card .acc-row { border: 0; border-radius: 0; padding: 10px 12px 10px 16px; gap: 10px; }
.acc-card .acc-row ~ .acc-row { border-top: 1px solid var(--ff-line); }    
.acc-card .acc-row.on { background: #f5f9ff; }
.acc-card .acc-name { font-size: 14.5px; }
.acc-card .acc-sub { font-size: 12.5px; line-height: 1.4; margin-top: 1px; }
.acc-card .acc-price { display: inline; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ff-text-primary); white-space: nowrap; }
.acc-card .acc-btn { width: 40px; height: 40px; border-radius: 10px; }
.acc-colors { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 12px; border-top: 1px solid var(--ff-line); }
.acc-colors-lbl { font-size: 13px; color: var(--ff-text-secondary); white-space: nowrap; }
.acc-colors-lbl strong { color: var(--ff-text-primary); font-weight: 600; }
.acc-chips { display: flex; gap: 10px; }
.acc-chip { position: relative; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #d2d2d7; cursor: pointer; transition: var(--ff-transition-fast); }
.acc-chip.sel { border-color: var(--ff-blue); box-shadow: 0 0 0 4px var(--ff-blue-glow); }
.acc-chip:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 3px; }
.acc-chip-n { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ff-text-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.acc-have { padding: 0 16px 12px; font-size: 12.5px; line-height: 1.4; color: var(--ff-text-secondary); }

.rv-pic { margin: 0 0 14px; text-align: center; }
.rv-pic img { display: inline-block; width: auto; max-width: 100%; height: auto; max-height: 190px; border-radius: 12px; }
@media (max-width: 900px) { #addCartTop { display: none !important; } }

.sum-dealer { margin: 0 0 8px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; background: rgba(201, 162, 39, .12); border: 1px solid rgba(201, 162, 39, .45); color: inherit; }

.info-tip {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 20px; margin: -2px 0 0 4px; padding: 0; vertical-align: middle;
  border: 1.5px solid #8e8e93; border-radius: 50%; background: #fff; color: #6e6e73;
  font-family: var(--ff-font-body); font-size: 12px; font-weight: 700; font-style: normal; line-height: 1;
  letter-spacing: 0; text-transform: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.info-tip::before { content: ""; position: absolute; inset: -6px; }               
.info-tip:hover { border-color: var(--ff-blue); color: var(--ff-blue); }
.info-tip:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.info-tip[aria-expanded="true"] { background: var(--ff-blue); border-color: var(--ff-blue); color: #fff; }
.info-pop {
  display: block; margin: 8px 0 4px; padding: 10px 12px; text-align: left;
  background: #fff; border: 1px solid #d2d2d7; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  font-family: var(--ff-font-body); font-size: 13px; font-weight: 400; font-style: normal; line-height: 1.5;
  letter-spacing: 0; text-transform: none; color: var(--ff-text-primary); white-space: normal;
}
.info-pop[hidden] { display: none; }
.info-pop p { margin: 0; }
.info-pop p + p { margin-top: 6px; }
.ship-status-txt { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .info-tip { transition: none; } }
.xb-row.xb-picked { flex-direction: row; align-items: center; padding: 10px 12px 10px 14px; }
.xb-row.xb-picked .xb-side { flex-direction: row; align-items: center; gap: 10px; }
.xb-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 10px 16px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ff-text-primary); text-align: left;
  background: #fff; border: 1px dashed #b6b6bb; border-radius: 12px; cursor: pointer;
}
.xb-toggle:hover { border-color: var(--ff-text-primary); }
.xb-toggle:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.xb-toggle.open { border-style: solid; justify-content: center; }
.xb-toggle-from { font-size: 13.5px; font-weight: 500; color: var(--ff-text-secondary); white-space: nowrap; }

.hd-model, #partPicker, .ob-icon, .sz-bar { display: none; }
@media (max-width: 900px) and (orientation: portrait) {
  body.ff-obar .stage-actions .sa-right, body.ff-obar .stage-actions .sa-user { display: none; }
  body.ff-obar .sz-mini { display: none !important; }
  body.ff-obar.ff-compact .stage-actions .stage-head { display: flex; }
  @container stage (max-width: 760px) {
    body.ff-obar .stage-actions { padding-top: 4px; padding-bottom: 4px; transition: padding .28s ease, row-gap .28s ease; }
    body.ff-obar.ff-compact .stage-actions { padding-top: 0; padding-bottom: 0; }
  }

  body.ff-obar .order-bar { gap: 6px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  body.ff-obar .ob-price { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; flex: 1 1 auto; margin-right: auto; }
  body.ff-obar .ob-total { min-height: 0; flex-direction: row; align-items: baseline; gap: 6px; padding: 2px 0 0; }
  body.ff-obar .ob-lbl { display: none; }
  body.ff-obar .ob-amt { font-size: 22px; line-height: 1; }
  body.ff-obar .sz-bar { display: inline-block; position: relative; max-width: 100%; padding: 3px 0 0; font-size: 11.5px; line-height: 1.2; white-space: nowrap; color: #4a4a4d; }
  body.ff-obar .sz-bar[hidden] { display: none; }
  body.ff-obar .sz-bar .sz-pre, body.ff-obar .sz-bar .sz-w { display: none; }
  body.ff-obar .sz-bar .sz-pre-ph { display: inline; }
  body.ff-obar .sz-bar .sz-logo { height: 11px; width: auto; margin-left: 0; vertical-align: -1px; }
  body.ff-obar .sz-bar .sz-info { font-size: 11px; margin-left: 3px; }
  body.ff-obar .sz-bar::before { content: ""; position: absolute; inset: -4px -6px -10px; }
  body.ff-obar .ob-icon {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: none;
    width: 46px; height: 44px; padding: 0; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff;
    color: var(--ff-text-primary); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  body.ff-obar .ob-icon svg { width: 18px; height: 18px; }
  body.ff-obar .ob-icon-txt { font-size: 10.5px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
  body.ff-obar #obSave { background: var(--ff-text-primary); border-color: var(--ff-text-primary); color: #fff; }
  body.ff-obar .ob-icon:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
  body.ff-obar .ob-go { flex: none; margin-left: 2px; padding: 0 16px; font-size: 15px; }
  .hd-model {
    margin-left: auto; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px 0 14px; position: relative;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .06);
    color: #fff; font-family: var(--ff-font-heading); font-size: 15px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; cursor: pointer;
  }
  .hd-model::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .hd-model::before { content: ""; position: absolute; inset: -4px -2px; }
  .hd-model:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  header { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }

  .panel h2 { font-size: 20px; }
  .panel .hint { margin-bottom: 10px; }
  .cfg-state { display: none !important; }                         
  .base-card.active, .cfg-card.active { position: relative; }
  .base-card.active::after, .cfg-card.active::after {
    content: ""; position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--ff-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  }
  .bases { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 4px; }
  .base-card { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 10px 10px; min-height: 0; }
  .base-chip { width: 24px; height: 24px; border-radius: 7px; }
  .base-name { font-size: 13.5px; line-height: 1.2; }
  .cfg-section { margin-bottom: 16px; }
  .cfg-axis { margin-bottom: 10px; }
  .cfg-axis-lbl { margin-bottom: 5px; }
  .cfg-cards { gap: 8px; }
  .cfg-card { padding: 9px 26px 9px 11px; gap: 2px; justify-content: center; min-height: 48px; }
  .cfg-card .cfg-sub { display: none; }
  .cfg-name { font-size: 14.5px; line-height: 1.2; }
  .cfg-price { margin-top: 1px; }
  #barrelCards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  #barrelCards .cfg-card { padding: 8px 8px 8px 9px; }
  #barrelCards .cfg-card.active::after, .optic-cards .cfg-card.active::after { top: 4px; right: 4px; width: 14px; height: 14px; background-size: 14px; }
  #barrelCards .cfg-name { font-size: 13.5px; padding-right: 8px; }
  .optic-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .optic-cards .cfg-card { padding: 8px 8px 8px 9px; }
  .preset-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
  .preset-card { gap: 4px; }
  .preset-name { line-height: 1.2; }
  .pat-group-hd { display: none; }
  .pattern-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
  .splatter-banner { height: 60px; }
  .splatter-sec { gap: 8px; padding: 12px 14px; }

  .swatches { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
  .swatches[hidden] { display: none; }
  .sw { width: auto; height: auto; aspect-ratio: 1 / 1; min-width: 0; border-width: 1.5px; position: relative; }
  .sw:hover { transform: none; }
  .sw.active { z-index: 1; border-color: #fff; box-shadow: 0 0 0 2px var(--ff-blue), 0 0 0 4px var(--ff-blue-glow); }
  .sw-none::after { top: 2px; bottom: 2px; width: 2px; margin-left: -1px; }
  .sw-none.active { border-color: var(--ff-blue); }

  body.pp-ready #partPicker { display: block; margin: 22px 0 8px; }
  body.pp-ready #partPicker.flash { outline: 2px solid var(--ff-blue); outline-offset: 4px; border-radius: 10px; }
  #partPicker h2 { margin-bottom: 8px; }
  body.pp-ready #zones .zone:not(.pp-on), body.pp-ready #zoneGroups:not(.pp-on) { display: none; }
  body.pp-ready #zones .zone.pp-on, body.pp-ready #zoneGroups.pp-on {
    border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 0; margin: 0 0 18px; transform: none; opacity: 1;
  }
  body.pp-ready #zones .zone.pp-on .zone-head { cursor: default; min-height: 0; margin-bottom: 8px; align-items: baseline; }
  body.pp-ready #zones .zone.pp-on .zone-head::after, body.pp-ready #zones .zone.pp-on .zdot { display: none; }
  body.pp-ready #zones .zone.pp-on .zone-head .name { font-size: 14px; }
  body.pp-ready #zones .zone.pp-on .zone-head .zone-sub { max-width: none; }
  body.pp-ready #zones .zone.collapsible.pp-on .swatches { margin-top: 0; }
  body.pp-ready #zones .zone.pp-on .part-seg { margin: 0 0 10px; }
  body.pp-ready #zoneGroups.pp-on .zg-chips { display: none; }
  body.pp-ready #zoneGroups.pp-on .zone-head { margin-bottom: 2px; }
  body.pp-ready #zoneGroups.pp-on .zg-hint { margin: 0 0 8px; font-size: 13px; }
  .pp-strip {
    display: flex; align-items: center; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 0 -16px 10px; padding: 2px 16px 4px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 30px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 30px), transparent 100%);
  }
  .pp-strip::-webkit-scrollbar { display: none; }
  .pp-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 10px;
    border: 1.5px solid #d2d2d7; border-radius: 999px; background: #fff; color: var(--ff-text-primary);
    font-family: var(--ff-font-body); font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  }
  .pp-chip[hidden] { display: none; }
  .pp-chip:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
  .pp-chip.on { background: var(--ff-text-primary); border-color: var(--ff-text-primary); color: #fff; }
  .pp-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .22); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35); }
  .pp-chip.on .pp-dot { border-color: rgba(255, 255, 255, .75); }
  .pp-chip.pp-under .pp-dot { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .55) 0 2px, transparent 2px 5px) !important; }
  .pp-chip.pp-fixed:not(.on) { color: var(--ff-text-secondary); }
  .pp-sep { flex: none; align-self: stretch; display: flex; align-items: center; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--ff-line);
    font-family: var(--ff-font-heading); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-text-secondary); }
  .pp-grp { border-style: dashed; padding-left: 11px; }
  .pp-grp.on { border-style: solid; }
  .pp-ico { flex: none; }
}
@media (max-width: 900px) and (orientation: portrait) and (prefers-reduced-motion: reduce) {
  body.ff-obar .stage-actions, .pp-chip { transition: none; }
}
@supports (container-type: inline-size) {
  @media (max-width: 760px) and (orientation: portrait) {
    body.ff-obar.ff-compact .hd-model { display: inline-flex; }
  }
}
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  header { padding-left: max(14px, env(safe-area-inset-left, 0px)); }
  .stage-actions { padding-left: max(12px, env(safe-area-inset-left, 0px)); }
  .stage-hint, .sz-mini { margin-left: env(safe-area-inset-left, 0px); }
  .panel { padding-right: max(14px, env(safe-area-inset-right, 0px)); }
}
@media (max-width: 900px) and (orientation: portrait) {
  .cfg-price { white-space: nowrap; }
}
.ph-only, .ph-tip, .pslot-tabs { display: none; }
@media (max-width: 900px) and (orientation: portrait) {
  .ph-only { display: block; }
  .ph-only p { margin: 6px 0 0; }
  .ph-tip { display: inline; }
  .preset-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 8px; }
  .preset-thumb { aspect-ratio: 16 / 9; }
  .preset-thumb img { object-position: center 55%; }
  #presetDesc { margin: 8px 0 0; }
  #barrelNote { display: none !important; }
  .zone .part-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .zone .part-seg button { min-width: 0; min-height: 44px; padding: 5px 6px; gap: 1px; }
  .part-seg .pname, .part-seg .psub { white-space: normal; text-align: center; line-height: 1.15; }
  body.pp-ready #zones .zone.pp-on .part-set-note { margin: -4px 0 8px; }
  #opticDotWrap:not([hidden]) { display: flex; align-items: center; gap: 10px; }
  #opticDotWrap .optic-dot-lbl { margin: 0; flex: none; }
  #opticDotWrap .optic-dots { flex: 1 1 auto; grid-template-columns: 1fr 1fr; }
  #opticDotWrap .cfg-card { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
  .optic-sec .cfg-note { margin-top: 6px; padding: 7px 10px; }
  #splatterBlock:has(#splatterOn.on) .splatter-banner { display: none; }
  .coverage { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
  .coverage-first { margin: 0 0 10px; }
  .coverage .coverage-lbl { flex: 1 0 100%; }
  .coverage .coverage-hint { display: none; }
  .coverage .coverage-chips { gap: 6px; }
  .coverage .cover-chip { min-height: 38px; padding: 0 12px; }
  .pattern-colors { padding: 12px; margin-bottom: 12px; }
  .pattern-colors-lbl { margin-bottom: 6px; }
  .pslot-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
  .pattern-slots { gap: 8px; }
  .pattern-slots .pslot:not(.pp-on) { display: none; }
  .pslot-actions { margin-top: 2px; }
  .pat-color-btn { min-height: 40px; }
  .xb-list { gap: 6px; }
  .xb-row { padding: 8px 10px 8px 12px; gap: 8px; }
  .xb-row .xb-slide .tip-short { display: none; }
  .xb-row .xb-slide { margin: 0; }
  .xb-row .xb-name { font-size: 14px; }
  .xb-side { gap: 6px; }
  .xb-btn { min-height: 40px; padding: 0 12px; }
  .xb-fin { margin-top: 6px !important; }
  .acc-card .acc-row { padding: 6px 8px 6px 12px; }
  .acc-card .acc-name { font-size: 14px; }
  .acc-card .acc-sub { margin-top: 0; }
  .acc-card .acc-btn { width: 38px; height: 38px; position: relative; }
  .acc-card .acc-btn::before { content: ""; position: absolute; inset: -3px; }
  .acc-colors { padding: 6px 12px 8px; }
  .acc-have { padding: 0 12px 8px; }
  #accSection .hint { margin-bottom: 6px; }
  #engHead + .hint { margin-bottom: 6px; }
  .engrave { gap: 8px; }
  .eng-list { margin-bottom: 6px; }
  #engControls:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #engControls > * { grid-column: 1 / -1; min-width: 0; }
  #engControls > #engText { grid-column: 1; }
  #engControls > #engFont { grid-column: 2; }
  #engControls > #engType { grid-column: 1; }
  #engControls > #engScope { grid-column: 2; }
  #engControls > #engPlace { grid-column: 1; }
  #engControls > #engRemove { grid-column: 2; margin: 0; height: 44px; align-self: start; }
  #engControls > #engPlaceHint, #engControls > #engFactoryWarn, #engControls > #engFillWrap, #engControls > #engArtworkBlock, #engControls > .eng-adjust, #engControls > .eng-logo { grid-column: 1 / -1; }
  .engrave input[type=text], .engrave select { height: 44px; font-size: 16px; }
  #engType button, #engScope button { padding: 4px 6px; font-size: 13px; }
  .eng-adjust { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .adj { gap: 0; }
  .adj input[type=range], .srange input[type=range] { height: 36px; }
  .artwork-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 2px; }
  #engArtworkBlock .hint { margin-bottom: 4px; }
}
.xb-price-m { display: none; }
@media (max-width: 900px) and (orientation: portrait) {
  .xb-row:not(.xb-picked) { flex-direction: row; align-items: center; }
  .xb-row:not(.xb-picked) .xb-main { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; }
  .xb-row:not(.xb-picked) .xb-name { flex: 0 1 auto; }
  .xb-row:not(.xb-picked) .xb-price-m { display: block; flex: 1 0 100%; order: 2; font-size: 13px; font-weight: 600; margin: 1px 0 0; }
  .xb-row:not(.xb-picked) .xb-fin { order: 3; flex: 1 0 100%; }
  .xb-row:not(.xb-picked) .xb-side { flex-direction: row-reverse; align-items: center; gap: 6px; }
  .xb-row:not(.xb-picked) .xb-side .xb-price { display: none; }
  .xb-toggle { min-height: 44px; padding: 8px 14px; }
}
.acc-price-m { display: none; }
@media (max-width: 900px) and (orientation: portrait) {
  .acc-card .acc-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .acc-price-m { display: inline; flex: none; font-size: 13px; font-weight: 600; color: var(--ff-text-primary); white-space: nowrap; }
  .acc-card .acc-sub .acc-price { display: none; }
  .acc-card .acc-sub { line-height: 1.3; }
  .acc-card .acc-step { gap: 2px; }
  .acc-card .acc-qty { min-width: 20px; }
  .xb-row:not(.xb-picked) .xb-side { align-self: flex-start; }
  .xb-row:not(.xb-picked) .xb-fin { margin-right: -146px; }
  .xb-row:not(.xb-picked) .xb-fin > span { display: none; }
  .xb-row:not(.xb-picked) .xb-fin .xb-finbtn { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.2; padding: 4px 8px; }
  #splatterBlock button.big.splatter-add.on { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .coverage .cover-chip { padding: 0 9px; gap: 5px; letter-spacing: .03em; }
  #partPicker h2 { margin-bottom: 6px; }
  .pp-strip { margin-bottom: 6px; }
  .zone .part-seg button { min-height: 42px; }
  #engControls > #engArtworkBlock { order: 0; }
  #engControls > #engText, #engControls > #engFont, #engControls > .eng-logo { order: 1; }
  #engControls > #engType, #engControls > #engScope { order: 2; }
  #engControls > #engFillWrap { order: 3; }
  #engControls > #engPlace, #engControls > #engRemove { order: 4; }
  #engControls > #engPlaceHint, #engControls > #engFactoryWarn { order: 5; }
  #engControls > .eng-adjust { order: 6; }
  .rmbtn { font-size: 13px; }
}
.pp-picked { display: none; }
@media (max-width: 900px) and (orientation: portrait) {
  .ph-hide { display: none; }
  .splatter-sec { padding: 10px 12px; gap: 6px; }
  .pp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 10px; margin-bottom: 6px; }
  .pp-head h2 { margin: 0; }
  .pp-picked { display: block; flex: 1 1 auto; text-align: right; font-size: 13px; line-height: 1.3; color: var(--ff-text-secondary); }
  body.pp-ready #zones .zone.pp-on .zone-head:not(:has(.zone-sub)) { display: none; }
  body.pp-ready #zones .zone.pp-on .zone-head:has(.zone-sub) .picked, body.pp-ready #zones .zone.pp-on .zone-head:has(.zone-sub) .lockbadge { display: none; }
  body.pp-ready #zoneGroups.pp-on .zone-head { display: none; }
  .zone .part-seg button { min-height: 40px; padding: 3px 5px; }
  #patternColors > .pattern-colors-lbl { display: none; }
  .pslot-head { display: none; }
  .acc-card .acc-sub { display: none; }
  .acc-card .acc-name { justify-content: flex-start; }
  .acc-card .acc-name .acc-price-m { margin-left: auto; }
  .acc-card .acc-row { min-height: 50px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .zone .part-seg:has(> button:nth-child(2):last-child), .zone .part-seg:has(> button:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #accHint { display: none; }           
  .xb-row:not(.xb-picked) .xb-fin .xb-finbtn { white-space: nowrap; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .pp-strip { padding-bottom: 2px; }
  body.pp-ready #zones .zone.pp-on .part-seg { margin-bottom: 8px; }
  .pattern-colors { padding: 10px 12px; }
  .pslot-tabs { margin-bottom: 6px; }
  .coverage-first { margin-bottom: 6px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  body.ff-obar .order-bar { gap: 5px; }
  body.ff-obar .ob-icon { width: 40px; }
  body.ff-obar .ob-go { padding: 0 14px; max-width: 124px; white-space: normal; line-height: 1.1; text-align: center; }
}
@media (max-width: 400px) and (orientation: portrait) {
  body.ff-obar .sz-bar .sz-or, body.ff-obar .sz-bar .sz-info { display: none; }
}
@media (max-width: 345px) and (orientation: portrait) {
  body.ff-obar .sz-bar { display: none; }       
  body.ff-obar .ob-amt { font-size: 19px; }
}
@media (max-width: 370px) and (orientation: portrait) {
  body.ff-obar .order-bar { gap: 4px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  body.ff-obar .ob-icon { width: 38px; }
  body.ff-obar .ob-go { padding: 0 12px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  @supports selector(:has(*)) {
    #extraBarrelBlock { position: relative; }
    #extraBarrelBlock .xb-toggle.open { position: absolute; top: -6px; right: 0; width: auto; min-height: 40px; padding: 0 18px; border-style: solid; }
    #extraBarrelBlock:has(.xb-toggle.open) .xb-head { padding-right: 84px; }
  }
  #extraBarrelList:has(.xb-toggle.open) { gap: 4px; }
  .xb-row:not(.xb-picked) { padding-top: 6px; padding-bottom: 6px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  @supports selector(:has(*)) {
    #extraBarrelBlock .xb-toggle.open { top: -7px; min-height: 34px; }
    #extraBarrelBlock .xb-toggle.open::before { content: ""; position: absolute; inset: -5px 0; }
    #extraBarrelBlock:has(.xb-toggle.open) .xb-head { margin-bottom: 6px; }
  }
}

.pp-under-note, .sum-user { display: none; }
@media (max-width: 900px) and (orientation: portrait) {
  .pp-under-note { display: block; margin: 0 0 8px; font-size: 13px; }
  body.pp-ready #zones .zone.locked.pp-on > .swatches { display: none; }
  .pattern-slots .pslot.pp-on .pslot-head { display: flex; margin: 0 0 2px; }
  .pattern-slots .pslot.pp-on .pslot-name { font-size: 13px; }
  .pattern-colors { padding: 8px 12px; }
  .sum-user { display: block; padding: 0 16px 6px; font-size: 13px; line-height: 1.35; color: var(--ff-text-secondary); }
  body.ff-obar .stage-actions { min-height: 0; }
  header { height: calc(52px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
}
@media (max-width: 520px) {
  .modal { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 374px) and (orientation: portrait) {
  .swatches { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (max-width: 340px) and (orientation: portrait) {
  .swatches { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}
@media (max-width: 900px) and (orientation: portrait) {
  #patternColors .coverage .cover-chip { min-height: 34px; position: relative; }
  #patternColors .coverage .cover-chip::before { content: ""; position: absolute; inset: -3px 0; }
  #patternColors .pslot { gap: 2px; }
  #patternColors .pattern-slots { gap: 4px; }
  #patternColors .pat-color-btn { min-height: 36px; }
}
.fd-colors[hidden], .fd-colors [hidden], .pat-tile[hidden], .pat-thumb img[hidden] { display: none; }
.fd-colors { margin: 4px 0 6px; }
.fd-price { font-size: 13px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); margin: 0 0 10px; }
.fd-parts { margin: 0 0 10px; }
.fd-part-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fd-part { padding: 6px 14px; border: 1.5px solid #d2d2d7; border-radius: 999px; background: #fff; color: var(--ff-text, #1d1d1f); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fd-part.active { border-color: var(--ff-blue); background: var(--ff-blue-glow, rgba(0,113,227,.10)); color: var(--ff-blue); }
.fd-part:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.fd-fixed { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13px; color: var(--ff-text-secondary, #6e6e73); }
.fd-black { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d2d2d7; box-sizing: border-box; flex: none; }
.fd-colors .fd-note { margin: 10px 0 0; }
.preset-thumb.fd-thumb { display: block; background: radial-gradient(circle at 50% 50%, var(--fd, #7fdc3a) 0 18%, transparent 19%), repeating-linear-gradient(90deg, #1d1d1f 0 9px, var(--fd, #7fdc3a) 9px 10px, #1d1d1f 10px 19px); }
@media (max-width: 900px) and (orientation: portrait) {
  .fd-price, .fd-fixed { font-size: 13px; }
  .fd-black { width: 32px; height: 32px; }
}

.sum-promo { margin: 0 0 8px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; background: rgba(200, 32, 32, .10); border: 1px solid rgba(200, 32, 32, .45); color: inherit; }
.sum-promo b { color: #c82020; }
.summary .line .was { margin-left: auto; color: #8a8f96; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary .line.on-sale .amt { color: #c82020; font-weight: 600; }
.sum-save { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #c82020; text-align: right; }

.preset-cost .was { color: #8a8f96; font-weight: 400; margin-right: 2px; }

.deal-cards.collapsed { display: none; }
.deal-row .deal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; margin-top: 10px; }
.deal-row .deal-cards.collapsed { display: none; }
.deal-row .deal-card2[hidden] { display: none; }
.deal-filters { margin-top: 10px; }
.deal-filters[hidden] { display: none; }
.deal-tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: #fff; border: 1px solid #f0d6d6; border-radius: 11px; }
.deal-tab { flex: 1 1 auto; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ff-text-secondary, #6e6e73); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.deal-tab:hover { color: var(--ff-text, #1d1d1f); }
.deal-tab.active { background: #b01818; color: #fff; }
.deal-tab-n { font-weight: 500; opacity: .75; }
.deal-tab:focus-visible, .deal-fin:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.deal-fins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.deal-fin { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border: 1.5px solid #e3e4e8; border-radius: 999px; background: #fff; color: var(--ff-text, #1d1d1f); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.deal-fin:hover { border-color: #b6b8bf; }
.deal-fin.active { border-color: var(--ff-text, #1d1d1f); box-shadow: 0 0 0 1px var(--ff-text, #1d1d1f); }
.deal-fin-sw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.deal-fin-sw.all { background: conic-gradient(#2b2b2e 0 33%, #c9ccd1 0 66%, #a37a4c 0); }
.deal-none { margin: 10px 0 0; font-size: 13px; color: var(--ff-text-secondary, #6e6e73); }
.deal-row { padding: 12px 14px; }
.deal-row h2 { margin-bottom: 2px; }
.deal-other { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.deal-other[hidden] { display: none; }
.deal-other-link { padding: 7px 12px; border-radius: 999px; border: 1px solid #f3d2d2; background: #fff; color: #b01818; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.deal-other-link:hover { border-color: #b01818; }
.deal-other-link:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.deal-on-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.deal-on-tag { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: #b01818; }
.deal-on .deal-on-top .deal-leave { margin: 0; padding: 8px 14px; border: 1px solid var(--ff-blue); background: #fff; color: var(--ff-blue); font-size: 13px; }
.deal-on .deal-on-top .deal-leave:hover { background: var(--ff-blue); color: #fff; }
.deal-more-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.deal-more-row[hidden] { display: none; }
.deal-more, .deal-own { padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.deal-more { border: 1px solid #b01818; background: #fff; color: #b01818; }
.deal-more[hidden], .deal-own[hidden] { display: none; }
.deal-own { border: 1px solid #d2d2d7; background: #fff; color: var(--ff-text, #1d1d1f); }
.deal-more:hover { background: #b01818; color: #fff; }
.deal-own:hover { border-color: var(--ff-text, #1d1d1f); }
.deal-more:focus-visible, .deal-own:focus-visible, .deal-std-btn:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.deal-std { display: none; }
body.ff-deal .deal-std { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #e3e4e8; border-radius: 12px; background: #fafafb; font-size: 13px; line-height: 1.45; }
.deal-std-btn { padding: 7px 14px; border: 1px solid var(--ff-blue); border-radius: 999px; background: #fff; color: var(--ff-blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.deal-std-btn:hover { background: var(--ff-blue); color: #fff; }

.cfg-price.cfg-sale { color: #c82020; }
.cfg-was { color: #8a8f96; font-weight: 500; }

#zoneGroups .fin-tabs { margin-top: 10px; }
#zoneGroups .zg-coat { display: none; margin-top: 4px; }
#zoneGroups[data-fin-tab="1"] .zg-coat[data-zg-grp="1"], #zoneGroups[data-fin-tab="2"] .zg-coat[data-zg-grp="2"] { display: block; }
#zoneGroups[data-fin-tab="1"] > .swatches, #zoneGroups[data-fin-tab="2"] > .swatches { display: none; }
#zoneGroups .coat-chip:disabled { opacity: .45; cursor: not-allowed; }

.coat-screen { margin: -4px 0 10px; padding: 7px 10px; border-radius: 8px; background: #f5f5f7; font-size: 12px; line-height: 1.45; color: var(--ff-text-secondary, #6e6e73); }
.coat-info { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border: 1px solid #e3e4e8; border-radius: 12px; background: #fff; }
.coat-info[hidden] { display: none; }
.coat-info-pic { flex: 0 0 72px; height: 72px; display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: #f5f5f7; }
.coat-info-pic img { width: 100%; height: 100%; object-fit: cover; }
.coat-info-pic .coat-sw { width: 60px; height: 60px; }
.coat-info-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.4; }
.coat-info-txt b { font-size: 13.5px; }
.coat-info-txt span { color: var(--ff-text-secondary, #6e6e73); }
.coat-info-txt a { color: var(--ff-blue); font-weight: 600; text-decoration: none; }
.coat-info-txt a:hover { text-decoration: underline; }
.rv-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #f5f5f7; font-size: 14px; }
.rv-total b { font-size: 20px; }
.rv-save { color: #c82020; font-weight: 600; }
.rv-terms { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.rv-terms li { margin: 4px 0; }
.rv-terms li[hidden] { display: none; }

.coat-info { align-items: flex-start; }
.coat-info-pic.has-photo { flex-basis: 132px; height: 100px; background: #fff; }
.coat-info-pic.has-photo img { object-fit: contain; }
.coat-info-thumbs { display: flex; gap: 6px; margin: 6px 0 2px; }
.coat-thumb { width: 40px; height: 40px; padding: 0; border: 1.5px solid #e3e4e8; border-radius: 6px; background: #fff; overflow: hidden; cursor: pointer; }
.coat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coat-thumb.on { border-color: var(--ff-blue); }
.coat-thumb:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.coat-credit { font-size: 11px; }
@media (max-width: 480px) { .coat-info-pic.has-photo { flex-basis: 104px; height: 84px; } }

.gh-panel .coat-grid { margin-top: 4px; }
.gh-panel .coat-screen { margin-top: 10px; }
.gh-haze { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border: 1px dashed #c9ccd1; border-radius: 8px; font-size: 12px; }
.gh-haze input { flex: 1; }

.zg-chips .cover-chip { white-space: normal; text-align: center; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }

.gh-coat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.gh-coat-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ff-text-primary, #1d1d1f); }
.gh-coat-head .gh-picked { font-size: 14px; font-weight: 600; color: var(--ff-text-secondary, #55565c); }
.gh-coat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .gh-coat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gh-coat-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 6px 8px; border: 1.5px solid #dcdde2; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; text-align: center; transition: border-color .15s ease, box-shadow .15s ease; }
.gh-coat-card:hover { border-color: #9aa0a8; }
.gh-coat-card.active { border-color: var(--ff-text-primary, #1d1d1f); box-shadow: 0 0 0 1.5px var(--ff-text-primary, #1d1d1f); }
.gh-coat-card:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.gh-coat-pic { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; background: #f2f2f4 center / cover no-repeat; overflow: hidden; }
.gh-coat-sw { display: grid; place-items: stretch; }
.gh-coat-sw .coat-sw { width: 100%; height: 100%; border-radius: 8px; }
.gh-coat-name { font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--ff-text-primary, #1d1d1f); }
.gh-coat-on { position: absolute; top: 10px; left: 10px; padding: 2px 7px; border-radius: 999px; background: var(--ff-text-primary, #1d1d1f); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }

.gh-panel .gh-tabs { margin: 0 0 10px; }
.gh-panel .gh-tabs[hidden] { display: none; }
.gh-panel .gh-info { margin-top: 12px; }
.gh-coat-grid { max-height: 460px; overflow-y: auto; padding: 2px; }

.design-pick .preset-base { display: block; font-size: 11.5px; line-height: 1.3; color: var(--ff-text-secondary, #6e6e73); }

.ai-bases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ai-bases-lbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ff-text-secondary, #6e6e73); margin-right: 2px; }
.ai-base { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px 0 8px; border: 1.5px solid #dcdde2; border-radius: 999px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ff-text-primary, #1d1d1f); cursor: pointer; }
.ai-base:hover { border-color: #9aa0a8; }
.ai-base.active { border-color: var(--ff-text-primary, #1d1d1f); box-shadow: 0 0 0 1px var(--ff-text-primary, #1d1d1f); }
.ai-base:focus-visible { outline: 2px solid var(--ff-blue); outline-offset: 2px; }
.ai-base-sw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }

.ai-vary { margin-top: 10px; padding: 9px 12px; border-left: 3px solid #c58a2a; border-radius: 8px; background: #fbf6ec; font-size: 13px; line-height: 1.45; color: var(--ff-text-primary, #1d1d1f); }

.coat-info-txt .coat-verified { color: #1f7a3a; font-weight: 600; }
.coat-info-txt .coat-unverified { color: #8a5a00; }

.coat-info-pic.has-photo { cursor: zoom-in; position: relative; }
.coat-info-pic.has-photo::after { content: "\2922"; position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 20px; text-align: center; pointer-events: none; }
.coat-lb { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(12,12,14,.86); padding: 24px; }
.coat-lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(92vw, 900px); }
.coat-lb-fig img { max-width: 100%; max-height: 78vh; border-radius: 10px; background: #fff; object-fit: contain; }
.coat-lb-fig figcaption { color: #f2f2f4; font-size: 14px; }
.coat-lb-x { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; }
.coat-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 40px; cursor: pointer; }
.coat-lb-nav.prev { left: 12px; } .coat-lb-nav.next { right: 12px; }
.coat-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sale-px { white-space: nowrap; }
.sale-now { color: #c82020; font-weight: 600; }
.sale-px .cfg-was { color: #8a8f96; font-weight: 400; }
.sale-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sale-cue { display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: 3px; background: #c82020; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; letter-spacing: .02em; text-transform: none; vertical-align: 1px; white-space: nowrap; }
.pat-tile .pat-cost .sale-px { white-space: normal; }
#splatterOn .sale-now { color: #ff8f8f; }
#splatterOn .sale-px .cfg-was { color: #b9bdc3; }
.seg button.active .sale-now, .seg button.active .sale-px .cfg-was { color: inherit; }
.seg button.active .sale-px .cfg-was { opacity: .7; }
.seg button.active .sale-cue { background: #fff; color: #c82020; }
