:root{--navy:#233a65;--red:#ab2926;--line:#dce2ec;--muted:#748198}*{box-sizing:border-box}body{margin:0;font:15px/1.5 Arial,sans-serif;color:var(--navy);background:#f4f6fa}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,.file-button{cursor:pointer}button,a{transition:background .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #be8d4f;outline-offset:3px}[hidden]{display:none!important}header{height:88px;padding:20px 32px;display:flex;align-items:center;gap:40px;border-bottom:1px solid var(--line);background:white}header img{width:178px}header>span{font-size:10px;letter-spacing:2px}header b{display:block;font-size:16px;letter-spacing:0}header>a:last-child{margin-left:auto;color:var(--navy);font-size:14px}a{text-decoration:none;color:var(--navy)}main{display:grid;grid-template-columns:365px 1fr;max-width:1900px;margin:auto}main>aside{background:white;border-right:1px solid var(--line);height:calc(100vh - 88px);overflow:auto;position:sticky;top:0;padding:0 26px 26px}.steps{display:flex;position:sticky;top:0;background:white;margin:0 -26px 28px;z-index:3;border-bottom:1px solid var(--line)}.steps button{border:0;border-radius:0;padding:20px 12px;flex:1;font-size:14px}.active{background:var(--navy)!important;color:white!important}h1{font-size:29px;letter-spacing:-1px;line-height:1.2;font-weight:500;margin:10px 0 25px}h2{font-size:25px;line-height:1.25;font-weight:500;margin:8px 0 20px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--muted);font-weight:600}label{display:block;margin:17px 0 0;font-weight:600;font-size:13px}input:not([type=range]):not([type=color]),select{display:block;width:100%;border:1px solid #ccd5e3;border-radius:6px;padding:11px 9px;background:white;color:var(--navy);margin-top:7px;min-width:0}input:disabled{background:#f1f4f8!important;color:#718097!important}input[type=color]{display:block;width:100%;height:43px;padding:4px;background:white;border:1px solid #ccd5e3;border-radius:6px;margin-top:7px}input[type=range]{display:block;width:100%;accent-color:var(--red);margin:12px 0}input[type=file]{font-size:12px!important}.dimensions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hint{font-size:12px;color:var(--muted);line-height:1.55;margin:10px 0 18px}button,.file-button{padding:11px 15px;background:white;border:1px solid #ccd5e3;border-radius:6px;color:var(--navy)}button:hover,.file-button:hover{background:#edf1f8}.primary{display:block;background:var(--red);border:1px solid var(--red);color:white;text-align:center;border-radius:6px;padding:13px 18px;width:100%;font-weight:600}.primary:hover{background:#8d2220}.project-actions{border-top:1px solid var(--line);margin-top:24px;padding-top:14px}.project-actions>button,.file-button{width:100%;text-align:center;margin:8px 0}.file-button input{display:none!important}#summary{font-weight:600}#status{font-size:12px;color:var(--muted)}#source-product{display:block;font-size:12px;margin-top:10px;text-decoration:underline}.workspace{padding:30px 32px;min-width:0}.workspace-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.view-switch{display:flex;gap:5px}.view-switch button{white-space:nowrap}.notice{padding:12px 16px;background:#fff8e9;color:#87652f;border:1px solid #f0e2bf;border-radius:8px;font-size:12px}#stage{height:530px;position:relative;background:radial-gradient(ellipse at 50% 35%,#fff 10%,#e8edf5 100%);margin-top:16px;border-radius:14px;overflow:hidden}#canvas-host{width:100%;height:100%;touch-action:none;cursor:grab}#canvas-host:active{cursor:grabbing}#canvas-host canvas{display:block;width:100%;height:100%}#flat{position:absolute;inset:0;padding:30px 22px 45px;overflow:auto}#flat svg{width:100%;height:100%;min-height:350px}#flat [data-face]{cursor:pointer}#flat [data-face]:hover rect{stroke:#ab2926;stroke-width:2}#fallback{position:absolute;top:45%;padding:25px}.stage-label{position:absolute;bottom:18px;left:24px;right:24px;display:flex;justify-content:space-between;color:#76839a;font-size:10px;letter-spacing:1px;pointer-events:none}.tools{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}.tools>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tools label{margin:0;display:flex;align-items:center;gap:10px}.tools input[type=range]{width:105px;margin:0}.tools select{width:150px;margin:0}.tools button{font-size:12px;padding:10px}.tools span{font-size:12px}.gesture{font-size:12px;color:var(--muted)}.construction{border-top:1px solid var(--line);margin-top:30px;padding-top:18px;font-size:13px}.construction summary{cursor:pointer;font-weight:600}.construction p{max-width:850px;color:#687790}.construction a{text-decoration:underline}@media(min-width:1600px){#stage{height:650px}}@media(max-width:1000px){main{grid-template-columns:310px 1fr}.workspace{padding:20px}main>aside{padding:0 18px 22px}.steps{margin-left:-18px;margin-right:-18px}.workspace-top{align-items:flex-start;flex-direction:column;gap:0}#stage{height:450px}}@media(max-width:700px){header{padding:14px 18px;height:75px;gap:20px}header img{width:125px}header>span{display:none}main{display:flex;flex-direction:column}.workspace{order:-1;padding:18px}main>aside{height:auto;position:static;border:0}.workspace-top{flex-direction:row;align-items:center}.workspace h2{font-size:19px}.view-switch button{padding:9px;font-size:12px}#stage{height:360px}.tools{gap:15px}.construction{margin-top:15px}.steps{position:static}.gesture{font-size:11px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Isolate studio panels from the informational banner. */
body>aside:first-child{height:auto!important;min-height:0;position:static;overflow:visible;border:0}
main{align-items:start}main>aside{height:auto;max-height:calc(100dvh - 20px);min-width:0}.workspace{padding-top:22px}header{height:auto;min-height:80px;flex-wrap:wrap;gap:16px}#stage{height:clamp(360px,58vh,680px);border:1px solid #dce2ec}.view-presets{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.view-presets button{padding:8px 12px;font-size:12px}#stage:fullscreen{height:100dvh;width:100vw;border-radius:0;background:#f3f5f8}.workspace-top>div{min-width:0}#project-title{overflow-wrap:anywhere}@media(max-width:700px){main>aside{max-height:none}#stage{height:360px}header>a:last-child{margin-left:0}.workspace-top{flex-wrap:wrap}}

@media(min-width:701px){#stage{height:clamp(320px,calc(100dvh - 430px),600px)}}

.library-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.library-grid button{font-size:13px;padding:10px 5px}.art-library{border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:16px}.history-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.history-tools span{font-size:12px;color:var(--muted)}button:disabled{opacity:.4;cursor:default}

body:fullscreen{overflow:auto;background:#f4f6fa}body:fullscreen>aside:first-child,body:fullscreen>.social-bar{display:none!important}body:fullscreen header{min-height:65px;padding:10px 24px}body:fullscreen #stage{height:clamp(320px,calc(100dvh - 360px),760px)}body:fullscreen main>aside{max-height:calc(100dvh - 65px)}#fullscreen[aria-pressed=true]{background:#233a65;color:white}#flat svg.surface-sheet{min-height:0;height:100%;max-width:100%}#flat.surface-mode{display:flex;align-items:center;justify-content:center;padding:28px 30px 48px}.surface-sheet{filter:drop-shadow(0 3px 8px #233a6510)}@media(max-width:700px){body:fullscreen main>aside{max-height:none}body:fullscreen #stage{height:350px}}

body:fullscreen,body:fullscreen main,body:fullscreen .workspace{background-color:#f4f6fa!important}body:fullscreen main{max-width:none}body:fullscreen #fullscreen{position:fixed;top:12px;right:20px;z-index:100;box-shadow:0 2px 10px #233a6522}body:fullscreen header>a:last-child{margin-right:230px}body::backdrop{background:#f4f6fa}

.library-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:340px;overflow:auto;gap:6px}.library-grid button{padding:7px 3px;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;overflow-wrap:anywhere}.library-grid img{width:32px;height:30px;object-fit:contain}.art-library label{margin-top:9px}.art-library>a{font-size:11px;text-decoration:underline}.font-preview{padding:15px 10px;border:1px solid #dce2ec;border-radius:8px;margin:14px 0;font-size:25px;min-height:75px;overflow-wrap:anywhere;background:white}.ink-palette{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.ink-palette button{width:28px;height:28px;padding:0;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #ccd5e3}.ink-palette button[aria-pressed=true]{outline:2px solid #233a65;outline-offset:2px}#assets-more{width:100%}

.design-controls{border:1px solid var(--line);border-radius:8px;margin:20px 0;padding:12px;min-width:0}.design-controls legend{font-weight:600;font-size:14px}.design-controls input[type=checkbox]{width:18px!important;display:inline-block!important;margin:0!important}.inline-choice{display:flex;align-items:center;gap:8px}.design-controls button{margin-top:10px;font-size:12px}.design-controls .two{gap:9px}

#flat.surface-mode{touch-action:none}#flat [data-object]{cursor:move}#flat [data-handle=resize]{cursor:nwse-resize}#flat [data-handle=rotate]{cursor:grab}#delete-object{font-size:12px;padding:7px 12px}#selected-object{margin:8px 0}

#selected-object:empty{display:none}

.text-format{display:flex;gap:8px;margin:12px 0}.text-format button{min-width:44px;font-size:18px;padding:8px 14px}.text-format button[aria-pressed=true]{background:#233a65;color:white;border-color:#233a65}

.box-type-picker{padding:12px;border:1px solid var(--line);border-radius:10px;margin:16px 0}.box-type-picker legend{font-weight:600}.box-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.box-type-grid button{padding:10px 5px;font-size:12px;min-height:64px;line-height:1.5}.box-type-grid button[aria-pressed=true]{background:#233a65;color:white;border-color:#233a65}#clear-project{border-color:#ab2926;color:#ab2926;margin:0 10px 10px 0;font-weight:600}#construction[hidden]{display:none!important}
