:root{--bg: #eef1f5;--panel: #ffffff;--line: #dde2ea;--text: #1f2933;--muted: #6b7785;--accent: #1d3557;--accent2: #e6007e;--ok: #2a9d8f;--warn: #f4a261;--err: #d62828;--radius: 8px;font:13px/1.45 Inter,Segoe UI,system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}[hidden]{display:none!important}html,body,#app{height:100%;margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:6px;padding:5px 10px}button:hover{border-color:#b8c1cd}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600}button.primary:hover:not(:disabled){background:#264b7a}button.ghost{background:transparent;border-color:transparent}button.ghost:hover{background:#f0f3f7}button.danger{color:var(--err);border-color:#f1c0c0;background:#fff}button.small{padding:2px 8px;font-size:12px}select,input[type=text],input:not([type]),textarea,input[type=password]{border:1px solid var(--line);border-radius:6px;padding:5px 8px;background:#fff}textarea{width:100%;resize:vertical}.muted{color:var(--muted)}.small{font-size:12px}#app{display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:12px;padding:0 12px;height:48px;background:var(--panel);border-bottom:1px solid var(--line);flex:none}.brand{display:flex;flex-direction:column;line-height:1.1;min-width:150px}.brand b{color:var(--accent);font-size:15px}.brand span{color:var(--muted);font-size:11px}.floors{display:flex;gap:2px;background:#f0f3f7;padding:3px;border-radius:8px}.floors .floor{border:none;background:transparent;padding:4px 14px;border-radius:6px;font-weight:600;color:var(--muted)}.floors .floor.active{background:#fff;color:var(--accent);box-shadow:0 1px 2px #0000001f}.floors .floor.noplan{font-style:italic;opacity:.7}.version{max-width:280px}.spacer{flex:1}.round-state{display:flex;align-items:center;gap:6px}main{flex:1;display:grid;grid-template-columns:250px 1fr 330px;min-height:0}aside{background:var(--panel);overflow-y:auto;min-height:0}aside.left{border-right:1px solid var(--line)}aside.right{border-left:1px solid var(--line)}aside section{padding:10px 12px;border-bottom:1px solid var(--line)}aside h3{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);display:flex;justify-content:space-between}aside h3 .hint{text-transform:none;letter-spacing:0;font-weight:400}.lg{margin-bottom:2px}.lg-head{display:flex;align-items:center;gap:2px}.lg-head label{display:flex;gap:6px;align-items:center;flex:1;cursor:pointer;padding:3px 0;font-weight:600}.lg-head.empty label{color:var(--muted);font-weight:400}.tag{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:0 4px}.caret{border:none;background:none;padding:0 4px;color:var(--muted);transition:transform .12s}.caret.open{transform:rotate(90deg)}.layer{display:flex;gap:6px;align-items:center;padding:2px 0 2px 26px;cursor:pointer}.layer.empty{color:var(--muted)}.sw{width:12px;height:12px;border-radius:3px;background:var(--c);border:1px solid rgba(0,0,0,.2);display:inline-block}.round-item{display:flex;gap:6px;padding:5px 0;border-bottom:1px dashed var(--line)}.round-item.hidden{opacity:.55}.round-item .eye{border:none;background:none;padding:0 2px;font-size:14px}.ri-main{flex:1}.badge{display:inline-block;font-size:11px;padding:1px 7px;border-radius:10px;background:#eef1f5;color:var(--muted);font-weight:600;white-space:nowrap}.st-entwurf{background:#fde7f3;color:#b0005f}.st-uebergeben,.st-offen{background:#e7eefb;color:#1d4ed8}.st-in_arbeit{background:#fff3e0;color:#b45309}.st-erledigt{background:#e3f5f2;color:#1b7a6e}.st-abgelehnt{background:#fde8e8;color:#b91c1c}.st-rueckfrage{background:#fef3c7;color:#92400e}.badge.old{background:#fff3e0;color:#b45309}.stage{position:relative;min-width:0;min-height:0;background:#f7f8fa;overflow:hidden}#view{width:100%;height:100%;display:block;outline:none;touch-action:none;-webkit-user-select:none;user-select:none;background:#fff}#view[data-tool=pan]{cursor:grab}#view.panning,#view.space{cursor:grabbing!important}#view[data-tool=free],#view[data-tool=line],#view[data-tool=arrow],#view[data-tool=rect],#view[data-tool=circle],#view[data-tool=measure],#view[data-tool=area],#view[data-tool=pin]{cursor:crosshair}#view[data-tool=text]{cursor:text}#view[data-tool=eraser]{cursor:not-allowed}#view[data-tool=eraser] .sk-ann:hover{opacity:.5}#plan text{pointer-events:none}.sk-ann{cursor:pointer}.sk-ann polyline,.sk-ann rect,.sk-ann circle,.sk-ann path,.sk-ann polygon{vector-effect:non-scaling-stroke}.sk-ann .hit{pointer-events:stroke}.sk-ann.dim{opacity:.45}.sk-ann.selected{filter:drop-shadow(0 0 3px rgba(230,0,126,.55))}.sk-label text{font-family:Inter,Segoe UI,sans-serif}.bubble rect{fill:#1d3557;opacity:.92}.bubble text{fill:#fff;font-weight:600;font-family:Inter,sans-serif}.m-line{fill:none;stroke:#d62828;stroke-width:2;vector-effect:non-scaling-stroke;stroke-dasharray:6 3}.m-area{fill:#d62828;fill-opacity:.12;stroke:none}.m-pt{fill:#fff;stroke:#d62828;stroke-width:2;vector-effect:non-scaling-stroke}.m-snap{fill:none;stroke:#0077b6;stroke-width:2;vector-effect:non-scaling-stroke}.toolbar{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;gap:3px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 2px 8px #00000014}.toolbar .tool{width:34px;height:34px;padding:0;border:none;border-radius:7px;font-size:16px;background:transparent}.toolbar .tool:hover{background:#f0f3f7}.toolbar .tool.active{background:var(--accent);color:#fff}.toolbar .sep{height:1px;background:var(--line);margin:2px 3px}.colors{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:2px}.colors.inline{display:flex;gap:4px}.swatch{width:15px;height:15px;border-radius:50%;padding:0;background:var(--c);border:2px solid #fff;box-shadow:0 0 0 1px #0003}.swatch.active{box-shadow:0 0 0 2px var(--c)}.statusbar{position:absolute;left:0;right:0;bottom:0;height:28px;display:flex;gap:16px;align-items:center;padding:0 12px;background:#fffffff0;border-top:1px solid var(--line);font-size:12px;white-space:nowrap;overflow:hidden}.statusbar .hint{color:var(--muted);overflow:hidden;text-overflow:ellipsis}.statusbar .meas{color:var(--err)}.statusbar .coords{margin-left:auto;font-variant-numeric:tabular-nums}.statusbar .scale{color:var(--muted)}.tooltip{position:absolute;pointer-events:none;background:#1d3557f2;color:#fff;padding:6px 9px;border-radius:6px;font-size:12px;max-width:280px;box-shadow:0 2px 8px #0003;z-index:5}.tooltip .muted{color:#c6d0dd}.stage-empty{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}.float-text{position:absolute;width:260px;z-index:6;font-weight:700;border:2px solid currentColor}.round-card .rc-head{display:flex;gap:8px;align-items:center}.title-input{flex:1;font-weight:700;font-size:14px;border-color:transparent!important;padding-left:2px!important}.title-input:hover,.title-input:focus{border-color:var(--line)!important}.editor{background:#fbfcfe}.ed-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.ed-head button{margin-left:auto}.editor textarea{margin-bottom:6px}.row{display:flex;gap:8px;align-items:center;margin:4px 0}.row.end{justify-content:flex-end}.append{display:block;margin:6px 0;font-size:12px;color:var(--muted);cursor:pointer}.ed-text{white-space:pre-wrap;margin:4px 0}.filters{display:flex;gap:6px}.filters select{flex:1;min-width:0}.ann-list h4{margin:10px 0 4px;font-size:12px;display:flex;justify-content:space-between;align-items:center;color:var(--accent)}.ann-item{display:flex;gap:8px;padding:6px;border-radius:6px;cursor:pointer}.ann-item:hover{background:#f3f6fa}.ann-item.active{background:#fde7f3}.dot{width:10px;height:10px;border-radius:50%;background:var(--c);flex:none;margin-top:4px}.ai-main{flex:1;min-width:0}.ai-text{white-space:pre-wrap;overflow-wrap:anywhere}.cat{color:var(--muted);font-size:12px}.reply{margin-top:4px;padding:5px 7px;background:#e3f5f2;border-radius:6px;font-size:12px;white-space:pre-wrap}.round-summary{margin-bottom:6px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;display:flex;align-items:center;justify-content:center;z-index:50}.dialog{background:#fff;border-radius:12px;padding:20px 22px;width:min(560px,92vw);box-shadow:0 10px 40px #00000040}.dialog h2{margin:0 0 8px;font-size:18px;color:var(--accent)}.dialog .actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.dialog pre{white-space:pre-wrap;background:#f5f7fa;padding:10px;border-radius:6px;font-size:12px}.copyline{display:flex;gap:8px;align-items:center;background:#f5f7fa;padding:8px;border-radius:6px}.copyline code{flex:1;font-size:12px}.login{margin:14vh auto 0;width:320px;background:#fff;padding:28px;border-radius:14px;box-shadow:0 4px 24px #00000014;display:flex;flex-direction:column;gap:10px}.login h1{margin:0;color:var(--accent)}.login input{font-size:18px;letter-spacing:.2em;text-align:center}.login .err{color:var(--err);margin:0;min-height:1.2em}#toast{position:fixed;left:50%;bottom:44px;transform:translate(-50%,20px);opacity:0;transition:all .2s;background:#1d3557;color:#fff;padding:8px 14px;border-radius:8px;z-index:60;pointer-events:none;max-width:70vw}#toast.show{opacity:1;transform:translate(-50%)}#toast.error{background:var(--err)}#toast.ok{background:var(--ok)}.fatal{padding:40px;color:var(--err)}.obj-sel{fill:#0077b60f;stroke:#0077b6;stroke-width:1.5;stroke-dasharray:5 3;vector-effect:non-scaling-stroke;pointer-events:none}#plan [data-oid]{cursor:move}#view:not([data-tool=pan]) #plan [data-oid]{cursor:inherit}.place-ghost{fill:#0077b640;stroke:#0077b6;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}.library{display:flex;flex-direction:column;gap:2px}.lib-item{display:flex;gap:8px;align-items:center;border:none;background:none;padding:3px 4px;text-align:left;font-size:12px}.lib-item:hover{background:#f0f3f7}.lib-item svg polygon{fill:#d4b483;stroke:#7f5539;stroke-width:.8}.lib-item svg .lib-chair{fill:#343a40}.lib-item svg .lib-plant{fill:#52b788;stroke:#1b4332}.lib-item svg .lib-cabinet{fill:#a3b1c6;stroke:#495867}.lib-item svg .lib-sofa,.lib-item svg .lib-armchair{fill:#5c677d;stroke:#33415c}.lib-item svg .lib-tv{fill:#111}.obj-card{background:#f2f8fc}.seg{display:flex;background:#f0f3f7;padding:3px;border-radius:8px;gap:2px}.seg button{border:none;background:transparent;padding:4px 10px;border-radius:6px;color:var(--muted);font-weight:600}.seg button.active{background:#fff;color:var(--accent);box-shadow:0 1px 2px #0000001f}.lib-cat{display:flex;gap:4px;align-items:center;border:none;background:none;padding:3px 0;font-weight:600;width:100%;text-align:left}.lib-cat .caret{display:inline-block;transition:transform .12s;color:var(--muted)}.lib-cat.open .caret{transform:rotate(90deg)}.lib-list{padding-left:12px}.lib-item svg polygon{fill:#fff!important;stroke:#333!important;stroke-width:.6!important}#view.pres{background:#fafafa}.compare{max-width:170px}.cmp-slider{position:absolute;top:0;bottom:28px;width:0;z-index:4}.cmp-line{position:absolute;top:0;bottom:0;left:-1px;width:2px;background:#e6007e;pointer-events:none}.cmp-handle{position:absolute;top:50%;left:-16px;width:32px;height:32px;margin-top:-16px;border-radius:50%;background:#e6007e;color:#fff;display:flex;align-items:center;justify-content:center;cursor:ew-resize;box-shadow:0 1px 6px #0000004d;font-weight:700}.cmp-label{position:absolute;top:8px;background:#1d3557e6;color:#fff;padding:2px 8px;border-radius:4px;font-size:12px;white-space:nowrap}.cmp-label.left{right:8px}.cmp-label.right{left:8px}.dialog.wide{width:min(820px,94vw)}.exp-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.exp-grid h3{margin:6px 0 8px;font-size:13px;color:var(--accent)}.exp-grid label{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:8px;margin:6px 0}.exp-lists .row{border-bottom:1px dashed var(--line);padding:3px 0}.grow{flex:1}#compare{pointer-events:none}.sketch-toggle{display:flex;gap:6px;align-items:center;font-weight:600;margin-bottom:6px;cursor:pointer}.sketch-toggle kbd{margin-left:auto;font:11px monospace;border:1px solid var(--line);border-radius:4px;padding:0 4px;color:var(--muted)}.round-item.other{opacity:.6}.round-item .eye.goto{color:var(--accent);font-weight:700}.filters select:first-child{max-width:110px}.inst-info{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:6px 0;font-size:12px}.inst-info dt{color:var(--muted)}.inst-info dd{margin:0}.lib-item svg polyline{fill:none;stroke:#333;stroke-width:.8}#plan g[data-group=elektro] [data-oid],#plan g[data-group=beleuchtung] [data-oid],#plan g[data-group=loxone] [data-oid],#plan g[data-group=netzwerk] [data-oid]{pointer-events:all}#plan g[data-group=leitungen]{pointer-events:none}main.doku{grid-template-columns:300px 1fr}.doku aside.list{border-right:1px solid var(--line);padding:12px}.doku aside.list h3{margin-bottom:8px}.doku .doku-search{width:100%;margin-bottom:6px}.doku .doku-items h4{margin:12px 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.doku button.doc{display:block;width:100%;text-align:left;border:none;background:transparent;padding:6px 8px;border-radius:6px}.doku button.doc:hover{background:#f0f3f7}.doku button.doc.active{background:#e9f0f9}.doku button.doc .t{display:block;font-weight:600;color:var(--accent)}.doku button.doc small{display:block;color:var(--muted);font-size:11.5px;line-height:1.3}.doku button.doc small.id{font-size:10.5px;opacity:.8}.doku .reader{overflow-y:auto;padding:24px 32px;min-height:0}.doku article{max-width:960px;margin:0 auto;background:var(--panel);padding:28px 36px 36px;border-radius:10px;border:1px solid var(--line);font-size:14px}.doku article h1{margin:0 0 6px;color:var(--accent);font-size:22px}.doku article h2{font-size:16px;color:var(--accent);margin:20px 0 6px}.doku article h3{font-size:14px;margin:14px 0 4px}.doku article .meta{color:var(--muted);font-size:12px;display:flex;gap:14px;flex-wrap:wrap;margin-bottom:10px}.doku article .lead{font-weight:600;margin:0 0 10px}.doku article .actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.doku article a.btn{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:5px 10px;text-decoration:none;color:var(--text);background:#fff}.doku article a.btn:hover{border-color:#b8c1cd}.doku article a.btn.ghost{border-color:transparent;background:#f0f3f7}.doku article .content a{color:#1d4ed8}.doku article table{border-collapse:collapse;width:100%;margin:8px 0}.doku article th,.doku article td{border:1px solid var(--line);padding:4px 8px;text-align:left;vertical-align:top}.doku article th{background:#f0f3f7}.doku article code{background:#f0f3f7;padding:1px 4px;border-radius:4px;font-size:12.5px}.doku article blockquote{border-left:3px solid var(--line);margin:8px 0;padding:2px 12px;color:var(--muted)}.doku article ul,.doku article ol{padding-left:22px}.doku article li{margin:2px 0}.doku .doku-empty{padding:40px;text-align:center}main.schrank{grid-template-columns:1fr 360px}.schrank .schrank-page{overflow-y:auto;padding:20px 28px;min-height:0}.schrank .schrank-head h2{margin:0 0 4px;color:var(--accent);font-size:20px}.schrank .legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:8px 0 12px;font-size:12px}.schrank .legend span,.schrank-info h3{display:inline-flex;align-items:center;gap:6px}.schrank i.sw,.schrank-info i.sw{display:inline-block;width:12px;height:12px;border-radius:3px;background:var(--c)}.schrank-svg{width:100%;max-width:1100px;height:auto;background:#fff;border:1px solid var(--line);border-radius:10px;display:block}.schrank-svg .cab{fill:#e5e7eb;stroke:#475569;stroke-width:2}.schrank-svg .cab-inner{fill:#f8fafc;stroke:#94a3b8;stroke-width:1}.schrank-svg .rail{fill:#fff;stroke:#cbd5e1;stroke-width:1}.schrank-svg .row-title{font-size:11px;fill:#475569;font-weight:600}.schrank-svg .dev rect{stroke:#fff;stroke-width:1;cursor:pointer;transition:filter .1s}.schrank-svg .dev rect.reserve{stroke:#cbd5e1;stroke-dasharray:3 3;cursor:default}.schrank-svg .dev:hover rect:not(.reserve),.schrank-svg .dev.hl rect:not(.reserve){filter:brightness(1.18);stroke:#111;stroke-width:1.5}.schrank-svg .dev .lbl{font-size:10px;fill:#fff;font-weight:700;pointer-events:none}.schrank-svg .dev.klemme3 .lbl,.schrank-svg .dev.pe .lbl{font-size:8px}.schrank .hints{padding-left:20px;max-width:1100px}.schrank .hints li{margin:3px 0}.schrank table.bom{border-collapse:collapse;width:100%;max-width:1100px;font-size:12.5px}.schrank table.bom th,.schrank table.bom td{border:1px solid var(--line);padding:4px 8px;text-align:left;vertical-align:top}.schrank table.bom th{background:#f0f3f7}.schrank-info{background:var(--panel);border-left:1px solid var(--line);padding:14px 16px;overflow-y:auto}.schrank-info h3{margin:0 0 4px;font-size:16px;color:var(--accent)}.schrank-info .pin{color:var(--accent2);font-size:12px}.schrank-info .name{font-weight:600;margin-bottom:4px}.schrank-info dl{display:grid;grid-template-columns:110px 1fr;gap:4px 8px;margin:12px 0 0;font-size:12.5px}.schrank-info dt{color:var(--muted)}.schrank-info dd{margin:0}.schrank-empty{padding:40px;text-align:center}.schrank-svg .busbar rect{fill:#f59e0b;stroke:#b45309;stroke-width:.6}.schrank-svg .busbar.vertical rect{fill:#f59e0b}.schrank-svg .busbar.nbridge rect{fill:#3b82f6;stroke:#1d4ed8}.schrank-svg .dev.klemme3 rect[fill="#cbd5e1"]{stroke:#94a3b8}main.drei{display:grid;grid-template-columns:280px 1fr;min-height:0}main.drei[hidden]{display:none}.drei-seite{overflow:auto;padding:12px 14px 24px;border-right:1px solid var(--line, #e3e7ec);background:#fff}.drei-seite h3{margin:14px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--accent)}.drei-seite h3:first-child{margin-top:0}.drei-seite .hint{margin:6px 0 0;font-size:12px;color:var(--muted);line-height:1.35}.drei-seg{flex-wrap:wrap}.drei-seg button{flex:1 1 auto}.drei-zeile{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}.drei-orte{width:100%;margin-top:8px}.drei-schichten{display:grid;gap:3px;margin-top:6px;font-size:13px}.drei-schichten label{display:flex;align-items:center;gap:4px;cursor:pointer}.drei-annahmen{margin:0;padding-left:16px;font-size:12px;color:var(--muted);line-height:1.35}.drei-annahmen li{margin-bottom:4px}.drei-buehne{position:relative;min-width:0;min-height:0;overflow:hidden;outline:none}.drei-buehne canvas{display:block}.drei-laden{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;font-size:15px}.floors .floors-trenner{align-self:center;margin:0 2px 0 10px;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
