@font-face{font-family:Studio;src:local("Aptos"),local("Segoe UI");font-display:swap}*{box-sizing:border-box} :root{font-family:Studio,"Segoe UI",Arial,sans-serif;color:var(--text);font-size:16px;background:var(--surface);--blue:#3158e9;--line:#e7ebf2;--muted:#738098}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button,input,select{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--line-2)}button{color:inherit}button svg,.icon{width:18px;height:18px;flex:none;stroke-width:1.65;vertical-align:middle}button{display:inline-flex;align-items:center;justify-content:center;gap:8px}button svg{pointer-events:none}button:hover{filter:brightness(.98)}.app-header{height:80px;display:flex;align-items:center;padding:0 32px;background:var(--surface);border-bottom:1px solid var(--line);gap:28px}.brand{text-decoration:none;color:var(--text);font-size:29px;font-weight:750;letter-spacing:-1.2px;display:flex;align-items:center;gap:11px}.brand-dot{color:var(--blue)}.brand-icon{display:grid;place-items:center;width:37px;height:37px;background:var(--blue);border-radius:10px;color:white}.brand-icon svg{width:25px;height:25px}.brand-caption{font-size:11px;font-weight:650;letter-spacing:1.9px;color:var(--muted);border-left:1px solid var(--line);padding-left:27px}.header-actions{display:flex;gap:10px;margin-left:auto}.button{border:1px solid var(--line);border-radius:8px;background:white;min-height:39px;padding:9px 14px;font-size:14px;font-weight:600}.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 3px 7px #3158e91a}.subtle{border-color:transparent}.workspace{display:grid;grid-template-columns:366px minmax(0,1fr);height:calc(100dvh - 80px);min-height:670px}.sidebar{background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:28px 23px 20px}.eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:1.25px;color:var(--text-3)}.sidebar-heading .eyebrow{font-size:9px;letter-spacing:1.05px}h1{font-size:23px;letter-spacing:-.5px;margin:9px 0 0;font-weight:650}.count{vertical-align:middle;font-size:12px;font-weight:600;background:var(--surface);padding:4px 8px;border-radius:6px;margin-left:6px;color:var(--text-2)}.icon-button{border:0;background:transparent;border-radius:6px;width:30px;height:30px;padding:5px;color:var(--text-3)}.icon-button:hover{background:var(--surface-2);color:var(--blue)}.tabs{display:flex;margin:0 23px;border-bottom:1px solid var(--line);gap:26px}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:0 0 13px;font-size:14px;color:var(--muted);white-space:nowrap}.tabs button[aria-selected=true]{border-color:var(--blue);color:var(--blue);font-weight:650}.panel{min-height:0;overflow:auto;flex:1;padding:0 16px 16px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}[hidden]{display:none!important}.list-caption{display:flex;justify-content:space-between;padding:19px 8px 13px;color:var(--text-3);font-size:10px;letter-spacing:.6px}.list-caption span+span{letter-spacing:0;font-size:11px}.layer-list{display:flex;flex-direction:column;gap:6px}.layer-row{border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;padding:7px 7px 7px 3px;min-height:57px;background:white;position:relative}.layer-row:hover{background:var(--surface);border-color:var(--line-2)}.layer-row.selected{background:var(--surface);border-color:var(--line-2);box-shadow:0 0 0 1px #3158e918}.layer-row.drag-over{border-top:3px solid var(--blue)}.grip{cursor:grab;color:var(--text-3);width:19px;text-align:center;font-size:15px}.layer-select{padding:0;border:0;background:none;flex:1;min-width:0;justify-content:flex-start;gap:10px;text-align:left}.material-swatch{width:33px;height:33px;border-radius:7px;flex:none;box-shadow:inset 0 0 0 1px #0000000b;position:relative;overflow:hidden;background-color:var(--swatch)}.swatch-foam{background-image:radial-gradient(#6d73802c .7px,transparent .8px);background-size:5px 5px}.swatch-latex,.swatch-graphite{background-image:radial-gradient(#32394565 1px,transparent 1.2px);background-size:7px 7px}.swatch-fiber{background-image:repeating-linear-gradient(25deg,transparent 0 4px,#9a8b5c38 4px 5px)}.swatch-pocket,.swatch-nano{background-image:radial-gradient(ellipse,#fff 35%,#84929d88 41%,transparent 52%);background-size:10px 9px}.swatch-lfk,.swatch-bonnell,.swatch-continuous{background-image:radial-gradient(circle,transparent 30%,#55606640 32%,#55606640 42%,transparent 45%);background-size:9px 9px}.swatch-fabric,.swatch-tnt{background-image:repeating-linear-gradient(45deg,transparent 0 6px,#58627c25 6px 7px)}.swatch-felt{background-image:repeating-linear-gradient(105deg,transparent 0 3px,#39465844 3px 4px)}.layer-copy{min-width:0;flex:1}.layer-name{display:block;font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:181px}.layer-group{display:block;color:var(--text-3);font-size:10px;margin-top:4px}.row-thickness{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text-2);margin-right:3px}.row-moves{display:flex;flex-direction:column;gap:0;margin-left:2px}.row-moves .icon-button{height:18px;width:20px;padding:1px}.row-moves svg{width:12px;height:12px}.add-layer{width:100%;margin-top:13px;border:1px dashed var(--line-2);color:var(--blue);background:var(--surface);min-height:43px}.library-intro{font-size:13px;line-height:1.6;color:var(--muted);padding:18px 7px 14px}.library-group-title{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--text-3);margin:15px 7px 9px}.material-card{display:flex;align-items:center;gap:11px;padding:10px 8px;border:1px solid var(--line);border-radius:8px;margin-bottom:7px;width:100%;background:white;justify-content:flex-start;text-align:left}.material-card:hover{border-color:var(--line-2);background:var(--surface)}.material-card .layer-copy{flex:1}.material-card .icon{color:var(--blue)}.sidebar-footer{padding:19px 23px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);background:var(--surface)}.total{font-size:29px;font-weight:650;letter-spacing:-.7px;margin-top:4px;font-variant-numeric:tabular-nums}.total small{font-size:15px;font-weight:450;color:var(--text-2);letter-spacing:0}.footer-detail{font-size:11px;color:var(--text-3);display:flex;flex-direction:column;text-align:right;gap:6px}.footer-detail span:first-child{color:var(--text-2);font-weight:550}.stage{padding:29px 32px 16px;display:flex;flex-direction:column;min-width:0;min-height:0}.project-heading{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:24px}.project-title-block{min-width:0;flex:1}.project-title-block input{border:1px solid transparent;background:transparent;width:100%;font-size:25px;font-weight:630;letter-spacing:-.7px;padding:5px 0;margin:4px 0 2px;color:var(--text);text-overflow:ellipsis}.project-title-block input:hover,.project-title-block input:focus{border-bottom:1px solid var(--line-2);outline:none}.project-note{font-size:12px;color:var(--text-3)}.example{font-size:12px;color:var(--text-2);border-color:var(--line-2);background:transparent;padding:8px 10px;white-space:nowrap}.preview-card{background:white;border:1px solid var(--line-2);border-radius:13px;box-shadow:0 3px 12px #243a5a03;display:flex;flex-direction:column;flex:1;min-height:400px;overflow:hidden}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;padding:15px 19px;border-bottom:1px solid var(--line);gap:10px}.view-tabs{display:flex;padding:3px;gap:3px;background:var(--surface);border-radius:7px}.view-tabs button{border:0;background:none;border-radius:5px;font-size:12px;font-weight:550;color:var(--text-3);padding:7px 11px}.view-tabs button.active{background:white;color:var(--text);box-shadow:0 1px 4px #1a30571a}.view-tabs button svg{width:16px;height:16px}.view-caption{font-size:11px;color:var(--text-3);white-space:nowrap;display:flex;gap:7px;align-items:center}.live-dot{width:5px;height:5px;background:var(--primary-bg);border-radius:50%}.drawing{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;background-image:radial-gradient(#dae1ed 0.65px,transparent .7px);background-size:18px 18px;overflow:hidden}.drawing>svg{width:100%;height:100%;position:absolute;inset:0;padding:15px 12px}.drawing svg [data-layer]{cursor:pointer;outline:none}.drawing svg [data-layer]:hover .layer-top{filter:brightness(1.025);stroke:var(--accent);stroke-width:1.5}.drawing svg [data-layer]:focus .layer-top{stroke:var(--accent);stroke-width:3}.preview-bottom{display:flex;justify-content:space-between;gap:12px;padding:13px 19px;font-size:10px;color:var(--text-3);border-top:1px solid var(--line)}.preview-bottom span:first-child{display:flex;align-items:center;gap:6px;font-size:11px}.preview-bottom svg{width:14px;height:14px}.preview-bottom span:last-child{font-size:9px;letter-spacing:1.5px}.view-controls{display:flex;align-items:center;justify-content:center;gap:25px;margin:20px 0 14px;font-size:12px;color:var(--text-2)}.spacing-control{display:flex;align-items:center;gap:13px}.spacing-control>span{display:flex;gap:7px;align-items:center}.spacing-control input{width:105px;accent-color:var(--blue);height:4px}.spacing-control output{font-size:11px;width:22px}.control-divider{height:20px;width:1px;background:var(--accent-soft)}.toggle{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px}.toggle input{position:absolute;opacity:0;width:1px;height:1px}.switch{height:17px;width:29px;background:var(--surface-3);border-radius:99px;position:relative;transition:background .15s;flex:none}.switch:after{content:"";width:11px;height:11px;background:white;border-radius:50%;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0001;transition:transform .15s}.toggle input:checked+.switch{background:var(--blue)}.toggle input:checked+.switch:after{transform:translateX(12px)}.toggle input:focus-visible+.switch{outline:3px solid var(--line-2);outline-offset:2px}.stage-footnote{font-size:10px;line-height:1.6;color:var(--text-3);display:flex;justify-content:space-between;gap:12px}.stage-footnote>span:first-child{display:flex;gap:5px;align-items:flex-start;max-width:650px}.stage-footnote svg{width:13px;height:13px;margin-top:2px}.stage-footnote>span:last-child{white-space:nowrap}.inspector{padding:15px 23px 18px;background:var(--surface);border-top:1px solid var(--line-2)}.inspector-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.inspector-heading .eyebrow{color:var(--accent)}.inspector input,.inspector select{width:100%;min-width:0;border:1px solid var(--line-2);border-radius:6px;padding:8px 9px;background:white;font-size:13px;color:var(--text-2)}.inspector label{font-size:10px;color:var(--text-3);display:block;margin-top:9px}.inspector label>span{display:block;margin-bottom:5px}.inspector-grid{display:grid;grid-template-columns:1fr 1.35fr 38px;gap:8px}.inspector input[type=color]{height:34px;padding:4px;width:38px;cursor:pointer}.inspector-actions{display:flex;justify-content:space-between;margin-top:12px}.inspector-actions button{padding:0;border:0;background:none;font-size:11px;color:var(--text-2)}.inspector-actions button:last-child{color:var(--danger-text)}.inspector-actions svg{width:14px;height:14px}.empty-state{text-align:center;color:var(--text-3);padding:45px 15px;font-size:14px;line-height:1.7}.empty-state svg{width:35px;height:35px;margin-bottom:12px}.empty-state strong{color:var(--text-2);display:block}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);background:var(--primary-bg);color:white;border-radius:9px;padding:13px 21px;font-size:14px;box-shadow:0 5px 25px #18243a30;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:16px;padding:29px;width:500px;max-width:calc(100vw - 30px);color:var(--text);box-shadow:0 20px 100px #16284733}dialog::backdrop{background:#10234466;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}h2{font-size:23px;margin:9px 0 0;letter-spacing:-.6px}dialog p{font-size:14px;color:var(--text-3);line-height:1.7;margin:17px 0}.export-toggle{font-size:14px;margin:19px 0}.export-options{display:flex;flex-direction:column;gap:10px}.export-option{display:grid;grid-template-columns:46px 1fr;gap:5px 14px;text-align:left;padding:16px;border:1px solid var(--line-2);border-radius:9px;background:white;justify-content:start}.export-option:hover{background:var(--surface);border-color:var(--line-2)}.format-icon{grid-row:span 2;padding:12px 5px;border-radius:7px;background:var(--surface);color:var(--blue);font-size:11px;font-weight:700;text-align:center}.export-option strong{font-size:14px}.export-option>span:last-child{font-size:12px;color:var(--text-3)}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){.workspace{grid-template-columns:395px minmax(0,1fr)}.stage{padding:34px 48px 22px}.layer-row{min-height:62px}.layer-name{font-size:14px;max-width:205px}.layer-group{font-size:12px}.row-thickness{font-size:12px}}@media(max-width:1100px){.app-header{padding:0 20px}.brand-caption{display:none}.workspace{grid-template-columns:325px minmax(0,1fr)}.stage{padding:25px 20px 14px}.project-title-block input{font-size:21px}.example{font-size:0;gap:0;padding:9px}.example svg{width:16px}.view-caption{display:none}.view-controls{gap:14px}.spacing-control{gap:6px}.spacing-control input{width:75px}.layer-name{max-width:151px}.stage-footnote>span:last-child{display:none}.tabs{gap:20px;margin:0 18px}}@media(max-width:760px){.app-header{height:67px;padding:0 15px;gap:10px}.brand{font-size:24px;gap:8px}.brand-icon{width:30px;height:30px}.header-actions{gap:4px}.header-actions .button{font-size:0;gap:0;padding:10px}.header-actions .button.primary{font-size:12px;gap:6px}.workspace{display:flex;flex-direction:column-reverse;height:auto;min-height:0}.stage{padding:20px 14px 18px}.project-heading{margin-bottom:17px}.project-title-block input{font-size:20px}.project-note{font-size:11px}.preview-card{height:540px;flex:auto}.drawing>svg{padding:8px 0}.preview-toolbar{padding:10px}.preview-bottom{padding:11px}.preview-bottom span:last-child{display:none}.view-controls{gap:12px;flex-wrap:wrap}.spacing-control{gap:7px}.control-divider{display:none}.stage-footnote{font-size:10px}.sidebar{border-right:0;border-top:1px solid var(--line)}.sidebar-heading{padding-top:22px}.panel{overflow:visible;max-height:570px;overflow-y:auto;padding:0 18px 18px}.layer-name{font-size:14px;max-width:220px}.layer-group{font-size:12px}.layer-row{min-height:62px}.row-thickness{font-size:13px}.inspector{position:static}.sidebar-footer{padding:20px 25px}.row-moves .icon-button{height:23px;width:25px}.row-moves svg{width:15px;height:15px}.list-caption{font-size:11px}.eyebrow{font-size:10px}.tabs button{padding-top:3px}.preview-card .view-tabs button{font-size:12px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Readable editing controls at the standard desktop size. */
.layer-name{font-size:14px}.layer-group,.row-thickness{font-size:12px}.library-intro{font-size:14px}.material-card{min-height:62px}.view-tabs button,.toggle,.view-controls{font-size:14px}.inspector label{font-size:12px}.inspector input,.inspector select{font-size:14px}.inspector-actions button{font-size:13px}.list-caption,.footer-detail,.project-note,.preview-bottom span:first-child{font-size:12px}.stage-footnote{font-size:12px}.eyebrow{font-size:12px}.sidebar-heading .eyebrow{font-size:10px}.view-caption{font-size:12px}.brand-caption{font-size:12px}.list-caption span+span{font-size:12px}.stage-footnote>span:last-child{display:none}@media(max-width:1100px){.view-controls{gap:12px}.toggle{font-size:12px}.spacing-control{font-size:12px}.list-caption,.list-caption span+span{font-size:11px}}

.material-info{padding:17px 23px;background:var(--surface);border-bottom:1px solid var(--line-2);display:flex;flex-direction:column;gap:5px}.material-info strong{font-size:17px;font-weight:650;color:var(--text)}.material-info span{font-size:14px;color:var(--text-3);line-height:1.6}.drawing.material-detail{background-image:none;background:linear-gradient(135deg,#fff,#f6f8fc)}.drawing.material-detail>svg{padding:30px}.preview-bottom button{background:none;border:0;color:var(--accent);font-size:12px;padding:0;text-decoration:underline;text-underline-offset:3px}.preview-bottom #cutaway-note{font-size:10px;letter-spacing:.6px;color:var(--warn-text)}.view-controls{flex-wrap:wrap;gap:20px}.reference-links{padding-left:20px;line-height:1.7}.reference-links li{margin:12px 0;font-size:14px}.reference-links a{color:var(--accent)}.view-tabs{flex-wrap:wrap}.view-tabs button{white-space:nowrap}.toggle:has(input:disabled){opacity:.5;cursor:default}@media(max-width:1300px){.view-caption{display:none}}@media(max-width:760px){.preview-toolbar{align-items:flex-start}.view-tabs{width:100%}.view-tabs button{padding:7px 8px;font-size:12px}.material-info{padding:13px 16px}.material-info strong{font-size:15px}.material-info span{font-size:12px}.preview-bottom{flex-wrap:wrap}.preview-bottom #cutaway-note{display:block}.view-controls{gap:13px}.drawing.material-detail>svg{padding:8px}}

/* Premium studio: warm canvas, quiet chrome, material-first workspace. */
:root{--blue:#866447;--line:#e9e6e1;--muted:#85847e;color:var(--text);background:var(--surface);font-family:Studio,"Segoe UI",Arial,sans-serif}
body{background:var(--surface)}.app-header{height:70px;padding:0 27px;gap:24px;background:var(--surface);border-color:var(--line)}.brand{font-size:28px;letter-spacing:-1.3px;color:var(--text);font-weight:700}.brand-icon{background:var(--primary-bg);border-radius:11px;width:34px;height:34px}.brand-dot{color:var(--text-3)}.brand-caption{font-size:9px;font-weight:600;color:var(--text-3);letter-spacing:2px;padding-left:24px}.button{border-color:var(--line);border-radius:8px;font-size:12px;min-height:37px;font-weight:550}.primary{background:var(--primary-bg);border-color:var(--line-2);color:var(--primary-fg);box-shadow:0 3px 7px #283b3214}.subtle{border-color:transparent;color:var(--text-2)}.header-actions{gap:8px}.header-actions .primary{margin-left:10px;padding-left:17px;padding-right:17px}.workspace{grid-template-columns:324px minmax(0,1fr);height:calc(100dvh - 70px);min-height:700px}.sidebar{background:var(--surface);border-color:var(--line)}.sidebar-heading{padding:27px 22px 21px}.eyebrow{font-size:9px;color:var(--text-3);font-weight:650;letter-spacing:1.8px}.sidebar-heading .eyebrow{font-size:9px;letter-spacing:1.5px}.sidebar-heading h1{font-size:22px;letter-spacing:-.6px;margin-top:10px;font-weight:600;color:var(--text)}.count{border-radius:5px;background:var(--surface-2);color:var(--text-2);font-size:11px;padding:3px 7px}.icon-button{color:var(--text-3)}.icon-button:hover{background:var(--surface-2);color:var(--text-2)}.tabs{gap:0;margin:0 22px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);padding:3px}.tabs button{width:50%;padding:7px 8px;border:0;border-radius:5px;font-size:12px;color:var(--text-3);font-weight:550}.tabs button[aria-selected=true]{background:var(--surface);color:var(--text-2);box-shadow:0 1px 3px #28382414}.panel{padding:0 14px 17px;scrollbar-color:var(--line-2) transparent}.list-caption{padding:21px 8px 13px;color:var(--text-3);font-size:9px;letter-spacing:1px}.list-caption span+span{font-size:10px}.layer-list{gap:4px}.layer-row{min-height:55px;padding:6px 6px 6px 4px;border:1px solid transparent;background:transparent;border-radius:9px}.layer-row:hover{background:var(--surface);border-color:var(--line)}.layer-row.selected{background:var(--surface-2);border-color:var(--line-2);box-shadow:none}.layer-row.drag-over{border-top:3px solid var(--line-2)}.grip{font-size:10px;color:var(--text-3);font-variant-numeric:tabular-nums;width:24px}.layer-select{gap:9px}.layer-name{font-size:12px;font-weight:550;max-width:151px;color:var(--text-2)}.layer-group{font-size:10px;color:var(--text-3);margin-top:3px}.row-thickness{font-size:10px;color:var(--text-3);margin-left:5px}.row-moves{opacity:0}.layer-row:hover .row-moves,.layer-row:focus-within .row-moves,.layer-row.selected .row-moves{opacity:1}.row-moves .icon-button{width:15px}.material-swatch{width:31px;height:33px;border-radius:5px;box-shadow:inset 0 0 0 1px #4a4c3620,0 1px 3px #242d2410}.add-layer{background:transparent;color:var(--text-2);border-color:var(--line-2);border-radius:8px;font-size:12px;margin-top:17px}.sidebar-footer{background:var(--surface);border-color:var(--line);padding:20px 22px}.sidebar-footer .eyebrow{font-size:9px;letter-spacing:1.3px;color:var(--text-3)}.total{color:var(--text-2);font-size:31px;letter-spacing:-1.2px;font-weight:500;margin-top:5px}.total small{font-size:14px;color:var(--text-3)}.footer-detail{font-size:10px;color:var(--text-3);gap:5px}.footer-detail span:first-child{color:var(--text-3);font-size:11px}.footer-detail span:last-child{max-width:104px;line-height:1.4}.stage{padding:28px 30px 15px;min-height:0;background:var(--surface)}.project-heading{margin-bottom:17px;gap:12px}.project-title-block .eyebrow{font-size:9px;letter-spacing:1.6px;color:var(--text-3)}.project-title-block input{font-size:24px;font-weight:500;color:var(--text);letter-spacing:-.65px;margin:7px 0 1px;min-width:0}.project-title-block input:hover,.project-title-block input:focus{border-color:transparent;border-bottom-color:var(--line-2)}.project-note{font-size:11px;color:var(--text-3)}.example{font-size:0;background:transparent;border:1px solid var(--line);width:35px;height:35px;padding:7px;color:var(--text-3)}.example svg{width:16px}.composition-summary{display:flex;gap:30px;margin:1px 0 24px;padding-top:3px}.composition-summary>span{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--text-3)}.composition-summary strong{font-weight:600;color:var(--text-3);font-size:11px;margin-left:3px}.composition-summary small{font-weight:400;font-size:9px}.group-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#c5b693}.group-1{background:#858e83}.group-2{background:#a1afb0}.preview-card{background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:0 9px 25px #3e493008;min-height:410px;position:relative}.preview-toolbar{background:var(--surface);border-color:var(--line);padding:11px 14px;gap:12px}.view-tabs{background:var(--surface-2);border-radius:7px;padding:3px;gap:1px;flex-wrap:nowrap}.view-tabs button{font-size:11px;letter-spacing:-.1px;color:var(--text-3);padding:7px 10px;font-weight:500}.view-tabs button.active{color:var(--text-2);background:var(--surface);box-shadow:0 1px 3px #38483414}.view-tabs button svg{width:14px;height:14px}.engine-switch{display:flex;gap:1px;white-space:nowrap}.engine-switch button{border:0;border-bottom:1px solid transparent;background:none;padding:8px 7px;font-size:10px;color:var(--text-3)}.engine-switch button.active{color:var(--text-2);border-bottom-color:var(--line-2)}.viewport-shell{position:relative;flex:1;min-height:0;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#fffefa 5%,#f4f2ed 70%,#efeee8 100%)}.three-host,.drawing{position:absolute;inset:0;overflow:hidden;display:block}.three-host canvas{display:block;width:100%;height:100%;outline-offset:-3px;cursor:grab;touch-action:none}.three-host canvas:active{cursor:grabbing}.drawing{background:var(--surface);background-image:radial-gradient(#b7bcaa35 .7px,transparent .7px);background-size:20px 20px}.drawing>svg{padding:22px}.viewport-label{position:absolute;top:24px;left:25px;display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.7px;color:var(--text-3);z-index:2;pointer-events:none}.live-dot{background:#9ba98b;width:4px;height:4px}.scene-signature{position:absolute;left:25px;bottom:20px;font-size:23px;color:var(--text-3);font-weight:650;letter-spacing:-1px;pointer-events:none;opacity:.7}.scene-signature>span{color:var(--text-3)}.scene-signature small{display:block;font-size:6px;letter-spacing:1.8px;font-weight:500;margin-top:3px}.camera-tools{position:absolute;right:17px;top:21px;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:4px;box-shadow:0 4px 12px #4a4e3b08;gap:3px}.camera-tools button{width:29px;height:31px;background:none;border:0;border-radius:5px;color:var(--text-3)}.camera-tools button:hover{background:var(--surface-2);color:var(--text-2)}.camera-tools span{height:1px;background:var(--surface-2);margin:3px 4px}.camera-tools svg{width:15px;height:15px}.preview-bottom{padding:12px 17px;border-color:var(--line);background:var(--surface);color:var(--text-3);align-items:center;flex-wrap:wrap}.preview-bottom span:first-child{font-size:10px;gap:6px}.preview-bottom button{color:var(--text-3);font-size:10px;text-decoration:none}.preview-bottom button:hover{text-decoration:underline}.preview-bottom #cutaway-note{color:var(--text-3);font-size:8px}.view-controls{margin:20px 0 14px;gap:22px;color:var(--text-3);flex-wrap:wrap}.spacing-control{gap:11px;font-size:11px}.spacing-control input{width:96px;accent-color:var(--text-3)}.spacing-control output{font-size:10px;color:var(--text-3)}.spacing-control .icon{width:14px;height:14px}.control-divider{background:var(--surface-3);height:17px}.toggle{font-size:11px;color:var(--text-3);gap:7px}.switch{height:15px;width:27px;background:var(--surface-3)}.switch:after{width:9px;height:9px;top:3px;left:3px}.toggle input:checked+.switch{background:#80916f}.toggle input:checked+.switch:after{transform:translateX(12px)}.stage-footnote{font-size:9px;color:var(--text-3);justify-content:center}.stage-footnote>span:first-child{max-width:none;gap:5px}.stage-footnote svg{width:11px;height:11px;margin-top:1px}.material-info{background:var(--surface);border-color:var(--line);padding:14px 22px;gap:4px}.material-info strong{color:var(--text-2);font-size:15px;font-weight:550}.material-info span{font-size:11px;color:var(--text-3);line-height:1.5}.drawing.material-detail{background:var(--surface)}.three-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.three-label{position:absolute;left:0;top:0;padding:0;border:0;background:none;pointer-events:auto;display:flex;gap:7px;align-items:center;margin-left:10px;margin-top:-10px;white-space:nowrap}.three-label>span{font-size:8px;color:var(--text-3);background:var(--surface);border:1px solid var(--line);min-width:21px;height:20px;border-radius:5px;display:grid;place-items:center;backdrop-filter:blur(5px)}.three-label.selected>span{background:#8b7459;border-color:var(--line-2);color:var(--primary-fg)}.three-label:hover>span{border-color:var(--line-2)}.three-label strong{font-size:10px;background:var(--surface);padding:5px 8px;color:var(--text-2);font-weight:500;border-radius:5px;max-width:160px;overflow:hidden;text-overflow:ellipsis}.scene-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:var(--text-3);background:var(--surface);z-index:2}.scene-empty>.icon{width:38px;height:38px}.scene-empty h2{font-size:27px;font-weight:400;line-height:1.35;color:var(--text-2)}.scene-empty p{font-size:12px;margin:15px 20px 24px}.inspector{background:var(--surface);border-color:var(--line);padding:13px 20px 18px;max-height:45%;overflow:auto;flex-shrink:0}.inspector-heading{margin-bottom:2px}.inspector-heading .eyebrow{color:var(--text-3);font-size:9px}.inspector label{font-size:10px;color:var(--text-3);margin-top:8px}.inspector input,.inspector select{border-color:var(--line);background:var(--surface);color:var(--text-2);border-radius:6px;font-size:12px;padding:7px 8px}.inspector-grid{grid-template-columns:1fr 1.25fr 34px}.inspector input[type=color]{width:34px;height:32px}.inspector-actions button{font-size:11px;color:var(--text-3)}.inspector-actions button:last-child{color:var(--text-3)}.isolate-selected{width:100%;font-size:11px;margin-top:12px;background:var(--surface);color:var(--text-3);border-color:var(--line);min-height:33px;padding:7px}.isolate-selected svg{width:13px;height:13px}.library-intro{font-size:12px;color:var(--text-3);padding:18px 8px 12px}.library-group-title{font-size:9px;color:var(--text-3);letter-spacing:1.2px}.material-card{border-color:var(--line);background:var(--surface);border-radius:9px;padding:12px 10px;min-height:66px}.material-card:hover{background:var(--ok-bg);border-color:var(--line-2)}.material-card .material-swatch{width:38px;height:38px}.material-card .icon{color:var(--text-3);width:15px;height:15px}.material-card .layer-name{max-width:200px}.toast{background:var(--primary-bg);color:var(--primary-fg);font-size:12px;border-radius:10px;box-shadow:0 5px 25px #283b2830}dialog{color:var(--text-2);background:var(--surface);border-color:var(--line)}dialog::backdrop{background:#2e3d2d55;backdrop-filter:blur(5px)}dialog p{color:var(--text-3);font-size:13px}.export-option{border-color:var(--line);background:var(--surface)}.export-option:hover{border-color:var(--line-2);background:var(--surface)}.format-icon{background:var(--surface-2);color:var(--text-3)}.export-option>span:last-child{color:var(--text-3)}.reference-links a{color:var(--text-3)}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline-color:var(--line-2)}.toggle input:focus-visible+.switch{outline-color:var(--line-2)}
@media(min-width:1600px){.workspace{grid-template-columns:350px minmax(0,1fr)}.stage{padding:35px 42px 20px}.sidebar-heading{padding:30px 25px 22px}.layer-row{min-height:58px}.layer-name{font-size:13px;max-width:165px}.row-thickness{font-size:11px}.layer-group{font-size:11px}.project-title-block input{font-size:29px}.preview-toolbar{padding:13px 20px}.view-tabs button{font-size:12px;padding:8px 13px}.engine-switch button{font-size:11px}.view-controls{margin:23px 0 18px}.viewport-label{top:28px;left:30px}}
@media(max-width:1100px){.workspace{grid-template-columns:294px minmax(0,1fr)}.stage{padding:24px 20px 14px}.project-title-block input{font-size:22px}.preview-toolbar{flex-wrap:wrap;justify-content:center;padding:10px;gap:6px}.engine-switch{margin-left:auto}.view-tabs button{padding:7px 8px}.view-tabs svg{display:none}.composition-summary{gap:20px;margin-bottom:18px}.layer-name{max-width:132px;font-size:11px}.view-controls{gap:13px}.spacing-control input{width:74px}.toggle{font-size:10px}.stage-footnote{font-size:9px}.tabs{margin:0 18px}}
@media(max-width:760px){.app-header{height:63px;padding:0 15px}.brand{font-size:24px}.brand-icon{width:29px;height:29px}.header-actions .button{font-size:0;padding:9px;gap:0}.header-actions .primary{font-size:0;padding:9px;margin-left:0}.header-actions{gap:2px}.workspace{display:flex;flex-direction:column-reverse;height:auto;min-height:0}.stage{padding:23px 14px 16px}.project-title-block input{font-size:21px}.project-note{font-size:10px}.composition-summary{gap:19px;margin-bottom:18px;flex-wrap:wrap}.composition-summary>span{font-size:9px}.preview-card{height:550px;min-height:0;flex:none}.preview-toolbar{justify-content:space-between;padding:10px}.view-tabs{width:auto}.preview-card .view-tabs button{font-size:10px;padding:7px}.engine-switch{margin-left:auto}.engine-switch button{font-size:9px;padding:7px}.viewport-label{left:17px;top:18px;font-size:7px}.camera-tools{right:10px;top:14px}.camera-tools button{width:25px;height:27px}.scene-signature{left:17px;bottom:15px;font-size:19px}.preview-bottom{padding:10px 12px;gap:7px}.preview-bottom span:first-child{font-size:9px}.preview-bottom span:last-child{display:inline}.preview-bottom button{font-size:9px}.view-controls{gap:12px;margin:18px 0 13px}.spacing-control{font-size:10px}.toggle{font-size:10px}.stage-footnote{font-size:8px}.sidebar{border-right:0;border-top:1px solid var(--line)}.sidebar-heading{padding:25px 22px 20px}.panel{max-height:470px;padding:0 16px 18px}.layer-row{min-height:62px}.layer-name{font-size:13px;max-width:210px}.layer-group{font-size:11px}.row-thickness{font-size:12px}.row-moves{opacity:1}.row-moves .icon-button{width:23px;height:24px}.grip{width:26px}.inspector{max-height:none;padding:20px 24px}.material-info{padding:11px 16px}.material-info strong{font-size:13px}.material-info span{font-size:10px}.scene-empty h2{font-size:23px}.drawing>svg{padding:8px}.material-card .layer-name{font-size:13px}.inspector input,.inspector select{font-size:14px}.brand-caption{display:none}}
/* Readable small type on the warm studio surfaces. */
.layer-name{font-size:13px;color:var(--text-2)}.layer-group{font-size:11px;color:var(--text-3)}.row-thickness{font-size:11px;color:var(--text-2)}.project-note{color:var(--text-3)}.composition-summary>span{color:var(--text-3)}.composition-summary strong{color:var(--text-2)}.view-tabs button{font-size:12px;color:var(--text-2)}.engine-switch button{font-size:11px;color:var(--text-3)}.toggle,.spacing-control{font-size:12px;color:var(--text-2)}.preview-bottom span:first-child,.preview-bottom button{font-size:11px;color:var(--text-3)}.preview-bottom #interaction-hint{letter-spacing:0}.stage-footnote{font-size:10px;color:var(--text-3)}.material-info span{color:var(--text-3);font-size:12px}.inspector label{font-size:11px;color:var(--text-3)}.three-label>span{font-size:9px;color:var(--text-2);background:var(--surface)}.footer-detail{font-size:11px}.library-intro{color:var(--text-3)}.brand-caption{color:var(--text-3)}.list-caption{color:var(--text-3)}.material-card .layer-name{font-size:13px}@media(max-width:1100px){.layer-name{font-size:12px}.toggle,.spacing-control{font-size:11px}.view-tabs button{font-size:11px}.engine-switch button{font-size:10px}}@media(max-width:760px){.layer-name{font-size:13px}.view-controls{gap:12px}.toggle,.spacing-control{font-size:10px}.preview-bottom span:first-child,.preview-bottom button{font-size:9px}.stage-footnote{font-size:9px}.material-info span{font-size:11px}}
@media(max-width:760px){.camera-tools{top:auto;bottom:13px;right:11px;flex-direction:row;gap:1px}.camera-tools span{height:18px;width:1px;margin:4px 3px}.camera-tools button{width:25px;height:26px}}

/* Numbered assemblies share their identity across the editor and both views. */
.tabs button{width:33.333%;font-size:13px}
.group-number{display:inline-grid;place-items:center;flex:none;width:25px;height:25px;border-radius:6px;background:var(--primary-bg);color:var(--primary-fg);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.composition-summary{gap:8px;flex-wrap:wrap;margin-bottom:17px;max-height:112px;overflow:auto}
.composition-summary>button{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:7px 10px;gap:8px;color:var(--text-2);font-size:13px;max-width:100%;text-align:left}
.composition-summary>button>span{overflow-wrap:anywhere;white-space:normal;max-width:240px}
.composition-summary strong{font-size:13px;white-space:nowrap;margin-left:3px}
.composition-summary small{font-size:12px}
.composition-summary .group-number{width:23px;height:23px;font-size:12px}
.layer-list{gap:14px}
.layer-section{border-bottom:1px solid var(--line);padding-bottom:12px}
.layer-section-heading{display:flex;align-items:center;margin:0 0 6px;padding:2px 4px;gap:4px}
.layer-section-heading>button:first-child{flex:1;min-width:0;justify-content:flex-start;background:none;border:0;text-align:left;padding:4px 0;gap:9px;color:var(--text-2);font-size:14px;font-weight:600}
.layer-section-heading>button>span{min-width:0;overflow-wrap:anywhere}
.layer-section-heading small{display:block;margin-top:3px;font-size:12px;color:var(--text-3);font-weight:400}
.layer-row .layer-group{font-size:11px}
.layer-section.drag-over{outline:2px dashed var(--line-2);outline-offset:2px;background:var(--ok-bg)}
.empty-group{font-size:12px;line-height:1.55;color:var(--text-3);margin:8px 6px 4px 38px}
.add-group{width:100%;background:var(--surface);border-color:var(--line);color:var(--text-2);margin-top:10px;font-size:14px}
.groups-intro{font-size:14px;line-height:1.55;color:var(--text-3);margin:20px 5px}
.group-editor{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:13px 11px;margin-bottom:11px}
.group-editor.active{border-color:var(--line-2)}
.group-editor-title{display:flex;align-items:center;gap:10px}
.group-editor-title label{flex:1;min-width:0;font-size:12px;color:var(--text-3);line-height:1.4}
.group-editor input,.material-group-picker select{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--text-2);font-size:14px;padding:8px;margin-top:5px}
.group-editor-foot{display:flex;align-items:center;gap:1px;margin-top:9px}
.group-editor-foot>span{flex:1;color:var(--text-3);font-size:12px}
.group-editor-foot .icon-button{width:30px;height:30px}
.material-group-picker{display:block;font-size:14px;color:var(--text-2);margin:20px 6px 0}
.library-intro{font-size:13px;line-height:1.5;padding-top:9px}
.three-groups{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.three-group-mark{position:absolute;inset:0;pointer-events:none}
.three-group-mark path{stroke:var(--text-2);stroke-width:1.2;fill:none;opacity:.8}
.three-group-button{position:absolute;border:1px solid var(--line);background:var(--primary-bg);color:var(--primary-fg);font-size:13px;font-weight:600;min-width:27px;height:27px;padding:0 5px;border-radius:6px;pointer-events:auto;transform:translate(-50%,-50%);box-shadow:0 2px 5px #26372c18}
.three-group-button:hover{background:#758665}
.view-controls{gap:16px}
@media(max-width:760px){.composition-summary>button{font-size:12px;padding:6px 8px}.composition-summary>button>span{max-width:140px}.composition-summary{max-height:155px}.composition-summary strong{font-size:12px}.three-group-button{font-size:12px;min-width:23px;height:23px}.tabs button{font-size:14px}.groups-intro{font-size:14px}.view-controls{gap:12px}.toggle{font-size:11px}}

.header-actions .tutorial-trigger{color:var(--text-2);border-color:var(--line-2);background:var(--surface);font-size:13px;white-space:nowrap}
.tour-welcome{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:34px;border:1px solid var(--line);border-radius:20px;color:var(--text-2);box-shadow:0 24px 100px #17231b40;overflow:auto}
.tour-welcome::backdrop{background:#1e2c246b;backdrop-filter:blur(3px)}
.tour-kicker{display:block;font-size:12px;font-weight:650;letter-spacing:1.6px;color:var(--text-2)}
.tour-welcome h2{font-size:30px;line-height:1.2;font-weight:550;letter-spacing:-.7px;margin:18px 0}
.tour-welcome p{font-size:16px;line-height:1.6;color:var(--text-2);margin:16px 0}
.tour-close{width:32px;height:32px;border:0;border-radius:7px;background:transparent;color:var(--text-2);font-size:27px;line-height:1;padding:0;flex:none}
.tour-close:hover{background:var(--surface-2)}
.tour-welcome>.tour-close{position:absolute;top:15px;right:15px}
.tour-overview{display:flex;flex-direction:column;gap:13px;margin:24px 0;font-size:15px;color:var(--text-2)}
.tour-overview span{display:flex;align-items:center;gap:12px}
.tour-overview b{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--line-2);border-radius:7px;font-size:12px;font-weight:600;color:var(--text-2);background:var(--surface)}
.tour-welcome .tour-demo-note{font-size:14px;background:var(--ok-bg);border-radius:9px;padding:12px 15px;line-height:1.5;color:var(--text-2)}
.tour-welcome-footer>span{display:block;font-size:12px;color:var(--text-3);margin:20px 0 14px}
.tour-welcome-footer>div{display:flex;justify-content:flex-end;gap:10px}
.tour-welcome .button,.tour-card .button{font-size:14px;min-height:40px}
.studio-tour{position:fixed;inset:0;z-index:1000;pointer-events:none}
.tour-shade{position:fixed;background:#17231b70;pointer-events:auto}
.tour-focus{position:fixed;border:2px solid #d5bc82;border-radius:10px;box-shadow:0 0 0 3px #f4f2d428;pointer-events:none}
.tour-card{position:fixed;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 60px #192a2240;pointer-events:auto;padding:20px;color:var(--text-2);overscroll-behavior:contain}
.tour-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:-5px}
.tour-card .tour-kicker{font-size:11px}
.tour-progress{height:3px;background:var(--surface-2);border-radius:3px;overflow:hidden;margin:9px 0 17px}
.tour-progress>span{display:block;height:100%;background:#6c855d;transition:width .2s}
.tour-step{font-size:12px;color:var(--text-3);letter-spacing:1px}
.tour-card h2{font-size:23px;line-height:1.2;font-weight:550;letter-spacing:-.45px;margin:10px 0 13px}
.tour-card p{font-size:15px;line-height:1.6;color:var(--text-2);margin:0 0 14px}
.tour-hint{font-size:13px;line-height:1.5;color:var(--text-2);border-left:2px solid #cbb98b;padding-left:11px;margin:15px 0}
.tour-hint.tour-done{border-color:var(--line-2);color:var(--text-2)}
.tour-demo{width:100%;background:var(--ok-bg);border-color:var(--line-2);color:var(--text-2);margin-bottom:15px}
.tour-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:15px;margin-top:16px}
.tour-mode{margin-top:16px;color:var(--text-3);font-size:10px;text-align:center;letter-spacing:.35px}
.tour-running .row-moves{opacity:1}
.tour-small .tour-card{width:calc(100vw - 24px);max-height:55dvh;padding:15px 17px;border-radius:14px}
.tour-small .tour-card h2{font-size:20px;margin:7px 0 9px}
.tour-small .tour-card p{font-size:14px;line-height:1.45;margin-bottom:10px}
.tour-small .tour-hint{font-size:12px;margin:10px 0}
.tour-small .tour-progress{margin:6px 0 10px}
.tour-small .tour-mode{margin-top:10px;font-size:10px}
.tour-small .tour-card-footer{margin-top:10px;padding-top:12px}
@media(max-width:760px){.header-actions .tutorial-trigger{font-size:0;padding:8px;gap:0}.header-actions .tutorial-trigger svg{width:18px;height:18px}.app-header{gap:6px}.header-actions .button{padding:8px}.tour-welcome{padding:25px}.tour-welcome h2{font-size:27px}.tour-welcome p{font-size:15px}.tour-welcome-footer>div{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.tour-progress>span{transition:none}}
@media(max-width:760px){.tour-running{padding-bottom:60dvh}.tour-running .panel,.tour-running .inspector{max-height:42dvh;overflow:auto;flex-shrink:0}}

.studio-commandbar{display:flex;align-items:center;gap:10px;margin:-3px 0 18px;flex-wrap:wrap}.history-controls{display:flex;gap:3px}.history-controls .button{font-size:21px;line-height:1;padding:4px 10px;min-height:32px}.button:disabled{opacity:.45;cursor:default}.autosave-status{font-size:11px;color:var(--text-2)}.autosave-status:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#8d9e7f;margin-right:7px}.autosave-status.problem{color:var(--warn-text)}.autosave-status.problem:before{background:#bb8446}.project-actions{margin-left:auto;display:flex;gap:4px}.project-actions .button{min-height:32px;padding:6px 10px}.project-heading{margin-bottom:12px}.stage .composition-summary{margin-bottom:15px}.wide-dialog{width:min(1180px,calc(100vw - 40px));max-width:none;max-height:90dvh;padding:30px;border-radius:18px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.dialog-heading h2{font-weight:500;letter-spacing:-.7px;font-size:28px;margin:8px 0 20px}.modal-close{font-size:27px!important;line-height:1}.gallery-toolbar,.gallery-filters{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:10px 0 16px}.segmented{display:flex;padding:4px;background:var(--surface-2);border-radius:9px;gap:3px}.segmented button{border:0;border-radius:6px;background:transparent;padding:9px 14px;color:var(--text-3);font-size:12px}.segmented button.active{background:var(--surface);color:var(--text-2);box-shadow:0 1px 4px #34432e11}.gallery-filters input,.gallery-filters select,.stack-form input,.stack-form textarea,.comparison-selectors select{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text-2);font:inherit;font-size:13px;box-sizing:border-box}.gallery-filters label:first-child{flex:1}.gallery-filters label:last-child{width:220px}.dialog-caption{font-size:12px!important;color:var(--text-3)!important;line-height:1.6}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.project-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:var(--surface)}.project-thumbnail{position:relative;background:radial-gradient(#fffdf9,#eeede5);height:176px;overflow:hidden}.project-thumbnail svg{height:100%;width:100%}.card-badge{position:absolute;top:12px;left:12px;padding:5px 7px;border-radius:5px;font-size:8px;letter-spacing:1.2px;background:var(--surface);color:var(--text-2)}.project-card-body{padding:19px}.project-card h3{font-size:17px;line-height:1.4;font-weight:550;color:var(--text);margin:8px 0}.project-card p{font-size:12px;margin:8px 0;color:var(--text-2)}.project-card small{font-size:10px;color:var(--text-3)}.project-card-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:18px}.project-card-actions .button{font-size:11px;min-height:31px;padding:5px 8px}.empty-library{grid-column:1/-1;padding:50px;text-align:center;color:var(--text-3)}.empty-library h3{font-weight:500;color:var(--text-2)}.stack-form{display:flex;flex-direction:column;gap:17px}.stack-form label,.comparison-selectors label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--text-3)}.stack-form textarea{resize:vertical}.stack-form>.button{align-self:flex-end;padding:10px 19px}.description-field textarea{resize:vertical;width:100%;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:8px;font:inherit;line-height:1.5;font-size:11px;color:var(--text-2)}.encased-field{display:flex!important;gap:8px;align-items:center;margin-top:13px!important;font-size:11px!important}.encased-field input{position:absolute!important;opacity:0;pointer-events:none}.field-note{display:block;font-size:9px;line-height:1.5;color:var(--text-3);margin-top:5px}.version-list{margin-top:25px;display:flex;flex-direction:column;gap:12px;max-height:45dvh;overflow:auto}.version-row{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:13px}.version-row>div{flex:1;min-width:0}.version-row strong{font-size:13px;display:block;overflow-wrap:anywhere}.version-row small{display:block;font-size:10px;color:var(--text-3);margin-top:5px}.version-row .button{font-size:11px;min-height:32px;padding:6px 9px}.comparison-selectors{display:grid;grid-template-columns:1fr 1fr;gap:20px}.comparison-visuals{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.comparison-visuals article{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.comparison-visuals h3{font-weight:500;font-size:18px;min-height:42px;margin:8px 0}.comparison-visuals strong{display:block;font-size:23px;font-weight:450}.comparison-visuals small{font-size:12px;color:var(--text-3)}.comparison-drawing{height:260px;overflow:hidden}.comparison-drawing svg{width:100%;height:100%}.diff-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0;font-size:13px}.diff-summary span{color:var(--text-3)}.comparison-table-wrap{overflow:auto}.comparison-table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;min-width:550px}.comparison-table th{padding:12px 10px;color:var(--text-3);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid var(--line-2)}.comparison-table td{padding:13px 10px;border-bottom:1px solid var(--line);line-height:1.6}.comparison-table small{font-size:10px;color:var(--text-3)}.comparison-table tr.changed{background:var(--warn-bg)}.comparison-table tr.changed td:last-child{color:var(--warn-text)}.export-options{grid-template-columns:repeat(3,minmax(0,1fr))}.export-option{padding:16px 12px}.export-option strong{font-size:13px}.export-option>span:last-child{font-size:11px;line-height:1.5}#export-dialog{width:min(690px,calc(100vw - 30px));max-width:none}#cloud-actions{display:flex;flex-wrap:wrap;gap:8px}#cloud-status{line-height:1.6}.presentation-panel{position:fixed;right:0;top:0;width:38vw;height:100dvh;z-index:50;background:var(--surface);display:flex;flex-direction:column;padding:30px 36px;border-left:1px solid var(--line);box-sizing:border-box}.presentation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.presentation-heading .eyebrow{line-height:1.7;font-size:9px;max-width:60%;overflow-wrap:anywhere}.presentation-heading .button{font-size:10px;white-space:nowrap}.presentation-copy{margin:auto 0;padding:40px 0;overflow:auto;min-height:0}.presentation-copy h1{font-size:clamp(25px,3vw,48px);font-weight:450;letter-spacing:-1.5px;line-height:1.13;margin:16px 0 22px;overflow-wrap:anywhere;color:var(--text-2)}.presentation-copy>p{font-size:14px;line-height:1.8;color:var(--text-3);max-width:500px}.presentation-metrics{display:flex;align-items:baseline;gap:25px;margin:25px 0;color:var(--text-3);font-size:13px}.presentation-metrics strong{color:var(--text-2);font-size:43px;font-weight:400;letter-spacing:-2px}.presentation-layers{display:flex;flex-direction:column;gap:5px;margin-top:30px}.presentation-layers button{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 10px;border:1px solid transparent;background:transparent;border-radius:8px;color:var(--text-2)}.presentation-layers button:hover,.presentation-layers button.active{background:var(--surface);border-color:var(--line)}.presentation-layers b{font-size:10px;color:var(--text-3);font-weight:400}.presentation-layers span{flex:1;font-size:13px}.presentation-layers small{font-size:11px;color:var(--text-3)}.presentation-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:auto}.presentation-navigation>span{color:var(--text-3);font-size:11px}.presenting .app-header,.presenting .sidebar{display:none}.presenting .workspace{display:block;width:62vw;height:100dvh;min-height:0}.presenting .stage{height:100%;padding:0;display:flex}.presenting .stage>*:not(.preview-card){display:none}.presenting .preview-card{border:0;border-radius:0;box-shadow:none;width:100%;height:100%;min-height:0}.presenting .preview-toolbar,.presenting .preview-bottom,.presenting .material-info,.presenting .viewport-label,.presenting .three-groups{display:none}.presenting .camera-tools{top:auto;bottom:28px}.presenting .scene-signature{font-size:29px;opacity:.65}.presenting .drawing>svg{padding:30px}.presenting .scene-empty{display:none}.presenting .toast{display:none}
@media(max-width:1150px){.brand-caption{display:none}.header-actions .button{font-size:11px;padding:7px 10px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-commandbar{gap:7px}.autosave-status{font-size:10px}.project-actions{gap:0}.project-actions .button{padding:6px 8px;font-size:11px}.presentation-panel{padding:23px;width:41vw}.presenting .workspace{width:59vw}.presentation-heading{align-items:flex-start;flex-direction:column}.presentation-copy h1{font-size:32px}}
@media(max-width:760px){.app-header{height:auto;min-height:66px;flex-wrap:wrap;padding:12px 14px;gap:10px}.brand{font-size:23px}.header-actions{margin-left:auto;gap:2px}.header-actions .button{font-size:0!important;padding:8px!important;gap:0!important}.header-actions .icon{width:16px;height:16px}.studio-commandbar{gap:7px;margin-top:8px}.project-actions{width:100%;margin:2px 0;justify-content:space-between}.project-actions .button{font-size:12px;min-height:35px}.autosave-status{font-size:11px}.wide-dialog{padding:20px;width:calc(100vw - 20px);max-height:94dvh}.dialog-heading h2{font-size:24px}.gallery-toolbar{flex-wrap:wrap}.segmented button{font-size:11px;padding:9px}.gallery-filters{flex-direction:column;align-items:stretch;gap:8px}.gallery-filters label:last-child{width:100%}.gallery-grid{grid-template-columns:1fr;gap:15px}.project-thumbnail{height:160px}.comparison-selectors{gap:10px}.comparison-selectors select{font-size:11px;padding:9px}.comparison-visuals{gap:8px}.comparison-visuals article{padding:11px}.comparison-visuals h3{font-size:13px;min-height:50px}.comparison-visuals strong{font-size:18px}.comparison-visuals small{display:block;font-size:10px}.comparison-drawing{height:190px}.diff-summary{font-size:11px}.export-options{grid-template-columns:1fr}.export-option{padding:12px 15px}.export-option .format-icon{float:left;margin:0 15px 0 0}.export-option strong{margin-bottom:4px}.presentation-panel{position:relative;width:100%;height:auto;min-height:48dvh;border-left:0;border-top:1px solid var(--line);padding:23px}.presenting .workspace{width:100%;height:50dvh;min-height:330px}.presentation-heading{flex-direction:row;align-items:center}.presentation-copy{padding:20px 0}.presentation-copy h1{font-size:30px}.presentation-copy>p{font-size:13px}.presentation-metrics{margin:12px 0}.presentation-metrics strong{font-size:34px}.presentation-layers{margin-top:18px}.presentation-navigation{margin-top:12px}.presenting .camera-tools{bottom:16px}.presenting .scene-signature{font-size:21px;bottom:20px}.version-row{flex-wrap:wrap}.version-row>div{min-width:100%}}

.encased-field{position:relative}.encased-field input{width:1px!important;height:1px!important;left:0;top:0;pointer-events:auto}.studio-commandbar,.project-actions{min-width:0}.comparison-table tr.changed td:first-child{font-weight:550}

.studio-commandbar{flex-wrap:wrap;gap:8px}.studio-commandbar .project-actions{margin-left:auto;flex-wrap:wrap}.sync-status{border:0;background:var(--surface-2);border-radius:30px;color:var(--text-2);font-family:inherit;font-weight:500;font-size:11px;padding:7px 10px;cursor:pointer;max-width:290px;text-align:left}.sync-status[data-state="conflict"],.sync-status[data-state="offline"]{background:var(--warn-bg);color:var(--warn-text)}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tool-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface);cursor:pointer;color:var(--text)}.tool-grid button:hover{border-color:var(--line-2);background:var(--ok-bg)}.tool-grid b{font-family:inherit;font-weight:500;font-size:12px;opacity:.55}.tool-grid strong{font-size:16px}.tool-grid span{font-size:12px;line-height:1.6;color:var(--text-2)}.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.product-grid h3{margin:12px 0 0}.product-grid small,.dialog-caption{line-height:1.55}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.check-row{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;margin:12px 0}.check-row input{width:16px;height:16px;margin:2px 0;flex-shrink:0;accent-color:var(--text-2)}input[type=color]{height:40px;width:100%;padding:4px;cursor:pointer}input[type=file]{font-size:12px;max-width:100%;padding:9px;border:1px dashed var(--line-2);border-radius:8px}.image-preview:empty{display:none}.image-preview img{max-width:100%;width:130px;height:80px;object-fit:cover;border:1px solid var(--line);border-radius:10px}.image-preview small{color:var(--text-3)}.logo-preview img{object-fit:contain;background:var(--surface)}.dialog-footer{display:flex;justify-content:flex-end;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.catalog-entry{margin:15px 0;width:100%}.catalog-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.catalog-toolbar input{flex:1;min-width:160px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.catalog-card{position:relative;border:1px solid var(--line);border-radius:16px;padding:20px;overflow:hidden}.catalog-card h3{margin:14px 0 6px}.catalog-card p{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.catalog-card>small{display:block;color:var(--text-2);font-size:11px;line-height:1.6;overflow-wrap:anywhere}.catalog-photo,.catalog-color{width:calc(100% + 40px);height:95px;object-fit:cover;margin:-20px -20px 16px}.validation-badge{display:inline-block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;border-radius:20px;padding:5px 9px;background:var(--warn-bg);color:var(--warn-text)}.validation-badge.validated{background:var(--ok-bg);color:var(--text-2)}.catalog-card label{display:flex;align-items:center;gap:12px;font-size:12px}.catalog-card select{max-width:120px}.catalog-card-actions{display:flex;gap:8px;margin:15px 0}.review-create{display:grid;grid-template-columns:1fr 130px auto;gap:12px;align-items:end;margin:20px 0}.review-create label,#review-link-box label{display:flex;flex-direction:column;gap:7px;font-size:12px}#review-link-box{padding:16px;background:var(--ok-bg);border:1px solid var(--line);border-radius:12px;margin:20px 0}#review-link-box .button{margin-top:12px}#review-link-box small{display:block;margin-top:10px;color:var(--text-2)}.review-events{margin-top:24px}.review-event{border-top:1px solid var(--line);padding:16px 0}.review-event>div{display:flex;flex-direction:column;gap:5px}.review-event strong{font-size:13px}.review-event small{font-size:11px;color:var(--text-2)}.review-event p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.import-source{display:flex;gap:16px;flex-wrap:wrap;margin:20px 0}.import-source label{display:flex;flex-direction:column;gap:7px;font-size:12px}.import-table-wrap{overflow:auto;margin:20px 0;border:1px solid var(--line);border-radius:10px}.import-table{border-collapse:collapse;width:100%;min-width:680px;font-size:12px}.import-table th{text-align:left;padding:10px;background:var(--surface)}.import-table td{padding:8px;border-top:1px solid var(--line);vertical-align:top}.import-table td input:not([type=checkbox]),.import-table select{width:100%;min-width:80px;font-size:12px;padding:8px}.import-table td:nth-child(2){min-width:180px}.import-table td:nth-child(4){width:100px}.import-table small{display:block;max-width:210px;color:var(--text-3);font-size:10px;white-space:normal;overflow-wrap:anywhere;margin-top:6px}.import-table input[type=checkbox]{accent-color:var(--text-2)}.review-mode{display:block!important;height:auto!important;overflow:auto!important;background:var(--surface);color:var(--text)}.review-page{max-width:1400px;margin:auto;padding:32px 50px}.review-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:30px;border-bottom:1px solid var(--line)}.review-header>span{font-size:10px;letter-spacing:.18em;color:var(--text-3)}.review-header .brand{font-size:27px;font-weight:700}.review-heading{padding:50px 0 25px}.review-heading h1{font-size:clamp(26px,3vw,42px);letter-spacing:-.04em;line-height:1.15;max-width:900px;margin:16px 0}.review-heading p{color:var(--text-2)}.review-metrics{display:flex;flex-wrap:wrap;gap:20px;align-items:center;font-size:12px;color:var(--text-2)}.review-metrics strong{font-size:26px;color:var(--text)}.review-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:40px;margin-top:20px}.review-drawing{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:15px}.review-drawing svg{display:block;width:100%;height:auto}.review-sidebar{background:white;border:1px solid var(--line);border-radius:22px;padding:26px;align-self:start;min-width:0}.review-sidebar h2{font-size:20px;letter-spacing:-.025em}.review-sidebar p{font-size:13px;line-height:1.6}.review-group{padding:18px 0;border-bottom:1px solid var(--line)}.review-group h3{font-size:15px}.review-layer{display:flex;justify-content:space-between;align-items:start;width:100%;text-align:left;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:transparent;cursor:pointer;font:inherit;font-size:12px;color:inherit;gap:16px}.review-layer small{display:block;line-height:1.5;color:var(--text-3);max-width:420px;margin-top:5px}.review-layer strong{white-space:nowrap}.review-unavailable{max-width:620px;margin:15vh auto}.review-unavailable h1{font-size:38px;letter-spacing:-.04em}.review-page [hidden]{display:none!important}.export-options{grid-template-columns:repeat(2,minmax(0,1fr))}.wide-dialog{max-height:90vh}.catalog-toolbar button,.review-create button{white-space:normal}#product-message,#catalog-message,#import-message,#review-message,#public-message{font-size:13px;line-height:1.6;color:var(--text-2)}#catalog-form-message{color:var(--danger-text)}.review-sidebar input,.review-sidebar textarea,.review-sidebar select{width:100%}.review-mode .app-header,.review-mode .workspace{display:none!important}
@media(max-width:1100px){.studio-commandbar .project-actions{width:100%;justify-content:flex-end}.review-page{padding:25px}.review-layout{gap:20px}.review-create{grid-template-columns:1fr 100px}.review-create button{grid-column:1/-1}.product-grid{gap:20px}}
@media(max-width:700px){.tool-grid,.product-grid,.catalog-grid,.review-layout{grid-template-columns:1fr}.tool-grid button{padding:16px}.review-page{padding:20px}.review-header>span{display:none}.review-header .button{font-size:11px}.review-heading{padding-top:32px}.review-metrics{gap:12px}.review-sidebar{padding:20px}.review-create{grid-template-columns:1fr}.review-create button{grid-column:auto}.review-drawing{border-radius:16px;padding:2px}.product-grid{gap:15px}.catalog-toolbar>*{flex:1}.catalog-toolbar input{flex-basis:100%}.export-options{grid-template-columns:1fr}.sync-status{max-width:220px;font-size:10px}.studio-commandbar .project-actions{justify-content:flex-start;gap:5px}.studio-commandbar .project-actions .button{font-size:11px;padding:8px}.import-source{display:block}.import-source label{margin:12px 0}dialog.wide-dialog{width:calc(100vw - 24px);padding:20px}.catalog-card-actions{flex-wrap:wrap}}
/* Fase 1: pares de campos empilhados em telas estreitas (390 px), para rótulos longos como "Distância entre alças · cm". */
@media(max-width:480px){.form-pair{grid-template-columns:1fr}}
/* Fase 2: prévia do material fotográfico no diálogo Produto & identidade (imagem 130×80 + nome e tile). */
.material-preview{display:flex;align-items:center;gap:10px}.material-preview img{width:130px;height:80px;object-fit:cover}.material-preview small{color:var(--secondary);font-size:12px}
/* Fase 3: prévia do desenho de matelassê e da arte de etiqueta enviados mostra o módulo inteiro (sem recorte) sobre branco; campos que não se aplicam ficam desabilitados e legíveis. */
.design-preview img{object-fit:contain;background:var(--surface)}#product-form input:disabled,#product-form select:disabled{opacity:.6;cursor:not-allowed}
/* Aviso sob o desenho do matelassê e a arte da etiqueta quando o 3D cairia para o quadriculado ou para o texto (some quando vazio). */
.design-note{margin:0;font-size:13px;line-height:1.5;color:var(--warn-text)}.design-note:empty{display:none}
/* Fase 4: notas da lateral e dos pés (role=status) somem quando vazias, como os avisos do desenho e da arte. */
#side-quilt-note:empty,#feet-note:empty{display:none}
/* Corretor (fase 4, C4 do R1): a 390 px os selects de material com os nomes longos dos Simmons (471 px de largura intrínseca) alargavam a coluna
   da grade (1fr = minmax(auto, 1fr)) e o conteúdo do diálogo estourava (471 px em 364). Colunas e selects podem encolher até a largura do diálogo. */
.product-grid>*{min-width:0}#product-form select{max-width:100%}
/* The effective design and its restorable base remain readable in both inspector themes. */
#root-quilt-override{padding:14px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface-2);display:grid;gap:10px;min-width:0;overflow-wrap:anywhere}
#root-quilt-override[hidden]{display:none}
#root-quilt-override :is(h3,h4,p){margin:0;line-height:1.5}
#root-quilt-override-title{font-size:14px;color:var(--text);scroll-margin:16px}
#root-quilt-override p{font-size:12px;color:var(--text-2)}
#root-quilt-override button{min-height:44px;height:auto;padding:10px 12px;width:100%;white-space:normal;text-align:left;line-height:1.4;justify-content:flex-start}
#root-quilt-override .root-quilt-actions{display:grid;gap:8px}
#root-quilt-override .root-quilt-suspended{font-weight:600;color:var(--text)}
#root-quilt-override-title:focus{outline:2px solid var(--accent);outline-offset:4px}
/* Fabric context protects the base while keeping the active choice explicit. */
#root-fabric-override{padding:14px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface-2);display:grid;gap:10px;min-width:0;overflow-wrap:anywhere}
#root-fabric-override[hidden],[id^="root-fabric-preview-note-"][hidden]{display:none}
#root-fabric-override :is(h3,p){margin:0;line-height:1.5}
#root-fabric-override-title{font-size:14px;color:var(--text);scroll-margin:16px}
#root-fabric-override p,[id^="root-fabric-preview-note-"],#root-fabric-status{font-size:12px;line-height:1.5;color:var(--text-2);overflow-wrap:anywhere}
#root-fabric-override button{min-height:44px;height:auto;padding:10px 12px;width:100%;white-space:normal;text-align:left;line-height:1.4;justify-content:flex-start}
#root-fabric-override-title:focus{outline:2px solid var(--accent);outline-offset:4px}
#root-fabric-status:empty{display:none}

/* Flex palette supplied by the user. Pale surfaces are supporting tints, not additional brand colors. */
:root{--flex-primary:#003057;--flex-blue:#214270;--flex-navy:#16203f;--flex-midnight:#020827;--flex-gray:#505759;--flex-charcoal:#323338;--flex-black:#141414;--ink:var(--flex-charcoal);--secondary:var(--flex-gray);--accent:var(--flex-primary);--blue:var(--accent);--muted:var(--secondary);--line:#dce1e8;--canvas:#f5f6f8;--surface:#fff;--selection:#eaf0f8;--focus:var(--flex-primary);color:var(--ink);background:var(--canvas)}
body,.stage{background:var(--canvas);color:var(--ink)}
button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent }
button,a.button{transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s;filter:none}
button:hover{filter:none}button:disabled{opacity:.45}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
button svg,.icon{stroke-width:1.8}
.app-header{background:var(--surface);border-color:var(--line)}
.brand{color:var(--flex-midnight)}.brand-icon{background:var(--accent)}.brand-dot{color:var(--accent)}
.brand-caption{font-size:10px;color:var(--secondary);letter-spacing:1.6px}
.button{min-height:38px;padding:9px 13px;font-size:13px;font-weight:550;border-color:var(--line-2);background:var(--surface);color:var(--ink);border-radius:9px}
.button:hover{border-color:var(--line-2);background:var(--surface)}
.button.primary{color:var(--primary-fg);background:var(--accent);border-color:var(--accent);box-shadow:0 3px 8px #21427013}
.button.primary:hover{background:var(--primary-bg);border-color:var(--accent);box-shadow:0 4px 12px #21427024}
.button.subtle{color:var(--secondary);border-color:transparent;background:transparent}
.button.subtle:hover{color:var(--ink);background:var(--accent-soft)}
.header-actions .tutorial-trigger{color:var(--accent);background:var(--surface);border-color:var(--line)}
.workspace{grid-template-columns:354px minmax(0,1fr)}
.sidebar{background:var(--surface);border-color:var(--line)}
.sidebar-heading{padding:24px 22px 18px}.sidebar-heading h1{font-size:23px;color:var(--flex-navy)}
.eyebrow,.sidebar-heading .eyebrow,.project-title-block .eyebrow,.sidebar-footer .eyebrow{font-size:10px;line-height:1.6;font-weight:650;letter-spacing:1.25px;color:var(--secondary)}
.count{font-size:12px;background:var(--accent-soft);color:var(--secondary)}
.icon-button{color:var(--secondary);width:32px;height:32px;flex:none}.icon-button:hover{color:var(--accent);background:var(--accent-soft)}
.tabs{background:var(--accent-soft);border-color:var(--line);margin:0 20px}
.tabs button{font-size:14px;color:var(--secondary);min-height:34px}
.tabs button[aria-selected=true]{color:var(--accent);box-shadow:0 1px 4px #32333817}
.list-caption{color:var(--secondary);font-size:10px;padding-top:18px;line-height:1.5}.list-caption span+span{font-size:11px}
.layer-list{gap:16px}.layer-section{padding-bottom:14px;border-color:var(--line)}
.layer-section-heading{padding:7px 5px 9px;margin:0 0 4px;border-radius:9px;background:var(--group-tint,var(--surface))}
.layer-section-heading>button:first-child{font-size:14px;color:var(--ink);line-height:1.35}
.layer-section-heading small{color:var(--secondary);font-size:12px;line-height:1.5}
.group-number{background:var(--group-accent,var(--primary-bg));color:var(--primary-fg);width:27px;height:27px;font-weight:650}
.layer-row{padding:7px 4px;min-height:66px;border-radius:9px;border:1px solid transparent;transition:background-color .16s,border-color .16s,box-shadow .16s}
.layer-row:hover{background:var(--surface);border-color:var(--line)}
.layer-row.selected{background:var(--selection);border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
.layer-row.drag-over{border-top:3px solid var(--accent)}
.layer-select{gap:10px;align-items:center;overflow:hidden}.layer-copy{min-width:0}
.layer-name,.material-card .layer-name{font-size:14px;line-height:1.3;font-weight:550;max-width:none;color:var(--ink);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.layer-group,.layer-row .layer-group{font-size:12px;color:var(--secondary);line-height:1.4;margin-top:3px}
.row-thickness{font-size:12px;color:var(--ink);font-weight:550;margin:0 2px 0 6px;min-width:41px;text-align:right}
.grip{color:var(--text-2);font-size:11px;width:21px;flex:none}
.material-swatch{width:34px;height:36px;border-radius:6px;box-shadow:inset 0 0 0 1px #32333824,0 2px 4px #3233380a}
.row-moves .icon-button{width:21px;height:22px}.row-moves{opacity:0}.layer-row:hover .row-moves,.layer-row:focus-within .row-moves,.layer-row.selected .row-moves{opacity:1}
.sidebar-footer{background:var(--surface);border-color:var(--line);padding:18px 22px}.total{color:var(--ink);font-weight:550;font-size:32px}.total small{color:var(--secondary)}
.footer-detail,.footer-detail span:first-child{color:var(--secondary);font-size:12px}.footer-detail span:last-child{line-height:1.5}
.stage{padding:24px 28px 14px}.project-title-block input{font-size:28px;font-weight:550;letter-spacing:-.75px;color:var(--flex-navy);margin-top:5px}
.project-note{font-size:12px;line-height:1.6;color:var(--secondary)}
.example{color:var(--secondary);border-color:var(--line-2);width:36px;height:36px;min-height:36px;flex:none;font-size:0;padding:8px}
.studio-commandbar{display:flex;align-items:center;gap:10px;margin:0 0 16px;flex-wrap:wrap;min-width:0}
.save-indicators{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1;min-width:190px}
.autosave-status{font-size:12px;line-height:1.45;color:var(--secondary)}.autosave-status:before{background:var(--primary-bg);width:6px;height:6px}
.autosave-status.problem{color:var(--warn-text)}.autosave-status.problem:before{background:#855522}
.sync-status{background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:550;padding:7px 11px;min-height:32px;max-width:100%;border:1px solid var(--line-2)}
.sync-status:hover{background:var(--accent-soft);border-color:var(--line-2)}.sync-status[data-state=conflict],.sync-status[data-state=offline]{color:var(--warn-text);background:var(--warn-bg);border-color:#e2bd83}
.studio-commandbar .project-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}
.action-group{display:flex;gap:3px;align-items:center;padding:3px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.project-actions .button{font-size:12px;min-height:32px;padding:7px 9px;gap:6px;white-space:nowrap}
.project-actions .button svg{width:15px;height:15px}.project-actions .button.subtle{color:var(--text)}.project-actions .button.subtle:hover{background:var(--surface)}
.project-actions #start-presentation{padding:8px 13px;min-height:40px}
.history-controls .button{min-height:34px;width:34px;padding:7px}.history-controls svg{width:17px;height:17px}
.composition-summary{gap:8px;max-height:118px;margin-bottom:16px}
.composition-summary>button{color:var(--ink);background:var(--surface);border-color:var(--line);padding:8px 10px;gap:9px;border-radius:10px;font-size:12px}
.composition-summary>button:hover{background:var(--group-tint);border-color:var(--group-accent)}
.composition-summary>button>span{max-width:220px;line-height:1.4}.composition-summary strong{font-size:13px;color:var(--ink);font-weight:650}.composition-summary small{font-size:11px;color:var(--secondary)}
.composition-summary .group-number{height:26px;width:26px;font-size:13px}
.size-picker{margin-left:auto;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:0 4px 0 11px;min-height:44px}
.size-picker:hover,.size-picker:focus-within{border-color:var(--accent)}
.size-picker>span{font-size:11px;font-weight:650;letter-spacing:.8px;text-transform:uppercase;color:var(--secondary)}
.size-picker select{border:0;background:transparent;font:inherit;font-size:13px;font-weight:650;color:var(--accent);padding:8px 6px;cursor:pointer;max-width:230px}
.size-picker select:focus-visible{outline:none}
@media(max-width:760px){.size-picker{margin-left:0;flex:1 1 100%}.size-picker select{flex:1;max-width:none}}
.preview-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 32px #32333808;min-height:420px}
.preview-toolbar{padding:12px 15px;background:var(--surface);border-color:var(--line)}
.view-tabs{background:var(--accent-soft);border:1px solid var(--line);border-radius:9px;padding:3px;flex-wrap:wrap;justify-content:center}
.view-tabs button{color:var(--secondary);font-size:12px;font-weight:550;min-height:31px;padding:7px 10px;border-radius:6px}
.view-tabs button.active{color:var(--accent);background:var(--surface);box-shadow:0 1px 5px #3233381a}
.engine-switch button{font-size:12px;color:var(--secondary);padding:9px 10px}.engine-switch button.active{color:var(--accent);border-bottom:2px solid var(--accent);font-weight:650}
.viewport-shell{background:radial-gradient(ellipse at 50% 36%,#fbfbfc 0%,#eceef2 52%,#d7dce3 100%)}
.drawing,.drawing.material-detail{background-color:var(--surface);background-image:radial-gradient(#21427026 .7px,transparent .7px)}
.viewport-label{color:var(--secondary);font-size:10px;letter-spacing:1.2px}.live-dot{background:var(--primary-bg);width:5px;height:5px}
.camera-tools{background:var(--surface);border-color:var(--line-2);border-radius:10px;box-shadow:0 4px 14px #3233380c;gap:3px;top:auto;bottom:16px;right:16px;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 32px)}
.camera-tools span{width:1px;height:22px;margin:5px 4px}
/* Dez botões (fase 2: câmera fotográfica e dois presets foto): ≤480 px a barra quebra em duas linhas; a assinatura já está oculta nessa largura. */
.camera-tools #camera-photo.active{color:var(--accent);background:var(--accent-soft)}
@media(max-width:480px){.camera-tools{max-width:236px;right:10px;bottom:10px}}
.camera-tools button{color:var(--text-2);width:32px;height:34px}.camera-tools button:hover{color:var(--accent);background:var(--accent-soft)}.camera-tools svg{width:17px;height:17px}
.three-label-leaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.three-label-leaders path{fill:none;stroke:var(--text-2);stroke-width:.8;opacity:.7}.three-label-leaders path.selected{stroke:var(--accent);stroke-width:1.2;opacity:1}
.three-label{gap:6px;margin:0;transition:opacity .15s}.three-label>span{font-size:11px;color:var(--text-2);background:var(--surface);border:1px solid var(--line-2);min-width:24px;height:23px;border-radius:6px;font-weight:550;box-shadow:0 1px 4px #3233380c}
.three-label.selected>span{color:var(--primary-fg);background:var(--accent);border-color:var(--accent)}.three-label:hover>span{border-color:var(--accent);box-shadow:0 0 0 2px #2142701f}
.three-label strong{font-size:12px;background:var(--surface);color:var(--accent);font-weight:600;border:1px solid var(--line-2);max-width:230px;padding:6px 9px}
.three-group-mark path{stroke:var(--group-accent,var(--accent));stroke-width:1.5;opacity:1}
.three-group-button{background:var(--group-accent,var(--primary-bg));border:2px solid var(--line);min-width:30px;height:30px;box-shadow:0 2px 6px #32333826;font-size:14px}.three-group-button:hover{background:var(--group-accent,var(--primary-bg));box-shadow:0 0 0 3px #fff,0 2px 6px #32333826}
.preview-bottom{background:var(--surface);border-color:var(--line);padding:11px 16px;color:var(--secondary)}.preview-bottom span:first-child,.preview-bottom button{font-size:12px;color:var(--secondary)}.preview-bottom #cutaway-note{font-size:11px;color:var(--warn-text)}
.view-controls{margin:16px 0 11px;gap:18px;color:var(--secondary)}.toggle,.spacing-control{font-size:12px;color:var(--secondary)}.spacing-control output{font-size:12px;color:var(--ink)}.spacing-control input{accent-color:var(--accent);height:5px}
.switch{height:19px;width:33px;background:#78828e}.switch:after{width:13px;height:13px;top:3px;left:3px}.toggle input:checked+.switch{background:var(--accent)}.toggle input:checked+.switch:after{transform:translateX(14px)}.toggle input:focus-visible+.switch{outline:2px solid var(--accent);outline-offset:3px}
.stage-footnote{font-size:11px;color:var(--secondary);line-height:1.55}.stage-footnote svg{width:13px;height:13px}
.inspector{background:var(--surface);border-color:var(--line-2);padding:15px 20px 18px;max-height:48%}
.inspector-heading .eyebrow{color:var(--accent);font-size:11px}.inspector label{font-size:12px;color:var(--secondary);line-height:1.45}
.inspector input,.inspector select,.description-field textarea{font-size:13px;color:var(--ink);background:var(--surface);border-color:var(--line-2);padding:9px;border-radius:7px}
.inspector-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) 38px}.inspector input[type=color]{width:38px;height:38px}
.inspector-actions button{font-size:12px;color:var(--accent)}.inspector-actions button:last-child{color:var(--danger-text)}.isolate-selected{font-size:12px;color:var(--accent);border-color:var(--line-2);background:var(--surface)}
.field-note,.empty-group{font-size:12px;color:var(--secondary)}.material-info{background:var(--surface);border-color:var(--line)}.material-info strong{color:var(--ink)}.material-info span{color:var(--secondary);font-size:13px;line-height:1.6}
.library-intro,.library-group-title,.groups-intro,.material-group-picker{color:var(--secondary)}.library-intro{font-size:13px}.library-group-title{font-size:11px;line-height:1.5}.material-card{background:var(--surface);border-color:var(--line)}.material-card:hover{background:var(--surface);border-color:var(--line-2)}.material-card .icon{color:var(--accent)}
.add-layer,.add-group{font-size:13px;color:var(--accent);border-color:var(--line-2);background:var(--surface)}.add-layer:hover,.add-group:hover{background:var(--accent-soft);border-color:var(--accent)}
.group-editor{background:var(--surface);border-color:var(--line);border-top:3px solid var(--group-accent,var(--accent))}.group-editor.active{border-color:var(--group-accent,var(--accent))}.group-editor-title label,.group-editor-foot>span{color:var(--secondary);font-size:12px}.group-editor input,.material-group-picker select{background:var(--surface);color:var(--ink);border-color:var(--line-2)}
dialog{color:var(--ink);background:var(--surface);border-color:var(--line);box-shadow:0 25px 90px #02082740}dialog::backdrop{background:#02082757;backdrop-filter:blur(3px)}
dialog h2,.dialog-heading h2{color:var(--ink);font-weight:550}dialog p{color:var(--secondary);font-size:14px}.dialog-caption{color:var(--secondary)!important;font-size:13px!important}
.stack-form label,.comparison-selectors label,.check-row,.review-create label{color:var(--secondary);font-size:13px}.stack-form input,.stack-form textarea,.stack-form select,.gallery-filters input,.gallery-filters select,.comparison-selectors select,.review-create input,.review-create select,#review-link{color:var(--ink);background:var(--surface);border:1px solid var(--line-2);border-radius:8px;font-size:14px;padding:11px 12px}
input::placeholder,textarea::placeholder{color:var(--text-2);opacity:1}
.tool-grid button{background:var(--surface);border-color:var(--line);box-shadow:0 2px 6px #32333804;padding:22px;gap:12px}.tool-grid button:hover{background:var(--surface);border-color:var(--line-2);box-shadow:0 5px 18px #32333810}.tool-grid b{color:var(--accent);opacity:1;font-size:12px;display:grid;place-items:center;background:var(--accent-soft);width:30px;height:30px;border-radius:8px}.tool-grid strong{font-size:16px;color:var(--ink)}.tool-grid span{font-size:13px;color:var(--secondary)}
.segmented{background:var(--accent-soft)}.segmented button{font-size:13px;color:var(--secondary)}.segmented button.active{color:var(--accent)}
.project-card h3{color:var(--ink)}.project-card p,.project-card small,.catalog-card>small,.catalog-card p,.review-event small{color:var(--secondary);font-size:12px}.project-card .card-badge{color:var(--secondary);font-size:10px}.project-card-actions .button{font-size:12px}
.validation-badge{font-size:11px;color:var(--warn-text);background:var(--warn-bg)}.validation-badge.validated{color:var(--text-2);background:var(--ok-bg)}
.version-row small,.comparison-table small,.comparison-visuals small,.diff-summary span,.comparison-table th,.presentation-copy>p,.presentation-metrics,.review-metrics,.review-heading p,.review-layer small,.image-preview small{color:var(--secondary);font-size:12px}
.export-option>span:last-child{font-size:12px;color:var(--secondary)}.format-icon{color:var(--accent);background:var(--accent-soft)}.reference-links a{color:var(--accent)}
.tour-welcome p,.tour-card p,.tour-demo-note,.tour-welcome-footer>span,.tour-overview span,.tour-hint,.tour-mode,.tour-step{color:var(--secondary)}.tour-kicker{color:var(--accent)}
.review-mode{color:var(--ink)}.review-group h3{color:var(--group-accent,var(--text));border-left:3px solid currentColor;padding-left:10px}.review-sidebar p{font-size:14px}

/* Complete the palette across secondary flows and keyboard interaction. */
.project-title-block input:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:4px}.project-title-block input:hover,.project-title-block input:focus{border-bottom-color:var(--accent)}
.scene-signature{color:var(--flex-gray);opacity:.5}.scene-signature>span{color:var(--accent)}
.scene-empty{background:var(--canvas);color:var(--secondary)}.scene-empty h2,.empty-library h3{color:var(--flex-navy)}.empty-library{color:var(--secondary)}
.drawing svg [data-layer]:hover .layer-top,.drawing svg [data-layer]:focus .layer-top{stroke:var(--accent)}.layer-section.drag-over{outline-color:var(--accent);background:var(--selection)}
.toast{background:var(--flex-midnight);color:var(--primary-fg);box-shadow:0 5px 25px #02082730}
.control-divider,.camera-tools span{background:var(--line)}.sidebar,.panel{scrollbar-color:var(--line-2) transparent}
.export-option{border-color:var(--line);background:var(--surface)}.export-option:hover{border-color:var(--accent);background:var(--selection)}
.project-card,.catalog-card,.image-preview img,.version-row,.dialog-footer,.review-event,.import-table-wrap,.import-table td,.comparison-table td,.comparison-table th{border-color:var(--line)}
.project-thumbnail{background:radial-gradient(#fafbfc,#e8ecf1)}.project-card .card-badge,.logo-preview img{background:var(--surface)}
.comparison-visuals article{background:var(--canvas);border-color:var(--line)}.segmented button.active{box-shadow:0 1px 4px #02082711}
.presentation-panel{background:var(--surface);border-color:var(--line)}.presentation-copy h1{color:var(--flex-navy)}.presentation-metrics strong{color:var(--accent)}
.presentation-layers button{color:var(--ink)}.presentation-layers button:hover,.presentation-layers button.active{background:var(--selection);border-color:var(--line-2)}.presentation-layers b,.presentation-layers small,.presentation-navigation>span{color:var(--secondary)}.presentation-navigation{border-color:var(--line)}
.check-row input,.import-table input[type=checkbox]{accent-color:var(--accent)}input[type=file]{border-color:var(--line-2)}.import-table th{background:var(--canvas);color:var(--ink)}.import-table small{color:var(--secondary)}
#review-link-box{background:var(--selection);border-color:var(--line-2)}.review-mode{background:var(--canvas)}.review-header,.review-drawing,.review-sidebar,.review-group,.review-layer{border-color:var(--line)}.review-header>span{color:var(--secondary)}.review-metrics strong{color:var(--flex-navy)}
.tour-welcome,.tour-card{color:var(--ink);background:var(--surface);border-color:var(--line);box-shadow:0 24px 100px #02082740}.tour-welcome::backdrop,.tour-shade{background:#02082770}
.tour-close{color:var(--secondary)}.tour-close:hover{background:var(--selection)}.tour-overview{color:var(--ink)}.tour-overview b{color:var(--accent);background:var(--selection);border-color:var(--line-2)}
.tour-welcome .tour-demo-note,.tour-demo{color:var(--accent);background:var(--selection);border-color:var(--line-2)}.tour-focus{border-color:var(--accent);box-shadow:0 0 0 3px #fff}.tour-progress{background:var(--accent-soft)}.tour-progress>span{background:var(--accent)}.tour-card-footer{border-color:var(--line)}
@media(min-width:1600px){.workspace{grid-template-columns:380px minmax(0,1fr)}.stage{padding:30px 36px 18px}.project-title-block input{font-size:30px}}
@media(max-width:1300px){.studio-commandbar .project-actions{width:100%;margin-left:0}.project-actions #start-presentation{margin-left:auto}.workspace{grid-template-columns:330px minmax(0,1fr)}.stage{padding:22px 20px 14px}.composition-summary>button>span{max-width:185px}.layer-name{font-size:13px}}
@media(max-width:1000px){.workspace{grid-template-columns:310px minmax(0,1fr)}.stage{padding:20px 16px 12px}.brand-caption{display:none}.header-actions{gap:4px}.header-actions .button{font-size:12px;padding:8px 10px}.project-title-block input{font-size:24px}.project-actions .button{font-size:12px;padding:7px 8px}.project-actions .button svg{display:none}.layer-row{padding-left:2px;padding-right:2px}.grip{width:17px}.material-swatch{width:30px;height:33px}.layer-select{gap:7px}.preview-toolbar{justify-content:space-between}.view-controls{gap:12px}.engine-switch button{font-size:12px}.project-actions #start-presentation{margin-left:0}}
@media(max-width:760px){.app-header{padding:0 14px;gap:10px}.header-actions .button,.header-actions .primary{font-size:0;padding:8px;width:35px;min-height:35px;gap:0}.header-actions svg{width:17px;height:17px}.header-actions{gap:2px}.workspace{display:flex}.stage{padding:22px 14px 16px}.project-title-block input{font-size:23px}.project-note{font-size:12px}.studio-commandbar{gap:8px}.save-indicators{min-width:0;flex:1;gap:4px}.autosave-status{font-size:11px}.sync-status{font-size:11px;min-height:29px;padding:5px 9px}.studio-commandbar .project-actions{gap:6px;justify-content:flex-start}.project-actions .button{font-size:12px;padding:7px 8px}.project-actions #start-presentation{margin-left:auto;min-height:39px}.history-controls .button{width:32px;height:32px;min-height:32px}.composition-summary{gap:6px;max-height:178px}.composition-summary>button{padding:7px 8px;gap:7px;font-size:12px;flex:1 1 100%}.composition-summary>button>span{max-width:none;flex:1}.composition-summary strong{font-size:13px}.preview-card{height:560px;min-height:0;border-radius:13px}.preview-toolbar{padding:8px;gap:7px}.preview-card .view-tabs button{font-size:12px;padding:7px 8px;min-height:32px}.engine-switch{margin-left:0;width:100%;justify-content:center}.engine-switch button{font-size:12px;padding:7px 12px}.viewport-label{font-size:9px;top:16px;left:15px}.preview-bottom{padding:10px 12px;gap:7px}.preview-bottom span:first-child,.preview-bottom button{font-size:11px}.camera-tools button{width:30px;height:30px}.camera-tools{padding:4px;right:10px;bottom:12px}.three-label>span{font-size:10px;min-width:22px;height:22px}.three-label strong{font-size:11px;max-width:140px}.three-group-button{height:27px;min-width:27px;font-size:12px}.toggle,.spacing-control{font-size:12px}.stage-footnote{font-size:11px}.sidebar-heading{padding:22px 20px 18px}.layer-name,.material-card .layer-name{font-size:14px}.layer-row{min-height:67px}.row-moves{opacity:1}.row-moves .icon-button{width:25px;height:25px}.row-thickness{font-size:12px}.material-swatch{width:35px;height:37px}.grip{width:22px}.layer-select{gap:10px}.panel{max-height:540px}.inspector{max-height:none;padding:20px}.inspector input,.inspector select,.description-field textarea{font-size:14px}.view-controls{gap:13px 15px}.tool-grid button{padding:18px}.project-actions .action-group{flex:1;justify-content:space-between}.project-actions .action-group:last-of-type{flex:0}.footer-detail{font-size:12px}}
@media(prefers-reduced-motion:reduce){button,a.button,.layer-row,.three-label,.switch,.switch:after{transition:none}}

/* Shared proportions keep the editor and its supporting panels consistent. */
:root{--radius-control:10px;--radius-panel:16px;--radius-dialog:20px;--shadow-control:0 2px 6px #0208270a;--shadow-panel:0 8px 24px #02082708;--type-small:12px;--type-control:13px;--type-body:14px;--type-title:28px}
.app-header{gap:20px}
.flex-brand{gap:0;flex-shrink:0}
.flex-logo-frame{display:flex;align-items:center;justify-content:center;padding:9px;background:var(--surface);flex:none}
.flex-logo-frame img{display:block;width:116px;height:auto;max-width:none}
.brand-wordmark{font-size:25px;line-height:1.2;letter-spacing:-1px;border-left:1px solid var(--line);padding-left:16px;margin-left:8px}
.brand-caption{padding-left:0;border-left:0;line-height:1.5}
.button,.tabs,.view-tabs,.action-group,.size-picker,.composition-summary>button,.camera-tools,.material-card,.export-option{border-radius:var(--radius-control)}
.preview-card,.tool-grid button,.project-card,.catalog-card,.group-editor,.review-drawing{border-radius:var(--radius-panel);box-shadow:var(--shadow-panel)}
dialog,dialog.wide-dialog{border-radius:var(--radius-dialog)}
.button.primary,.tabs button[aria-selected=true],.view-tabs button.active{box-shadow:var(--shadow-control)}
.button.primary:hover{box-shadow:0 4px 12px #02082718}
.stack-form input,.stack-form textarea,.stack-form select,.gallery-filters input,.gallery-filters select,.comparison-selectors select,.review-create input,.review-create select,#review-link,.inspector input,.inspector select{border-radius:var(--radius-control)}
.project-title-block input{font-size:clamp(24px,2.1vw,30px);font-weight:600;letter-spacing:-.6px;line-height:1.25}
.sidebar-heading h1{font-size:23px;font-weight:600;letter-spacing:-.5px}
.dialog-heading h2,dialog h2{font-size:var(--type-title);line-height:1.2;letter-spacing:-.5px;font-weight:600}
.dialog-heading{gap:20px}.dialog-heading .icon-button{width:36px;height:36px;flex:none}
.product-grid{gap:32px}.product-grid h3{font-size:16px;font-weight:600;line-height:1.4;margin-bottom:4px;color:var(--flex-navy)}
.tool-grid strong,.project-card h3,.catalog-card h3{font-weight:600;line-height:1.4}
.stack-form label{font-size:var(--type-control);line-height:1.5}
.stack-form input,.stack-form textarea,.stack-form select{font-size:var(--type-body)}
.stack-form input:not([type=checkbox]):not([type=color]),.stack-form select{min-height:44px}
.stack-form label.check-row{flex-direction:row;align-items:center;gap:10px}.stack-form .check-row input{width:18px;height:18px;min-height:18px;padding:0;margin:0;accent-color:var(--accent)}
.image-preview.logo-preview{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:8px 0}
.logo-preview img{width:166px;height:70px;object-fit:contain;padding:16px;background:var(--surface);border:0;border-radius:0}
.logo-preview small{line-height:1.5}
.row-moves .icon-button{width:24px;height:24px}
.size-picker select:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;border-radius:6px}
.view-controls .toggle,.spacing-control{min-height:32px}
.presentation-branding{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
.presentation-logo-frame{display:flex;align-items:center;justify-content:center;padding:12px;background:var(--surface)}
.presentation-logo-frame img{display:block;width:124px;height:auto;max-height:52px;object-fit:contain}
.presentation-branding .eyebrow{line-height:1.6;overflow-wrap:anywhere}
.presentation-heading{gap:18px;align-items:flex-start}
.presentation-heading>.button{flex:none}
.review-header{gap:20px;flex-wrap:wrap}
.review-header>.button{margin-left:auto}
@media(min-width:761px){.workspace{height:auto;min-height:calc(100dvh - 70px)}.stage{min-height:calc(100dvh - 70px)}.sidebar{max-height:max(700px,calc(100dvh - 70px))}.composition-summary{flex-shrink:0}}
@media(max-width:1150px){.app-header{gap:16px}.flex-logo-frame img{width:104px}.brand-wordmark{font-size:24px;padding-left:14px;margin-left:6px}}
@media(max-width:760px){
 .app-header{min-height:78px;height:auto;padding:8px 14px;gap:8px;flex-wrap:nowrap}
 .flex-brand{flex-direction:column;align-items:center;gap:1px}
 .flex-logo-frame{padding:6px}.flex-logo-frame img{width:86px}
 .brand-wordmark{font-size:15px;letter-spacing:-.4px;border:0;padding:0;margin:0;line-height:1.2}
 .header-actions{margin-left:auto;gap:3px}.header-actions .button{width:36px;min-height:38px}
 .project-title-block input{font-size:24px}.dialog-heading h2,dialog h2{font-size:24px}
 .product-grid{gap:24px}.product-grid>section+section{padding-top:20px;border-top:1px solid var(--line)}
 .composition-summary{max-height:210px}
 .row-moves .icon-button{width:26px;height:26px}
 .review-header{gap:12px}.review-header .button{white-space:normal;text-align:center;max-width:180px}
 .presentation-logo-frame{padding:10px}.presentation-logo-frame img{width:112px}
}
/* Fase 1: a barra de câmera com 7 botões (≈250 px) cobre a assinatura em telas de 390 px (medido: sobreposição de 16 px); a assinatura é decorativa e sai nessa faixa. */
@media(max-width:480px){.scene-signature{display:none}}
@media(max-width:360px){.app-header{padding:8px 10px;gap:4px}.header-actions{gap:2px}.header-actions .button{width:34px}.flex-logo-frame img{width:78px}}

/* Avenir remains local in this wireframe; The Seasons uses the user's Adobe Fonts web kit. */
.sheet-print-legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 18px;padding:11px 14px;background:#fff;border:1px solid #d8dfe6;border-radius:7px;font-size:11px;color:#505759}.sheet-print-legend[hidden]{display:none}.sheet-print-legend>span:before{content:'';display:inline-block;width:16px;border-top:2px dashed;margin-right:6px;vertical-align:middle}.sheet-guide-trim:before{color:#7d7d7d}.sheet-guide-bleed:before{color:#d12877}.sheet-guide-safe:before{color:#168de0}.sheet-print-legend small{flex-basis:100%;text-align:center;font-size:10px}#sheet-guides[aria-pressed=true]{background:#e1edf8;color:#214270}.sheet-with-guides .sheet-page{--sheet-ratio:1.3954545455;--sheet-headroom:340px}
@font-face{font-family:'Ficha Avenir';src:local('AvenirNext-Regular'),local('Avenir Next Regular');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Ficha Avenir';src:local('AvenirNext-DemiBold'),local('Avenir Next Demi Bold');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Ficha Avenir';src:local('AvenirNext-DemiBoldItalic'),local('Avenir Next Demi Bold Italic');font-weight:600;font-style:italic;font-display:swap}
@font-face{font-family:'Ficha Avenir Heavy';src:local('AvenirLTStd-Heavy'),local('Avenir LT Std 85 Heavy');font-weight:800;font-style:normal;font-display:swap}
#sheet-screen{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#e9edf0;color:#16203f;overflow:hidden}
#sheet-screen[open]{display:flex;flex-direction:column}.sheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 24px;background:#fff;border-bottom:1px solid #d8dfe6;flex:none}.sheet-heading,.sheet-actions{display:flex;align-items:center;gap:18px}.sheet-heading>div{border-left:1px solid #d8dfe6;padding-left:20px}.sheet-heading h2{font-size:23px;line-height:1.15;margin:5px 0 0}.sheet-heading .eyebrow{font-size:9px;letter-spacing:1.7px}.sheet-actions{gap:9px}#sheet-status{font-size:12px;color:#505759;margin-right:10px;max-width:180px}.sheet-workspace{display:grid;grid-template-columns:292px minmax(0,1fr);flex:1;min-height:0}.sheet-controls{background:#fff;overflow:auto;border-right:1px solid #d8dfe6;padding-bottom:30px}.sheet-intro{padding:25px 22px 20px}.sheet-intro h3{font-family:inherit;font-size:23px;font-weight:600;margin:12px 0}.sheet-intro p,.sheet-controls .dialog-caption{font-size:12px;line-height:1.6;color:#505759}.sheet-draft-note{font-size:10px;color:#626d79;display:block;margin-top:12px}.sheet-controls details{border-top:1px solid #e3e7ec;padding:0 22px}.sheet-controls summary{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:12px;padding:20px 0;color:#505759;list-style:none}.sheet-controls summary b{font-size:12px;color:#16203f}.sheet-controls summary:after{content:'+';margin-left:auto;font-size:18px}.sheet-controls details[open]>summary:after{content:'−'}.sheet-fields{display:grid;gap:14px;padding-bottom:24px}.sheet-controls label{font-size:12px;display:grid;gap:7px;font-weight:600}.sheet-controls input,.sheet-controls textarea{width:100%;min-width:0;font-size:13px;line-height:1.5;font-weight:400;border:1px solid #c4ceda;border-radius:7px;padding:10px;background:#fff;color:#16203f;font-family:inherit}.sheet-controls textarea{resize:vertical}.sheet-controls .stack-form{gap:0}.sheet-fields .stack-form{gap:17px}.sheet-controls p{margin:0}.sheet-preview{overflow:auto;padding:18px 25px 30px;min-width:0}.sheet-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 auto 12px;font-size:11px;color:#505759}.sheet-face-tabs{display:flex;border:1px solid #c6ced6;border-radius:7px;overflow:hidden;background:#fff;flex:none}.sheet-face-tabs button{font-size:12px;border:0;background:transparent;padding:9px 15px;color:#505759}.sheet-face-tabs button[aria-pressed=true]{background:#16203f;color:#fff}.sheet-view-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.sheet-view-tools .button{font-size:11px;min-height:30px;padding:6px 9px}.sheet-font-status{text-align:center;font-size:10px!important;margin:12px 0 16px!important;color:#505759!important}.sheet-font-status[data-ready=false],.sheet-layout-warning{color:#8a431b!important}.sheet-layout-warning{background:#fff7eb;padding:10px 14px;border-radius:6px;font-size:12px!important}.sheet-page{margin:0 auto 18px;max-width:1600px;width:min(100%,calc((100dvh - var(--sheet-headroom,270px))*var(--sheet-ratio,1.4142857143)))}.sheet-page>svg{display:block;width:100%;height:auto;background:#fff;box-shadow:0 10px 25px #16203f1c}.sheet-page figcaption{display:flex;align-items:center;justify-content:space-between;margin-top:11px;font-size:11px;color:#505759}.sheet-page figcaption strong{color:#323338;font-size:12px}.sheet-preview-note{text-align:center;font-size:10px!important;color:#505759!important;margin:0!important}.sheet-controls :focus-visible,.sheet-toolbar :focus-visible,.sheet-preview :focus-visible{outline:2px solid #214270;outline-offset:3px}.sheet-expanded .sheet-page{width:100%}.sheet-future{font-size:12px;color:#505759;border:1px dashed #bbc3cc;padding:10px 14px;border-radius:7px}.sheet-upload-placeholder{border:1px dashed #b2bcc8;border-radius:7px;display:grid;justify-items:center;text-align:center;gap:6px;padding:17px 12px;background:#f5f7f9;color:#505759}.sheet-upload-placeholder>span{font-size:23px}.sheet-upload-placeholder strong{font-size:12px}.sheet-upload-placeholder small{font-size:11px;font-weight:400;line-height:1.5}
#sheet-screen[data-sheet-face=front] .sheet-back-fields,#sheet-screen[data-sheet-face=back] .sheet-front-fields{display:none}#sheet-screen[data-sheet-face=both] #sheet-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}#sheet-screen[data-sheet-face=both] .sheet-page{width:100%}.sheet-edit-hidden .sheet-workspace{grid-template-columns:1fr}.sheet-edit-hidden .sheet-controls{display:none}
@media(max-width:1100px){.sheet-toolbar{padding:13px 16px;gap:10px}.sheet-heading .eyebrow{font-size:8px}.sheet-heading h2{font-size:20px}.sheet-actions .button{font-size:12px;padding:9px}.sheet-actions{flex-wrap:wrap;justify-content:flex-end}#sheet-status{flex:1 1 100%;text-align:right;max-width:none;font-size:11px}.sheet-workspace{grid-template-columns:260px minmax(0,1fr)}.sheet-preview{padding:18px}.sheet-view-tools>span{display:none}.sheet-preview-heading{gap:8px}.sheet-face-tabs button{padding:8px 10px;font-size:11px}.sheet-intro{padding:23px 20px}.sheet-controls details{padding:0 20px}}
@media(max-width:700px){#sheet-screen{overflow:auto}.sheet-toolbar{position:sticky;top:0;z-index:2;flex-wrap:wrap}.sheet-heading{width:100%;justify-content:space-between}.sheet-heading>div{border:0;padding:0;text-align:right}.sheet-actions{width:100%;justify-content:flex-start}#sheet-status{display:none}.sheet-workspace{display:flex;flex-direction:column-reverse;flex:none}.sheet-preview{overflow:visible;padding:18px 12px}.sheet-preview-heading{flex-wrap:wrap;justify-content:center;gap:8px}.sheet-controls{overflow:visible;border:0}.sheet-page{width:100%;margin-bottom:20px}.sheet-toolbar .button{min-height:37px}.sheet-future{font-size:11px}.sheet-page figcaption{font-size:9px}.sheet-page figcaption strong{font-size:10px}.sheet-font-status{font-size:9px!important}.sheet-view-tools{gap:3px}#sheet-screen[data-sheet-face=both] #sheet-pages{gap:12px;grid-template-columns:1fr}.sheet-edit-hidden .sheet-workspace{display:block}}

.sheet-options-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.sheet-options-heading>span{font-size:10px;color:var(--text-2)}.sheet-inline-actions{display:flex;gap:8px;flex-wrap:wrap}.sheet-inline-actions .button{font-size:10px;padding:6px 8px;min-height:30px}#sheet-size-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sheet-controls .sheet-size-option{display:flex;flex-direction:row;gap:7px;align-items:center;padding:9px 7px;border:1px solid var(--line);border-radius:6px;cursor:pointer}.sheet-size-option:has(input:checked){background:var(--surface);border-color:var(--accent)}.sheet-controls .sheet-size-option input{appearance:auto;width:14px;height:14px;padding:0;accent-color:var(--accent);flex:none}.sheet-size-option span{min-width:0;display:grid;gap:3px}.sheet-size-option b{font-size:10px;line-height:1.35}.sheet-size-option small{font-size:10px;font-weight:400;color:var(--text-2)}
#sheet-tech-selected{list-style:none;margin:0;padding:0;display:grid;gap:8px}#sheet-tech-selected>li{display:flex;align-items:center;gap:6px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--surface);min-width:0}.tech-order{font-size:10px;color:var(--text-2);cursor:grab}.tech-selected-name{background:transparent;border:0;padding:0;display:grid;gap:6px;flex:1;min-width:0;text-align:left;cursor:pointer;color:var(--text)}.tech-selected-name img{height:32px;width:100%;object-fit:contain;object-position:left}.tech-selected-name>span{font-size:11px;line-height:1.3}.tech-row-actions{display:grid;gap:2px;flex:none}.tech-row-actions button{border:0;border-radius:4px;background:var(--surface-2);width:25px;height:24px;color:var(--text);cursor:pointer}.tech-row-actions button:disabled{opacity:.3;cursor:default}.tech-empty-selection{font-size:12px;line-height:1.6;color:var(--text-2);padding:16px!important;background:var(--surface)!important}#sheet-tech-add{font-size:12px}
#sheet-tech-dialog{width:min(1000px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 24px 70px #02082744;overflow:auto}#sheet-tech-dialog::backdrop{background:#02082780}#sheet-tech-dialog [hidden]{display:none!important}.tech-modal-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 28px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:2}.tech-modal-header h2{font-family:inherit;font-size:25px;font-weight:600;line-height:1.2;margin:7px 0}.tech-modal-header p{font-size:12px;color:var(--text-2);margin:0}.tech-modal-header .eyebrow{font-size:9px;letter-spacing:1.8px}.tech-library-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}#tech-browse,#tech-edit{padding:22px 28px}.tech-library-filters{display:grid;grid-template-columns:1fr 210px;gap:14px}#sheet-tech-dialog label{display:grid;gap:6px;font-size:12px;font-weight:600}#sheet-tech-dialog input:not([type=file]),#sheet-tech-dialog select,#sheet-tech-dialog textarea{width:100%;box-sizing:border-box;border:1px solid var(--line-2);border-radius:7px;padding:10px 12px;background:var(--surface);color:var(--text);font-family:inherit;font-weight:400;font-size:13px;line-height:1.5}.tech-library-caption{font-size:12px;color:var(--text-2);line-height:1.5}.tech-library-caption#tech-library-count{margin:16px 0}#tech-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.tech-card{border:1px solid var(--line);border-radius:9px;padding:13px;display:flex;flex-direction:column;gap:8px;min-width:0}.tech-card-art{height:95px;display:grid;place-items:center;background:var(--surface);border-radius:5px}.tech-card-art img{max-width:100%;max-height:95px;object-fit:contain}.tech-card h3{font-size:13px;margin:4px 0 0;font-weight:600;line-height:1.35}.tech-card p{font-size:10px;color:var(--text-2);margin:0}.tech-card>div:last-child{display:flex;gap:6px;margin-top:auto;padding-top:8px}.tech-card .button{font-size:11px;padding:7px 9px;min-height:32px}.tech-no-image{padding:12px;text-align:center;font-size:13px;color:var(--text-2)}.tech-modal-footer{position:sticky;bottom:0;z-index:2;display:flex;justify-content:space-between;gap:14px;padding:15px 28px;background:var(--surface);border-top:1px solid var(--line);font-size:11px;color:var(--text-2)}#tech-picked-count{font-weight:600;color:var(--text)}.tech-edit-fields{display:grid;gap:14px}#tech-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:20px}.tech-edit-image{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:24px;background:var(--surface);border-radius:9px;min-height:240px}.tech-edit-image img{width:100%;max-height:240px;object-fit:contain}.tech-edit-image small{font-size:10px;color:var(--text-2)}.tech-edit-image>span{font-size:14px;color:var(--text-2)}#tech-library-message{margin:14px 28px 0;padding:11px 14px;border-radius:7px;background:var(--surface);color:var(--ok-text);font-size:12px}#tech-library-message.error{background:var(--surface);color:var(--danger-text)}#sheet-tech-dialog :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:750px){#sheet-tech-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.tech-modal-header{padding:17px;align-items:flex-start}.tech-modal-header h2{font-size:19px}.tech-modal-header .button{font-size:11px;padding:8px}#tech-browse,#tech-edit{padding:18px}.tech-library-filters{grid-template-columns:1fr}.tech-library-actions .button{font-size:11px;padding:9px}.tech-modal-footer{padding:12px 18px;flex-direction:column;gap:5px}#tech-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#tech-edit-form{grid-template-columns:1fr}.tech-edit-image{min-height:140px}#tech-library-message{margin:12px 18px 0}}@media(max-width:440px){#tech-library-grid{grid-template-columns:1fr}}
/* Catalog selections and optional ficha metadata. */
.sheet-controls select{width:100%;min-width:0;border:1px solid var(--line-2);border-radius:7px;padding:10px 28px 10px 10px;background:var(--surface);color:var(--text);font-family:inherit;font-size:12px;line-height:1.5;font-weight:400;text-overflow:ellipsis}.sheet-choice-actions{display:flex;gap:7px;margin-top:6px;flex-wrap:wrap}.sheet-choice-actions .button{font-size:10px;padding:6px 8px;min-height:29px}.sheet-profile-note{padding:10px 12px;border-left:3px solid var(--accent);background:var(--surface);font-size:11px!important;line-height:1.6;color:var(--text-2)}.sheet-checks{border:1px solid var(--line);border-radius:7px;padding:12px;display:grid;gap:10px;margin:0;min-width:0}.sheet-checks legend{font-size:12px;font-weight:600;padding:0 5px}.sheet-controls .sheet-checks label{display:flex;flex-direction:row;align-items:center;gap:9px;font-weight:400;font-size:11px}.sheet-controls .sheet-checks input{appearance:auto;width:15px;height:15px;padding:0;flex:none;accent-color:var(--accent)}.sheet-group-tabs{display:flex;gap:5px;margin-bottom:12px}.sheet-group-tabs button{flex:1;min-width:0;border:1px solid var(--line-2);border-radius:6px;padding:9px 7px;font-family:inherit;font-size:11px;background:var(--surface);color:var(--text);overflow-wrap:anywhere}.sheet-group-tabs button[aria-pressed=true]{background:var(--primary-bg);border-color:var(--accent);color:var(--primary-fg)}.sheet-group-tabs small{display:block;margin-top:4px;font-size:10px}#sheet-size-groups[hidden]{display:none}#sheet-adjustable-preset{font-size:11px;padding:8px 10px}#sheet-option-dialog{width:min(580px,calc(100vw - 32px));max-width:none;border:1px solid var(--line-2);border-radius:15px;padding:25px;max-height:calc(100dvh - 40px);overflow:auto;color:var(--text);background:var(--surface);box-shadow:0 22px 65px #02082744}#sheet-option-dialog::backdrop{background:#02082780}#sheet-option-dialog [hidden]{display:none!important}#sheet-option-form{display:grid;gap:17px}#sheet-option-form header{display:flex;justify-content:space-between;align-items:center;gap:15px}#sheet-option-title{margin:0;font-family:inherit;font-size:23px}#sheet-option-form label{display:grid;gap:7px;font-size:12px;font-weight:600}#sheet-option-form input,#sheet-option-form textarea{box-sizing:border-box;width:100%;border:1px solid var(--line-2);border-radius:7px;background:var(--surface);color:var(--text);padding:10px;font-family:inherit;font-size:13px;font-weight:400}#option-spring-fields{display:grid;gap:17px}.option-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#sheet-option-form footer{display:flex;gap:10px;justify-content:flex-end;margin-top:6px}#sheet-option-form .dialog-caption{font-size:12px;line-height:1.6;color:var(--text-2);margin:0}#option-error{background:var(--surface);color:var(--danger-text);padding:10px;font-size:12px;border-radius:6px}#sheet-option-dialog :focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:450px){.option-numbers{grid-template-columns:1fr}#sheet-option-dialog{padding:18px}#sheet-option-title{font-size:20px}}

/* Interface v2 (15/10/2026): Grafite (padrão) e Porcelana, destaque laranja, Geist (OFL, embutida).
   Carregada por último no build. O 3D ocupa a tela inteira; composição e inspetor flutuam por cima.
   Os ids e data-atributos de app.js, studio-tools.js, professional-tools.js, showroom*.js e tutorial.js não mudam.
   Cores: tudo por token. O CSS legado foi convertido para estes tokens (scratchpad uiv2/tokenize.py);
   ficha técnica e desenho técnico são "papel" e ficam sempre claros (tokens reescopados em .paper-scope). */
@font-face{font-family:Geist;src:url(assets/fonts/geist-latin-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Geist Mono';src:url(assets/fonts/geist-mono-latin-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap}

/* ---------- tokens ---------- */
html[data-skin]{
 --font:Geist,"Segoe UI",system-ui,sans-serif;--mono:'Geist Mono',ui-monospace,Consolas,monospace;
 --r-panel:14px;--r-ctl:8px;--r-sm:6px;--h-ctl:32px;--bar:52px;--gap:12px;
 --ease:cubic-bezier(.2,.8,.2,1);--t:160ms;
 --g1:#8E9BFF;--g2:#5FD0B8;--g3:#F2B86B;
 /* aliases do CSS legado */
 --ink:var(--text);--canvas:var(--bg);--muted:var(--text-2);--secondary:var(--text-2);--blue:var(--accent);--selection:var(--surface-3);--focus:var(--accent);
 --flex-primary:var(--text);--flex-blue:var(--accent);--flex-navy:var(--text);--flex-midnight:var(--text);--flex-gray:var(--text-2);--flex-charcoal:var(--text);--flex-black:var(--text);
 --sr-bg:var(--bg);--sr-surface:var(--surface);--sr-surface-2:var(--surface-2);--sr-line:var(--line);--sr-line-2:var(--line-2);--sr-muted:var(--text-2);--sr-ink-2:var(--text-2);--sr-primary:var(--accent);--sr-soft:var(--accent-soft);
 --shadow-control:none;--shadow-panel:var(--shadow);
 font-family:var(--font);
}
html[data-skin=grafite]{
 color-scheme:dark;
 --bg:#0D0E10;--surface:#17181C;--surface-2:#1E1F24;--surface-3:#2A2B31;
 --line:rgb(255 255 255/.075);--line-2:rgb(255 255 255/.13);
 --text:#EDEDEF;--text-2:#A3A4AC;--text-3:#6E6F78;
 --glass:rgb(23 24 28/.82);
 --shadow:0 1px 0 rgb(255 255 255/.04) inset,0 0 0 1px rgb(255 255 255/.05),0 16px 40px -16px rgb(0 0 0/.7),0 2px 6px rgb(0 0 0/.35);
 --accent:#FF6B3D;--accent-soft:rgb(255 107 61/.15);--accent-ink:#FF8A63;
 --primary-bg:#FF6B3D;--primary-fg:#1B0C06;--sel:var(--surface-3);
 --warn-bg:rgb(242 184 107/.14);--warn-text:#F2B86B;--ok-bg:rgb(95 208 184/.14);--ok-text:#5FD0B8;--danger-bg:rgb(255 99 99/.14);--danger-text:#FF8A8A;
 --stage:radial-gradient(120% 90% at 50% 38%,#26272C 0%,#18191D 50%,#111215 100%);
}
html[data-skin=porcelana]{
 color-scheme:light;
 --bg:#F4F4F2;--surface:#FFFFFF;--surface-2:#F6F6F4;--surface-3:#ECECE9;
 --line:rgb(20 20 24/.085);--line-2:rgb(20 20 24/.15);
 --text:#17171A;--text-2:#5C5D65;--text-3:#8E8F96;
 --glass:rgb(255 255 255/.86);
 --shadow:0 0 0 1px rgb(20 20 24/.06),0 16px 40px -16px rgb(20 20 40/.24),0 2px 6px rgb(20 20 40/.06);
 --accent:#F0562A;--accent-soft:rgb(240 86 42/.11);--accent-ink:#C8441D;
 --primary-bg:#17171A;--primary-fg:#FFFFFF;--sel:#FFFFFF;
 --warn-bg:#FFF3DF;--warn-text:#8A5A12;--ok-bg:#E6F6F1;--ok-text:#1F6B57;--danger-bg:#FDECEC;--danger-text:#A33030;
 --stage:radial-gradient(120% 90% at 50% 38%,#FFFFFF 0%,#F1F0EE 52%,#E4E3E0 100%);
}
/* papel: ficha técnica, desenho técnico e editores de cadastro ficam claros em qualquer tema */
html[data-skin] :is(.drawing,#sheet-screen .sheet-page,#sheet-screen .sheet-paper,.sheet-preview,#sheet-tech-dialog .tech-sheet){
 color-scheme:light;--bg:#F4F4F2;--surface:#FFFFFF;--surface-2:#F6F6F4;--surface-3:#ECECE9;--line:rgb(20 20 24/.085);--line-2:rgb(20 20 24/.15);--text:#17171A;--text-2:#5C5D65;--text-3:#8E8F96;--primary-bg:#17171A;--primary-fg:#fff}

/* ---------- base ---------- */
html[data-skin],html[data-skin] body{background:var(--bg);color:var(--text)}
html[data-skin] body{font:13px/1.45 var(--font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"ss01"}
html[data-skin] :is(button,input,select,textarea){font-family:inherit}
html[data-skin] :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[data-skin] *{scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
html[data-skin] ::selection{background:var(--accent-soft)}
html[data-skin] .icon{width:16px;height:16px;stroke-width:1.6}
html[data-skin] .eyebrow{font-size:11px;letter-spacing:.02em;text-transform:none;color:var(--text-3);font-weight:500}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* botões */
html[data-skin] .button{min-height:0;height:var(--h-ctl);padding:0 12px;border-radius:var(--r-ctl);border:1px solid var(--line);background:var(--surface-2);color:var(--text);font-size:13px;font-weight:500;display:inline-flex;align-items:center;gap:7px;box-shadow:none;transition:background var(--t) var(--ease),color var(--t) var(--ease),border-color var(--t) var(--ease)}
html[data-skin] .button:hover{background:var(--surface-3);color:var(--text);border-color:var(--line-2)}
html[data-skin] :is(.header-actions,.history-controls) .button:not(.primary){background:transparent;border-color:transparent;color:var(--text-2)}
html[data-skin] :is(.header-actions,.history-controls) .button:not(.primary):hover{background:var(--surface-3);color:var(--text)}
html[data-skin] .button.primary{background:var(--primary-bg);color:var(--primary-fg);border-color:transparent;padding:0 14px;font-weight:600}
html[data-skin] .button.primary:hover{filter:brightness(1.08);background:var(--primary-bg);color:var(--primary-fg)}
html[data-skin] .button.primary .icon{fill:currentColor;stroke:none}
html[data-skin] .button.subtle{background:var(--surface-2);border-color:var(--line);color:var(--text)}
html[data-skin] .button.subtle:hover{border-color:var(--line-2);background:var(--surface-3)}
html[data-skin] .button.icon-only{width:var(--h-ctl);padding:0;justify-content:center}
html[data-skin] .button:disabled{opacity:.4;pointer-events:none}
html[data-skin] .icon-button{width:28px;height:28px;border-radius:var(--r-sm);border:0;background:transparent;color:var(--text-3);display:inline-grid;place-items:center;box-shadow:none}
html[data-skin] .icon-button:hover{background:var(--surface-3);color:var(--text)}

/* campos */
html[data-skin] :is(input[type=text],input[type=number],input[type=search],input:not([type]),select,textarea){background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-ctl);color:var(--text);font-size:13px;font-variant-numeric:tabular-nums;transition:border-color var(--t) var(--ease),box-shadow var(--t) var(--ease)}
html[data-skin] :is(input[type=text],input[type=number],input[type=search],input:not([type]),select,textarea):hover{border-color:var(--line-2)}
html[data-skin] :is(input[type=text],input[type=number],input[type=search],input:not([type]),select,textarea):focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
html[data-skin] select{appearance:none;-webkit-appearance:none;padding-right:30px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8F96' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
html[data-skin] select option{background:var(--surface);color:var(--text)}
html[data-skin] input[type=range]{accent-color:var(--accent);height:18px}
html[data-skin] input[type=checkbox],html[data-skin] input[type=radio]{accent-color:var(--accent)}
html[data-skin] input[type=color]{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-ctl)}
/* interruptor (.toggle > input + .switch) */
html[data-skin] .toggle{display:flex;align-items:center;gap:10px;color:var(--text-2);font-size:13px;cursor:pointer}
html[data-skin] .toggle input{position:absolute;opacity:0;pointer-events:none}
html[data-skin] .toggle .switch{width:30px;height:18px;flex:none;border-radius:999px;background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--line-2);position:relative;transition:background var(--t) var(--ease)}
html[data-skin] .toggle .switch::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--text-2);transition:transform var(--t) var(--ease),background var(--t) var(--ease)}
html[data-skin] .toggle input:checked+.switch{background:var(--accent);box-shadow:none}
html[data-skin] .toggle input:checked+.switch::after{transform:translateX(12px);background:#fff}
html[data-skin] .toggle input:focus-visible+.switch{outline:2px solid var(--accent);outline-offset:2px}

/* segmentados (engine-switch, abas, view-tabs) */
html[data-skin] :is(.engine-switch,.view-tabs,.tabs){display:inline-flex;gap:2px;padding:2px;border-radius:9px;background:var(--surface-2);border:1px solid var(--line);box-shadow:none}
html[data-skin] :is(.engine-switch,.view-tabs,.tabs) button{height:28px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--text-2);font-size:13px;font-weight:500;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;box-shadow:none;transition:background var(--t) var(--ease),color var(--t) var(--ease)}
html[data-skin] :is(.engine-switch,.view-tabs,.tabs) button:hover{color:var(--text);background:transparent}
html[data-skin] :is(.engine-switch,.view-tabs) button:is([aria-pressed=true],.active),html[data-skin] .tabs button[aria-selected=true]{background:var(--sel);color:var(--text);box-shadow:0 1px 2px rgb(0 0 0/.2),0 0 0 1px var(--line)}
html[data-skin] .view-tabs button .icon{display:none}
html[data-skin] .segmented{display:inline-flex;gap:2px;padding:2px;border-radius:9px;background:var(--surface-2);border:1px solid var(--line)}
html[data-skin] .segmented button{height:28px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--text-2);font-size:13px;font-weight:500;box-shadow:none}
html[data-skin] .segmented button:hover{color:var(--text)}
html[data-skin] .segmented button.active{background:var(--sel);color:var(--text);box-shadow:0 1px 2px rgb(0 0 0/.2),0 0 0 1px var(--line)}

/* ---------- cabeçalho ---------- */
html[data-skin] .app-header{position:fixed;inset:0 0 auto 0;z-index:30;height:var(--bar);min-height:var(--bar);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:0 10px 0 12px;background:var(--glass);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border:0;border-bottom:1px solid var(--line);box-shadow:none}
.hd-left{display:flex;align-items:center;gap:8px;min-width:0}
html[data-skin] .brand{display:flex;align-items:center;gap:9px;color:var(--text);text-decoration:none;flex:none}
.brand-mark{width:26px;height:26px;border-radius:7px;display:grid;place-items:center;background:var(--text);color:var(--bg)}
.brand-mark svg{width:15px;height:15px}
.brand-name{font-weight:600;letter-spacing:-.015em;font-size:14px}
.crumb{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto;margin-left:2px}
.crumb-sep{color:var(--text-3)}
html[data-skin] .crumb-link{height:28px;padding:0 6px;border:0;border-radius:6px;background:transparent;color:var(--text-2);font-size:13px;font-weight:500;box-shadow:none}
html[data-skin] .crumb-link:hover{background:var(--surface-3);color:var(--text)}
html[data-skin] .crumb-link .icon{display:none}
html[data-skin] #project-name{height:28px;min-width:60px;width:auto;field-sizing:content;max-width:340px;padding:0 6px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);font:600 13px var(--font);letter-spacing:-.005em;box-shadow:none;text-overflow:ellipsis}
html[data-skin] #project-name:hover{background:var(--surface-3)}
html[data-skin] #project-name:focus{background:var(--surface-2);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
html[data-skin] .autosave-status{display:inline-flex;align-items:center;gap:6px;margin-left:4px;padding:0;border:0;background:none;font-size:12px;color:var(--text-3);white-space:nowrap;flex:none}
html[data-skin] .autosave-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#3DD68C;box-shadow:0 0 0 3px rgb(61 214 140/.15);flex:none}
html[data-skin] .sync-status{height:24px;padding:0 9px;border:0;border-radius:999px;background:var(--surface-3);color:var(--text-2);font-size:11.5px;font-weight:500;white-space:nowrap;box-shadow:none;flex:none}
html[data-skin] .sync-status:hover{color:var(--text);background:var(--surface-3)}
html[data-skin] .autosave-status.problem{color:var(--danger-text)}
html[data-skin] .autosave-status.problem::before{background:var(--danger-text);box-shadow:0 0 0 3px var(--danger-bg)}
html[data-skin] .engine-switch{justify-self:center;margin:0}
html[data-skin] .header-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0;flex-wrap:nowrap}
html[data-skin] .history-controls{display:flex;gap:2px}
.hd-sep{width:1px;height:20px;background:var(--line-2);margin:0 6px}
html[data-skin] #sheet-open{order:0}
html[data-skin] .more-menu{position:relative}
html[data-skin] .more-menu summary{list-style:none;cursor:pointer;width:var(--h-ctl);height:var(--h-ctl);padding:0;display:grid;place-items:center;border-radius:var(--r-ctl)}
html[data-skin] .more-menu summary::-webkit-details-marker{display:none}
html[data-skin] .more-menu .dots{font-weight:700;letter-spacing:1px;transform:translateY(-2px)}
html[data-skin] .menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:248px;display:flex;flex-direction:column;gap:1px;padding:6px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
html[data-skin] .menu-panel .button{width:100%;justify-content:flex-start;height:32px;background:transparent;border:0;color:var(--text)}
html[data-skin] .menu-panel .button:hover{background:var(--surface-3)}
html[data-skin] .menu-panel .button .icon{color:var(--text-3)}
html[data-skin] .menu-panel .action-group{display:flex;flex-direction:column;gap:1px;padding:4px 0;margin:4px 0;border-block:1px solid var(--line)}

/* ---------- área de trabalho: 3D em tela cheia, painéis flutuantes ---------- */
html[data-skin] .workspace{position:fixed;inset:var(--bar) 0 0 0;display:block;height:auto;min-height:0;padding:0;background:none}
html[data-skin] .stage{position:absolute;inset:0;padding:0;display:block;min-width:0;min-height:0;overflow:hidden;background:var(--stage)}
html[data-skin] .stage .viewport-shell{position:absolute;inset:0;border:0;border-radius:0;background:transparent;overflow:hidden;box-shadow:none}
html[data-skin] .viewport-label,html[data-skin] .scene-signature{display:none}
html[data-skin] :is(.sidebar,.inspector-pane){position:absolute;top:var(--gap);bottom:var(--gap);z-index:10;display:flex;flex-direction:column;min-height:0;border:0;border-radius:var(--r-panel);background:var(--glass);backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);box-shadow:var(--shadow);overflow:hidden}
html[data-skin] .sidebar{left:var(--gap);width:292px;padding:0}
html[data-skin] .inspector-pane{right:var(--gap);width:396px;display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}

/* ---------- palco ---------- */
html[data-skin] .stage-hd{position:absolute;top:16px;left:50%;transform:translateX(calc(-50% - 52px));z-index:4;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;max-width:calc(100% - 760px)}
.spec-plate{display:flex;align-items:center;gap:10px;height:34px;padding:0 6px 0 14px;border-radius:999px;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:var(--shadow);white-space:nowrap;max-width:100%;pointer-events:auto}
.spec-plate b{font-weight:600;overflow:hidden;text-overflow:ellipsis;min-width:0}
#spec-dims{color:var(--text-2);font-size:12.5px;font-variant-numeric:tabular-nums}
.spec-chip{height:22px;padding:0 9px;border-radius:999px;display:inline-flex;align-items:center;font-size:11.5px;font-weight:500;background:var(--surface-3);color:var(--text-2)}
.spec-plate:not(:has(.spec-chip:not([hidden]))){padding-right:14px}
html[data-skin] .project-note{font-size:11.5px;color:var(--text-3);text-shadow:none}
html[data-skin] .material-info{position:absolute;top:64px;left:calc(var(--gap) * 2 + 292px);z-index:4;max-width:380px;margin:0;padding:10px 12px;border-radius:10px;background:var(--glass);backdrop-filter:blur(14px);border:0;box-shadow:var(--shadow);color:var(--text-2)}
html[data-skin] .material-info strong{color:var(--text)}
/* dock */
html[data-skin] .dock{position:absolute;left:calc(50% - 52px);bottom:18px;transform:translateX(-50%);z-index:12;display:flex;align-items:center;gap:6px;padding:5px;border-radius:12px;background:var(--glass);backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);box-shadow:var(--shadow);max-width:calc(100% - 760px);white-space:nowrap}
html[data-skin] .dock .view-tabs{background:transparent;border:0;padding:0;flex-wrap:nowrap}
html[data-skin] .dock .view-tabs+.view-tabs{padding-left:6px;border-left:1px solid var(--line-2);border-radius:0}
html[data-skin] .dock .view-tabs button{height:30px}
html[data-skin] .dock .show-tabs[hidden]{display:none}
/* câmera: coluna fina na borda direita do palco */
html[data-skin] .camera-tools{position:absolute;right:calc(var(--gap) * 2 + 396px);top:50%;bottom:auto;transform:translateY(-50%);z-index:12;display:flex;flex-direction:column;gap:1px;padding:4px;max-width:none;border:0;border-radius:12px;background:var(--glass);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:var(--shadow)}
html[data-skin] .camera-tools button{width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--text-2);display:grid;place-items:center;box-shadow:none}
html[data-skin] .camera-tools button:hover{background:var(--surface-3);color:var(--text)}
html[data-skin] .camera-tools button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
html[data-skin] .camera-tools>span{display:block;height:1px;margin:3px 5px;background:var(--line-2)}
html[data-skin] .preview-bottom{position:absolute;left:calc(50% - 52px);bottom:70px;transform:translateX(-50%);z-index:3;padding:0;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11.5px;color:var(--text-3);white-space:nowrap;pointer-events:none}
html[data-skin] .preview-bottom .icon{display:none}
html[data-skin] .preview-bottom #cutaway-note{font-size:10.5px;letter-spacing:.08em;color:var(--text-2)}
/* cotas e rótulos 3D */
html[data-skin] .cotas{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
html[data-skin] .cotas[hidden]{display:none}
html[data-skin] .cotas line{stroke:var(--accent);stroke-width:1.4}
html[data-skin] .cotas rect{fill:var(--surface);stroke:var(--line-2)}
html[data-skin] .cotas text{font:600 12px var(--font);fill:var(--text);font-variant-numeric:tabular-nums}
html[data-skin] .three-label>span{font:600 10.5px var(--font);min-width:22px;height:22px;border-radius:999px;color:var(--text);background:var(--surface);border:0;box-shadow:var(--shadow)}
html[data-skin] .three-label.selected>span{background:var(--accent);color:#fff}
html[data-skin] .three-label strong{font-size:11px;font-weight:500;background:var(--glass);color:var(--text);border-radius:6px;box-shadow:var(--shadow)}
html[data-skin] .three-label-leaders path{stroke:var(--text-3)}
html[data-skin] .three-group-button{background:var(--surface);color:var(--text);border:0;border-radius:999px;box-shadow:var(--shadow);font-weight:600}
html[data-skin] .three-group-button:hover{background:var(--accent);color:#fff}
html[data-skin] .three-group-mark path{stroke:var(--text-3)}
html[data-skin] .scene-empty{position:absolute;inset:0;z-index:2;display:grid;place-content:center;justify-items:center;text-align:center;gap:10px;color:var(--text-2);background:none}
html[data-skin] .scene-empty[hidden]{display:none}
html[data-skin] .scene-empty h2{font-size:22px;font-weight:600;letter-spacing:-.02em;color:var(--text)}
html[data-skin] .scene-empty>span .icon{width:28px;height:28px;color:var(--text-3)}
/* desenho técnico: folha clara centrada no palco */
html[data-skin] .drawing{position:absolute;inset:16px calc(var(--gap) * 2 + 396px) 16px calc(var(--gap) * 2 + 292px);border-radius:12px;background:#fff;box-shadow:var(--shadow);overflow:auto}

/* ---------- composição (esquerda) ---------- */
html[data-skin] .sidebar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:14px 12px 10px 16px;margin:0;border:0}
html[data-skin] .sidebar-heading .eyebrow{display:none}
html[data-skin] .sidebar-heading h1{font-size:15px;font-weight:600;letter-spacing:-.015em;color:var(--text);display:flex;align-items:center;gap:8px;margin:0}
html[data-skin] .sidebar-heading .count{font-size:11.5px;font-weight:500;color:var(--text-2);background:var(--surface-3);border:0;border-radius:999px;padding:1px 8px;min-width:0;height:auto}
html[data-skin] .sidebar .tabs{margin:0 12px 8px;display:flex}
html[data-skin] .sidebar .tabs button{flex:1;justify-content:center}
html[data-skin] .sidebar .panel{flex:1;min-height:0;max-height:none;overflow:auto;padding:0 8px 10px;margin:0;border:0;background:none}
html[data-skin] .list-caption{display:none}
html[data-skin] .layer-list{display:flex;flex-direction:column;gap:6px;padding:0}
html[data-skin] .layer-section{border:0;border-radius:0;background:none;padding:0;margin:0;box-shadow:none}
html[data-skin] .layer-section.drag-over{background:var(--accent-soft);border-radius:10px}
html[data-skin] .layer-section-heading{display:flex;align-items:center;gap:4px;padding:0;margin:0;border:0;background:none}
html[data-skin] .layer-section-heading>button:first-child{flex:1;min-width:0;display:flex;align-items:center;gap:9px;height:34px;padding:0 8px;border:0;border-radius:var(--r-ctl);background:transparent;color:var(--text);text-align:left;box-shadow:none}
html[data-skin] .layer-section-heading>button:first-child:hover{background:var(--surface-3)}
html[data-skin] .layer-section-heading .group-number{width:18px;height:18px;min-width:0;border-radius:5px;display:grid;place-items:center;font-size:10.5px;font-weight:600;background:var(--gc,var(--g1));color:#111;border:0;box-shadow:none}
html[data-skin] .layer-section:nth-child(3n+2),html[data-skin] .composition-summary>button:nth-child(3n+2){--gc:var(--g2)}
html[data-skin] .layer-section:nth-child(3n),html[data-skin] .composition-summary>button:nth-child(3n){--gc:var(--g3)}
html[data-skin] .layer-section-heading>button:first-child>span{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex:1;min-width:0;font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden}
html[data-skin] .layer-section-heading small{font-size:11.5px;font-weight:500;color:var(--text-3);margin:0;overflow:hidden;text-overflow:ellipsis}
html[data-skin] .layer-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto auto;align-items:center;gap:6px;min-height:34px;height:34px;padding:0 4px 0 6px;margin:0 0 0 14px;border:0;border-radius:var(--r-ctl);background:transparent;box-shadow:none;position:relative;color:var(--text-2)}
html[data-skin] .layer-row::before{content:"";position:absolute;left:-6px;top:0;bottom:0;width:1px;background:var(--line-2)}
html[data-skin] .layer-row:hover{background:var(--surface-3);color:var(--text)}
html[data-skin] .layer-row.selected{background:var(--surface-3);color:var(--text);box-shadow:none;border:0}
html[data-skin] .layer-row.selected::before{left:-7px;width:2px;background:var(--accent)}
html[data-skin] .layer-row.drag-over{box-shadow:inset 0 2px 0 var(--accent)}
html[data-skin] .layer-row .grip{font:500 10.5px var(--font);color:var(--text-3);font-variant-numeric:tabular-nums;cursor:grab;background:none;border:0;padding:0;width:auto;text-align:center}
html[data-skin] .layer-select{display:flex;align-items:center;gap:9px;min-width:0;height:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;box-shadow:none}
html[data-skin] .layer-select .material-swatch{width:20px;height:20px;min-width:20px;border-radius:5px;border:0;box-shadow:inset 0 0 0 1px rgb(0 0 0/.15)}
html[data-skin] .layer-copy{display:flex;flex-direction:column;min-width:0}
html[data-skin] .layer-row .layer-name{font-size:13px;font-weight:500;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
html[data-skin] .layer-row .layer-group{display:none}
html[data-skin] .row-thickness{font-size:12px;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap;padding-right:2px}
html[data-skin] .row-moves{display:flex;gap:0;opacity:0;transition:opacity var(--t) var(--ease)}
html[data-skin] .layer-row:is(:hover,:focus-within,.selected) .row-moves{opacity:1}
html[data-skin] .row-moves .icon-button{width:20px;height:24px}
html[data-skin] .row-moves .icon{width:13px;height:13px}
html[data-skin] .empty-group{font-size:12px;color:var(--text-3);padding:6px 10px 6px 22px;margin:0}
html[data-skin] .sidebar :is(.add-layer,.add-group){width:calc(100% - 8px);margin:8px 4px 0;justify-content:center;border:1px dashed var(--line-2);background:transparent;color:var(--text-2)}
html[data-skin] .sidebar :is(.add-layer,.add-group):hover{border-color:var(--text-3);color:var(--text);background:transparent}
html[data-skin] .sidebar-footer{margin-top:auto;display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:12px 16px;border:0;border-top:1px solid var(--line);background:none}
html[data-skin] .sidebar-footer .eyebrow{font-size:12px;color:var(--text-2)}
html[data-skin] .sidebar-footer .total{font-size:22px;font-weight:600;letter-spacing:-.03em;color:var(--text);font-variant-numeric:tabular-nums;line-height:1.1}
html[data-skin] .sidebar-footer .total small{font-size:12px;font-weight:500;color:var(--text-2)}
html[data-skin] .footer-detail{display:flex;flex-direction:column;align-items:flex-end;font-size:11.5px;color:var(--text-3);text-align:right}
html[data-skin] .footer-detail span:last-child{display:none}
/* biblioteca de materiais e grupos */
html[data-skin] .material-group-picker{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--text-2);margin:2px 4px 8px}
html[data-skin] .material-group-picker select{height:var(--h-ctl);padding:0 10px}
html[data-skin] :is(.library-intro,.groups-intro){font-size:12px;color:var(--text-3);margin:0 4px 10px}
html[data-skin] .material-card{border:1px solid var(--line);border-radius:10px;background:var(--surface-2);box-shadow:none;color:var(--text)}
html[data-skin] .material-card:hover{border-color:var(--line-2);background:var(--surface-3)}
html[data-skin] .group-editor{border:1px solid var(--line);border-radius:10px;background:var(--surface-2);box-shadow:none}
/* editor da camada (no lugar da lista) */
html[data-skin] .inspector{padding:4px 12px 12px;background:none;border:0}
html[data-skin] .inspector :is(h2,h3){color:var(--text);letter-spacing:-.01em}
html[data-skin] .inspector label{color:var(--text-2);font-size:12px}

/* ---------- inspetor (direita) ---------- */
html[data-skin] .insp-tabs{grid-row:1/3;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 0;border:0;border-right:1px solid var(--line);overflow:auto}
html[data-skin] .insp-tabs button{width:62px;height:52px;flex:none;display:grid;place-items:center;align-content:center;gap:4px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--text-3);font-size:10.5px;font-weight:500;line-height:1;box-shadow:none;transition:background var(--t) var(--ease),color var(--t) var(--ease)}
html[data-skin] .insp-tabs button .icon{width:18px;height:18px;margin:0}
html[data-skin] .insp-tabs button:hover{color:var(--text);background:var(--surface-3)}
html[data-skin] .insp-tabs button[aria-selected=true]{color:var(--text);background:var(--surface-3);border:0}
html[data-skin] .insp-tabs button[aria-selected=true] .icon{color:var(--accent)}
html[data-skin] .insp-tabs button[data-insp=marca]{margin-top:auto}
html[data-skin] .insp-body{grid-column:2;min-height:0;overflow:auto;padding:0}
html[data-skin] .insp-panel[hidden]{display:none}
html[data-skin] .insp-panel{padding:4px 0 8px}
html[data-skin] .insp-panel>h3{margin:0;padding:14px 16px 8px;font-size:12px;font-weight:600;color:var(--text);letter-spacing:0;text-transform:none}
html[data-skin] .insp-panel>h3~h3{border-top:1px solid var(--line);margin-top:10px}
html[data-skin] .insp-panel>:is(.cat-cards,.view-controls,.dialog-caption,.stage-footnote){margin-left:16px;margin-right:16px}
/* formulário do produto hospedado */
html[data-skin] #product-form{display:block;margin:0}
html[data-skin] #product-form .stack-form{display:flex;flex-direction:column;gap:10px;margin:0;padding:14px 16px 16px;border-bottom:1px solid var(--line)}
html[data-skin] #product-form .stack-form:last-child{border-bottom:0}
html[data-skin] #product-form .stack-form h3{margin:0 0 2px;display:flex;align-items:baseline;justify-content:space-between;font-size:12px;font-weight:600;color:var(--text);letter-spacing:0;text-transform:none}
html[data-skin] #product-form .stack-form h3 em{font-style:normal;font-weight:500;font-size:11.5px;color:var(--text-3);margin:0;letter-spacing:0;text-transform:none}
html[data-skin] #product-form .stack-form label:not(.toggle,.check-row){display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--text-2);line-height:1.35}
html[data-skin] #product-form .stack-form .check-row{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12.5px;color:var(--text-2);margin:0;cursor:pointer}
html[data-skin] #product-form .form-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html[data-skin] #product-form :is(select,input[type=number],input[type=text],input:not([type])){width:100%;max-width:100%;height:var(--h-ctl);margin:0;padding:0 10px;font-size:13px}
html[data-skin] #product-form input[type=color]{width:100%;height:var(--h-ctl);margin:0;padding:3px}
html[data-skin] #product-form .stack-form :is(.dialog-caption,small,.design-note){font-size:11.5px;color:var(--text-3);line-height:1.45;margin:0}
/* ajuda longa: 2 linhas; abre ao passar o mouse ou focar */
html[data-skin] :is(#product-form .stack-form,.insp-panel)>:is(p.dialog-caption,p.design-note){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:help}
html[data-skin] :is(#product-form .stack-form,.insp-panel)>:is(p.dialog-caption,p.design-note):is(:hover,:focus){-webkit-line-clamp:unset;display:block}
html[data-skin] #product-form :is(.design-note,.dialog-caption):empty{display:none}
html[data-skin] #product-form .material-preview img{width:56px;height:40px;object-fit:cover;border-radius:6px}
html[data-skin] #product-form .button.subtle{width:100%;justify-content:center}
html[data-skin] #product-message{margin:8px 16px 0;font-size:12px;color:var(--danger-text)}
html[data-skin] #product-message:empty{display:none}
html[data-skin] option[data-missing]{color:var(--text-3)}
/* resumo do colchão (grupos) */
html[data-skin] .composition-summary{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:14px 16px 2px;max-height:none}
html[data-skin] .composition-summary>button{height:28px;padding:0 10px 0 4px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--text-2);font-size:12px;display:inline-flex;align-items:center;gap:6px;box-shadow:none}
html[data-skin] .composition-summary>button:hover{border-color:var(--line-2);color:var(--text)}
html[data-skin] .composition-summary .group-number{width:20px;height:20px;border-radius:999px;display:grid;place-items:center;font-size:10.5px;font-weight:600;background:var(--gc,var(--g1));color:#111}
html[data-skin] .composition-summary>button>span{display:inline-flex;gap:5px;align-items:baseline}
html[data-skin] .composition-summary>button b,html[data-skin] .composition-summary>button strong{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
html[data-skin] .size-picker{display:flex;align-items:center;gap:8px;height:var(--h-ctl);padding:0 0 0 10px;border-radius:var(--r-ctl);border:1px solid var(--line);background:var(--surface-2);box-shadow:none}
html[data-skin] .size-picker>span{font-size:12px;color:var(--text-3);letter-spacing:0;text-transform:none;font-weight:500}
html[data-skin] .size-picker select{border:0;background-color:transparent;height:30px;box-shadow:none}
/* catálogo: cartões, alturas, revestimentos */
html[data-skin] .catalog-block h3 em{font-style:normal;font-weight:500;color:var(--text-3)}
html[data-skin] .cat-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html[data-skin] .cat-card{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);text-align:left;cursor:pointer;color:var(--text);overflow:hidden;transition:border-color var(--t) var(--ease),box-shadow var(--t) var(--ease)}
html[data-skin] .cat-card:hover{border-color:var(--line-2)}
html[data-skin] .cat-card[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
html[data-skin] .cat-text{display:block;padding:8px 10px 10px;min-width:0}
html[data-skin] .cat-card b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500;font-size:12.5px;line-height:1.3;min-height:2.6em}
html[data-skin] .cat-card small{display:block;font-size:11px;color:var(--text-3);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-skin] .cat-card small u{text-decoration:none;color:var(--warn-text)}
html[data-skin] .cat-thumb{display:block;width:auto;height:56px;border-radius:0;position:relative;overflow:hidden;background:linear-gradient(180deg,var(--surface-3),var(--surface-2))}
html[data-skin] .cat-thumb::before{content:"";position:absolute;left:18%;right:18%;top:16px;height:22px;border-radius:3px;background:linear-gradient(180deg,#2f2e33 0 26%,#a9998f 26%)}
html[data-skin] .cat-thumb::after{content:"";position:absolute;left:24%;right:24%;top:38px;height:9px;border-left:4px solid #8b6542;border-right:4px solid #8b6542}
html[data-skin] .cat-thumb[data-thumb=bau]::before{top:12px;height:28px;background:linear-gradient(180deg,#2f2e33 0 20%,#8a7c76 20%)}
html[data-skin] .cat-thumb[data-thumb=bau]::after{top:40px;height:6px;border-color:#5a3d33}
html[data-skin] .cat-thumb[data-thumb=design]::before{top:16px;height:14px;background:linear-gradient(180deg,#2f2e33 0 40%,#4a4c50 40%)}
html[data-skin] .cat-thumb[data-thumb=design]::after{top:30px;height:16px;border-color:#c4c9ce}
html[data-skin] .cat-thumb:is([data-thumb=hotel-rodizio],[data-thumb=sheraton])::after{border-color:#5a3d33}
html[data-skin] .cat-thumb[data-thumb=neo-oriental]::before{background:linear-gradient(180deg,#2f2e33 0 26%,#d8c9ad 26%)}
html[data-skin] .cat-foot::before{display:none}
html[data-skin] .cat-foot::after{left:calc(50% - 7px);right:calc(50% - 7px);top:10px;bottom:10px;height:auto;border:0;border-radius:3px 3px 2px 2px;background:linear-gradient(90deg,#7a5a3a,#a17d5a 55%,#7a5a3a)}
html[data-skin] .cat-foot:is([data-foot=palito],[data-foot=sheraton])::after{clip-path:polygon(0 0,100% 0,72% 100%,28% 100%)}
html[data-skin] .cat-foot[data-foot=bau]::after{top:24px;background:linear-gradient(90deg,#3a2a22,#5a3d33 55%,#3a2a22)}
html[data-skin] .cat-foot[data-foot=cromado]::after{left:calc(50% - 10px);right:calc(50% - 10px);background:linear-gradient(90deg,#9aa0a6,#e6e9ec 50%,#9aa0a6);clip-path:polygon(35% 0,65% 0,100% 100%,85% 100%)}
html[data-skin] .cat-foot[data-foot=eucalipto]::after{background:linear-gradient(90deg,#6b4a35,#8b6542 55%,#6b4a35)}
html[data-skin] .cat-foot:is([data-foot=hotel],[data-foot=pcd])::after{background:linear-gradient(90deg,#4b3a30,#6b4a35 55%,#4b3a30)}
html[data-skin] .cat-foot[data-foot=pcd]::after{top:22px}
html[data-skin] .cat-foot[data-foot=city]::after{background:linear-gradient(90deg,#3f2f27,#5a3d33 55%,#3f2f27)}
html[data-skin] .cat-row{display:flex;flex-wrap:wrap;gap:6px}
html[data-skin] .cat-row .chip{height:28px;min-width:52px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--text-2);cursor:pointer}
html[data-skin] .cat-row .chip:hover{border-color:var(--line-2);color:var(--text)}
html[data-skin] .cat-row .chip[aria-pressed=true]{border-color:var(--text);background:var(--sel);color:var(--text)}
html[data-skin] .cat-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:12px 10px}
html[data-skin] .cat-swatches .sw{display:block;border:0;background:none;padding:0;text-align:center;cursor:pointer;color:var(--text-2);min-width:0}
html[data-skin] .sw-dot{display:block;width:100%;aspect-ratio:1;border-radius:9px;box-shadow:inset 0 0 0 1px rgb(0 0 0/.15);outline:2px solid transparent;outline-offset:2px;transition:outline-color var(--t) var(--ease)}
html[data-skin] .cat-swatches .sw:hover .sw-dot{outline-color:var(--line-2)}
html[data-skin] .cat-swatches .sw[aria-pressed=true] .sw-dot{outline-color:var(--accent)}
html[data-skin] .cat-swatches span{display:block;font-size:10.5px;line-height:1.25;margin-top:5px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
html[data-skin] .cat-swatches em{font-style:normal;color:var(--warn-text);font-size:10px}
/* cena */
html[data-skin] .scene-cards{grid-template-columns:1fr 1fr}
html[data-skin] .scene-thumb::before,html[data-skin] .scene-thumb::after{display:none}
html[data-skin] .scene-thumb{background:radial-gradient(circle at 50% 35%,#fff,#ebe7e0)}
html[data-skin] .scene-thumb[data-thumb=grafite]{background:radial-gradient(circle at 50% 35%,#4a4b50,#141518)}
html[data-skin] .scene-thumb[data-thumb=neutro]{background:radial-gradient(circle at 50% 35%,#f4f5f7,#aeaeb2)}
html[data-skin] .scene-thumb[data-thumb=quarto]{background:linear-gradient(#f1e9dc 0 62%,#d8b98f 62%)}
html[data-skin] .insp-panel .view-controls{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:12px;font-size:13px;color:var(--text-2);background:none;border:0;padding:0}
html[data-skin] .insp-panel .spacing-control{display:grid;grid-template-columns:110px 1fr 40px;gap:10px;align-items:center;min-height:30px;color:var(--text-2);font-size:12.5px}
html[data-skin] .insp-panel .spacing-control output{text-align:right;color:var(--text);font-variant-numeric:tabular-nums;font-size:12.5px}
html[data-skin] .insp-panel .spacing-control .icon{display:none}
html[data-skin] .scene-controls .button{align-self:flex-start}
html[data-skin] .insp-panel :is(.dialog-caption,.stage-footnote){font-size:11.5px;color:var(--text-3);line-height:1.5}
html[data-skin] .stage-footnote{display:flex;flex-direction:column;gap:6px;margin-top:12px}
html[data-skin] .stage-footnote .icon{display:none}
/* rodapé: altura do conjunto */
html[data-skin] .insp-summary{grid-column:2;border-top:1px solid var(--line);padding:12px 16px 14px;background:color-mix(in oklab,var(--surface-2) 60%,transparent)}
html[data-skin] .sum-head{display:flex;justify-content:space-between;align-items:baseline}
html[data-skin] .sum-head .eyebrow{font-size:12px;color:var(--text-2);font-weight:500;letter-spacing:0;text-transform:none}
html[data-skin] .sum-total{font-size:26px;font-weight:600;letter-spacing:-.035em;color:var(--text);font-variant-numeric:tabular-nums;line-height:1.1}
html[data-skin] .sum-total small{font-size:12px;color:var(--text-2);font-weight:500;margin-left:2px}
html[data-skin] .sum-stack{display:flex;gap:2px;height:6px;border-radius:3px;overflow:hidden;margin:10px 0 8px;background:transparent}
html[data-skin] .sum-stack i{display:block;flex-grow:0;border-radius:1px;transition:flex-grow .35s var(--ease)}
html[data-skin] [data-k=m]{background:var(--g1)}html[data-skin] [data-k=b]{background:var(--g2)}html[data-skin] [data-k=f]{background:var(--g3)}
html[data-skin] .sum-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11.5px;color:var(--text-2)}
html[data-skin] .sum-legend i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:5px;vertical-align:0}
html[data-skin] .sum-legend b{font-weight:500;color:var(--text);font-variant-numeric:tabular-nums}
html[data-skin] .sum-code{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;height:30px;padding:0 10px;border-radius:var(--r-ctl);background:var(--surface-2);border:1px solid var(--line);font:500 12px var(--mono);color:var(--text)}
html[data-skin] .sum-code small{font:11px var(--font);color:var(--text-3)}

/* ---------- diálogos, avisos ---------- */
html[data-skin] dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
html[data-skin] dialog::backdrop{background:rgb(8 9 11/.55);backdrop-filter:blur(3px)}
html[data-skin] dialog :is(h2,h3){color:var(--text);letter-spacing:-.015em}
html[data-skin] dialog p{color:var(--text-2)}
html[data-skin] .dialog-heading{border-color:var(--line)}
html[data-skin] .export-option{border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);box-shadow:none}
html[data-skin] .export-option:hover{border-color:var(--accent);background:var(--surface-2)}
html[data-skin] .export-option>span:last-child{color:var(--text-3)}
html[data-skin] .export-3d{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
html[data-skin] .export-3d[hidden]{display:none}
.export-3d-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.export-3d-head h3{font-size:14px;font-weight:600;margin:0}
.export-3d-head span{font-size:12px;color:var(--text-3)}
html[data-skin] .export-options-3d{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
html[data-skin] .export-options-3d .export-option{min-height:0}
html[data-skin] .export-3d .toggle{margin:0}
html[data-skin] .export-3d .toggle[hidden]{display:none}
html[data-skin] .format-icon{background:var(--surface-3);color:var(--text);border-radius:8px}
html[data-skin] .toast{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
html[data-skin] .reference-links a{color:var(--accent-ink)}
html[data-skin] .tutorial-card,html[data-skin] .tour-card{background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow)}

/* ---------- apresentação ---------- */
html[data-skin] .presenting .app-header{display:none}
html[data-skin] .presenting .workspace{inset:0;width:auto}
html[data-skin] .presenting :is(.sidebar,.inspector-pane,.dock,.camera-tools,.preview-bottom,.stage-hd,.material-info){display:none}
html[data-skin] .presenting .stage>.viewport-shell{display:block}

/* ---------- telas menores ---------- */
@media (max-width:1280px){
 html[data-skin] .sidebar{width:260px}
 html[data-skin] .inspector-pane{width:372px}
 html[data-skin] .camera-tools{right:calc(var(--gap) * 2 + 372px)}
 html[data-skin] :is(.stage-hd,.dock,.preview-bottom){left:calc(50% - 56px)}
 html[data-skin] :is(.stage-hd,.dock){max-width:calc(100% - 700px)}
 html[data-skin] .drawing{inset:16px calc(var(--gap) * 2 + 372px) 16px calc(var(--gap) * 2 + 260px)}
 html[data-skin] .autosave-status{display:none}
}
@media (max-width:1100px){
 html[data-skin] .sidebar{display:none}
 html[data-skin] :is(.stage-hd,.dock,.preview-bottom){left:calc(50% - 192px)}
 html[data-skin] :is(.stage-hd,.dock){max-width:calc(100% - 420px)}
 html[data-skin] .dock{flex-wrap:wrap;justify-content:center;white-space:normal}
 html[data-skin] .drawing{inset:16px calc(var(--gap) * 2 + 372px) 16px 16px}
}
@media (max-width:820px){
 html[data-skin] .app-header{grid-template-columns:minmax(0,1fr) auto;padding:0 8px}
 html[data-skin] :is(.engine-switch,.brand-name,.crumb-link,.crumb-sep,.autosave-status,.sync-status,.history-controls,.hd-sep,#export,#sheet-open){display:none}
 html[data-skin] .hd-left{min-width:0;overflow:hidden}
 html[data-skin] #start-presentation{width:var(--h-ctl);padding:0;justify-content:center;font-size:0;gap:0}
 html[data-skin] #project-name{max-width:52vw}
 html[data-skin] body{overflow:auto}
 html[data-skin] .workspace{position:static;display:flex;flex-direction:column;margin-top:var(--bar)}
 html[data-skin] .stage{position:relative;inset:auto;height:56vh;min-height:360px;order:0}
 html[data-skin] .stage-hd{left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);top:12px}
 html[data-skin] .project-note,html[data-skin] .camera-tools,html[data-skin] .preview-bottom{display:none}
 html[data-skin] .dock{position:absolute;left:12px;right:12px;bottom:12px;transform:none;max-width:none;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap;justify-content:flex-start}
 html[data-skin] .inspector-pane{position:relative;inset:auto;width:auto;margin:12px;order:1;display:flex;flex-direction:column}
 html[data-skin] .insp-tabs{flex-direction:row;border-right:0;border-bottom:1px solid var(--line);padding:6px;overflow-x:auto;scrollbar-width:none}
 html[data-skin] .insp-tabs button{width:auto;min-width:68px;padding:0 8px}
 html[data-skin] .insp-tabs button[data-insp=marca]{margin-top:0}
 html[data-skin] .insp-body{overflow:visible}
 html[data-skin] .sidebar{display:flex;position:relative;inset:auto;width:auto;margin:0 12px 16px;order:2}
 html[data-skin] .sidebar .panel{max-height:440px}
 html[data-skin] .drawing{inset:8px}
}
@media (prefers-reduced-motion:reduce){html[data-skin] *{transition:none!important;animation:none!important}}
/* Editor flow: one navigation, one editing panel, one uninterrupted preview. */
html[data-skin]{--editor-nav:64px;--editor-width:360px}
html[data-skin] .editor-navigation-wrap{position:fixed;top:var(--bar);left:0;right:0;height:var(--editor-nav);z-index:25;display:flex;align-items:center;gap:20px;padding:0 24px;background:var(--surface);border-bottom:1px solid var(--line-2)}
.editor-nav-label{font-size:10px;font-weight:650;letter-spacing:.12em;color:var(--text-2);flex:none}
html[data-skin] #editor-navigation{display:flex;align-items:center;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:thin}
html[data-skin] #editor-navigation button{position:relative;display:flex;align-items:center;gap:9px;flex:none;min-height:42px;padding:0 18px;border:1px solid transparent;border-radius:9px;background:none;color:var(--text-2);font:550 14px var(--font);white-space:nowrap;box-shadow:none}
html[data-skin] #editor-navigation button .icon{width:19px;height:19px}
html[data-skin] #editor-navigation button:hover{background:var(--surface-3);color:var(--text)}
html[data-skin] #editor-navigation button[aria-selected=true]{color:var(--accent-ink);background:var(--accent-soft);border-color:var(--accent);font-weight:650}
html[data-skin] #editor-navigation button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
html[data-skin] .workspace{inset:calc(var(--bar) + var(--editor-nav)) 0 0}
html[data-skin] .workspace .stage{left:var(--editor-width)}
html[data-skin] .workspace :is(.sidebar,.inspector-pane){left:0;right:auto;top:0;bottom:0;width:var(--editor-width);border-radius:0;border-right:1px solid var(--line-2);box-shadow:none;background:var(--surface);backdrop-filter:none;display:flex;flex-direction:column}
html[data-skin] .workspace :is(.sidebar,.inspector-pane)[hidden]{display:none}
html[data-skin] .inspector-pane .insp-tabs{display:none}
html[data-skin] .editor-panel-heading{padding:24px 22px 18px;border-bottom:1px solid var(--line);flex:none}
html[data-skin] .editor-panel-heading .eyebrow,html[data-skin] .sidebar-heading .eyebrow{display:block;color:var(--text-2);font:600 10px var(--font);letter-spacing:.11em;margin-bottom:9px}
html[data-skin] .editor-panel-heading h2,html[data-skin] .sidebar-heading h1{font:650 23px var(--font);letter-spacing:-.035em;color:var(--text);margin:0}
html[data-skin] .editor-panel-description{font:400 13px/1.5 var(--font);color:var(--text-2);margin:7px 0 0}
html[data-skin] .sidebar-heading{padding:24px 20px 0;align-items:center}
html[data-skin] .sidebar-heading .new-composition{font-size:12px;padding:0 9px;gap:6px;min-height:34px}
html[data-skin] .layers-description{padding:0 20px;margin-top:7px}
html[data-skin] .layer-create-actions{display:flex;gap:8px;padding:20px 16px 16px;flex:none}
html[data-skin] .layer-create-actions .button{margin:0;min-height:40px;min-width:0;font-size:12px;padding:0 10px;gap:5px;border-radius:8px;flex:1;white-space:nowrap}
html[data-skin] .layer-create-actions .add-layer{flex:1.4;background:var(--primary-bg);color:var(--primary-fg);border:1px solid var(--primary-bg);font-weight:650}
html[data-skin] .layer-create-actions .add-group{background:var(--surface-2);border:1px solid var(--line-2);color:var(--text-2)}
html[data-skin] .sidebar .tabs{margin:0 16px 10px;padding:3px;background:var(--surface-2);border:1px solid var(--line);border-radius:9px;flex:none}
html[data-skin] .sidebar .tabs button{min-height:33px;font-size:12px;border-radius:6px}
html[data-skin] .sidebar .tabs button[aria-selected=true]{background:var(--surface-3);color:var(--text);font-weight:650}
html[data-skin] .sidebar .panel{padding:0 12px 12px}
html[data-skin] .sidebar .panel[hidden]{display:none}
html[data-skin] .layer-row{min-height:48px}
html[data-skin] .layer-name{font-size:13px;max-width:190px}
html[data-skin] .layer-section-heading{padding-top:12px;padding-bottom:10px}
html[data-skin] .layer-section-heading>button:first-child{font-size:12px;color:var(--text)}
html[data-skin] .layer-section-heading small{font-size:11px;color:var(--text-2)}
html[data-skin] .list-caption{display:flex;font-size:9px;padding:6px 4px;color:var(--text-2)}
html[data-skin] .sidebar-footer{padding:14px 20px;border-top:1px solid var(--line);background:var(--surface-2)}
html[data-skin] .inspector-pane .insp-body{flex:1;min-height:0;overflow:auto}
html[data-skin] #product-form .stack-form{padding:18px 20px;gap:12px}
html[data-skin] #product-form .stack-form h3{font-size:14px;line-height:1.4}
html[data-skin] #product-form :is(select,input[type=number],input[type=text],input:not([type])){height:37px}
html[data-skin] #product-form .stack-form :is(.dialog-caption,small,.design-note){color:var(--text-2);font-size:12px;line-height:1.5}
html[data-skin] .insp-panel>h3{font-size:14px;padding-top:20px}
html[data-skin] .stage .stage-hd{left:24px;right:70px;top:20px;transform:none;max-width:none;align-items:flex-start}
html[data-skin] .stage .spec-plate{max-width:100%}
html[data-skin] .stage .camera-tools{right:16px}
html[data-skin] .stage .dock{left:50%;right:auto;bottom:20px;max-width:calc(100% - 32px);transform:translateX(-50%);padding:7px;overflow-x:auto;justify-content:flex-start;scrollbar-width:thin}
html[data-skin] .stage .dock-label{font-size:11px;font-weight:600;color:var(--text-2);padding:0 8px}
html[data-skin] .stage .preview-bottom{left:50%;bottom:78px}
html[data-skin] .presenting .editor-navigation-wrap{display:none}
html[data-skin] .presenting .workspace .stage{left:0}
@media(max-width:1100px) and (min-width:821px){
 html[data-skin]{--editor-width:320px}
 html[data-skin] .editor-navigation-wrap{padding:0 12px;gap:12px}
 html[data-skin] #editor-navigation button{padding:0 12px;font-size:13px;gap:7px}
 html[data-skin] .stage .camera-tools{display:flex}
 html[data-skin] .stage .preview-bottom{display:none}
}
@media(max-width:820px){
 html[data-skin]{--editor-nav:58px;--editor-width:100%}
 html[data-skin] .editor-navigation-wrap{padding:0 8px;gap:0}
 html[data-skin] .editor-nav-label{display:none}
 html[data-skin] #editor-navigation{width:100%;padding:3px 0;gap:4px}
 html[data-skin] #editor-navigation button{min-height:42px;padding:0 12px;font-size:13px;gap:7px}
 html[data-skin] #editor-navigation button .icon{width:17px;height:17px}
 html[data-skin] .workspace{position:static;display:flex;flex-direction:column;margin-top:calc(var(--bar) + var(--editor-nav));inset:auto}
 html[data-skin] .workspace .stage{position:sticky;top:calc(var(--bar) + var(--editor-nav));left:auto;width:100%;height:34vh;min-height:245px;max-height:360px;order:0;z-index:14;border-bottom:1px solid var(--line-2)}
 html[data-skin] .stage .stage-hd{top:10px;left:12px;right:12px;max-width:calc(100% - 24px)}
 html[data-skin] .stage .spec-plate{font-size:10px}
 html[data-skin] .stage .camera-tools{display:none}
 html[data-skin] .stage .dock{bottom:10px;left:8px;right:8px;max-width:none;transform:none;padding:4px}
 html[data-skin] .stage .dock-label{display:none}
 html[data-skin] .stage .preview-bottom{display:none}
 html[data-skin] .workspace :is(.sidebar,.inspector-pane){position:relative;inset:auto;width:auto;margin:0;border:0;order:1;min-height:390px}
 html[data-skin] .sidebar-heading{padding-top:18px}
 html[data-skin] .editor-panel-heading{padding:18px 20px 14px}
 html[data-skin] .sidebar .panel{max-height:none;overflow:visible}
 html[data-skin] .inspector-pane .insp-body{overflow:visible}
 html[data-skin] .inspector{max-height:none;overflow:visible}
 html[data-skin] .layer-create-actions{padding-top:14px;padding-bottom:12px}
 html[data-skin] .layer-name{max-width:calc(100vw - 180px)}
}

html[data-skin] .presenting .workspace :is(.sidebar,.inspector-pane){display:none}
html[data-skin] .stage .drawing{inset:20px}
html[data-skin] .stage .material-info{left:24px;max-width:calc(100% - 90px)}
html[data-skin] .stage .dock{flex-wrap:nowrap;white-space:nowrap}
@media(max-width:820px){html[data-skin] .stage .drawing{inset:8px}html[data-skin] .stage .material-info{left:12px;max-width:calc(100% - 24px)}}
@media(max-width:820px){
 html[data-skin] .presenting .workspace{margin:0;position:relative;inset:auto;width:100%;height:45dvh;min-height:260px}
 html[data-skin] .presenting .workspace .stage{position:absolute;inset:0;height:100%;min-height:0;max-height:none;border:0}
}

@media(min-width:821px) and (max-width:1600px){
 html[data-skin]{--bar:92px}
 html[data-skin] .app-header{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:42px 42px;gap:0 12px;padding:4px 12px}
 html[data-skin] .app-header .hd-left{grid-column:1;grid-row:1}
 html[data-skin] .app-header .engine-switch{grid-column:2;grid-row:1}
 html[data-skin] .app-header .header-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end}
 html[data-skin] .app-header #project-name{max-width:250px}
}
@media(max-width:820px){
 html[data-skin] .presenting{overflow:auto}
 html[data-skin] .presenting .presentation-panel{position:relative;inset:auto;width:100%;height:auto;min-height:0;padding:16px 20px;border-left:0;border-top:1px solid var(--line)}
 html[data-skin] .presenting .presentation-copy{margin:0;padding:12px 0;overflow:visible}
 html[data-skin] .presenting .presentation-copy h1{font-size:24px;line-height:1.2;margin:10px 0 12px}
 html[data-skin] .presenting .presentation-copy>p{font-size:12px;line-height:1.6}
 html[data-skin] .presenting .presentation-metrics{margin:8px 0}
 html[data-skin] .presenting .presentation-navigation{margin-top:0;padding-top:12px}
}

/* Entrada global de criação e início vazio: navegar não adiciona peças. */
html[data-skin] .header-actions #new-project{border:1px solid var(--line);background:var(--surface-2);color:var(--text);flex-shrink:0}
.empty-create-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
html[data-skin] .scene-empty{padding:70px 20px 90px;pointer-events:none}
html[data-skin] .scene-empty button{pointer-events:auto}
html[data-skin] .scene-empty h2{max-width:360px}
@media(max-width:820px){html[data-skin] #project-name{max-width:100%;width:100%}html[data-skin] .scene-empty h2{font-size:20px}html[data-skin] .scene-empty p{font-size:12px}html[data-skin] .empty-create-actions .button{min-height:40px;padding:0 10px}}

@media(max-width:820px){html[data-skin] .header-actions #new-project{font-size:13px!important;width:auto;min-height:40px;padding:0 10px!important;gap:6px!important}}

/* O palco ocupa somente a área livre ao lado do texto na apresentação desktop. */
@media(min-width:821px){html[data-skin] .presenting .workspace{right:38vw;width:auto}html[data-skin] .presenting .stage .camera-tools{display:none}}
@media(min-width:821px) and (max-width:1150px){html[data-skin] .presenting .workspace{right:41vw}}

.finish-entry{display:grid;gap:10px;margin:16px 16px 24px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.finish-entry h3{margin:0;font-size:16px}.finish-entry>p{margin:0 0 4px;color:var(--muted);font-size:13px;line-height:1.5}
html[data-skin] .finish-part{display:flex;align-items:center;gap:12px;width:100%;padding:14px 12px;text-align:left;background:var(--surface-2);color:var(--text);border:1px solid var(--line);border-radius:10px;cursor:pointer}
.finish-part>span:nth-child(2){display:grid;gap:5px;flex:1}.finish-part strong{font-size:15px}.finish-part small{font-size:12px;color:var(--muted);line-height:1.4}
html[data-skin] .finish-part:hover,html[data-skin] .finish-part:focus-visible{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px}

/* Desktop journey: named destinations, visual choices and progressive properties. */
@media(min-width:821px){
 html[data-skin]{--editor-nav:82px}
 html[data-skin] .editor-navigation-wrap{gap:16px;padding:0 20px}
 html[data-skin] #editor-navigation{gap:6px;flex:1}
 html[data-skin] #editor-navigation button{min-height:60px;padding:10px 14px;gap:11px}
 html[data-skin] #editor-navigation button>.icon{width:25px;height:25px;flex:none;stroke-width:1.6}
 html[data-skin] #editor-navigation .area-copy{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
 html[data-skin] #editor-navigation .area-copy>span{font-size:14px;font-weight:650}
 html[data-skin] #editor-navigation .area-copy>small{font-size:10px;font-weight:450;color:var(--text-3)}
 html[data-skin] #editor-navigation [aria-selected=true] .area-copy>small{color:var(--text-2)}
}
@media(min-width:1440px){html[data-skin]{--editor-width:410px}}
@media(min-width:821px) and (max-width:1280px){
 html[data-skin] .editor-nav-label{display:none}
 html[data-skin] #editor-navigation button{padding:9px 10px;gap:8px;flex:1}
 html[data-skin] #editor-navigation .area-copy>small{font-size:9px}
}
html[data-skin] .journey-footer{margin:0;display:block;flex:none;border-top:1px solid var(--line);padding:10px 18px;background:var(--surface)}
html[data-skin] .journey-footer>small{display:block;font:500 10px var(--font);color:var(--text-3);margin-bottom:7px}
html[data-skin] .journey-footer>div{display:flex;justify-content:space-between;gap:8px}
html[data-skin] .journey-footer button{display:flex;align-items:center;gap:8px;min-height:34px;font:550 12px var(--font);color:var(--text-2);background:var(--surface-2);border:1px solid var(--line-2);border-radius:7px;padding:6px 10px}
html[data-skin] .journey-footer button[hidden]{display:none}
.journey-footer .icon{width:14px;height:14px;transform:rotate(-90deg)}
html[data-skin] .presenting .journey-footer{display:none}
html[data-skin] .current-configuration{display:flex;align-items:center;gap:13px;margin:16px 20px 4px;padding:14px;border:1px solid var(--line-2);background:var(--surface-2);border-radius:10px}
.current-configuration>.icon{width:27px;height:27px;color:var(--accent-ink);flex:none}
.current-configuration>div{display:grid;gap:6px}
html[data-skin] .current-configuration small{font:600 9px var(--font);letter-spacing:.1em;color:var(--text-3)}
html[data-skin] .current-configuration strong{font:550 13px/1.5 var(--font);color:var(--text)}
html[data-skin] #product-form .stack-form:has(>.editor-section){padding:10px 20px;gap:10px;border:0}
html[data-skin] .editor-section{border:1px solid var(--line-2);background:var(--surface-2);border-radius:10px;padding:0 13px}
html[data-skin] .editor-section>summary{display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 0;cursor:pointer;list-style:none;color:var(--text);font:600 13px/1.4 var(--font)}
.editor-section>summary::-webkit-details-marker{display:none}
.editor-section>summary:after{content:'+';margin-left:auto;font-size:20px;font-weight:400;color:var(--text-3)}
.editor-section[open]>summary:after{content:'−'}
html[data-skin] .editor-section[open]>summary{border-bottom:1px solid var(--line);margin-bottom:14px}
html[data-skin] .editor-section[open]{padding-bottom:15px}
.editor-section-icon{display:grid;place-items:center;width:30px;height:30px;background:var(--surface-3);border-radius:7px;flex:none}
.editor-section-icon .icon{width:20px;height:20px;color:var(--accent-ink)}
html[data-skin] #product-form .editor-section>label,html[data-skin] #product-form .editor-section>.form-pair{margin:12px 0}
html[data-skin] #product-form .editor-section input,html[data-skin] #product-form .editor-section select{font-size:13px;min-height:36px}
html[data-skin] #product-form .editor-section input[type=checkbox]{min-height:0}
html[data-skin] .editor-section .dialog-caption{font-size:11px;line-height:1.6}
html[data-skin] .finish-entry{padding:18px 20px}
html[data-skin] .finish-entry h3{font-size:16px;line-height:1.4}
html[data-skin] .finish-entry>p{font-size:12px;line-height:1.6;margin-bottom:18px}
html[data-skin] .finish-part{min-height:80px;padding:13px 12px;gap:12px;border:1px solid var(--line-2);border-radius:10px;margin-bottom:9px;background:var(--surface-2);width:100%;display:flex;align-items:center;text-align:left}
html[data-skin] .finish-part:hover{border-color:var(--accent);background:var(--accent-soft)}
html[data-skin] .finish-part .finish-glyph{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:9px;background:var(--surface-3);color:var(--accent-ink)}
html[data-skin] .finish-part .finish-glyph .icon{width:26px;height:26px}
html[data-skin] .finish-part strong{font-size:14px;color:var(--text)}
html[data-skin] .finish-part small{font-size:11px;line-height:1.45;margin-top:4px;color:var(--text-2)}
html[data-skin] .finish-part em{display:block;font:500 10px var(--font);color:var(--text-3);margin-top:5px}
html[data-skin] .finish-shortcuts{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
html[data-skin] .finish-part>span:nth-child(2){flex:1;min-width:0}
html[data-skin] .material-card{min-height:78px;padding:12px;border-radius:10px;margin:7px 0;gap:12px}
html[data-skin] .material-card .material-swatch{width:48px;height:48px;flex:none;border-radius:8px}
html[data-skin] .material-card .layer-name{max-width:none;font-size:14px}
html[data-skin] .material-card .layer-group{font-size:11px;margin-top:5px}
html[data-skin] .material-card>.icon{color:var(--accent-ink);width:20px;height:20px;margin-left:auto}
html[data-skin] .library-group-title{font-size:11px;padding:18px 4px 7px}
html[data-skin] .inspector-heading h3{font:650 16px/1.4 var(--font);margin:7px 0 3px;color:var(--text)}
html[data-skin] .inspector-heading small{font-size:11px;color:var(--text-2)}
html[data-skin] .inspector-actions{display:flex;gap:8px;margin-top:15px}
html[data-skin] .inspector-actions button{display:flex;gap:7px;align-items:center;min-height:36px;padding:8px 10px;border:1px solid var(--line-2);border-radius:7px;font-size:12px}
html[data-skin] .inspector-actions button:first-child{background:var(--accent-soft);color:var(--accent-ink)}
html[data-skin] .inspector-actions .icon{width:16px;height:16px}
html[data-skin] .cat-card{border-radius:10px;min-height:91px}
html[data-skin] .cat-card .cat-text b{font-size:13px;line-height:1.45}
html[data-skin] .cat-card .cat-text small{font-size:11px;line-height:1.4}
html[data-skin] .cat-card[aria-pressed=true]{border:2px solid var(--accent);background:var(--accent-soft)}
html[data-skin] .cat-card[aria-pressed=true] .cat-text:after{content:'Em uso';font:600 10px var(--font);color:var(--accent-ink);margin-top:7px}
@media(max-width:820px){.area-copy small{display:none}html[data-skin] .journey-footer{padding:10px 18px}html[data-skin] .finish-part{min-height:72px}}
/* Keep the layer list usable while its properties are open. */
@media(min-width:821px){
 html[data-skin] .sidebar:has(#inspector:not([hidden])) #layers-panel{flex:1 1 42%;min-height:120px}
 html[data-skin] .sidebar #inspector:not([hidden]){flex:1 1 58%;min-height:140px;max-height:none;overflow:auto;border-top:1px solid var(--line)}
}

/* Scoped UI; consumes the existing Grafite/Porcelana tokens. No scene or product styles. */
html[data-skin] dialog.new-project-dialog{
  box-sizing:border-box;width:min(600px,calc(100% - 24px));max-width:600px;
  max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;
  margin:auto;padding:26px;border:1px solid var(--line-2);border-radius:18px;
  background:var(--surface);color:var(--text);box-shadow:var(--shadow);font-family:var(--font);
}
.new-project-dialog *{box-sizing:border-box}
.new-project-dialog::backdrop{background:rgb(8 9 11/.64);backdrop-filter:blur(4px)}
.new-project-dialog .np-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.new-project-dialog .np-eyebrow{margin:0 0 8px;color:var(--text-2);font-size:11px;letter-spacing:.08em;font-weight:600}
html[data-skin] .new-project-dialog h2{margin:0;font-size:25px;line-height:1.2;letter-spacing:-.025em;color:var(--text)}
html[data-skin] .new-project-dialog .np-intro{margin:12px 0 22px;color:var(--text-2);font-size:14px;line-height:1.5}
.new-project-dialog button{min-height:44px;border:1px solid var(--line-2);border-radius:var(--r-ctl);padding:10px 15px;background:var(--surface-2);color:var(--text);font:500 14px var(--font);cursor:pointer;white-space:normal}
.new-project-dialog button:hover:not(:disabled){background:var(--surface-3);border-color:var(--accent)}
.new-project-dialog button:disabled{opacity:.55;cursor:wait}
.new-project-dialog .np-close{flex:none;width:44px;padding:0;font-size:25px;line-height:1;background:transparent}
.new-project-dialog :is(button,input):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.new-project-dialog .np-fields{min-width:0;margin:0;padding:18px;border:1px solid var(--line-2);border-radius:12px}
.new-project-dialog legend{padding:0 6px;font-size:17px;font-weight:600;color:var(--text)}
html[data-skin] .new-project-dialog .np-description{margin:0 0 18px;font-size:13px;line-height:1.5;color:var(--text-2)}
.new-project-dialog .np-field{display:block;min-width:0;font-size:13px;font-weight:500;line-height:1.45;color:var(--text)}
html[data-skin] .new-project-dialog .np-field input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:6px 0 0;padding:10px 12px;font:400 16px var(--font);border:1px solid var(--line-2);border-radius:var(--r-ctl);background:var(--surface-2);color:var(--text)}
html[data-skin] .new-project-dialog input[aria-invalid=true]{border-color:var(--danger-text)}
.new-project-dialog .np-unit{font-weight:400;color:var(--text-2)}
.new-project-dialog .np-dimensions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:16px}
html[data-skin] .new-project-dialog .np-help{margin:13px 0 0;font-size:12px;color:var(--text-2);line-height:1.5}
html[data-skin] .new-project-dialog .np-error{padding:12px;margin:14px 0 0;border-radius:8px;color:var(--danger-text);background:var(--danger-bg);font-size:13px;line-height:1.5}
.new-project-dialog .np-error[hidden]{display:none}
html[data-skin] .new-project-dialog .np-progress{margin:10px 0 0;font-size:13px;color:var(--text-2);line-height:1.5}
.new-project-dialog .np-progress:empty{display:none}
.new-project-dialog .np-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.new-project-dialog .np-create{background:var(--primary-bg);color:var(--primary-fg);border-color:transparent;font-weight:600}
.new-project-dialog .np-create:hover:not(:disabled){background:var(--primary-bg);filter:brightness(1.08);border-color:transparent}
.new-project-dialog .np-model-option{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line-2)}
.new-project-dialog .np-model-option h3{margin:0 0 6px;color:var(--text);font-size:16px;line-height:1.3}
html[data-skin] .new-project-dialog .np-model-option p{margin:0;color:var(--text-2);font-size:13px;line-height:1.5}
.new-project-dialog .np-models{flex:none}
@media(max-width:480px){
 html[data-skin] dialog.new-project-dialog{padding:18px;border-radius:14px}
 html[data-skin] .new-project-dialog h2{font-size:22px}
 .new-project-dialog .np-fields{padding:14px}
 .new-project-dialog .np-dimensions{gap:10px}
 .new-project-dialog .np-model-option{align-items:stretch;flex-direction:column;gap:12px}
 .new-project-dialog .np-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}
}

/* Import after ui.css. Two fixed desktop slots keep selection from resizing
   the canvas (18/11/2026: 146 -> 114 px; o 3D tinha 284 px de altura em 1366x768). Stage flow is reserved only while this UI is actually visible. */
.direct-assembly-ui{box-sizing:border-box;display:grid;grid-template-rows:40px 52px;gap:6px;height:114px;min-height:114px;padding:8px 10px;border:1px solid var(--line-2,#393b40);border-radius:12px;background:var(--surface,#191b20);color:var(--text,#eee);font-family:var(--font,system-ui)}
.direct-assembly-ui[hidden],.direct-assembly-ui [hidden]{display:none!important}
.direct-assembly-ui *{box-sizing:border-box;min-width:0}
.direct-assembly-ui .da-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.direct-assembly-ui .da-modes,.direct-assembly-ui .da-shortcuts{display:flex;align-items:center;gap:4px}
.direct-assembly-ui .da-mode-label{font-size:11px;color:var(--text-2,#b9bbc3);margin-right:4px}
.direct-assembly-ui button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border:1px solid transparent;border-radius:8px;padding:6px 9px;color:var(--text-2,#b9bbc3);background:transparent;font:500 12px/1.2 var(--font,system-ui);cursor:pointer;white-space:nowrap;box-shadow:none}
.direct-assembly-ui button:hover:not(:disabled){background:var(--surface-2,#24262c);color:var(--text,#eee);border-color:var(--line-2,#393b40)}
.direct-assembly-ui button:focus-visible{outline:2px solid var(--accent,#ff6a37);outline-offset:2px}
.direct-assembly-ui button:disabled{cursor:default;opacity:.5}
.direct-assembly-ui button[aria-pressed=true]{border-color:var(--accent,#ff6a37);background:var(--accent-soft,rgba(255,106,55,.10));color:var(--text,#eee);font-weight:650}
.direct-assembly-ui button[aria-pressed=true] .da-symbol{color:var(--accent,#ff6a37)}
.direct-assembly-ui .da-symbol{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;color:inherit;font-style:normal}
.direct-assembly-ui .icon{display:block;width:19px;height:19px;flex:none}
.direct-assembly-ui .da-part{display:grid;grid-template-columns:20px auto;grid-template-rows:17px 12px;column-gap:5px;row-gap:1px;min-height:40px;padding:4px 7px;align-items:center;text-align:left}
.direct-assembly-ui .da-part .da-symbol{grid-row:1/3}
.direct-assembly-ui .da-part-status{grid-column:2;font-size:9px;line-height:12px;color:var(--text-2,#b9bbc3);font-weight:500}
.direct-assembly-ui .da-part[aria-pressed=true] .da-part-status{color:var(--accent,#ff6a37)}
.direct-assembly-ui .da-context{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:8px;background:var(--surface-2,#24262c);min-height:0}
.direct-assembly-ui .da-context>.da-symbol{color:var(--accent,#ff6a37)}
.direct-assembly-ui .da-context-copy{flex:1}
.direct-assembly-ui .da-context-title{display:block;font-size:12px;line-height:1.35;color:var(--text,#eee);font-weight:650}
.direct-assembly-ui .da-context-scope{margin:2px 0 0;font-size:11px;line-height:1.4;color:var(--text-2,#b9bbc3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.direct-assembly-ui .da-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:none}
.direct-assembly-ui .da-action{border-color:var(--line-2,#393b40);background:var(--surface,#191b20);color:var(--text,#eee)}
/* No absolute overlay: identity, selection controls and viewport own rows.
   Dock remains in its existing bottom zone; camera-tools stay in the viewport. */
html[data-skin] body:not(.presenting) .workspace .stage:has(>#direct-assembly>.direct-assembly-ui:not([hidden])){display:flex;flex-direction:column;gap:8px;padding:10px 16px 64px}
html[data-skin] body:not(.presenting) .workspace .stage:has(>#direct-assembly>.direct-assembly-ui:not([hidden]))>.stage-hd{position:static;inset:auto;transform:none;max-width:none;width:100%;flex:none;margin:0;flex-direction:row;align-items:center;gap:12px}
html[data-skin] body:not(.presenting) .workspace .stage:has(>#direct-assembly>.direct-assembly-ui:not([hidden]))>#direct-assembly{position:relative;flex:none;width:100%;min-width:0;z-index:auto}
html[data-skin] body:not(.presenting) .workspace .stage:has(>#direct-assembly>.direct-assembly-ui:not([hidden]))>.viewport-shell{position:relative;inset:auto;flex:1 1 0;min-height:0;width:100%}
html[data-skin] body:not(.presenting) .workspace .stage:has(>#direct-assembly>.direct-assembly-ui:not([hidden]))>.material-info{position:static;inset:auto;flex:none;max-width:100%;margin:0}
html[data-skin] body:not(.presenting) .workspace .stage:has(>#direct-assembly>.direct-assembly-ui:not([hidden]))>.preview-bottom{display:none}
/* Hiding the feature restores the existing presentation/technical layout. */
.presenting #direct-assembly,.presenting .direct-assembly-ui{display:none!important}
@media(min-width:821px) and (max-width:1150px){
 .direct-assembly-ui .da-mode-label{display:none}
 .direct-assembly-ui .da-toolbar{gap:6px}
 .direct-assembly-ui button{padding-left:7px;padding-right:7px;font-size:11px}
 .direct-assembly-ui .da-part{padding-left:5px;padding-right:5px}
 html[data-skin] body:not(.presenting) .workspace .stage:has(>#direct-assembly>.direct-assembly-ui:not([hidden])){padding-left:12px;padding-right:12px}
}
@media(max-width:820px){
 .direct-assembly-ui{height:auto;min-height:144px;grid-template-rows:auto auto;padding:8px}
 .direct-assembly-ui .da-toolbar{flex-wrap:wrap;gap:6px}
 .direct-assembly-ui .da-shortcuts{flex:1;justify-content:flex-end}
 .direct-assembly-ui .da-context{flex-wrap:wrap;gap:6px}
 .direct-assembly-ui .da-context-copy{flex:1;min-width:180px}
 .direct-assembly-ui .da-context-scope{white-space:normal}
 .direct-assembly-ui .da-actions{flex-wrap:wrap;justify-content:flex-start;margin-left:26px}
 html[data-skin] body:not(.presenting) .workspace .stage:has(>#direct-assembly>.direct-assembly-ui:not([hidden])){height:65vh;min-height:460px;max-height:none;gap:6px;padding:8px 8px 60px}
}

/* Layer selection remains stored; its screen indication belongs to Camadas. */
#direct-assembly:has(>.direct-assembly-ui[data-mode=parts]:not([hidden]))~.viewport-shell :is(.three-labels,.three-label-leaders){visibility:hidden}

/* Área Tampos do editor (tampos-panel.js). Texto secundário usa --text-2: --text-3 não chega a 4,5:1 sobre --surface-2 no tema Grafite. */
html[data-skin] #tampos-panel{display:grid;gap:16px;padding:16px 20px 24px}
html[data-skin] .tp-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
html[data-skin] .tp-groups button{display:grid;justify-items:center;gap:5px;min-height:76px;padding:10px 4px 9px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface-2);color:var(--text-2);font:550 12.5px var(--font);cursor:pointer;box-shadow:none;transition:border-color var(--t) var(--ease),background var(--t) var(--ease)}
html[data-skin] .tp-groups button .icon{width:22px;height:22px}
html[data-skin] .tp-groups button small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 10.5px var(--font);color:var(--text-2)}
html[data-skin] .tp-groups button:hover{border-color:var(--accent);color:var(--text)}
html[data-skin] .tp-groups button[aria-selected=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink);font-weight:650}
html[data-skin] .tp-body{display:grid;gap:12px;min-width:0}
html[data-skin] .tp-head{display:flex;align-items:center;gap:12px}
html[data-skin] .tp-glyph{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent-ink)}
html[data-skin] .tp-glyph .icon{width:22px;height:22px}
html[data-skin] .tp-head h3{margin:0;font:650 16px/1.3 var(--font);color:var(--text)}
html[data-skin] .tp-head p{margin:2px 0 0;font:400 12px/1.5 var(--font);color:var(--text-2)}
html[data-skin] .tp-current{margin:0;font:400 12.5px/1.5 var(--font);color:var(--text-2)}
html[data-skin] .tp-current strong{color:var(--text);font-weight:600}
html[data-skin] .tp-body h4{margin:8px 0 0;font:600 12.5px var(--font);color:var(--text)}
html[data-skin] .tp-hint{margin:0;font:400 12px/1.5 var(--font);color:var(--text-2)}
html[data-skin] :is(.tp-tabs,.tp-seg){display:flex;gap:4px;padding:3px;border-radius:9px;background:var(--surface-3)}
html[data-skin] :is(.tp-tabs,.tp-seg) button{flex:1;min-height:32px;padding:0 10px;border:0;border-radius:7px;background:none;color:var(--text-2);font:550 12.5px var(--font);cursor:pointer;box-shadow:none}
html[data-skin] :is(.tp-tabs,.tp-seg) button:hover{color:var(--text)}
html[data-skin] :is(.tp-tabs button[aria-selected=true],.tp-seg button[aria-pressed=true]){background:var(--surface);color:var(--text);font-weight:650;box-shadow:0 0 0 1px var(--line-2)}
html[data-skin] #tp-tabpanel{display:grid;gap:12px}
html[data-skin] .tp-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-skin] .tp-card{display:flex;flex-direction:column;align-items:stretch;padding:0;border:1px solid var(--line-2);border-radius:10px;background:var(--surface-2);color:var(--text);text-align:left;cursor:pointer;overflow:hidden;box-shadow:none;transition:border-color var(--t) var(--ease),box-shadow var(--t) var(--ease)}
html[data-skin] .tp-card:hover{border-color:var(--accent)}
html[data-skin] .tp-card[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
html[data-skin] .tp-thumb{display:block;width:100%;height:64px;object-fit:cover;background:var(--surface-3)}
/* Miniatura de desenho por imagem: traçado de costura em três módulos, sobre fundo de tecido claro. */
html[data-skin] .tp-thumb-stitch{object-fit:cover;background:#f3efe8}
html[data-skin] .tp-swatch{box-shadow:inset 0 0 0 1px rgb(128 128 128/.25)}
html[data-skin] .tp-card-text{display:block;padding:8px 10px 10px;min-width:0}
html[data-skin] .tp-card b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em;font:500 12.5px/1.3 var(--font)}
html[data-skin] .tp-card small{display:block;margin-top:3px;font:400 11px/1.35 var(--font);color:var(--text-2)}
html[data-skin] .tp-card[aria-pressed=true] small{color:var(--accent-ink);font-weight:600}
html[data-skin] .tp-range{display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center;font:500 12.5px var(--font);color:var(--text-2)}
html[data-skin] .tp-range output{color:var(--text);font-variant-numeric:tabular-nums}
html[data-skin] .tp-range input{grid-column:1/-1;width:100%}
html[data-skin] :is(.tp-restore,.tp-notice button,.tp-more button){min-height:36px;padding:0 12px;border:1px solid var(--line-2);border-radius:8px;background:none;color:var(--text);font:550 12.5px var(--font);cursor:pointer;box-shadow:none;text-align:center}
html[data-skin] :is(.tp-restore,.tp-notice button,.tp-more button):hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}
html[data-skin] .tp-restore:disabled{opacity:.5;cursor:default}
html[data-skin] .tp-notice{display:grid;gap:8px;padding:14px;border:1px solid var(--line-2);border-radius:10px;background:var(--warn-bg)}
html[data-skin] .tp-notice strong{font:600 13px/1.4 var(--font);color:var(--text)}
html[data-skin] .tp-notice p{margin:0;font:400 12px/1.5 var(--font);color:var(--text)}
html[data-skin] .tp-more{display:grid;gap:8px;padding-top:16px;border-top:1px solid var(--line)}
html[data-skin] .tp-more p{margin:0;font:400 12px/1.5 var(--font);color:var(--text-2)}
html[data-skin] #tampos-panel :is(button,input):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){html[data-skin] :is(.tp-groups button,.tp-card){transition:none}}
/* Oito áreas na barra: com 18px de respiro lateral a última (Marca) saía da tela em 1440px. */
html[data-skin] #editor-navigation button{padding:0 12px;gap:8px}
@media (max-width:1500px){html[data-skin] .editor-navigation-wrap{gap:12px;padding:0 16px}html[data-skin] #editor-navigation button{padding:0 9px;gap:7px}}
@media (max-width:1150px){html[data-skin] #editor-navigation .area-copy small{display:none}}
/* Peças da base e artes, dentro das áreas Base, Pés e Acabamento (native-appearance-panels.js). */
html[data-skin] .tp-native{display:grid;gap:12px;padding:18px 20px 24px;border-top:1px solid var(--line)}
html[data-skin] .tp-native:empty{display:none}
html[data-skin] .tp-native>h3{margin:0;padding:0;border:0;font:650 15px/1.3 var(--font);color:var(--text)}
html[data-skin] .tp-select{display:grid;gap:6px;font:500 12.5px var(--font);color:var(--text-2)}
html[data-skin] .tp-select select{min-height:34px;padding:0 10px;border:1px solid var(--line-2);border-radius:8px;background:var(--surface-2);color:var(--text);font:500 13px var(--font)}
html[data-skin] .tp-art{object-fit:contain;background:#f4f2ee;padding:6px;box-sizing:border-box}
html[data-skin] .tp-link{display:inline;min-height:0;padding:0;border:0;background:none;color:var(--accent-ink);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer;box-shadow:none}
html[data-skin] .tp-seg{flex-wrap:wrap}

/* Compactação do editor (18/11/2026). Entra por último em dist/styles.css (build.mjs).
   Medido antes, em 1366 × 768: cabeçalho 92 px + navegação 82 px; painel de edição com 261 px úteis de 594;
   estúdio 3D com 284 px de altura. A meta é devolver essa altura ao conteúdo sem tirar função da tela.
   O que some da tela está duplicado em outro ponto: o botão "Tampos e tecidos" do cabeçalho abre a mesma aba Tampos
   da navegação logo abaixo; o subtítulo de cada aba repete a descrição do painel; os rótulos em caixa alta
   ("CONFIGURAÇÃO DO PRODUTO", "CONSTRUÇÃO INTERNA") não mudam nunca. */

/* ---------- contraste ----------
   --text-3 media 3,55:1 no Grafite (subtítulos, numeração, "Salvo neste navegador") e 3,2:1 na Porcelana.
   Os valores abaixo passam de 4,5:1 inclusive sobre --surface-3, o fundo mais desfavorável de cada tema. */
html[data-skin=grafite]{--text-3:#9697A1}
html[data-skin=porcelana]{--text-2:#4C4D54;--text-3:#65666E;--accent-ink:#B53A14}   /* --accent-ink: a aba selecionada media 4,27:1 sobre --accent-soft */

/* ---------- cabeçalho: uma linha a partir de 1200 px ---------- */
html[data-skin] #open-customizer{display:none}
@media(min-width:1200px) and (max-width:1600px){
 html[data-skin]{--bar:52px}
 html[data-skin] .app-header{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:none;gap:10px;padding:0 10px 0 12px}
 html[data-skin] .app-header :is(.hd-left,.engine-switch,.header-actions){grid-column:auto;grid-row:auto}
 html[data-skin] .app-header .hd-left{overflow:hidden}
 html[data-skin] .app-header #project-name{max-width:220px;flex-shrink:1}
 html[data-skin] .app-header .hd-sep{margin:0 2px}
}
/* Entre 1200 e 1500 px o estado do salvamento vira só o ponto verde; o texto volta se houver problema. */
@media(min-width:1200px) and (max-width:1500px){
 html[data-skin] .brand-name{display:none}
 html[data-skin] .autosave-status{display:inline-flex}
 html[data-skin] .autosave-status:not(.problem){font-size:0;gap:0;margin:0 4px}
}

@media(min-width:821px){
 /* ---------- navegação das áreas ---------- */
 html[data-skin]{--editor-nav:56px}
 html[data-skin] #editor-navigation button{min-height:40px;padding:0 12px;gap:8px}
 html[data-skin] #editor-navigation button>.icon{width:20px;height:20px}
 html[data-skin] #editor-navigation .area-copy>small{display:none}

 /* ---------- título do painel ---------- */
 html[data-skin] .editor-panel-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:14px 20px 12px}
 html[data-skin] :is(.editor-panel-heading,.sidebar-heading) .eyebrow{display:none}
 html[data-skin] .editor-panel-heading h2,html[data-skin] .sidebar-heading h1{font-size:19px}
 html[data-skin] .editor-panel-heading .editor-panel-description{margin:0;font-size:12.5px}
 html[data-skin] .sidebar-heading{padding:14px 20px 0}
 html[data-skin] .layers-description{margin-top:3px;font-size:12.5px}
 html[data-skin] .layer-create-actions{padding:12px 16px 10px}
 html[data-skin] .layer-create-actions .button{min-height:36px}

 /* ---------- resumo da altura: legenda e código na mesma linha ---------- */
 html[data-skin] .insp-summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px 16px 10px}
 html[data-skin] .insp-summary :is(.sum-head,.sum-stack){flex:1 0 100%}
 html[data-skin] .insp-summary .sum-total{font-size:20px}
 html[data-skin] .insp-summary .sum-stack{height:5px;margin:0}
 html[data-skin] .insp-summary .sum-legend{flex:1 1 auto;gap:4px 12px}
 html[data-skin] .insp-summary .sum-code{flex:0 1 auto;margin:0;height:24px;padding:0 8px;font-size:11.5px}

 /* ---------- anterior / próxima: posição no meio, tudo em uma linha ---------- */
 html[data-skin] .journey-footer{position:relative;padding:8px 14px}
 html[data-skin] .journey-footer>small{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;pointer-events:none;white-space:nowrap}
 html[data-skin] .journey-footer button{min-height:32px}

 /* ---------- estúdio ---------- */
 html[data-skin] .stage .project-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-skin] .stage .dock{bottom:12px}
}

/* ---------- busca nas listas do painel Tampos ---------- */
html[data-skin] .tp-search{display:block}
html[data-skin] .tp-search input{width:100%;height:36px;padding:0 12px;border:1px solid var(--line-2);border-radius:8px;background:var(--surface-2);color:var(--text);font:400 13px var(--font);box-shadow:none}
html[data-skin] .tp-search input::placeholder{color:var(--text-2);opacity:1}
html[data-skin] .tp-search input:focus{border-color:var(--accent)}
html[data-skin] .tp-count{margin:-4px 0 0;font:400 12px/1.5 var(--font);color:var(--text-2)}
html[data-skin] .tp-count:empty{display:none}
html[data-skin] .tp-card[hidden]{display:none}
html[data-skin] .tp-total{margin-left:4px;padding:1px 7px;border-radius:999px;background:var(--surface-3);color:var(--text-2);font:500 11px var(--font);vertical-align:1px}

/* Alvo de toque: os números das camadas sobre o 3D tinham 22 px (mínimo de 24 px, WCAG 2.2 AA 2.5.8). */
html[data-skin] .three-label>span{min-width:24px;height:24px}

/* Links dentro da frase do rodapé do painel Tampos: a regra dos botões do rodapé (.tp-more button) vencia .tp-link
   e desenhava cada link como caixa de 36 px no meio do texto. */
html[data-skin] .tp-more .tp-link{display:inline;min-height:0;padding:0;border:0;border-radius:2px;background:none;color:var(--accent-ink);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}
html[data-skin] .tp-more .tp-link:hover:not(:disabled){background:none;border:0;color:var(--text)}
