@font-face{
  font-family:"Inter";
  src:url("./assets/fonts/inter-latin.woff2") format("woff2");
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
}
:root {
  --font-sans:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --bg: #08090b;
  --panel: #101216;
  --panel-2: #15181e;
  --line: #272b33;
  --muted: #939aa7;
  --text: #f5f7fa;
  --red: #ee2034;
  --red-2: #ff3b4e;
  --topbar-height:64px;
  --workflow-nav-height:66px;
}
* { box-sizing: border-box; }
html, body { margin:0; min-height:100%; background:var(--bg); color:var(--text); font-family:var(--font-sans); }
body { overflow:hidden; font-synthesis:none; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
button, textarea, input, select { font: inherit; }
button { color: inherit; }
h1,h2,h3{font-weight:800;letter-spacing:-.03em}
.topbar { height:var(--topbar-height); display:flex; align-items:center; justify-content:space-between; padding:0 26px; border-bottom:1px solid #20232a; background:#0c0e11; }
.brand { display:flex; align-items:center; gap:11px; color:inherit; font-weight:900; letter-spacing:.08em; font-size:14px; text-decoration:none; cursor:pointer; }
.brand:focus-visible{outline:2px solid var(--red);outline-offset:5px;border-radius:4px}
.brand-mark { width:31px; height:31px; border-radius:8px; display:grid; place-items:center; background:var(--red); font-size:19px; font-style:italic; }
.brand-logo{display:block;width:auto;height:46px;max-width:190px;object-fit:contain;object-position:left center}
.prototype-pill { border:1px solid #333844; color:#aeb5c2; padding:7px 10px; border-radius:999px; font-size:10px; letter-spacing:.12em; font-weight:800; }
.workspace { height:calc(100vh - var(--topbar-height));height:calc(100dvh - var(--topbar-height)); display:grid; grid-template-columns: 460px 1fr; }
.controls-panel { overflow:auto; padding:30px 28px 50px; background:#0c0e11; border-right:1px solid #20232a; scrollbar-width:auto; scrollbar-color:#ff3348 #1b1f26; }
.controls-panel::-webkit-scrollbar { width:20px; }
.controls-panel::-webkit-scrollbar-track { background:#1b1f26; border-left:1px solid #3a414c; }
.controls-panel::-webkit-scrollbar-thumb { min-height:90px; background:linear-gradient(180deg,#ff6674 0%,#ff3348 48%,#cf132b 100%); border:3px solid #1b1f26; border-radius:999px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.32),0 0 10px rgba(255,51,72,.5); }
.controls-panel::-webkit-scrollbar-thumb:hover { background:linear-gradient(180deg,#ff7a86,#ff3b50 48%,#e11932); }
.eyebrow { color:var(--red-2); font-size:11px; font-weight:900; letter-spacing:.16em; margin-bottom:10px; }
h1 { margin:0; line-height:.94; font-size:44px; letter-spacing:-.03em; }
h1 span { color:#6f7580; }
.intro { color:#a2a9b5; line-height:1.55; font-size:14px; margin:18px 0 26px; max-width:385px; }
.step-card { border-top:1px solid #252931; padding:22px 0; }
.step-heading { display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; }
.step-heading strong { display:block; font-size:14px; }
.step-heading small { display:block; color:#747c89; margin-top:3px; font-size:11px; }
.upload-zone { display:block; min-height:100px; border:1px dashed #3a414b; border-radius:13px; background:#12151a; padding:16px; cursor:pointer; transition:.2s; }
.upload-zone:hover, .upload-zone.drag, .upload-zone.dragging { border-color:#e13444; background:#171317; }
#uploadEmpty { min-height:67px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#8e96a3; font-size:12px; }
#uploadEmpty b { color:#f1f3f6; }
.upload-empty { min-height:67px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#8e96a3; font-size:12px; text-align:center; }
.upload-empty b { color:#f1f3f6; }
.upload-empty small { color:#626b79; font-size:10px; }
.upload-icon { color:#ff5060; font-size:22px; line-height:1; }
.upload-preview { display:grid; grid-template-columns:58px minmax(0,1fr); align-items:center; gap:12px; }
.upload-preview img { width:58px; height:58px; object-fit:contain; border-radius:9px; background:white; padding:5px; }
.upload-preview>div { min-width:0; display:grid; gap:5px; }
.upload-preview span { display:block; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.upload-preview small { color:#778293; font-size:10px; }
.hidden { display:none !important; }
.text-button { border:0; background:none; color:#ff5a69; cursor:pointer; font-size:11px; }
textarea { width:100%; resize:vertical; min-height:108px; color:#eef1f6; background:#12151a; border:1px solid #30353f; border-radius:12px; padding:13px 14px; outline:none; font-size:13px; line-height:1.5; }
textarea:focus { border-color:#6b343c; box-shadow:0 0 0 3px rgba(238,32,52,.08); }
.chips { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0 13px; }
.chips button, .toolbar-actions button { border:1px solid #30353d; background:#15181d; border-radius:999px; padding:7px 10px; font-size:10px; cursor:pointer; color:#aab1bc; }
.chips button:hover, .toolbar-actions button:hover { border-color:#545b67; color:white; }
.generate-button { width:100%; border:0; background:linear-gradient(135deg,#e91d31,#ff3f4f); border-radius:11px; padding:13px 15px; font-weight:900; font-size:13px; cursor:pointer; box-shadow:0 10px 30px rgba(238,32,52,.18); }
.generate-button:active { transform:translateY(1px); }
.generate-button span { margin-right:6px; }
.prototype-note { color:#656d79; font-size:10px; line-height:1.45; margin-top:9px; }
.graphics-text-controls{display:grid;gap:12px}
.graphics-field{display:grid;gap:7px;color:#8d97a8;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.graphics-field input,.graphics-field select{width:100%;min-width:0;height:44px;border:1px solid #343b47;border-radius:10px;background:#12161b;color:#f5f7fa;padding:0 12px;outline:none}
.graphics-field input:focus,.graphics-field select:focus{border-color:#ff4558;box-shadow:0 0 0 3px rgba(255,51,71,.10)}
.graphics-field>input[type="text"],.text-font-select{font-size:18px;font-weight:750;text-transform:none}
.text-font-select{cursor:pointer}
.text-font-select option{background:#fff;color:#17202b;padding:9px 10px;font-size:14px}
.graphics-color-control{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px}
.graphics-color-control input[type="color"]{padding:4px;cursor:pointer;background:#0c0f13}
.graphics-color-control input[type="text"]{font:800 16px ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase}
.outline-width-control{display:grid;grid-template-columns:minmax(0,1fr) 54px;align-items:center;gap:10px;min-height:44px}
.outline-width-control input[type="range"]{width:100%;height:6px;padding:0;border:0;border-radius:999px;background:#252b33;box-shadow:none;accent-color:#ff3347;cursor:pointer}
.outline-width-control input[type="range"]:focus{box-shadow:0 0 0 3px rgba(255,51,71,.12)}
.outline-width-control output{display:grid;place-items:center;height:32px;border:1px solid #343b47;border-radius:8px;background:#12161b;color:#fff;font:800 12px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:0;text-transform:none}
.text-accordion{display:grid;gap:10px}
.text-accordion-item{overflow:hidden;border:1px solid #303742;border-radius:12px;background:#101419}
.text-accordion-item.active{border-color:#4a5361;box-shadow:0 0 0 1px rgba(255,255,255,.025)}
.text-accordion-header{width:100%;min-height:58px;border:0;background:#151a20;color:#fff;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 13px;text-align:left;cursor:pointer}
.text-accordion-header:hover{background:#1a2027}
.text-accordion-header strong{font-size:14px;white-space:nowrap}
.text-accordion-preview{overflow:hidden;color:#8995a8;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.text-accordion-chevron{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#242b34;color:#cbd3df;font-size:16px}
.logo-accordion-header{display:grid;grid-template-columns:minmax(0,1fr) 38px 38px 38px;align-items:stretch;background:#151a20}
.logo-accordion-toggle{min-width:0;min-height:58px;border:0;background:transparent;color:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 8px 11px 13px;text-align:left;cursor:pointer}
.logo-accordion-toggle:hover,.logo-duplicate-button:hover,.logo-name-edit-button:hover,.logo-delete-button:hover{background:#1a2027}
.logo-accordion-toggle strong{overflow:hidden;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.text-accordion-label{min-width:0;display:flex;align-items:baseline;gap:9px;overflow:hidden}
.text-accordion-label strong{flex:none}
.text-accordion-label .text-accordion-preview{min-width:0}
.logo-duplicate-button,.logo-name-edit-button,.logo-delete-button{display:grid;place-items:center;border:0;border-left:1px solid #2b323c;background:transparent;color:#aab5c5;cursor:pointer}
.logo-duplicate-button svg,.logo-name-edit-button svg,.logo-delete-button svg{width:17px;height:17px;fill:currentColor}
.logo-delete-button:hover{color:#ff6677}
.logo-duplicate-button:focus-visible,.logo-name-edit-button:focus-visible,.logo-delete-button:focus-visible,.logo-accordion-toggle:focus-visible{position:relative;z-index:1;outline:2px solid #ff4054;outline-offset:-3px}
.logo-duplicate-button:disabled,.logo-name-edit-button:disabled{opacity:.45;cursor:default}
.logo-duplicate-button:disabled:hover{background:transparent}
.logo-name-input{min-width:0;width:100%;height:38px;margin:10px 8px 10px 12px;padding:0 10px;border:1px solid #ff4054;border-radius:8px;background:#101419;color:#fff;font:750 15px/1 var(--font-sans);outline:none;box-shadow:0 0 0 3px rgba(255,64,84,.1)}
.text-accordion-body{display:grid;gap:14px;padding:14px;border-top:1px solid #2b323c}
.add-text-button{width:100%;margin-top:12px;border-radius:10px;padding:11px 13px;font-size:12px;font-weight:850;cursor:pointer}
.add-text-button{border:1px dashed #4b5564;background:#151a20;color:#fff}
.add-text-button:hover:not(:disabled){border-color:#ff4558;background:#1b171c}
.add-text-button:disabled{cursor:not-allowed;color:#687384;opacity:.7}
.graphics-text-note{margin:10px 2px 0;color:#697487;font-size:10px;line-height:1.45}
.text-side-dialog{width:min(430px,calc(100vw - 32px));padding:0;border:1px solid #3b4451;border-radius:16px;background:#101419;color:#fff;box-shadow:0 28px 90px rgba(0,0,0,.62)}
.text-side-dialog::backdrop{background:rgba(2,4,7,.72);backdrop-filter:blur(5px)}
.text-side-dialog-card{position:relative;padding:24px}
.text-side-dialog-card h2{margin:6px 34px 8px 0;font-size:24px;line-height:1.08}
.text-side-dialog-card>p{margin:0 0 18px;color:#929daf;font-size:12px;line-height:1.5}
.text-side-dialog-close{position:absolute;top:14px;right:14px;width:30px;height:30px;border:1px solid #3c4552;border-radius:9px;background:#1a2027;color:#d5dbe5;font-size:20px;line-height:1;cursor:pointer}
.text-side-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.text-side-options button{display:grid;gap:5px;min-height:92px;padding:16px;border:1px solid #3a4350;border-radius:12px;background:#151a20;color:#fff;text-align:left;cursor:pointer}
.text-side-options button:hover,.text-side-options button:focus-visible{border-color:#ff4558;background:#21171c;outline:none;box-shadow:0 0 0 3px rgba(255,51,71,.1)}
.text-side-options strong{font-size:17px}.text-side-options span{color:#8995a8;font-size:11px;line-height:1.35}
.text-side-cancel{width:100%;margin-top:12px;border:0;background:transparent;color:#8d98aa;padding:9px;cursor:pointer}
.design-mode-fieldset{margin:0;padding:0;border:0}
.design-mode-fieldset legend{margin:0 0 10px;color:#8e9ab0;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.design-mode-options{display:grid;gap:10px}
.design-mode-option{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:11px;align-items:center;padding:15px;border:1px solid #303742;border-radius:12px;background:#12161b;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s}
.design-mode-option:hover{border-color:#4a5362;background:#151a20}
.design-mode-option:has(input:checked){border-color:#ff3347;background:#1b1418;box-shadow:0 0 0 2px rgba(255,51,71,.12)}
.design-mode-option input{position:absolute;opacity:0;pointer-events:none}
.design-mode-control{width:19px;height:19px;border:2px solid #596273;border-radius:50%;display:grid;place-items:center}
.design-mode-control::after{content:"";width:9px;height:9px;border-radius:50%;background:#ff3347;transform:scale(0);transition:transform .15s}
.design-mode-option input:checked+.design-mode-control{border-color:#ff5364}
.design-mode-option input:checked+.design-mode-control::after{transform:scale(1)}
.design-mode-option input:focus-visible+.design-mode-control{outline:3px solid rgba(97,153,255,.45);outline-offset:3px}
.design-mode-option strong{display:block;color:#fff;font-size:15px}
.design-mode-expert{margin-left:.45em;color:#ff4054;font-weight:400}
.start-path-panel{margin-top:20px;padding-top:20px;border-top:1px solid #292f38}
.start-path-title{margin:0 0 8px;color:#fff;font-size:19px}
.blank-design-panel>.eyebrow{margin-bottom:8px}
.blank-panel-color-list{display:grid;margin-top:20px;border-top:1px solid #252c34}
.blank-panel-color-row{display:grid;grid-template-columns:minmax(0,1fr) 42px 88px;gap:10px;align-items:center;min-height:62px;border-bottom:1px solid #252c34}
.blank-panel-color-row label{color:#fff;font-size:14px;font-weight:750}
.blank-panel-color-row input[type="color"]{width:42px;height:38px;padding:4px;border:1px solid #46515f;border-radius:9px;background:#151a20;cursor:pointer}
.blank-panel-color-row input[type="text"]{min-width:0;width:100%;height:38px;padding:0 10px;border:1px solid #3c4653;border-radius:9px;background:#11161c;color:#eef3fb;font:700 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase}
.blank-panel-color-row input[type="text"]:focus{border-color:#ff4054;outline:none;box-shadow:0 0 0 3px rgba(255,64,84,.1)}
.pdf-upload-zone{margin-top:14px}
.pdf-design-preview{grid-template-columns:58px minmax(0,1fr) auto}
.pdf-design-preview img{object-fit:cover}
.pdf-design-preview .text-button{align-self:center}
.pdf-design-status{min-height:18px;margin:9px 2px 0;color:#9aa5b7;font-size:11px;line-height:1.4}
.pdf-design-status.busy{color:#d5dbe5}
.pdf-design-status.success{color:#5ce092}
.pdf-design-status.error{color:#ff8492}
.concept-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.concept-card { position:relative; aspect-ratio:1.08; border-radius:10px; border:1px solid #292e36; overflow:hidden; background:#060708; cursor:pointer; padding:0; }
.concept-card img { width:100%; height:100%; object-fit:cover; display:block; }
.concept-card .concept-caption { position:absolute; left:0; right:0; bottom:0; padding:22px 9px 8px; background:linear-gradient(transparent,rgba(0,0,0,.82)); text-align:left; font-size:10px; font-weight:800; }
.concept-card.selected { border-color:#ff4454; box-shadow:0 0 0 2px rgba(238,32,52,.25); }
.concept-card.selected::after { content:"✓"; position:absolute; top:7px; right:7px; width:21px; height:21px; border-radius:50%; display:grid; place-items:center; background:#e92034; font-weight:900; font-size:11px; }
.viewer-panel { min-width:0; position:relative; display:grid; grid-template-rows:auto 1fr auto; background:radial-gradient(circle at 50% 42%, #20242a 0, #13161a 42%, #0d0f12 80%); }
.viewer-toolbar { min-height:70px; display:flex; justify-content:space-between; align-items:center; padding:0 24px; border-bottom:1px solid rgba(255,255,255,.06); }
.viewer-title { font-size:11px; font-weight:900; letter-spacing:.13em; }
.viewer-subtitle { color:#747c87; font-size:11px; margin-top:4px; }
.toolbar-actions { display:flex; gap:7px; }
.viewer { position:relative; min-height:0; overflow:hidden; }
.viewer canvas { display:block; width:100%; height:100%; }
.loading-state { position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; color:#e7eaf0; pointer-events:none; }
.loading-state span { color:#707783; font-size:11px; }
.spinner { width:31px; height:31px; border:3px solid #30353d; border-top-color:#e92a3d; border-radius:50%; animation:spin .8s linear infinite; margin-bottom:6px; }
.loading-progress{width:min(280px,62%);height:7px;margin-top:7px;overflow:hidden;border:1px solid #343b46;border-radius:999px;background:#181c22}
.loading-progress-bar{width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e9243a,#ff5364);box-shadow:0 0 14px rgba(255,51,71,.38);transition:width .16s ease-out}
.loading-progress-text{color:#aab2bf;font:700 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace}
.retry-viewer-button{display:block;margin-top:14px;border:1px solid rgba(255,255,255,.2);border-radius:9px;background:#ff3347;color:#fff;padding:9px 15px;font:800 12px/1 var(--font-sans);cursor:pointer}
.retry-viewer-button:hover{background:#ff4658}
@keyframes spin { to { transform:rotate(360deg); } }
.graphic-history-controls{position:absolute;z-index:4;left:18px;bottom:18px;display:flex;gap:8px}
.graphic-history-controls button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #39414d;border-radius:11px;background:rgba(10,13,17,.88);color:#eef2f8;box-shadow:0 8px 24px rgba(0,0,0,.3);backdrop-filter:blur(10px);cursor:pointer}
.graphic-history-controls button:hover:not(:disabled){border-color:#ff4054;background:#1b2027;color:#fff}
.graphic-history-controls button:focus-visible{outline:2px solid #ff4054;outline-offset:2px}
.graphic-history-controls button:disabled{cursor:not-allowed;color:#667080;opacity:.48}
.graphic-history-controls svg{width:21px;height:21px;fill:currentColor}
.image-quality-badge{position:absolute;z-index:8;left:50%;bottom:78px;display:inline-flex;align-items:center;gap:6px;min-height:39px;padding:9px 13px;border:1px solid #53606f;border-radius:999px;background:rgba(10,13,17,.92);color:#e9eef5;box-shadow:0 10px 30px rgba(0,0,0,.32);backdrop-filter:blur(10px);font:inherit;font-size:12px;cursor:pointer;transform:translateX(-50%)}
.image-quality-badge:hover{border-color:#ff4054;background:#151a21}
.image-quality-badge:focus-visible{outline:2px solid #ff4054;outline-offset:2px}
.image-quality-badge[data-quality="excellent"],.image-quality-badge[data-quality="good"],.image-quality-badge[data-quality="vector"]{border-color:#3b9e69;color:#b9ffd5}
.image-quality-badge[data-quality="fair"]{border-color:#b99035;color:#ffe19a}
.image-quality-badge[data-quality="low"]{border-color:#df772b;color:#ffc08d}
.image-quality-badge[data-quality="poor"]{border-color:#e3495b;color:#ffb1ba}
.image-quality-badge-label{color:#aab5c5;font-weight:650}
.image-quality-badge strong{font-weight:900}
.graphic-nudge-tip{
  position:absolute;z-index:4;left:50%;bottom:18px;transform:translateX(-50%);
  display:flex;align-items:center;gap:14px;width:max-content;max-width:min(620px,calc(100% - 360px));
  padding:11px 12px 11px 15px;border:1px solid rgba(255,64,84,.62);border-radius:12px;
  background:rgba(10,13,17,.92);color:#eef2f8;box-shadow:0 10px 30px rgba(0,0,0,.36),0 0 18px rgba(255,51,71,.08);
  backdrop-filter:blur(12px);pointer-events:auto
}
.graphic-nudge-tip-copy{display:flex;align-items:baseline;gap:9px;min-width:0}
.graphic-nudge-tip-copy strong{flex:none;color:#fff;font-size:12px;line-height:1.3}
.graphic-nudge-tip-copy span{color:#b9c2d0;font-size:11px;line-height:1.45}
.graphic-nudge-tip kbd{display:inline-block;padding:1px 5px;border:1px solid #46505e;border-bottom-width:2px;border-radius:5px;background:#1b2027;color:#fff;font:800 10px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace}
.graphic-nudge-tip-close{flex:none;display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid #46505e;border-radius:8px;background:#1b2027;color:#d7dde7;font:700 18px/1 var(--font-sans);cursor:pointer}
.graphic-nudge-tip-close:hover{border-color:#ff4054;background:#2a171c;color:#fff}
.graphic-nudge-tip-close:focus-visible{outline:2px solid #ff4054;outline-offset:2px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.orbit-control{
  position:absolute;z-index:4;right:24px;bottom:18px;width:128px;
  display:grid;justify-items:center;gap:5px;color:#aeb7c6;
  pointer-events:none;user-select:none;-webkit-user-select:none
}
.orbit-control-label,.orbit-control-help{
  font:800 9px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;
  padding:3px 7px;border:1px solid rgba(255,255,255,.09);border-radius:999px;
  background:rgba(8,10,14,.66);backdrop-filter:blur(7px);
  letter-spacing:.13em;text-transform:uppercase;text-shadow:0 2px 7px rgba(0,0,0,.9)
}
.orbit-control-label{color:#eef2f7}
.orbit-control-help{color:#c2cad6;letter-spacing:.08em}
.orbit-trackball{
  --orbit-dot-x:0px;--orbit-dot-y:0px;
  position:relative;width:116px;height:116px;padding:0;border:1px solid rgba(145,157,176,.28);
  border-radius:50%;overflow:hidden;pointer-events:auto;touch-action:none;cursor:grab;
  background:radial-gradient(circle at 43% 38%,rgba(64,72,84,.52),rgba(14,17,22,.86) 54%,rgba(7,9,12,.94));
  box-shadow:0 14px 32px rgba(0,0,0,.38),inset 0 0 22px rgba(130,148,175,.08);
  transition:border-color .15s,box-shadow .15s,transform .15s
}
.orbit-trackball:hover{border-color:rgba(255,83,100,.62);box-shadow:0 14px 34px rgba(0,0,0,.45),0 0 18px rgba(255,51,71,.10),inset 0 0 22px rgba(130,148,175,.1)}
.orbit-trackball:focus-visible{outline:2px solid #ff5364;outline-offset:4px}
.orbit-trackball.dragging{cursor:grabbing;border-color:#ff5364;transform:scale(1.025);box-shadow:0 16px 38px rgba(0,0,0,.48),0 0 24px rgba(255,51,71,.18),inset 0 0 22px rgba(130,148,175,.12)}
.orbit-rings{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.orbit-ring-outline,.orbit-ring{fill:none;vector-effect:non-scaling-stroke}
.orbit-ring-outline{stroke:rgba(170,181,198,.18);stroke-width:1}
.orbit-ring{stroke:#aab5c5;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.orbit-ring-back{opacity:.22;stroke-dasharray:2.2 3.2}
.orbit-ring-front{opacity:.72}
.orbit-ring-active{stroke:#ff4054;filter:drop-shadow(0 0 3px rgba(255,51,71,.45))}
.orbit-trackball.dragging .orbit-ring-front{opacity:1}
.orbit-trackball.dragging .orbit-ring-back{opacity:.34}
.orbit-arrow{fill:#aeb7c6;filter:drop-shadow(0 1px 2px rgba(0,0,0,.8))}
.orbit-arrow-active{fill:#ff4054}
.orbit-sphere{
  position:absolute;left:50%;top:50%;width:39px;height:39px;transform:translate(-50%,-50%);
  border:1px solid rgba(213,221,232,.32);border-radius:50%;
  background:radial-gradient(circle at 34% 28%,#697483 0,#303640 32%,#15191f 72%,#090b0f 100%);
  box-shadow:0 8px 16px rgba(0,0,0,.55),inset -6px -7px 12px rgba(0,0,0,.34),inset 4px 4px 9px rgba(255,255,255,.08)
}
.orbit-sphere-dot{
  position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;
  transform:translate(var(--orbit-dot-x),var(--orbit-dot-y));
  background:linear-gradient(145deg,#ff7482,#f41f37);border:1px solid rgba(255,255,255,.6);
  box-shadow:0 0 9px rgba(255,51,71,.75);transition:transform .05s linear
}
@media(max-width:1200px){
  .graphic-nudge-tip{max-width:min(520px,calc(100% - 280px))}
  .graphic-nudge-tip-copy{display:block}
  .graphic-nudge-tip-copy strong,.graphic-nudge-tip-copy span{display:block}
  .graphic-nudge-tip-copy span{margin-top:2px}
  .orbit-control{right:14px;bottom:14px;width:102px}
  .orbit-trackball{width:92px;height:92px}
  .orbit-control-label,.orbit-control-help{font-size:8px}
  .orbit-sphere{width:33px;height:33px}
}
.viewer-footer { height:44px; border-top:1px solid rgba(255,255,255,.06); display:flex; align-items:center; justify-content:space-between; padding:0 20px; color:#747c86; font-size:10px; }
.status { display:flex; align-items:center; gap:7px; }
.status-dot { width:7px; height:7px; border-radius:50%; background:#31cd6f; box-shadow:0 0 10px rgba(49,205,111,.5); }
@media (max-width: 900px) {
  body { overflow:auto; }
  .topbar { position:sticky; top:0; z-index:20; }
  .workspace { height:auto; display:flex; flex-direction:column-reverse; }
  .viewer-panel { height:64vh; min-height:500px; position:sticky; top:64px; z-index:5; }
  .controls-panel { border-right:0; border-top:1px solid #20232a; overflow:visible; padding:25px 20px 60px; position:relative; z-index:7; }
  h1 { font-size:39px; }
  .viewer-toolbar { padding:0 14px; }
  .toolbar-actions button:nth-child(3) { display:none; }
  .mobile-hint { display:none; }
}


/* Premade design library */
.concept-tabs{display:flex;gap:8px;margin:14px 0 12px}
.concept-tab{border:1px solid #303743;background:#11151b;color:#aeb7c6;border-radius:999px;padding:8px 14px;font-weight:700;cursor:pointer}
.concept-tab.active{background:#f3263d;color:#fff;border-color:#f3263d}
.premade-card{position:relative}
.premade-card .premade-badge{position:absolute;top:8px;left:8px;padding:4px 7px;border-radius:999px;background:rgba(0,0,0,.72);color:#fff;font-size:10px;font-weight:800;letter-spacing:.08em}

.editing-design-label{
  margin:10px 0 12px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  color:#aeb8cb;
  font-size:12px;
  font-weight:700;
}

.edit-status-row{display:flex;gap:8px;align-items:stretch;margin:10px 0 12px}
.edit-status-row .editing-design-label{margin:0;flex:1;min-width:0}
.history-controls{display:flex;gap:6px}
.history-controls button{
  border:1px solid rgba(255,255,255,.13);background:#15191f;color:#d7ddea;
  border-radius:10px;padding:0 11px;font-size:12px;font-weight:700;white-space:nowrap;
  cursor:pointer
}
.history-controls button:hover:not(:disabled){border-color:rgba(255,57,76,.7);color:#fff}
.history-controls button:disabled{opacity:.32;cursor:not-allowed}

.design-toolbar{display:flex;gap:10px;align-items:center;margin:0 0 10px}
.tool-button{
  border:1px solid rgba(255,255,255,.14);background:#15191f;color:#dce3ef;
  border-radius:10px;padding:9px 12px;font-weight:800;font-size:12px;cursor:pointer
}
.tool-button:hover{border-color:#ff394c;color:#fff}
.tool-button.active{background:#ff3347;border-color:#ff3347;color:#fff;box-shadow:0 0 0 3px rgba(255,51,71,.15)}
.tool-icon{font-size:15px;margin-right:4px}
.tool-hint{font-size:11px;color:#7f8aa0;line-height:1.35}
.color-replace-panel{
  display:grid;grid-template-columns:minmax(120px,1fr) 24px minmax(140px,1fr);
  gap:10px;align-items:end;margin:0 0 14px;padding:12px;border:1px solid rgba(255,255,255,.1);
  border-radius:12px;background:#11151a
}
.color-replace-panel.hidden{display:none}
.color-field label,.match-field label{display:block;font-size:10px;color:#8490a5;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}
.color-input-wrap{display:flex;align-items:center;gap:7px}
.color-input-wrap input[type="text"]{width:100%;min-width:0;background:#0c0f13;border:1px solid #303642;color:#fff;border-radius:8px;padding:8px;font:700 12px ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase}
.color-input-wrap input[type="color"]{width:36px;height:34px;border:0;padding:0;background:transparent;cursor:pointer}
.color-swatch{width:28px;height:28px;border-radius:7px;border:1px solid rgba(255,255,255,.25);background:#000;flex:0 0 auto}
.color-arrow{color:#748096;text-align:center;padding-bottom:9px;font-weight:900}
.match-field{grid-column:1 / span 2}
.match-field input[type="range"]{width:100%}
#colorToleranceLabel{font-size:10px;color:#aab4c5}
.apply-color-button{align-self:end;border:0;border-radius:9px;background:#ff3347;color:#fff;font-weight:900;padding:10px 13px;cursor:pointer}
.apply-color-button:hover{filter:brightness(1.08)}
.stitch-color-card{
  display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:14px;
  border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#11151a
}
.stitch-color-card h3{margin:0 0 4px;font-size:15px;color:#fff}
.stitch-color-card p{margin:0;color:#8e9ab0;font-size:11px;line-height:1.4}
.stitch-color-swatches{display:flex;gap:8px;flex:0 0 auto}
.stitch-color-swatch{
  display:flex;align-items:center;gap:8px;min-width:86px;padding:8px 10px;border:1px solid #303642;
  border-radius:9px;background:#0c0f13;color:#dce3ef;font-size:12px;font-weight:800;cursor:pointer
}
.stitch-color-swatch:hover{border-color:#68758b;color:#fff}
.stitch-color-swatch.active{border-color:#ff3347;box-shadow:0 0 0 2px rgba(255,51,71,.14);color:#fff}
.stitch-color-chip{width:25px;height:25px;border-radius:6px;border:1px solid rgba(255,255,255,.28);flex:0 0 auto}
.stitch-color-chip-white{background:#fff}
.stitch-color-chip-black{background:#000}
@media(max-width:650px){
  .color-replace-panel{grid-template-columns:1fr}
  .color-arrow{display:none}.match-field{grid-column:auto}
  .stitch-color-card{align-items:flex-start;flex-direction:column}
}

.viewer{position:relative!important}
.eyedropper-svg{display:grid;place-items:center;color:inherit}
.build-version{
  position:fixed;top:8px;right:9px;z-index:1000;
  padding:3px 7px;border-radius:6px;
  background:rgba(0,0,0,.52);border:1px solid rgba(255,255,255,.13);
  color:#8d98aa;font:700 10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;
  pointer-events:none
}

/* V15 positioning corrections */
.viewer-panel .viewer{
  position:relative!important;
}
.header-right{
  display:flex;
  align-items:center;
  gap:9px;
  margin-left:auto;
}
.help-button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid #343b47;background:#15191f;color:#d7dee8;border-radius:7px;
  padding:5px 9px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap
}
.help-button:hover,.help-button[aria-expanded="true"],.share-design-button:hover:not(:disabled),.install-app-button:hover{border-color:#ff5364;background:#211318;color:#fff}
.help-button:focus-visible{outline:2px solid #ff5364;outline-offset:2px}
.help-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.help-button .help-icon-dot{fill:currentColor;stroke:none}
.share-design-button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid #62434a;background:#211318;color:#fff;border-radius:7px;
  padding:5px 9px;font-size:11px;font-weight:850;cursor:pointer;white-space:nowrap
}
.share-design-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.share-design-button:focus-visible{outline:2px solid #ff5364;outline-offset:2px}
.share-design-button:disabled{cursor:not-allowed;opacity:.42}
.install-app-button{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid #62434a;background:#211318;color:#fff;border-radius:7px;
  padding:5px 9px;font-size:11px;font-weight:850;cursor:pointer;white-space:nowrap
}
.install-app-button[hidden]{display:none!important}
.install-app-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.install-app-button:focus-visible{outline:2px solid #ff5364;outline-offset:2px}
@media(display-mode:standalone){.install-app-button{display:none!important}}
.version-update-notice{
  position:fixed;left:50%;right:auto;bottom:82px;z-index:1600;display:flex;align-items:center;gap:12px;
  width:max-content;max-width:calc(100vw - 36px);padding:12px 14px 12px 20px;border:2px solid #536071;border-radius:999px;
  background:rgba(16,21,27,.97);color:#e8edf5;box-shadow:0 18px 52px rgba(0,0,0,.52);
  font-size:20px;font-weight:750;line-height:1;white-space:nowrap;backdrop-filter:blur(8px);transform:translateX(-50%)
}
.version-update-notice[hidden]{display:none!important}
.version-update-notice button{min-height:48px;border:0;border-radius:999px;background:#ff3347;color:#fff;padding:12px 20px;font-size:18px;font-weight:900;line-height:1;cursor:pointer}
.version-update-notice button:hover{background:#ff5263}
.version-update-notice button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.share-design-dialog{width:min(620px,calc(100vw - 32px));max-width:none;padding:0;border:1px solid #465160;border-radius:16px;background:#10151b;color:#f7f8fa;box-shadow:0 28px 90px rgba(0,0,0,.7);overflow:hidden}
.share-design-dialog::backdrop{background:rgba(3,6,9,.78);backdrop-filter:blur(5px)}
.share-design-dialog-card{display:grid;background:#10151b}
.share-design-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px 18px;border-bottom:1px solid #2d3540}
.share-design-dialog-eyebrow{margin-bottom:7px;color:#ff4054;font-size:11px;font-weight:900;letter-spacing:.14em}
.share-design-dialog-header h2{margin:0;color:#fff;font-size:27px;line-height:1.08;letter-spacing:-.02em}
.share-design-dialog-header p{max-width:500px;margin:9px 0 0;color:#9ba7b8;font-size:12px;line-height:1.5}
.share-design-dialog-close{flex:0 0 auto;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #3b4553;border-radius:8px;background:#192028;color:#e9edf3;font-size:22px;line-height:1;cursor:pointer}
.share-design-dialog-close:hover{border-color:#ff5364;color:#fff}
.share-design-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:20px 24px 0}
.share-design-link-row input{min-width:0;height:44px;padding:0 12px;border:1px solid #3b4553;border-radius:9px;background:#0c1015;color:#edf2f8;font:700 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace;outline:none}
.share-design-link-row input:focus{border-color:#ff5364;box-shadow:0 0 0 3px rgba(255,64,84,.1)}
.share-design-link-row button,.share-design-dialog-actions button{min-height:42px;padding:10px 16px;border-radius:9px;font-size:12px;font-weight:850;cursor:pointer}
.share-design-link-row button{border:1px solid #ff5364;background:#2b141a;color:#fff}
.share-design-status{min-height:19px;margin:10px 24px 0;color:#7ee2a5;font-size:11px;line-height:1.45}
.share-design-status.error{color:#ff8e9b}
.share-design-dialog-actions{display:flex;justify-content:flex-end;gap:9px;padding:17px 24px 22px}
.share-design-native{border:1px solid #465160;background:#192028;color:#eef3f8}
.share-design-done{border:0;background:#ff3347;color:#fff}
.help-dialog{
  width:min(760px,calc(100vw - 36px));max-width:none;padding:0;border:1px solid #465160;border-radius:16px;
  background:#10151b;color:#f7f8fa;box-shadow:0 28px 90px rgba(0,0,0,.7);overflow:hidden
}
.image-quality-dialog{width:min(460px,calc(100vw - 28px));max-width:none;padding:0;border:1px solid #414b58;border-radius:16px;background:#10151b;color:#eef3f8;box-shadow:0 28px 90px rgba(0,0,0,.62)}
.image-quality-dialog::backdrop{background:rgba(3,6,9,.76);backdrop-filter:blur(5px)}
.image-quality-dialog-card{display:grid;background:#10151b}
.image-quality-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 22px 17px;border-bottom:1px solid #2d3540}
.image-quality-dialog-eyebrow{margin-bottom:6px;color:#ff4054;font-size:10px;font-weight:900;letter-spacing:.14em}
.image-quality-dialog-header h2{margin:0;color:#fff;font-size:25px;line-height:1.08}
.image-quality-dialog-close{display:grid;place-items:center;width:33px;height:33px;padding:0;border:1px solid #3b4553;border-radius:8px;background:#192028;color:#e9edf3;font-size:21px;cursor:pointer}
.image-quality-details{display:grid;margin:0;padding:10px 22px}
.image-quality-details div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:12px 0;border-bottom:1px solid #28313c}
.image-quality-details div:last-child{border-bottom:0}
.image-quality-details dt{color:#9eabba;font-size:12px;font-weight:700}
.image-quality-details dd{margin:0;color:#fff;font-size:12px;font-weight:850;text-align:right}
.image-quality-warning{margin:5px 22px 0;padding:15px;border:1px solid #9a4852;border-radius:11px;background:#2d1218}
.image-quality-warning h3{margin:0 0 7px;color:#ff9daa;font-size:16px}
.image-quality-warning p,.image-quality-vector-note,.low-resolution-checkout-card>p{margin:0;color:#c8d0dc;font-size:12px;line-height:1.55}
.image-quality-vector-note{margin:8px 22px 0;padding:14px;border:1px solid #38795a;border-radius:11px;background:#10271d;color:#baffd2}
.image-quality-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 22px 21px}
.image-quality-dialog-actions button{min-height:40px;padding:10px 16px;border-radius:9px;font:inherit;font-size:12px;font-weight:850;cursor:pointer}
.image-quality-replace{border:1px solid #475363;background:#151b22;color:#eef3f8}
.image-quality-accept{border:0;background:#ff3347;color:#fff}
.image-quality-continue{border:0;background:#ff3347;color:#fff}
.low-resolution-checkout-card>p{padding:17px 22px 0}
.low-resolution-checkout-list{display:grid;gap:7px;margin:14px 22px 0;padding:0;list-style:none}
.low-resolution-checkout-list li{padding:10px 12px;border:1px solid #743842;border-radius:9px;background:#261117;color:#ffd1d6;font-size:12px;font-weight:800}
.low-resolution-checkout-note{color:#9faaba!important}
.help-dialog::backdrop{background:rgba(3,6,9,.78);backdrop-filter:blur(4px)}
.help-dialog-card{display:grid;background:#10151b}
.help-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px 18px;border-bottom:1px solid #2d3540}
.help-dialog-eyebrow{margin-bottom:7px;color:#ff4054;font-size:11px;font-weight:900;letter-spacing:.14em}
.help-dialog-header h2{margin:0;color:#fff;font-size:30px;line-height:1.05;letter-spacing:-.025em}
.help-dialog-header p{margin:8px 0 0;color:#9ba7b8;font-size:13px;line-height:1.45}
.help-dialog-close{flex:0 0 auto;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #3b4553;border-radius:8px;background:#192028;color:#e9edf3;font-size:22px;line-height:1;cursor:pointer}
.help-dialog-close:hover{border-color:#ff5364;color:#fff}
.help-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#2d3540}
.help-guide-item{display:flex;min-height:178px;flex-direction:column;align-items:center;justify-content:flex-start;padding:20px 15px 17px;background:#141a21;text-align:center}
.help-guide-item h3{margin:13px 0 0;color:#fff;font-size:15px;line-height:1.2}
.help-guide-item p{margin:6px 0 0;color:#9aa6b7;font-size:12px;line-height:1.4}
.help-mouse{position:relative;width:44px;height:62px;border:2px solid #e9edf3;border-radius:22px;color:#ff4054;background:transparent}
.help-mouse::before{content:"";position:absolute;left:50%;top:0;width:1px;height:19px;background:#e9edf3;transform:translateX(-50%)}
.help-mouse span{position:absolute;left:50%;top:8px;width:5px;height:13px;border:2px solid currentColor;border-radius:5px;transform:translateX(-50%)}
.help-mouse-left{background:linear-gradient(90deg,rgba(255,64,84,.28) 0 50%,transparent 50%)}
.help-mouse-right{background:linear-gradient(90deg,transparent 0 50%,rgba(255,64,84,.28) 50%)}
.help-control-icon{position:relative;display:flex;align-items:center;justify-content:center;width:104px;height:62px;color:#dbe1e9}
.help-control-icon>.help-mouse{position:absolute;left:11px;top:0}
.help-control-icon>svg{position:absolute;right:5px;width:42px;height:52px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.help-select-icon>svg{right:5px;bottom:-2px;width:34px;height:40px;fill:#b8c1ce;stroke:#0d1116;stroke-width:1.4}
.help-move-icon>svg{right:0;width:48px;height:48px}
.help-resize-icon{position:relative;width:68px;height:68px;border:1px dashed #aab4c3;color:#dbe1e9}
.help-resize-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.help-resize-handle{position:absolute;width:8px;height:8px;background:#e8ecf2}
.help-resize-handle.handle-one{left:-4px;top:-4px}.help-resize-handle.handle-two{right:-4px;top:-4px}.help-resize-handle.handle-three{left:-4px;bottom:-4px}.help-resize-handle.handle-four{right:-4px;bottom:-4px;background:#ff4054}
.help-graphic-rotate-icon{position:relative;width:68px;height:68px;border:1px dashed #aab4c3;color:#55ff3b}
.help-graphic-rotate-icon>span{position:absolute;left:50%;top:-26px;width:1px;height:26px;background:#55ff3b;transform:translateX(-50%)}
.help-graphic-rotate-icon>svg{position:absolute;left:50%;top:-44px;width:42px;height:48px;overflow:visible;fill:#141a21;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;transform:translateX(-50%)}
.help-dialog-footer{display:flex;justify-content:center;padding:18px 24px;background:#0f141a}
.help-dialog-footer button{min-width:250px;border:0;border-radius:9px;background:#ff3347;color:#fff;padding:12px 24px;font-size:13px;font-weight:900;cursor:pointer}
.help-dialog-footer button:hover{background:#ff4b5e}
.draft-save-status{
  display:inline-flex;align-items:center;gap:6px;color:#8f9bad;
  font-size:10px;font-weight:750;white-space:nowrap
}
.draft-save-status::before{
  content:"";width:6px;height:6px;border-radius:50%;background:#e2b34d;
  box-shadow:0 0 8px rgba(226,179,77,.35)
}
.draft-save-status[data-state="saved"]{color:#a9c8b5}
.draft-save-status[data-state="saved"]::before{background:#39d47a;box-shadow:0 0 8px rgba(57,212,122,.45)}
.draft-save-status[data-state="restored"]{color:#c2d3ff}
.draft-save-status[data-state="restored"]::before{background:#6e9dff;box-shadow:0 0 8px rgba(110,157,255,.45)}
.draft-save-status[data-state="error"]{color:#ff9aa5}
.draft-save-status[data-state="error"]::before{background:#ff5364;box-shadow:0 0 8px rgba(255,83,100,.45)}
.start-over-button{
  border:1px solid #343b47;background:#15191f;color:#aeb8c9;border-radius:7px;
  padding:5px 8px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap
}
.start-over-button:hover{border-color:#ff5364;color:#fff}
.header-right .build-version{
  position:static!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  padding:4px 7px;
  border-radius:6px;
  background:#171b21;
  border:1px solid #323844;
  color:#9ca7b9;
  font:800 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.04em;
  pointer-events:none;
}

/* V16 bottom workflow navigation */
body{padding-bottom:var(--workflow-nav-height)!important}
.workspace{height:calc(100vh - var(--topbar-height) - var(--workflow-nav-height))!important;height:calc(100dvh - var(--topbar-height) - var(--workflow-nav-height))!important}
.tabbed-controls{position:relative;overflow-y:auto!important}
.tabbed-controls.products-scroll-isolated{overflow:hidden!important}
.control-view{display:none;min-height:100%;padding-bottom:24px}
.control-view.active{display:block}
.control-view.active.products-view{display:grid;height:100%;min-height:0;grid-template-rows:auto auto minmax(0,1fr) auto;padding-bottom:0;overflow:hidden}
.product-browser-heading{min-width:0}
.product-browser-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 18px 0;scrollbar-width:thin;scrollbar-color:#596372 #171c22}
.product-browser-scroll::-webkit-scrollbar{width:9px}
.product-browser-scroll::-webkit-scrollbar-track{background:#171c22;border-radius:999px}
.product-browser-scroll::-webkit-scrollbar-thumb{background:#596372;border:2px solid #171c22;border-radius:999px}
.product-browser-scroll::-webkit-scrollbar-thumb:hover{background:#778292}
.view-title{font-size:31px;font-weight:800;line-height:1.05;margin:8px 0 10px;color:#fff;letter-spacing:-.03em}
.view-intro{color:#b2bdcf;font-size:13px;line-height:1.55;margin:0 0 18px;max-width:370px}
.design-filter-row{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.filter-chip{border:1px solid #343b47;background:#15191f;color:#aeb9ca;border-radius:999px;padding:6px 10px;font-size:11px;cursor:pointer}
.filter-chip.active,.filter-chip:hover{border-color:#ff3347;color:#fff}
.design-tab-grid{padding-bottom:20px}
.start-path-panel{margin-top:20px;padding-top:20px;border-top:1px solid #292f38}
.colors-toolbar{display:flex;justify-content:flex-end;margin:0 0 10px}
.colors-panel{display:grid!important;margin-top:0!important}
.tolerance-scale{display:flex;justify-content:space-between;color:#6f7c91;font-size:9px;margin-top:2px}
.color-help-card{border:1px solid #282f3a;border-radius:12px;background:#11151a;padding:13px;margin-top:12px;color:#c1cad8;font-size:11px;line-height:1.5}
.color-help-card strong{display:block;color:#fff;margin-bottom:4px}
.color-help-card p{margin:0}
.order-card{border:1px solid #2b323d;border-radius:14px;background:#11151a;padding:16px}
.order-card-title{font-size:13px;font-weight:900;color:#fff;margin-bottom:10px}
.order-line{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:11px;color:#8692a7}
.order-line strong{color:#e7ebf2;text-align:right;font-weight:700}
.editable-order input{width:60px;background:#0b0e12;border:1px solid #343b47;border-radius:7px;color:#fff;padding:5px;text-align:right}
.order-divider{height:1px;background:#353c47;margin:14px 0}
.order-total{display:flex;justify-content:space-between;align-items:center;color:#d9dfeb;font-size:12px;margin:0 0 13px}
.order-total strong{font-size:19px;color:#fff}
.order-now-button{width:100%;border:0;border-radius:10px;padding:13px;background:#ff3347;color:#fff;font-size:13px;font-weight:900;cursor:pointer}
.secure-note{text-align:center;color:#657186;font-size:9px;margin-top:9px}
.bottom-workflow-nav{
  position:fixed;left:0;right:0;bottom:0;height:var(--workflow-nav-height);z-index:900;
  display:grid;grid-template-columns:repeat(6,1fr);
  background:#11151a;border-top:1px solid #303742;box-shadow:0 -8px 24px rgba(0,0,0,.28)
}
.workflow-nav-item{
  appearance:none;border:0;border-right:1px solid rgba(255,255,255,.055);
  background:transparent;color:#aab4c5;display:flex;align-items:center;justify-content:center;
  gap:9px;font-size:12px;font-weight:750;cursor:pointer;position:relative
}
.workflow-nav-item:hover{background:#161b21;color:#fff}
.workflow-nav-item.active{color:#fff;background:#151a20}
.workflow-nav-item.active::after{content:"";position:absolute;left:18px;right:18px;bottom:5px;height:2px;border-radius:3px;background:#ff3347}
.workflow-nav-item.order-nav{color:#d8dee9}
.workflow-nav-item.order-nav.active{color:#ff5365}
.nav-icon{font-size:16px}

/* Product collection */
.product-category-tabs{display:flex;gap:22px;margin:0 0 18px;border-bottom:1px solid #2a3038;overflow-x:auto;scrollbar-width:none}
.product-category-tabs::-webkit-scrollbar{display:none}
.product-category-tab{position:relative;flex:0 0 auto;min-height:40px;padding:0 2px;border:0;background:transparent;color:#bec7d5;font-size:12px;font-weight:750;cursor:pointer}
.product-category-tab::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:transparent}
.product-category-tab:hover,.product-category-tab.active{color:#fff}
.product-category-tab.active{color:#ff4255}
.product-category-tab.active::after{background:#ff3347}
.product-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.product-card{position:relative;display:flex;min-width:0;min-height:248px;overflow:hidden;padding:0;border:1px solid #303743;border-radius:12px;background:#12171d;color:#fff;text-align:left;cursor:pointer;flex-direction:column}
.product-card:hover{border-color:#586372;background:#151b22}
.product-card.selected{border-color:#ff3347;box-shadow:0 0 0 1px rgba(255,51,71,.22)}
.product-card-visual{display:grid;place-items:center;width:100%;height:170px;padding:10px;background:radial-gradient(circle at 50% 35%,#343a42 0,#1d2228 55%,#14191f 100%)}
.product-card-visual img{display:block;width:100%;height:100%;object-fit:contain}
.product-card-copy{display:flex;align-items:flex-start;gap:5px;min-width:0;padding:12px;flex-direction:column}
.product-card-copy strong{font-size:13px;line-height:1.25}
.product-card-copy small{color:#8693a6;font-size:10px;line-height:1.35}
.product-coming-soon-badge{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:3px 7px;border:1px solid #3d4652;border-radius:999px;background:#1a2027;color:#abb6c6;font-size:9px;font-weight:800;white-space:nowrap}
.product-card-copy .product-coming-soon-badge{margin-top:3px}
.shorts-product-list{display:grid;gap:12px}
.shorts-product-list>[role="listitem"]{min-width:0}
.shorts-product-row{display:grid;width:100%;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:112px;padding:10px 12px;border:1px solid #303743;border-radius:12px;background:#12171d;color:#fff;text-align:left;cursor:pointer}
.shorts-product-row:hover{border-color:#586372;background:#151b22}
.shorts-product-row.selected{border-color:#ff3347;box-shadow:0 0 0 1px rgba(255,51,71,.18)}
.shorts-row-thumbnail{display:grid;place-items:center;width:92px;height:88px;border-radius:9px;background:radial-gradient(circle at 50% 35%,#30363e 0,#171c22 70%)}
.shorts-row-thumbnail img{display:block;width:86px;height:82px;object-fit:contain;filter:drop-shadow(0 8px 8px rgba(0,0,0,.4))}
.shorts-row-name{min-width:0;font-size:13px;font-weight:850;line-height:1.25}
.product-available-badge{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:3px 7px;border:1px solid #27784b;border-radius:999px;background:#102b1d;color:#7ee4a8;font-size:9px;font-weight:850;white-space:nowrap}
.product-action-dock{position:relative;z-index:6;display:grid;gap:10px;padding-top:12px;background:#0c0e11;box-shadow:0 -12px 24px rgba(5,7,10,.38)}
.product-selection-footer{display:grid;gap:7px;margin:0;padding-top:12px;border-top:1px solid #2a3038}
.product-selection-footer>span{color:#8895a8;font-size:10px;font-weight:900;letter-spacing:.12em}
.product-selection-footer>strong{color:#fff;font-size:17px;line-height:1.25}
.product-next-step-card{position:static;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:12px 13px;border:1px solid #343d49;border-radius:10px;background:#141a20;box-shadow:0 8px 22px rgba(0,0,0,.24)}
.product-next-step-copy{display:grid;gap:4px;min-width:0}
.product-next-step-copy strong{color:#fff;font-size:15px;font-weight:900;letter-spacing:.035em;line-height:1.15}
.product-next-step-copy small{color:#98a4b5;font-size:14px;line-height:1.2}
.product-next-step-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:92px;min-height:42px;padding:0 17px;border:0;border-radius:8px;background:#ff3347;color:#fff;font-size:14px;font-weight:900;cursor:pointer;white-space:nowrap;box-shadow:0 8px 20px rgba(255,51,71,.22)}
.product-next-step-button:hover{background:#ff4b5e}
.product-next-step-button:active{transform:translateY(1px)}
.viewer-product-heading{display:flex;align-items:center;gap:16px;min-width:0}
.product-empty-state,.product-coming-soon-state{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 50% 48%,#262b31 0,#171b20 52%,#111419 100%);color:#fff;text-align:center;flex-direction:column}
.product-coming-soon-state img{display:block;width:240px;max-width:44%;height:220px;object-fit:contain;margin-bottom:18px;filter:drop-shadow(0 16px 15px rgba(0,0,0,.5))}
.product-empty-state strong,.product-coming-soon-state strong{font-size:22px;letter-spacing:.035em}
.product-empty-state span,.product-coming-soon-state span{margin-top:9px;color:#9aa6b7;font-size:13px}
.viewer.product-preview-empty .loading-state,.viewer.product-preview-empty .graphic-history-controls,.viewer.product-preview-unavailable .viewer-pick-color,.viewer.product-preview-unavailable .graphic-history-controls,.viewer.product-preview-unavailable .image-quality-badge,.viewer.product-preview-unavailable .graphic-nudge-tip,.viewer.product-preview-unavailable .loading-state{display:none!important}
body.product-not-selected .toolbar-actions,body.product-not-selected .viewer-pick-color,body.product-not-selected .viewer-left-tools,body.product-not-selected .orbit-control,body.product-not-selected .graphic-history-controls,body.product-not-selected .image-quality-badge,body.product-not-selected .graphic-nudge-tip{display:none!important}
body.product-not-selected #conceptLabel{display:none!important}
.workflow-nav-item:disabled{cursor:not-allowed!important;color:#5e6876!important;background:#0e1216!important;opacity:.55}
.workflow-nav-item:disabled:hover{color:#5e6876!important;background:#0e1216!important}
.workflow-intro{
  --workflow-arrow-left:42px;
  position:fixed;left:16px;bottom:92px;z-index:980;width:min(350px,calc(100vw - 24px));
  padding:18px 18px 15px;border:1px solid rgba(255,74,91,.62);border-radius:15px;
  background:linear-gradient(145deg,rgba(31,20,24,.98),rgba(14,17,22,.98));
  box-shadow:0 22px 65px rgba(0,0,0,.55),0 0 0 1px rgba(255,64,83,.08),0 0 30px rgba(255,51,71,.12);
  animation:workflowIntroReveal .36s cubic-bezier(.2,.85,.35,1) both
}
.workflow-intro-kicker{display:block;margin:0 32px 7px 0;color:#ff4a5b;font-size:11px;font-weight:950;letter-spacing:.18em}
.workflow-intro>strong{display:block;margin-right:28px;color:#fff;font-size:17px;line-height:1.2}
.workflow-intro>p{margin:8px 0 14px;color:#aeb7c6;font-size:12px;line-height:1.5}
.workflow-intro-close{position:absolute;top:10px;right:10px;width:28px;height:28px;border:1px solid #404854;border-radius:8px;background:#1b2027;color:#cbd3df;font-size:19px;line-height:1;cursor:pointer}
.workflow-intro-close:hover{border-color:#ff5365;color:#fff}
.workflow-intro-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}
.workflow-intro-actions label{display:flex;align-items:center;gap:7px;color:#c3cbd7;font-size:11px;font-weight:700;cursor:pointer}
.workflow-intro-actions input{width:16px;height:16px;margin:0;accent-color:#ff3347}
.workflow-intro-actions>button{border:0;border-radius:8px;background:#ff3347;color:#fff;padding:9px 16px;font-size:11px;font-weight:900;cursor:pointer}
.workflow-intro-actions>button:hover{background:#ff4b5e}
.workflow-intro-arrow{position:absolute;left:var(--workflow-arrow-left);bottom:-48px;width:28px;height:48px;pointer-events:none;animation:workflowArrowBounce 1.05s ease-in-out infinite}
.workflow-intro-arrow::before{content:"";position:absolute;left:12px;top:2px;width:4px;height:31px;border-radius:4px;background:#ff3347;box-shadow:0 0 14px rgba(255,51,71,.72)}
.workflow-intro-arrow::after{content:"";position:absolute;left:4px;bottom:2px;border-left:10px solid transparent;border-right:10px solid transparent;border-top:13px solid #ff3347;filter:drop-shadow(0 4px 6px rgba(255,51,71,.35))}
.workflow-nav-item.workflow-intro-target{z-index:902!important;color:#fff!important;animation:workflowTargetPulse 1.45s ease-in-out infinite}
@keyframes workflowArrowBounce{0%,100%{transform:translateY(-3px)}50%{transform:translateY(7px)}}
@keyframes workflowTargetPulse{0%,100%{background:#151a20;box-shadow:inset 0 0 0 1px rgba(255,70,88,.25)}50%{background:#25171c;box-shadow:inset 0 0 0 2px #ff3347,0 0 22px rgba(255,51,71,.35)}}
@keyframes workflowIntroReveal{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.viewer-panel{height:100%!important}
.viewer-footer{bottom:0}
@media(max-width:800px){
  :root{--workflow-nav-height:58px}
  body{padding-bottom:var(--workflow-nav-height)!important}
  .bottom-workflow-nav{height:var(--workflow-nav-height)}
  .workflow-nav-item{font-size:10px;gap:5px}
  .workflow-nav-item span:last-child{display:none}
  .nav-icon{font-size:18px}
  .draft-save-status{font-size:0}
  .draft-save-status::before{width:7px;height:7px}
  .start-over-button{padding:5px 7px}
  .workflow-intro{width:min(300px,calc(100vw - 16px));padding:15px;bottom:82px}
  .workflow-intro>strong{font-size:15px}
  .workflow-intro>p{font-size:11px}
  .workflow-intro-actions{align-items:flex-end;flex-direction:column}
  .workflow-intro-actions>button{width:100%}
}
@media(prefers-reduced-motion:reduce){.workflow-intro,.workflow-intro-arrow,.workflow-nav-item.workflow-intro-target{animation:none}}

/* Version 1.03 release badge */
.header-right .build-version{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:5px 8px!important;
  border-radius:7px!important;
  background:#171b21!important;
  border:1px solid #343b47!important;
  color:#aeb8c9!important;
  font:800 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace!important;
  letter-spacing:.035em!important;
  white-space:nowrap!important;
}

/* Version 1.04 bottom nav reliability */
.bottom-workflow-nav{
  pointer-events:auto!important;
}
.workflow-nav-item{
  pointer-events:auto!important;
  cursor:pointer!important;
  z-index:2!important;
  position:relative!important;
}
.workflow-nav-item *{
  pointer-events:none!important;
}
.control-view{
  width:100%;
}

/* Version 1.06 interaction fixes */
.error-panel{position:relative!important;padding-right:46px!important}
.error-close{
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:20px;
  line-height:24px;
  font-weight:500;
  cursor:pointer;
}
.error-close:hover{background:rgba(255,255,255,.14)}
/* Version 1.07 color-processing feedback */
.apply-color-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:40px!important;
}
.apply-color-button:disabled{
  opacity:.72!important;
  cursor:wait!important;
}
.apply-color-spinner{
  display:none;
  width:14px;
  height:14px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:pace-spin .7s linear infinite;
}
.apply-color-button.processing .apply-color-spinner{display:inline-block}
@keyframes pace-spin{to{transform:rotate(360deg)}}

.error-panel{
  position:fixed!important;
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  width:min(520px,calc(100vw - 32px))!important;
  max-width:calc(100vw - 32px)!important;
  min-width:0!important;
  box-sizing:border-box!important;
  z-index:1200!important;
  transform:translate(-50%,-50%)!important;
  box-shadow:0 22px 70px rgba(0,0,0,.52)!important;
}
.error-panel code{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.error-close{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  z-index:3!important;
}
@media(max-width:700px){
  .error-panel{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important}
}

/* Version 1.11 order summary */
.control-view[data-control-view="order"]{
  padding:14px 14px 26px!important;
}
.order-summary-card{
  border:1px solid #2a313c;
  border-radius:14px;
  background:#14181e;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}
.order-summary-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px 12px;
}
.order-summary-head h2{
  margin:0;
  color:#fff;
  font-size:20px;
  line-height:1;
  letter-spacing:-.02em;
}
.order-draft-badge{
  padding:6px 10px;
  border-radius:6px;
  background:#38131c;
  color:#ff3850;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}
.order-meta{
  padding:6px 20px 18px;
}
.order-meta>div{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:5px 0;
  font-size:12px;
}
.order-meta span{
  color:#86a7dc;
}
.order-meta strong{
  color:#fff;
  text-align:right;
  font-weight:800;
}
.order-contact-field{
  display:grid;
  gap:7px;
  padding:0 20px 18px;
  color:#86a7dc;
  font-size:11px;
  font-weight:800;
}
.order-contact-field input{
  box-sizing:border-box;
  width:100%;
  border:1px solid #303742;
  border-radius:8px;
  background:#10141a;
  color:#fff;
  padding:10px 11px;
  font:500 13px/1.2 var(--font-sans);
  outline:none;
}
.order-contact-field input:focus{border-color:#ff3347;box-shadow:0 0 0 1px #ff3347}
.order-contact-field input:user-invalid{border-color:#ff5365}
.order-contact-field small{color:#76849a;font-size:10px;font-weight:500;line-height:1.35}
.order-contact-field .order-contact-requirement{color:#ff8b98}
.order-contact-field .order-contact-requirement.satisfied{display:none}
.size-order-table{
  border-top:1px solid #303640;
}
.size-order-header,
.size-order-row,
.size-order-total-row{
  display:grid;
  grid-template-columns:1.55fr .72fr .7fr .72fr;
  align-items:center;
  column-gap:10px;
}
.size-order-header{
  padding:10px 20px;
  background:#1b2027;
  border-bottom:1px solid #303640;
  color:#7f9ccc;
  font-size:9px;
  font-weight:800;
  letter-spacing:.13em;
}
.size-order-header span:nth-child(2),
.size-order-header span:nth-child(3),
.size-order-header span:nth-child(4){text-align:right}
.size-order-row{
  min-height:52px;
  padding:0 20px;
  border-bottom:1px solid #272d36;
}
.size-order-row>strong:first-child{
  color:#fff;
  font-size:13px;
}
.size-qty-input{
  width:58px;
  justify-self:end;
  box-sizing:border-box;
  background:#10141a;
  border:1px solid #303742;
  border-radius:8px;
  color:#fff;
  padding:8px 7px;
  text-align:center;
  font-size:12px;
  font-weight:850;
  outline:none;
}
.size-qty-input:focus{
  border-color:#ff3347;
  box-shadow:0 0 0 1px #ff3347;
}
.unit-price{
  color:#7d9ed1;
  text-align:right;
  font-size:12px;
}
.line-total{
  color:#fff;
  text-align:right;
  font-size:12px;
}
.size-order-total-row{
  min-height:52px;
  padding:0 20px;
  background:#1b2027;
  color:#fff;
}
.size-order-total-row strong:nth-child(2),
.size-order-total-row strong:nth-child(4){
  text-align:right;
}
.order-checkout-area{
  padding:18px 20px 20px;
}
.order-now-button{
  width:100%;
  border:0;
  border-radius:10px;
  background:#ff2e43;
  color:#fff;
  padding:15px 14px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
}
.order-now-button:hover{filter:brightness(1.06)}
.order-now-button:disabled{cursor:not-allowed;filter:none;opacity:.42}
.secure-note.checkout-error{color:#ff8b98}
.order-quantity-requirement{margin-top:10px;text-align:center;color:#ff8b98;font-size:11px;line-height:1.35}
.order-quantity-requirement.satisfied{display:none}
.secure-note{
  margin-top:13px;
  text-align:center;
  color:#657995;
  font-size:10px;
}

/* Version 1.43 selectable mockup environments */
.viewer[data-viewer-background="studio"]{
  background:
    radial-gradient(ellipse at 50% 44%,rgba(255,255,255,1) 0%,rgba(247,250,252,.98) 29%,rgba(222,228,234,.98) 60%,rgba(169,178,188,1) 100%);
}
.viewer[data-viewer-background="black"]{
  background:radial-gradient(ellipse at 50% 48%,#3b3d3f 0%,#292b2d 36%,#191a1c 68%,#0e0f11 100%);
}
.viewer[data-viewer-background="brick"]{
  background-color:#3b2928;
  background-image:
    radial-gradient(ellipse at 50% 42%,rgba(114,78,69,.48) 0%,rgba(44,29,29,.26) 55%,rgba(9,9,11,.72) 100%),
    repeating-linear-gradient(118deg,rgba(255,255,255,.025) 0 1px,transparent 1px 7px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='96' viewBox='0 0 180 96'%3E%3Crect width='180' height='96' fill='%233b2928'/%3E%3Cg fill='%23543a37' stroke='%238b665e' stroke-opacity='.38' stroke-width='2'%3E%3Crect x='1' y='1' width='88' height='45' rx='2'/%3E%3Crect x='91' y='1' width='88' height='45' rx='2'/%3E%3Crect x='-44' y='49' width='88' height='46' rx='2'/%3E%3Crect x='46' y='49' width='88' height='46' rx='2'/%3E%3Crect x='136' y='49' width='88' height='46' rx='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size:auto,auto,180px 96px;
  background-position:center,center,center;
}
.viewer>canvas{background:transparent!important;opacity:1;transition:opacity .14s ease-out}
.viewer.product-switching>canvas{opacity:0;transition:none}
.viewer>canvas.viewer-capture-freeze{position:absolute;inset:0;z-index:2;pointer-events:none}
.viewer[data-viewer-background="studio"] .loading-state strong{color:#171b20}
.viewer[data-viewer-background="studio"] .loading-state span,
.viewer[data-viewer-background="studio"] .loading-progress-text{color:#4e5967}
.viewer-left-tools{
  position:absolute;
  top:15px;
  right:16px;
  z-index:210;
  display:flex;
  align-items:center;
  gap:2px;
  padding:4px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:rgba(11,14,18,.94);
  box-shadow:0 8px 26px rgba(0,0,0,.28);
}
@media(min-width:901px){
  .viewer-panel>.viewer-toolbar>.toolbar-actions{
    position:static;
    margin-left:auto;
    gap:0;
    overflow:hidden;
    padding:0;
    border:1px solid #3a4653;
    border-radius:9px;
    background:#242c35;
    box-shadow:0 5px 16px rgba(0,0,0,.22);
  }
  .viewer-panel>.viewer-toolbar>.toolbar-actions button{
    min-height:34px;
    padding:7px 14px;
    border:0;
    border-left:1px solid transparent;
    border-radius:0;
    background:transparent;
    color:#eef3f8;
  }
  .viewer-panel>.viewer-toolbar>.toolbar-actions button+button{
    border-left-color:#3a4653;
  }
  .viewer-panel>.viewer-toolbar>.toolbar-actions button:hover,
  .viewer-panel>.viewer-toolbar>.toolbar-actions button:focus-visible{
    background:#34404c;
    color:#fff;
    outline:none;
  }
  .viewer-left-tools{
    top:16px;
    right:auto;
    left:16px;
    flex-direction:column;
  }
  .viewer-lighting-panel{
    left:var(--viewer-lighting-panel-left,72px);
    right:auto;
  }
  .viewer-background-panel{
    top:auto;
    right:auto;
    bottom:-4px;
    left:calc(100% + 9px);
  }
  .viewer-background-panel::before{
    top:auto;
    right:auto;
    bottom:19px;
    left:-6px;
    transform:rotate(-45deg);
  }
  .viewer-capture-status{
    top:0;
    right:auto;
    left:calc(100% + 8px);
  }
}
.viewer-capture-button,
.viewer-pick-color,
.viewer-lighting-button,
.viewer-background-button{
  position:relative;
  display:grid;
  width:40px;
  height:40px;
  flex:0 0 auto;
  place-items:center;
  padding:0;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#eef2f7;
  cursor:pointer;
}
.viewer-capture-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.viewer-pick-color svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.viewer-capture-button:hover,.viewer-capture-button:focus-visible,
.viewer-pick-color:hover,.viewer-pick-color:focus-visible,
.viewer-lighting-button:hover,.viewer-lighting-button:focus-visible,.viewer-lighting-button[aria-expanded="true"],
.viewer-background-button:hover,.viewer-background-button:focus-visible,.viewer-background-button[aria-expanded="true"]{
  border-color:#505b68;
  color:#fff;
  outline:none;
  background:#242b33;
}
.viewer-lighting-button[aria-expanded="true"],.viewer-background-button[aria-expanded="true"]{border-color:#ff5365;background:#21161a}
.viewer-pick-color.active{border-color:#ff5365;background:#21161a;color:#fff;box-shadow:0 0 0 1px rgba(255,51,71,.2)}
.viewer-capture-button:disabled{cursor:not-allowed;opacity:.45}
.viewer-capture-button.capturing:disabled{opacity:1}
.viewer-lighting-control{position:relative;flex:0 0 auto}
.viewer-lighting-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.viewer-lighting-button:disabled{cursor:not-allowed;opacity:.45}
.viewer-lighting-panel{
  position:fixed;
  top:var(--viewer-lighting-panel-top,150px);
  right:16px;
  width:340px;
  max-height:min(720px,calc(100dvh - var(--viewer-lighting-panel-top,150px) - var(--workflow-nav-height) - 12px));
  overflow:auto;
  padding:15px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  background:rgba(13,17,22,.97);
  color:#f2f5f8;
  box-shadow:0 18px 42px rgba(0,0,0,.42);
  backdrop-filter:blur(16px);
  scrollbar-width:thin;
  scrollbar-color:#596575 #171d24;
}
.viewer-lighting-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.viewer-lighting-panel-head strong{font-size:12px;font-weight:900;letter-spacing:.06em}
.viewer-lighting-panel-head span{color:#9ca8b7;font-size:10px;font-weight:700}
.viewer-lighting-section{min-width:0;margin:0;padding:13px 0 0;border:0;border-top:1px solid #2b333d}
.viewer-lighting-section+.viewer-lighting-section{margin-top:13px}
.viewer-lighting-section legend{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:0 0 9px;color:#e9edf2;font-size:10px;font-weight:900}
.viewer-lighting-section legend output{color:#99a6b6;font-size:10px;font-weight:700}
.viewer-lighting-preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.viewer-lighting-preset-grid button{
  min-height:58px;
  padding:8px 9px;
  border:1px solid #343d48;
  border-radius:8px;
  background:#171d24;
  color:#eef2f6;
  text-align:left;
  cursor:pointer;
}
.viewer-lighting-preset-grid button strong{display:block;font-size:10px;font-weight:900}
.viewer-lighting-preset-grid button small{display:block;margin-top:3px;color:#95a2b2;font-size:9px;line-height:1.25}
.viewer-lighting-preset-grid button:hover,.viewer-lighting-preset-grid button:focus-visible,.viewer-lighting-source-options button:hover,.viewer-lighting-source-options button:focus-visible,.viewer-lighting-direction button:hover,.viewer-lighting-direction button:focus-visible{border-color:#606c7b;color:#fff;outline:none}
.viewer-lighting-preset-grid button[aria-pressed="true"],.viewer-lighting-source-options button[aria-pressed="true"]{border-color:#ff4357;background:#25171c;box-shadow:0 0 0 1px rgba(255,51,71,.22)}
.viewer-lighting-direction{display:grid;grid-template-columns:repeat(3,42px);grid-template-rows:repeat(3,42px);justify-content:center;gap:4px}
.viewer-lighting-direction button{
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #3b4551;
  border-radius:50%;
  background:#171d24;
  color:#c9d1dc;
  font-size:18px;
  font-weight:800;
  cursor:pointer;
}
.viewer-lighting-direction button[aria-pressed="true"]{border-color:#ff4357;background:#ff3347;color:#fff;box-shadow:0 0 0 3px rgba(255,51,71,.13)}
.viewer-lighting-direction button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.viewer-lighting-direction .lighting-direction-top{grid-column:2;grid-row:1}
.viewer-lighting-direction .lighting-direction-front{grid-column:3;grid-row:1}
.viewer-lighting-direction .lighting-direction-left{grid-column:1;grid-row:2}
.viewer-lighting-direction .lighting-direction-center{grid-column:2;grid-row:2;display:grid;place-items:center;color:#778394}
.viewer-lighting-direction .lighting-direction-center svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.viewer-lighting-direction .lighting-direction-right{grid-column:3;grid-row:2}
.viewer-lighting-direction .lighting-direction-bottom{grid-column:2;grid-row:3}
.viewer-lighting-source-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.viewer-lighting-source-options button{min-height:34px;padding:5px;border:1px solid #343d48;border-radius:8px;background:#171d24;color:#b9c3d0;font-size:9px;font-weight:900;cursor:pointer}
.viewer-lighting-range{display:grid;gap:7px;margin-top:13px;color:#edf1f5;font-size:10px;font-weight:900}
.viewer-lighting-range>span{display:flex;align-items:center;justify-content:space-between;gap:12px}
.viewer-lighting-range output{color:#a2afbe;font-weight:700}
.viewer-lighting-range input{width:100%;margin:0;accent-color:#ff3347;cursor:pointer}
.viewer-lighting-follow{display:flex;align-items:center;gap:9px;margin-top:14px;padding-top:13px;border-top:1px solid #2b333d;color:#d8dee6;font-size:10px;font-weight:800;cursor:pointer}
.viewer-lighting-follow input{width:17px;height:17px;margin:0;accent-color:#ff3347}
.viewer-capture-status{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:max-content;
  max-width:260px;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:8px;
  background:rgba(11,14,18,.94);
  color:#e9eef5;
  font-size:10px;
  font-weight:800;
  box-shadow:0 8px 24px rgba(0,0,0,.34);
}
.viewer-capture-status[data-state="error"]{border-color:rgba(255,83,101,.55);color:#ff9cab}
.viewer-background-control{position:relative;flex:0 0 auto}
.viewer-background-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.viewer-background-indicator{
  position:absolute;
  right:5px;
  bottom:5px;
  width:8px;
  height:8px;
  border:1px solid rgba(255,255,255,.85);
  border-radius:50%;
  background:#f3f6f8;
  box-shadow:0 1px 3px rgba(0,0,0,.55);
}
.viewer-background-button[data-current-background="black"] .viewer-background-indicator{background:#151719}
.viewer-background-button[data-current-background="brick"] .viewer-background-indicator{border-radius:2px;background:#765047}
.viewer-background-panel{
  position:absolute;
  top:calc(100% + 9px);
  right:-4px;
  width:222px;
  padding:12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  background:rgba(13,17,22,.97);
  color:#f2f5f8;
  box-shadow:0 18px 42px rgba(0,0,0,.42);
  backdrop-filter:blur(16px);
}
.viewer-background-panel::before{
  content:"";
  position:absolute;
  top:-6px;
  right:19px;
  width:10px;
  height:10px;
  border-top:1px solid rgba(255,255,255,.18);
  border-left:1px solid rgba(255,255,255,.18);
  background:#11161c;
  transform:rotate(45deg);
}
.viewer-background-panel-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.viewer-background-panel-head strong{font-size:10px;font-weight:900;letter-spacing:.08em}
.viewer-background-panel-head span{color:#9ca8b7;font-size:10px;font-weight:700}
.viewer-background-options{display:grid;gap:6px}
.viewer-background-options button{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:7px 9px;
  border:1px solid #343d48;
  border-radius:8px;
  background:#171d24;
  color:#c5ced9;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.viewer-background-options button:hover,
.viewer-background-options button:focus-visible{
  border-color:#515a68;
  color:#fff;
  outline:none;
}
.viewer-background-options button.active{
  border-color:#ff4b5e;
  background:#25171c;
  color:#fff;
  box-shadow:0 0 0 2px rgba(255,51,71,.08);
}
.viewer-bg-swatch{
  width:15px;
  height:15px;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.34);
  border-radius:50%;
  box-shadow:0 1px 3px rgba(0,0,0,.35);
}
.viewer-bg-swatch-studio{background:radial-gradient(circle at 35% 30%,#fff 0 25%,#c8d0d8 70%,#858e99)}
.viewer-bg-swatch-black{background:radial-gradient(circle at 40% 38%,#4a4c4e,#0e0f11 78%)}
.viewer-bg-swatch-brick{
  border-radius:4px;
  background:
    linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px) 0 0/100% 7px,
    linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px) 0 0/9px 100%,
    #6b4038;
}
@media(max-width:760px){
  .viewer-left-tools{top:12px;right:10px}
  .viewer-lighting-panel{position:fixed;top:66px;right:10px;left:10px;width:auto;max-height:calc(100vh - 142px)}
  .viewer-background-panel{width:210px}
}
/* Version 1.42 blocking design-processing feedback */
.processing-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(3,5,8,.78);
  backdrop-filter:blur(8px) saturate(.75);
}
.processing-card{
  width:min(460px,100%);
  padding:30px;
  border:1px solid rgba(255,69,88,.42);
  border-radius:18px;
  background:linear-gradient(155deg,rgba(25,29,36,.98),rgba(12,15,20,.99));
  box-shadow:0 28px 100px rgba(0,0,0,.72),0 0 0 1px rgba(255,255,255,.025) inset;
  text-align:center;
}
.processing-orbit{
  position:relative;
  width:58px;
  height:58px;
  margin:0 auto 18px;
  border:3px solid #323843;
  border-top-color:#ff3449;
  border-right-color:#ff7180;
  border-radius:50%;
  animation:processing-spin .9s linear infinite;
}
.processing-orbit::before{
  content:"";
  position:absolute;
  inset:8px;
  border:2px solid rgba(255,255,255,.08);
  border-bottom-color:#fff;
  border-radius:50%;
  animation:processing-spin .65s linear infinite reverse;
}
.processing-orbit span{
  position:absolute;
  inset:50%;
  width:7px;
  height:7px;
  margin:-3.5px;
  border-radius:50%;
  background:#ff3347;
  box-shadow:0 0 18px rgba(255,51,71,.75);
}
.processing-kicker{
  color:#ff5b6d;
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
}
.processing-card h2{
  margin:8px 0 7px;
  color:#fff;
  font-size:25px;
  line-height:1.12;
  letter-spacing:-.025em;
}
.processing-detail{
  min-height:22px;
  margin:0;
  color:#aeb8c8;
  font-size:13px;
  line-height:1.55;
}
.processing-progress-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 42px;
  align-items:center;
  gap:12px;
  margin:22px 0 12px;
}
.processing-progress{
  height:10px;
  overflow:hidden;
  border:1px solid #3a414d;
  border-radius:999px;
  background:#090c10;
}
.processing-progress-bar{
  position:relative;
  width:8%;
  height:100%;
  overflow:hidden;
  border-radius:inherit;
  background:linear-gradient(90deg,#e91f34,#ff5264);
  box-shadow:0 0 18px rgba(255,51,71,.42);
  transition:width .32s ease-out;
}
.processing-progress-bar::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(100deg,transparent 10%,rgba(255,255,255,.55) 46%,transparent 82%);
  transform:translateX(-120%);
  animation:processing-shimmer 1.15s ease-in-out infinite;
}
.processing-progress-text{
  color:#fff;
  font:800 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  text-align:right;
}
.processing-lock-note{
  margin:0 0 18px;
  color:#778294;
  font-size:11px;
  line-height:1.45;
}
.stop-processing-button{
  width:100%;
  min-height:44px;
  border:1px solid #596270;
  border-radius:10px;
  background:#171c23;
  color:#f4f6f9;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}
.stop-processing-button:hover,.stop-processing-button:focus-visible{
  border-color:#ff4a5d;
  background:#24171c;
  outline:none;
  box-shadow:0 0 0 3px rgba(255,51,71,.12);
}
.stop-processing-button:disabled{cursor:wait;opacity:.55}
body.design-processing{cursor:wait}
@keyframes processing-spin{to{transform:rotate(360deg)}}
@keyframes processing-shimmer{to{transform:translateX(120%)}}

@media(max-width:600px){
  .processing-overlay{padding:16px}
  .processing-card{padding:24px 20px}
  .processing-card h2{font-size:22px}
}
@media(prefers-reduced-motion:reduce){
  .processing-orbit,.processing-orbit::before,.processing-progress-bar::after{animation:none}
  .processing-progress-bar{transition:none}
}

/* Version 1.39 readability pass */
.brand{font-size:16px}
.eyebrow{font-size:12px}
.view-intro,.intro{font-size:15px;color:#c0cad9}
.step-heading strong{font-size:16px}
.step-heading small{font-size:13px;color:#929daf;line-height:1.35}
.upload-empty,#uploadEmpty{font-size:14px}
.upload-preview span{font-size:14px}
.upload-preview small{font-size:12px;color:#909bad}
.text-button{font-size:13px}
.graphics-field{font-size:13px}
.text-accordion-header strong{font-size:16px}
.text-accordion-preview{font-size:13px;color:#9aa6b8}
.add-text-button{font-size:14px;padding:13px 14px}
.graphics-text-note{font-size:12px;color:#8794a8;line-height:1.5}
.chips button,.toolbar-actions button{font-size:11px}
.generate-button{font-size:14px}
.prototype-note{font-size:11px;color:#788497}
.viewer-title{font-size:13px}
.viewer-subtitle{font-size:12px;color:#909bad}
.loading-state span{font-size:12px}
.filter-chip{font-size:12px}
.tool-hint{font-size:12px;color:#929daf}
.workflow-nav-item{font-size:14px}
.nav-icon{font-size:18px}
.draft-save-status,.start-over-button{font-size:11px}
.header-right .build-version{font-size:11px!important}

@media(max-width:800px){
  .view-intro,.intro{font-size:14px}
  .step-heading strong{font-size:15px}
  .step-heading small{font-size:12px}
  .workflow-nav-item{font-size:11px}
}
@media(max-width:520px){
  .product-card-grid{grid-template-columns:1fr 1fr;gap:8px}
  .product-card{min-height:215px}
  .product-card-visual{height:140px}
  .product-card-copy{padding:10px}
  .shorts-product-row{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:9px}
  .shorts-row-thumbnail{width:72px;height:72px}
  .shorts-row-thumbnail svg{width:66px;height:58px}
  .shorts-product-row .product-coming-soon-badge{grid-column:2;justify-self:start}
  .viewer-product-heading{gap:8px}
}
@media(max-width:900px){
  body.product-not-selected .mobile-viewer-preview{display:none!important}
  body.product-not-selected.mobile-main-menu-active .control-view.active>.eyebrow,
  body.product-not-selected.mobile-main-menu-active .control-view.active>.view-title,
  body.product-not-selected.mobile-main-menu-active .control-view.active>.view-intro{max-width:none}
}

/* Version 1.58 mobile-first design library and expandable mockup */
.mobile-viewer-preview,
.mobile-library-sheet-handle{display:none}

@media(max-width:900px){
  .graphic-nudge-tip{display:none!important}
  .viewer canvas{touch-action:none}
  .orbit-control{right:10px;bottom:10px;width:86px;gap:0}
  .orbit-trackball{width:82px;height:82px}
  .orbit-control-label,.orbit-control-help{display:none}
  .orbit-sphere{width:29px;height:29px}
  body.mobile-main-menu-active{
    --mobile-nav-height:66px;
    overflow:hidden!important;
  }
  body.mobile-main-menu-active .workspace{
    position:relative!important;
    display:block!important;
    height:calc(100dvh - 64px - var(--mobile-nav-height))!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.mobile-main-menu-active .controls-panel{
    position:absolute!important;
    inset:0!important;
    z-index:7!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    padding:20px 16px 46px!important;
    border:0!important;
    background:#0c0e11!important;
  }
  body.mobile-main-menu-active .controls-panel.products-scroll-isolated{overflow:hidden!important}
  body.mobile-main-menu-active .viewer-panel{
    position:absolute!important;
    inset:0!important;
    z-index:6!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
  }
  body.mobile-main-menu-active .mobile-upload-design-option,
  body.mobile-main-menu-active #uploadDesignPanel{
    display:none!important;
  }
  body.mobile-main-menu-active .design-mode-fieldset{
    margin-top:30px;
  }
  body.mobile-main-menu-active #premadeDesignPanel:not(.hidden){
    display:block!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  body.mobile-main-menu-active .premade-library-header{
    position:sticky;
    top:-20px;
    z-index:8;
    display:block;
    margin:0 -2px 12px;
    padding:20px 122px 12px 2px;
    background:linear-gradient(180deg,#0c0e11 0%,#0c0e11 82%,rgba(12,14,17,.94) 100%);
  }
  body.mobile-main-menu-active .premade-library-heading .start-path-title{
    margin:0 0 5px;
    color:#fff;
    font-size:25px;
    line-height:1.08;
  }
  body.mobile-main-menu-active .premade-library-heading .view-intro{
    margin:0;
    color:#aeb9c9;
    font-size:12px;
    line-height:1.45;
  }
  body.mobile-main-menu-active .mobile-viewer-preview{
    position:sticky;
    top:12px;
    z-index:15;
    display:grid;
    gap:5px;
    width:108px;
    margin:0 0 -130px auto;
    padding:6px;
    border:1px solid #48515e;
    border-radius:15px;
    background:#171b21;
    color:#d8dee8;
    box-shadow:0 9px 28px rgba(0,0,0,.4);
    cursor:pointer;
  }
  body.mobile-main-menu-active .mobile-viewer-preview img{
    display:block;
    width:100%;
    aspect-ratio:1;
    border-radius:9px;
    object-fit:cover;
    background:#d7dde4;
  }
  body.mobile-main-menu-active .mobile-viewer-preview span{
    padding:1px 0 3px;
    font-size:11px;
    font-weight:850;
    text-align:center;
    letter-spacing:.015em;
  }
  body.mobile-main-menu-active .control-view.active > .eyebrow,
  body.mobile-main-menu-active .control-view.active > .view-title,
  body.mobile-main-menu-active .control-view.active > h1,
  body.mobile-main-menu-active .control-view.active > .view-intro,
  body.mobile-main-menu-active .control-view.active > .intro{
    max-width:calc(100% - 126px);
  }
  body.mobile-main-menu-active .control-view[data-control-view="order"].active{
    padding-top:142px!important;
  }
  body.mobile-main-menu-active .design-filter-row{
    position:relative;
    z-index:4;
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
    margin:0 -16px 14px;
    padding:0 16px 2px;
  }
  body.mobile-main-menu-active .design-filter-row::-webkit-scrollbar{display:none}
  body.mobile-main-menu-active .filter-chip{flex:0 0 auto;min-height:34px;padding:7px 11px;font-size:11px}
  body.mobile-main-menu-active .design-tab-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    padding-bottom:24px;
  }
  body.mobile-main-menu-active .premade-card{
    min-width:0;
    border-radius:13px;
  }
  body.mobile-main-menu-active .premade-card img{aspect-ratio:1;object-fit:cover}
  body.mobile-main-menu-active .viewer-background-switcher{display:none!important}

  body.mobile-main-menu-active.mobile-viewer-expanded .viewer-panel{
    z-index:10!important;
    inset:0 0 92px!important;
    height:auto!important;
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }
  body.mobile-main-menu-active.mobile-viewer-expanded .controls-panel{
    inset:auto 0 0!important;
    z-index:12!important;
    height:var(--mobile-sheet-current-height,92px)!important;
    padding:0!important;
    overflow:hidden!important;
    border-top:1px solid #3a424e!important;
    border-radius:20px 20px 0 0;
    background:rgba(14,17,22,.98)!important;
    box-shadow:0 -18px 45px rgba(0,0,0,.46);
    transition:height .3s cubic-bezier(.2,.8,.25,1);
  }
  body.mobile-main-menu-active.mobile-viewer-expanded .controls-panel > .control-view{
    display:none!important;
  }
  body.mobile-main-menu-active.mobile-viewer-expanded .mobile-viewer-preview{display:none!important}
  body.mobile-main-menu-active.mobile-viewer-expanded .mobile-library-sheet-handle{
    position:relative;
    z-index:5;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    width:100%;
    height:92px;
    padding:18px 20px 12px;
    border:0;
    background:transparent;
    color:#fff;
    text-align:left;
    touch-action:none;
    cursor:ns-resize;
  }
  .mobile-sheet-grabber{
    position:absolute;
    top:9px;
    left:50%;
    width:42px;
    height:5px;
    border-radius:999px;
    background:#606a78;
    transform:translateX(-50%);
  }
  .mobile-sheet-copy{display:grid;gap:4px}
  .mobile-sheet-copy strong{font-size:15px;line-height:1.15}
  .mobile-sheet-copy small{color:#9ca8b9;font-size:11px}
  .mobile-sheet-preview{display:none;align-items:center;gap:7px;color:#aeb9c9;font-size:9px;font-weight:750}
  .mobile-sheet-preview img{width:42px;height:42px;border-radius:8px;object-fit:cover;background:#d7dde4}

  body.mobile-main-menu-active.mobile-viewer-expanded.mobile-sheet-revealing .controls-panel > .control-view.active{
    display:block!important;
    min-height:calc(100% - 92px)!important;
    padding:8px 16px 50px!important;
    overflow:visible;
  }
  body.mobile-main-menu-active.mobile-viewer-expanded.mobile-sheet-revealing .mobile-sheet-preview{display:flex}
  body.mobile-main-menu-active.mobile-viewer-expanded.mobile-sheet-revealing .premade-library-header{top:0;padding-top:8px}
  body.mobile-main-menu-active.mobile-viewer-expanded.mobile-sheet-revealing .mobile-viewer-preview{display:none}
  body.mobile-main-menu-active.mobile-sheet-dragging .controls-panel{transition:none!important}
  body.mobile-main-menu-active.mobile-viewer-expanded .viewer-toolbar{
    padding:10px 12px;
    gap:8px;
  }
  body.mobile-main-menu-active.mobile-viewer-expanded .toolbar-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}
  body.mobile-main-menu-active.mobile-viewer-expanded .toolbar-actions button{padding:7px 9px;font-size:10px}
}

@media(max-width:700px){
  .image-quality-badge{left:12px;bottom:104px;min-height:36px;padding:8px 11px;font-size:11px;transform:none}
  .image-quality-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overflow:auto}
  .image-quality-dialog-header{padding:18px 17px 15px}
  .image-quality-dialog-header h2{font-size:23px}
  .image-quality-details{padding:9px 17px}
  .image-quality-warning,.image-quality-vector-note{margin-left:17px;margin-right:17px}
  .image-quality-dialog-actions{padding:16px 17px 18px}
  .help-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overflow:auto}
  .help-dialog-header{padding:18px 17px 15px}
  .help-dialog-header h2{font-size:25px}
  .help-dialog-header p{font-size:12px}
  .help-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .help-guide-item{min-height:158px;padding:16px 10px 14px}
  .help-guide-item h3{font-size:14px}
  .help-guide-item p{font-size:11px}
  .help-dialog-footer{padding:14px 17px}
  .help-dialog-footer button{width:100%;min-width:0}
}

@media(max-width:460px){
  .header-right{gap:6px}
  .help-button,.share-design-button,.start-over-button{padding:5px 7px;font-size:10px}
  .share-design-button span{display:none}
  .help-button svg{width:15px;height:15px}
  .header-right .build-version{padding:5px 6px!important;font-size:9px!important}
}

@media(max-width:900px){
  .install-app-button{display:none!important}
  .version-update-notice{left:50%;right:auto;bottom:70px;gap:8px;max-width:calc(100vw - 24px);padding:10px 10px 10px 14px;font-size:16px;transform:translateX(-50%)}
  .version-update-notice button{min-height:44px;padding:10px 14px;font-size:16px}
}

@media(max-width:700px){
  .share-design-dialog{width:calc(100vw - 20px)}
  .share-design-dialog-header{padding:18px 17px 15px}
  .share-design-dialog-header h2{font-size:23px}
  .share-design-link-row{grid-template-columns:1fr;padding:17px 17px 0}
  .share-design-status{margin-left:17px;margin-right:17px}
  .share-design-dialog-actions{padding:15px 17px 18px}
}

@media(max-width:800px){
  body.mobile-main-menu-active{--mobile-nav-height:58px}
}

body.checkout-confirmation-active{overflow:hidden}
.checkout-confirmation{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
  overflow:auto;
  background:
    radial-gradient(circle at 50% 18%,rgba(255,51,77,.14),transparent 42%),
    #0c0e11;
}
.checkout-confirmation[hidden]{display:none}
.checkout-confirmation-card{
  width:min(590px,100%);
  padding:50px 48px 44px;
  border:1px solid #343b46;
  border-radius:24px;
  background:linear-gradient(155deg,#171b21,#101318 72%);
  box-shadow:0 28px 80px rgba(0,0,0,.48);
  color:#f7f8fa;
  text-align:center;
}
.checkout-confirmation-icon{width:72px;height:72px;margin:0 auto 22px;color:#55e6ad}
.checkout-confirmation-icon svg{width:100%;height:100%;fill:rgba(85,230,173,.08);stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.checkout-confirmation.is-processing .checkout-confirmation-icon{color:#f5a328;animation:checkout-confirmation-pulse 1.4s ease-in-out infinite}
.checkout-confirmation.has-error .checkout-confirmation-icon{color:#ff6278}
.checkout-confirmation-kicker{margin:0 0 12px;color:#ff5b70;font-size:12px;font-weight:850;letter-spacing:.18em}
.checkout-confirmation-card h1{margin:0;font-size:clamp(31px,5vw,48px);line-height:1.06;letter-spacing:-.035em}
.checkout-confirmation-message{max-width:460px;margin:18px auto 0;color:#b6bfcc;font-size:16px;line-height:1.55}
.checkout-confirmation-details{margin:30px 0 0;padding:0;border:1px solid #343b46;border-radius:15px;background:#0d1014;text-align:left}
.checkout-confirmation-details div{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:58px;padding:12px 18px;border-bottom:1px solid #2a3039}
.checkout-confirmation-details div:last-child{border-bottom:0}
.checkout-confirmation-details dt{color:#929dab;font-size:13px;font-weight:700}
.checkout-confirmation-details dd{margin:0;color:#fff;font-size:14px;font-weight:850;overflow-wrap:anywhere;text-align:right}
.checkout-confirmation-note{margin:20px 0 0;color:#8994a3;font-size:13px;line-height:1.5}
.checkout-confirmation-actions{display:flex;justify-content:center;gap:12px;margin-top:28px}
.checkout-confirmation-actions button{min-height:48px;padding:0 22px;border-radius:11px;font:800 14px/1 inherit;cursor:pointer}
.checkout-confirmation-primary{border:1px solid #ff334d;background:#ff334d;color:#fff;box-shadow:0 10px 30px rgba(255,51,77,.2)}
.checkout-confirmation-secondary{border:1px solid #3e4754;background:#171c23;color:#fff}
@keyframes checkout-confirmation-pulse{50%{opacity:.48;transform:scale(.94)}}

@media(max-width:600px){
  .checkout-confirmation{padding:14px}
  .checkout-confirmation-card{padding:38px 22px 30px;border-radius:19px}
  .checkout-confirmation-actions{flex-direction:column-reverse}
  .checkout-confirmation-actions button{width:100%}
}

@media(prefers-reduced-motion:reduce){
  body.mobile-main-menu-active .viewer-panel,
  body.mobile-main-menu-active.mobile-viewer-expanded .controls-panel{transition:none}
  .checkout-confirmation.is-processing .checkout-confirmation-icon{animation:none}
}
