@font-face{font-family:"A4 Speed";src:url(/a4speed.woff2) format("woff2");font-weight:400 900;font-style:normal;font-display:block}:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#ededea;background:#060606;font-synthesis:none;--accent:#f9262a;--border:#26262a;--muted:#9a9a9f;--paper:#ededea;--display:"A4 Speed","Arial Narrow",Impact,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{border:0;background:none}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:88px;display:flex;align-items:center;padding:0 28px;gap:54px;border-bottom:1px solid var(--border);background:#0a0a0b}.brand{display:flex;align-items:center;gap:12px;font-family:var(--display);font-size:21px;letter-spacing:0;font-weight:400;font-style:normal}.brand small{display:block;font-family:system-ui,sans-serif;font-size:8px;letter-spacing:3.5px;font-weight:600;font-style:normal;margin-top:4px;color:var(--muted)}.brandmark{width:36px;height:auto;display:block;object-fit:contain}.brandmark span{font-size:17px;position:absolute;right:1px;top:0}.topbar nav{height:100%;display:flex;align-items:stretch;gap:28px}.nav{font-size:13px;color:#9ba3aa;padding:0 0;position:relative}.nav.active{color:white}.nav.active:after{content:'';position:absolute;height:3px;background:var(--accent);bottom:0;left:0;right:0}.nav span{font-size:10px;margin-left:3px;background:#1f1f22;border-radius:3px;padding:2px 5px}.top-actions{display:flex;align-items:center;gap:12px;margin-left:auto}.button{min-height:40px;border:1px solid #323236;border-radius:5px;padding:10px 15px;font-size:12px;font-weight:600;transition:background .18s}.button:hover:not(:disabled){background:#1f1f22}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.primary:hover:not(:disabled){background:#d41e21}.button.primary span{margin-left:18px}.button.quiet{border-color:var(--border)}.button.full{width:100%;margin:6px 0}.save-state{font-size:10px;color:#9ba8a1;margin-right:10px}.save-state:before{content:'●';color:#96b89d;margin-right:6px;font-size:7px}.save-state.unsaved{color:#ffb0b2}.save-state.unsaved:before{color:var(--accent)}.workspace{display:grid;grid-template-columns:78px 296px minmax(0,1fr);height:calc(100dvh - 88px);min-height:620px}.rail{border-right:1px solid var(--border);display:flex;flex-direction:column;padding:15px 7px;background:#0a0a0b}.rail-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;height:73px;width:100%;font-size:10px;color:#8e979e;border-radius:6px;margin-bottom:6px}.rail-button>span{font-size:25px;line-height:27px;font-weight:300}.rail-button:hover{background:#1a1a1c}.rail-button.active{background:#3a1113;color:#ff8a8c}.rail-bottom{margin-top:auto;text-align:center}.build-tag{font-size:8px;letter-spacing:2px;color:#59636b}.inspector{overflow-y:auto;border-right:1px solid #26262a;background:#0e0e10;padding:27px 22px 35px;scrollbar-width:thin;scrollbar-color:#50575b transparent}.eyebrow{font-size:8px;letter-spacing:1.9px;font-weight:700;color:#929cA5}.panel-title{padding-bottom:7px}.panel-title h1{font-family:var(--display);font-size:25px;letter-spacing:0;margin:12px 0 8px;font-weight:400;text-transform:uppercase}.panel-title h1 span{color:var(--accent)}.panel-title p{font-size:11px;line-height:1.6;color:#9aa3ab;margin:0 0 10px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 13px}.section-head h2{font-size:11px;font-weight:600;margin:0}.section-head>span{font-size:9px;color:#68737b;font-family:monospace}.palettes{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.palette{height:32px;border:1px solid transparent;display:flex;padding:4px;border-radius:5px}.palette.selected{border-color:#e5e6de}.palette span{flex:1}.palette span:first-child{border-radius:2px 0 0 2px}.palette span:last-child{border-radius:0 2px 2px 0}.color-fields{margin-top:14px}.color-fields label{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#b4bcc1;margin:9px 0}.color-fields label>span{display:flex;gap:8px;align-items:center;border:1px solid #2c2c30;border-radius:4px;padding:3px 7px 3px 3px;background:#09090a}.color-fields input{width:23px;height:22px;border:0;padding:0;background:none;cursor:pointer}.color-fields code{font-size:9px;width:53px;text-transform:uppercase;color:#d9dedf}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:0;border-radius:2px}.pattern-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.pattern-grid button{font-size:9px;color:#9ea8af;padding:0}.pattern-thumb{display:block;height:43px;background-color:#e0e0dd;border:2px solid transparent;border-radius:4px;margin-bottom:8px;overflow:hidden;position:relative}.pattern-grid button.selected{color:#fff}.pattern-grid button.selected i{border-color:var(--accent)}.pattern-thumb.apex{background:linear-gradient(145deg,#ececeb 27%,#f9262a 28%,#f9262a 44%,#ececeb 45%,#ececeb 52%,#303a42 53%,#303a42 60%,#ececeb 61%)}.pattern-thumb.orbit{background:linear-gradient(#ececeb 30%,#f9262a 31%,#f9262a 51%,#ececeb 52%,#ececeb 60%,#303a42 61%,#303a42 70%,#ececeb 71%)}.pattern-thumb.split{background:linear-gradient(90deg,#ececeb 38%,#f9262a 39%,#f9262a 66%,#303a42 67%,#303a42 73%,#ececeb 74%)}.range-label{display:flex;justify-content:space-between;flex-wrap:wrap;font-size:10px;color:#a7b0b6;margin:18px 0 10px;gap:8px}.range-label input{width:100%}.range-label output{font-family:monospace;color:#dfe2e1}input[type=range]{width:100%;accent-color:var(--accent);height:3px;cursor:pointer}.segmented{display:flex;border:1px solid #2c2c30;border-radius:5px;padding:3px;gap:3px}.segmented button{flex:1;border-radius:3px;font-size:10px;padding:8px 10px;color:#9ca5ab;white-space:nowrap}.segmented button.selected{background:#2a2a2e;color:#fff}.field{display:flex;flex-direction:column;gap:8px;font-size:10px;color:#aeb6bb;margin:14px 0}.field input,.field textarea{min-width:0;width:100%;background:#09090a;color:#e4e7e7;border:1px solid #2c2c30;border-radius:4px;padding:10px;font-size:12px}.field textarea{resize:vertical;line-height:1.7}.identity-row{display:flex;gap:20px;align-items:center}.identity-row .field{width:68px}.check{display:flex;align-items:center;font-size:10px;color:#aeb6bb;gap:5px}.check input{accent-color:var(--accent)}.stage-area{display:flex;flex-direction:column;min-width:0;background:var(--paper);color:#242c30}.project-bar{height:91px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 35px;border-bottom:1px solid #d6d6d4}.project-bar .eyebrow{color:#8d938d;font-size:8px}.project-bar input{display:block;background:none;border:0;padding:7px 0 0;font-size:19px;font-weight:500;letter-spacing:-.5px;color:#242c30;width:350px;max-width:100%;text-overflow:ellipsis}.history-buttons{display:flex;align-items:center;gap:7px}.history-buttons button{font-size:22px;width:32px;height:34px;border-radius:4px}.history-buttons button:hover:not(:disabled){background:#dededc}.separator{height:20px;width:1px;background:#d6d6d4;margin:0 5px}.stage{position:relative;flex:1;min-height:350px;overflow:hidden;background:radial-gradient(ellipse at 50% 38%,#fbfbfa 0%,#efefee 52%,#e3e3e1 100%)}.stage:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#a8a8a6 0.6px,transparent .6px);background-size:20px 20px;opacity:.18}.stage-top{position:absolute;top:25px;left:34px;right:34px;z-index:2;display:flex;justify-content:space-between;align-items:center}.live-badge{font-size:8px;letter-spacing:1.4px;color:#737e76;display:flex;align-items:center;gap:6px}.live-badge i{width:5px;height:5px;background:#648771;border-radius:50%}.view-switch{background:#f4f4f3;border-color:#d6d6d4}.view-switch button{font-size:10px;color:#7c847d}.view-switch button.selected{background:#263039;color:white}.stage-watermark{position:absolute;left:6%;top:23%;font-family:var(--display);font-size:clamp(34px,4.4vw,76px);line-height:1.02;font-weight:400;letter-spacing:0;color:#cccccb;opacity:.22;user-select:none}.ground-shadow{position:absolute;width:38%;height:10%;bottom:12%;left:31%;background:#5a5a58;border-radius:50%;filter:blur(28px);opacity:.22}#helmet-canvas{position:relative;width:100%;height:100%;display:block;touch-action:none;cursor:grab;min-height:350px}#art-wrap{position:absolute;inset:110px 35px 65px;display:flex;justify-content:center;flex-direction:column}#art-canvas{width:100%;height:auto;max-height:100%;object-fit:contain;box-shadow:0 12px 40px #29332020;touch-action:none;background:white}.uv-labels{display:flex;justify-content:space-between;font-size:7px;letter-spacing:1px;color:#8b938a;margin-top:12px}.stage-caption{position:absolute;left:35px;right:35px;bottom:24px;display:flex;justify-content:space-between;color:#8b9489;font-size:8px;letter-spacing:1px;pointer-events:none}.stage-caption span:last-child{letter-spacing:0;font-size:10px}.view-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #d6d6d4;height:64px;padding:0 30px;background:#eaeae8}.view-buttons{display:flex;gap:7px}.view-buttons button,.rotate-button{font-size:10px;padding:8px 11px;border-radius:4px;color:#7c857b}.view-buttons button.selected{background:#fff;color:#263329;box-shadow:0 1px 3px #0000000e}.rotate-button{border:1px solid #ccccca;white-space:nowrap}.rotate-button[aria-pressed=true]{color:#f9262a;border-color:var(--accent)}.stage-footer{height:83px;padding:0 35px;display:flex;align-items:center;justify-content:space-between;background:#f4f4f3;border-top:1px solid #d6d6d4}.stage-footer>div{display:flex;align-items:center;gap:13px}.footer-icon{font-size:28px;color:#687665}.stage-footer strong{font-size:11px;font-weight:500}.stage-footer p{font-size:9px;color:#8c9388;margin:7px 0 0}.footer-label{font-size:7px;letter-spacing:1.7px;color:#9aa190}.hint{font-size:10px;color:#929da5;line-height:1.8;margin:14px 0}.notice{border:1px solid #3a3226;background:#1a1410;color:#e4cc9b;padding:13px;border-radius:5px;font-size:11px;line-height:1.65;margin:15px 0}.prompt-chips{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.prompt-chips button{font-size:9px;border:1px solid #2c2c30;border-radius:20px;padding:7px 10px;color:#b4bdc5}.draw-settings{display:flex;gap:15px}.draw-settings .field{flex:1}.draw-settings input[type=color]{height:31px;padding:3px}.layer{display:flex;align-items:center;gap:8px;border:1px solid #2c2c30;padding:9px;margin:7px 0;border-radius:4px;font-size:10px}.layer.selected{border-color:var(--accent)}.layer .layer-name{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 0}.layer button{font-size:12px}.layer.invisible{opacity:.5}.empty-state{border:1px dashed #2c2c30;padding:20px 12px;text-align:center;font-size:11px;color:#9ba6af;line-height:1.8}.button-row{display:flex;gap:8px}.button-row>*{flex:1}.model-card{background:#0c0c0e;border:1px solid #414b53;padding:22px 17px;border-radius:6px;margin:15px 0}.model-icon{font-size:42px;color:#f9262a}.model-card h2{font-family:var(--display);font-size:15px;font-weight:400;text-transform:uppercase;margin:18px 0 10px}.model-card p{font-size:11px;color:#a1adb4;line-height:1.8}.tag{display:inline-block;font-size:7px;letter-spacing:1.1px;border:1px solid #2c2c30;border-radius:3px;color:#b7c3b8;padding:6px 8px;margin:8px 0 0}.icon-button{font-size:26px;width:38px;height:38px;border-radius:4px}.icon-button:hover{background:#3a4248}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#141416;color:#fff;border:1px solid #323236;border-radius:7px;box-shadow:0 10px 50px #0003;max-width:90%;font-size:12px;z-index:10;line-height:1.6}dialog{width:min(830px,calc(100vw - 32px));max-height:88dvh;overflow:auto;background:#0e0e10;color:#e8ecec;border:1px solid #323236;border-radius:12px;padding:28px;box-shadow:0 20px 100px #0007}dialog::backdrop{background:#000000c4;backdrop-filter:blur(5px)}.modal-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.modal-top h2{font-family:var(--display);font-size:25px;letter-spacing:0;font-weight:400;text-transform:uppercase;margin:8px 0 0}.modal-top .eyebrow{font-size:8px}.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.export-card{padding:22px;background:#0c0c0e;border:1px solid #2c2c30;border-radius:6px;text-align:left}.export-card strong{display:block;font-size:14px;margin-bottom:9px}.export-card p{font-size:11px;line-height:1.7;color:#a3afb6;margin:0}.version-card{border:1px solid #2c2c30;border-radius:7px;overflow:hidden;background:#0c0c0e}.version-card img{width:100%;display:block;aspect-ratio:2/1;object-fit:cover}.version-body{padding:15px}.version-body strong{font-size:13px}.version-body p{font-size:10px;color:#97a5ae}.version-body .button-row{margin-top:15px}.compare-view{display:grid;grid-template-columns:1fr 1fr;gap:12px}.compare-view canvas{width:100%;height:auto}.compare-view h3{font-size:12px;font-weight:400}.brief-preview{display:block;width:100%;max-height:310px;object-fit:contain;background:#e8ebe3;border-radius:6px}.brief-swatches{display:flex;gap:12px;margin:20px 0}.brief-swatch{flex:1}.brief-swatch i{display:block;height:36px;border-radius:3px;margin-bottom:8px}.brief-swatch span{font-size:10px;color:#acb8c0}.brief-text{white-space:pre-wrap;font-family:inherit;line-height:1.8;font-size:12px;color:#c3cdd3}.help-copy{font-size:13px;line-height:1.8;color:#b8c3ca}.ai-card{border:1px solid #2c2c30;border-radius:6px;padding:16px;margin-top:16px;background:#0c0c0e}.ai-card h3{font-size:14px;margin-top:0}.ai-card p{font-size:11px;line-height:1.8;color:#b0c3b9}.ai-card img{width:100%;border-radius:4px}.ai-swatches{display:flex;margin:10px 0}.ai-swatches span{height:26px;flex:1}.loading{animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.45}}
@media(min-width:1600px){.workspace{grid-template-columns:88px 330px minmax(0,1fr)}.inspector{padding:32px}.stage-watermark{font-size:140px}.panel-title h1{font-size:30px}}
@media(max-width:1150px){.topbar{gap:25px;padding:0 20px}.topbar nav{gap:18px}.save-state{display:none}.workspace{grid-template-columns:65px 260px minmax(0,1fr)}.inspector{padding:24px 17px}.stage-top{left:22px;right:22px}.project-bar{padding:0 23px}.project-bar input{width:240px;font-size:17px}.footer-label{display:none}.view-bar{padding:0 13px}.view-buttons{gap:0}.view-buttons button{padding:8px}.rotate-button span{display:none}.stage-caption{left:22px;right:22px}.stage-watermark{letter-spacing:-4px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

#webgl-error{position:absolute;bottom:50px;left:24px;right:24px;z-index:3;margin:0;padding:9px 12px;font-size:10px}body:has(#webgl-error:not([hidden])) #art-wrap{bottom:100px}

/* Surface editing controls */
.surface-editor{border:1px solid var(--border,#d4d8cf);border-radius:12px;padding:14px;margin:18px 0}.surface-editor .tag{font-size:8px;letter-spacing:.04em}.area-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.area-grid .button{padding:9px 3px;font-size:11px}.area-grid .selected{background:#f9262a;color:#151b21;border-color:#f9262a}.area-colour{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0;font-size:12px}.area-colour input{width:38px;height:30px;padding:2px}.symmetry-toggle{display:flex;align-items:center;gap:9px;font-size:12px;margin-top:14px}.symmetry-toggle input{accent-color:#f9262a}.surface-status{position:absolute;left:50%;bottom:66px;transform:translateX(-50%);max-width:calc(100% - 32px);padding:9px 14px;border-radius:20px;background:#f8f8f1ed;color:#263238;font-size:11px;text-align:center;pointer-events:none;z-index:3}.field select{width:100%;padding:10px;border:1px solid #586267;border-radius:6px;background:#242c31;color:#f6f7f2}.button:disabled,input:disabled,select:disabled{opacity:.45;cursor:not-allowed}@media(max-width:600px){.surface-status{bottom:54px;font-size:10px}.surface-editor{margin:12px 0}}

/* Phone workspace: shared editor state, full-width canvas and thumb-reachable tools. */
.mobile-only{display:none}
button,select{-webkit-tap-highlight-color:transparent}select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:900px),(max-width:1100px) and (max-height:520px){
 body{height:var(--app-height,100dvh);overflow:hidden;display:flex;flex-direction:column}
 .mobile-only{display:inline-block}.desktop-label{display:none}
 .topbar{height:calc(56px + env(safe-area-inset-top));min-height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:10px;flex-shrink:0}
 .brand{font-size:17px;letter-spacing:-.6px;gap:0}.brandmark{display:none}.brand small{font-size:6px;letter-spacing:2.1px}.topbar nav{display:none}.top-actions{gap:6px}.top-actions .button{min-height:44px;padding:8px 10px;font-size:12px}.top-actions .button.primary span{display:none}#mobile-more{min-width:44px;letter-spacing:1px}.save-state{display:none}
 .workspace{display:flex;flex-direction:column;flex:1;min-height:0;height:auto;padding-bottom:calc(68px + env(safe-area-inset-bottom));position:relative}
 .rail{position:absolute;z-index:6;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(68px + env(safe-area-inset-bottom));padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border:0;border-top:1px solid #424b52;background:#0a0a0b;box-shadow:0 -4px 22px #0002}
 .rail-button{display:flex;min-height:44px;height:56px;margin:0;gap:3px;font-size:11px;border-radius:8px}.rail-button>span{font-size:22px;line-height:24px}.rail-bottom{display:none}.rail-button[aria-pressed=true]{background:#3a1113;color:#ff8f91}
 .stage-area{order:0;flex:0 0 54%;min-height:240px;overflow:hidden;width:100%}
 .project-bar{height:52px;padding:0 12px;gap:6px}.project-bar>div:first-child{flex:1;min-width:0}.project-bar .eyebrow{font-size:7px;letter-spacing:1px}.project-bar input{width:100%;font-size:16px;padding:4px 0 0;letter-spacing:-.3px}.history-buttons{gap:0;flex-shrink:0}.history-buttons button{width:44px;height:44px;font-size:23px}.history-buttons .separator{display:none}.history-buttons #import-project{display:block}
 .stage{flex:1;min-height:0;height:auto}.stage-top{top:8px;left:12px;right:12px;gap:8px}.live-badge{display:none}.view-switch{margin-right:auto}.segmented button{min-height:44px;font-size:12px;padding:8px 12px}.view-switch button{min-height:44px;font-size:11px;padding:7px 10px}.zoom-controls{display:flex;flex-shrink:0;background:#f4f4f3;border:1px solid #d6d6d4;border-radius:6px}.zoom-controls button{width:44px;height:44px;font-size:21px;color:#27333c}.zoom-controls button+button{border-left:1px solid #d6d6d4}
 #helmet-canvas{position:absolute;inset:0;min-height:0;height:100%;width:100%}.stage-watermark{font-size:clamp(48px,12vw,85px);letter-spacing:-4px;top:32%;left:7%}.ground-shadow{bottom:12%;filter:blur(18px)}.stage-caption{display:none}.surface-status{left:12px;right:12px;bottom:6px;transform:none;max-width:none;width:auto;border-radius:6px;font-size:10px;line-height:1.4;padding:5px 8px;background:#f8f8f1e8}
 #art-wrap{inset:62px 12px 40px}.uv-labels{font-size:6px;letter-spacing:0;margin-top:5px}.view-bar{height:48px;min-height:48px;padding:0 8px;gap:4px;flex-shrink:0}.view-buttons{display:flex;flex:1;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:2px}.view-buttons::-webkit-scrollbar{display:none}.view-buttons button{font-size:11px;padding:8px 12px;min-height:44px;flex-shrink:0}.rotate-button{min-width:44px;height:44px;padding:8px;font-size:18px}.rotate-button span{display:none}.stage-footer{display:none}
 .view-bar:has(#mobile-done:not([hidden])) .view-buttons,.view-bar:has(#mobile-done:not([hidden])) #rotate{display:none}.canvas-done{width:100%;margin:0;background:#263039;color:white;border:0}
 .inspector{order:1;flex:1;min-height:0;max-height:none;display:flex;flex-direction:column;padding:0;border:0;border-top:1px solid #465057;border-radius:16px 16px 0 0;overflow:hidden;box-shadow:0 -4px 16px #0001}
 .mobile-sheet-heading{display:flex;align-items:center;justify-content:space-between;min-height:48px;height:48px;flex-shrink:0;padding:0 16px;background:#141416;border-bottom:1px solid #26262a}.mobile-sheet-heading strong{font-size:14px;font-weight:600}.mobile-sheet-heading button{min-height:44px;padding:8px 0 8px 16px;font-size:12px;color:#ffa5a7}
 #inspector-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:16px max(16px,env(safe-area-inset-right)) 28px max(16px,env(safe-area-inset-left));scrollbar-width:thin;scroll-padding:12px}
 .panel{max-width:650px;margin:auto;min-width:0}.panel-title h1{font-size:26px;margin:8px 0}.panel-title p{font-size:12px;margin-bottom:4px}.eyebrow{font-size:9px}.section-head{margin:20px 0 12px}.section-head h2{font-size:13px}.hint{font-size:12px;line-height:1.65}.notice{font-size:12px}.button{min-height:44px;font-size:13px;padding:11px 12px}.button-row{flex-wrap:wrap}.palettes{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.palette{height:44px}.pattern-thumb{height:52px}.pattern-grid button{font-size:12px;min-height:72px}
 .color-fields{display:block}.color-fields label{font-size:13px;margin:10px 0}.color-fields input{width:44px;height:38px}.color-fields code{font-size:12px;width:65px}.color-fields label>span{padding:3px 8px 3px 3px}.field,.range-label{font-size:13px}.field input,.field textarea,.field select{font-size:16px;min-height:44px}.field textarea{max-height:220px}.field input{max-width:100%}input[type=range]{height:44px;margin:0}input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.check,.symmetry-toggle{min-height:44px;font-size:13px}.draw-settings input[type=color]{height:44px}
 .surface-editor{padding:12px;margin:14px 0}.surface-editor .section-head{margin-top:0}.surface-editor .tag{font-size:8px}.area-grid .button{font-size:12px;min-height:44px}.area-colour{font-size:13px}.area-colour input{width:48px;height:44px}.prompt-chips button{min-height:44px;font-size:12px}.layer{padding:4px;gap:2px}.layer button{min-width:44px;min-height:44px;font-size:13px}.layer .layer-name{min-width:0;padding:5px;white-space:normal;overflow-wrap:anywhere}.model-card p,.ai-card p{font-size:12px}
 .mobile-controls-collapsed .stage-area{flex:1;min-height:0}.mobile-controls-collapsed .inspector{flex:0 0 48px;min-height:48px;border-radius:0}
 .mobile-keyboard-open .stage-area{flex:0 0 140px;min-height:140px}.mobile-keyboard-open .view-bar{display:none}.mobile-keyboard-open .stage-top{display:none}.mobile-keyboard-open #art-wrap{inset:8px 12px 25px}
 .toast{bottom:calc(80px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);width:max-content;padding:10px 14px;font-size:12px}dialog{width:calc(100vw - 24px);max-height:calc(var(--app-height,100dvh) - 32px);padding:18px;border-radius:14px}.modal-top{gap:12px;margin-bottom:18px}.modal-top h2{font-size:23px}.icon-button{width:44px;height:44px;flex-shrink:0}.modal-grid,.compare-view{grid-template-columns:1fr}.brief-swatches{gap:6px;flex-wrap:wrap}.brief-swatch{min-width:75px}.brief-text{overflow-wrap:anywhere}.export-card{min-height:90px}.mobile-actions{display:grid;gap:10px}.mobile-actions .button{text-align:left;padding:14px;min-height:48px}
 #webgl-error{bottom:42px;left:12px;right:12px;font-size:10px}body:has(#webgl-error:not([hidden])) #art-wrap{bottom:90px}
}
@media(max-width:360px){.topbar{gap:6px}.brand{font-size:15px}.top-actions{gap:4px}.top-actions .button{padding:8px}.palettes{grid-template-columns:repeat(3,minmax(0,1fr))}.view-switch button{padding:7px 8px}.surface-editor .tag{letter-spacing:0;padding:5px}.identity-row{gap:12px}}
@media(max-width:1100px) and (max-height:520px){
 .workspace{flex-direction:row;padding-bottom:calc(60px + env(safe-area-inset-bottom))}.rail{height:calc(60px + env(safe-area-inset-bottom));padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom))}.rail-button{height:54px}.stage-area{flex:1;min-height:0;min-width:0;width:54%}.inspector{flex:0 0 46%;width:46%;border-radius:0;border-left:1px solid #465057}.mobile-controls-collapsed .inspector{display:none}.mobile-controls-collapsed .stage-area{width:100%}.project-bar{height:44px}.project-bar .eyebrow{display:none}.stage-top{top:5px}.surface-status{font-size:9px}.mobile-keyboard-open .stage-area{flex:1;min-height:0}.mobile-keyboard-open .inspector{flex-basis:60%}
}
.auth-form{display:grid;gap:2px}
.auth-form .button.full{margin-top:10px}
.account-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--border);margin-bottom:18px}
.account-head strong{font-family:var(--display);font-size:16px;font-weight:400;text-transform:uppercase;letter-spacing:.01em}
.account-head .hint{margin:4px 0 0}
.sub-list{display:grid;gap:8px}
.sub-row{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:5px;padding:11px 13px;font-size:11px}
.sub-row strong{font-family:var(--display);font-size:13px;font-weight:400;letter-spacing:.02em;min-width:76px}
.sub-row .tag{margin:0}
.sub-row span:last-child{margin-left:auto;color:var(--muted)}
#nav-account{font-family:var(--display);font-size:14px;letter-spacing:.01em;text-transform:uppercase}
