:root{--navy:#170b3e;--purple:#5f22d9;--violet:#7b2df4;--blue:#1778f2;--gold:#f5c84b;--ink:#15122a;--muted:#6f6a83;--line:#e7e3f0;--paper:#fff;--bg:#f5f3fa;--soft:#eee9ff;--danger:#a6384b;--shadow:0 16px 45px rgba(35,18,84,.1);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 8% 5%,rgba(123,45,244,.13),transparent 24rem),linear-gradient(180deg,#faf9fd 0,#f4f2f8 100%);min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem max(1rem,calc((100vw - 1440px)/2));background:rgba(23,11,62,.96);backdrop-filter:blur(18px);color:#fff;box-shadow:0 6px 25px rgba(19,7,52,.22)}.brand{display:flex;align-items:center;gap:.8rem}.brand img{width:54px;height:54px;object-fit:contain}.brand div{display:grid;line-height:1}.brand span{font-size:.69rem;letter-spacing:.12em;color:#d8ccff;font-weight:800}.brand strong{font-size:1.45rem;margin-top:.3rem}.top-actions{display:flex;gap:.55rem}.button{min-height:44px;border:0;border-radius:13px;padding:.7rem 1rem;font-size:.9rem;font-weight:800;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}.button:hover{transform:translateY(-1px)}.button:focus-visible,input:focus-visible,textarea:focus-visible,.step:focus-visible{outline:3px solid rgba(23,120,242,.35);outline-offset:2px}.button.ghost{background:rgba(255,255,255,.11);color:#fff}.button.danger{background:rgba(255,117,139,.15);color:#ffdbe1}.button.primary{background:var(--purple);color:#fff;box-shadow:0 8px 18px rgba(95,34,217,.2)}.app-shell{max-width:1440px;margin:auto;padding:2rem 1.25rem 6rem}.intro{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:1.35rem}.eyebrow{font-weight:900;letter-spacing:.14em;color:var(--purple);font-size:.74rem;margin:0 0 .55rem}.intro h1{font-size:clamp(2rem,5vw,4rem);letter-spacing:-.055em;line-height:.96;margin:0;color:var(--navy);max-width:850px}.intro p:not(.eyebrow){font-size:1.05rem;color:var(--muted);margin:.8rem 0 0}.status-pill{background:#e9f8ee;color:#16643a;border:1px solid #c5ead2;padding:.58rem .8rem;border-radius:999px;font-size:.78rem;font-weight:800;white-space:nowrap}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:.55rem;margin:1.5rem 0}.step{display:flex;align-items:center;justify-content:center;gap:.55rem;border:1px solid var(--line);background:rgba(255,255,255,.75);border-radius:14px;padding:.65rem;color:var(--muted);font-weight:800;font-size:.86rem;cursor:pointer}.step span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft);color:var(--purple)}.step.active{background:var(--navy);color:#fff;border-color:var(--navy)}.step.active span{background:var(--gold);color:var(--navy)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:1.25rem}.content-stack{display:grid;gap:1rem}.card{background:rgba(255,255,255,.96);border:1px solid rgba(87,65,137,.12);border-radius:24px;box-shadow:var(--shadow)}.section-card,.result-section{padding:1.35rem}.section-heading{display:flex;align-items:center;gap:.85rem;margin-bottom:1.2rem}.split-heading{justify-content:space-between}.heading-pair{display:flex;align-items:center;gap:.85rem}.section-icon{flex:none;display:grid;place-items:center;width:45px;height:45px;border-radius:15px;background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff;font-weight:900;font-size:.84rem;box-shadow:0 8px 18px rgba(95,34,217,.2)}.section-icon.gold{background:linear-gradient(135deg,#f9db79,#e8a925);color:var(--navy)}.section-heading h2{font-size:1.25rem;margin:0;color:var(--navy)}.section-heading p{font-size:.86rem;margin:.25rem 0 0;color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.wide{grid-column:1/-1}label{display:grid;gap:.42rem;font-size:.82rem;font-weight:850;color:#42395e}input,textarea{width:100%;border:1px solid #dcd6ea;border-radius:13px;background:#fbfaff;padding:.78rem .85rem;font:inherit;color:var(--ink);min-height:46px}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#aaa2bc}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px}table{width:100%;border-collapse:collapse;min-width:850px}th{background:#f1edfb;color:#4a4066;text-align:left;font-size:.72rem;text-transform:uppercase;letter-spacing:.035em;padding:.7rem}td{padding:.55rem;border-top:1px solid var(--line);vertical-align:middle}td input{min-height:42px;padding:.6rem;font-size:.88rem;background:#fff}.money-cell{font-weight:900;color:var(--navy);white-space:nowrap}.remove-row{width:38px;height:38px;border:0;border-radius:12px;background:#fff0f2;color:var(--danger);font-size:1.3rem;cursor:pointer}.mobile-add{display:none;margin-top:1rem}.expense-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.expense-item{padding:.85rem;background:#f8f6fc;border:1px solid var(--line);border-radius:15px}.expense-item label{font-size:.8rem}.expense-pair{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.55rem}.expense-pair span{font-size:.68rem;color:var(--muted);font-weight:800}.expense-pair input{margin-top:.28rem}.settings-card{background:linear-gradient(135deg,#fff 30%,#f3efff)}.result-section{background:linear-gradient(145deg,#170b3e 0%,#28136a 55%,#501aa7 100%);color:#fff;overflow:hidden;position:relative}.result-section:after{content:"";position:absolute;width:330px;height:330px;border:70px solid rgba(245,200,75,.08);border-radius:50%;right:-180px;top:-160px}.result-section .section-heading h2{color:#fff}.result-section .section-heading p{color:#cfc5eb}.result-hero{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;padding:1rem 0 1.4rem;border-bottom:1px solid rgba(255,255,255,.16)}.result-hero>div:first-child{display:grid}.result-hero span{font-size:.76rem;font-weight:900;letter-spacing:.1em;color:#d6caee}.result-hero strong{font-size:clamp(2.8rem,8vw,5.8rem);line-height:1;letter-spacing:-.065em;color:var(--gold);margin:.4rem 0}.result-hero small{color:#dbd4ed}.margin-ring{width:110px;height:110px;border-radius:50%;border:9px solid var(--gold);display:grid;place-content:center;text-align:center;box-shadow:inset 0 0 0 5px rgba(255,255,255,.12)}.margin-ring strong{font-size:1.65rem;margin:.1rem 0;color:#fff}.margin-ring span{font-size:.65rem}.result-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-top:1rem}.metric{display:grid;gap:.35rem;padding:1rem;border-radius:15px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}.metric span{font-size:.75rem;color:#cec4e9}.metric strong{font-size:1.15rem}.metric.featured{background:rgba(245,200,75,.13);border-color:rgba(245,200,75,.35)}.metric.featured strong{color:var(--gold)}.actual-panel{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:1rem;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.13)}.actual-panel div{display:grid;gap:.35rem;padding:1rem;background:rgba(14,5,40,.58)}.actual-panel span{font-size:.67rem;color:#bfb4dc;font-weight:800}.actual-panel strong{font-size:1.2rem}.formula-note{position:relative;z-index:1;font-size:.74rem;color:#bfb4dc;margin:1rem 0 0}.summary-card{position:sticky;top:88px;background:var(--navy);color:#fff;padding:1.3rem;border-radius:24px;box-shadow:0 20px 48px rgba(23,11,62,.26)}.summary-card>p{margin:0;color:var(--gold);font-size:.7rem;font-weight:900;letter-spacing:.12em}.summary-card h3{margin:.5rem 0 1.15rem;font-size:1.4rem;line-height:1.1}.summary-row{display:flex;justify-content:space-between;gap:1rem;padding:.75rem 0;border-top:1px solid rgba(255,255,255,.13);font-size:.83rem}.summary-row span{color:#c5bbdf}.summary-highlight{display:grid;margin:1rem 0;padding:1rem;background:linear-gradient(135deg,var(--purple),var(--blue));border-radius:17px}.summary-highlight span{font-size:.73rem;font-weight:850}.summary-highlight strong{font-size:2rem;margin:.25rem 0;letter-spacing:-.04em}.summary-highlight small{color:#e1dcff}.gold-button{width:100%;background:var(--gold);color:var(--navy);margin-bottom:.8rem}.summary-card>small{display:block;color:#a9a0c4;font-size:.7rem;line-height:1.4;text-align:center}.toast{position:fixed;left:50%;bottom:24px;z-index:50;transform:translate(-50%,30px);opacity:0;pointer-events:none;background:#161029;color:#fff;padding:.75rem 1rem;border-radius:12px;font-weight:800;font-size:.85rem;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
.hidden{display:none!important}.action-group{display:flex;gap:.55rem}.member-gate{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:1.2rem;background:radial-gradient(circle at 14% 12%,rgba(123,45,244,.65),transparent 30rem),linear-gradient(145deg,#12072f,#2d116d 58%,#17104c);overflow:auto}.member-card{width:min(510px,100%);padding:2rem;background:rgba(255,255,255,.98);border:1px solid rgba(255,255,255,.35);border-radius:28px;box-shadow:0 28px 80px rgba(0,0,0,.32)}.member-card>img{width:82px;height:82px;object-fit:contain}.member-card h1{margin:.2rem 0 0;color:var(--navy);font-size:clamp(1.8rem,7vw,2.7rem);line-height:1;letter-spacing:-.045em}.member-copy{color:var(--muted);line-height:1.55;margin:.8rem 0 1.2rem}.member-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;padding:.3rem;background:#eeebf6;border-radius:15px;margin-bottom:1rem}.member-tab{border:0;border-radius:11px;padding:.72rem;background:transparent;color:#716984;font:inherit;font-weight:850;cursor:pointer}.member-tab.active{background:#fff;color:var(--purple);box-shadow:0 4px 14px rgba(33,19,80,.1)}.member-form{display:grid;gap:.9rem}.member-form .button{width:100%;margin-top:.15rem}.pin-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.member-error{display:none;margin:.9rem 0 0;padding:.72rem .8rem;border-radius:12px;background:#fff0f2;color:#a12f42;font-size:.82rem;font-weight:750}.member-error.show{display:block}.member-card>small{display:block;margin-top:1rem;color:#8a8299;text-align:center;font-size:.75rem}.soft-button{background:#eee9ff;color:var(--purple)}.archive-dialog{width:min(820px,calc(100% - 1.5rem));max-height:min(86vh,900px);padding:0;border:0;border-radius:26px;box-shadow:0 28px 90px rgba(18,7,47,.35);background:#fff;color:var(--ink)}.archive-dialog::backdrop{background:rgba(18,7,47,.72);backdrop-filter:blur(5px)}.archive-panel{padding:1.4rem}.archive-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.archive-heading h2{margin:.1rem 0;color:var(--navy);font-size:1.7rem}.archive-heading>div>p:last-child{margin:.35rem 0 0;color:var(--muted);font-size:.85rem}.dialog-close{flex:none;width:42px;height:42px;border:0;border-radius:13px;background:#f1edfb;color:var(--purple);font-size:1.5rem;cursor:pointer}.archive-actions{display:flex;gap:.6rem;margin:1rem 0}.archive-list{display:grid;gap:.65rem;max-height:55vh;overflow:auto}.archive-empty{padding:2rem 1rem;text-align:center;border:1px dashed #cec6df;border-radius:17px;color:var(--muted)}.project-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.7rem;align-items:center;padding:1rem;border:1px solid var(--line);border-radius:17px;background:#fbfaff}.project-item h3{margin:0;color:var(--navy);font-size:1rem}.project-meta{display:flex;flex-wrap:wrap;gap:.4rem 1rem;margin-top:.35rem;color:var(--muted);font-size:.76rem}.project-actions{display:flex;gap:.45rem}.project-actions button{border:0;border-radius:11px;padding:.65rem .75rem;font:inherit;font-size:.78rem;font-weight:850;cursor:pointer}.open-project{background:var(--purple);color:#fff}.delete-project{background:#fff0f2;color:var(--danger)}


.suite-home,.designer-shell{max-width:1320px;margin:auto;padding:clamp(1.4rem,4vw,3.2rem) 1.25rem 6rem}.suite-welcome,.designer-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;margin-bottom:2rem}.suite-welcome h1,.designer-intro h1{margin:0;color:var(--navy);font-size:clamp(2.5rem,6vw,5.2rem);line-height:.92;letter-spacing:-.065em}.suite-welcome>div>p:last-child,.designer-intro>div>p:last-child{margin:.9rem 0 0;color:var(--muted);font-size:1.05rem}.member-chip{flex:none;padding:.8rem 1rem;border:1px solid #d9d1eb;border-radius:999px;background:#fff;color:var(--navy);font-size:.82rem;font-weight:850;box-shadow:var(--shadow)}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.tool-card{position:relative;min-height:300px;padding:1.5rem;border:0;border-radius:29px;text-align:left;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;color:#fff;cursor:pointer;box-shadow:0 22px 55px rgba(30,15,72,.18);transition:transform .2s,box-shadow .2s}.tool-card:hover{transform:translateY(-4px);box-shadow:0 28px 68px rgba(30,15,72,.25)}.calculator-tool{background:linear-gradient(145deg,#170b3e 0%,#30137d 58%,#5f22d9 100%)}.designer-tool{background:linear-gradient(145deg,#062b66 0%,#1268d8 55%,#6b2ee8 100%)}.tool-card:after{content:"";position:absolute;width:270px;height:270px;border:55px solid rgba(255,255,255,.08);border-radius:50%;right:-120px;top:-110px}.tool-number{position:relative;z-index:1;font-size:.72rem;font-weight:900;letter-spacing:.13em;color:#e7ddff}.tool-icon{position:relative;z-index:1;display:grid;place-items:center;width:72px;height:72px;margin:2rem 0 1.2rem;border-radius:22px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);font-size:2.2rem;font-weight:900}.tool-copy{position:relative;z-index:1;display:grid;gap:.45rem}.tool-copy strong{font-size:clamp(1.75rem,4vw,2.7rem);letter-spacing:-.04em}.tool-copy small{max-width:440px;color:#ded6f2;font-size:.95rem;line-height:1.5}.tool-cta{position:relative;z-index:1;margin-top:auto;padding-top:1.4rem;font-size:.85rem;font-weight:900;color:var(--gold)}.future-tool{grid-column:1/-1;min-height:150px;background:#fff;color:var(--navy);border:1px dashed #c8bfda;box-shadow:none;cursor:default}.future-tool:hover{transform:none;box-shadow:none}.future-tool .tool-number{color:var(--purple)}.future-tool .tool-icon{position:absolute;right:2rem;top:50%;transform:translateY(-50%);margin:0;background:var(--soft);color:var(--purple)}.future-tool .tool-copy small{color:var(--muted)}

.designer-intro{margin-bottom:1.2rem}.designer-intro h1{font-size:clamp(2.2rem,5vw,4.5rem)}.designer-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin:1.4rem 0}.designer-steps span{display:flex;align-items:center;gap:.55rem;padding:.8rem 1rem;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--muted);font-size:.82rem;font-weight:850}.designer-steps b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft);color:var(--purple)}.designer-steps .active{background:var(--navy);color:#fff;border-color:var(--navy)}.designer-steps .active b{background:var(--gold);color:var(--navy)}.designer-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:1rem}.designer-panel{padding:1.3rem;background:rgba(255,255,255,.97);border:1px solid rgba(87,65,137,.12);border-radius:25px;box-shadow:var(--shadow)}.model-library{display:grid;align-content:start;gap:.7rem}.model-choice{width:100%;display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.8rem;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);text-align:left;font:inherit}.model-choice.active{border:2px solid var(--purple);background:#f7f3ff}.model-choice>span:nth-child(2){display:grid;gap:.2rem}.model-choice strong{font-size:.88rem;color:var(--navy)}.model-choice small{font-size:.72rem;color:var(--muted)}.model-choice em{font-size:.62rem;font-style:normal;font-weight:900;color:var(--purple)}.model-choice.locked{opacity:.58}.mini-model,.locked-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#e32835,#3158d8);color:#fff;font-size:1.4rem;font-weight:900}.mini-model:after{content:"8";font-size:.8rem;font-weight:900}.locked-icon{background:#eeeaf6;color:var(--purple)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.1rem}.panel-heading h2{margin:0;color:var(--navy);font-size:1.45rem;letter-spacing:-.025em}.panel-heading>span,.panel-heading>strong{padding:.48rem .7rem;border-radius:999px;background:var(--soft);color:var(--purple);font-size:.72rem;font-weight:900;white-space:nowrap}.panel-heading>div>p:last-child{color:var(--muted);margin:.35rem 0 0;font-size:.85rem}.builder-layout{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(320px,1.1fr);gap:1.2rem}.model-preview{min-height:360px;display:grid;place-items:center;border-radius:21px;background:radial-gradient(circle at 50% 35%,#fff 0,#f4f0fb 70%);border:1px solid var(--line);overflow:hidden}.model-preview>svg{width:min(90%,390px);filter:drop-shadow(0 18px 18px rgba(32,16,77,.15))}.model-controls{display:grid;align-content:start;gap:1rem}.model-controls fieldset{margin:0;padding:1rem;border:1px solid var(--line);border-radius:17px}.model-controls legend{padding:0 .4rem;font-size:.78rem;font-weight:850;color:#493f62}.rainbow-palette{display:flex;flex-wrap:wrap;gap:.55rem}.color-swatch{width:38px;height:38px;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #d8d1e5;cursor:pointer}.color-swatch.active{box-shadow:0 0 0 3px var(--navy);transform:scale(.94)}.weight-option{display:flex;grid-template-columns:auto 1fr;align-items:center;gap:.7rem;padding:.9rem;border:1px solid var(--line);border-radius:16px;background:#fbfaff}.weight-option input{width:22px;height:22px;min-height:0;accent-color:var(--purple)}.weight-option span{display:grid;gap:.16rem}.weight-option small{color:var(--muted);font-weight:600}.full-button{width:100%}.scene-panel,.materials-panel{margin-top:1rem}.upload-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.7rem 1rem;border-radius:13px;background:var(--purple);color:#fff;font-size:.85rem;font-weight:850;cursor:pointer;white-space:nowrap}.upload-button input{display:none}.scene-stage{position:relative;min-height:540px;overflow:hidden;border:1px solid #d8d1e5;border-radius:22px;background:linear-gradient(#eeebf4 68%,#ddd7e8 68%)}.scene-stage:after{content:"";position:absolute;left:0;right:0;top:68%;height:1px;background:rgba(43,28,84,.12);pointer-events:none}.scene-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#eae7ef}.scene-placeholder{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#7c748e}.scene-placeholder strong{font-size:1.4rem;color:#4b4262}.scene-placeholder span{margin-top:.4rem;font-size:.82rem}.scene-object{position:absolute;left:50%;top:67%;width:250px;touch-action:none;cursor:grab;z-index:2;transform:translate(-50%,-100%) scale(1);transform-origin:50% 100%;filter:drop-shadow(0 14px 12px rgba(22,10,57,.22));user-select:none}.scene-object:active{cursor:grabbing}.scene-object:focus-visible{outline:3px solid var(--blue);outline-offset:4px}.scene-object>svg{display:block;width:100%;height:auto}.scene-toolbar{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-top:.8rem}.scene-toolbar>label{display:flex;align-items:center;gap:.7rem;min-width:min(330px,100%);padding:.5rem .8rem;border:1px solid var(--line);border-radius:13px;background:#fff}.scene-toolbar input[type=range]{min-height:0;padding:0;border:0}.scene-toolbar button:disabled{opacity:.52;cursor:not-allowed}.designer-material-list{display:grid;gap:.55rem}.designer-material-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.8rem;border:1px solid var(--line);border-radius:15px;background:#fbfaff}.material-dot{width:38px;height:38px;margin:auto;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #d8d1e5}.material-dot.weight{display:grid;place-items:center;background:var(--navy);color:#fff;font-size:.65rem;font-weight:900}.designer-material-row strong{display:block;color:var(--navy);font-size:.9rem}.designer-material-row small{color:var(--muted);font-size:.74rem}.designer-material-row>em{font-style:normal;font-weight:900;color:var(--purple)}.material-total{font-size:.78rem!important}.designer-final-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}.designer-final-actions p{margin:0;color:var(--muted);font-size:.82rem}
@media(max-width:1050px){.workspace{grid-template-columns:1fr}.summary-card{position:static;order:-1;display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;align-items:center}.summary-card>p,.summary-card h3,.summary-highlight,.summary-card .gold-button,.summary-card>small{grid-column:1/-1}.summary-row{display:grid}.summary-highlight{grid-template-columns:1fr auto;align-items:center}.summary-highlight small{grid-column:1/-1}.expense-grid{grid-template-columns:repeat(2,1fr)}.designer-grid{grid-template-columns:1fr}.model-library{grid-template-columns:repeat(3,1fr)}.model-library>.eyebrow{grid-column:1/-1}.model-choice{grid-template-columns:42px 1fr}.model-choice em{display:none}.builder-layout{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.topbar{align-items:center;padding:.55rem .75rem}.brand img{width:44px;height:44px}.brand span{display:none}.brand strong{font-size:1.1rem}.top-actions{gap:.35rem}.button{padding:.65rem .75rem}.top-actions .button{font-size:0;width:42px;padding:0}.top-actions .button:before{font-size:1rem}.top-actions #saveBtn:before{content:"✓"}.top-actions #printBtn:before{content:"PDF";font-size:.65rem}.top-actions #resetBtn:before{content:"↺"}.app-shell{padding:1.3rem .8rem 5rem}.intro{display:block}.status-pill{display:inline-block;margin-top:1rem}.steps{position:sticky;top:65px;z-index:12;background:rgba(245,243,250,.95);padding:.45rem 0;backdrop-filter:blur(10px)}.step{font-size:0;padding:.5rem}.step span{font-size:.78rem}.card{border-radius:19px}.section-card,.result-section{padding:1rem}.section-heading{align-items:flex-start}.split-heading>.button{display:none}.mobile-add{display:block}.form-grid,.form-grid.three{grid-template-columns:1fr}.expense-grid{grid-template-columns:1fr}.result-hero{align-items:flex-end}.margin-ring{width:85px;height:85px;border-width:7px}.margin-ring strong{font-size:1.25rem}.result-grid{grid-template-columns:repeat(2,1fr)}.actual-panel{grid-template-columns:1fr}.summary-card{grid-template-columns:1fr 1fr}.summary-card h3{font-size:1.2rem}.summary-row{font-size:.78rem}.summary-highlight{grid-template-columns:1fr auto}.intro h1{font-size:2.45rem}}
@media(max-width:700px){.top-actions{gap:.28rem}.top-actions .button{width:38px}.action-group{gap:.28rem}.top-actions #archiveBtn:before{content:"▤"}.top-actions #homeBtn:before{content:"⌂"}.top-actions #logoutBtn:before{content:"×"}.member-card{padding:1.25rem;border-radius:21px}.member-card>img{width:64px;height:64px}.pin-grid{grid-template-columns:1fr}.archive-panel{padding:1rem}.archive-actions{display:grid;grid-template-columns:1fr 1fr}.project-item{grid-template-columns:1fr}.project-actions button{flex:1}.project-actions{display:flex}.suite-home,.designer-shell{padding:1.25rem .8rem 4rem}.suite-welcome,.designer-intro{display:block}.member-chip{display:inline-block;margin-top:1rem}.tool-grid{grid-template-columns:1fr}.tool-card{min-height:260px;padding:1.2rem}.future-tool{min-height:140px}.future-tool .tool-icon{right:1rem}.designer-steps{grid-template-columns:1fr}.designer-steps span:not(.active){display:none}.model-library{display:flex;overflow-x:auto}.model-library>.eyebrow{min-width:100%}.model-choice{min-width:245px}.builder-layout{grid-template-columns:1fr}.model-preview{min-height:300px}.panel-heading{display:block}.panel-heading>span,.panel-heading>strong,.panel-heading>.upload-button{display:inline-flex;margin-top:.7rem}.scene-stage{min-height:420px}.scene-object{width:190px}.scene-toolbar{display:grid}.scene-toolbar>*{width:100%}.designer-material-row{grid-template-columns:46px minmax(0,1fr) auto}.designer-final-actions{display:grid}.designer-final-actions .button{width:100%}}
@media print{body{background:#fff}.topbar,.steps,.intro .status-pill,.button,.summary-card,.mobile-add,.remove-row,.member-gate,.archive-dialog{display:none!important}.app-shell{max-width:none;padding:0}.intro{display:block;margin-bottom:1rem}.intro h1{font-size:2rem}.workspace{display:block}.content-stack{gap:.6rem}.card{box-shadow:none;break-inside:avoid}.section-card{padding:.8rem}.result-section{print-color-adjust:exact;-webkit-print-color-adjust:exact}.table-wrap{overflow:visible}table{min-width:0;font-size:.74rem}th,td{padding:.35rem}input,textarea{border:0;padding:.2rem;background:transparent}.expense-grid{grid-template-columns:repeat(3,1fr)}}

/* Gang Designer: modello fotografico e archivio */
.designer-name{margin:0 0 1rem}.centrepiece-render{position:relative;width:min(92%,390px);aspect-ratio:1.1/1;filter:drop-shadow(0 18px 18px rgba(32,16,77,.16))}.cluster-img{position:absolute;display:block;height:auto;object-fit:contain}.cluster-bottom{left:0;bottom:0;width:100%;z-index:1}.cluster-top{left:17%;bottom:31%;width:66%;z-index:2}.scene-object{filter:none}.scene-object .centrepiece-render{width:100%;filter:drop-shadow(0 14px 12px rgba(22,10,57,.25))}.designer-project-badge{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.72rem;font-weight:800}@media(max-width:700px){.top-actions #designerArchiveBtn:before{content:"▤";font-size:1rem}.top-actions #designerSaveBtn:before{content:"✓";font-size:1rem}}

/* Gang Designer: dati evento, colore fedele e cluster ruotato */
.designer-details{display:grid;grid-template-columns:1.2fr 1fr .72fr;gap:.75rem;margin:0 0 1rem}.centrepiece-render{position:relative;width:min(92%,390px);aspect-ratio:1.08/1;filter:drop-shadow(0 18px 18px rgba(32,16,77,.16))}.cluster-piece{position:absolute;display:block}.cluster-piece.cluster-bottom{left:0;bottom:0;width:100%;height:66%;z-index:1}.cluster-piece.cluster-top{left:14%;bottom:27%;width:72%;height:62%;z-index:2}.cluster-color,.cluster-shading{position:absolute;inset:0;width:100%;height:100%;display:block}.cluster-color{background:var(--cluster-color);-webkit-mask-image:var(--cluster-image);mask-image:var(--cluster-image);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.cluster-shading{object-fit:contain;mix-blend-mode:luminosity;opacity:.68;filter:grayscale(1) contrast(1.14)}.scene-object .centrepiece-render{width:100%}.designer-print-sheet{display:none}
@media(max-width:800px){.designer-details{grid-template-columns:1fr 1fr}.designer-details label:first-child{grid-column:1/-1}}
@media(max-width:700px){.designer-details{grid-template-columns:1fr}.designer-details label:first-child{grid-column:auto}.top-actions #designerPrintBtn:before{content:"PDF";font-size:.65rem}}
@page{size:A4 landscape;margin:10mm}
@media print{
  body.printing-designer>*:not(.designer-print-sheet){display:none!important}
  body.printing-designer{background:#fff!important}
  body.printing-designer .designer-print-sheet{display:grid!important;grid-template-rows:auto auto 1fr auto;width:277mm;height:190mm;margin:0;color:#15122a;background:#fff;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .designer-print-header{display:flex;align-items:center;gap:5mm;padding-bottom:4mm;border-bottom:1px solid #ded8eb}.designer-print-header img{width:18mm;height:18mm;object-fit:contain}.designer-print-header p{margin:0;color:#5f22d9;font-size:9pt;font-weight:900;letter-spacing:.12em}.designer-print-header h1{margin:1mm 0 0;color:#170b3e;font-size:23pt;line-height:1}
  .designer-print-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4mm;padding:4mm 0}.designer-print-meta p{display:grid;gap:1mm;margin:0;padding:3mm 4mm;border-radius:3mm;background:#f4f1fa}.designer-print-meta span{color:#6f6a83;font-size:8pt;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.designer-print-meta strong{color:#170b3e;font-size:12pt}
  .designer-print-scene{position:relative;min-height:0;overflow:hidden;border:1px solid #d8d1e5;border-radius:4mm;background:linear-gradient(#eeebf4 68%,#ddd7e8 68%)}.designer-print-background{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#eae7ef}.designer-print-neutral{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#776f8b}.designer-print-neutral strong{color:#493f62;font-size:18pt}.designer-print-neutral span{margin-top:2mm;font-size:10pt}.designer-print-object{position:absolute;width:62mm;transform-origin:50% 100%;z-index:2}.designer-print-object .centrepiece-render{width:100%;filter:drop-shadow(0 4mm 3mm rgba(22,10,57,.25))}.designer-print-sheet footer{padding-top:3mm;color:#817a92;font-size:8pt;text-align:right}
}

/* Fedeltà palette: il colore base resta identico al campione scelto. */
.cluster-shading{mix-blend-mode:multiply;opacity:.14;filter:grayscale(1) contrast(1.45)}

/* Le zone chiare restano della tinta scelta; si rinforzano solo le giunture. */
.cluster-shading{mix-blend-mode:multiply;opacity:.42;filter:grayscale(1) contrast(2.4) brightness(1.18)}

/* Vista reale: un palloncino frontale e tre posteriori nel cluster superiore. */
.cluster-piece.cluster-top{left:10%;bottom:25%;width:80%;height:60%}

/* Gang Designer: ciascun cluster e composto da quattro palloncini indipendenti. */
.centrepiece-render{aspect-ratio:1.04/1;overflow:visible}
.cluster-group{position:absolute;display:block}
.cluster-group.cluster-bottom{left:0;right:0;bottom:0;height:61%;z-index:auto}
.cluster-group.cluster-top{left:16%;right:auto;bottom:41%;width:68%;height:45%;z-index:auto}
.designer-balloon{position:absolute;display:block;aspect-ratio:560/576;isolation:isolate;filter:drop-shadow(0 2px 2px rgba(23,11,62,.18))}
.balloon-color,.balloon-shading,.balloon-highlight{position:absolute;inset:0;width:100%;height:100%;display:block}
.balloon-color{background:var(--balloon-color);-webkit-mask-image:url('/assets/balloon-single.png?v=1');mask-image:url('/assets/balloon-single.png?v=1');-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
.balloon-shading{object-fit:contain;mix-blend-mode:multiply;opacity:.42;filter:grayscale(1) contrast(2) brightness(1.15);pointer-events:none}
.balloon-highlight{object-fit:contain;mix-blend-mode:screen;opacity:.28;filter:grayscale(1) brightness(.53) contrast(16);pointer-events:none}
.brilliant-latex .balloon-color{background:radial-gradient(ellipse 8% 29% at 19% 46%,#fff 0%,#ffffffe8 23%,#ffffff80 49%,#ffffff00 100%),radial-gradient(ellipse 7% 28% at 83% 48%,#fff 0%,#ffffffb8 30%,#ffffff00 100%),radial-gradient(ellipse 39% 8% at 49% 83%,#ffffff70,transparent 100%),radial-gradient(ellipse 45% 42% at 50% 43%,#ffffff38 0%,transparent 58%,#00000060 100%),var(--balloon-color)}
.brilliant-latex .balloon-shading{opacity:.22;filter:grayscale(1) contrast(1.6) brightness(1.2)}
.brilliant-latex .balloon-highlight{opacity:.12}
.cluster-bottom .balloon-1{left:1%;top:-3%;width:46%;z-index:1}
.cluster-bottom .balloon-2{right:1%;top:-3%;width:46%;z-index:1}
/* Depth: lower rear, upper rear/sides, lower front, upper balloon 4. */
.cluster-bottom .balloon-3{left:0;bottom:0;width:56%;z-index:5}
.cluster-bottom .balloon-4{right:0;bottom:0;width:56%;z-index:5}
.cluster-top .balloon-1{left:0;top:14%;width:50%;z-index:3}
.cluster-top .balloon-2{left:25%;top:8%;width:50%;z-index:2}
.cluster-top .balloon-3{right:0;top:14%;width:50%;z-index:3}
.cluster-top .balloon-4{left:25%;bottom:0;width:50%;z-index:6}

/* Added elements share the original balloon texture; cluster geometry stays fixed. */
.star-chooser{margin:.8rem 0;border:1px solid var(--line);border-radius:14px;padding:.7rem}
.star-chooser summary{display:flex;align-items:center;gap:.6rem;cursor:pointer;min-height:44px;color:var(--navy);font-size:1rem}
.star-chooser summary img{width:38px;height:38px;object-fit:contain}
.star-chooser .full-button{margin-top:1rem}
.foil-palette{display:flex;flex-wrap:wrap;gap:.5rem}
.star-chooser .color-selection{min-height:0}
.star-element{aspect-ratio:1!important;isolation:isolate}
.foil-star{position:absolute;inset:0;isolation:isolate;pointer-events:none}
.foil-star-colour,.foil-star-shading,.foil-star-highlight{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.foil-star-colour{background:var(--star-colour);mask:url('/assets/foil-star.png?v=1') center/contain no-repeat;-webkit-mask:url('/assets/foil-star.png?v=1') center/contain no-repeat}
.foil-star-shading{mix-blend-mode:multiply;filter:grayscale(1) contrast(1.2);opacity:.78}
.foil-heart .foil-star-colour{mask-image:url('/assets/foil-heart.png?v=2');-webkit-mask-image:url('/assets/foil-heart.png?v=2')}
.star-element.heart-element .element-hit{clip-path:polygon(50% 17%,69% 5%,88% 10%,98% 30%,94% 51%,50% 96%,6% 51%,2% 30%,12% 10%,31% 5%)}
.foil-star-highlight{mix-blend-mode:screen;filter:grayscale(1) brightness(.65) contrast(4);opacity:.5}
.star-element .element-hit{border-radius:12px;clip-path:polygon(50% 5%,65% 31%,96% 35%,73% 59%,78% 91%,50% 76%,22% 91%,27% 59%,4% 35%,35% 31%)}
.star-ribbons{position:absolute;inset:0;pointer-events:none;z-index:0}
.star-ribbon{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.star-ribbon path{fill:none;stroke:#a69cb7;stroke-width:.65;stroke-linecap:round}
.designer-added-element{position:absolute;display:block;aspect-ratio:560/576;transform:translate(-50%,-50%);z-index:10;pointer-events:none}
.designer-added-element .single-balloon{inset:0;width:100%;height:100%}
.element-hit{position:absolute;inset:8%;border:0;padding:0;background:transparent;border-radius:50%;pointer-events:auto;touch-action:none;cursor:grab}
.element-hit:active{cursor:grabbing}
.designer-added-element.selected .element-hit{box-shadow:none}
.element-hit:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.element-list{display:flex;gap:.45rem;flex-wrap:wrap;margin:.75rem 0}
.element-controls label{margin:.8rem 0}
.element-controls input[type=range]{padding:0;min-height:32px;accent-color:var(--purple)}
.element-material{padding:.65rem;border-radius:10px;background:var(--soft);color:var(--navy);font-size:.85rem;font-weight:750}

/* Colour controls: approved geometry and photographic layers remain unchanged. */
.color-help,.color-selection{font-size:.875rem;line-height:1.5;color:var(--muted);margin:.65rem 0}
.color-selection{color:var(--navy);font-weight:750;min-height:2.6em}
.color-mode-label{font-size:.875rem;gap:.4rem}
.color-mode-label select{font:inherit;color:var(--navy);background:#fbfaff;border:1px solid var(--line);border-radius:10px;min-height:44px;padding:.5rem;width:100%}
.balloon-selectors{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.8rem}
.balloon-selector{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-height:44px;min-width:44px;padding:.4rem;border:1px solid #cec5de;border-radius:10px;background:white;color:var(--navy);font:inherit;font-size:.875rem;font-weight:800;cursor:pointer}
.balloon-selector.active{outline:2px solid var(--purple);outline-offset:1px;background:#f5f0ff}
.balloon-selector>span{width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1px #0002}
#modelPreview .cluster-group,#modelPreview .designer-balloon{pointer-events:none}
.balloon-hit{position:absolute;inset:8%;border-radius:50%;clip-path:ellipse(50% 50% at 50% 50%);pointer-events:auto;cursor:pointer;outline:0}
.balloon-hit:focus-visible{box-shadow:inset 0 0 0 3px var(--gold)}

/* Full-width Designer: keep the libraries at the page edges. */
.designer-shell{width:100%;max-width:none;margin:0;padding-left:clamp(10px,1vw,20px);padding-right:clamp(10px,1vw,20px)}
.designer-grid{grid-template-columns:190px minmax(0,1fr) 270px;align-items:start;gap:14px}
.designer-grid>.designer-panel{min-width:0;padding:1rem}
.designer-grid .model-library{display:grid;grid-template-columns:1fr;overflow:visible}
.designer-grid .model-choice{min-width:0;grid-template-columns:40px minmax(0,1fr);gap:.6rem}
.designer-grid .model-choice em{grid-column:2}
.designer-grid .mini-model,.designer-grid .locked-icon{width:38px;height:38px}
.designer-grid .builder-layout{grid-template-columns:minmax(0,1fr)}
.designer-grid .model-preview{min-height:540px;padding:20px;align-content:center}
.model-workspace{position:relative;width:100%;max-width:680px;min-width:0}
.workspace-ruler{position:absolute;inset:0 auto 0 0;width:38px;z-index:30;background:rgba(249,250,255,.94);border-right:1px solid #b8c5df;overflow:hidden;pointer-events:none}.ruler-tick{position:absolute;right:0;width:9px;border-top:1px solid #a5b3ce;height:0}.ruler-tick.major{width:100%;border-color:#7e8eaf;color:var(--navy);font-size:12px;padding-left:2px;line-height:18px;text-shadow:0 0 3px white}.composition-card{pointer-events:none}.composition-card .composition-model,.composition-caption{pointer-events:auto}.composition-caption{cursor:grab!important;touch-action:none}.composition-caption:active{cursor:grabbing!important}
.workspace-toolbar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.workspace-toolbar .button{font-size:.875rem;min-height:42px}.workspace-toolbar output{min-width:48px;text-align:center;font-weight:800;color:var(--navy)}
#modelPreview .composition-caption{transform:translateX(-50%) scale(var(--caption-scale,1));transform-origin:50% 100%;z-index:12}
.designer-grid #modelPreview.multi-workspace{display:block;position:relative;height:480px;min-height:0;padding:0;overflow:hidden;touch-action:none;background-color:#f9faff;background-image:radial-gradient(#cdd8ed 1px,transparent 1px);background-size:20px 20px}
.composition-world{position:absolute;left:50%;top:50%;transform-origin:center;will-change:transform}.composition-card{position:absolute;top:0;border:1px solid transparent;border-radius:12px;box-sizing:border-box;cursor:pointer}.composition-card.selected{border-color:var(--purple);background:rgba(117,59,240,.025)}.composition-model{position:absolute;width:104px;height:100px}.composition-model>.centrepiece-render{width:104px;max-width:none;margin:0}.composition-caption{position:absolute;bottom:0;left:50%;transform:translateX(-50%);white-space:nowrap;border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:white;color:var(--navy);font-size:14px;cursor:pointer}.composition-card.selected .composition-caption{background:var(--purple);color:white}.pan-mode,.pan-mode *{cursor:grab!important}.pan-mode:active,.pan-mode:active *{cursor:grabbing!important}
.composition-library{grid-column:1/-1}.composition-list-item{display:grid;gap:5px;width:100%;text-align:left;padding:12px;margin-top:8px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--navy);cursor:pointer;font:inherit}.composition-list-item small{font-size:13px;color:var(--muted)}.composition-list-item.active{border-color:var(--purple);background:#f2edff}.designer-grid .model-library>.color-help{grid-column:1/-1}
#sceneObject{position:absolute;inset:0;width:auto;transform:none;pointer-events:none;cursor:default;filter:none}.scene-composition{position:absolute;aspect-ratio:1.04/1;transform:translate(-50%,-100%);pointer-events:auto;cursor:grab;touch-action:none;outline-offset:5px}.scene-composition>.centrepiece-render{width:100%;max-width:none}.scene-composition.selected{filter:none;border-radius:6px}.scene-composition-label{display:none!important}.scene-toolbar select{min-height:40px;max-width:100%;font:inherit;border:1px solid var(--line);border-radius:8px;color:var(--navy)}.multi-print-layer{position:absolute;inset:0;z-index:2}.multi-print-layer .scene-composition{pointer-events:none}
@media(max-width:760px){.designer-grid #modelPreview.multi-workspace{height:380px}.designer-grid .model-library{display:grid;overflow:visible}.composition-library #compositionList{display:flex;gap:8px;overflow:auto}.composition-list-item{min-width:155px}.composition-library{min-width:0}.workspace-toolbar .button{padding:8px 10px}}
#modelPreview .model-workspace>.centrepiece-render{position:absolute;margin:0;max-width:none}
.designer-grid .model-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.designer-grid .model-controls>.color-help,.designer-grid .model-controls>.weight-option,.designer-grid .model-controls>#addToScene{grid-column:1/-1}
.elements-library .element-controls{margin:0;padding:0;border:0;min-width:0}
.elements-library legend{font-size:.85rem;color:var(--muted);margin-bottom:.8rem}
.element-choice-icon{display:grid;place-items:center;width:38px;height:42px;border-radius:50%;background:var(--soft);color:var(--purple);font-size:1.8rem}
.element-choice{cursor:pointer}
.elements-library select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;background:#fbfaff;padding:.65rem;color:var(--navy);font:inherit}
.designer-grid .designer-details{grid-template-columns:1.2fr 1fr .8fr}
.designer-grid .designer-details label:first-child{grid-column:auto}
@media(min-width:1001px) and (max-width:1200px){.designer-grid{grid-template-columns:160px minmax(0,1fr) 230px;gap:10px}.designer-grid>.designer-panel{padding:12px}.designer-grid .model-controls{grid-template-columns:1fr}.designer-grid .designer-details{grid-template-columns:1fr 1fr}.designer-grid .designer-details label:first-child{grid-column:1/-1}}
@media(max-width:1000px){.designer-grid{grid-template-columns:minmax(0,1fr) 250px}.designer-grid .model-library{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}.designer-grid .model-library>.eyebrow{grid-column:1/-1}.designer-grid .model-preview{min-height:420px}.designer-grid .designer-details{grid-template-columns:1fr 1fr}.designer-grid .designer-details label:first-child{grid-column:1/-1}}
@media(max-width:760px){.designer-grid{grid-template-columns:minmax(0,1fr)}.designer-grid .model-library{grid-template-columns:1fr}.designer-grid .model-library .locked{display:none}.designer-grid .model-controls{grid-template-columns:1fr}.designer-grid .model-preview{min-height:350px;padding:12px}.designer-grid .designer-details{grid-template-columns:1fr}.elements-library{grid-column:1}.elements-library .rainbow-palette{gap:.7rem}}

.foil-round .foil-star-colour{mask-image:url("/assets/foil-round.png?v=1");-webkit-mask-image:url("/assets/foil-round.png?v=1")}
.star-element.round-element .element-hit{clip-path:ellipse(49% 49% at 50% 50%)}
.designer-added-element.helium-element{aspect-ratio:2/3}
.helium-latex .balloon-color{mask-image:url('/assets/balloon-helium.png?v=1');-webkit-mask-image:url('/assets/balloon-helium.png?v=1')}
.helium-element .element-hit{clip-path:ellipse(48% 48% at 50% 50%)}
.palette-filter{display:grid;gap:6px;width:100%;font-size:14px}
.palette-filter select{min-height:40px;border:1px solid var(--line);border-radius:10px;padding:8px;background:#fff;color:var(--navy);font:inherit;max-width:100%}
.coded-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));width:100%;gap:7px;max-height:210px;overflow-y:auto;padding:5px}
.coded-swatch{display:grid;justify-items:center;gap:4px;border:1px solid transparent;border-radius:8px;background:white;cursor:pointer;padding:4px 1px;color:var(--navy);font:inherit}
.coded-swatch span{width:28px;height:28px;border-radius:50%;border:1px solid #c8c8ce;display:block}
.coded-swatch small{font-size:12px}.coded-swatch.active{border-color:var(--purple);background:var(--soft)}
.palette-selected{font-size:12px;line-height:1.5;color:var(--muted);width:100%;margin:5px 0}
#latexDraftPalette{margin:14px 0}
.size-entry{display:grid;gap:6px;margin:10px 0;font-size:14px;color:var(--navy)}
.size-entry input,.size-entry select{width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;font:inherit;color:var(--navy);background:white}
.size-entry output{font-size:13px;font-weight:500;color:var(--muted)}
.size-material{font-size:13px;line-height:1.5;color:var(--purple);margin:8px 0 14px}
@media(min-width:1001px){.designer-grid{grid-template-columns:270px minmax(0,1fr) 270px}.designer-grid .model-library{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}}
.designer-grid .model-library .model-controls{grid-template-columns:minmax(0,1fr);grid-column:1/-1;gap:14px}
.model-library .model-controls fieldset{min-width:0;padding:10px}
.model-library .model-controls legend{line-height:1.5;font-size:14px}
@media(max-width:1000px) and (min-width:761px){.designer-grid .model-library .model-controls{grid-template-columns:1fr 1fr}.model-library #compositionList{display:flex;gap:8px;overflow:auto}}
.elements-library{position:sticky;top:16px;align-self:start;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.element-tabs{display:flex;gap:6px;margin-bottom:14px;position:sticky;top:0;background:white;z-index:2;padding:6px 0}
.element-tabs button{flex:1;border:1px solid var(--line);border-radius:12px;padding:12px 5px;background:#fff;color:var(--navy);font:inherit;font-weight:700;cursor:pointer}
.element-tabs button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}
.element-shapes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:16px}
.element-shapes button{min-width:0;border:1px solid var(--line);border-radius:10px;padding:8px 2px;background:white;color:var(--navy);cursor:pointer;font:inherit;font-size:12px}
.element-shapes img{display:block;width:34px;height:38px;object-fit:contain;margin:0 auto 6px}
.element-shapes button[aria-pressed=true]{border-color:var(--purple);box-shadow:0 0 0 1px var(--purple);background:var(--soft)}
.elements-library .star-chooser{border:0;margin:0;padding:0}
.shape-heading{display:flex;align-items:center;gap:10px;margin:10px 0 16px;color:var(--navy)}
.shape-heading img{width:40px;height:40px;object-fit:contain}
.elements-library .foil-palette{gap:8px;margin:12px 0;max-height:180px;overflow-y:auto;padding:4px}
.elements-library .foil-palette .color-swatch{width:30px;height:30px;flex-shrink:0}
.element-inventory{border-top:1px solid var(--line);margin-top:18px;padding-top:8px}
.elements-library .element-list{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:5px 3px 10px;max-width:100%}
.elements-library .element-list>button{flex-shrink:0}
@media(max-width:760px){.elements-library{position:static;max-height:70dvh}.element-shapes button{font-size:14px}.element-shapes img{width:40px;height:44px}}

/* Bubble shells overlay the contents; decorations use the same world scale. */
.extra-element{aspect-ratio:1;transform:translate(-50%,-50%) rotate(var(--element-rotation,0deg));container-type:inline-size}
.extra-element .element-hit{clip-path:none;border-radius:8px}
.bubble-element .element-hit{clip-path:circle(50% at 50% 50%)}
.bubble-interior{position:absolute;inset:0;border-radius:50%;overflow:hidden}
.bubble-shell{position:absolute;width:116.28%;height:119.05%;left:-5.81%;top:-4.76%;max-width:none!important;opacity:.65;pointer-events:none}
.bubble-inner-balloon,.bubble-inner-foil,.bubble-inner-deco{position:absolute;display:block;transform:translate(-50%,-50%);aspect-ratio:1;left:50%;top:50%}
.bubble-inner-balloon{aspect-ratio:560/576}.bubble-inner-balloon .single-balloon{inset:0;width:100%;height:100%}
.bubble-inner-foil .foil-star{position:absolute;inset:0}
.bubble-inner-deco{top:65%}
.decoration-image,.decoration-tint,.decoration-tint img,.decoration-tint>span{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.decoration-tint{isolation:isolate}.decoration-tint>span{background:var(--deco-color);mask-image:var(--deco-image);-webkit-mask-image:var(--deco-image);mask-size:contain;-webkit-mask-size:contain;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center}
.decoration-tint img{mix-blend-mode:multiply;opacity:.8;filter:grayscale(1)}
.deco-dots{position:absolute;inset:0}.deco-dots i{position:absolute;width:10%;height:10%;border-radius:50%;background:var(--deco-color);transform:translate(-50%,-50%)}
.personalized-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:16cqw;line-height:1.05;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:500}
.text-element{aspect-ratio:2/1}.text-element .element-hit{clip-path:none}
.text-tool-icon{display:block;font:32px Georgia,serif;height:38px;margin-bottom:6px}
.bubble-content-card{border:1px solid var(--line);border-radius:10px;margin:10px 0;padding:10px;min-width:0}.bubble-content-card summary{cursor:pointer;font-size:14px;font-weight:700;margin-bottom:8px}
.bubble-content-card label,#extraElementEditor label,.shape-pane label{display:grid;gap:6px;font-size:14px;margin:10px 0}
.bubble-content-card .check-label{display:flex;align-items:center}.check-label input{width:auto}
.content-colors{display:grid;grid-template-columns:1fr 1fr;gap:8px}.content-color-sample{display:block;height:12px;border-radius:5px;border:1px solid #c5cada}
.bubble-content-card .star-palette{display:flex;flex-wrap:wrap;gap:5px}.bubble-content-card .color-swatch{width:28px;height:28px}
.bubble-attach-actions{display:flex;flex-wrap:wrap;gap:6px}.bubble-content-card .button{font-size:14px;padding:9px;margin-top:6px}
#extraElementEditor input[type=color],.shape-pane input[type=color]{width:100%;height:40px;padding:2px;border:1px solid var(--line);border-radius:8px}
#extraElementEditor textarea,.shape-pane textarea{width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid var(--line);border-radius:8px;resize:vertical}

.fixed-decor-palette,.inner-latex-palette{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;max-height:165px;overflow:auto;padding:3px}.fixed-decor-palette .color-swatch{width:28px;height:28px;flex:0 0 28px}.inner-latex-palette .coded-swatch{width:34px;padding:2px;flex:0 0 34px;border:1px solid var(--line);border-radius:6px;background:white;cursor:pointer}.inner-latex-palette .coded-swatch span{display:block;height:22px;border-radius:4px}.inner-latex-palette .coded-swatch small{font-size:10px}.inner-latex-palette .coded-swatch.active{outline:2px solid var(--purple)}
.bubble-interior{z-index:2;pointer-events:none}.bubble-shell{z-index:3}.bubble-element>.element-hit{z-index:1}.bubble-content-item{pointer-events:none}.bubble-content-hit{position:absolute;inset:4%;border:0;background:transparent;padding:0;cursor:grab;touch-action:none;pointer-events:auto;border-radius:50%}.bubble-content-hit:focus-visible{outline:2px solid var(--purple)}.single-deco-dot{position:absolute;inset:0;display:block;border-radius:50%}

/* Keep the ruler outside the drawable viewport and common actions close to the canvas. */
.construction-viewport{position:absolute;inset:0 0 0 38px;overflow:hidden}
.workspace-ruler{background:#f9faff;box-sizing:border-box}
.construction-actions{align-items:stretch;gap:8px}
.construction-actions #addToScene{width:100%;flex-basis:100%;margin:0}
.element-quick-access{position:sticky;top:0;z-index:8;background:#fff;padding:4px 0 12px;border-bottom:1px solid var(--line);margin-bottom:12px}
.element-quick-access .element-tabs{position:static;margin:0;padding:0 0 8px}
.element-quick-access .element-inventory{border:0;margin:0;padding:0}
.element-quick-access .color-selection{margin:2px 0}
.element-quick-access .element-list{margin:0;padding-bottom:8px}
.element-quick-access #elementListEmpty{margin:6px 0}
.element-quick-access #duplicateElement{min-height:38px;font-size:14px;padding:8px}
.element-quick-access #duplicateElement:disabled{opacity:.5;cursor:not-allowed}

/* Flexmetal numbers: physical height, original transparent image proportions. */
.number-art{position:relative;display:block;width:100%;height:100%;pointer-events:none}.number-art img{position:absolute;max-width:none;object-fit:fill;pointer-events:none}.number-preview{height:110px;display:flex;justify-content:center;margin:12px 0}.number-preview .number-art{height:100%;width:auto}.number-digits{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:8px 0 14px}.number-digits button{border:1px solid #d9deef;border-radius:8px;background:white;padding:9px;color:#16254d}.number-digits button[aria-pressed=true]{border-color:#6335ff;background:#eee9ff;color:#4b20ec}.number-element{container-type:normal}

/* Topiary shares the calibrated workspace scale and existing latex texture. */
.topiary-balloon{position:absolute;transform:translate(-50%,-50%);pointer-events:none;border-radius:50%}.topiary-latex{width:119.66%;height:122.86%;left:-9.83%;top:-10%;aspect-ratio:auto}.topiary-hit{position:absolute;inset:0;border:0;border-radius:50%;background:transparent;pointer-events:auto;cursor:pointer;padding:0;touch-action:none}.topiary-balloon.selected .topiary-hit{box-shadow:inset 0 0 0 2px #7245ff}.topiary-hit:focus-visible{outline:3px solid #7245ff}.topiary-rotation{background:#f6f7fc;border:1px solid #e2e5f1;border-radius:12px;padding:12px;margin:10px 0}.topiary-rotation label{display:block}.topiary-rotation input{width:100%;margin:10px 0}.topiary-rotation>div{display:flex;gap:8px}.topiary-model-icon{width:48px;height:48px;object-fit:contain}#topiarySelectors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}#topiarySelectors .balloon-selector{padding:6px;min-width:0}#topiarySelectors .balloon-selector:first-child{grid-column:1/-1}.topiary-render{isolation:isolate}

/* Foil weight uses its full alpha bounds for the calibrated 8–10 cm height. */
.foil-weight{position:absolute;display:block;z-index:2;pointer-events:none}.foil-weight-art{position:absolute;inset:0;isolation:isolate}.foil-weight-tint,.foil-weight-shading,.foil-weight-highlight{position:absolute;width:var(--weight-image-width);height:var(--weight-image-height);left:var(--weight-image-left);top:var(--weight-image-top);max-width:none;pointer-events:none}.foil-weight-tint{background:var(--weight-color);mask:url('/assets/weight-foil.png') center/100% 100% no-repeat;-webkit-mask:url('/assets/weight-foil.png') center/100% 100% no-repeat}.foil-weight-shading{mix-blend-mode:multiply;filter:grayscale(1);opacity:.9}.foil-weight-highlight{mix-blend-mode:screen;filter:grayscale(1) brightness(.7) contrast(3);opacity:.65}.foil-weight-art.silver .foil-weight-tint,.foil-weight-art.silver .foil-weight-highlight{display:none}.foil-weight-art.silver .foil-weight-shading{mix-blend-mode:normal;filter:none;opacity:1}

/* Rod paths use centimeter geometry; handles are screen-size accessible controls. */
.rod-element{transform:none;aspect-ratio:auto;pointer-events:none}.rod-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.rod-hit{pointer-events:stroke;cursor:grab;touch-action:none}.rod-handle{position:absolute;width:calc(18px * var(--caption-scale,1));height:calc(18px * var(--caption-scale,1));min-width:0;padding:0;border:2px solid #6835ef;border-radius:50%;background:white;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;cursor:move}.rod-handle:focus-visible{outline:3px solid #6835ef;outline-offset:3px}.rod-joint{position:absolute;width:calc(10px * var(--caption-scale,1));height:calc(10px * var(--caption-scale,1));border-radius:50%;background:#6835ef;transform:translate(-50%,-50%)}.rod-tool-icon{font-size:32px;color:#65728a}.rod-model-links{margin-top:14px;padding-top:10px;border-top:1px solid #e1e4f0}

.tassel-element .decoration-tint img,.tassel-preview .decoration-tint img{object-fit:fill}.tassel-element .decoration-tint>span,.tassel-preview .decoration-tint>span{mask-size:100% 100%;-webkit-mask-size:100% 100%}.tassel-preview{position:relative;width:54px;height:135px;margin:12px auto}.tassel-element{min-height:0}

.tassel-solid img{visibility:hidden}

.group-tools{padding:14px;border:1px solid #d8d3ea;border-radius:12px;margin-bottom:14px}.group-tools summary{font-weight:700;cursor:pointer}.group-choice{display:flex!important;align-items:center;gap:10px;padding:7px 0}.group-choice input{width:18px!important;height:18px;flex:none}.group-choice small{display:block;color:#69718b;font-size:12px}.group-outline{position:absolute;border:1px solid #753bf0;border-radius:10px;pointer-events:none;box-sizing:border-box}.group-outline .composition-caption{pointer-events:auto;background:#753bf0;color:white}.composition-card.in-work-group{border-color:transparent;background:none}.in-work-group>.composition-caption{display:none}

.column-balloon{position:absolute;transform:translate(-50%,-50%);pointer-events:none}.column-balloon .topiary-hit{pointer-events:auto}.column-balloon-selected{outline:2px solid #753bf0!important}.column-render{overflow:visible;isolation:isolate}

#columnControls{min-width:0}#columnControls .column-color-actions{display:flex;flex-wrap:wrap;gap:.4rem;margin:.5rem 0 .8rem;min-width:0}#columnControls .column-color-actions .button{flex:0 1 auto;width:auto;min-width:0;max-width:100%;padding:.45rem .65rem;font-size:.875rem;line-height:1.2;margin:0;white-space:normal}#columnSlots,#columnBalloons{flex-wrap:wrap;min-width:0}

#modelPreview .composition-caption{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#modelPreview .composition-caption:focus-visible{outline:0}
#modelPreview .composition-card:focus-within{outline:2px solid var(--purple)}
#modelPreview .column-balloon,#modelPreview .topiary-balloon,#modelPreview .designer-balloon{pointer-events:auto;cursor:grab;touch-action:none}
#modelPreview .column-balloon:active,#modelPreview .topiary-balloon:active,#modelPreview .designer-balloon:active{cursor:grabbing}
.construction-actions+.composition-library{margin-top:.7rem;width:100%;min-width:0}
.construction-actions+.composition-library #compositionList{flex-wrap:wrap;overflow:visible}


.model-tilt-content{position:absolute;inset:0;width:100%;height:100%;isolation:isolate}.tilt-stepper{display:flex;align-items:center;gap:8px;width:100%;min-width:0}.tilt-stepper input[type=range]{flex:1;width:0;min-width:0;margin:0}.tilt-stepper button{flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #ddd9eb;border-radius:8px;background:#f4f1fc;color:#5220bb;font-size:22px;line-height:1;cursor:pointer}.tilt-control{margin:8px 0}.tilt-control label{margin-bottom:6px}

.modelling-preview{height:105px;display:flex;justify-content:center;padding:8px;margin:5px 0 10px;background:#f6f7fb;border-radius:12px}.modelling-preview img{height:100%;max-width:85%;object-fit:contain}.modelling-colors{margin:10px 0}.modelling-colors summary{font-size:14px;cursor:pointer}.modelling-colors .inner-latex-palette{max-height:180px;overflow-y:auto;padding:8px 2px}.modelling-color-slots{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.modelling-color-slots button{display:flex;gap:5px;align-items:center;padding:6px 8px;font-size:13px;border:1px solid #d6daea;border-radius:7px;background:#fff}.modelling-color-slots button[aria-pressed=true]{border-color:#7139e9;background:#f0eaff}.modelling-color-slots i{width:14px;height:14px;border:1px solid #b9bfd0;border-radius:50%}.modelling-element .rod-hit:focus-visible{stroke:#7939f244;outline:none}

.modelling-preview svg{width:100%;height:100%;overflow:visible}

.arch-guide{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.arch-guide polyline{fill:none;stroke:#867caa;stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.arch-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}.arch-dimensions label,.arch-dimensions input{min-width:0;width:100%}.arch-actions{display:grid;gap:6px;margin:8px 0}.arch-actions button{white-space:normal;padding:9px;font-size:13px}.arch-color-slots{gap:5px;flex-wrap:wrap}.arch-color-slots>button{max-width:100%;min-width:28px;font-size:12px;padding:5px 7px}.arch-render{pointer-events:none}

/* Stable physical workspace, independent of the models. */
.construction-viewport{inset:0 0 24px 38px}.composition-world{background:transparent;outline:1px solid #b8c5df;overflow:hidden;contain:layout paint}.workspace-ruler{bottom:24px}.workspace-ruler-horizontal{position:absolute;bottom:0;left:38px;right:0;height:24px;background:#f9faff;border-top:1px solid #b8c5df;overflow:hidden;z-index:30;pointer-events:none}.workspace-ruler-horizontal .ruler-tick{top:0;right:auto;height:6px;width:0;border-top:0;border-left:1px solid #a5b3ce}.workspace-ruler-horizontal .ruler-tick.major{height:24px;width:45px;line-height:24px;padding-left:3px;font-size:12px}.workspace-empty{position:absolute;inset:45% 10% auto;text-align:center;color:#465977;pointer-events:none}.multi-workspace{min-height:560px}.composition-model{touch-action:none}.arch-actions{display:flex;flex-wrap:wrap;gap:6px}.arch-actions button{white-space:normal;flex:1;min-width:95px;font-size:13px}

.workspace-disabled{opacity:.45;pointer-events:none}
.structure-fields{display:grid;gap:10px;padding-top:12px}.structure-size{display:grid;grid-template-columns:1fr 1fr;gap:8px}.structure-size input{min-width:0;width:100%}.structure-guide{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}.structure-hit{pointer-events:stroke;cursor:grab}.structure-render{overflow:visible}

.composition-card:not(.selected) .column-balloon-selected{outline:none!important}.composition-card:not(.selected) .designer-added-element.selected{outline:none;box-shadow:none}

.composition-card:not(.selected) .arch-guide{display:none}
.designer-shell .designer-intro{margin-bottom:16px;align-items:center}.designer-shell .designer-intro h1{font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.1}.model-symbol{width:42px;height:42px;flex:0 0 42px;color:var(--purple)}
.shimmer-panel{position:absolute;display:block;border:0;padding:0;border-radius:0;background-repeat:repeat;appearance:none;z-index:1;cursor:grab;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.shimmer-panel.selected{outline:1.5px solid #7c3aed;outline-offset:-1.5px}
.shimmer-directions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.shimmer-directions .button{min-width:0;padding:8px;font-size:13px}
.shimmer-tool-icon{display:block;width:36px;height:36px;background:repeating-conic-gradient(#e4cb80 0% 25%,#806624 0% 50%) 0 0/9px 9px;border:1px solid #d8af43}
.graphic-element{container-type:normal}.graphic-element>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.graphic-size-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.graphic-size-fields label,.graphic-size-fields input{min-width:0;width:100%}
.graphic-draft-preview{height:150px;display:flex;align-items:center;justify-content:center;margin:12px 0;background:repeating-conic-gradient(#e4e0ed 0% 25%,#fff 0% 50%) 0 0/14px 14px;border-radius:8px;overflow:hidden}.graphic-draft-preview img{max-width:100%;max-height:100%;object-fit:contain}.graphic-upload input{max-width:100%;font-size:12px}

/* Compact event header and project-wide imported graphics. */
.designer-intro{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:12px}.designer-intro h1{font-size:clamp(24px,2.6vw,38px);white-space:nowrap;letter-spacing:-.04em}.designer-intro>.designer-details{flex:1;min-width:390px;margin:0;grid-template-columns:1fr 1fr .85fr;gap:10px}.designer-intro .designer-details label{font-size:12px}.designer-intro .designer-details input{min-height:38px;padding:8px 10px}.designer-intro .status-pill{font-size:11px;padding:7px 10px}.designer-grid #modelPreview.multi-workspace{height:clamp(480px,65vh,820px)}
.composition-card{z-index:1}.group-outline{z-index:4}.project-graphics-card{pointer-events:none!important;border:0!important;background:none!important;outline:0!important}.project-graphics-card .composition-model,.project-graphics-render{pointer-events:none}.project-graphics-card .graphic-element,.project-graphics-card .element-hit{pointer-events:auto}.project-graphics-render{filter:none!important}
@media(max-width:760px){.designer-intro>.designer-details{min-width:0;flex-basis:100%;grid-template-columns:1fr 1fr}.designer-intro .designer-details label:first-child{grid-column:1/-1}.designer-grid #modelPreview.multi-workspace{height:460px}.designer-intro .designer-details input{font-size:16px}}
@media(max-width:400px){.designer-intro>.designer-details{grid-template-columns:1fr}.designer-intro .designer-details label:first-child{grid-column:auto}}

.panel-shape-preview{height:150px;max-width:100%;margin:8px auto 14px}.scene-layer-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 14px}.scene-layer-buttons .button{padding:7px 9px;font-size:12px;min-width:0}.project-graphics-card .designer-added-element{pointer-events:auto}.group-outline{z-index:2147480000}

.flower-angle{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:6px;align-items:center}.flower-angle button{border:1px solid var(--line);border-radius:6px;background:white;color:var(--purple);height:30px}.flower-angle input{width:100%;min-width:0}

/* Physical artwork fills its own measured box; nested texture SVGs keep their tile dimensions. */
.furniture-body>svg,.panel-shape-preview>svg{display:block;width:100%;height:100%;filter:none}

.range-stepper{display:flex;align-items:center;gap:8px;width:100%;min-width:0}.range-stepper input[type=range]{flex:1;width:0;min-width:0;margin:0}.range-stepper button{flex:0 0 34px;min-height:34px;padding:0;border:1px solid #ddd9eb;border-radius:8px;background:#f4f1fc;color:#5220bb;font-size:22px;cursor:pointer}.inventory-detail{display:flex;gap:5px;margin:4px 0 4px 12px;font-size:12px}.inventory-detail button{border:1px solid #e4dff1;background:#f8f6fd;color:#5220bb;border-radius:6px;padding:7px;cursor:pointer}#compositionList details{width:100%;border:1px solid #e4dff1;border-radius:10px;padding:8px}#compositionList summary{cursor:pointer;font-weight:700;padding:6px}#graphicCropSurface{position:relative;width:100%;touch-action:none;user-select:none;cursor:crosshair;background:#e9e5ef;margin:12px 0}#graphicCropSource{display:block;width:100%;height:auto;pointer-events:none}#graphicCropSelection{position:absolute;box-sizing:border-box;border:2px solid #6523dc;background:#6523dc22;pointer-events:none}#graphicCropEditor[hidden]{display:none}

#visualCropDialog{width:min(94vw,850px);max-height:94dvh;overflow:auto;border:0;border-radius:18px;padding:24px;background:#fff;color:#211338}#visualCropDialog::backdrop{background:#140d29bb}#visualCropDialog h2{margin:0 0 8px}#visualCropDialog p{font-size:14px}#visualCropSurface{position:relative;width:100%;margin:22px auto;touch-action:none;user-select:none;cursor:crosshair;overflow:hidden;background:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%) 0 0/16px 16px}#visualCropImage{width:100%;height:auto;display:block;pointer-events:none}#visualCropSelection{position:absolute;border:2px solid white;box-shadow:0 0 0 100vmax #10092388;cursor:move;touch-action:none;background:linear-gradient(90deg,transparent 33%,#fff7 33%,#fff7 33.3%,transparent 33.3%,transparent 66.6%,#fff7 66.6%,#fff7 66.9%,transparent 66.9%),linear-gradient(transparent 33%,#fff7 33%,#fff7 33.3%,transparent 33.3%,transparent 66.6%,#fff7 66.6%,#fff7 66.9%,transparent 66.9%)}#visualCropSelection button{position:absolute;width:28px;height:28px;border:0;border-radius:5px;background:white;box-shadow:0 0 0 2px #6124db;padding:0;touch-action:none;z-index:1}#visualCropSelection [data-crop-handle=nw]{left:0;top:0;cursor:nwse-resize}#visualCropSelection [data-crop-handle=ne]{right:0;top:0;cursor:nesw-resize}#visualCropSelection [data-crop-handle=sw]{left:0;bottom:0;cursor:nesw-resize}#visualCropSelection [data-crop-handle=se]{right:0;bottom:0;cursor:nwse-resize}#visualCropSelection [data-crop-handle=n]{left:calc(50% - 14px);top:0;cursor:ns-resize}#visualCropSelection [data-crop-handle=s]{left:calc(50% - 14px);bottom:0;cursor:ns-resize}#visualCropSelection [data-crop-handle=w]{left:0;top:calc(50% - 14px);cursor:ew-resize}#visualCropSelection [data-crop-handle=e]{right:0;top:calc(50% - 14px);cursor:ew-resize}.crop-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.graphic-element{min-height:0;max-height:none}.graphic-element>img{position:absolute;inset:0;max-width:none;max-height:none;object-fit:fill}
.allestimenti-library{margin-bottom:16px;min-width:0}.allestimenti-library #compositionList{display:block;max-height:320px;overflow-y:auto;padding:2px}.allestimenti-library .composition-list-item{min-width:0}.allestimenti-library details{margin-bottom:8px}.allestimento-select{width:100%;margin:6px 0}.allestimento-select.active{outline:2px solid var(--purple)}
.group-pick-toolbar{display:flex;justify-content:flex-end;margin:0 0 10px}.group-action-bar{display:flex;align-items:end;flex-wrap:wrap;gap:10px;background:#f2edff;padding:12px;border-radius:12px;margin-bottom:12px}.group-action-bar[hidden]{display:none}.group-action-bar label{flex:1;min-width:160px}.group-action-bar>strong{align-self:center;color:var(--purple)}.group-picking .group-picked{outline:3px solid #6323d9!important;outline-offset:3px}.group-picking .composition-card:not(.group-picked){border-color:#d8cdeb}.inventory-heading{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:#716582;margin:10px 0}.inventory-free-heading{border-top:1px solid #e2dbea;padding-top:18px;margin-top:18px}.inventory-group{border:1px solid #ded5ed;border-radius:10px;margin-bottom:8px;overflow:hidden}.inventory-group-header{display:flex;align-items:center;gap:2px;background:#f2edff;padding:4px}.inventory-group-header button{border:0;background:transparent;color:#5220bb;padding:8px;min-height:40px;cursor:pointer;font:inherit}.inventory-group-header .allestimento-title{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere;font-weight:750}.allestimento-title small{display:block;font-weight:400;font-size:12px;color:#716582}.allestimento-title.active{box-shadow:inset 3px 0 #6323d9;border-radius:6px}.allestimento-name-input{width:100%;min-width:0;font-size:16px}.allestimenti-library .composition-list-item{display:flex;align-items:center;gap:8px;font-size:13px;margin:0;border:0;border-radius:0;padding:10px}.allestimenti-library .inventory-picked{background:#e4d7ff;color:#5220bb}.allestimenti-library .inventory-detail{flex-wrap:wrap}.group-action-bar input,.group-action-bar select{font-size:16px}
.group-picking .group-detail-picked{outline:3px solid #6323d9!important;outline-offset:4px}
/* Free balloons have no base: their empty origin must not cover another model. */
#modelPreview .free-elements-card .composition-model,
#modelPreview .free-elements-card .centrepiece-render,
#modelPreview .free-elements-card .model-tilt-content{pointer-events:none}
#modelPreview .free-elements-card .element-hit,
#modelPreview .free-elements-card .bubble-content-hit{pointer-events:auto}
#decorationDraftSwatches:has([data-teddy-draft]){display:block}

/* Helium costing uses material identity; zero-cost balloons remain selectable. */
.helium-panel{margin-top:22px;padding:20px;border:2px solid #d9c7f5;border-radius:18px;background:#fdfbff}.helium-panel h3{margin:0 0 8px;color:var(--navy)}.helium-panel>p,.helium-help{font-size:13px;color:#625572;line-height:1.5}.helium-bottle{background:#f2ecfb;border-radius:12px;padding:14px;margin:16px 0}.helium-bottle summary{cursor:pointer;font-weight:750;color:#5220a2}.helium-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin-top:12px}.helium-fields label{font-size:12px;min-width:0}.helium-fields input,.helium-fields select{width:100%;min-width:0;box-sizing:border-box}.helium-material{padding:14px 0;border-bottom:1px solid #e5ddef}.helium-pick{display:flex!important;gap:12px;align-items:center;min-height:44px}.helium-pick input{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:var(--purple)}.helium-pick small{display:block;font-weight:400;margin-top:5px;color:#685a79}.helium-summary{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;background:#eee5fa;padding:16px;border-radius:12px;margin-top:18px}.helium-summary div{display:grid;gap:5px}.helium-summary strong{font-size:22px;color:var(--navy)}.helium-summary small{color:#625572}#heliumWarning:not(:empty){color:#9c2949;font-weight:750}.helium-help a{color:#6124b5}#saveHeliumBottle{margin-top:12px}
@media print{.helium-bottle{display:block}.helium-bottle>*{display:block!important}#saveHeliumBottle{display:none!important}.helium-material{break-inside:avoid}.helium-summary{break-inside:avoid}}

/* Calculator: quote and actual costs share fields, with distinct views. */
#calculatorShell:not(.calculator-actual) .calc-act,#calculatorShell.calculator-actual .calc-est{display:none!important}
.calculator-view-switch{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 10px}.calculator-view-switch button{background:#eee8ff;color:#5522bc;min-height:44px}.calculator-view-switch button[aria-pressed="true"]{background:#6125d8;color:white}
.calculator-view-help{color:#655875;font-size:14px;line-height:1.5;margin:10px 0 18px}
#materialsBody .mat-selling{min-width:190px}#materialsBody .mat-selling select{width:100%;min-height:44px}#materialsBody .mat-fixed-field{display:flex;flex-direction:column;font-size:12px;gap:5px;margin-top:8px}#materialsBody [hidden]{display:none!important}.mat-sale-total{display:block;white-space:normal;color:#655875;line-height:1.4;margin-top:6px}
#heliumPanel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;cursor:pointer;min-height:48px}#heliumPanel>summary::before{content:'▸'}#heliumPanel[open]>summary::before{content:'▾'}#heliumCompact{font-size:14px;color:#655875}.helium-picker{margin:14px 0}.helium-picker summary,.helium-material summary{cursor:pointer;min-height:44px;padding:8px 0}#heliumPickList{max-height:280px;overflow:auto;padding:8px}.helium-row-count{font-size:13px;color:#655875}.helium-material .helium-fields{margin-top:10px}
#calculatorShell.calculator-actual .expense-pair{grid-template-columns:1fr}.actual-panel{flex-wrap:wrap}.actual-panel>div{min-width:140px}
@media(max-width:700px){#materiali .table-wrap{overflow:visible}#materiali table,#materiali tbody,#materiali tr,#materiali td{display:block;width:100%;min-width:0}#materiali thead{display:none}#materiali tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px 0;border-bottom:1px solid #e6def1}#materiali td{padding:0;border:0}#materiali td:first-child,#materiali td.mat-selling{grid-column:1/-1}#materiali td::before{display:block;font-size:12px;color:#655875;margin-bottom:5px}#materiali td:nth-child(2)::before{content:'Quantità prevista'}#materiali td:nth-child(3)::before{content:'Costo acquisto cad. €'}#materiali td:nth-child(4)::before{content:'Costo previsto'}#materiali td:nth-child(5)::before{content:'Quantità reale'}#materiali td:nth-child(6)::before{content:'Costo acquisto reale cad. €'}#materiali td:nth-child(7)::before{content:'Costo reale totale'}#materiali td:last-child{justify-self:end;text-align:right}#materiali input{width:100%;min-height:44px}#materiali .mat-selling{min-width:0}.calculator-view-switch button{flex:1}.helium-summary{grid-template-columns:1fr}}

.result-section #fixedPriceSummary{color:#ddd3f2;position:relative;z-index:1}.actual-panel{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.actual-panel{grid-template-columns:1fr}}
.graphic-tint{position:absolute;inset:0;pointer-events:none;mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-mode:alpha;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.graphic-tint-controls[hidden],#graphicBackgroundOptions[hidden],#graphicPickedOptions[hidden]{display:none}
.graphic-tint-swatches{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.graphic-tint-swatches button{width:28px;height:28px;min-width:28px;border:1px solid #b7accb;border-radius:50%;padding:0}.graphic-tint-swatches button[aria-pressed="true"]{outline:2px solid #6124db;outline-offset:2px}
.graphic-background-status{display:flex;gap:8px;align-items:center;font-size:12px}.graphic-background-status i{width:22px;height:22px;flex-shrink:0;border:1px solid #b7accb;border-radius:5px}
#graphicBackgroundDialog{width:min(94vw,720px);max-height:94dvh;overflow:auto;border:0;border-radius:18px;padding:24px;background:#fff;color:#211338}#graphicBackgroundDialog::backdrop{background:#140d29bb}#graphicBackgroundDialog h2{margin:0 0 8px}#graphicBackgroundDialog p{font-size:14px}
.graphic-pick-surface{display:flex;justify-content:center;margin:18px 0;background:repeating-conic-gradient(#e4e0ed 0% 25%,#fff 0% 50%) 0 0/14px 14px}.graphic-pick-surface img{display:block;max-width:100%;max-height:58dvh;width:auto;height:auto;cursor:crosshair;touch-action:manipulation}

.graphic-manual-options {margin:12px 0;padding:10px;border:1px solid #ded8ed;border-radius:10px}
.graphic-manual-options summary {cursor:pointer;font-size:13px;font-weight:600}
#graphicAutoStatus {min-height:2.5em;line-height:1.5}
#graphicAutoRemove {margin-top:10px}
#graphicAutoCancel[hidden] {display:none}

.pdf-capture .scene-composition.selected{filter:none!important}.pdf-capture .scene-composition{cursor:default!important}.pdf-capture .scene-placeholder{display:none!important}

#sceneImageDialog{width:min(94vw,1100px);max-height:92dvh;padding:16px;border:0;border-radius:18px;overflow:auto}#sceneImageDialog::backdrop{background:#17102e99}#sceneImageDialog>img{display:block;width:100%;height:auto;margin:12px 0}.scene-image-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.scene-image-actions a{text-decoration:none}

#sceneImageDialog .button.ghost{color:#24105f;background:#f0eafb;border:1px solid #d8cce9}

/* Compact model library: keep existing model actions for keyboard/API bindings. */
.model-library > .model-choice{display:none}
#addSelectedModel{width:100%;margin:12px 0 20px}

.form-shell{max-width:1600px;margin:36px auto;padding:0 28px}.form-heading,.form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.form-heading{justify-content:space-between;margin-bottom:26px}.form-heading h1{margin:0}.form-layout{display:grid;grid-template-columns:380px minmax(0,1fr);gap:28px;align-items:start}.form-editor label{display:grid;gap:6px;margin:12px 0}.form-editor h3{margin-top:28px}.form-edit-row{display:grid;grid-template-columns:1fr 70px 110px 36px;gap:8px;align-items:end;border-top:1px solid #ddd;padding:10px 0}.form-edit-row label:first-child{grid-column:1/-1}.form-edit-row label{margin:0}.form-edit-row input{width:100%;min-width:0}.form-edit-row .danger{padding:10px}.form-sheet{background:white;color:#242030;padding:40px;box-shadow:0 12px 48px #24143718;border-radius:12px}.form-sheet-head{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:2px solid #c1a36d;padding-bottom:24px}.form-sheet-head>div:first-child{display:grid;gap:12px}.form-sheet-head span{font-size:12px;letter-spacing:1.5px;color:#62576f}.form-logo{max-width:160px;max-height:80px;object-fit:contain}.form-sheet h1{font-size:30px;margin:28px 0 8px}.form-client-line{display:flex;justify-content:space-between;margin-bottom:24px;color:#62576f}.form-scene{width:100%;max-height:480px;object-fit:contain;border-radius:8px}.form-scene-empty{padding:50px 30px;background:#f4f1f7;color:#62576f;text-align:center}.form-sheet table{width:100%;border-collapse:collapse;margin-top:28px}.form-sheet th{font-size:13px;text-align:left;border-bottom:2px solid #ded5e7;padding:12px 8px}.form-sheet td{border-bottom:1px solid #eae4ef;padding:16px 8px;vertical-align:top}.form-sheet th:not(:first-child),.form-sheet td:not(:first-child){text-align:right;white-space:nowrap}.form-sheet td small{display:block;margin-top:5px;font-size:12px;color:#6c6376}.form-total{display:flex;justify-content:flex-end;gap:30px;padding:24px 8px;font-size:20px}.form-notes{border-top:1px solid #ddd;padding-top:24px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.form-tool .tool-icon{color:#c1a36d}
@media(max-width:1000px){.form-layout{grid-template-columns:1fr}.form-shell{padding:0 16px}.form-sheet{padding:22px}.form-sheet h1{font-size:24px}}
@media print{body.printing-form>*{display:none!important}body.printing-form #formShell{display:block!important;margin:0!important;padding:0!important;max-width:none!important}body.printing-form .form-heading,body.printing-form .form-editor{display:none!important}body.printing-form .form-layout{display:block!important}body.printing-form .form-sheet{display:block!important;box-shadow:none;border:0;border-radius:0;padding:0;color:#111}body.printing-form .form-scene{max-height:110mm}body.printing-form tr,body.printing-form .form-total{break-inside:avoid}body.printing-form .form-scene-empty{display:none}body.printing-form thead{display:table-header-group}}

.form-sheet table{min-width:0;table-layout:fixed}.form-sheet th:first-child{width:46%}.form-sheet td:first-child{overflow-wrap:anywhere}.form-heading .gold-button{width:auto;margin:0}.form-editor .danger,.group-tools .danger,.group-action-bar .danger{color:#982d43;background:#fbeaf0}#modelSelect{display:block;width:100%;min-height:44px;margin-top:6px;border:1px solid var(--line);border-radius:10px;padding:8px 32px 8px 10px;background:white;color:var(--navy);font:inherit;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235f22d9' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.form-tool{background:linear-gradient(135deg,#40305a,#795a36);color:#fff}.form-tool .tool-icon{color:#f5d487}.form-tool .tool-copy small{color:#eee4f3}
/* Event sheet: coloured section tabs, rounded boxes and a large project frame. */
.form-layout{grid-template-columns:330px minmax(0,1fr)}
.form-sheet{--sheet-blue:#087dc5;--sheet-purple:#7934c8;font-family:'Trebuchet MS',Arial,sans-serif;padding:30px 26px 20px;border-radius:20px;border:1px solid #e6ddf5;position:relative;overflow:hidden}
.form-sheet:before,.form-sheet:after{content:'';position:absolute;width:160px;height:70px;bottom:-45px;transform:rotate(15deg);border-radius:50%;background:var(--sheet-purple);left:-35px}.form-sheet:after{left:auto;right:-35px;background:var(--sheet-blue);transform:rotate(-15deg)}
.form-sheet-head{border:0;padding:0 0 22px;align-items:center}.form-brand{display:flex!important;align-items:center;flex-direction:column;width:150px;gap:5px!important;text-align:center;font-size:13px;color:#27134d}.form-brand .form-logo{max-width:125px;max-height:100px}.form-title-block{text-align:right;flex:1}.form-title-block h1{display:inline-block;margin:0;background:var(--sheet-blue);color:white;padding:12px 24px 15px;border-radius:55% 22px 40% 18px;transform:rotate(-2deg);font-size:clamp(24px,2.6vw,38px);font-weight:800;font-style:italic;letter-spacing:-1.2px;box-shadow:0 5px 0 #d6edfa}.form-title-block p{font-size:13px;margin:12px 8px 0;color:#615273}
.form-client-line{gap:12px;margin:0 0 28px;display:grid;grid-template-columns:1fr 1.5fr}.form-client-line>div{display:flex;gap:12px;align-items:center;background:#e8d9f8;border-radius:18px;padding:12px 16px;font-size:14px;color:#251246}.form-client-line>div+div{background:#dff1fc}.form-client-line span{font-weight:800}.form-client-line strong{font-weight:600;border-bottom:1px solid #8b81a8;flex:1;padding-bottom:3px}
.form-box{position:relative;border:2px solid var(--sheet-blue);border-radius:20px;padding:25px 16px 14px;margin:0 0 30px;background:#fff}.form-box>h2{position:relative;display:table;font-size:23px;font-style:italic;font-weight:800;line-height:1.2;color:white;background:var(--sheet-purple);border-radius:24px 14px 24px 14px;margin:-42px 0 12px;padding:6px 19px;box-shadow:5px 4px 0 #e3d4f7}.form-box>h2:after{content:'✦';position:absolute;right:-25px;top:3px;color:var(--sheet-purple);font-style:normal;font-size:22px}.project-box h3{font-size:17px;color:#332150;margin:0 0 10px}.form-scene{display:block;max-height:360px;border-radius:12px}.form-scene-empty{min-height:250px;display:grid;place-content:center;border-radius:12px;background:linear-gradient(120deg,#f8f3ff,#edf8ff)}
.quote-box{border-color:var(--sheet-purple);padding-top:22px}.quote-box>h2{background:var(--sheet-blue);box-shadow:5px 4px 0 #d5ecfb}.quote-box>h2:after{color:var(--sheet-blue)}.form-sheet table{margin:0;min-width:0;font-size:14px}.form-sheet th{padding:9px 8px;background:#c9e8fc;border:0;color:#251246;font-size:13px;text-transform:none}.form-sheet th:first-child{border-radius:10px 0 0 10px;width:46%}.form-sheet th:last-child{border-radius:0 10px 10px 0}.form-sheet td{padding:14px 8px;border-bottom:1px solid #d5c9e5}.form-sheet tbody tr:nth-child(even){background:#faf7fe}.form-total{justify-content:space-between;align-items:center;margin-top:12px;padding:12px 16px;border-radius:16px;background:linear-gradient(100deg,#e3d3f8,#d7efff);font-size:19px;color:#2a1751}.form-total strong{font-size:23px}.notes-box{background:linear-gradient(110deg,#e5f4fd,#f6effd);margin-bottom:16px}.notes-box>h2{background:var(--sheet-blue);box-shadow:5px 4px 0 #d5ecfb}.form-notes{border:0;padding:0;font-size:14px;line-height:1.7;white-space:normal}.form-sheet-footer{font-size:18px;font-style:italic;color:#46267a;text-align:center;padding:2px 20px 12px}.selection-move-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px;border:1px solid #d2baf2;border-radius:14px;margin:10px 0;background:#f7f1ff}.selection-move-tools[hidden]{display:none}.selection-move-tools strong{width:100%;font-size:14px}.selection-move-tools span{font-size:13px}.group-picked{outline:2px dashed #7934c8!important;outline-offset:3px}
@media(max-width:1000px){.form-layout{grid-template-columns:1fr}.form-sheet{padding:26px 18px}.form-title-block h1{font-size:27px}.form-client-line{grid-template-columns:1fr}.form-brand{width:110px}.form-brand .form-logo{max-width:90px}.form-sheet td,.form-sheet th{font-size:12px;padding:10px 4px}.form-sheet th:first-child{width:42%}}
@media print{body.printing-form .form-sheet{padding:12px 10px!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}body.printing-form .form-title-block h1{font-size:30px}body.printing-form .form-scene{max-height:85mm}body.printing-form .form-box{break-inside:avoid}body.printing-form .quote-box{break-inside:auto}body.printing-form .form-box>h2{break-after:avoid}body.printing-form .form-brand .form-logo{max-height:65px}body.printing-form .form-client-line{grid-template-columns:1fr 1.5fr}body.printing-form .form-sheet:before,body.printing-form .form-sheet:after{display:none}}
#groupDestinationField[hidden],#newGroupNameField[hidden]{display:none!important}

/* Client proposal palette and services */
.form-color-chart{border-top:1px solid #e4def4;padding:18px 0 4px;margin-top:14px}
.form-color-chart h3{color:#6752aa;font-size:15px;text-align:left;margin:0 0 12px}
.form-swatches{display:flex;flex-wrap:wrap;gap:18px}
.form-swatch{display:grid;justify-items:center;gap:7px;min-width:72px}
.form-swatch>span{width:38px;height:38px;border-radius:50%;border:1px solid #0002;display:block}
.form-swatch strong{font-size:10px;font-weight:600;color:#514563}
.form-service-summary{border-top:1px solid #dcd5f0;padding-top:12px;margin-top:12px;display:grid;gap:8px}
.form-service-summary>div{display:flex;justify-content:space-between;font-size:13px}
.form-services-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-editor .form-palette-toggle{display:flex;align-items:center;gap:9px;margin:18px 0}
.form-palette-toggle input{width:auto}
@media print{.form-color-chart{padding:8px 0 0;margin-top:6px}.form-swatches{gap:10px}.form-swatch>span{width:25px;height:25px}.form-service-summary{gap:4px;padding-top:6px;margin-top:6px}}
body:has(#formShell:not(.hidden)) .topbar{position:relative}

.form-notes-line{min-height:28px;border-bottom:1px solid #b7a8d0;padding-bottom:5px}

/* Finished assemblies show one outline; individual editing remains explicit. */
#modelPreview:not(.group-picking) .group-picked,#modelPreview.multi-moving .composition-card,#modelPreview.multi-moving .group-outline{outline:none!important;border-color:transparent!important;box-shadow:none!important}
#modelPreview:not(.editing-group-single):not(.group-picking) .in-work-group .designer-added-element.selected,#modelPreview:not(.editing-group-single):not(.group-picking) .in-work-group .column-balloon-selected,#modelPreview:not(.editing-group-single):not(.group-picking) .in-work-group .shimmer-panel.selected,#modelPreview.multi-moving .designer-added-element.selected{outline:none!important;box-shadow:none!important}
#modelPreview:not(.editing-group-single) .in-work-group .topiary-balloon.selected .topiary-hit{box-shadow:none}
[data-rename-graphic-owner]{min-width:40px;min-height:40px;font-size:20px!important}

.structure-navigation{margin:16px 0}.structure-navigation>div{display:flex;flex-wrap:wrap;gap:8px}.structure-navigation button[aria-pressed="true"]{background:var(--purple);color:white}

/* Selection fields and actions occupy separate rows at every workspace width. */
#groupActionBar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start;padding:16px}
#groupActionBar[hidden]{display:none}
#groupPickCount{grid-column:1/-1;line-height:1.5}
#groupActionBar>label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;font-size:14px;line-height:1.5}
#groupActionBar input,#groupActionBar select{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:44px;margin:0;padding:10px 12px;border:1px solid #d8cdeb;border-radius:10px;background:white;color:var(--navy);font:inherit}
.group-action-buttons{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;align-items:center;min-width:0}
.group-action-buttons>.button{flex:0 1 auto;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;margin:0}
#groupSelectionHint:empty{display:none}
#groupSelectionHint:not(:empty){flex-basis:100%;line-height:1.5}
@media(max-width:700px){#groupActionBar{grid-template-columns:minmax(0,1fr)}.group-action-buttons>.button{flex:1 1 150px}}


/* Designer studio: catalog / working area / existing property controls. */
.designer-studio{max-width:none;padding:14px 18px 24px;background:#f6f5fa}
.designer-studio .designer-intro h1{display:none}
.designer-studio .designer-intro .designer-details{max-width:900px}
.designer-studio .designer-intro{gap:16px;justify-content:space-between}
.designer-studio .designer-details label{font-size:14px}
.designer-studio .designer-grid{display:grid;grid-template-columns:230px minmax(0,1fr) 300px;gap:14px;align-items:start}
.designer-studio .designer-panel{border:1px solid #e1dbea;border-radius:14px;box-shadow:none;padding:14px;min-width:0;background:#fff}
.designer-studio .model-library,.designer-studio .elements-library{display:block;position:sticky;top:12px;max-height:calc(100dvh - 160px);overflow:auto;scrollbar-gutter:stable;min-width:0}
.designer-studio .studio-heading{font-size:21px;margin:0 0 16px;color:#35126a}
.designer-studio .model-library > label,.designer-studio #addSelectedModel{display:block;width:100%;margin-bottom:10px}
.designer-studio .studio-model-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 22px}
.designer-studio .studio-model-tiles .model-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:92px;width:100%;padding:10px 4px;margin:0;gap:6px;border-radius:10px;background:#faf8ff;text-align:center}
.designer-studio .studio-model-tiles .model-choice.active{background:#eee5ff;border-color:#7344c3}
.designer-studio .studio-model-tiles .model-choice strong{font-size:14px}
.designer-studio .studio-model-tiles .model-choice small,.designer-studio .studio-model-tiles .model-choice em{display:none}
.designer-studio .studio-model-tiles svg,.designer-studio .studio-model-tiles img{width:36px;height:36px;object-fit:contain}
.designer-studio .model-library > .locked{display:none}
.designer-studio .element-shapes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 22px}
.designer-studio .element-shapes button{min-width:0;padding:8px 2px;font-size:12px;overflow-wrap:anywhere;border-radius:9px;min-height:76px}
.designer-studio .element-shapes img{width:30px;height:32px;object-fit:contain}
.designer-studio .allestimenti-library{border-top:1px solid #e1dbea;padding-top:16px;margin-top:16px}
.designer-studio .allestimenti-library #compositionList{display:block;overflow:visible}
.designer-studio .studio-model-properties{border-bottom:1px solid #e1dbea;margin-bottom:18px;padding-bottom:14px}
.designer-studio .studio-model-properties > summary{cursor:pointer;color:#35126a;font-weight:700;font-size:15px;padding:8px 0 14px}
.designer-studio .model-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.designer-studio .model-controls fieldset{min-width:0;padding:10px}
.designer-studio .model-controls legend{font-size:14px;line-height:1.5}
.designer-studio .model-controls .rainbow-palette{max-width:100%}
.designer-studio .studio-center{min-width:0;position:relative}
.designer-studio .studio-tabs{display:flex;gap:6px;margin-bottom:10px;padding:5px;border:1px solid #e1dbea;border-radius:12px;background:#eee8f7}
.designer-studio .studio-tabs button{border:0;padding:11px 20px;background:transparent;color:#421575;font:inherit;font-size:15px;font-weight:700;cursor:pointer;border-radius:8px}
.designer-studio .studio-tabs button[aria-current=page]{background:#6426ad;color:white;box-shadow:0 2px 5px #42157525}
.designer-studio .studio-inactive{position:absolute!important;top:0;left:-20000px;width:100%;pointer-events:none}
.designer-studio .builder-layout{display:block}
.designer-studio .panel-heading{margin-bottom:12px;gap:10px}
.designer-studio .panel-heading h2{font-size:20px;line-height:1.3}
.designer-studio .workspace-toolbar{gap:6px;margin:8px 0}
.designer-studio .workspace-toolbar .button{padding:9px 12px;font-size:14px}
.designer-studio .group-pick-toolbar{margin:8px 0}
.designer-studio #modelPreview.multi-workspace{height:clamp(360px,calc(100dvh - 385px),780px);min-height:360px;padding:0;border-radius:8px}
.designer-studio .construction-actions{display:flex;flex-wrap:wrap;padding-top:6px}
.designer-studio .construction-actions #addToScene{order:3;margin-top:5px}
.designer-studio .scene-panel,.designer-studio .materials-panel{margin-top:0}
.designer-studio .scene-stage{min-height:360px}
.designer-studio .scene-toolbar{display:flex;flex-wrap:wrap}
.designer-studio .scene-toolbar > label{min-width:0;flex:1 1 200px;flex-wrap:wrap}
.designer-studio .composition-library{margin-top:20px;border-top:1px solid #e1dbea;padding-top:16px}
.designer-studio .button{border-radius:9px}
.designer-studio :is(button,input,select,summary):focus-visible{outline:3px solid #3d7edb;outline-offset:2px}
@media(min-width:1600px){.designer-studio .designer-grid{grid-template-columns:260px minmax(0,1fr) 330px}}
@media(max-width:1150px) and (min-width:761px){.designer-studio{padding:12px 10px}.designer-studio .designer-grid{grid-template-columns:190px minmax(0,1fr) 260px;gap:8px}.designer-studio .designer-panel{padding:10px}.designer-studio .studio-tabs button{padding:10px 12px}.designer-studio .element-shapes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.designer-studio .designer-grid{display:flex;flex-direction:column}.designer-studio .model-library,.designer-studio .elements-library{position:static;width:100%;max-height:420px;overflow:auto}.designer-studio .studio-center{width:100%}.designer-studio .studio-model-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.designer-studio .element-shapes{grid-template-columns:repeat(4,minmax(0,1fr))}.designer-studio .designer-details{width:100%}.designer-studio #modelPreview.multi-workspace{height:420px}.designer-studio .studio-tabs{position:sticky;top:0;z-index:40}.designer-studio .elements-library{max-height:none}.designer-studio .studio-inactive{left:-20000px}}
/* Keep the working canvas and its primary action together on laptop screens. */
@media(min-width:761px){
.designer-studio .designer-grid #modelPreview.multi-workspace{height:clamp(280px,calc(100dvh - 475px),720px);min-height:280px}
.designer-studio .panel-heading .eyebrow{margin-bottom:4px}
.designer-studio .group-pick-toolbar{margin:4px 0}
.designer-studio .element-shapes{grid-template-columns:repeat(2,minmax(0,1fr))}
.designer-studio .element-shapes button{font-size:13px;overflow-wrap:normal;word-break:normal}
}
.designer-studio .tilt-control label{display:flex;flex-wrap:wrap;gap:5px;align-items:center}

/* Gang Form print: project on page one, proposal starts on page two. */
@page gang-form { size:A4 landscape; margin:12mm; }
@media print {
  body.printing-form #formShell { page:gang-form; }
  body.printing-form .form-sheet {
    overflow:visible!important;
    height:auto!important;
    max-height:none!important;
    padding:0!important;
  }
  body.printing-form .form-sheet-head { padding-bottom:5mm; break-after:avoid; }
  body.printing-form .form-client-line { margin-bottom:5mm; break-after:avoid; }
  body.printing-form .form-box {
    padding:5mm 4mm 4mm;
    margin:0 0 6mm;
    overflow:visible;
  }
  /* Titles stay inside their box rather than extending across a page boundary. */
  body.printing-form .form-box > h2 {
    margin:0 0 4mm;
    font-size:19px;
    break-after:avoid-page;
    page-break-after:avoid;
  }
  body.printing-form .project-box { break-inside:avoid-page; page-break-inside:avoid; }
  body.printing-form .form-scene { max-height:82mm; width:100%; object-fit:contain; }
  body.printing-form .form-color-chart { padding-top:2mm; margin-top:2mm; }
  body.printing-form .form-swatches { gap:2mm 3mm; }
  body.printing-form .form-swatch { break-inside:avoid; }
  body.printing-form .quote-box {
    break-before:page;
    page-break-before:always;
    break-inside:auto;
    page-break-inside:auto;
    box-decoration-break:clone;
    -webkit-box-decoration-break:clone;
  }
  body.printing-form .form-sheet table { width:100%; table-layout:fixed; }
  body.printing-form .form-sheet th:first-child { width:48%; }
  body.printing-form .form-sheet td:first-child { overflow-wrap:anywhere; }
  body.printing-form .form-sheet td,body.printing-form .form-sheet th { padding:3mm 2mm; font-size:12px; }
  body.printing-form .form-sheet thead { display:table-header-group; }
  body.printing-form .form-sheet tr,body.printing-form .form-total { break-inside:avoid-page; page-break-inside:avoid; }
  body.printing-form .notes-box { break-inside:auto; page-break-inside:auto; }
  body.printing-form .form-notes { orphans:3; widows:3; }
}

.designer-studio .element-shapes [data-accessory-catalog]{grid-column:1/-1;flex-direction:row;gap:8px;min-height:58px}
#accessoryNavigation h3{font-size:17px;line-height:1.35}
