/* FORM / LAB 0.5 — a quiet, task-first industrial design workspace.
   Loaded after style.css; no external fonts or assets. */
:root{--ink:#252a27;--muted:#717770;--green:#345346;--lime:#d9e1cb;--line:#dce0d8;--paper:#f3f3ee;--white:#fff;--ui-radius:10px;--header-height:68px;--stage-height:clamp(440px,56vh,700px)}
body{font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font-size:13px}button{border-radius:7px;min-height:38px;padding:9px 13px;font-weight:500}button:hover{background:#e9ede5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a8b79a;outline-offset:3px}button:disabled{opacity:.5}input:focus,select:focus,textarea:focus{border-color:#6d856f}input[aria-invalid=true]{border-color:#b85d46;box-shadow:0 0 0 2px #b85d461a}
header{height:var(--header-height);gap:24px;padding:0 26px;background:#fdfdf9;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:70}header .wordmark{font-size:24px;letter-spacing:-1.2px;line-height:1.05}header .wordmark span{color:#8a9477;margin:0 4px}header .wordmark small{font-size:9px;letter-spacing:1.8px;margin-top:5px}.project-title{padding-left:24px;gap:12px;min-width:0}.project-title input{font-size:13px;width:min(290px,28vw);min-width:0;padding-left:0;color:#5a625a}.version{font-size:11px;padding:3px 7px;white-space:nowrap;background:#f3f4ed}.header-actions{gap:8px;flex:none}.header-actions>span{font-size:12px;color:#757d70}.header-actions button{font-size:13px;min-height:38px}.primary{background:#345346;border-color:#345346;color:#fff}.primary:hover{background:#233e32;border-color:#233e32}.plain{color:#596454}.green-dot{width:6px;height:6px;background:#779967}
.shell{min-height:calc(100vh - var(--header-height));align-items:flex-start}#rail{width:72px;position:sticky;top:var(--header-height);height:calc(100vh - var(--header-height));padding:18px 6px;gap:7px;background:#fdfdf9;border-right:1px solid var(--line);z-index:55;flex-shrink:0}#rail button{min-height:65px;padding:10px 4px;gap:6px;font-size:12px;color:#73796f;border-radius:9px;position:relative}#rail button svg{width:21px;height:21px;stroke-width:1.55}#rail button.active{background:#e6ecdf;color:#304c39;font-weight:650}#rail button.active:before{content:'';position:absolute;left:-6px;top:16px;bottom:16px;width:3px;background:#486248;border-radius:0 3px 3px 0}#rail button:hover{background:#eef0e8}
main{padding:22px 26px 0;max-width:none;margin:0;width:calc(100% - 72px)}.workspace-heading{margin-bottom:18px;gap:20px;align-items:center}.eyebrow{font-size:10px;font-weight:650;letter-spacing:2.1px;color:#7a846d}h1{font-size:25px;font-weight:580;letter-spacing:-.5px;line-height:1.3;margin:6px 0}.workspace-heading p{font-size:13px;color:#737b6d;line-height:1.6}.team-pill b{font-size:12px;color:#697463}.team-pill>span{font-size:11px;width:29px;height:29px}.workbench{grid-template-columns:minmax(0,1fr) 326px;gap:18px;align-items:stretch}.stage-panel{border-radius:var(--ui-radius);border-color:#d6dbd1;box-shadow:0 8px 28px #17261b08;min-width:0}.stage-toolbar{padding:11px 14px;min-height:60px;background:#fdfdfb}.segmented{background:#ecefe7;padding:3px;border-radius:8px;gap:2px}.segmented button{font-size:12px;min-height:34px;padding:7px 13px}.segmented button.active{color:#2d4434;box-shadow:0 1px 4px #15261a14}.stage-tools button{font-size:12px;min-height:34px;padding:6px 9px;color:#5d6c5c}.studio-bar{padding:9px 14px;gap:8px;min-height:52px;background:#172029;border-color:#2b353e}.studio-bar #studioPresets{gap:4px}.studio-chip{font-size:12px;min-height:32px;padding:6px 9px;color:#b8c1c6}.studio-chip:before{width:7px;height:7px;margin-right:5px}.studio-chip.active{background:#303d48;border-color:#788991}.studio-actions button{font-size:12px;min-height:32px;padding:6px 9px;color:#d0d8df;background:#26323d}.studio-actions{flex:none}
#viewport{height:var(--stage-height);background:#0b1118}#sceneCanvas,#photoCanvas{display:block;width:100%;height:100%;touch-action:none}#photoCanvas[hidden],#sceneCanvas[hidden]{display:none}.stage-mark{top:21px;left:23px;gap:7px}.stage-mark span{font:10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.3px;color:#93a2ad}.stage-mark b{font:500 12px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:1.8px;color:#e0e5e9}.scale-tag{display:block;top:23px;right:22px;font:11px ui-monospace,SFMono-Regular,Consolas,monospace;color:#aab7c1}.stage-caption{font-size:12px;bottom:17px;left:22px;right:18px;line-height:1.5;color:#b6c3cb}.camera-bar{padding:9px 14px;min-height:49px;background:#fcfcf8;gap:8px}.camera-bar>span{font-size:11px;white-space:nowrap;color:#858c80}#cameraViews{gap:3px;min-width:0}#cameraViews button{font-size:12px;min-height:30px;padding:5px 9px}#cameraViews button.active{background:#e5ecd9;color:#3b5b32}.selection-strip{padding:14px 18px;gap:14px;background:#fff;min-height:74px}.selection-strip small{font-size:10px;letter-spacing:1.1px;color:#88927e;margin-bottom:5px}.selection-strip strong{font-size:12px;line-height:1.5;color:#4e5947;font-weight:550}.selection-strip>div+div{padding-left:14px}#dielineView{padding:24px 16px 42px}#dielineView .unsupported{font-size:14px;line-height:1.8;margin:65px auto}
#inspector{border-radius:var(--ui-radius);padding:20px;background:#fcfcf9;min-height:0;max-height:calc(var(--stage-height) + 235px);scrollbar-width:thin;scrollbar-color:#bdc7b6 transparent;scroll-padding-block:16px}.inspector-top{margin-bottom:17px;gap:8px;padding-bottom:15px;border-bottom:1px solid var(--line)}.inspector-top h2{font-size:17px;font-weight:600;letter-spacing:-.3px}.count{font:10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.4px;white-space:nowrap;background:#eaf0e2;color:#6d7d60;padding:5px 7px}.hint{font-size:12px;color:#75816c;line-height:1.75;margin:10px 0 16px}.control{margin:18px 0}.control>label,.field-label{font-size:12px;color:#526047;margin-bottom:8px;gap:10px}.control>label>span,.field-label>span{color:#8a947e}.control>label>span[id^=value-]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#465a3c}input,select,textarea{font-size:13px;padding:10px 11px;color:#34472f;border-color:#d6dece;background:#fff;border-radius:7px;min-height:39px}select{cursor:pointer}input[type=range]{min-height:26px;padding:0;accent-color:#526d42}input[type=color]{width:39px;height:39px;min-height:39px;border-radius:7px;padding:4px}input[type=checkbox]{min-height:0;width:16px;height:16px;margin:3px 0 0;flex:none}textarea{min-height:95px}.row{gap:10px}.three-fields{gap:9px}.three-fields label,.row>label{font-size:12px;color:#75836b}.wide{font-size:13px;min-height:40px;margin-top:9px}.note{font-size:12px;line-height:1.8;color:#727f64;background:#eef2e6;border:1px solid #e7ecdD;border-radius:8px;padding:12px 13px;margin-top:14px}.warning{background:#fbf2e1;color:#8d713d;border-color:#eee0bf}.review-row{font-size:13px;line-height:1.6;gap:10px;margin:14px 0}.divider{margin:22px 0}.palette-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.palette-button{padding:6px;gap:7px;border-radius:7px;min-height:68px}.palette-sample{height:30px;border-radius:4px}.palette-button small{font-size:11px;color:#768567;text-align:center}.material-preview{padding:13px;background:#eef2e7}.material-preview b{font-size:13px}.material-preview small{font-size:11px;line-height:1.5;color:#7c8a6e}.material-ball{width:45px;height:45px;flex:none}.studio-cards{grid-template-columns:1fr 1fr;gap:10px}.studio-card{padding:8px;border-radius:8px}.studio-scene{height:83px}.studio-scene i{height:56px;width:25px}.studio-card b{font-size:12px;margin-top:9px}.studio-card small{font-size:10px;letter-spacing:1px}.render-badge{font-size:12px;border-radius:7px;padding:11px}.metric{padding:13px;background:#edf2e5}.metric b{font:500 20px ui-monospace,SFMono-Regular,Consolas,monospace}.metric small{font-size:11px}.file-name{font-size:12px}.upload-zone{font-size:13px;padding:22px 14px;background:#eff5e6;border-color:#b5c3a4;border-radius:9px}.upload-zone strong{font-size:24px;line-height:1.4}.upload-zone small{font-size:12px;color:#7b8b6b}.photo-preview{max-height:185px;border:1px solid #e1e6d9;background:#f0f2e9}.cushion-sketch{padding:15px;background:#edf1e5}
/* Four clear tasks stay distinct from the detailed station rail. */
.workflow-steps{display:flex;align-items:center;gap:6px;margin:0 0 18px;padding:5px;background:#e8ece2;border:1px solid #dce3d2;border-radius:10px;width:fit-content;max-width:100%}.workflow-steps button{display:flex;gap:9px;align-items:center;justify-content:center;min-height:38px;padding:8px 17px;border:0;background:transparent;color:#728060;font-size:13px;border-radius:7px}.workflow-steps button.active,.workflow-steps button[aria-current=step]{background:#fff;color:#304a2b;box-shadow:0 2px 4px #33452b0c}.workflow-steps button span,.workflow-steps button small{font-size:11px;opacity:.7}.workflow-steps button:hover{background:#f6f8f1}.photo-start{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #dbe2d1;border-radius:10px;background:#edf2e4;padding:20px 24px;margin-bottom:18px}.photo-start h2,.photo-start h3{font-size:18px;letter-spacing:-.3px;margin:0 0 6px}.photo-start p{font-size:13px;color:#758167;margin:0;line-height:1.7}.photo-start button{flex:none}.photo-start .recipe-actions{flex:none;flex-wrap:wrap}.empty-state{padding:42px 24px;text-align:center;border:1px dashed #cbd5be;border-radius:10px;background:#f7f9f1;color:#768568;line-height:1.8}.empty-state h2,.empty-state h3{font-size:20px;color:#3c5132;margin:0 0 8px}.empty-state p{font-size:13px}.empty-state button{margin-top:10px}
/* Appearance library: a manageable page, clear labels, no 128-card wall. */
.bottom-section{margin:25px 0 22px;padding-top:0}.section-title{margin-bottom:16px;gap:15px}.section-title h2{font-size:18px;font-weight:600;letter-spacing:-.4px}.section-title h2 span{font:10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.2px;color:#919b83;margin-left:12px}.section-title button{font-size:12px}.recipe-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:15px}.recipe-search{flex:1;min-width:180px;max-width:360px;font-size:13px;background:#fff}.recipe-filter{width:auto;min-width:140px;max-width:220px;background:#fff}.recipe-count{font:12px ui-monospace,SFMono-Regular,Consolas,monospace;color:#7a866b;white-space:nowrap}.recipe-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.recipe-actions button{font-size:12px;white-space:nowrap}.recipe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.recipe-card{position:relative;display:flex;flex-direction:column;min-width:0;text-align:left;background:#fff;border:1px solid #dbe2d0;border-radius:10px;overflow:hidden;padding:0;transition:border-color .15s,box-shadow .15s,transform .15s}.recipe-card:hover{border-color:#9cae87;box-shadow:0 5px 16px #33462a0b;background:#fff;transform:translateY(-2px)}.recipe-card.active,.recipe-card[aria-pressed=true]{border-color:#6a8653;box-shadow:0 0 0 1px #6a8653}.recipe-card>button:not(.favorite-btn){background:transparent;border:0;text-align:inherit;width:100%;padding:0;border-radius:0}.recipe-card>img,.recipe-card button>img{width:100%;aspect-ratio:1.5;object-fit:cover;display:block}.recipe-swatch{height:118px;width:100%;position:relative;border-bottom:1px solid #00000008;overflow:hidden;display:flex;align-items:stretch;justify-content:center;border-radius:0}.recipe-swatch i{flex:1;min-width:0;display:block}.recipe-swatch i:first-child{flex:3}.recipe-swatch:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,#ffffff3b,transparent 50%,#0000000f)}.recipe-card h3,.recipe-card h4{font-size:14px;font-weight:600;margin:12px 13px 5px;color:#37462f;line-height:1.5}.recipe-card b{font-size:14px;display:block;line-height:1.5}.recipe-card small{font-size:11px;line-height:1.5;color:#8a977b;display:block;margin:4px 13px}.recipe-card p{font-size:12px;line-height:1.65;color:#7a886a;margin:7px 13px 13px}.recipe-card .recipe-meta{padding:12px 13px}.recipe-card .recipe-meta h3,.recipe-card .recipe-meta small,.recipe-card .recipe-meta p{margin-left:0;margin-right:0}.recipe-card .recipe-actions{padding:0 12px 12px;width:100%;margin-left:0}.recipe-card .recipe-actions button{min-height:31px;font-size:12px;padding:5px 8px}.favorite-btn{position:absolute;top:8px;right:8px;z-index:2;min-height:32px;width:32px;display:grid;place-items:center;border:1px solid #ffffff80;border-radius:50%;padding:0;background:#ffffffe8;color:#53613e;box-shadow:0 2px 5px #0000000b}.favorite-btn[aria-pressed=true],.favorite-btn.active{color:#98713a;background:#fff7dc;border-color:#ead3a1}.favorite-btn:hover{background:#fff}.comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.comparison-card{min-width:0;border:1px solid #d6dfca;background:#fff;border-radius:10px;overflow:hidden}.comparison-card>img,.comparison-card canvas{display:block;width:100%;aspect-ratio:1.15;object-fit:contain;background:#111923}.comparison-card h3{font-size:15px;margin:14px 16px 7px}.comparison-card p{font-size:12px;line-height:1.7;margin:7px 16px 14px;color:#78866a}.comparison-card .recipe-actions{padding:0 16px 16px;margin:0}.comparison-card button{font-size:12px}.direction-card b{font-size:13px}.direction-card small{font-size:11px}
footer{font-size:12px;color:#929b85;padding:20px 0;line-height:1.6}footer button{font-size:12px}footer b{margin-left:9px}.download-ready{margin:16px 0;border-radius:9px;background:#edf3e3}.download-ready b{font-size:13px}.download-ready small{font-size:12px}.download-ready a{font-size:13px}#toast{font-size:13px;line-height:1.6;max-width:min(680px,92vw);padding:12px 20px;border-radius:8px;background:#304b34}
dialog{border-radius:12px;padding:26px;background:#f8faf3;border-color:#d5dfc8;max-height:88vh;box-shadow:0 30px 100px #14240b4d}dialog::backdrop{background:#16201470;backdrop-filter:blur(5px)}.modal-heading h2{font-size:22px;font-weight:600;letter-spacing:-.5px}.modal-heading p{font-size:13px;line-height:1.7;color:#7a886b}.close{font-size:24px}.export-card,.team-card,.saved-card{padding:18px;border-radius:9px}.export-card h3,.team-card h3{font-size:15px}.export-card p,.team-card p,.team-card li,.saved-card p{font-size:13px;line-height:1.8}.export-card button,.saved-card button{font-size:13px}.tag{font-size:11px}.step-list{font-size:14px}.trace-instructions{font-size:13px}.empty{font-size:14px;line-height:1.8}.saved-card img{height:180px}
@media(min-width:1700px){main{padding:26px 34px 0;max-width:2000px;margin:0 auto;width:calc(100% - 72px)}.workbench{grid-template-columns:minmax(0,1fr) 352px;gap:22px}.recipe-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.recipe-swatch{height:145px}}
@media(max-width:1250px) and (min-width:1051px){main{padding:20px 18px 0}.workbench{grid-template-columns:minmax(0,1fr) 306px;gap:14px}#inspector{padding:17px}.studio-chip{font-size:11px;padding:6px 7px}.camera-bar>span{display:none}.scale-tag{display:none}.recipe-grid{gap:11px}.recipe-swatch{height:100px}.header-actions>span{display:none}}
@media(max-width:1050px){:root{--header-height:66px;--stage-height:clamp(400px,55vh,600px)}header{padding:0 20px;gap:20px}.project-title{padding-left:18px}.project-title input{width:min(260px,30vw)}.header-actions>span{display:none}.shell{display:block;min-height:calc(100vh - var(--header-height));padding-bottom:0}#rail{display:flex;flex-direction:row;position:sticky;top:var(--header-height);bottom:auto;left:auto;right:auto;width:100%;height:65px;align-items:stretch;justify-content:flex-start;padding:5px 14px;gap:5px;border-right:0;border-top:0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}#rail button{flex:1;min-width:72px;min-height:53px;padding:7px 10px;gap:4px;font-size:12px;flex-direction:row;justify-content:center;white-space:nowrap}#rail button svg{width:19px;height:19px}#rail button.active:before{left:15px;right:15px;top:auto;bottom:-5px;width:auto;height:3px;border-radius:3px 3px 0 0}main{width:100%;max-width:none;padding:22px 24px 0;margin:0}.workbench{grid-template-columns:minmax(0,1fr);gap:18px}#inspector{max-height:none;min-height:0;padding:24px}#viewport{height:var(--stage-height)}.workspace-heading p{font-size:13px}.team-pill b{display:block}.palette-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.studio-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.studio-card b{font-size:13px}.studio-card small{font-size:10px}.camera-bar>span{display:block}.recipe-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.recipe-swatch{height:100px}.recipe-toolbar{gap:10px}.recipe-search{max-width:none}.recipe-actions{margin-left:0}.selection-strip strong{font-size:13px}}
@media(max-width:720px){header{padding:0 16px;gap:14px}.project-title{display:none}.header-actions{margin-left:auto}.header-actions button{font-size:12px;padding:8px 11px}.wordmark small{font-size:9px}main{padding:18px 16px 0}.workspace-heading{margin-bottom:15px;align-items:flex-start}.workspace-heading h1{font-size:23px}.workspace-heading p{font-size:12px}.team-pill{margin-top:5px}.team-pill b{display:none}.team-pill>span{width:26px;height:26px;font-size:11px}.eyebrow{font-size:10px}#rail{padding:5px 9px;height:60px}#rail button{min-width:68px;min-height:48px;flex-direction:column;gap:3px;font-size:11px;padding:5px 7px}.workflow-steps{width:100%;padding:4px;gap:2px;margin-bottom:16px}.workflow-steps button{flex:1;gap:5px;min-height:38px;font-size:12px;padding:7px 5px}.workflow-steps button span,.workflow-steps button small{font-size:10px}.photo-start{padding:18px;align-items:flex-start;flex-direction:column;gap:14px}.photo-start h2,.photo-start h3{font-size:17px}.photo-start button{width:100%}.photo-start .recipe-actions{width:100%}.photo-start .recipe-actions button{flex:1}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recipe-swatch{height:120px}.recipe-toolbar{gap:9px}.recipe-search{flex:1 1 100%;max-width:100%;min-width:0}.recipe-filter{flex:1;min-width:0;max-width:none}.recipe-count{font-size:11px}.recipe-actions{flex-wrap:wrap}.section-title{gap:12px}.section-title h2{font-size:17px}.section-title h2 span{display:none}.section-title button{font-size:12px;white-space:nowrap}.comparison-grid{gap:12px}.comparison-card h3{font-size:14px;margin:12px 12px 7px}.comparison-card p{margin:7px 12px 12px}.comparison-card .recipe-actions{padding:0 12px 12px}.palette-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.stage-toolbar{padding:10px 11px;gap:6px}.stage-tools{gap:2px}.stage-tools button{font-size:12px;padding:6px 7px}.segmented button{font-size:12px;padding:6px 10px}.studio-bar{padding:8px 10px}.studio-chip{font-size:11px;min-height:30px;padding:6px}.studio-chip:before{width:6px;height:6px;margin-right:4px}.studio-actions button{font-size:12px;padding:6px;min-height:30px}.camera-bar>span{display:none}.camera-bar{padding:8px 10px}#cameraViews{width:100%;justify-content:space-between;gap:2px}#cameraViews button{font-size:12px;padding:5px 9px}.stage-mark{left:18px;top:18px}.stage-mark b{font-size:11px;letter-spacing:1.5px}.stage-mark span{font-size:9px}.scale-tag{display:none}.stage-caption{left:18px;font-size:11px;bottom:15px}.selection-strip{padding:13px 14px;gap:10px}.selection-strip>div+div{padding-left:10px}.selection-strip strong{font-size:12px}.selection-strip small{font-size:10px}#inspector{padding:20px}.modal-grid{grid-template-columns:1fr}dialog{padding:21px}.modal-heading h2{font-size:20px}.trace-layout{grid-template-columns:1fr}.trace-area{height:350px}footer{font-size:11px;align-items:flex-start}footer>span:nth-child(2){display:none}.download-ready{flex-wrap:wrap;padding:14px;gap:12px}.download-ready span{flex-basis:70%}.download-ready a{font-size:12px}.studio-scene{height:72px}.studio-card b{font-size:12px}.studio-card small{font-size:9px}}
@media(max-width:430px){:root{--stage-height:400px}header{padding:0 12px}.header-actions{gap:3px}.header-actions button{padding:8px 9px}.header-actions .primary span{margin-left:3px}header .wordmark{font-size:22px}header .wordmark small{font-size:8px;letter-spacing:1.3px}main{padding:16px 12px 0}.team-pill>span{display:none}.workspace-heading h1{font-size:22px}.workflow-steps button{font-size:11px;gap:4px}.workflow-steps button small{display:none}.studio-bar{flex-wrap:wrap;gap:6px}.studio-bar #studioPresets{gap:2px;flex:1}.studio-chip{font-size:10px;min-height:30px;padding:6px 4px}.studio-actions{gap:2px}.studio-actions button{padding:6px 5px}#cameraViews button{padding:5px 7px}.palette-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.recipe-swatch{height:105px}.recipe-card h3,.recipe-card h4{font-size:13px;margin:11px 11px 4px}.recipe-card p{font-size:12px;margin:6px 11px 11px}.recipe-card small{margin:4px 11px}.recipe-card .recipe-actions{padding:0 10px 10px;gap:5px}.recipe-card .recipe-actions button{font-size:11px;padding:5px 6px}.recipe-toolbar .recipe-actions{width:100%;justify-content:flex-end}.comparison-grid{grid-template-columns:1fr}.studio-cards{grid-template-columns:1fr 1fr}.studio-card small{font-size:10px}.studio-scene{height:85px}.selection-strip{gap:8px;padding:13px 11px}.selection-strip>div+div{padding-left:8px}.selection-strip strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){button,.recipe-card,#toast{transition:none}.recipe-card:hover{transform:none}}

/* Keep action labels legible even on compact phones. */
@media(max-width:720px){#rail button,.workflow-steps button,.studio-chip,.recipe-card .recipe-actions button,.palette-button small{font-size:12px}.studio-bar #studioPresets{flex-wrap:wrap}.studio-bar{align-items:flex-start}.studio-actions{margin-left:auto}}

#photoCanvas{position:absolute;inset:0;width:100%;height:100%;display:block}#photoCanvas[hidden],.camera-bar[hidden],.stage-mark[hidden],.scale-tag[hidden]{display:none!important}.recipe-apply{padding:0;border:0;background:transparent;text-align:left;width:100%;border-radius:0}.recipe-apply>b,.recipe-apply>small{display:block;margin:9px 12px}.recipe-apply>small{font-size:12px;color:#68716b;margin-top:0}.recipe-swatch{position:relative;height:110px;display:flex;align-items:center;justify-content:center;overflow:hidden}.recipe-swatch i{display:block;width:42px;height:72px;border-radius:9px;box-shadow:12px 12px 20px #0005}.recipe-swatch>span{position:absolute;font-size:16px;font-family:serif}.recipe-library{scroll-margin-top:90px}.recipe-card{position:relative}.favorite-btn{position:absolute;right:6px;top:6px}.photo-start h3{font-size:24px}.photo-start p{line-height:1.7}.recipe-toolbar{flex-wrap:wrap}.download-ready{flex-wrap:wrap}.comparison-card img{width:100%;display:block}.workflow-steps b{margin-right:8px}.recipe-actions>span{font-size:12px}.recipe-apply:hover{background:transparent}.recipe-card.active{outline:2px solid #55715d;outline-offset:1px}body[data-mode="photo"] #gridBtn,body[data-mode="photo"] #rotateBtn{display:none}
nav.workflow-steps{position:static;top:auto;bottom:auto;left:auto;right:auto;height:auto;min-height:0;flex-direction:row;flex-shrink:1;overflow:auto;z-index:auto;padding:5px;width:fit-content}nav.workflow-steps button{flex-direction:row;width:auto;white-space:nowrap}.photo-start{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:12px;padding:18px}.recipe-card .recipe-swatch{width:100%;border-radius:0}.recipe-swatch i{flex:none}.recipe-actions{margin:12px 0;justify-content:space-between}.recipe-toolbar input{max-width:350px}@media(max-width:720px){nav.workflow-steps{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}nav.workflow-steps button{justify-content:flex-start;padding:10px;font-size:12px}.recipe-toolbar input{max-width:none}.recipe-toolbar>button{flex:1}.recipe-actions{flex-wrap:wrap}}

#inspector .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#inspector .recipe-toolbar{gap:8px}#inspector .recipe-toolbar input{width:100%;flex:1 1 100%;min-width:0}#inspector .recipe-filter{min-width:0;max-width:none;flex:1}#inspector .recipe-toolbar button{padding:8px;font-size:12px}#inspector .recipe-actions{display:flex;flex-wrap:wrap;gap:8px}#inspector .recipe-actions>span:last-child{line-height:1.5}#inspector .recipe-swatch{height:95px}#inspector .recipe-apply>b{font-size:13px;margin:8px}#inspector .recipe-apply>small{font-size:11px;margin:4px 8px 9px}.library-docked .section-title h2{visibility:hidden}.library-docked{margin:8px 0}.library-docked .section-title{justify-content:flex-end}.library-docked .section-title h2{display:none}#inspector .favorite-btn{min-height:25px;width:25px;min-width:25px;padding:3px;background:#ffffffdc;border-color:#ffffff88;color:#3d503e}#inspector .recipe-card{min-width:0}#inspector .recipe-toolbar #captureLook,#inspector .recipe-toolbar #openComparison{flex:1 1 40%}

#rail{overflow-y:auto}.recipe-swatch i:first-child{flex:none}#inspector .recipe-apply{min-width:0}@media(max-width:1050px){#rail{overflow-x:auto;overflow-y:hidden}}
