
:root{color-scheme:light;--bg:#f7f8f4;--panel:#fffefa;--text:#283e35;--muted:#788179;--border:#e5e8df;--green:#416c57;--tint:#ecf1e8;--canvas:#f3f0e8;--accent:#ddb78a;--shadow:0 5px 24px #33492d04}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}body.dark{color-scheme:dark;--bg:#19221e;--panel:#232e27;--text:#e5ece2;--muted:#a6b0a4;--border:#3b483d;--green:#a4c7a6;--tint:#354538;--canvas:#303b33;--accent:#ddb78a}button,input,select{font:inherit}button{cursor:pointer}button,select{color:inherit}button{border:0}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #bd9759;outline-offset:3px}button:hover:not(:disabled){filter:brightness(.96)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:83px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 5.5%}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}.brand b{font-size:24px;letter-spacing:2px}.brand-english{font-size:11px;letter-spacing:2px;color:var(--muted);padding-left:10px;border-left:1px solid var(--border)}.brand-icon{display:grid;grid-template-columns:repeat(2,10px);gap:3px;transform:rotate(-8deg);padding:9px;border:1px solid var(--border);border-radius:13px;background:var(--panel)}.brand-icon i{width:10px;height:10px;border:3px solid #63866c;border-radius:50%}.brand-icon i:nth-child(2){border-color:#d5b287}.brand-icon i:nth-child(3){border-color:#cc9890}.header-right{display:flex;align-items:center;gap:23px}.local-badge{font-size:12px;color:var(--muted)}.local-badge span,.status-dot{display:inline-block;background:#83a186;width:6px;height:6px;border-radius:50%;margin-right:7px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:transparent;border:1px solid var(--border);border-radius:10px;font-size:18px}.header-right .icon-btn{border:0}main{max-width:1480px;margin:auto;padding:34px 5.5% 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:11px;letter-spacing:3px;color:var(--muted)}h1{font-size:33px;font-weight:650;letter-spacing:1px;line-height:1.3;margin:9px 0}h1 span{color:#789271}.intro p{color:var(--muted);margin:10px 0 0;font-size:13px}.intro-note{display:flex;align-items:center;gap:18px;margin-right:3px}.intro-note p{font-size:12px;margin:0;line-height:1.9}.intro-note strong{font-weight:500}.mini-beads{width:56px;display:grid;grid-template-columns:repeat(2,22px);gap:6px;transform:rotate(12deg)}.mini-beads i{border:7px solid #dfb992;border-radius:50%;width:22px;height:22px}.mini-beads i:nth-child(2){border-color:#9eae8a}.mini-beads i:nth-child(3){border-color:#d5a39b}.mini-beads i:nth-child(4){border-color:#b9c6b1}.steps{display:flex;align-items:center;gap:15px;margin-bottom:20px;font-size:12px;color:var(--muted)}.steps b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--tint);font-size:11px;margin-right:7px}.steps .active{color:var(--green)}.steps .active b{background:var(--green);color:var(--panel)}.steps i{width:28px;height:1px;background:var(--border)}.steps small{margin-left:auto;font-size:11px}.workspace{display:grid;grid-template-columns:250px minmax(330px,1fr) 258px;gap:18px;align-items:start}.panel{background:var(--panel);border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow);min-width:0}.controls,.materials{padding:20px}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.panel-title h2{font-size:15px;font-weight:650;margin:0}.panel-title>span{font-size:11px;color:var(--muted)}.upload-box{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;background:var(--tint);border:1px dashed #a6b6a0;border-radius:12px;min-height:116px;gap:6px;color:var(--green)}.upload-box svg{margin-bottom:4px;width:23px;height:23px}.upload-box strong{font-size:13px;font-weight:550}.upload-box small{font-size:10px;color:var(--muted)}.upload-box.dragging{outline:3px solid var(--accent)}.source-row{display:flex;align-items:center;gap:10px;margin-top:16px}.source-row canvas{width:42px;height:42px;border-radius:9px;background:var(--canvas)}.source-row>div{flex:1;min-width:0}.source-row strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}.source-row small{display:block;font-size:10px;color:var(--muted)}.source-row button{width:28px;height:28px}.sample-row{display:flex;align-items:center;gap:12px;font-size:11px;margin-top:10px;color:var(--muted)}.text-btn{padding:3px 0;background:transparent;font-size:11px;color:var(--green)}.divider{height:1px;background:var(--border);margin:18px 0}.field-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:18px 0 8px}.field-title output{font-size:11px;background:var(--tint);padding:1px 8px;border-radius:5px;color:var(--green)}input[type=range]{width:100%;height:5px;accent-color:var(--green);margin:8px 0 10px;cursor:pointer}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.subtle{font-size:10px;color:var(--muted)}select{border:1px solid var(--border);border-radius:7px;background:var(--panel);padding:9px;width:100%;font-size:11px}.check-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:15px 0}.check-row input{appearance:none;width:29px;height:17px;border-radius:20px;background:#ccd2c8;margin:0;cursor:pointer;position:relative;flex-shrink:0}.check-row input:before{content:'';position:absolute;top:3px;left:3px;width:11px;height:11px;background:white;border-radius:50%;transition:transform .15s}.check-row input:checked{background:#62816b}.check-row input:checked:before{transform:translateX(12px)}.primary{display:flex;justify-content:center;align-items:center;gap:9px;width:100%;padding:12px 7px;background:var(--green);color:var(--panel);border-radius:9px;font-size:12px;font-weight:550;min-height:44px}.primary svg{width:16px;height:16px}.controls .primary{margin-top:20px}.controls .primary svg:last-child{margin-left:auto;width:16px}.field-note{font-size:10px;line-height:1.8;color:var(--muted);text-align:center;margin:12px 0 0}.preview-panel{overflow:hidden}.preview-toolbar{padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:6px}.tabs{display:flex;padding:4px;background:var(--tint);border-radius:9px;gap:3px}.tabs button{background:transparent;color:var(--muted);font-size:11px;border-radius:6px;padding:6px 11px;white-space:nowrap}.tabs button.selected{background:var(--panel);box-shadow:0 1px 4px #0000000b;color:var(--text)}.tag{font-size:10px;color:var(--muted);border:1px solid var(--border);border-radius:5px;padding:1px 7px}.viewport{margin:0 15px;background:var(--canvas);border:1px solid var(--border);border-radius:12px;height:410px;overflow:auto;position:relative;scrollbar-width:thin}.viewport #canvas-wrap{min-height:100%;min-width:100%;display:flex;align-items:center;justify-content:center;padding:16px}.viewport canvas{display:block;max-width:none;flex-shrink:0;image-rendering:pixelated;touch-action:pan-x pan-y}#loading{position:absolute;inset:0;background:var(--panel);opacity:.95;place-content:center;text-align:center;color:var(--green);font-size:13px}#loading:not([hidden]){display:grid}.canvas-tools{display:flex;justify-content:space-between;align-items:center;padding:10px 17px;font-size:10px;color:var(--muted)}.canvas-tools>div{display:flex;gap:8px;align-items:center}.canvas-tools .icon-btn{width:25px;height:25px;border:0;font-size:15px}.stats{margin:3px 20px 15px;padding:17px 0;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.stats>div{display:flex;align-items:center;flex-direction:column;gap:3px;border-right:1px solid var(--border)}.stats>div:last-child{border:0}.stats strong{font-size:21px;font-weight:550;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.stats span{font-size:10px;color:var(--muted)}.editing{display:flex;align-items:center;justify-content:space-between;padding:0 17px 15px;gap:8px}.tool-btn{background:transparent;font-size:11px;padding:4px;color:var(--muted)}.editing label{display:flex;gap:7px;align-items:center;font-size:11px;white-space:nowrap}.editing select{width:89px;padding:5px}.preview-foot{background:var(--tint);padding:12px 18px;color:var(--muted);font-size:10px;display:flex;align-items:center;min-height:43px}.preview-foot .status-dot{flex-shrink:0}.muted{color:var(--muted);font-size:11px;margin:-8px 0 20px}.material-head{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding-bottom:8px;border-bottom:1px solid var(--border)}.color-list{max-height:346px;overflow-y:auto;scrollbar-width:thin;min-height:120px}.color-row{display:flex;width:100%;align-items:center;gap:10px;padding:9px 5px;background:transparent;border-bottom:1px solid var(--border);text-align:left;border-radius:5px;min-height:43px}.color-row.active{background:var(--tint);box-shadow:inset 3px 0 var(--green)}.swatch{width:24px;height:24px;border-radius:7px;border:1px solid #00000012;flex-shrink:0}.color-row b{font-size:12px;font-weight:500}.color-row small{font-size:9px;color:var(--muted);display:block;line-height:1.3}.color-row em{font-size:12px;font-style:normal;margin-left:auto;font-variant-numeric:tabular-nums}.color-row .done{color:var(--green);font-size:12px}.material-summary{display:flex;justify-content:space-between;align-items:center;margin:17px 0}.material-summary>span{color:var(--muted);font-size:11px}.material-summary strong{font-size:12px}.material-summary strong span{font-size:19px;font-weight:600}.secondary{display:block;width:100%;padding:10px 8px;border:1px solid var(--border);background:transparent;border-radius:8px;margin-top:9px;font-size:11px;min-height:40px}.secondary-links{display:flex;justify-content:space-around;gap:8px;flex-wrap:wrap;margin-top:12px}.secondary-links button{font-size:10px}.inventory-row{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border)}.selection{background:var(--tint);border-radius:8px;padding:10px;margin-top:10px;font-size:11px}.selection-actions{display:flex;justify-content:space-between;gap:6px;margin:7px 0}.selection label{display:flex;align-items:center;gap:8px}.selection select{width:90px}.selection .secondary{padding:5px;min-height:30px}footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding:26px 0 20px}footer i{font-style:normal;margin:0 8px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:#2f483c;color:#fff;padding:12px 20px;border-radius:10px;box-shadow:0 4px 25px #0003;font-size:13px;z-index:10}.toast[hidden],[hidden]{display:none!important}@media(min-width:1500px){.viewport{height:480px}}@media(max-width:1150px){main{padding:24px 24px 0}.topbar{padding:0 24px}.workspace{grid-template-columns:220px minmax(300px,1fr);gap:14px}.materials{grid-column:1/-1}.color-list{display:grid;grid-template-columns:repeat(4,1fr);gap:0 18px;min-height:0;max-height:240px}.materials .primary,.materials>.secondary{max-width:340px;display:inline-flex;margin-right:10px}.materials .secondary-links{justify-content:flex-start;gap:20px}.material-summary{justify-content:flex-start;gap:20px}.selection{max-width:400px}}@media(max-width:650px){body{font-size:13px}.topbar{height:65px;padding:0 19px}.brand b{font-size:20px}.brand-english{font-size:9px}.header-right{gap:8px}.local-badge{font-size:0}.local-badge span{margin:0}.intro-note{display:none}main{padding:23px 14px 0}h1{font-size:29px}.intro{padding:0 5px;margin-bottom:23px}.intro p{font-size:12px}.eyebrow{font-size:10px}.steps{gap:7px;font-size:10px;padding:0 5px}.steps small{display:none}.steps i{width:13px}.steps b{width:20px;height:20px;font-size:10px;margin-right:4px}.workspace{display:flex;flex-direction:column;gap:14px}.panel{width:100%}.controls{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;padding:17px}.controls>*{grid-column:1/-1}.controls .upload-box{min-height:100px}.controls .sample-row{margin-top:7px}.controls .field-title{margin-top:13px}.controls .range-labels{margin-bottom:2px}.controls .primary{margin-top:12px}.controls .divider{margin:13px 0 0}.controls .field-note{margin-top:7px}.preview-panel{order:-1}.controls{order:0}.materials{order:1}.viewport{height:335px}.preview-toolbar{padding:13px}.tabs button{font-size:11px;padding:6px 10px}.stats strong{font-size:20px}.canvas-tools{font-size:9px;padding:8px 15px}.stats{padding:13px 0}.color-list{grid-template-columns:repeat(2,1fr);gap:0 15px;max-height:340px}.materials .primary,.materials>.secondary{max-width:none;margin-right:0;display:flex}.materials .secondary-links{justify-content:space-between;gap:6px}.intro p{line-height:1.7}footer{display:block;padding:23px 5px}footer>span{display:block;margin-bottom:5px}.preview-foot{font-size:10px}.editing{padding:0 12px 12px}.source-row strong{max-width:220px}}

.mobile-upload{display:none}@media(max-width:650px){.mobile-upload{display:flex;margin-top:17px;min-width:215px;width:auto;padding:11px 20px}.intro{margin-bottom:20px}}

/* TASK-003: visible actions and the project library */
.action-btn,.tool-btn,#csv,#project-export,#project-import{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 12px;min-height:36px;border:1px solid #bac8b7;border-radius:8px;background:var(--tint);color:var(--green);font-size:12px;font-weight:550;line-height:1.4;white-space:nowrap}.action-btn[aria-pressed=true]{background:var(--green);color:var(--panel)}.editing>div{display:flex;gap:7px}.image-actions{display:flex;gap:8px;margin-top:12px}.image-actions .action-btn{flex:1;padding:8px 5px;font-size:11px}.selection-actions{flex-wrap:wrap;justify-content:flex-start;gap:7px}.selection-actions .action-btn{font-size:11px;padding:7px 9px;min-height:34px}.recolor-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:12px}.recolor-row label{flex:1;white-space:nowrap}.recolor-row .primary{width:auto;margin:0;padding:9px 13px;font-size:12px;min-height:36px}.color-pending{font-size:10px;color:var(--muted);margin:10px 0 0}.secondary-links{gap:8px;justify-content:flex-start}.secondary-links button{flex:1}.editor-nav{display:flex;align-items:center;gap:14px;margin-bottom:22px}.editor-nav>span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-intro{display:flex;align-items:center;justify-content:space-between;margin:22px 0 40px;gap:20px}.library-intro h1{margin-top:13px}.library-intro p{color:var(--muted);font-size:14px}.library-intro>.primary{width:160px;min-height:46px;font-size:14px}.library-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.library-heading h2{font-size:17px;margin:0}.library-heading h2 span{font-size:12px;color:var(--muted);background:var(--tint);border-radius:7px;padding:3px 9px;margin-left:9px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.project-card{background:var(--panel);border:1px solid var(--border);border-radius:17px;overflow:hidden}.project-cover{display:flex;width:100%;height:218px;align-items:center;justify-content:center;background:var(--canvas);border-bottom:1px solid var(--border);padding:22px}.project-cover img{max-width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.project-card-body{padding:18px}.project-card h3{font-size:15px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card p{color:var(--muted);font-size:12px;margin:7px 0}.project-card small{color:var(--muted);font-size:11px}.project-actions{display:flex;gap:8px;margin-top:17px}.project-actions button{flex:1;font-size:12px}.library-empty{padding:70px 20px;text-align:center;border:1px dashed var(--border);border-radius:17px;background:var(--panel)}.library-empty svg{width:45px;height:45px;color:var(--green)}.library-empty h2{font-size:18px;margin-top:20px}.library-empty p{font-size:13px;color:var(--muted)}.library-empty .primary{max-width:180px;margin:20px auto 0}.library-samples{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--tint);padding:20px;border-radius:12px;margin-top:28px}.library-samples span{font-size:12px;color:var(--muted);margin-right:auto}.library-note{font-size:11px;color:var(--muted);margin:20px 0}#preview-empty{position:absolute;inset:0;display:grid;place-content:center;font-size:13px;color:var(--muted)}#library-loading{padding:40px;text-align:center;color:var(--muted)}#library-error{padding:20px;border-radius:10px;background:#fae8dc;color:#7d3622}@media(max-width:1050px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.library-intro{margin:8px 3px 26px;align-items:flex-start;flex-direction:column;gap:8px}.library-intro h1{font-size:28px}.library-intro>.primary{width:100%}.project-grid{grid-template-columns:1fr;gap:16px}.project-cover{height:205px}.library-heading{margin:0 3px 17px}.library-empty{padding:40px 15px}.library-empty h2{font-size:16px}.library-samples{padding:16px;gap:10px}.library-samples span{width:100%;margin-bottom:3px}.editing{flex-wrap:wrap;gap:12px}.editing .tool-btn{font-size:12px;padding:8px 12px;min-height:36px}.editing label{margin-left:auto}.selection-actions .action-btn{min-height:36px}.recolor-row .primary{min-height:38px}.secondary-links button{min-height:40px;font-size:11px}.source-row strong{max-width:190px}.editor-nav{margin-bottom:15px}}

.size-presets{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.size-presets button{flex-direction:column;padding:9px 5px}.size-presets small{font-size:10px;font-weight:400}.modal{width:min(480px,calc(100% - 28px));max-height:90dvh;overflow:auto;padding:28px;border:1px solid var(--border);border-radius:18px;background:var(--panel);color:var(--ink);box-shadow:0 20px 90px #0003}.modal::backdrop{background:#15251b88}.modal h2{font-size:22px;line-height:1.4;margin:12px 0 20px}.modal p{line-height:1.9;font-size:14px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:24px}.modal-actions .primary{width:auto;padding:10px 18px;margin:0}.modal-field{display:block;font-size:13px;margin:16px 0}.modal-field input,.modal-field select{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:inherit;font:inherit}.modal [role=status]{font-size:12px;color:var(--green)}@media(max-width:650px){.modal{padding:22px}.modal-actions{flex-wrap:wrap}.topbar .action-btn{font-size:11px;padding:7px 9px}}

.splash{position:fixed;inset:0;z-index:999;background:#f7f3e8;color:#355744;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:50px 21px 29px;box-sizing:border-box;overflow:auto}.splash-top{font-size:11px;letter-spacing:3px;color:#7b8d74}.splash-center{text-align:center;width:100%;max-width:280px;margin:19px 0}.splash-art{display:grid;grid-template-columns:repeat(9,1fr);gap:3.5px;width:143px;height:143px;margin:0 auto 23px;transform:rotate(-8deg);padding:13px;border-radius:21px;background:#efe9d9;box-shadow:0 10px 30px #b1a78726;box-sizing:border-box}.splash-bead{border-radius:50%;background:#e89caa;position:relative;box-shadow:inset 0 1px 1px #ffffff99,0 1px 0.5px #83644225;animation:bead-in .5s both}.splash-bead::after{content:'';position:absolute;inset:33%;border-radius:50%;background:#f3ead8;box-shadow:inset 0 0.5px 1px #56432e40}.splash-bead.gold{background:#e7bd58}.splash-bead.leaf{background:#79976b}.splash-bead.blank{background:transparent;box-shadow:none}.splash-bead.blank::after{display:none}.splash-title{font-size:34px;font-weight:600;letter-spacing:7px;padding-left:7px}.splash-tagline{font-size:13.5px;color:#748569;letter-spacing:1.5px;margin:11px 0 28px}.splash-track{width:130px;height:4px;background:#e1e4d6;border-radius:4px;margin:0 auto;overflow:hidden}.splash-moving{width:38%;height:100%;border-radius:4px;background:#7c9868;animation:loading-sweep 1.25s ease-in-out infinite}.splash-status{font-size:11.5px;color:#7a8971;margin-top:12px;line-height:1.7;min-height:20px}.splash-bottom{text-align:center;color:#87917e;font-size:11px;line-height:1.9}.splash-bottom span{display:block;font-size:10px;letter-spacing:1px;margin-top:5px}.splash-actions{display:flex;gap:7px;margin-top:11px}.splash-actions button{width:auto;flex:1;padding:8px;font-size:11.5px;background:#e5eadc;color:#355744}@keyframes bead-in{from{opacity:0;transform:scale(.35)}to{opacity:1;transform:scale(1)}}@keyframes loading-sweep{0%{transform:translateX(-110%)}100%{transform:translateX(370%)}}
@media(prefers-reduced-motion:reduce){.splash-bead,.splash-moving{animation:none}}

.large-nav{padding:12px 20px;color:var(--muted);font-size:12px}.large-nav>div{display:flex;gap:12px;margin-top:8px}#size-exact{border:1px solid var(--border);background:var(--panel);color:var(--text);border-radius:8px;padding:12px;width:100%}

.print-options{padding:16px 0;border-top:1px solid var(--border);font-size:12px}.print-options p{font-size:11px;color:var(--muted)}.print-options input{width:65px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text)}

.tool-column{display:contents}.editor-actions{display:none}
@media(max-width:650px){body.mobile-studio{height:100dvh;overflow:hidden}body.mobile-studio>.topbar{display:none}body.mobile-studio main{height:100%;padding:8px 6px calc(6px + env(safe-area-inset-bottom));overflow:hidden}body.mobile-studio footer{display:none}body.mobile-studio #editor{height:100%;display:flex;flex-direction:column;overflow:hidden}body.mobile-studio .intro,body.mobile-studio .steps{display:none}body.mobile-studio .editor-nav{flex:none;gap:4px;margin:0;padding:0 0 8px;justify-content:space-between}body.mobile-studio #editor-name{display:none}body.mobile-studio .editor-actions{display:flex;gap:4px;align-items:center}body.mobile-studio .editor-nav .action-btn{font-size:10px;padding:8px 7px;min-height:36px}body.mobile-studio .workspace{display:flex;flex-direction:row;flex:1;min-height:0;gap:6px;overflow:hidden}body.mobile-studio .controls-right .workspace{flex-direction:row-reverse}body.mobile-studio .tool-column{display:block;flex:0 0 43%;width:43%;min-width:0;height:100%;overflow-y:auto;overscroll-behavior:contain;padding-bottom:24px;scrollbar-width:thin}body.mobile-studio .preview-panel{order:0;flex:1;width:0;min-width:0;height:100%;display:flex;flex-direction:column;margin:0;border-radius:10px;overflow:hidden}body.mobile-studio .viewport{flex:1;height:0;min-height:90px;width:calc(100% - 8px);margin:0 4px;border-radius:8px}body.mobile-studio #canvas-wrap{min-width:100%;min-height:100%}body.mobile-studio .preview-toolbar{padding:5px 3px;flex:none}body.mobile-studio .tag{display:none}body.mobile-studio .tabs{display:flex;width:100%;padding:2px}body.mobile-studio .tabs button{flex:1;min-width:0;white-space:nowrap;font-size:9px;padding:8px 1px}body.mobile-studio .canvas-tools{display:block;padding:5px}body.mobile-studio #preview-hint{display:none}body.mobile-studio .canvas-tools>div{display:flex;justify-content:space-between}body.mobile-studio .canvas-tools button{min-height:32px}body.mobile-studio .stats{padding:8px 0;margin:0 4px}body.mobile-studio .stats strong{font-size:10px;word-break:break-all;text-align:center}body.mobile-studio .stats span{font-size:8px}body.mobile-studio .preview-foot{font-size:9px;padding:6px;max-height:55px;overflow:hidden;flex:none}body.mobile-studio .large-nav{font-size:9px;padding:6px;flex:none}body.mobile-studio .large-nav .action-btn{padding:5px 8px;min-height:30px}body.mobile-studio .large-nav>div{gap:4px}body.mobile-studio .controls,body.mobile-studio .materials{display:block;width:100%;padding:10px 7px;border-radius:10px;margin-bottom:8px}body.mobile-studio .panel-title{gap:4px}body.mobile-studio h2{font-size:12px}body.mobile-studio .panel-title>span{font-size:9px}body.mobile-studio .upload-box{font-size:11px;padding:10px 2px;min-height:110px}body.mobile-studio .upload-box small{font-size:9px}body.mobile-studio .source-row{display:flex;flex-wrap:wrap;gap:6px}body.mobile-studio .source-row>div{min-width:0;flex:1}body.mobile-studio #source-name{max-width:100%;font-size:10px}body.mobile-studio #source-thumb{width:30px;height:30px}body.mobile-studio #source-info{font-size:8px}body.mobile-studio .image-actions{display:block;margin-top:8px}body.mobile-studio .image-actions button{width:100%;margin-top:4px;font-size:10px;min-height:32px}body.mobile-studio .sample-row{flex-wrap:wrap;gap:8px;font-size:10px}body.mobile-studio .field-title{font-size:10px;gap:4px;flex-wrap:wrap}body.mobile-studio .field-title .subtle{display:none}body.mobile-studio .controls select{font-size:10px;padding:8px 4px;width:100%}body.mobile-studio .check-row{font-size:10px;gap:3px;flex-wrap:wrap}body.mobile-studio .size-presets{gap:5px}body.mobile-studio .size-presets button{font-size:12px;padding:8px 2px}body.mobile-studio .size-presets small{font-size:9px}body.mobile-studio .field-note{font-size:9px;text-align:left}body.mobile-studio .controls .primary,body.mobile-studio .materials .primary,body.mobile-studio .materials .secondary{font-size:10px;white-space:normal;padding:10px 3px}body.mobile-studio .primary svg{display:none}body.mobile-studio .tool-column>.editing{padding:6px 2px;display:block}body.mobile-studio .editing>div{gap:4px}body.mobile-studio .editing .tool-btn{flex:1;font-size:10px;padding:7px 3px}body.mobile-studio .editing label{font-size:10px;display:block;margin:8px 0}body.mobile-studio .editing select{font-size:10px;width:100%;margin:4px 0}body.mobile-studio .color-list{display:block;max-height:none;overflow:visible}body.mobile-studio .color-row{width:100%;gap:5px;padding:9px 2px;min-height:36px;font-size:10px}body.mobile-studio .swatch{width:18px;height:18px;border-radius:5px}body.mobile-studio .color-row small{display:none}body.mobile-studio .materials .muted,body.mobile-studio .material-head{font-size:9px}body.mobile-studio .selection{padding:8px 5px;font-size:10px}body.mobile-studio .selection-actions{display:block}body.mobile-studio .selection-actions .action-btn{width:100%;font-size:10px;margin-top:4px;padding:6px 2px}body.mobile-studio .recolor-row{display:block}body.mobile-studio .recolor-row label{display:block;font-size:10px;white-space:normal}body.mobile-studio .recolor-row select{width:100%;margin-top:5px}body.mobile-studio .recolor-row .primary{width:100%;margin-top:8px}body.mobile-studio .color-pending{font-size:9px}body.mobile-studio .inventory-row{font-size:9px;flex-wrap:wrap;gap:6px}body.mobile-studio .material-summary{font-size:10px;flex-wrap:wrap;gap:6px}body.mobile-studio .secondary-links{display:block}body.mobile-studio .secondary-links button{width:100%;font-size:10px;margin-top:5px;white-space:normal}body.mobile-studio .print-options{font-size:10px}body.mobile-studio .print-options p{font-size:9px}body.mobile-studio .print-options label{display:flex;flex-wrap:wrap;gap:5px;align-items:center}body.mobile-studio .print-options input{width:48px}body.mobile-studio #preview-empty{padding:12px;text-align:center;font-size:11px}body.mobile-studio #loading{font-size:11px;padding:12px;text-align:center}}

@media(min-width:651px){.workspace>.tool-column>.controls{grid-column:1;grid-row:1}.workspace>.preview-panel{grid-column:2;grid-row:1}.workspace>.tool-column>.materials{grid-column:3;grid-row:1}}@media(min-width:651px) and (max-width:1050px){.workspace>.tool-column>.materials{grid-column:1 / -1;grid-row:2}}
.column-resizer{display:none}@media(max-width:650px){body.mobile-studio .tool-column{flex-basis:var(--tool-width,43%);width:var(--tool-width,43%)}body.mobile-studio .column-resizer{display:flex;flex:0 0 12px;width:12px;align-items:center;justify-content:center;touch-action:none;cursor:col-resize;outline:none}body.mobile-studio .column-resizer span{display:block;width:1px;height:48px;border-radius:99px;background:#b6c5b4;transition:background .15s,width .15s}body.mobile-studio .column-resizer:active span,body.mobile-studio .column-resizer:focus-visible span{width:3px;background:var(--green)}}
@media(max-width:650px){body.mobile-studio .workspace{gap:2px}body.mobile-studio .column-resizer{flex-basis:4px;width:4px}}
.mobile-studio .viewport{touch-action:none}

@media(max-width:650px){body.mobile-studio .editing select{display:block}body.mobile-studio .tool-column{overflow-x:hidden}}
