.head-actions #ar-open{background:#b3222c;color:white;border-color:#b3222c;box-shadow:0 5px 18px #b3222c20}.head-actions #ar-open span{font-size:.65rem;padding:3px 4px;border:1px solid #ffffff70;border-radius:4px;margin-left:8px}.background-picker{display:flex;gap:5px;flex-wrap:wrap;margin-top:18px;pointer-events:auto}.background-picker button{font-size:.8125rem;min-height:36px;padding:8px 12px;border:1px solid #ffffff70;background:#ffffffb5;backdrop-filter:blur(14px);border-radius:8px}.background-picker button[aria-pressed=true]{background:#272c32;color:white;border-color:#272c32}#background-note{display:block;font-size:.75rem;margin-top:9px;color:#62676c}.stage-head{max-width:100%;padding-bottom:10px}.stage-head>div{max-width:calc(100% - 55px)}[data-background=dark] .workspace{color:#f1f3f6;background:#171c25}[data-background=dark] .stage-head .eyebrow,[data-background=dark] .stage-instruction,[data-background=dark] #background-note,[data-background=dark] #message,[data-background=dark] .measurements span,[data-background=dark] .measurements p,[data-background=dark] .view-corner{color:#bcc4d0}[data-background=dark] .measurements{border-color:#343a45}[data-background=dark] .tools button{color:#23272d}[data-background=dark] .tools button[aria-pressed=true]{background:#f5f6f7;color:#222}[data-background=dark] .tools #undo,[data-background=dark] .tools #redo{color:#d9dce2}[data-background=photo] .stage-head>div{padding:14px 18px;border-radius:15px;background:#ffffffde;backdrop-filter:blur(12px)}[data-background=photo] .view-corner{background:#ffffffde;padding:9px;border-radius:8px;color:#454a50}#ar-dialog{max-width:510px;padding:30px}#ar-dialog h2{font-size:2rem;font-weight:550;letter-spacing:-.8px;line-height:1.15;margin-top:15px}#ar-status{background:#f0f2f4;padding:14px;border-radius:10px;font-size:.875rem;line-height:1.6}#ar-start{background:#b3222c;color:#fff;border-color:#b3222c}#ar-quick-ready{display:flex;align-items:center;gap:14px;padding:10px 14px;background:#252a31;color:white;border-radius:12px;margin-top:12px;text-decoration:none;font-size:.875rem}#ar-thumbnail{width:75px;height:55px;object-fit:cover;border-radius:6px}#ar-overlay{position:fixed;inset:0;z-index:10000;pointer-events:none;color:white;font-family:Inter,"Segoe UI",Arial,sans-serif}#ar-overlay:before{content:'';position:absolute;inset:0;background:linear-gradient(#0008,transparent 25%,transparent 60%,#0009);pointer-events:none}.ar-live-top{position:absolute;left:20px;right:20px;top:max(20px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;font-size:.8rem;letter-spacing:1px}.ar-live-bottom{position:absolute;left:16px;right:16px;bottom:max(24px,env(safe-area-inset-bottom));text-align:center}.ar-live-bottom p{font-size:1rem;text-shadow:0 2px 10px #000}.ar-live-bottom>div{display:flex;justify-content:center;gap:8px}.ar-live-bottom small{display:block;margin-top:14px}#ar-overlay button{pointer-events:auto;border:0;box-shadow:0 3px 15px #0003}#ar-place{background:#b3222c;color:white}.ar-canvas{position:fixed;inset:0;z-index:9999}.ar-active>header,.ar-active>main,.ar-active>footer{visibility:hidden}@media(max-width:1100px){.stage-head{padding-top:20px}.background-picker{margin-top:12px}.head-actions button{padding:9px 12px}}@media(max-width:600px){.head-actions{display:grid;grid-template-columns:1fr 1fr}.head-actions #ar-open{grid-column:1 / -1}.head-actions button{min-height:38px}.stage-head{padding:18px 16px}.stage-head h1{font-size:1.35rem;margin:8px 0}.stage-instruction{display:none}.stage-head>div{max-width:100%}.stage-head #help{position:absolute;right:16px;top:12px;min-height:32px;padding:6px 11px}.stage-head .eyebrow{font-size:.65rem}.background-picker{gap:4px;margin-top:15px;max-width:320px}.background-picker button{padding:7px 9px;font-size:.75rem;min-height:34px}#background-note{font-size:.7rem}.workspace{height:700px;max-height:none}#viewport{min-height:390px}#ar-dialog{padding:22px}#ar-dialog h2{font-size:1.7rem}.ar-live-bottom>div{gap:5px}.ar-live-bottom button{font-size:.8rem;padding:10px}}
.workspace .background-picker button{color:#252a31}.workspace .background-picker button[aria-pressed=true]{color:#fff;background:#252a31}.workspace .views,.workspace .views button,.workspace #context-actions,.workspace #context-actions button,.workspace .stage-head #help{color:#252a31}.workspace #context-actions #context-add{color:white}

/* Revision 0.4 */
.brand img{display:block;width:210px;max-width:100%;height:auto}.brand{width:210px;flex-shrink:0}.stage-head h1{font-size:clamp(24px,2.8vw,38px);letter-spacing:-1.5px}.stage-head .eyebrow{font-weight:500;letter-spacing:2px}.price-card{background:#f3f1eb;border:1px solid #e6e1d7;border-radius:18px;padding:20px;margin-bottom:25px;font-weight:400}.aside-title{display:block;position:relative}.aside-title #deselect{position:absolute;right:0;bottom:0}.price-top{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:11px;color:#64635d}.price-badge{padding:5px 8px;background:#e4ddd0;border-radius:99px;white-space:nowrap}.price-values{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:14px}.price-values s{font-size:14px;color:#78766f}.price-values strong{font-size:32px;letter-spacing:-1.1px;color:#202622;font-weight:600}.price-card p{font-size:12px;margin:7px 0}.price-card small{font-size:11px;color:#6d6c65;line-height:1.5;display:block}.price-card details{padding:10px 0 0;margin-top:12px}.price-card summary{font-size:12px}#price-lines{list-style:none;padding:0;max-height:290px;overflow:auto}#price-lines li{display:flex;gap:12px;justify-content:space-between;margin:9px 0;font-size:11px}#price-lines strong{white-space:nowrap}#price-missing{color:#795a2c}.extra-option{display:flex;gap:8px;align-items:center;margin:15px 0;font-size:13px}.extra-option input{width:auto}.extra-option:has(select){display:block}#asset-state{font-size:11px;max-width:45%;text-align:center}#catalog-list{max-height:250px;overflow:auto;margin-top:10px;display:grid;gap:5px}#catalog-list button{text-align:left;font-size:12px;padding:10px;border-radius:8px;overflow-wrap:anywhere}#catalog-search{width:100%;padding:11px;border:1px solid #dedede;border-radius:8px}#catalog-count{font-size:11px;color:#7b7e79}#part-dialog{width:min(700px,95vw);max-width:700px}#part-title{font-size:18px;overflow-wrap:anywhere;padding-right:30px}#part-view{height:350px;width:100%;background:linear-gradient(#e9e7e2,#f8f7f4);border-radius:14px;overflow:hidden}#part-info{font-size:12px;color:#70736e}.ar-help{font-size:13px}.ar-help a{color:#9d1d28}#ar-diagnostics{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:180px;overflow:auto;background:#f1f1ed;padding:10px}#ar-overlay{background:transparent}.ar-active{background:transparent!important}#ar-start:disabled{opacity:.6}.ar-live-top button{color:#222}.ar-live-bottom small{color:#fff}
@media(min-width:1200px){aside{width:355px}main{grid-template-columns:minmax(0,1fr) 355px}.workspace{min-height:750px}}
@media(max-width:600px){header .brand{width:145px;max-width:43%}.brand img{width:145px}.price-card{padding:16px;margin-bottom:20px}.price-values strong{font-size:30px}#asset-state{max-width:100%}footer{gap:8px;flex-direction:column}.stage-head h1{font-size:25px}.stage-head .background-picker{max-width:100%}.workspace{height:720px}.background-picker button{font-size:11px}#part-dialog{padding:18px}.head-title{display:none}}

body.presentation main{display:block;padding:0;min-height:calc(100dvh - 84px)}
body.presentation aside,body.presentation footer,body.presentation .tools,body.presentation #message,body.presentation .measurements,body.presentation #context-actions{display:none!important}
body.presentation .workspace{height:calc(100dvh - 84px);min-height:480px;max-height:none}
body.presentation #viewport{min-height:100%}
body.presentation .stage-instruction{display:block}
.head-actions #present{background:#fff;border-color:#b3222c;color:#98202b}
body.presentation #present{background:#b3222c;color:#fff}
@media(max-width:600px){.head-actions #present{grid-column:1 / -1}.head-actions{width:100%}body.presentation .workspace{height:calc(100dvh - 220px);min-height:420px}.head-actions #save,.head-actions #load{min-height:36px}}

.views #spin[aria-pressed=true]{background:#24272c;color:#fff}

header{height:auto;min-height:84px;flex-wrap:wrap;gap:12px}.head-actions{flex-wrap:wrap}
#cart-open{white-space:nowrap}#cart-count{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:#b3222c;color:white;font-size:12px;margin-left:6px}
#cart-add,#offer-add,#cart-export{background:#b3222c;color:#fff;border-color:#b3222c}
.presentation-offer{position:absolute;left:24px;bottom:78px;z-index:3;display:flex;align-items:center;gap:18px;background:#fffffff0;border:1px solid #fff;border-radius:14px;padding:12px 16px;box-shadow:0 8px 30px #16202d18;backdrop-filter:blur(14px)}
.presentation-offer small{display:block;font-size:12px;color:#5b625f}.presentation-offer strong{display:block;font-size:25px;letter-spacing:-.8px;margin-top:3px}.presentation-offer button{font-size:14px}
body.presentation .workspace{height:calc(100dvh - var(--header-height,84px))}
#cart-dialog{width:min(820px,94vw);max-width:820px;max-height:90dvh;padding:28px;overflow:auto}#cart-title{font-size:30px;font-weight:550;margin:14px 0}
.cart-note{font-size:13px!important;color:#646b69;line-height:1.5}#cart-status{font-size:14px;min-height:20px;color:#36684c}
#cart-empty{padding:36px 0;text-align:center}.cart-item{display:grid;grid-template-columns:130px 1fr auto;gap:18px;padding:20px 0;border-top:1px solid #e3e6e4;align-items:center}
.cart-item img{width:130px;height:100px;object-fit:cover;border-radius:10px;background:#eeefec}.cart-detail h3{font-size:16px;margin:0 0 8px}.cart-detail p{font-size:13px;margin:6px 0;color:#6b716e}
.cart-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:12px}.cart-row-actions button{font-size:12px;padding:7px 9px;min-height:34px}
.cart-quantity{display:flex;align-items:center;border:1px solid #ddd;border-radius:9px}.cart-quantity button{border:0;background:transparent;width:32px}.cart-quantity span{min-width:24px;text-align:center;font-size:14px}
.cart-line-total{font-size:18px;white-space:nowrap}.cart-total-row{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #ddd;padding-top:22px;margin-top:12px;font-size:18px}.cart-total-row strong{font-size:27px}
.cart-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.cart-bottom button{flex:1}
@media(max-width:600px){.head-actions #cart-open{grid-column:1/-1}.presentation-offer{left:12px;right:12px;bottom:65px;padding:10px 12px;justify-content:space-between;gap:10px}.presentation-offer strong{font-size:23px}.presentation-offer button{font-size:12px;padding:10px}
#cart-dialog{padding:22px 16px;max-height:94dvh}.cart-item{grid-template-columns:90px 1fr;gap:12px}.cart-item img{width:90px;height:85px}.cart-line-total{grid-column:2}.cart-bottom{flex-direction:column}.cart-row-actions{gap:5px}}

#share-dialog{width:min(600px,94vw);max-width:600px;padding:30px;max-height:90dvh;overflow:auto}
#share-title{font-size:28px;font-weight:550;margin-top:15px;padding-right:25px}
#share-status{background:#f2f4f0;border-radius:10px;padding:15px;font-size:15px}
#share-link{display:block;width:100%;padding:13px;border:1px solid #d8dcd8;border-radius:9px;font-size:14px;color:#374038}
.share-actions{display:flex;gap:10px;margin-top:12px}#share-copy{background:#b3222c;color:white;border-color:#b3222c}
#share-expiry,#share-result>p{font-size:13px;color:#667069;line-height:1.6}#share-dialog details{margin-top:24px}
@media(max-width:600px){#share-dialog{padding:23px 18px}#share-title{font-size:24px}.share-actions{flex-wrap:wrap}}

.top-options{margin:20px 0;padding:18px;border:1px solid #d8dfdd;border-radius:16px;background:linear-gradient(135deg,#f4f7f5,#e6eeeb)}
.top-heading{display:flex;align-items:center;gap:14px;margin-bottom:14px}.top-heading h3{font-size:15px;margin:0}.top-heading p{font-size:12px;color:#62706a;margin:4px 0 0}.top-icon{display:block;width:42px;height:30px;border:2px solid #7a9690;border-top:5px solid #aed5ce;transform:skewY(-12deg);box-shadow:5px 5px 0 #d4e2dd;flex:none}.top-options .subtle{font-size:12px;line-height:1.5;margin:10px 0 0}.top-options select{background:#fff}

body.show-dimensions .presentation-offer{display:none}
#dimension-note{position:absolute;left:24px;bottom:25px;padding:8px 12px;max-width:calc(100% - 340px);border-radius:8px;background:#fffffff0;color:#555;font-size:12px;pointer-events:none}
#dimensions[aria-pressed=true]{background:#a6212c;color:#fff}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){#dimension-note{left:14px;bottom:72px;max-width:calc(100% - 28px)}.views{right:14px}.views button{padding-left:9px;padding-right:9px}}

.price-card details{margin-top:18px;padding-top:16px}.price-card summary{font-size:14px;line-height:1.5;font-weight:600}.price-card #price-missing,.price-card .bom-tax-note{font-size:13px;line-height:1.55;margin:14px 0;overflow-wrap:anywhere}
#price-lines,#bom-large-lines{list-style:none;padding:0;margin:16px 0;max-height:none;overflow:visible;display:grid;gap:12px}
#price-lines li,#bom-large-lines li{display:block;margin:0;padding:14px;background:#fff;border:1px solid #e1ded7;border-radius:10px;font-size:14px;min-width:0;line-height:1.5}
.bom-name{font-weight:600;overflow-wrap:anywhere}.price-card .bom-sku,.bom-sku{display:block;font-size:12px;color:#777;margin:5px 0 12px;overflow-wrap:anywhere}.bom-amounts{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:baseline;justify-content:space-between;border-top:1px solid #eee;padding-top:10px;font-size:13px}.bom-amounts strong{font-size:15px;white-space:nowrap}.bom-amounts span{color:#666}#bom-expand{font-size:14px;background:#fff}
#bom-dialog{max-width:920px;width:calc(100% - 32px);max-height:88dvh;overflow:auto;padding:28px}#bom-dialog h2{font-size:26px;font-weight:600}#bom-dialog p{font-size:14px;line-height:1.6}#bom-large-lines{grid-template-columns:repeat(2,minmax(0,1fr))}#bom-large-total{font-size:24px;display:block;margin-top:20px}@media(max-width:600px){#bom-large-lines{grid-template-columns:1fr}#bom-dialog{padding:20px}}

/* Compact controls; the quote belongs to the configuration panel, never the canvas. */
.head-actions svg,.tools svg{width:21px;height:21px;flex:none}.head-actions #ar-open,.head-actions #cart-open{display:inline-flex;align-items:center;justify-content:center;gap:8px}.head-actions #ar-open span{font:inherit;padding:0;margin:0;border:0}.action-short,#menu-toggle,#mobile-shot,#back-to-model{display:none}.head-actions #header-more{display:flex;gap:8px;align-items:center}.tools svg{display:none}.price-card{flex:none}
@media(max-width:1100px){
 body{padding-bottom:env(safe-area-inset-bottom)}
 header{height:auto;min-height:64px;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));gap:8px;flex-wrap:nowrap;align-items:center}
 header .brand{width:114px;max-width:30%;flex-shrink:1}.brand img{width:114px}.head-title{display:none}
 .head-actions{display:flex;flex-wrap:nowrap;width:auto;gap:5px;margin-left:auto;position:relative}
 .head-actions button{min-height:44px;font-size:13px;padding:10px;flex:none;grid-column:auto!important}
 .head-actions #ar-open{gap:6px;box-shadow:none}.head-actions #ar-open .action-label,.head-actions #cart-open .action-label{display:none}.head-actions .action-short{display:inline}
 .head-actions #cart-open{width:52px;position:relative;padding-right:15px;gap:0}.head-actions #cart-count{position:absolute;right:1px;top:1px;min-width:18px;height:18px;font-size:10px;margin:0;border:2px solid white}
 #menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px}
 .head-actions #header-more{display:none;position:absolute;right:0;top:calc(100% + 12px);z-index:20;width:230px;padding:9px;background:white;border:1px solid #e0e2e5;border-radius:14px;box-shadow:0 14px 50px #18233129;flex-direction:column;align-items:stretch}
 .head-actions #header-more.is-open{display:flex}.head-actions #header-more button{width:100%;text-align:left;justify-content:flex-start;white-space:normal;min-height:44px}.head-actions #header-more #mobile-shot{display:block}
 main{display:block;padding:0;min-height:0}
 .workspace{height:calc(100svh - var(--header-height,64px) - 58px);min-height:470px;max-height:none;position:relative;top:auto}
 .stage-head{position:relative;inset:auto;flex:none;padding:6px 12px;height:54px;gap:8px;align-items:center}
 .stage-head>div{min-width:0;max-width:none;flex:1}.stage-head .eyebrow,.stage-head h1,.stage-head .stage-instruction,#background-note{display:none!important}
 .stage-head #help{position:static;min-height:40px;padding:8px 10px;font-size:12px;flex:none}
 .stage-head .background-picker{margin:0;max-width:none;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;scrollbar-width:none;touch-action:pan-x;pointer-events:auto}
 .background-picker::-webkit-scrollbar{display:none}.stage-head .background-picker button{flex:none;min-height:40px;font-size:12px;padding:8px 11px}
 [data-background=photo] .stage-head>div{padding:0;border-radius:0;background:transparent;backdrop-filter:none}
 #viewport{height:auto;min-height:0;flex:1}.views{bottom:10px;right:12px;padding:3px;gap:0}.views button{min-height:40px;font-size:12px;padding:8px 11px}
 .tools{padding:7px 12px 0;gap:5px;flex-wrap:nowrap;flex:none;justify-content:space-between}.tool-group{gap:4px;flex-wrap:nowrap}.tools button{min-height:44px;padding:9px;font-size:12px;white-space:nowrap}.tools #move{font-size:0}.tools #move:after{content:'Verschieben';font-size:12px}
 .tools #fit,.tools #undo,.tools #redo{width:40px;padding:9px}.tools #fit span,.tools #undo span,.tools #redo span{display:none}.tools svg{display:block;width:20px;height:20px}.tools #shot{display:none}
 #message{font-size:11px;line-height:1.35;padding:5px 14px;min-height:34px;max-height:40px;overflow:auto;flex:none}
 .measurements{padding:7px 14px 9px;gap:12px;flex:none}.measurements div{gap:1px}.measurements span{font-size:10px}.measurements strong{font-size:14px}.measurements p{display:none}
 aside{display:flex;flex-direction:column;margin:0 10px 16px;padding:16px;max-height:none;min-height:0;width:auto;scroll-margin-top:8px}
 aside>*{order:3}#back-to-model{display:block;order:-2;align-self:flex-end;border:0;background:#f1f3f4;font-size:12px;min-height:40px;padding:9px 12px;margin-bottom:8px}
 aside .aside-title{order:-1;padding-bottom:8px}aside .aside-title .eyebrow{display:none}.aside-title h2{margin:0;font-size:19px}.aside-title #deselect{bottom:5px}
 #selection-empty,#cell-controls{order:0}#cell-controls{display:block}.price-card{order:1;margin:20px 0 4px;padding:16px}.price-values strong{font-size:28px}#selection-empty .selection-symbol{display:none}#selection-empty h3{font-size:15px;margin:6px 0}#selection-empty p{font-size:13px;margin:0}
 aside select,aside input[type=search]{font-size:16px}.price-card small{font-size:12px}#palette{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px}.swatch{width:100%;min-height:35px;height:35px}
 #context-actions{max-width:calc(100% - 16px)}#context-actions button{min-height:40px}
 body.presentation main{min-height:0}body.presentation .workspace{height:calc(100svh - var(--header-height,64px));min-height:360px}body.presentation #viewport{min-height:0}body.presentation .stage-instruction{display:none}
}
@media(max-width:365px){header .brand{width:90px}.head-actions #ar-open svg{display:none}.tools button{padding:8px 6px}.tools #fit,.tools #undo,.tools #redo{width:36px}}

#forms-dialog{width:calc(100% - 28px);max-width:1060px;max-height:92dvh;overflow:auto;padding:28px}#forms-dialog h2{font-size:30px;margin:12px 0}#form-categories{display:flex;gap:6px;flex-wrap:wrap;margin:20px 0}#form-categories button{font-size:13px}#form-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-card{border:1px solid #e0e3e5;border-radius:14px;padding:14px;background:#fafbfb;min-width:0}.form-card svg{width:100%;height:135px;display:block}.form-card h3{font-size:15px;margin:10px 0}.form-card p,.form-card a{font-size:12px;line-height:1.5}.form-card button{width:100%;margin:10px 0;background:#262a2e;color:white}.form-card a{color:#8b242c}.form-card .source-warning{color:#886222}.panel-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.panel-fields label{font-size:12px}.construction-options .check{font-size:13px;line-height:1.5}.counter-options{grid-column:1/-1}@media(max-width:700px){#forms-dialog{padding:20px 15px}#form-cards{grid-template-columns:1fr 1fr;gap:9px}.form-card{padding:10px}.form-card svg{height:105px}.form-card button{font-size:12px}#form-categories{flex-wrap:nowrap;overflow-x:auto;padding-bottom:7px}#form-categories button{flex:none}.panel-fields{grid-template-columns:1fr}}

.form-silhouette{position:relative;width:72%;height:105px;margin:12px auto 20px}.form-silhouette span{position:absolute;border:2px solid #9ba2a5;box-sizing:border-box}.form-card a{display:block;margin-top:10px;font-size:12px}.source-warning{color:#875813}.form-card h3{min-height:3em}.form-card .primary{width:100%}

/* Compact contextual controls keep the selected furniture visible. */
.workspace #context-actions{gap:3px;padding:3px;border-radius:10px;box-shadow:0 4px 18px #1723351c}
.workspace #context-title{font-size:12px;padding:0 6px;font-weight:500}
.workspace #context-actions button{min-height:28px;height:28px;padding:4px 7px;font-size:12px;line-height:20px;border-radius:7px;flex:none}
.workspace #context-actions .context-icon{width:28px;padding:5px;line-height:0}
.workspace #context-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.workspace #context-actions #context-remove{background:transparent;color:#73777e}
.workspace #context-actions #context-remove:hover{background:#fbe9e9;color:#a4232a}
.workspace #context-actions button:focus-visible{outline:2px solid #b3222c;outline-offset:2px}
@media(pointer:coarse){.workspace #context-actions button{min-height:36px;height:36px}.workspace #context-actions .context-icon{width:36px}}
