html.studio-html{height:100%;overflow:hidden}.studio-body{height:100vh;height:var(--app-height,100dvh);overflow:hidden;background:#F2F6F4;display:grid;grid-template-rows:66px minmax(0,1fr)25px;font-size:14px}.studio-top{display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:20px;background:#FFFFFF;border-bottom:1px solid var(--line);z-index:20}.studio-home{display:flex;gap:12px;align-items:center}.studio-home .icon-btn{border:0;background:#F3F7F5;width:38px;height:38px}.studio-home .brand img{width:145px}.project-meta{border-left:1px solid var(--line);padding-left:22px;display:flex;align-items:center;gap:14px}.project-meta strong{font-weight:600;font-size:13px}.save-state{font-size:11px;color:#647E7F;display:inline-flex;align-items:center;gap:5px}.save-state::before{content:'';width:5px;height:5px;border-radius:50%;background:#699A8B}.save-state[data-status=error]::before{background:#BB7740}.top-tools{display:flex;align-items:center;gap:8px}.top-tools .icon-btn{border:0;width:38px;height:38px;background:transparent}.top-tools .icon-btn:hover{background:#EDF4F1}.top-tools .btn{font-size:13px;min-height:40px;padding:10px 19px;margin-left:4px}.top-tools .separator{width:1px;height:22px;background:var(--line);margin:0 5px}.top-tools [data-tip]::after{top:calc(100% + 9px);bottom:auto}.workspace{display:grid;grid-template-columns:72px 285px minmax(0,1fr);min-height:0}.tool-rail{grid-column:1;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:11px;padding:22px 7px 12px;background:#FFFFFF;border-right:1px solid var(--line);z-index:12;min-height:0}.tool-btn{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:56px;height:63px;font-size:10px;font-weight:550;color:#617A7C;border-radius:13px;position:relative}.tool-btn>.icon{width:23px;height:23px}.tool-btn.active{background:#E5F2EF;color:#006D83}.tool-btn:hover{background:#F0F5F3}.tool-rail .rail-end{margin-top:auto}.tool-rail .rail-end .icon-btn{border:0;color:#647879}.editor-panel{grid-column:2;grid-row:1;background:#FFFFFF;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;z-index:10}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:22px 20px 16px;flex:none;gap:8px}.panel-head h1{font-size:18px;letter-spacing:-.04em;font-weight:650}.panel-head .icon-btn{display:none;border:0;width:34px;height:34px}.panel-body{padding:0 19px 25px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#C9DCD4 transparent}.panel-handle{display:none}.panel-label{font-size:11px;text-transform:uppercase;letter-spacing:.065em;font-weight:600;color:#6A8080;display:block;margin:17px 0 10px}.panel-label:first-child{margin-top:0}.template-filters{display:flex;gap:5px;overflow:auto;margin:0 -19px 16px;padding:0 19px 7px;scrollbar-width:none}.filter{flex:none;font-size:11px;min-height:32px;border:1px solid #DFE9E6;border-radius:30px;padding:6px 11px;background:white;font-weight:500}.filter.active{background:var(--ink);border-color:var(--ink);color:white}.template-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px}.template-card{padding:0;text-align:left;background:transparent;border:0;min-width:0}.template-thumb{height:144px;background:var(--tile);border-radius:13px;border:2px solid transparent;display:block;overflow:hidden;position:relative;transition:.16s}.template-thumb canvas{height:166px;width:auto;position:absolute;top:12px;left:50%;transform:translateX(-50%) rotate(9deg)}.template-card:nth-child(2n) canvas{transform:translateX(-50%) rotate(-8deg)}.template-card .check-mark{position:absolute;right:6px;bottom:6px;display:none;width:19px;height:19px;align-items:center;justify-content:center;background:var(--blue);border:2px solid white;border-radius:50%;color:white}.check-mark .icon{width:12px;height:12px}.template-card[aria-pressed=true] .template-thumb{border-color:var(--blue)}.template-card[aria-pressed=true] .check-mark{display:flex}.template-name{display:block;font-size:11px;font-weight:550;line-height:1.4;margin-top:7px}.template-card:hover .template-thumb{transform:translateY(-2px)}.bottle-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bottle-choice{border:1px solid var(--line);background:#F6F8F5;border-radius:15px;overflow:hidden;padding:14px 5px 11px;font-size:12px;font-weight:550}.bottle-choice canvas{height:155px;width:auto;margin:0 auto 11px}.bottle-choice.active{border:2px solid var(--blue);padding:13px 4px 10px;background:#EBF6F2}.size-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.size-options button{min-height:43px;border:1px solid var(--line);background:white;border-radius:11px;font-size:12px;font-weight:550}.size-options button.active{background:var(--ink);color:white;border-color:var(--ink)}.quiet-note{color:#728585;font-size:11px;line-height:1.6;margin-top:12px}.mini-notice{border:1px solid #DAE8E1;border-radius:13px;padding:12px;display:flex;gap:9px;margin-top:20px;font-size:12px;line-height:1.5;color:#546F70}.mini-notice .icon{width:17px;height:17px}.studio-field{margin-bottom:15px}.studio-field label{display:flex;justify-content:space-between;margin-bottom:7px;gap:10px;font-size:12px;font-weight:550}.studio-field .count{font-size:10px;color:#7A8C8B;font-weight:400}.studio-field textarea,.studio-field input:not([type=range]),.studio-field select{width:100%;border:1px solid #DEE8E3;border-radius:10px;background:#F9FBF9;color:var(--ink);font-size:13px;line-height:1.55;padding:10px 11px;min-height:43px;resize:none;display:block}.studio-field input:focus,.studio-field textarea:focus{border-color:#93C2C4;outline:2px solid #DAEBEC;outline-offset:0;background:white}.studio-field textarea{min-height:71px}.studio-field input[type=range]{width:100%;accent-color:var(--blue);height:30px;cursor:pointer}.range-caption{display:flex;justify-content:space-between;font-size:11px;color:#738886}.segmented{display:flex;background:#F0F5F2;border-radius:10px;padding:3px;gap:3px;margin-bottom:17px}.segmented button{border:0;background:transparent;flex:1;min-height:35px;border-radius:8px;font-size:11px;font-weight:550;color:#6D8080;white-space:nowrap;padding:5px 8px}.segmented button.active{background:white;box-shadow:0 1px 4px #123e4510;color:var(--ink)}.segmented button .icon{width:17px;height:17px}.subtle-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.color-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:7px 8px}.color-swatches .swatch{height:43px;width:43px;padding:5px;margin:auto}.color-swatches .swatch::before{height:31px;width:31px}.color-swatches .swatch[aria-pressed=true]::after{inset:1px;border-color:#36575A}.color-hex{display:flex;align-items:center;border:1px solid var(--line);border-radius:11px;margin:16px 0 18px;overflow:hidden;padding:7px 10px;gap:9px;background:#FAFCFA;min-height:45px}.color-hex input[type=color]{width:29px;height:29px;border:0;padding:0;background:transparent;border-radius:50%;cursor:pointer}.color-hex input[type=text]{border:0;background:transparent;font-size:13px;font-family:Inter,Arial,sans-serif;font-weight:500;letter-spacing:.035em;min-width:0;width:100%;outline:0;text-transform:uppercase}.color-hex .icon-btn{border:0;background:transparent;width:30px;height:30px}.color-hex .icon-btn .icon{width:16px;height:16px}.color-square{height:175px;border-radius:12px;position:relative;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--hue);touch-action:none;cursor:crosshair;margin-bottom:12px}.color-cursor{width:17px;height:17px;border:2px solid white;box-shadow:0 0 0 1px #16394177;border-radius:50%;position:absolute;transform:translate(-50%,-50%);pointer-events:none}.hue-range{appearance:none;width:100%;height:10px;border-radius:10px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);margin:10px 0 16px;cursor:pointer}.hue-range::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border:3px solid white;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #718880}.hue-range::-moz-range-thumb{width:15px;height:15px;border:2px solid white;border-radius:50%;background:#fff}.contrast-row{border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.toggle{appearance:none;width:35px;height:21px;border-radius:20px;background:#CFDBD7;position:relative;cursor:pointer;transition:.2s}.toggle::after{content:'';width:15px;height:15px;border-radius:50%;background:white;position:absolute;left:3px;top:3px;transition:.2s}.toggle:checked{background:var(--blue)}.toggle:checked::after{transform:translateX(14px)}.text-color-row{display:flex;gap:7px;margin-top:13px}.text-color-row button{width:40px;height:40px;background:var(--text-swatch);border:1px solid #CEE0DB;border-radius:50%;display:grid;place-items:center}.text-color-row .icon{width:16px;height:16px}.text-color-row input{width:40px;height:40px;border:1px solid var(--line);background:white;border-radius:50%;padding:5px;cursor:pointer}
.upload-box{background:#F8FAF7;border:1.5px dashed #BBCECA;border-radius:16px;text-align:center;padding:25px 14px;min-height:202px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px}.upload-box.drag-over{border-color:var(--blue);background:#E6F3F0}.upload-box>.icon{width:35px;height:35px;margin-bottom:5px;color:#668F90}.upload-box strong{font-size:13px;font-weight:550}.upload-box p{font-size:11px;color:#708784}.upload-box .btn{min-height:37px;font-size:11px;padding:8px 17px;margin-top:5px}.upload-preview{height:155px;position:relative;border-radius:13px;background:#F0F5F2;background-image:linear-gradient(45deg,#E3ECE7 25%,transparent 25%),linear-gradient(-45deg,#E3ECE7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#E3ECE7 75%),linear-gradient(-45deg,transparent 75%,#E3ECE7 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}.upload-preview img{width:100%;height:100%;object-fit:contain;padding:14px}.upload-preview .icon-btn{position:absolute;right:8px;top:8px;width:31px;height:31px;box-shadow:0 3px 7px #00000012}.upload-preview .icon{width:15px;height:15px}.upload-meta{display:flex;justify-content:space-between;gap:10px;margin:12px 0 17px;font-size:11px}.upload-meta span{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-meta button{border:0;background:transparent;text-decoration:underline;font-size:11px}.file-error{color:#A14637;background:#FCF1E9;border-radius:10px;padding:10px;font-size:12px;margin-top:10px}.upload-controls{margin-top:20px}.upload-controls .studio-field{margin-bottom:9px}.control-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center}.control-bottom .btn{font-size:11px;min-height:36px;padding:8px 12px}.control-bottom .icon-btn{width:36px;height:36px}.original-state{font-size:10px;color:#6D8481;line-height:1.5;margin-top:10px}
.stage{grid-column:3;grid-row:1;min-width:0;min-height:0;position:relative;isolation:isolate;overflow:hidden;background:var(--stage-bg,#F2F6F3);transition:background .2s}.stage::before{content:'';position:absolute;inset:35% 0 0;z-index:-1;opacity:.15;background-image:radial-gradient(#728F87 .8px,transparent .8px);background-size:18px 18px;mask-image:linear-gradient(transparent,black);pointer-events:none}.stage-top{position:absolute;top:23px;left:26px;right:23px;display:flex;justify-content:space-between;align-items:flex-start;z-index:4;pointer-events:none}.stage-top>*{pointer-events:auto}.stage-meta{display:grid;gap:5px}.stage-meta strong{font-size:13px;font-weight:500}.stage-meta span{font-size:11px;color:#768B88}.stage-actions{display:flex;gap:7px}.stage-actions .icon-btn{width:35px;height:35px;border:1px solid #DCE8E280;background:#FFFFFFB9}.stage-actions .icon{width:17px;height:17px}.stage-actions .icon-btn::after{bottom:auto;top:calc(100% + 9px);transform:translateX(-85%)}.canvas-wrap{position:absolute;inset:45px 32px 86px;min-height:0}.main-canvas{width:100%;height:100%;touch-action:pan-y;cursor:pointer}.stage[data-view=inspect] .main-canvas,.stage[data-view=close] .main-canvas{touch-action:none;cursor:grab}.stage[data-view=flat] .main-canvas{touch-action:none}.stage[data-view=inspect] .main-canvas:active,.stage[data-view=close] .main-canvas:active{cursor:grabbing}.canvas-error{position:absolute;inset:20%;display:flex;justify-content:center;align-items:center;text-align:center;font-size:14px;color:var(--muted)}.canvas-error[hidden]{display:none}.label-focus{position:absolute;border:1.5px solid #00839A;border-radius:4px;pointer-events:none;display:none;z-index:2}.label-focus.visible{display:block}.label-focus::before,.label-focus::after{content:'';position:absolute;left:-4px;width:7px;height:7px;background:white;border:1px solid #00839A;box-shadow:var(--handle-distance,150px) 0 0 -1px white,var(--handle-distance,150px) 0 0 0 #00839A}.label-focus::before{top:-4px}.label-focus::after{bottom:-4px}.viewer-dock{display:flex;position:absolute;bottom:23px;left:50%;transform:translateX(-50%);gap:4px;align-items:center;padding:5px;border:1px solid #E0E9E3;background:#FFFFFFE8;box-shadow:0 7px 25px #294E3E0B;border-radius:50px;z-index:6}.viewer-dock .icon-btn{border:0;background:transparent;width:42px;height:42px}.viewer-dock .icon-btn.active{background:#E3F0EB;color:#08778A}.viewer-dock .icon-btn .icon{width:20px;height:20px}.stage-color{position:absolute;left:25px;bottom:31px;display:flex;gap:4px;z-index:3}.stage-color button{width:26px;height:26px;border:3px solid white;box-shadow:0 0 0 1px #CDDDD4;border-radius:50%;background:var(--surface);padding:0}.stage-color button.active{box-shadow:0 0 0 1.5px var(--blue)}.zoom-control{position:absolute;right:25px;bottom:26px;display:flex;align-items:center;gap:1px;border:1px solid #DDE8E1;border-radius:50px;background:#FFFFFFCA;padding:3px;z-index:3}.zoom-control .icon-btn{width:33px;height:33px;border:0;background:transparent}.zoom-control .icon{width:16px;height:16px}.zoom-control output{font-size:10px;color:#6D8682;min-width:32px;text-align:center}.view-notice{position:absolute;bottom:83px;left:50%;transform:translateX(-50%);font-size:10px;color:#83938E;white-space:nowrap;pointer-events:none}.view-notice[hidden]{display:none}.stage-bottom-info{position:absolute;bottom:80px;right:24px;z-index:2;color:#6F8682;font-size:10px;display:flex;gap:4px;align-items:center;cursor:pointer;background:transparent;border:0;padding:4px}.stage-bottom-info .icon{width:13px;height:13px}.studio-footer{display:flex;align-items:center;justify-content:space-between;padding:0 19px;background:white;border-top:1px solid #E1E9E5;font-size:10px;color:#718580;line-height:1;z-index:11}.studio-footer a{font-weight:500;color:#3C655E}.viewer-focus .workspace{grid-template-columns:1fr}.viewer-focus .tool-rail,.viewer-focus .editor-panel{display:none}.viewer-focus .stage{grid-column:1}.viewer-focus .canvas-wrap{inset:35px 32px 87px}.studio-body .toast{bottom:64px}
/* Dialogs contain isolated tasks, never a second scrolling marketing page. */
.dialog{border:0;border-radius:24px;background:#FFFFFF;padding:0;width:min(92vw,540px);color:var(--ink);box-shadow:0 20px 80px #123B4633;max-height:88vh;max-height:88dvh;overflow:auto}.dialog::backdrop{background:#173C454D;backdrop-filter:blur(4px)}.dialog-head{padding:22px 24px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:white;z-index:5}.dialog-head h2{font-size:22px;font-weight:650;letter-spacing:-.04em}.dialog-head .icon-btn{width:34px;height:34px;border:0;background:#F1F6F2}.dialog-head .icon{width:17px;height:17px}.dialog-content{padding:3px 24px 25px}.dialog-content p{font-size:13px;color:var(--muted);line-height:1.7}.dialog .btn{font-size:13px;min-height:44px}.dialog-actions{display:flex;gap:9px;margin-top:22px;flex-wrap:wrap;justify-content:flex-end}.menu-grid{display:grid;gap:3px}.menu-action{border:0;min-height:51px;text-align:left;background:white;display:flex;align-items:center;gap:13px;padding:10px 7px;border-radius:11px;font-size:13px}.menu-action:hover{background:#F0F6F2}.menu-action .icon{color:#487877;width:21px;height:21px}.menu-rule{border:0;border-top:1px solid var(--line);width:100%;margin:8px 0}.help-copy h3{font-size:15px;margin:19px 0 6px}.help-copy p{font-size:12px}.demo-pill{display:inline-flex;align-items:center;gap:5px;background:#EFF5F1;color:#637E75;border-radius:20px;font-size:10px;font-weight:550;padding:4px 8px;letter-spacing:.015em}.demo-pill::before{content:'';width:4px;height:4px;border-radius:50%;background:#5E907C}.order-progress{display:flex;gap:5px;margin:6px 0 22px}.order-progress span{height:3px;background:#E6EFEB;border-radius:3px;flex:1}.order-progress span.done{background:var(--blue)}.order-bottle-row{display:flex;gap:20px;align-items:center;margin:0 0 22px;padding:14px 18px;background:#F3F8F3;border-radius:16px}.order-thumb{width:55px;height:115px;flex:none}.order-bottle-row h3{font-size:16px;letter-spacing:-.03em}.order-bottle-row p{font-size:12px;margin-top:5px}.order-bottle-row .btn{min-height:30px;padding:0;background:transparent;color:var(--blue);border:0;font-size:11px;margin-top:7px}.order-form .field{font-size:12px;margin:17px 0}.order-form .field input,.order-form .field select{font-size:14px;min-height:44px}.quantity-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden}.quantity-input button{min-width:45px;min-height:45px;border:0;background:#F3F7F3;display:grid;place-items:center}.quantity-input input{width:100%;text-align:center;border:0;background:white;font-weight:600;font-size:18px;min-height:45px;appearance:textfield;color:var(--ink)}.quantity-input input::-webkit-inner-spin-button{appearance:none}.quantity-input .icon{width:16px}.quantity-presets{display:flex;gap:7px;margin-top:10px}.quantity-presets button{border:1px solid var(--line);border-radius:30px;padding:6px 13px;font-size:11px;background:white;min-height:33px}.quantity-presets button.active{background:#E1F0E7;border-color:#ADCDC1}.fulfilment-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0 17px}.fulfilment-options button{padding:13px;border:1px solid var(--line);border-radius:12px;background:white;text-align:left;font-size:12px;display:flex;align-items:center;gap:8px}.fulfilment-options button.active{background:#EBF5EF;border-color:#9AC4B6}.fulfilment-options .icon{width:20px;height:20px}.quote-table{width:100%;font-size:13px;border-collapse:collapse;margin-top:21px}.quote-table td{padding:7px 0}.quote-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}.quote-table tr.total td{font-size:21px;font-weight:650;padding-top:15px;border-top:1px solid var(--line);letter-spacing:-.035em}.quote-table tr.total{height:55px}.quote-table tr:last-child td{padding-bottom:0}.order-note{font-size:11px!important;color:#789084!important;margin-top:12px}.order-primary{width:100%;margin-top:20px}.inline-error{color:#A34532!important;background:#FFF1E9;border:1px solid #F3D7C4;border-radius:10px;padding:10px;margin-top:13px!important;font-size:12px!important}.payment-total{padding:16px 0 23px;text-align:center}.payment-total small{font-size:12px;color:#6E8580}.payment-total strong{display:block;font-size:35px;letter-spacing:-.04em;margin-top:5px;font-weight:650}.payment-total span{font-size:11px;color:#728981}.pay-icon{width:54px;height:54px;margin:4px auto 17px;border-radius:17px;background:#E5F2E9;color:#2D6F52;display:grid;place-items:center}.pay-icon .icon{width:28px;height:28px}.demo-options{font-size:11px;color:#72847C;border-top:1px solid var(--line);margin-top:20px;padding-top:15px}.demo-options summary{cursor:pointer}.demo-options select{width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;margin-top:10px;background:white;font-size:12px}.proof-canvas{width:100%;height:310px;background:#F1F6F1;border-radius:15px;margin:16px 0}.approve-line{display:flex;align-items:flex-start;gap:10px;font-size:13px;margin:18px 0;cursor:pointer}.approve-line input{width:18px;height:18px;accent-color:var(--blue);flex:none;margin:2px 0}.success-icon{width:65px;height:65px;margin:7px auto 20px;border-radius:50%;display:grid;place-items:center;background:#DEEEE5;color:#397860}.success-icon .icon{width:31px;height:31px}.success-copy{text-align:center}.success-copy h3{font-size:25px;margin-bottom:11px}.success-copy p{max-width:340px;margin:auto}.success-code{display:block;font-size:11px;letter-spacing:.05em;color:#658279;margin:20px auto 0}.return-draft-actions{display:grid;gap:10px;margin-top:20px}
@media(min-width:1800px){.workspace{grid-template-columns:80px 320px minmax(0,1fr)}.studio-top{height:74px}.studio-body{grid-template-rows:74px minmax(0,1fr)29px}.panel-head{padding:25px}.panel-body{padding:0 25px 30px}.template-thumb{height:177px}.template-thumb canvas{height:205px}.template-name{font-size:12px}.studio-field input:not([type=range]),.studio-field textarea{font-size:14px}.canvas-wrap{inset:60px 50px 95px}}
@media(max-width:1100px){.workspace{grid-template-columns:66px 248px minmax(0,1fr)}.project-meta{display:none}.panel-head{padding:20px 15px 14px}.panel-body{padding:0 15px 20px}.template-filters{margin:0 -15px 13px;padding:0 15px 5px}.template-thumb{height:130px}.template-thumb canvas{height:151px}.tool-btn{width:51px}.stage-color{left:16px;bottom:88px;gap:5px}.zoom-control{right:16px;bottom:88px}.stage-bottom-info{display:none}.stage-top{left:19px;right:16px;top:20px}.canvas-wrap{inset:54px 12px 104px}.viewer-dock{bottom:20px}.view-notice{bottom:78px}}
@media(max-width:760px){
 .studio-body{grid-template-rows:58px minmax(0,1fr)21px}.studio-top{padding:0 11px;gap:8px}.studio-home{gap:4px}.studio-home .icon-btn{width:33px;height:33px;background:transparent}.studio-home .icon-btn .icon{width:17px}.studio-home .brand img{width:104px}.top-tools{gap:1px}.top-tools .icon-btn{width:34px;height:38px}.top-tools .icon-btn .icon{width:18px;height:18px}.top-tools .separator,.top-tools .desktop-action{display:none}.top-tools .btn{min-height:35px;padding:8px 13px;font-size:12px;gap:5px;margin-left:4px}.top-tools .btn .icon{width:14px;height:14px}.workspace{position:relative;display:flex;flex-direction:column;min-height:0}.stage{flex:1;min-height:100px;order:1;transition:none}.tool-rail{order:3;flex-direction:row;justify-content:space-evenly;align-items:stretch;padding:4px 6px max(4px,env(safe-area-inset-bottom));gap:0;border:0;border-top:1px solid var(--line);flex:none;background:white}.tool-btn{height:54px;width:59px;gap:4px;border-radius:11px;font-size:10px;flex:1;max-width:78px}.tool-btn>.icon{width:21px;height:21px}.tool-rail .rail-end{display:none}.editor-panel{order:2;flex:none;max-height:40%;height:252px;border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0;background:#FFF;box-shadow:0 -6px 30px #24524405;position:relative;min-height:80px}.panel-handle{display:block;position:absolute;top:7px;left:50%;transform:translateX(-50%);height:4px;width:32px;background:#D9E3DC;border-radius:4px}.panel-head{padding:20px 19px 10px;min-height:50px}.panel-head h1{font-size:15px;letter-spacing:-.035em}.panel-head .icon-btn{display:flex;width:29px;height:29px}.panel-head .icon{width:16px;height:16px}.panel-body{padding:0 19px 18px}.panel-collapsed .editor-panel{height:51px!important;min-height:51px;max-height:51px;border-radius:18px 18px 0 0}.panel-collapsed .panel-body{display:none}.panel-collapsed .panel-handle{display:none}.panel-collapsed .panel-head{padding:10px 18px;min-height:51px}.panel-collapsed .panel-head .icon{transform:rotate(180deg)}.stage-top{top:13px;left:18px;right:14px}.stage-meta strong{font-size:11px}.stage-meta span{font-size:10px}.stage-actions{gap:5px}.stage-actions .icon-btn{width:31px;height:31px}.stage-actions .icon{width:15px;height:15px}.stage-actions .icon-btn::after{font-size:10px}.canvas-wrap{inset:40px 15px 62px}.viewer-dock{bottom:8px;padding:3px;gap:0;border-radius:30px}.viewer-dock .icon-btn{width:39px;height:39px}.viewer-dock .icon-btn .icon{width:18px;height:18px}.stage-color{left:15px;bottom:66px;gap:7px;flex-direction:column}.stage-color button{width:23px;height:23px;border-width:3px}.zoom-control{right:14px;bottom:65px;flex-direction:column;gap:0;border-radius:30px;padding:1px}.zoom-control .icon-btn{width:28px;height:28px}.zoom-control .icon{width:14px;height:14px}.zoom-control output{font-size:9px;min-width:28px;line-height:1.8}.view-notice{bottom:53px;font-size:9px}.stage-bottom-info{display:none}.studio-footer{padding:0 12px;font-size:9px;justify-content:center}.studio-footer>span:first-child{display:none}.studio-body .toast{bottom:88px;font-size:12px;padding:10px 15px}.template-filters{margin:0 -19px 9px;padding:0 19px 3px}.filter{min-height:30px;font-size:10px;padding:5px 10px}.template-grid{display:flex;gap:11px;overflow:auto;scrollbar-width:thin;padding-bottom:4px}.template-card{width:99px;flex:none}.template-thumb{height:112px;border-radius:12px}.template-thumb canvas{height:135px;top:10px}.template-name{font-size:10px;margin-top:5px;line-height:1.4}.bottle-options{grid-template-columns:1fr 1fr;gap:10px}.bottle-choice{padding:7px 13px;display:flex;align-items:center;justify-content:center;gap:17px;min-height:105px;font-size:12px}.bottle-choice.active{padding:6px 12px}.bottle-choice canvas{height:88px;width:auto;margin:0}.size-options{gap:10px}.size-options button{min-height:38px;font-size:12px}.panel-label{font-size:10px;margin:12px 0 8px}.mini-notice,.bottle-panel-note{display:none}.studio-field label{font-size:12px;margin-bottom:5px}.studio-field{margin-bottom:11px}.studio-field input:not([type=range]),.studio-field textarea,.studio-field select{font-size:16px;padding:7px 10px;min-height:41px;line-height:1.35}.studio-field textarea{min-height:55px}.studio-field .count{font-size:10px}.segmented{margin-bottom:10px}.segmented button{min-height:33px;font-size:11px}.color-swatches{grid-template-columns:repeat(8,1fr);gap:0}.color-swatches .swatch{width:35px;height:38px;padding:5px}.color-swatches .swatch::before{width:26px;height:26px}.color-swatches .swatch[aria-pressed=true]::after{inset:2px}.color-hex{margin:9px 0 11px;padding:5px 9px;min-height:42px}.color-hex input[type=text]{font-size:16px}.contrast-row{padding-top:10px;font-size:11px}.color-square{height:120px;margin-bottom:8px}.hue-range{margin:3px 0 10px}.color-panel-tab{display:grid;grid-template-columns:1fr}.spectrum-tab .color-hex{margin:5px 0 8px}.spectrum-tab .contrast-row{display:none}.upload-box{padding:12px;min-height:118px;display:grid;grid-template-columns:35px 1fr;gap:4px 12px;text-align:left}.upload-box>.icon{grid-row:1/4;width:30px;height:30px;margin:0;align-self:center}.upload-box strong{font-size:12px}.upload-box p{font-size:10px}.upload-box .btn{min-height:30px;font-size:11px;justify-self:start;padding:6px 13px}.upload-preview{height:95px}.upload-meta{margin:8px 0 12px}.upload-controls{margin-top:10px}.viewer-focus .workspace{display:flex}.viewer-focus .stage{min-height:0}.viewer-focus .tool-rail,.viewer-focus .editor-panel{display:none}.viewer-focus .canvas-wrap{inset:40px 15px 68px}.keyboard-open .stage{flex:.7;min-height:80px}.keyboard-open .editor-panel{max-height:57%;height:205px}.keyboard-open .viewer-dock{display:none}.keyboard-open .canvas-wrap{inset:10px 40px 5px}.keyboard-open .stage-top{display:none}.keyboard-open .stage-color,.keyboard-open .zoom-control{display:none}.keyboard-open .tool-rail{padding:0}.keyboard-open .tool-btn{height:40px}.keyboard-open .tool-btn span{display:none}
 .dialog{width:100%;max-width:100%;max-height:calc(var(--app-height,100dvh) - 20px);border-radius:24px 24px 0 0;margin:auto 0 0;position:fixed;bottom:0;top:auto}.dialog-head{padding:21px 20px 13px}.dialog-head h2{font-size:20px}.dialog-content{padding:0 20px max(23px,env(safe-area-inset-bottom))}.dialog .btn{min-height:46px;font-size:13px}.order-bottle-row{padding:12px 15px;margin-bottom:17px}.order-thumb{height:96px;width:45px}.order-bottle-row h3{font-size:15px}.order-form .field input,.order-form .field select{font-size:16px}.order-form .field{margin:14px 0}.quote-table{margin-top:16px}.quote-table td{font-size:12px;padding:6px 0}.quote-table tr.total td{font-size:23px}.proof-canvas{height:270px}.dialog-content p{font-size:13px}.return-draft-actions .btn{width:100%}
}
@media(max-width:365px){.studio-home .brand img{width:88px}.studio-home .icon-btn{width:28px}.top-tools .icon-btn{width:29px}.top-tools .btn{font-size:11px;padding:8px 10px}.studio-top{padding:0 8px}.viewer-dock .icon-btn{width:37px;height:37px}.stage-color{left:8px}.zoom-control{right:8px}.color-swatches .swatch{width:31px}.tool-btn{font-size:9px}.panel-head{padding-left:14px;padding-right:14px}.panel-body{padding-left:14px;padding-right:14px}}
@media(max-height:650px) and (max-width:760px){.editor-panel{height:205px;max-height:38%}.canvas-wrap{inset:34px 12px 53px}.stage-top{top:8px}.stage-meta span{display:none}.viewer-dock .icon-btn{width:34px;height:34px}.stage-color{bottom:52px}.zoom-control{bottom:52px}.tool-btn{height:46px}.stage-actions .icon-btn{width:29px;height:29px}.view-notice{display:none}}
@media(max-height:480px) and (orientation:landscape){.workspace{display:grid;grid-template-columns:60px 238px 1fr}.stage{grid-column:3;grid-row:1}.tool-rail{grid-column:1;grid-row:1;flex-direction:column;justify-content:flex-start;padding:7px}.tool-btn{height:42px;min-height:42px;flex:0;max-width:none;width:46px;gap:0}.tool-btn span{display:none}.editor-panel{grid-column:2;grid-row:1;height:auto;max-height:none;border-radius:0}.panel-head{padding:12px;min-height:45px}.panel-head .icon-btn,.panel-handle{display:none}.panel-body{padding:0 12px 15px}.template-grid{display:grid;grid-template-columns:1fr 1fr}.template-card{width:auto}.color-swatches{grid-template-columns:repeat(4,1fr)}.canvas-wrap{inset:30px 12px 50px}.stage-top{top:8px;left:12px}.stage-meta strong{font-size:10px}.stage-meta span{display:none}.stage-color,.zoom-control,.view-notice{display:none}.viewer-dock{bottom:6px}.viewer-dock .icon-btn{width:32px;height:32px}.studio-body{grid-template-rows:50px minmax(0,1fr)20px}.studio-top{height:50px}.studio-home .brand img{width:110px}.panel-collapsed .editor-panel{height:auto!important;min-height:0;max-height:none}.panel-collapsed .panel-body{display:block}.viewer-focus .workspace{display:grid;grid-template-columns:1fr}.viewer-focus .stage{grid-column:1}.dialog{width:min(94vw,560px);max-height:92vh;border-radius:20px;margin:auto;top:0;bottom:0}}
/* Explicitly constrain the application grid; horizontal template strips must not size the page. */
.studio-body{grid-template-columns:minmax(0,1fr)}.studio-top,.workspace,.tool-rail,.editor-panel,.panel-body{min-width:0}
@media(max-width:760px) and (min-height:651px){.viewer-dock .icon-btn{width:44px;height:44px}.canvas-wrap{bottom:67px}.viewer-dock{bottom:7px}.stage-color button{width:27px;height:27px}.zoom-control .icon-btn{width:32px;height:32px}.view-notice{bottom:58px}.studio-footer{font-size:10px}}
@media(max-width:760px) and (min-height:481px){
 .panel-handle{height:18px;top:0;width:68px;background:transparent;border:0;touch-action:none;cursor:ns-resize;z-index:3}.panel-handle::after{content:'';position:absolute;width:32px;height:4px;top:7px;left:18px;border-radius:4px;background:#D9E3DC}
 .panel-expanded:not(.panel-collapsed) .editor-panel{height:420px;max-height:61%}.keyboard-open.panel-expanded:not(.panel-collapsed) .editor-panel{height:225px;max-height:60%}
}
