@font-face{font-family:'DM Sans';src:url('./assets/fonts/dm-sans-latin.woff2') format('woff2');font-style:normal;font-weight:400 500;font-display:swap}
.import-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:12px}.import-status span{min-width:0;overflow-wrap:anywhere}.import-help{margin:8px 0}.pdf-picker{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:22px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);box-shadow:0 12px 50px #0003;overflow:auto}.pdf-picker::backdrop{background:#181c1e88}.pdf-picker-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.pdf-picker h2{font-size:18px;font-weight:500;margin:0}.pdf-page-preview{height:clamp(150px,40dvh,340px);display:flex;align-items:center;justify-content:center;margin:16px 0;background:repeating-conic-gradient(#f0eee9 0% 25%,#fff 0% 50%) 50%/16px 16px;border:1px solid var(--line);border-radius:4px}.pdf-page-preview img{max-width:100%;max-height:100%;object-fit:contain}.pdf-page-preview [role=status]{background:var(--paper);padding:8px}.pdf-page-controls{display:flex;justify-content:center;align-items:center;gap:16px}.pdf-page-controls input{width:68px;margin:0 5px;padding:8px;border:1px solid var(--line);border-radius:4px;background:var(--field);text-align:center}.pdf-page-controls button{min-width:44px;min-height:44px}.pdf-use{width:100%;justify-content:center;margin-top:18px;min-height:44px}
:root{--ink:#292b2b;--muted:#686865;--line:#e6e3dc;--paper:#fdfcfa;--stage:#eef0e6;--field:#fff;--header:#25282a;--header-text:#f7f7f2;--header-muted:#c5c4be;--header-line:#5e605c;--button:#4a4742;--button-text:#fff;--accent:#625b51;--accent-soft:#f1eee7;--selection-line:#8a8377;--step:#f1eee7;--step-text:#6c675d;--track:#e3ded6;--knob-line:#c4bcb1;--logo:#ef8c62;--dot:#8eb893;--sans:'DM Sans',Arial,Helvetica,sans-serif;--header-height:72px;--right-gutter:16px}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:400 13px/1.45 var(--sans);font-optical-sizing:auto;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button,a,input,label,summary{touch-action:manipulation}button,summary,input[type=color],input[type=range]{cursor:pointer}button{border:0;background:none}button,a{color:inherit}a{text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.dropzone:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}button svg,.drop-icon svg{width:15px;height:15px;flex-shrink:0}
input[type=range]{display:block;width:100%;appearance:none;height:3px;border:0;border-radius:3px;background:var(--track);accent-color:var(--ink);margin:8px 0;padding:0}input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border:3px solid var(--field);border-radius:50%;background:var(--ink);box-shadow:0 0 0 1px var(--knob-line)}input[type=range]::-moz-range-thumb{width:8px;height:8px;border:3px solid var(--field);border-radius:50%;background:var(--ink);box-shadow:0 0 0 1px var(--knob-line)}input[type=range]:disabled{opacity:.35;cursor:default}input[type=checkbox]{accent-color:var(--ink);width:14px;height:14px;flex-shrink:0;margin:0}input[type=color]{width:30px;height:29px;border:1px solid var(--line);border-radius:4px;padding:3px;background:var(--field)}
.app-header{height:var(--header-height);padding:16px var(--right-gutter) 16px 25px;display:flex;align-items:center;justify-content:space-between;gap:22px;background:var(--header);color:var(--header-text)}.brand{display:flex;align-items:center;flex-shrink:0;font-size:28px;font-weight:500;line-height:1;letter-spacing:-1.5px}.brand>span:not(.brand-mark){font-weight:400;color:#d9d7d1}.brand-mark{display:flex;align-items:center;gap:3px;margin-right:12px;transform:rotate(-15deg)}.brand-mark i{width:4px;height:19px;border-radius:3px;background:var(--logo)}.brand-mark i:nth-child(2){height:27px}.brand-mark i:nth-child(3){height:13px}.header-actions{display:flex;align-items:center;gap:10px;min-width:0}.local-badge{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--header-muted);margin-right:12px}.local-badge i,.local-dot{display:block;width:5px;height:5px;flex-shrink:0;border-radius:50%;background:var(--dot)}.language-button{font-size:11px;color:var(--header-muted);padding:9px}.header-button{border:1px solid var(--header-line);border-radius:4px;padding:10px 13px;font-size:12px;white-space:nowrap}.export-button{display:flex;align-items:center;gap:20px;border-radius:4px;padding:11px 14px;background:var(--button);color:var(--button-text);font-size:12px;white-space:nowrap}
.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:calc(100dvh - var(--header-height))}.editor{position:relative;height:calc(100dvh - var(--header-height));overflow-y:auto;overflow-x:hidden;min-width:0;padding:26px 22px 18px;background:var(--paper);border-right:1px solid var(--line);scrollbar-width:thin;scrollbar-color:var(--knob-line) transparent}.eyebrow{font-size:10px;letter-spacing:.1em;color:var(--muted)}.editor-intro h1{margin:9px 0 8px;padding-left:1px;font-size:27px;line-height:1.2;letter-spacing:-.4px;font-weight:400}.editor-intro p{margin:0 0 24px;font-size:12px;color:var(--muted)}.editor-section{border-top:1px solid var(--line);padding:18px 0}.section-title{display:flex;align-items:center;gap:8px;margin-bottom:13px;min-width:0}.section-title h2{font-size:13px;font-weight:500;margin:0}.section-title>.text-button,.section-title>.count-badge{margin-left:auto}.step{font-size:10px;line-height:1;background:var(--step);color:var(--step-text);padding:5px;border-radius:4px}.text-button{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);padding:4px 0}.text-button:hover{color:var(--ink)}.count-badge{font-size:11px;color:var(--muted)}
/* Jar and label choices: no tiles or markers; opacity communicates selection. */
.jar-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.jar-tab{display:flex;align-items:center;justify-content:center;height:69px;min-height:69px;min-width:0;padding:5px 6px;border:0;border-radius:0;color:var(--ink);background:none;opacity:.5}.jar-tab.selected,.jar-tab[aria-selected=true]{opacity:1}.jar-silhouette{display:flex;align-items:flex-end;justify-content:center;width:34px;height:30px;flex-shrink:0}.outline-jar{display:block;position:relative;border:1px solid currentColor;border-radius:2px 2px 3px 3px}.outline-jar::before{content:'';position:absolute;left:0;right:0;top:45.139%;height:0;border-top:1px solid currentColor}.outline-jar.five{width:26px;aspect-ratio:36.11 / 28.8}.outline-jar.standard-hundred{height:26.027px;aspect-ratio:51.7 / 90.4}.outline-jar.standard-hundred::before{top:20.465%}.outline-jar.tall-hundred{height:29.309px;aspect-ratio:48 / 101.8}.outline-jar.tall-hundred::before{top:17.878%}.outline-jar.tall{height:30px;aspect-ratio:56.8 / 104.2}.outline-jar.tall::before{top:18.426%}.surface-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.surface-tabs.three{grid-template-columns:repeat(3,minmax(0,1fr))}.surface-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:59px;min-height:59px;min-width:0;padding:4px 3px;border:0;border-radius:0;background:none;color:var(--ink);font-size:10px;opacity:.5}.surface-tab[aria-selected=true]{opacity:1}.surface-name{white-space:nowrap}.surface-diagram{display:flex;align-items:center;justify-content:center;width:36px;height:28px;flex-shrink:0}.map-jar{position:relative;display:block;height:28px;aspect-ratio:56.8 / 104.2;--seam:18.426%}body[data-jar-view='5'] .map-jar{width:26px;height:auto;aspect-ratio:36.11 / 28.8;--seam:45.139%}.map-shell{position:absolute;inset:0;border:1px solid currentColor;border-radius:2px 2px 3px 3px;opacity:.35}.map-shell::before{content:'';position:absolute;left:0;right:0;top:var(--seam);border-top:1px solid currentColor}.map-zone{position:absolute;display:block;background:currentColor;opacity:.75}[data-slot='body'] .map-zone{left:2px;right:2px;top:calc(var(--seam) + 2px);bottom:2px;border-radius:0 0 1px 1px}[data-slot='wrap'] .map-zone{left:2px;right:2px;top:2px;bottom:2px;background:linear-gradient(currentColor 0 calc(45.139% - 1px),transparent calc(45.139% - 1px) calc(45.139% + 1px),currentColor calc(45.139% + 1px))}[data-slot='cap'] .map-zone{left:2px;right:2px;top:2px;height:calc(var(--seam) - 3px);min-height:2px}.map-disc{display:block;width:24px;height:24px;flex-shrink:0;border-radius:50%;background:radial-gradient(circle at 50% 50%,color-mix(in srgb,currentColor 75%,transparent) 0 8.75px,transparent 9px 10.75px,color-mix(in srgb,currentColor 35%,transparent) 11px 11.75px,transparent 12px);background-position:center;background-repeat:no-repeat}
.surface-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:17px 0 10px}.surface-heading h3{font-size:12px;font-weight:400;margin:0}.surface-heading p{color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums;margin:4px 0 0}.dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-height:136px;border:1px dashed var(--selection-line);border-radius:6px;background:var(--field);text-align:center;padding:18px 9px;cursor:pointer;overflow:hidden}.dropzone:hover,.dropzone.drag-over{border-color:var(--ink);background:var(--accent-soft)}.drop-icon{color:var(--muted);margin-bottom:7px;line-height:1}.drop-icon svg{width:20px;height:20px}.dropzone strong{font-size:12px;font-weight:400}.dropzone>span{font-size:11px;color:var(--muted)}.dropzone small{font-size:10px;color:var(--muted);margin-top:3px}.dropzone.has-image{min-height:115px;padding:10px}.dropzone.has-image>strong,.dropzone.has-image>span,.dropzone.has-image>small,.dropzone.has-image>.drop-icon{display:none}.dropzone img{max-width:100%;max-height:120px;object-fit:contain}.file-details{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px;font-size:11px;color:var(--muted)}.file-details>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fit-message{color:var(--muted);font-size:10px;margin:10px 0 0;line-height:1.6;min-height:0}.fit-message:empty{margin-top:0}.fit-message.warning{color:#8f592b}.fit-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;color:var(--muted);font-size:11px}.segmented{display:flex;align-items:center;border:1px solid var(--line);background:var(--field);border-radius:4px;padding:3px;gap:2px}.segmented button{font-size:10px;padding:6px 8px;border-radius:4px;color:var(--muted);white-space:nowrap}.segmented button[aria-pressed=true]{background:var(--paper);color:var(--ink)}
.dimension-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dimension-fields>label{min-width:0;font-size:11px;color:var(--muted)}.number-box{display:flex;align-items:center;gap:5px;margin-top:6px;border:1px solid var(--line);border-radius:4px;background:var(--field);padding:8px 10px;min-height:38px}.number-box input{min-width:0;width:100%;border:0;padding:0;background:none;color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums}.number-box span{font-size:10px;color:var(--muted)}.check-row{display:flex;align-items:center;gap:7px;min-width:0;font-size:11px;color:var(--muted);cursor:pointer}.dimension-fields+.check-row,.label-visible-row,.demo-row{margin-top:11px}.slider-field{display:block;margin-top:17px}.slider-field>span{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:11px;color:var(--muted)}.slider-field b{font-weight:400}.slider-field output{font-size:10px;font-variant-numeric:tabular-nums}.fine-print{font-size:10px;color:var(--muted);line-height:1.6;margin:16px 0 0}.image-adjust{border-top:1px solid var(--line);margin-top:18px;padding-top:12px}.image-adjust summary{font-size:11px;color:var(--muted);padding:3px 0}.color-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px;color:var(--muted);font-size:11px}.color-row>label:first-child{display:flex;align-items:center;gap:8px}.text-editor textarea{width:100%;resize:vertical;min-height:90px;border:1px solid var(--line);border-radius:4px;background:var(--field);padding:10px;font-size:13px}.text-editor textarea::placeholder{color:var(--muted)}.text-tools{display:flex;align-items:flex-end;gap:12px;margin-top:12px}.text-tools>label:not(.check-row){display:block}.text-tools>label:first-child{flex:1;min-width:0}.text-tools>label>span{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.text-tools select{display:block;width:100%;min-width:0;max-width:100%;height:36px;min-height:36px;border:1px solid var(--line);border-radius:4px;padding:6px 8px;background:var(--field);text-overflow:ellipsis}.text-tools input[type=color]{display:block;width:36px;height:36px;min-height:36px;padding:4px;border-radius:4px}.text-tools input[type=color]::-webkit-color-swatch-wrapper{padding:0}.text-tools input[type=color]::-webkit-color-swatch{border:0;border-radius:2px}.text-tools input[type=color]::-moz-color-swatch{border:0;border-radius:2px}.text-tools>.check-row{height:36px;min-height:36px;margin-top:0;align-items:center}.bold-label span{margin:0!important;color:var(--ink)!important}.font-upload-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin-top:11px;font-size:10px;color:var(--muted)}.secondary-button{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:4px;padding:10px 12px;margin-top:12px;font-size:11px;background:var(--field);color:var(--ink)}.editor-foot{display:flex;align-items:flex-start;gap:7px;border-top:1px solid var(--line);padding-top:14px;color:var(--muted)}.editor-foot .local-dot{margin-top:5px}.editor-foot p{margin:0;font-size:10px;line-height:1.6}
/* Preserve the live canvas and independent desktop sidebar scrolling. */
.preview-panel{position:relative;display:flex;flex-direction:column;height:calc(100dvh - var(--header-height));min-width:0;padding:24px var(--right-gutter) 15px 25px;background:var(--stage);overflow:hidden}.preview-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;flex-shrink:0;z-index:2}.live-label{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:10px;letter-spacing:.06em;white-space:nowrap}.live-label>i{width:5px;height:5px;background:var(--dot);border-radius:50%;flex-shrink:0}.live-label>span{border-left:1px solid var(--line);padding-left:10px;font-size:10px;letter-spacing:.04em}.preview-actions{display:flex;align-items:center;gap:15px;margin-left:auto}.scene-theme button{display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:32px;min-height:32px;padding:0}.scene-theme svg,.icon-button svg{width:16px;height:16px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:4px}.stage{position:relative;flex:1;min-height:200px}.viewer{position:absolute;inset:0}.viewer canvas{display:block;touch-action:none;cursor:grab;width:100%;height:100%}.viewer canvas:active{cursor:grabbing}.stage-bottom{position:absolute;left:0;right:0;bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:15px;pointer-events:none}.stage-bottom>span{font-size:10px;color:var(--muted)}.zoom-box{display:flex;align-items:center;gap:8px;flex-shrink:0;border:1px solid var(--line);border-radius:18px;background:var(--field);padding:3px 5px;pointer-events:auto}.zoom-box button{width:23px;height:24px;padding:0;font-size:17px;color:var(--muted)}.zoom-box span{min-width:32px;font-size:10px;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums}.view-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;border-bottom:1px solid var(--line);padding:11px 0 13px}.view-presets{display:flex;flex-wrap:wrap;gap:16px}.view-presets button{padding:5px 0;font-size:11px;color:var(--muted)}.view-presets button.active,.view-presets button:hover{color:var(--ink)}#auto-rotate[aria-pressed=true]{color:var(--ink)}.scene-controls{display:flex;align-items:center;flex-wrap:wrap;gap:20px;flex-shrink:0;padding:16px 0}.lid-control{display:flex;align-items:center;gap:13px;margin-right:auto}.lid-button{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);padding:0;white-space:nowrap}.lid-button svg{width:16px;height:16px}.lid-control>input{width:80px}.preview-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-shrink:0;font-size:10px;color:var(--muted)}.version{font-size:9px;letter-spacing:.08em;white-space:nowrap}.loading,.viewer-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--stage);z-index:4;color:var(--muted)}.loading>span{width:27px;height:27px;border:1px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}.loading p{font-size:11px;margin-top:14px}.viewer-error{padding:25px;text-align:center}.viewer-error p{max-width:350px;font-size:11px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--header);color:var(--header-text);box-shadow:0 8px 30px #25282a26;padding:13px 21px;font-size:12px;border-radius:4px;max-width:min(90vw,520px);z-index:30;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.preview-panel[data-theme=dark]{--stage:#141c19;--ink:#f1f0e9;--muted:#c2c5bb;--line:#41463e;--field:#252b25;--paper:#3b4237;--track:#4a5045;--knob-line:#7a8272}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:761px){body{height:100dvh;overflow:hidden}}
@media(min-width:1250px){.workspace{grid-template-columns:370px minmax(0,1fr)}.editor{padding-left:25px;padding-right:25px}}
@media(max-width:1100px){.local-badge{display:none}.scene-controls{gap:13px}.lid-control{flex-basis:100%}.stage-bottom>span{max-width:190px}}
@media(max-width:850px){.workspace{grid-template-columns:310px minmax(0,1fr)}.editor{padding-left:17px;padding-right:17px}.preview-panel{padding-left:18px}.preview-actions{gap:10px}.stage-bottom>span{max-width:140px}}
@media(max-width:760px){.app-header{height:auto;min-height:67px;padding:14px var(--right-gutter) 14px 18px;gap:12px;flex-wrap:wrap}.brand{font-size:26px}.header-actions{gap:7px;margin-left:auto}.language-button{padding:6px}.header-button{font-size:11px;padding:10px}.export-button{font-size:11px;padding:11px;gap:7px}.workspace{display:flex;flex-direction:column;min-height:0}.editor{order:2;width:100%;max-width:650px;align-self:center;height:auto;overflow:visible;padding:23px 20px;border-right:0}.editor-intro{display:none}.jar-selection{border-top:0;padding-top:0}.preview-panel{order:1;height:clamp(440px,62svh,560px);min-height:440px;flex-shrink:0;padding:15px var(--right-gutter) 10px 20px;border-bottom:1px solid var(--line)}.preview-top{gap:8px}.preview-actions{gap:8px}.live-label{font-size:9px}.stage{min-height:160px}.stage-bottom{bottom:10px;gap:8px}.stage-bottom>span{max-width:180px}.view-bar{padding:6px 0}.view-presets{gap:0;justify-content:space-between;flex:1}.view-presets button{padding:6px 9px}.scene-controls{gap:8px 18px;padding:8px 0}.lid-control{flex-basis:auto;gap:10px}.lid-control>input{width:70px}.preview-footer{display:none}.number-box input,.text-editor textarea,.text-tools select{font-size:16px}}
@media(min-width:431px) and (max-width:640px){.jar-tab{height:71px;min-height:71px}}
@media(max-width:430px),(pointer:coarse){button,summary,.check-row{min-height:44px}.header-button,.export-button{min-height:44px}.scene-theme button{width:44px;min-width:44px;height:44px;min-height:44px}.number-box{min-height:44px}.number-box input,textarea,select{font-size:16px}input[type=range]{height:24px;background:linear-gradient(var(--track),var(--track)) center/100% 3px no-repeat;margin:0}.zoom-box button{width:44px}.check-row{margin-top:5px}.text-tools select,.text-tools input[type=color],.text-tools>.check-row{height:44px;min-height:44px}.text-tools input[type=color]{width:44px}.scene-controls .check-row{margin-top:0}}
@media(max-width:430px){.header-actions{width:100%;justify-content:flex-end}.preview-panel{padding-left:16px}.preview-actions{gap:4px}.stage-bottom>span{display:none}.stage-bottom{justify-content:flex-end}.view-bar{gap:3px}.view-presets button{padding:6px 8px}.scene-controls{gap:4px 16px}.lid-control{flex-basis:100%}.lid-control>input{width:100%;max-width:150px}}
@media(max-width:760px) and (min-height:820px){.preview-panel{position:sticky;top:0;z-index:5;height:440px}}
@media(max-width:760px) and (min-height:640px) and (max-height:819px){
  :root{--mobile-preview-height:clamp(360px,50svh,410px);scroll-padding-top:calc(var(--mobile-preview-height) + 16px)}
  .preview-panel{position:sticky;top:0;z-index:5;height:var(--mobile-preview-height);min-height:0;padding-top:10px;padding-bottom:8px}
  .stage{min-height:120px}
  .view-bar{padding-top:0;padding-bottom:0}
  .scene-controls{padding-top:4px;padding-bottom:4px}
  .editor :is(input,select,textarea,summary,button){scroll-margin-top:16px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;scroll-behavior:auto!important}}
/* The approved wordmark keeps its intrinsic proportions in the existing header. */
.brand .brand-wordmark{display:block;width:auto;height:28px;max-width:none;flex-shrink:0}
@media(max-width:760px){.brand .brand-wordmark{height:26px}}
