/* Sebworld Studio 0.20 — one workspace, directly updated controls. */
:root{--red:#ac2631;--line:#e4e5e7;--soft:#696c72;--ink:#25272b;--header-height:76px;color:var(--ink);background:#f2f1ee;font-family:Inter,"Segoe UI",Arial,sans-serif}
body{height:100dvh;min-height:500px;display:flex;flex-direction:column;background:#f2f1ee;overflow:hidden}
button{font-weight:500;box-shadow:none;transition:background .15s,border-color .15s}button:hover:not(:disabled){box-shadow:none}button:active:not(:disabled){transform:none}
header{height:76px;min-height:76px;flex-shrink:0;padding:14px 24px;gap:20px;border-bottom:1px solid var(--line);background:#fff;z-index:20}
header .brand{width:182px;max-width:none}.brand img{width:182px}.head-title{display:block;font-size:13px;font-weight:600;margin-right:auto;color:#4d5056}.head-title span{border:0;margin:0;padding:0 0 0 7px;color:#8b8d92;font-weight:400}
.head-actions{display:flex;gap:7px;width:auto;align-items:center}.head-actions button{height:40px;min-height:40px;border-radius:9px;font-size:12px;padding:8px 12px}.head-actions #ar-open{box-shadow:none;background:var(--red);border-color:var(--red)}.head-actions #save{background:#25272b;border-color:#25272b}.head-actions #present{border-color:#e4e5e7;color:#4d5056}#header-more{display:flex;gap:7px;align-items:center}#header-more #load,#mobile-shot{display:none}#menu-toggle{display:flex;width:40px;justify-content:center;align-items:center}
#header-more.is-open{position:absolute;right:24px;top:66px;display:grid;gap:6px;padding:10px;border:1px solid var(--line);border-radius:13px;background:white;box-shadow:0 12px 35px #1112;z-index:50}#header-more.is-open button{display:block;width:190px;text-align:left;background:white!important;color:#25272b!important;border:0!important}#header-more.is-open #load,#header-more.is-open #mobile-shot{display:block}
main{display:grid;grid-template-columns:minmax(0,1fr) 380px;flex:1;min-height:0;padding:12px 12px 0;gap:12px;overflow:hidden}
.workspace{height:100%;min-height:0;max-height:none;position:relative;top:auto;display:flex;flex-direction:column;background:#eae9e5;border-radius:18px;overflow:hidden}
#viewport{flex:1;min-height:0;height:auto;border-radius:18px 18px 0 0}.stage-head{padding:22px 24px 10px;max-width:100%;gap:12px}.stage-head h1{font-size:27px;letter-spacing:-.8px;line-height:1.15;font-weight:500;margin:7px 0 0}.stage-head .eyebrow{font-size:10px;font-weight:600;letter-spacing:1.5px}.stage-instruction{font-size:12px;margin:7px 0 0}.stage-head #help{width:34px;height:34px;min-height:34px;padding:0;font-size:11px;background:#ffffffeb}
.background-picker{margin-top:14px;gap:4px;flex-wrap:nowrap;overflow:auto;max-width:100%;scrollbar-width:none}.background-picker button{min-height:30px;font-size:11px;padding:6px 10px;border-radius:7px;white-space:nowrap;background:#ffffffd9;backdrop-filter:none}#background-note{font-size:10px;margin-top:7px}.views{right:16px;bottom:16px;gap:2px;border-radius:10px;background:#ffffffed;backdrop-filter:none;padding:3px;box-shadow:0 4px 18px #2221}.views button{font-size:11px;min-height:32px;padding:6px 11px;border-radius:7px}
.tools{padding:9px 16px 5px;gap:5px;flex-wrap:nowrap;background:#f8f8f5}.tool-group{gap:3px;flex-wrap:nowrap}.tools button{min-height:34px;height:34px;padding:7px 10px;font-size:11px;border:0;background:transparent;border-radius:7px}.tools button[aria-pressed=true]{background:#25272b;color:white;box-shadow:none}.tools #fit,.tools #undo,.tools #redo{display:inline-flex;align-items:center;gap:5px}.tools #fit svg,.tools #undo svg,.tools #redo svg{width:16px;height:16px}.tools #fit span{display:none}.tools #shot{background:white}
#message{padding:5px 19px 8px;min-height:30px;font-size:11px;line-height:1.45;background:#f8f8f5;color:#6b6e72}.measurements{gap:26px;padding:10px 19px 13px;background:#f8f8f5;border-color:#e4e5e1;flex-shrink:0}.measurements div{gap:3px}.measurements span{font-size:10px}.measurements strong{font-size:15px;font-weight:550;letter-spacing:-.2px}.measurements p{font-size:10px;line-height:1.5}
aside[aria-label="Konfiguration"]{width:auto;height:100%;max-height:none;min-height:0;margin:0;padding:20px 20px 0;border:1px solid #e7e7e5;border-radius:18px;background:white;box-shadow:none;display:flex;flex-direction:column;overflow:hidden;scrollbar-gutter:auto}
.sidebar-heading{flex-shrink:0;margin:0 0 16px;min-height:24px}.sidebar-kicker{font-size:16px;letter-spacing:-.4px;color:#25272b;font-weight:600}.live-indicator{font-size:10px;color:#718375;gap:5px}.live-indicator:before{width:5px;height:5px}.sidebar-expand{display:none}
.sidebar-tabs{position:static;flex-shrink:0;gap:4px;box-shadow:none;margin:0 0 12px;background:#f3f4f5;border-radius:10px;padding:4px}.sidebar-tabs .sidebar-tab{font-size:13px;min-height:35px;border-radius:7px}.sidebar-tabs .sidebar-tab[aria-selected=true]{background:#fff;color:#25272b;box-shadow:0 1px 5px #25272b10}
.editor-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:6px 3px 20px 0;scrollbar-width:thin;scrollbar-color:#d8dadd transparent}.sidebar-panel .aside-title{margin:0;padding:4px 0 0}.sidebar-panel .aside-title h2{font-size:18px;letter-spacing:-.4px;margin:0 0 8px}.sidebar-panel #selection-location{font-size:12px;margin-bottom:10px}.sidebar-panel .editor-section>summary{font-size:13px;padding:15px 0;min-height:47px;color:#3c3e44}.editor-section-body{padding-bottom:16px}.sidebar-panel label,.editor-field>label{font-size:12px;font-weight:500;color:#6b6e76}.sidebar-panel .subtle{font-size:12px;line-height:1.6}.editor-field>select{font-size:14px;min-height:42px}.sidebar-panel .panel-fields select{font-size:13px}.choice-strip .choice{font-size:12px;min-height:42px;background:#fafafa;color:#5b6067}.choice-strip .choice[aria-pressed=true]{background:#f9eeee;color:#98252f;border-color:#c6878e}.sidebar-panel #palette{grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;padding:3px}.sidebar-panel .swatch{height:32px;min-height:32px;border-radius:8px}.sidebar-panel #color-name{font-size:12px;margin-top:12px}.sidebar-panel .section-label .check{font-size:12px;margin-top:5px}.sidebar-panel #rail-fields label{font-size:11px}
.sidebar-panel #selection-empty{background:#fafaf9;border:1px solid #ececeb;border-radius:12px;padding:18px;margin:5px 0}.sidebar-panel #selection-empty h3{font-size:16px;font-weight:550;letter-spacing:-.2px}.sidebar-panel #selection-empty p{font-size:13px;line-height:1.7;color:#71757b}.sidebar-panel #forms-open{font-size:12px;border-color:#d9dcdf;background:white}.sidebar-panel .top-options{margin:0}
aside .price-card{flex-shrink:0;order:initial;width:calc(100% + 40px);margin:0 -20px;padding:14px 20px 18px;border:0;border-top:1px solid #ececea;border-radius:0;background:#fcfcfa;max-height:47%;overflow:auto;scrollbar-width:thin}.price-top{gap:5px}.price-card .price-top{font-size:10px;line-height:1.4}.price-card .price-badge{font-size:9px;padding:4px 6px;background:#f0f0ec;color:#7c7d77}.price-values{margin-top:7px}.price-values strong{font-size:27px;letter-spacing:-.9px;font-variant-numeric:tabular-nums}.price-values s{font-size:12px}.price-card p{font-size:11px;margin:5px 0}.price-card small{font-size:10px;line-height:1.45;color:#858782}.price-card #cart-add{min-height:42px;font-size:13px;margin-top:11px;background:var(--red);border-color:var(--red);border-radius:9px}.price-card details{margin-top:12px;padding-top:9px}.price-card summary{font-size:11px;min-height:24px}.price-card #price-lines{font-size:12px}.local-note{margin:0}.price-card .bom-tax-note{font-size:11px}
#back-to-model{display:none!important}.workspace #context-actions{left:0;top:0;will-change:transform;backdrop-filter:none;background:#fffffff5}#loading{background:#eeeee9}.view-corner{bottom:62px;left:19px}footer{height:27px;min-height:27px;flex-shrink:0;padding:6px 24px;background:#f2f1ee;border:0;font-size:10px;align-items:center}#asset-state{font-size:10px}dialog{max-height:calc(100dvh - 40px);overflow:auto;border-radius:18px}#cart-dialog,#share-dialog{padding:26px}
[data-background=dark] .tools,[data-background=dark] #message,[data-background=dark] .measurements{background:#20252d}[data-background=dark] .tools button{color:#dde3ec}[data-background=dark] .tools #shot{color:#20252d}[data-background=dark] .measurements{border-color:#313843}
body.presentation main{display:block;min-height:0;padding:0;flex:1}body.presentation .workspace{height:100%;min-height:0;border-radius:0}body.presentation #viewport{height:100%;min-height:0}
@media(min-width:1600px){main{grid-template-columns:minmax(0,1fr) 410px;padding:16px 16px 0;gap:16px}header{padding:14px 32px}.stage-head{padding:26px 30px}.stage-head h1{font-size:30px}aside[aria-label="Konfiguration"]{padding:22px 24px 0}aside .price-card{width:calc(100% + 48px);margin:0 -24px;padding-left:24px;padding-right:24px}}
@media(max-width:1190px){.head-title{display:none}header .brand{width:162px}.brand img{width:162px}#header-more #present{display:none}#header-more.is-open #present{display:block}main{grid-template-columns:minmax(0,1fr) 350px}.stage-head h1{font-size:23px}.stage-head{padding:19px}.tools #move{font-size:10px}.tools #undo span,.tools #redo span{display:none}.tools #undo,.tools #redo{width:32px;padding:8px}}
@media(max-width:900px){
 body{min-height:0}header{height:62px;min-height:62px;padding:10px 14px;gap:10px}header .brand{width:133px;max-width:none}.brand img{width:133px}.head-actions{gap:5px}.head-actions button{min-height:38px;height:38px;padding:7px 9px}.head-actions #ar-open{width:auto}.head-actions #ar-open .action-label{display:none}.head-actions #ar-open .action-short{display:inline;font-size:11px;padding:0;border:0;margin:0}.head-actions #cart-open .action-label{display:none}#cart-open{width:45px!important}#header-more{display:none}#header-more.is-open{top:55px;right:14px}#header-more.is-open #present,#header-more.is-open #save,#header-more.is-open #forms-menu{display:block}#menu-toggle{width:35px;padding:7px}
 main{display:flex;flex-direction:column;gap:8px;padding:8px 8px 0;min-height:0}.workspace{flex:1;height:auto;min-height:180px;max-height:none;border-radius:14px}#viewport{min-height:0;border-radius:14px 14px 0 0}.stage-head{padding:15px 16px 5px}.stage-head>div{max-width:calc(100% - 25px)}.stage-head .eyebrow{font-size:9px;letter-spacing:1px}.stage-head h1{font-size:20px;margin-top:5px;letter-spacing:-.5px}.stage-head .stage-instruction{display:none}.stage-head #help{position:absolute;right:12px;top:12px;width:29px;height:29px;min-height:29px;font-size:10px}.background-picker{margin-top:10px;max-width:100%;gap:3px}.background-picker button{min-height:28px;height:28px;font-size:10px;padding:5px 8px}#background-note{display:none}.views{right:10px;bottom:10px;padding:2px;gap:0}.views button{min-height:31px;font-size:10px;padding:5px 9px}.tools{padding:6px 9px;justify-content:space-between;gap:4px}.tools button{height:32px;min-height:32px;font-size:10px;padding:6px 8px}.tools #shot{display:none}.tools #fit{width:31px;justify-content:center;padding:7px}.tools #undo,.tools #redo{width:31px}.tool-group{gap:2px}#message{padding:3px 12px 6px;min-height:24px;max-height:36px;overflow:hidden;font-size:10px}.measurements{display:none}body.show-dimensions .measurements{display:none}.workspace #context-actions{max-width:calc(100% - 16px)}.workspace #context-actions button{min-height:32px;height:32px}.workspace #context-actions .context-icon{width:32px}.workspace #context-title{font-size:11px}#hover-label{display:none}
 aside[aria-label="Konfiguration"]{height:auto;flex:none;max-height:none;min-height:0;padding:10px 14px 0;border-radius:14px;margin:0;overflow:hidden}.sidebar-heading{margin:0 0 7px;min-height:27px;gap:8px}.sidebar-kicker{font-size:14px}.live-indicator{margin-right:auto;font-size:9px}.sidebar-expand{display:block;font-size:11px;min-height:29px;height:29px;padding:5px 9px;border:0;background:#f2f3f4;color:#4f535a;border-radius:7px}.sidebar-expand:after{content:'⌃';display:inline-block;margin-left:8px}.editor-expanded .sidebar-expand:after{transform:rotate(180deg)}.sidebar-tabs{display:none;margin:0 0 7px;padding:3px}.editor-body{display:none}.editor-expanded .sidebar-tabs{display:grid}.editor-expanded .editor-body{display:block;min-height:100px;flex:1;padding-bottom:15px}.editor-expanded{height:53dvh!important;max-height:520px!important}.sidebar-panel .aside-title h2{font-size:16px;margin-top:5px}.sidebar-panel label{font-size:12px}.choice-strip .choice{min-height:41px;font-size:12px}.sidebar-panel select{font-size:16px!important}.sidebar-panel .swatch{height:34px;min-height:34px}.sidebar-panel .editor-section>summary{min-height:44px;padding:12px 0}.sidebar-panel #selection-location{margin-bottom:4px}
 aside .price-card{order:initial;margin:0 -14px;width:calc(100% + 28px);padding:8px 14px max(10px,env(safe-area-inset-bottom));max-height:none;overflow:visible;display:grid;grid-template-columns:minmax(0,1fr) 140px;column-gap:8px;align-items:center;flex:none}.price-card .price-top{grid-column:1;font-size:9px}.price-card .price-badge{display:none}.price-values{grid-column:1;grid-row:2;margin:0;justify-content:flex-start;gap:10px}.price-values s{font-size:10px}.price-values strong{font-size:21px;letter-spacing:-.6px}.price-card #cart-add{grid-column:2;grid-row:1/4;min-height:41px;height:auto;margin:0;font-size:11px;padding:8px}.price-card>p{grid-column:1;font-size:9px;margin:0}.price-card>small{display:none}.price-card>details{display:none;grid-column:1/-1}.editor-expanded .price-card>details{display:block;margin-top:6px;padding-top:5px}.editor-expanded .price-card details[open]{max-height:110px;overflow:auto}.editor-expanded .price-card small{display:block;grid-column:1/-1;font-size:9px;padding-top:4px}.editor-expanded .price-card small br{display:none}.editor-expanded .price-card small br:after{content:' · '}.price-card summary{font-size:10px;min-height:20px}
 footer{height:23px;min-height:23px;display:flex;flex-direction:row;padding:4px 14px;gap:8px;font-size:9px}footer>span:first-child{display:none}footer #asset-state{max-width:85%;font-size:9px;text-align:left}footer #count{margin-left:auto;white-space:nowrap}body.presentation .workspace{height:100%;min-height:0;max-height:none}body.presentation .stage-head .stage-instruction{display:none}.view-corner{bottom:48px}
}
@media(max-width:370px){header{padding:9px 10px;gap:5px}header .brand,.brand img{width:113px}.head-actions #ar-open svg{width:15px;height:15px}.head-actions #ar-open{padding:7px}.price-values strong{font-size:19px}.price-values{gap:6px}aside .price-card{grid-template-columns:minmax(0,1fr) 127px}.live-indicator{display:none}.tools #move{padding:6px}.views button{padding:5px 8px}}
@media(max-height:700px) and (min-width:901px){.stage-head{padding-top:16px}.stage-head h1{font-size:22px}.stage-instruction,#background-note{display:none}.measurements{padding-top:7px;padding-bottom:7px}aside[aria-label="Konfiguration"]{padding-top:12px}.sidebar-heading{margin-bottom:8px}.sidebar-tabs{margin-bottom:8px}.price-card small{font-size:9px}aside .price-card{padding-top:9px;padding-bottom:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:900px){body:has(aside.editor-expanded) .stage-head h1,body:has(aside.editor-expanded) .stage-head .eyebrow{display:none}body:has(aside.editor-expanded) .stage-head{padding-top:8px}body:has(aside.editor-expanded) .background-picker{margin-top:0}}

.sidebar-tabs .sidebar-tab:not([aria-selected=true]):hover{background:#e9ebee}.sidebar-tabs .sidebar-tab[aria-selected=true]{color:#9e2631;box-shadow:0 1px 5px #25272b10,inset 0 -2px #b52b3540}
@media(max-width:900px){.workspace .stage-head{position:absolute;inset:0 0 auto;max-width:100%;width:100%;height:auto;align-items:flex-start;padding:12px 14px}.workspace .stage-head>div{flex:1;min-width:0;max-width:calc(100% - 26px)}.workspace .stage-head #help{position:static;width:28px;min-height:28px;height:28px;padding:0;font-size:10px}.workspace .stage-head .background-picker{width:100%;max-width:100%;min-width:0;margin:0;gap:3px}.workspace .stage-head .background-picker button{min-height:28px;height:28px;font-size:10px;padding:5px 8px}.workspace .views button{min-height:31px;height:31px;font-size:10px;padding:5px 9px}.workspace .tools #move:after{content:none}.workspace .tools #move{font-size:10px}#viewport{width:100%;min-width:0}.workspace .views{max-width:calc(100% - 20px)}.workspace .tools{flex-shrink:0}.workspace .tools button{white-space:nowrap}.editor-expanded .price-card small{white-space:normal}.sidebar-tabs .sidebar-tab{min-height:34px}}

/* Studio 0.21: calm room selector and sculpted configuration surfaces. */
body{background:#eeede9}header{background:#fcfcfa;border-bottom:1px solid #e3e2dd}.head-title{font-size:13px;color:#535953;letter-spacing:.01em}.head-title span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#a2a59e;margin-left:10px}.stage-head{position:absolute;z-index:3;inset:0 0 auto;padding:24px 26px;pointer-events:none}.stage-head>div,.stage-head #help{pointer-events:auto}.stage-head h1{font-size:30px;font-weight:400;letter-spacing:-1px}.stage-head .background-picker{display:inline-flex;background:#ffffffbc;padding:4px;border:1px solid #ffffffd9;border-radius:24px;gap:3px;backdrop-filter:blur(12px)}.stage-head .background-picker button{display:flex;align-items:center;gap:8px;background:transparent;border:0;border-radius:18px;min-height:30px;font-size:11px;padding:5px 11px;color:#666c66}.stage-head .background-picker button[aria-pressed=true]{background:#fff;color:#28302a;box-shadow:0 2px 8px #0001}.room-swatch{display:inline-block;width:13px;height:13px;border-radius:50%;box-shadow:inset 0 0 0 1px #0001}.room-swatch.light{background:#e2ddcf}.room-swatch.dark{background:#353c42}.sidebar-heading{justify-content:space-between}.sidebar-expand{margin-left:auto}.sidebar-kicker{font-size:17px;font-weight:550}.sidebar-panel .editor-section{border:1px solid #eeeee9;border-radius:13px;margin:0 0 9px;background:#fff;overflow:hidden}.sidebar-panel .editor-section>summary{padding:13px 14px;min-height:44px;font-weight:550}.editor-section[open]>summary{border-bottom:1px solid #f0f0ec;background:#fafaf7}.editor-section-body{padding:14px!important}.choice-strip{gap:6px}.choice-strip .choice{border:1px solid #e6e7e2;border-radius:9px;background:#fafaf8;min-height:40px;font-size:11px;color:#6c736e}.choice-strip .choice[aria-pressed=true]{color:#273d33;border-color:#829388;background:#ecf0eb}.choice-strip .choice:disabled{opacity:.3;filter:grayscale(1);cursor:not-allowed}.front-icon{display:block;margin:0 auto 8px;width:26px;height:24px;border:1.5px solid currentColor;position:relative}.front-icon-open:after{content:'';position:absolute;inset:3px;border:1px solid currentColor;opacity:.3}.front-icon-flap:after,.front-icon-retract:after,.front-icon-drawer:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:17px;border:1px solid currentColor;background:#fff9}.front-icon-flap:after{transform:skewY(-15deg) translate(-3px,4px)}.front-icon-retract:after{height:4px;transform:translateY(-3px)}.front-icon-drawer:after{transform:translate(-3px,4px)}.choice-strip:has(.front-icon){grid-template-columns:repeat(4,1fr)}.choice:has(.front-icon){padding:12px 3px 8px;min-height:69px;font-size:10px}.sidebar-panel #palette{gap:8px}.sidebar-panel .swatch{border-radius:50%;height:29px;min-height:29px;max-width:29px;border:3px solid white;outline:1px solid #dde0da;box-shadow:inset 0 1px 3px #0002}.sidebar-panel .swatch[aria-pressed=true]{outline:2px solid #364e40;outline-offset:3px}.sidebar-panel #selection-location{padding:9px 12px;background:#f1f3ee;color:#657166;border-radius:9px;font-size:11px}.sidebar-panel .aside-title .eyebrow{display:none}.sidebar-panel .aside-title h2{margin-bottom:12px;font-size:21px}.sidebar-panel #front-hint{font-size:11px;line-height:1.5;margin:12px 0}.price-card .price-badge:empty{display:none}.form-preview{display:block;width:100%;height:auto;aspect-ratio:640/440;object-fit:contain;background:#e9e9e5;border-radius:12px}.form-card{border-radius:18px;padding:13px;border-color:#e6e7e0}.form-card h3{font-size:14px;margin:16px 0 8px}.form-card>p{font-size:11px}.form-card button{min-height:38px;font-size:12px;border-radius:9px}#form-categories{display:flex;gap:7px;flex-wrap:wrap}#form-categories button{border-radius:22px;font-size:12px;background:#f3f4ef}#form-categories button[aria-pressed=true]{background:#253c30;color:white;border-color:#253c30}.form-card a{font-size:10px}.price-card .price-values strong{color:#293d32}#ar-dialog #ar-start,#ar-dialog #ar-prepare{background:#293e32;color:#fff;border-color:#293e32;border-radius:12px}#ar-dialog #ar-quick-ready{background:#293e32;color:#fff;border-radius:12px;padding:15px;display:flex;align-items:center;gap:15px}#ar-dialog #ar-quick-ready[hidden]{display:none}#ar-quick-ready img{width:84px;border-radius:9px}#ar-quick-label{font-size:17px}#ar-dialog .ar-help{margin:20px 0}body[data-background=dark] .stage-head h1,body[data-background=dark] .stage-head .stage-instruction,body[data-background=dark] #background-note{color:#e5e8e1}body[data-background=dark] .stage-head .eyebrow{color:#bbc4bb}#viewport{min-height:0}
@media(max-width:900px){.workspace .stage-head h1,.workspace .stage-head .eyebrow,.workspace .stage-head .stage-instruction{display:none}.workspace .stage-head{padding:10px 12px}.workspace .stage-head .background-picker{width:auto;margin:0;border-radius:20px}.workspace .stage-head .background-picker button{font-size:10px;gap:6px;padding:4px 9px;height:27px;min-height:27px}.room-swatch{width:10px;height:10px}.editor-expanded{height:50dvh!important}.sidebar-panel .editor-section-body{padding:12px!important}.sidebar-panel .editor-section>summary{font-size:12px;padding:12px}.sidebar-panel .swatch{max-width:31px;height:31px;min-height:31px}.sidebar-panel .aside-title h2{font-size:18px}.choice-strip .choice{min-height:38px}.choice:has(.front-icon){min-height:65px}.sidebar-panel .aside-title .eyebrow{display:none}.sidebar-panel .editor-section{margin-bottom:7px}.form-card h3{font-size:13px}aside .price-card{background:#fafbf7}.price-values strong{font-size:23px}}

/* Stable desktop editor and contextual actions; focus never scrolls the stage. */
.workspace,#viewport{overflow:clip}aside[aria-label="Konfiguration"],.workspace,.editor-body{min-width:0}.editor-body{scrollbar-gutter:stable;overflow-x:hidden;overflow-anchor:none}.workspace #context-edit{display:inline-flex;align-items:center;justify-content:center}.workspace #context-title{min-width:43px}.workspace #context-front{width:76px;text-align:center}.workspace #context-actions{white-space:nowrap;flex-wrap:nowrap}#form-cards{overflow-anchor:none}

/* Stable header: three actions, an overlay menu, and templates with the design. */
header{flex-wrap:nowrap;overflow:visible}
header .head-actions{display:flex;flex-wrap:nowrap;position:relative;margin-left:auto;width:auto;flex-shrink:0}
header .head-actions>button{flex:none}
header #menu-toggle{order:1;margin-left:2px}
.head-actions #header-more{display:none;position:fixed;inset:auto;margin:0;right:12px;top:var(--menu-top,80px);width:248px;max-width:calc(100vw - 24px);max-height:calc(100dvh - var(--menu-top,80px) - 12px);padding:8px;overflow:auto;overscroll-behavior:contain;border:1px solid #e5e6e1;border-radius:16px;background:#fff;box-shadow:0 18px 60px #16231c26;z-index:100;align-items:stretch}
.head-actions #header-more.is-open{position:fixed;display:grid;right:12px;top:var(--menu-top,80px);gap:4px;padding:8px;align-items:stretch}
.head-actions #header-more button{display:flex!important;align-items:center;width:100%;min-height:44px;height:auto;padding:11px 12px;white-space:normal;text-align:left;justify-content:flex-start;font-size:13px;line-height:1.4;border:0!important;border-radius:10px;background:#fff!important;color:#303b34!important;box-shadow:none}
.head-actions #header-more button:hover,.head-actions #header-more button:focus-visible{background:#f0f3ed!important}
#header-more::backdrop{background:transparent}
.sidebar-heading{display:flex;align-items:center;gap:8px}
.sidebar-heading .sidebar-kicker{margin-right:auto;flex-shrink:0}
.sidebar-heading .design-templates{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:34px;padding:7px 10px;border:1px solid #e0e5dc;border-radius:9px;background:#f4f6f0;color:#34473b;font-size:11px;white-space:nowrap}
.sidebar-heading .design-templates:hover{background:#eaf0e5;border-color:#bdc9b9}
@media(max-width:900px){.sidebar-heading{gap:6px}.sidebar-heading .design-templates{min-height:30px;padding:6px 8px;font-size:10px}.sidebar-heading .sidebar-expand{flex-shrink:0}.head-actions #header-more{width:238px}}

/* Integrated template gallery follows the same design navigation as the editor. */
.sidebar-tabs{grid-template-columns:minmax(0,.7fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.7fr)}
.sidebar-tabs .sidebar-tab{padding:8px 4px;font-size:12px;white-space:nowrap}
.sidebar-tabs #forms-menu{letter-spacing:0}
.templates-library{padding:2px 0 8px}
.templates-intro .eyebrow{font-size:9px;letter-spacing:1.4px;color:#91938d}
.templates-intro h2{font-size:21px;letter-spacing:-.5px;font-weight:550;margin:5px 0 7px}
.templates-intro p{font-size:12px;line-height:1.5;color:#767974;margin:0 0 16px}
#forms-library #form-categories{display:grid;gap:8px;margin:0;overflow:visible}
#forms-library #form-category{min-height:40px;width:100%;font-size:12px;border:1px solid #e6e7e2;border-radius:10px;background:#fafaf8;color:#454942;padding:9px 11px}
#forms-library .template-search{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 11px;margin:0;border:1px solid #e6e7e2;border-radius:10px;background:#fff;color:#8e928a}
.template-search svg{width:16px;height:16px;flex:none}
#forms-library .template-search input{min-width:0;width:100%;height:36px;min-height:36px;padding:5px 0;border:0;background:transparent;font-size:12px;outline:0;box-shadow:none}
.template-search:focus-within{border-color:#b7747b!important;box-shadow:0 0 0 2px #ac263112}
#forms-library #forms-status{font-size:10px;line-height:1.5;color:#92958e;margin:12px 0 10px}
#forms-library #form-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#forms-library .form-card{display:flex;flex-direction:column;min-width:0;padding:8px;border:1px solid #e7e7e2;border-radius:13px;background:#fff;transition:border-color .15s,box-shadow .15s}
#forms-library .form-card:hover{border-color:#c8c8bf;box-shadow:0 5px 16px #292d2510}
#forms-library .form-card .form-preview-action{position:relative;display:block;width:100%;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:8px;background:#f1f1ed;color:#50534b;cursor:pointer}
#forms-library .form-preview{width:100%;height:auto;aspect-ratio:640/440;object-fit:contain;display:block;border-radius:8px;background:#f1f1ed}
#forms-library .form-variant{position:absolute;left:5px;right:5px;bottom:5px;width:max-content;max-width:calc(100% - 10px);padding:3px 5px;border-radius:5px;background:#ffffffed;font-size:9px;line-height:1.3;color:#555b51;white-space:normal}
#forms-library .form-card h3{font-size:12px;line-height:1.45;font-weight:550;letter-spacing:-.1px;margin:9px 1px 5px;min-height:0;overflow-wrap:anywhere}
#forms-library .form-dimensions{font-size:10px;line-height:1.5;color:#858880;margin:0 1px 7px}
.form-cell-count{display:block;font-size:10px;color:#9a9c97;margin-top:2px}
#forms-library .form-card .form-use{margin:auto 0 0;min-height:34px;padding:7px 4px;font-size:11px;font-weight:550;border:1px solid #ead3d5;border-radius:7px;background:#fbf2f2;color:#a02530;width:100%}
#forms-library .form-card .form-use:hover{background:#ac2631;border-color:#ac2631;color:white}
#forms-library .form-card a{display:block;font-size:9px;line-height:1.5;color:#93968e;margin:7px 0 1px;text-align:center;text-decoration:none}
#forms-library .form-card a:hover{color:#a02530;text-decoration:underline}
#forms-library .source-warning{font-size:9px;line-height:1.4;margin:0 0 7px;color:#987346}
#forms-library .template-note{margin-top:18px;padding-top:12px;border-top:1px solid #eeeee8}
#forms-library .template-note summary{font-size:10px;color:#95978f;min-height:24px}
#forms-library .template-note p{font-size:10px;color:#8c8e87;line-height:1.6}
#forms-empty{padding:18px 12px;border:1px dashed #dedfd8;border-radius:11px;text-align:center}
#forms-empty p{font-size:12px;color:#7b7e76}
#forms-empty button,#forms-retry{font-size:11px;min-height:38px;color:#a02530;border-color:#ead3d5;background:#fbf2f2}
#forms-library button:focus-visible,#forms-library a:focus-visible{outline:2px solid #ac2631;outline-offset:2px}
@media(max-width:900px){
 .sidebar-tabs{display:grid;margin-bottom:7px}
 .sidebar-tabs .sidebar-tab{font-size:11px;min-height:32px;padding:7px 3px}
 .templates-intro .eyebrow{display:none}
 .templates-intro h2{font-size:18px;margin:0 0 5px}
 .templates-intro p{font-size:11px;margin-bottom:10px}
 #forms-library #form-categories{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6px}
 #forms-library #form-category,#forms-library .template-search input{font-size:16px!important}
 #forms-library #form-category{padding:8px 6px;min-height:38px}
 #forms-library .template-search{padding:0 7px}
 #forms-library .form-card .form-use{min-height:40px}
 #forms-library .form-card a{font-size:9px;padding:3px 0}
 #forms-library .form-card h3{font-size:12px}
 #forms-library #forms-status{margin:8px 0}
}
@media(prefers-reduced-motion:reduce){#forms-library .form-card{transition:none}}
