:root {
  color-scheme: light;
  --ink: #262b2f;
  --muted: #68727a;
  --paper: #f7f8f8;
  --surface: #fff;
  --soft: #edf0f1;
  --line: #d9dfe2;
  --accent: #5e7b8d;
  --success: #245b48;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 13px/1.45 Arial, Helvetica, sans-serif; }
button, input, textarea { font: inherit; }
button, a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Arial, Helvetica, sans-serif; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; z-index: 20; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 9px 13px; overflow: visible; clip: auto; color: #fff; background: var(--ink); }

.commerce-site-header { max-width: 1240px; min-height: 58px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font: 700 24px/1 Georgia, "Times New Roman", serif; letter-spacing: .04em; text-decoration: none; }
.header-section-link { color: var(--muted); font-size: 12px; font-weight: 700; }
.commerce-utilities2 { justify-self: end; display: flex; align-items: center; gap: 8px; }
.commerce-utility2 { min-width: 54px; height: 38px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--ink); border: 0; background: transparent; text-decoration: none; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.commerce-utility2 svg { width: 20px; height: 20px; flex: 0 0 auto; }
.commerce-utility-count2 { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; color: #fff; border-radius: 999px; background: var(--ink); font-size: 9px; }

.page-heading { max-width: 1180px; margin: 0 auto; padding: 22px 24px 16px; display: grid; grid-template-columns: minmax(240px, .75fr) minmax(300px, 1.25fr); align-items: end; gap: 28px; }
.eyebrow { margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-size: clamp(25px, 2.4vw, 30px); line-height: 1.08; }
.page-heading-copy { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; }

.pod-studio { max-width: 1180px; margin: 0 auto 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 390px); align-items: start; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(34, 44, 50, .07); }
.preview-panel { min-width: 0; padding: 20px; align-self: start; background: #e9edef; }
.preview-heading { min-height: 42px; margin-bottom: 10px; display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: end; gap: 4px 16px; }
.preview-heading > div { min-width: 0; }
.preview-heading span { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.preview-heading h2 { margin: 2px 0 0; max-width: 28ch; font-size: 17px; line-height: 1.2; text-wrap: balance; }
.preview-heading p { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.preview-stage { position: relative; height: clamp(390px, 50vh, 500px); overflow: hidden; background: #dfe4e6; }
.preview-stage > img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: filter .18s ease; }
.reference-note { position: absolute; right: 10px; bottom: 10px; padding: 5px 7px; color: var(--muted); background: rgba(255,255,255,.88); font-size: 9px; }

.brand-preview { position: absolute; z-index: 2; left: 50%; top: 50%; min-width: 100px; padding: 7px 10px; color: rgba(38,43,47,.5); border: 1px dashed rgba(38,43,47,.4); background: rgba(255,255,255,.85); transform: translate(-50%, -50%); cursor: grab; touch-action: none; user-select: none; text-align: center; font: 700 11px/1 Arial, Helvetica, sans-serif; }
.brand-preview.is-dragging { cursor: grabbing; box-shadow: 0 8px 22px rgba(32,39,44,.18); }
.brand-preview.has-brand { color: #947128; border-style: solid; border-color: rgba(148,113,40,.55); }
.brand-preview.has-logo-image { min-width: 0; padding: 5px; }
.brand-preview-image { width: auto; max-width: 170px; height: auto; max-height: 84px; object-fit: contain; pointer-events: none; }
.resize-handle { position: absolute; z-index: 3; width: 12px; height: 12px; border: 1px solid var(--accent); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(32,39,44,.2); }
.resize-handle--nw { left: -7px; top: -7px; cursor: nwse-resize; }
.resize-handle--ne { right: -7px; top: -7px; cursor: nesw-resize; }
.resize-handle--sw { left: -7px; bottom: -7px; cursor: nesw-resize; }
.resize-handle--se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.rotation-handle { position: absolute; z-index: 4; left: 50%; top: -34px; width: 15px; height: 15px; border: 1px solid var(--accent); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(32,39,44,.2); cursor: grab; transform: translateX(-50%); }
.rotation-handle::after { content: ""; position: absolute; left: 50%; top: 14px; width: 1px; height: 18px; background: var(--accent); transform: translateX(-50%); }
.brand-preview.is-rotating .rotation-handle { cursor: grabbing; }

.logo-tools { min-height: 38px; padding: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "hint hint" "status actions"; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 9px; }
.logo-interaction-hint { grid-area: hint; color: var(--accent); font-weight: 700; line-height: 1.45; }
#logoPositionOutput { grid-area: status; min-width: 0; line-height: 1.45; }
.logo-tool-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.logo-tools button { padding: 4px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; color: var(--ink); font-size: 10px; font-weight: 700; }
.logo-tools button:disabled { opacity: .38; cursor: default; }
.reference-strip { margin-top: 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.reference-thumb { min-width: 0; aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid transparent; background: #fff; cursor: pointer; }
.reference-thumb[aria-current="true"] { border-color: var(--ink); }
.reference-thumb img { width: 100%; height: 100%; object-fit: cover; }

.customizer { position: static; min-width: 0; height: auto; overflow: visible; align-self: start; background: var(--surface); border-left: 1px solid var(--line); }
.sidebar-scroll { height: auto; overflow: visible; }
.configuration-panel { min-width: 0; padding: 18px 20px 8px; }
.customizer-heading { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.customizer-heading h2 { margin-bottom: 3px; font-size: 18px; line-height: 1.15; }
.customizer-heading > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.selected-product-summary { margin-top: 10px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: var(--soft); }
.selected-product-summary[hidden] { display: none; }
.selected-product-summary div { min-width: 0; display: grid; gap: 2px; }
.selected-product-summary span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.selected-product-summary strong { font-size: 10px; line-height: 1.25; }
.selected-product-summary a { flex: none; color: var(--ink); font-size: 9px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.control-section { margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); }
.control-section legend { width: 100%; margin-bottom: 10px; padding: 0; font-size: 11px; font-weight: 700; }
.control-section legend span { width: 18px; height: 18px; margin-right: 6px; display: inline-grid; place-items: center; color: #fff; border-radius: 50%; background: var(--ink); font-size: 8px; }
.choice-grid { display: grid; gap: 7px; }
.choice-button { width: 100%; min-height: 36px; padding: 7px 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.choice-button:hover, .process-button:hover { border-color: var(--accent); }
.choice-button[aria-pressed="true"], .process-button[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-name { font-size: 10px; font-weight: 700; }
.choice-size { color: var(--muted); font-size: 9px; }
.variant-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.process-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.process-button { min-height: 54px; padding: 8px; display: grid; align-content: center; gap: 2px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.process-button strong { font-size: 11px; }
.process-button span { color: var(--muted); font-size: 9px; line-height: 1.3; }
.section-help { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.field { margin-bottom: 8px; display: grid; gap: 4px; }
.field > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: #fff; font-size: 11px; }
.field textarea { min-height: 52px; resize: vertical; }
.logo-size-field { margin: 8px 0; display: grid; gap: 5px; }
.logo-size-field > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.logo-size-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 7px; }
.logo-size-inputs label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; }
.logo-size-inputs input { width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid var(--line); color: var(--ink); background: #fff; font: inherit; }
.logo-size-inputs b { padding-bottom: 9px; font-size: 11px; }
.logo-size-field small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.upload-field { min-height: 46px; padding: 8px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; border: 1px dashed var(--accent); cursor: pointer; }
.upload-field input { width: 0; height: 0; opacity: 0; }
.upload-title { grid-column: 2; font-size: 11px; font-weight: 700; }
.upload-field #artworkName { grid-column: 2; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.artwork-status, .privacy-note { margin: 6px 0 0; color: var(--muted); font-size: 9px; }
.artwork-status { color: var(--accent); }
.artwork-status[data-state="uploaded"] { color: #2e6a45; }
.artwork-status[data-state="failed"] { color: #9b3535; }

.order-details { padding-bottom: 12px; border-bottom: 0; }
.pod-action-panel { margin: 22px 14px 14px; padding: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 7px; border-top: 1px solid var(--ink); background: var(--surface); }
.pod-action-panel > div { grid-column: 1 / -1; display: grid; gap: 3px; }
.pod-action-panel span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pod-action-panel strong { font-size: 15px; }
.pod-action-panel small { color: var(--muted); font-size: 9px; }
.pod-action-panel button, .pod-action-panel a { min-height: 36px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--ink); font-size: 9px; font-weight: 700; text-decoration: none; text-align: center; }
.pod-action-panel button { color: #fff; background: var(--ink); cursor: pointer; }
.pod-action-panel button:disabled { color: #8d959a; border-color: var(--line); background: var(--soft); cursor: not-allowed; }
.pod-action-panel a { background: #fff; }
.pod-action-panel p { grid-column: 1 / -1; min-height: 18px; margin: 0; color: var(--success); font-size: 10px; font-weight: 700; }

footer { max-width: 1240px; min-height: 104px; margin: 0 auto; padding: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); }
footer p, footer > a:last-child { margin: 0; color: var(--muted); font-size: 11px; }
footer > a:last-child { justify-self: end; color: var(--ink); }
.pod-footer-links { justify-self: end; display: flex; align-items: center; gap: 14px; font-size: 11px; }
.pod-footer-links a { color: var(--ink); }

@media (max-width: 900px) {
  .page-heading { grid-template-columns: 1fr; gap: 12px; }
  .pod-studio { margin-inline: 20px; }
}

@media (max-width: 700px) {
  .commerce-site-header { min-height: 54px; padding: 0 14px; grid-template-columns: 1fr auto; }
  .header-section-link { display: none; }
  .commerce-utilities2 { gap: 2px; }
  .commerce-utility2 { min-width: 38px; padding: 0 3px; }
  .commerce-utility-label2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wordmark { font-size: 21px; }
  .page-heading { padding: 18px 14px 13px; gap: 6px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading-copy { font-size: 10px; }
  .pod-studio { margin: 0 0 36px; grid-template-columns: minmax(0, 1fr) minmax(205px, 46%); border-inline: 0; box-shadow: none; }
  .preview-panel { padding: 10px; }
  .preview-heading { min-height: 38px; margin-bottom: 7px; grid-template-columns: 1fr; gap: 3px; }
  .preview-heading h2 { font-size: 13px; }
  .preview-heading p { margin: 0; font-size: 9px; }
  .preview-stage { height: min(340px, 72vw); }
  .logo-tools { grid-template-columns: 1fr; grid-template-areas: "hint" "status" "actions"; gap: 5px; }
  .logo-tool-actions { justify-content: flex-start; }
  .reference-strip { grid-template-columns: repeat(3, 1fr); }
  .reference-thumb:nth-child(n+4) { display: none; }
  .configuration-panel { padding: 12px 10px 6px; }
  .customizer-heading h2 { font-size: 16px; }
  .customizer { position: static; width: 100%; height: auto; border-top: 0; border-left: 1px solid var(--line); }
  .sidebar-scroll { overflow: visible; }
  .process-choice-grid { grid-template-columns: 1fr; }
  .pod-action-panel { margin: 20px 10px 10px; padding: 12px 0 0; }
  .pod-action-panel button, .pod-action-panel a { min-height: 32px; padding-inline: 5px; font-size: 8px; }
  footer { padding: 24px 18px; grid-template-columns: 1fr; gap: 15px; }
  footer > a:last-child { justify-self: start; }
  .pod-footer-links { justify-self: start; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .pod-studio { grid-template-columns: 1fr; }
  .customizer { border-top: 1px solid var(--line); border-left: 0; }
}

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