:root{
  --bg:#eef1f4;
  --panel:#ffffff;
  --panel-soft:#f7f8fa;
  --text:#1e2329;
  --muted:#747c86;
  --line:#dfe3e8;
  --line-strong:#cfd5dc;
  --accent:#2563eb;
  --accent-soft:#eef4ff;
  --danger:#b94034;
  --warning:#a86a09;
  --success:#2f7d52;
  --shadow:0 14px 40px rgba(20,28,38,.10);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);overflow:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{height:100%;display:grid;grid-template-rows:60px 1fr}
.topbar{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(320px,1fr);align-items:center;gap:18px;padding:0 14px 0 16px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(16px);z-index:60}
.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand-mark{width:34px;height:34px;border-radius:9px;background:#17191d;color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px}.brand-copy{min-width:0}.brand strong{display:block;font-size:14px}.brand span{display:block;margin-top:2px;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage-tabs{display:flex;align-items:center;background:#f2f4f6;border:1px solid #e7eaee;border-radius:10px;padding:3px}.stage-tab{height:34px;border:0;background:transparent;border-radius:7px;padding:0 13px;color:#69717b;font-size:11px;font-weight:700}.stage-tab span{opacity:.55;margin-right:4px;font-size:9px}.stage-tab.active{background:#fff;color:#1f242a;box-shadow:0 1px 4px rgba(30,38,48,.08)}
.top-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px}.separator{height:23px;width:1px;background:var(--line);margin:0 2px}.btn,.icon-btn{height:34px;border:1px solid var(--line);background:#fff;color:#2b3036;border-radius:8px;padding:0 11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:.14s}.btn:hover,.icon-btn:hover{border-color:var(--line-strong);background:#fafbfc}.btn.primary{background:#17191d;border-color:#17191d;color:#fff}.btn.primary:hover{background:#292c31}.btn.ghost{background:#fff}.btn.danger{color:var(--danger);background:#fff9f8;border-color:#f0d3cf}.icon-btn{width:34px;padding:0;font-size:18px}.icon-btn:disabled{opacity:.34;cursor:default}.file-btn{position:relative}
.stage-host{min-height:0;position:relative}.stage{position:absolute;inset:0;display:none;min-height:0}.stage.active{display:block}
#stage-plan.active{display:grid;grid-template-columns:74px minmax(0,1fr) 330px}
.toolrail{background:#fff;border-right:1px solid var(--line);padding:12px 8px;display:flex;flex-direction:column;gap:6px;z-index:10}.tool{border:0;background:transparent;min-height:54px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#626b75}.tool b{font-size:19px;font-weight:500}.tool span{font-size:9px;font-weight:650}.tool:hover{background:#f4f6f8;color:#1f2429}.tool.active{background:var(--accent-soft);color:var(--accent)}.rail-spacer{flex:1}
.canvas-wrap{position:relative;min-width:0;min-height:0;overflow:hidden;background:radial-gradient(circle at 50% 45%,#fbfcfd 0,#eef1f4 78%);touch-action:none}.canvas-wrap:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 80px rgba(25,36,50,.025)}
#planSvg{position:absolute;inset:0;width:100%;height:100%;user-select:none;touch-action:none}.sheet{fill:#fff;stroke:#d9dee4;stroke-width:2}.grid-small{fill:none;stroke:#eef1f4;stroke-width:1}.grid-large{fill:none;stroke:#dfe4e9;stroke-width:1.35}#gridLayer{opacity:.82}#referenceImage{pointer-events:none}
.wall-base{stroke:#747980;stroke-linecap:square;fill:none}.wall-inner{stroke:#fafafa;stroke-linecap:square;fill:none}.wall-accent{stroke:#a5663f;stroke-linecap:square;fill:none;opacity:.9}.wall-hit{stroke:transparent;stroke-width:30;cursor:pointer}.wall-selected .wall-base{stroke:#2563eb}.wall-handle{fill:#fff;stroke:#2563eb;stroke-width:4;cursor:grab;filter:drop-shadow(0 3px 5px rgba(20,40,80,.15))}.door-line{stroke:#747a82;stroke-width:4;fill:none}.door-arc{stroke:#9ba1aa;stroke-width:3;fill:none}.door-hit{stroke:transparent;stroke-width:24;fill:none;cursor:pointer}.door-selected .door-line,.door-selected .door-arc{stroke:#2563eb}.door-handle{fill:#fff;stroke:#2563eb;stroke-width:3;cursor:grab;filter:drop-shadow(0 3px 5px rgba(20,40,80,.15))}.sliding-opening-clear{stroke:#fff;stroke-width:30;stroke-linecap:butt}.sliding-jamb{stroke:#6f7780;stroke-width:3}.sliding-track{stroke:#a7afb7;stroke-width:3;stroke-dasharray:9 7}.sliding-panel{stroke:#6e8494;stroke-width:8;stroke-linecap:square}.door-selected .sliding-panel,.door-selected .sliding-track,.door-selected .sliding-jamb{stroke:#2563eb}.sliding-label{font-size:18px;font-weight:800;fill:#65717c;letter-spacing:.08em;text-anchor:middle;dominant-baseline:middle;pointer-events:none}.door-selected .sliding-label{fill:#2563eb}
.object rect.object-body{stroke:rgba(25,31,40,.70);stroke-width:3;filter:url(#objectShadow);cursor:grab}.object.locked rect.object-body{cursor:not-allowed;stroke-dasharray:8 6}.object text{font-size:17px;font-weight:750;fill:#1e2329;pointer-events:none;text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:rgba(255,255,255,.85);stroke-width:4px}.object .selection-ring{fill:none;stroke:#2563eb;stroke-width:5;stroke-dasharray:12 8;pointer-events:none}.object:not(.selected) .selection-ring{display:none}.object.selected rect.object-body{stroke:#2563eb;stroke-width:5}.resize-handle{fill:#fff;stroke:#2563eb;stroke-width:3;cursor:nwse-resize}.resize-handle.ne,.resize-handle.sw{cursor:nesw-resize}.rotate-line{stroke:#2563eb;stroke-width:3}.rotate-handle{fill:#fff;stroke:#2563eb;stroke-width:3;cursor:grab}.measure-line{stroke:#2563eb;stroke-width:4;stroke-dasharray:10 7;pointer-events:none}.measure-point{fill:#fff;stroke:#2563eb;stroke-width:4;pointer-events:none}.preview-wall{stroke:#2563eb;stroke-width:6;stroke-dasharray:12 8;pointer-events:none}
.canvas-status{position:absolute;left:14px;top:12px;z-index:8;display:flex;gap:7px;pointer-events:none}.canvas-status span{background:rgba(255,255,255,.92);border:1px solid var(--line);box-shadow:0 4px 18px rgba(20,28,40,.06);border-radius:999px;padding:7px 10px;font-size:10px;color:#68717b;backdrop-filter:blur(10px)}.canvas-status #modeBadge{font-weight:750;color:#1f4f96}.canvas-status .warning{color:#92610d;background:#fffbef;border-color:#efe0b8}.canvas-status .ok{color:#2f6d49;background:#f1fbf5;border-color:#d6eadf}
.view-dock{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);height:38px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.95);box-shadow:0 8px 24px rgba(20,28,40,.08);display:flex;align-items:center;overflow:hidden;z-index:12}.view-dock button{height:100%;width:38px;border:0;background:transparent;font-size:17px;color:#48515b}.view-dock span:not(#zoomLabel){width:1px;height:20px;background:var(--line)}.view-dock #zoomLabel{width:58px;text-align:center;font-size:10px;color:#69717a}
.inspector{background:#fff;border-left:1px solid var(--line);min-height:0;overflow:auto}.inspector-head{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:17px 17px 13px;border-bottom:1px solid var(--line)}.eyebrow{display:block;text-transform:uppercase;letter-spacing:.13em;font-size:8px;font-weight:800;color:#979da5}.inspector-head h2,.dialog-head h2{margin:4px 0 0;font-size:17px}.inspector-body{padding:16px}.hidden{display:none!important}
.progress-card{padding:13px;border:1px solid #e5e8ec;border-radius:10px;background:#fafbfc}.progress-copy{display:flex;align-items:center;justify-content:space-between;gap:12px}.progress-copy strong{font-size:11px}.progress-copy span{font-size:9px;color:var(--muted)}.progress-track{height:5px;border-radius:99px;background:#e8ebef;margin-top:10px;overflow:hidden}.progress-track i{display:block;height:100%;width:0;background:#2563eb;border-radius:inherit;transition:.2s}
.setup-card{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:start;padding:13px 0;border-bottom:1px solid #edf0f2}.setup-icon{width:26px;height:26px;border-radius:7px;background:#f0f3f6;display:grid;place-items:center;font-size:10px;font-weight:800;color:#505964}.setup-card strong{font-size:11px;display:block}.setup-card span{font-size:10px;color:#7a828c;line-height:1.45;display:block;margin-top:3px}.text-btn{border:0;background:transparent;color:#2563eb;padding:2px 0;font-size:10px;font-weight:750;white-space:nowrap}.section-title{margin-top:18px;padding-top:15px;border-top:1px solid var(--line);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#90969f}.settings-list{margin-top:5px;display:grid}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;font-size:11px}.switch-row.boxed{border:1px solid var(--line);border-radius:9px;padding:10px 11px;margin-top:4px}.switch-row input{display:none}.switch-row i{position:relative;width:34px;height:20px;border-radius:999px;background:#d8dde2;transition:.16s;flex:0 0 auto}.switch-row i:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15);transition:.16s}.switch-row input:checked+i{background:#2563eb}.switch-row input:checked+i:after{transform:translateX(14px)}
.reference-controls{margin-top:14px}.field-head{display:flex;align-items:center;justify-content:space-between;font-size:10px}.field-head strong{font-size:9px;color:#737b85}.reference-controls>input{width:100%;margin:9px 0 7px}.reference-controls small,.muted{font-size:9px;line-height:1.45;color:#8d949d}.selection-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:6px 9px;margin-bottom:13px;font-size:10px;color:#5e6670}.selection-chip span{width:10px;height:10px;border-radius:50%}.wall-chip span{background:#737980}.door-chip span{background:#a77a58}
.field{display:grid;gap:6px;margin-bottom:11px}.field>span{font-size:9px;font-weight:750;color:#6a727c}.field input,.field select,.field textarea{width:100%;border:1px solid #d9dde3;border-radius:8px;background:#fff;color:#24292f;outline:none;padding:0 10px}.field input,.field select{height:37px}.field textarea{padding:8px 10px;resize:vertical;min-height:70px;line-height:1.4}.field input:focus,.field select:focus,.field textarea:focus{border-color:#91b6fb;box-shadow:0 0 0 3px #eef4ff}.field input[type=color]{padding:4px}.field-grid{display:grid;gap:8px}.field-grid.two{grid-template-columns:1fr 1fr}.compact-grid .field{margin-bottom:0}.unit-input{position:relative}.unit-input input{padding-right:34px}.unit-input em{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-style:normal;font-size:9px;color:#959ca5}.unit-input.large input{height:44px;font-size:15px}.inspector-actions{border-top:1px solid var(--line);margin-top:16px;padding-top:14px;display:flex}.inspector-actions.split{justify-content:space-between}.hint{margin:0 0 14px;font-size:10px;line-height:1.5;color:#757d87}
.toast{position:fixed;z-index:200;left:50%;bottom:22px;transform:translate(-50%,16px);opacity:0;pointer-events:none;background:#17191d;color:#fff;border-radius:9px;padding:10px 13px;font-size:11px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
dialog{border:0;padding:0;border-radius:14px;box-shadow:0 30px 80px rgba(18,25,35,.28);width:min(455px,calc(100% - 28px))}dialog::backdrop{background:rgba(15,22,32,.40);backdrop-filter:blur(2px)}.dialog-card{padding:18px}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:17px}.dialog-copy{font-size:11px;line-height:1.5;color:#6f7781;margin:-4px 0 15px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
/* Inventar */
#stage-inventory{overflow:auto;background:#f4f6f8}.inventory-shell{max-width:1280px;margin:0 auto;padding:38px 32px 60px}.inventory-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-start}.inventory-head h1{margin:6px 0 8px;font-size:26px;letter-spacing:-.03em}.inventory-head p{max-width:680px;margin:0;color:#707985;font-size:12px;line-height:1.6}.inventory-progress{width:112px;height:88px;border-radius:14px;background:#17191d;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--shadow)}.inventory-progress strong{font-size:22px}.inventory-progress span{font-size:9px;color:#aeb4bd;margin-top:3px;text-transform:uppercase;letter-spacing:.1em}.inventory-toolbar{position:sticky;top:0;z-index:12;margin:26px 0 14px;padding:10px;border:1px solid var(--line);background:rgba(255,255,255,.93);backdrop-filter:blur(14px);border-radius:12px;display:flex;gap:8px;box-shadow:0 8px 25px rgba(30,40,50,.04)}.search-box{flex:1;height:36px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:#fff}.search-box span{font-size:15px;color:#89919a}.search-box input{border:0;outline:0;background:transparent;width:100%;font-size:11px}.inventory-toolbar>select{height:36px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 9px;color:#535b65;font-size:10px}.inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.inv-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px;display:grid;grid-template-columns:54px 1fr;gap:12px;min-width:0;transition:.15s}.inv-card:hover{border-color:#cdd3da;box-shadow:0 8px 28px rgba(22,31,41,.05)}.inv-preview{height:54px;border-radius:9px;border:1px solid rgba(30,35,42,.15);display:grid;place-items:center;position:relative;overflow:hidden}.inv-preview:after{content:"";position:absolute;inset:auto 8px 8px 8px;height:3px;background:rgba(0,0,0,.16);border-radius:10px;filter:blur(2px)}.inv-preview span{font-size:9px;font-weight:800;color:rgba(20,24,30,.70);z-index:1}.inv-main{min-width:0}.inv-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.inv-title strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-dot{width:7px;height:7px;border-radius:50%;background:#d69d3e;flex:0 0 auto}.status-dot.defined{background:#4c9a6a}.inv-fields{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:7px;margin-top:9px}.inv-fields select,.inv-fields input{height:32px;border:1px solid #dde1e6;border-radius:7px;background:#fff;padding:0 8px;font-size:9px;min-width:0}.inv-meta{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.inv-meta span{font-size:8px;color:#9299a2}.inv-meta button{border:0;background:transparent;color:#2563eb;font-size:9px;padding:0;font-weight:700}
/* 3D */
#stage-tour{background:#dfe4ea}.tour-shell{position:relative;width:100%;height:100%;overflow:hidden;background:linear-gradient(#e9edf1 0 58%,#d9dde2 58% 100%)}#tourCanvas{position:absolute;inset:0;width:100%;height:100%;outline:none;cursor:grab}.tour-shell.dragging #tourCanvas{cursor:grabbing}.tour-topbar{position:absolute;left:14px;right:14px;top:14px;z-index:5;min-height:54px;border:1px solid rgba(210,216,223,.95);background:rgba(255,255,255,.91);backdrop-filter:blur(14px);border-radius:12px;box-shadow:0 10px 35px rgba(25,35,45,.08);display:flex;align-items:center;gap:12px;padding:8px 9px 8px 13px}.tour-topbar>div:first-child{margin-right:auto}.tour-topbar strong{font-size:12px;display:block;margin-top:2px}.tour-topbar small{font-size:8px;color:#7d858e;display:block;margin-top:2px}.segmented{display:flex;background:#f0f2f4;border-radius:8px;padding:3px}.segmented button{height:30px;border:0;background:transparent;border-radius:6px;padding:0 10px;font-size:9px;color:#6b737c;font-weight:700}.segmented button.active{background:#fff;color:#1f242a;box-shadow:0 1px 4px rgba(30,40,50,.08)}.tour-help{position:absolute;left:16px;bottom:16px;z-index:5;border:1px solid rgba(210,216,223,.9);background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}.tour-help strong{font-size:9px}.tour-help span{font-size:8px;color:#727b84}.tour-help kbd{font:inherit;font-weight:800;color:#3c4650;background:#eef1f4;border:1px solid #dde1e5;border-bottom-width:2px;border-radius:4px;padding:1px 4px}.tour-warning{position:absolute;right:16px;bottom:16px;z-index:5;width:310px;border:1px solid #eadbb4;background:rgba(255,251,239,.95);backdrop-filter:blur(12px);border-radius:10px;padding:11px 12px}.tour-warning b{display:block;font-size:9px;color:#8a5c10}.tour-warning span{display:block;font-size:8px;line-height:1.5;color:#8d7247;margin:3px 0 5px}.tour-object-card{position:absolute;right:16px;top:83px;z-index:6;width:245px;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:12px;padding:14px;box-shadow:0 16px 45px rgba(20,30,40,.12);backdrop-filter:blur(12px)}.tour-object-card>button{position:absolute;right:8px;top:8px;border:0;background:transparent;font-size:16px;color:#7c848d}.tour-object-card h3{font-size:15px;margin:5px 22px 4px 0}.tour-object-card p{font-size:10px;color:#626b74;margin:0 0 7px}.tour-object-card small{font-size:8px;color:#8b929a}
@media(max-width:1180px){.topbar{grid-template-columns:190px auto 1fr}.top-actions .btn.ghost{display:none}#stage-plan.active{grid-template-columns:66px minmax(0,1fr) 300px}.inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.topbar{grid-template-columns:1fr auto}.stage-tabs{grid-row:2;grid-column:1/-1;position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:100;box-shadow:var(--shadow)}.top-actions{display:none}#stage-plan.active{grid-template-columns:1fr}.toolrail{position:absolute;left:8px;top:8px;bottom:8px;width:60px;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:25}.inspector{position:absolute;right:8px;top:8px;bottom:8px;width:min(310px,calc(100vw - 82px));border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:24}.inventory-shell{padding:24px 14px 90px}.inventory-grid{grid-template-columns:1fr}.inventory-toolbar{flex-wrap:wrap}.search-box{flex-basis:100%}.tour-topbar{right:8px;left:8px;flex-wrap:wrap}.tour-warning{display:none}.tour-help{bottom:82px;right:16px}.brand span{display:none}}
.inv-fields .unit-input{min-width:0;width:100%}.inv-fields .unit-input input{width:100%;min-width:0}.inventory-empty{grid-column:1/-1;background:#fff;border:1px dashed var(--line-strong);border-radius:12px;padding:30px;text-align:center;color:#7c848d;font-size:11px}
.version-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:5px;padding:1px 5px;border-radius:999px;background:#edf2f7;color:#617080;font-size:7px;line-height:1.4;vertical-align:2px;letter-spacing:.04em}
#cameraMode.segmented button{white-space:nowrap}
@media(max-width:980px){#cameraMode.segmented{max-width:100%;overflow-x:auto}.tour-topbar{align-items:flex-start}.tour-topbar .btn{white-space:nowrap}}
/* V6 · eigener Grundriss-Modus */
#stage-base.active{display:grid;grid-template-columns:74px minmax(0,1fr) 330px}
#baseSvg{position:absolute;inset:0;width:100%;height:100%;user-select:none;touch-action:none}
#baseGridLayer{opacity:.82}
#baseReferenceImage{pointer-events:none}
.infinite-sheet{fill:#fff;stroke:none}
.base-canvas-wrap{background:radial-gradient(circle at 50% 45%,#fbfcfd 0,#eef1f4 78%)}
.base-intro-card{grid-template-columns:28px 1fr}
.btn.wide{width:100%}
.base-dim-line{stroke:#7a8795;stroke-width:2;fill:none;stroke-dasharray:7 6;pointer-events:none}
.base-dim-ext{stroke:#adb6c0;stroke-width:1.5;pointer-events:none}
.base-dim-label{font-size:17px;font-weight:800;fill:#44505c;text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:#fff;stroke-width:7px;stroke-linejoin:round;pointer-events:none}
.base-dim-pill{fill:rgba(255,255,255,.93);stroke:#d8dee5;stroke-width:1.5;pointer-events:none}
.base-room-dim{font-size:20px;fill:#1f4f96}
.base-wall-hit{stroke:transparent;stroke-width:38;cursor:grab;fill:none}
.base-wall-hit:active{cursor:grabbing}
.base-door-hit{stroke:transparent;stroke-width:32;cursor:grab;fill:none}
.base-selected .wall-base{stroke:#2563eb}
.base-selected .wall-accent{stroke:#2563eb}
.base-selected .door-line,.base-selected .door-arc,.base-selected .sliding-panel,.base-selected .sliding-track,.base-selected .sliding-jamb{stroke:#2563eb}
.base-node{fill:#fff;stroke:#2563eb;stroke-width:4;cursor:grab;filter:drop-shadow(0 3px 5px rgba(20,40,80,.16))}
.base-node.connected{fill:#eef4ff}
.base-wall-preview{stroke:#2563eb;stroke-width:8;stroke-dasharray:14 10;pointer-events:none}
.base-wall-guide{stroke:#a7b3c0;stroke-width:1.5;stroke-dasharray:7 7;pointer-events:none}
.base-measure-line{stroke:#2563eb;stroke-width:4;stroke-dasharray:10 8;pointer-events:none}
.base-measure-point{fill:#fff;stroke:#2563eb;stroke-width:4;pointer-events:none}
#stage-plan .wall-hit,#stage-plan .door-hit{cursor:default}
#stage-plan .wall-base{stroke:#8a9097}
#stage-plan .wall-accent{opacity:.62}
#stage-plan .door-line,#stage-plan .door-arc{opacity:.82}
#stage-plan .canvas-status #modeBadge:before{content:'Möblierung · ';font-weight:600;color:#7c8793}
@media(max-width:1180px){#stage-base.active{grid-template-columns:66px minmax(0,1fr) 300px}}
@media(max-width:850px){#stage-base.active{grid-template-columns:1fr}}

/* V6.1 · Architekturbauteile im Grundriss */
.orientation-actions{display:grid;grid-template-columns:1fr;gap:8px;margin:8px 0 10px}
.orientation-actions .btn{justify-content:flex-start;min-height:34px}
.glass-chip span{background:#63b9c9!important}
.glass-front-line{stroke:#63b9c9;stroke-width:9;stroke-linecap:butt;vector-effect:non-scaling-stroke}
.glass-front-inner{stroke:#dff5f8;stroke-width:3;stroke-linecap:butt;vector-effect:non-scaling-stroke}
.glass-front-jamb{stroke:#53616b;stroke-width:3;vector-effect:non-scaling-stroke}
.glass-front-hit{stroke:transparent;stroke-width:28;cursor:pointer;vector-effect:non-scaling-stroke}
.glass-front.base-selected .glass-front-line,.glass-front.selected .glass-front-line{stroke:#2b91a7}
.arch-label{font:700 11px/1 system-ui,-apple-system,Segoe UI,sans-serif;fill:#477683;text-anchor:middle;dominant-baseline:middle;letter-spacing:.05em;pointer-events:none}
.base-tool[data-base-tool="add-door"] b,.base-tool[data-base-tool="add-glass"] b{font-size:17px}
.glass-opening-clear{stroke:#fff;stroke-linecap:butt;vector-effect:non-scaling-stroke}
.swing-opening-clear{stroke:#fff;stroke-linecap:butt;vector-effect:non-scaling-stroke}
.swing-jamb{stroke:#6f7780;stroke-width:3;vector-effect:non-scaling-stroke}
.door-selected .swing-jamb,.base-selected .swing-jamb{stroke:#2563eb}
.swing-opening-clear{stroke:#fff;stroke-linecap:butt;vector-effect:non-scaling-stroke}
.swing-jamb{stroke:#6f7780;stroke-width:3;vector-effect:non-scaling-stroke}
.door-selected .swing-jamb,.base-selected .swing-jamb{stroke:#2563eb}

/* V7 additions */
.object-orientation-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px}
.object-orientation-actions .btn{justify-content:center}
.object-orientation-actions .btn.active{border-color:#8bb2fa;background:#eef4ff;color:#2563eb}
.custom-model-badge{margin:6px 0 12px;padding:8px 10px;border:1px solid #cfe0ff;background:#f5f8ff;border-radius:8px;color:#3566b8;font-size:9px;font-weight:750}
.mini-action-stack{display:grid;gap:3px;justify-items:end}
#stage-plan .toolrail{overflow-y:auto}
#baseWallMaterial{min-width:0}
.front-marker{pointer-events:none}.front-marker line{stroke:#2563eb;stroke-width:3}.front-marker path{fill:#2563eb}

/* V8: vertikale Ebenen / Stapelung */
.placement-summary{margin:10px 0 4px;padding:10px 12px;border:1px solid rgba(50,60,70,.12);border-radius:9px;background:rgba(246,248,250,.9);font-size:12px;color:#59636d;line-height:1.45}
.object-elevation-badge rect{fill:rgba(255,255,255,.92);stroke:rgba(45,55,65,.18);stroke-width:1}
.object-elevation-badge text{font:700 11px system-ui,-apple-system,Segoe UI,sans-serif;fill:#38434d;text-anchor:middle;dominant-baseline:middle;pointer-events:none}

/* Standalone-Viewer: nur die 3D-Bühne bleibt sichtbar. */
body.viewer-mode .topbar{display:none!important}
body.viewer-mode .stage-host{inset:0!important;top:0!important}
body.viewer-mode .stage:not(#stage-tour){display:none!important}
body.viewer-mode #stage-tour{display:block!important;position:absolute!important;inset:0!important}
body.viewer-mode #stage-tour .tour-shell{position:absolute!important;inset:0!important}
body.viewer-mode #stage-tour [data-jump-stage="plan"],body.viewer-mode #export3DViewerBtn,body.viewer-mode #tourWarning{display:none!important}
body.viewer-mode .tour-topbar{left:18px;right:18px;top:18px}


/* V8.3 · dauerhafte Objektbibliothek */
#newObjectDialog .dialog-card{width:min(680px,calc(100vw - 32px));max-height:min(88vh,820px);overflow:auto}
.object-library-block{margin:2px 0 15px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8fafb}
.object-library-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.object-library-head strong{display:block;font-size:11px}.object-library-head small{display:block;margin-top:2px;color:var(--muted);font-size:8px}.object-library-head>span{min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;font-size:9px;font-weight:800;color:#5f6872}
.object-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.object-library-card{border:1px solid #dce2e8;background:#fff;border-radius:9px;padding:9px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;color:#29313a}.object-library-card:hover{border-color:#b7c8e5;background:#fbfdff}.object-library-swatch{width:30px;height:30px;border-radius:7px;border:1px solid rgba(25,35,45,.15);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}.object-library-copy{min-width:0}.object-library-copy strong{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.object-library-copy small{display:block;margin-top:2px;font-size:7px;color:#7b848e}.object-library-add{font-size:16px;color:#2563eb;font-weight:500}.object-library-empty{font-size:9px;color:#858e98;padding:9px 4px 2px}.dialog-divider{display:flex;align-items:center;gap:9px;color:#9199a2;font-size:8px;text-transform:uppercase;letter-spacing:.08em;margin:4px 0 13px}.dialog-divider:before,.dialog-divider:after{content:"";height:1px;background:var(--line);flex:1}
@media(max-width:640px){.object-library-grid{grid-template-columns:1fr}}

/* V8.3 · Standalone-Viewer garantiert viewport-füllend */
html.viewer-root,html.viewer-root body,body.viewer-mode{width:100%;height:100%;min-height:100%;margin:0;overflow:hidden}
body.viewer-mode .app-shell{display:block!important;position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.viewer-mode .stage-host{display:block!important;position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
body.viewer-mode #stage-tour{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.viewer-mode #stage-tour .tour-shell{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important}
body.viewer-mode #tourCanvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important}
body.viewer-mode .tour-topbar{top:max(14px,env(safe-area-inset-top))!important;left:max(14px,env(safe-area-inset-left))!important;right:max(14px,env(safe-area-inset-right))!important}

/* V8.4 · Fluchtwege + responsives Objektmodal */
.escape-route-line{fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.78;pointer-events:none}
.escape-route-center{fill:none;stroke:rgba(255,255,255,.92);stroke-width:3;stroke-dasharray:14 11;stroke-linecap:round;pointer-events:none}
.escape-route-hit{fill:none;stroke:transparent;stroke-linecap:round;cursor:grab}
.escape-route.base-selected .escape-route-line{filter:drop-shadow(0 0 0.8px #0f172a);opacity:.96}
.escape-route.base-selected .escape-route-center{stroke:#fff}
.route-chip span{background:#20a464!important}
.base-route-preview{fill:none;stroke:#20a464;stroke-width:14;stroke-linecap:round;stroke-dasharray:14 10;opacity:.7;pointer-events:none}
.base-route-node{fill:#fff;stroke:#20a464;stroke-width:4;cursor:grab;filter:drop-shadow(0 3px 5px rgba(20,80,50,.16))}
#newObjectDialog{width:min(720px,calc(100vw - 24px));max-width:720px;max-height:calc(100dvh - 24px);overflow:hidden;box-sizing:border-box}
#newObjectDialog .dialog-card{box-sizing:border-box;width:100%;max-width:none;max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:18px}
#newObjectDialog .dialog-head{position:sticky;top:-18px;z-index:4;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);padding:18px 0 12px;margin-top:-18px}
#newObjectDialog .dialog-actions{position:sticky;bottom:-18px;z-index:4;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);padding:14px 0 18px;margin-bottom:-18px}
@media(max-width:640px){
  #newObjectDialog{width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px);border-radius:12px}
  #newObjectDialog .dialog-card{max-height:calc(100dvh - 12px);padding:14px}
  #newObjectDialog .dialog-head{top:-14px;padding:14px 0 10px;margin-top:-14px}
  #newObjectDialog .dialog-actions{bottom:-14px;padding:12px 0 14px;margin-bottom:-14px;display:grid;grid-template-columns:1fr 1fr}
  #newObjectDialog .dialog-actions .btn{width:100%;justify-content:center}
  #newObjectDialog .field-grid.two{grid-template-columns:1fr}
  #newObjectDialog .object-library-block{padding:9px}
  #newObjectDialog .object-library-head{align-items:flex-start}
}
@media(max-width:430px){
  #newObjectDialog{width:100vw;max-height:100dvh;border-radius:0}
  #newObjectDialog .dialog-card{max-height:100dvh}
}
/* V8.5 · Rundgang-Start + Minimap */
.walk-start-chip span{background:#2563eb}
.walk-start-marker{pointer-events:none}
.walk-start-ring{fill:#fff;stroke:#2563eb;stroke-width:6}
.walk-start-core{fill:#2563eb;stroke:#fff;stroke-width:3}
.walk-start-arrow{stroke:#2563eb;stroke-width:5;stroke-linecap:round;fill:none}
.walk-start-label{font-size:24px;font-weight:800;fill:#1d4ed8;paint-order:stroke;stroke:#fff;stroke-width:7;stroke-linejoin:round}
.walk-start-hit{fill:rgba(37,99,235,.05);stroke:rgba(37,99,235,.35);stroke-width:2;cursor:grab}
.walk-start-hit:active{cursor:grabbing}
.tour-minimap{position:absolute;right:16px;bottom:16px;z-index:7;width:min(260px,calc(100vw - 32px));padding:10px;border:1px solid rgba(205,213,221,.94);background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-radius:12px;box-shadow:0 14px 40px rgba(20,30,40,.14)}
.tour-minimap-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.tour-minimap-head strong{font-size:10px}.tour-minimap-head span{font-size:8px;color:#7c858f}
#tourMinimapCanvas{display:block;width:100%;height:auto;aspect-ratio:23/16;border-radius:8px;background:#f7f9fb;border:1px solid #dfe4ea;cursor:crosshair}
.tour-minimap-start{width:100%;height:30px;margin-top:7px;border:1px solid #d9dee5;border-radius:7px;background:#fff;color:#45505b;font-size:9px;font-weight:750;cursor:pointer}
.tour-minimap-start:hover{background:#f6f8fa}
.tour-minimap.hidden{display:none!important}
body.viewer-mode .tour-minimap{bottom:max(16px,env(safe-area-inset-bottom))}
@media(max-width:850px){.tour-minimap{right:10px;bottom:88px;width:min(220px,calc(100vw - 84px));padding:8px}.tour-minimap-start{height:28px}.tour-help{max-width:calc(100vw - 28px)}}
body.viewer-mode #setCurrentWalkStartBtn{display:none!important}

/* V8.6 · definierbarer automatischer Kamera-Rundgang */
.walk-route-chip span{background:#ef6c35!important}
.walk-route{pointer-events:none}
.walk-route-line{fill:none;stroke:#ef6c35;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;opacity:.84;pointer-events:none}
.walk-route-center{fill:none;stroke:rgba(255,255,255,.95);stroke-width:2.5;stroke-dasharray:9 9;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.walk-route-hit{fill:none;stroke:transparent;stroke-width:30;stroke-linecap:round;stroke-linejoin:round;cursor:grab;pointer-events:stroke}
.walk-route.base-selected .walk-route-line{opacity:1;filter:drop-shadow(0 2px 4px rgba(150,64,25,.18))}
.walk-route-arrow{fill:#ef6c35;stroke:#fff;stroke-width:2;pointer-events:none}
.base-walk-route-preview{fill:none;stroke:#ef6c35;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:12 9;opacity:.78;pointer-events:none}
.walk-route-node{fill:#fff;stroke:#ef6c35;stroke-width:4;cursor:grab;filter:drop-shadow(0 3px 5px rgba(120,55,20,.18))}
.walk-route-node.stop{fill:#fff3ec;stroke-width:5}
.walk-route-node.fixed{fill:#ef6c35;stroke:#fff}
.walk-route-node.selected{stroke:#2563eb;stroke-width:5}
.walk-route-node-label{font-size:16px;font-weight:850;fill:#8d3c18;text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:#fff;stroke-width:5;pointer-events:none}
.walk-route-node-label.fixed{fill:#fff;stroke:#ef6c35;stroke-width:4}
.walk-waypoint-panel{margin-top:15px;padding-top:1px;border-top:1px solid var(--line)}
.walk-waypoint-panel .section-title{display:flex;align-items:center;justify-content:space-between}
.walk-waypoint-panel .section-title strong{font-size:10px;color:#ef6c35}
.auto-tour-control:disabled{opacity:.42;cursor:default}
.auto-tour-control.is-running{box-shadow:0 0 0 3px rgba(239,108,53,.13)}
body.viewer-mode .auto-tour-control{display:inline-flex}
@media(max-width:1180px){.tour-topbar .auto-tour-control{padding-left:9px;padding-right:9px}}

/* V8.6 – interaktive 3D-Objekte & feinere Darstellung */
.tour-object-card{max-height:min(72dvh,640px);overflow:auto}
.tour-object-controls{margin-top:12px;padding-top:11px;border-top:1px solid var(--line);display:grid;gap:10px}
.tour-object-controls.hidden{display:none}
.tour-control-row{display:grid;gap:6px}
.tour-control-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tour-control-head strong{font-size:9px;color:#303841}
.tour-control-head span{font-size:8px;color:#7b858f;font-variant-numeric:tabular-nums}
.tour-control-range{width:100%;accent-color:#2563eb}
.tour-control-actions{display:flex;gap:6px}
.tour-control-actions button{flex:1;height:27px;border:1px solid #d9e0e7;background:#fff;border-radius:7px;font-size:8px;font-weight:700;color:#4f5964}
.tour-control-actions button:hover{background:#f6f8fa;border-color:#c5d2e0}
#planSvg.pan-ready{cursor:grab}
#planSvg.panning{cursor:grabbing}


/* V8.6 · aufgezeichneter Auto-Rundgang + mobileartige Fahrsteuerung */
.base-tool[data-base-tool="add-walk-route"],#baseWalkRouteInspector{display:none!important}
.tour-topbar{gap:8px}
.record-btn{border-color:rgba(220,55,55,.28);background:rgba(255,255,255,.96);color:#b42323}
.record-btn .record-dot{width:9px;height:9px;border-radius:50%;background:#e23b3b;box-shadow:0 0 0 4px rgba(226,59,59,.10)}
.record-btn.is-recording{background:#fff3f3;border-color:rgba(220,55,55,.48);color:#9f1f1f}
.record-btn.is-recording .record-dot{animation:recordPulse 1.05s ease-in-out infinite}
@keyframes recordPulse{0%,100%{box-shadow:0 0 0 4px rgba(226,59,59,.10)}50%{box-shadow:0 0 0 8px rgba(226,59,59,.03)}}
.tour-autostart{height:34px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.86);display:inline-flex;align-items:center;gap:6px;font-size:9px;font-weight:700;color:#58616b;white-space:nowrap}
.tour-autostart input{width:13px;height:13px;margin:0;accent-color:#2563eb}
body.viewer-mode #tourRecordBtn,body.viewer-mode #tourRecordStopBtn,body.viewer-mode .tour-autostart{display:none!important}
.tour-drive-pad{position:absolute;left:20px;bottom:20px;z-index:8;width:148px;height:112px;pointer-events:none;filter:drop-shadow(0 10px 24px rgba(24,31,40,.10))}
.tour-drive-pad.hidden{display:none!important}
.drive-key{position:absolute;width:46px;height:46px;border-radius:16px;border:1px solid rgba(255,255,255,.48);background:rgba(32,40,50,.16);backdrop-filter:blur(9px);display:grid;place-items:center;color:rgba(255,255,255,.82);box-shadow:inset 0 1px 0 rgba(255,255,255,.20);transition:background .10s ease,transform .10s ease,border-color .10s ease,box-shadow .10s ease}
.drive-key span{font-size:20px;line-height:1;font-weight:700;transform:translateY(-1px)}
.drive-key small{position:absolute;right:7px;bottom:5px;font-size:7px;font-weight:800;opacity:.72}
.drive-up{left:51px;top:0}.drive-left{left:0;top:51px}.drive-down{left:51px;top:51px}.drive-right{left:102px;top:51px}
.drive-key.active{background:rgba(37,99,235,.48);border-color:rgba(255,255,255,.68);box-shadow:0 0 0 4px rgba(37,99,235,.10),inset 0 1px 0 rgba(255,255,255,.28);transform:scale(.96)}
.tour-recording-badge{position:absolute;left:50%;top:88px;transform:translateX(-50%);z-index:9;height:32px;padding:0 11px;border-radius:999px;background:rgba(23,26,31,.72);backdrop-filter:blur(12px);display:flex;align-items:center;gap:7px;color:#fff;box-shadow:0 8px 24px rgba(15,20,28,.16);font-variant-numeric:tabular-nums}
.tour-recording-badge.hidden{display:none!important}
.tour-recording-badge>span{width:8px;height:8px;border-radius:50%;background:#ff4b4b;animation:recordPulseWhite 1s ease-in-out infinite}
.tour-recording-badge strong{font-size:9px;letter-spacing:.08em}.tour-recording-badge b{font-size:9px;font-weight:650;opacity:.86}
@keyframes recordPulseWhite{0%,100%{opacity:1}50%{opacity:.35}}
#stage-tour.recording .tour-minimap{opacity:.65}
#stage-tour.recording .tour-object-card{pointer-events:none;opacity:.55}
@media(max-width:850px){.tour-drive-pad{left:12px;bottom:14px;transform:scale(.90);transform-origin:left bottom}.tour-recording-badge{top:76px}.tour-minimap{bottom:132px}}

/* V8.6 · Mehrprojekt-Verwaltung */
.project-switcher{margin:1px 0 0;padding:0;border:0;background:transparent;display:flex;align-items:center;gap:5px;max-width:260px;color:var(--muted);cursor:pointer;text-align:left}
.project-switcher:hover{color:#2f3740}.project-switcher span{display:block!important;margin:0!important;font-size:10px!important;color:inherit!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-switcher b{font-size:10px;font-weight:700;opacity:.55;transform:translateY(-1px)}
.project-dialog{width:min(780px,calc(100vw - 28px));max-width:780px}.project-dialog-card{padding:0;overflow:hidden}.project-dialog-head{padding:20px 20px 15px;margin:0;border-bottom:1px solid var(--line)}.project-dialog-head p{margin:6px 0 0;max-width:560px;font-size:10px;line-height:1.5;color:#7a838d}
.project-dialog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 20px;background:#fbfcfd;border-bottom:1px solid var(--line)}.project-dialog-toolbar small{font-size:8px;color:#89919a;text-align:right}
.project-list{padding:10px;display:grid;gap:7px;max-height:min(62vh,570px);overflow:auto;background:#f7f9fb}
.project-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #e0e5ea;border-radius:11px;background:#fff;transition:.14s}.project-row:hover{border-color:#cbd5df;box-shadow:0 5px 18px rgba(28,38,48,.05)}.project-row.active{border-color:#a8bfdf;box-shadow:inset 3px 0 0 #2563eb}
.project-row-copy{min-width:0}.project-row-title{display:flex;align-items:center;gap:7px;min-width:0}.project-row-title strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-active-badge{padding:2px 6px;border-radius:999px;background:#edf4ff;color:#2563eb;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.project-row-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:5px;color:#818a94;font-size:8px}.project-row-meta span+span:before{content:'·';margin-right:9px;color:#b4bbc3}
.project-row-actions{display:flex;align-items:center;gap:5px}.project-row-actions .btn{height:30px;padding:0 9px;font-size:8px}.project-row-actions .project-more{width:30px;padding:0}.project-row-actions .btn:disabled{opacity:.38;cursor:default}
.project-name-dialog{width:min(430px,calc(100vw - 28px))}.duplicate-project-dialog{width:min(620px,calc(100vw - 28px));max-width:620px}.duplicate-source-copy{margin-top:6px!important;margin-bottom:0!important}.duplicate-presets{display:flex;gap:6px;margin:13px 0 10px}.mini-choice{height:29px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#66707a;font-size:8px;font-weight:750}.mini-choice:hover{background:#f7f9fb}.mini-choice.active{border-color:#a9c2e7;background:#edf4ff;color:#2563eb}
.duplicate-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.duplicate-option{display:grid;grid-template-columns:17px minmax(0,1fr);gap:8px;align-items:flex-start;padding:11px;border:1px solid #e0e5ea;border-radius:10px;background:#fff;cursor:pointer;transition:.12s}.duplicate-option:hover{border-color:#cbd6e2;background:#fbfcfe}.duplicate-option:has(input:checked){border-color:#b7cbe7;background:#f7faff}.duplicate-option input{width:14px;height:14px;margin:1px 0 0;accent-color:#2563eb}.duplicate-option b{display:block;font-size:9px;color:#303841}.duplicate-option small{display:block;margin-top:3px;font-size:8px;line-height:1.35;color:#828b95}.duplicate-option.disabled{opacity:.45;cursor:not-allowed}.duplicate-note{display:grid;grid-template-columns:20px 1fr;gap:7px;align-items:start;margin-top:10px;padding:9px 10px;border-radius:9px;background:#f6f8fa;color:#76808a}.duplicate-note>span{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #dce2e8;font-size:8px;font-weight:800}.duplicate-note p{margin:2px 0 0;font-size:8px;line-height:1.4}
@media(max-width:850px){.brand .project-switcher{max-width:min(52vw,230px)}.brand .project-switcher span{display:block!important}.project-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.project-dialog-toolbar{align-items:flex-start;flex-direction:column}.project-dialog-toolbar small{text-align:left}.project-row{grid-template-columns:1fr}.project-row-actions{justify-content:flex-start;flex-wrap:wrap}.duplicate-grid{grid-template-columns:1fr}}
@media(max-width:480px){.project-dialog{width:100vw;max-height:100dvh;border-radius:0}.project-dialog-head{padding:16px}.project-dialog-toolbar{padding:12px 16px}.project-list{padding:7px}.duplicate-project-dialog{width:calc(100vw - 12px)}.project-row-actions .btn{flex:1}.project-row-actions .project-more{flex:0 0 30px}}
