:root{
  --bg:#eef2f6;--panel:#fff;--panel2:#f8fafc;--line:#d8e0e8;--line2:#c7d2dc;
  --text:#18232d;--muted:#667786;--blue:#1768b2;--blue2:#0f5795;--bluebg:#edf6ff;
  --green:#2c8755;--greenbg:#edf8f1;--red:#b33a3a;--redbg:#fff0f0;--amber:#c77712;--amberbg:#fff7e9;
  --shadow:0 8px 24px rgba(29,51,72,.08);--shadow-lg:0 24px 64px rgba(24,43,61,.22)
}
*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px;overflow:hidden}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.hidden{display:none!important}.app-shell{height:100vh;display:flex;flex-direction:column}
.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;box-shadow:0 1px 0 rgba(0,0,0,.02);z-index:20}
.brand-area{display:flex;align-items:center;min-width:0}.brand-mark{width:38px;height:38px;border-radius:10px;background:linear-gradient(145deg,#173f67,#1f78bc);display:grid;place-items:center;color:#fff;font-weight:800;font-size:20px;box-shadow:0 5px 14px rgba(23,104,178,.2)}
.brand-copy{margin-left:11px;white-space:nowrap}.brand-copy strong{display:block;font-size:16px}.brand-copy span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.menu-bar{display:flex;align-items:center;margin-left:28px;gap:2px}.menu-wrap{position:relative}.menu-btn{border:0;background:transparent;border-radius:6px;padding:9px 11px;color:#2e3d4a}.menu-btn:hover,.menu-wrap.open>.menu-btn{background:#edf3f8}.menu-btn span{color:#7d8a95;margin-left:3px}
.dropdown{display:none;position:absolute;top:40px;left:0;min-width:240px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow-lg);z-index:80}.menu-wrap.open .dropdown{display:block}.dropdown button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 11px;border-radius:6px;color:#243644}.dropdown button:hover{background:#edf5fb}.dropdown .sep{height:1px;background:var(--line);margin:5px}
.top-actions{display:flex;align-items:center;gap:10px}.routine-quick{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.routine-quick select{min-width:210px}.primary,.secondary,.ok,.danger,.icon-btn,.small-btn{border-radius:7px;border:1px solid transparent;padding:8px 12px;font-weight:600}.primary{background:var(--blue);color:#fff}.primary:hover{background:var(--blue2)}.secondary{background:#fff;border-color:var(--line2);color:#2d4052}.secondary:hover{background:#f3f7fa}.ok{background:var(--green);color:#fff}.ok:hover{filter:brightness(.95)}.danger{background:#fff;border-color:#e2aaaa;color:#a62e2e}.danger:hover{background:#fff1f1}
select,input,textarea{border:1px solid var(--line2);border-radius:6px;background:#fff;color:var(--text)}select,input{height:34px;padding:0 9px}textarea{padding:8px;resize:vertical}.projectbar{min-height:64px;background:#f8fafc;border-bottom:1px solid var(--line);display:flex;align-items:end;gap:12px;padding:10px 18px}.projectbar label>span,.eyebrow,.note-field>span,.routine-manager label>span,.form-grid label>span,.inline-setting>span:first-child{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:750;margin-bottom:4px}.project-field{flex:0 1 420px}.project-field input{width:100%}.compact-field select{min-width:72px}.compact-field input{width:78px}.checkline{display:flex;align-items:center;gap:7px;height:34px;margin-bottom:0}.checkline input,.setting-check input,.active-routine-check input{width:16px;height:16px}.checkline span{font-weight:600;color:#41505d}.project-title-preview{flex:1;min-width:180px;overflow:hidden;padding:0 0 3px 4px}.project-title-preview span{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:750;margin-bottom:4px}.project-title-preview strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2d4c66}
.workspace{--sidebar-width:480px;display:grid;grid-template-columns:var(--sidebar-width) 7px minmax(520px,1fr) 330px;flex:1;min-height:0}.sidebar{position:relative;background:#f8fafc;border-right:0;padding:13px;overflow:auto}.sidebar-resizer{position:relative;background:#e7edf2;border-left:1px solid #d7e0e7;border-right:1px solid #d7e0e7;cursor:col-resize;touch-action:none;user-select:none;transition:background .12s,border-color .12s}.sidebar-resizer:before{content:"";position:absolute;left:2px;top:50%;width:2px;height:46px;transform:translateY(-50%);border-radius:2px;background:#a9bac8;box-shadow:0 -8px #a9bac8,0 8px #a9bac8}.sidebar-resizer:hover,.sidebar-resizer.dragging{background:#d9e8f4;border-color:#93b6d1}.sidebar-resizer:hover:before,.sidebar-resizer.dragging:before{background:#1768b2;box-shadow:0 -8px #1768b2,0 8px #1768b2}.dropzone{border:2px dashed #b4c2cf;border-radius:11px;background:#fff;padding:15px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;transition:.15s}.dropzone.drag{border-color:var(--blue);background:var(--bluebg);box-shadow:0 0 0 3px rgba(23,104,178,.08)}.drop-icon{width:38px;height:38px;border-radius:19px;background:#edf5fc;color:var(--blue);font-size:24px;display:grid;place-items:center}.dropzone span{font-size:11px;color:var(--muted);margin-bottom:4px}.small-btn{font-size:12px;padding:6px 10px}.sidebar-head{display:flex;justify-content:space-between;align-items:end;margin:16px 3px 8px}.sidebar-head strong{display:block;font-size:15px}.list-tools{display:flex;align-items:center;gap:5px}.badge{min-width:24px;text-align:center;border-radius:12px;background:#e1e9ef;padding:2px 8px;color:#526271;font-size:11px;font-weight:700}.icon-btn{padding:4px 8px;border:1px solid var(--line);background:#fff;color:#536576}.sort-pop{position:absolute;right:12px;top:176px;z-index:10;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:5px;min-width:170px}.sort-pop button{display:block;width:100%;background:transparent;border:0;text-align:left;padding:8px;border-radius:5px}.sort-pop button:hover{background:#eef4f8}.measurement-list{display:flex;flex-direction:column;gap:6px;padding-bottom:45px}.empty-list{padding:16px;color:var(--muted);text-align:center;font-size:12px}.measurement-item{position:relative;background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 10px;cursor:pointer;transition:.12s}.measurement-item:hover{border-color:#adc0d0}.measurement-item.active{border-color:#6b9fca;box-shadow:inset 3px 0 var(--blue);background:#f1f8fe}.measurement-item.status-PRÜFEN{background:#fff4f4;border-color:#efd1d1}.measurement-item.active.status-PRÜFEN{background:#ffeaea}.measurement-item.status-OK{background:#f4fbf7;border-color:#d9eadf}.measurement-item.active.status-OK{background:#edf8f1}.measurement-top{display:flex;gap:7px;align-items:center}.measurement-name{font-weight:650;white-space:normal;overflow-wrap:anywhere;line-height:1.25;max-height:2.5em;overflow:hidden;flex:1}.measurement-item.active .measurement-name{font-weight:750}.mini-type{font-size:9px;border-radius:8px;padding:2px 6px;background:#e9f0f6;color:#526579;font-weight:800}.measurement-sub{font-size:10px;color:var(--muted);margin-top:5px;display:flex;justify-content:space-between;gap:5px}.pair-tag{color:#466a87}.status-dot{font-weight:750}.sidebar-foot{position:sticky;bottom:-13px;margin:0 -13px -13px;padding:9px 13px;background:#eef3f7;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#657787;font-size:10px}
.content{padding:14px;overflow:auto;min-width:0}.welcome-card{max-width:1000px;margin:34px auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:32px;box-shadow:var(--shadow)}.welcome-icon{width:55px;height:55px;border-radius:13px;background:linear-gradient(145deg,#173f67,#1f78bc);display:grid;place-items:center;color:#fff;font-weight:800;font-size:19px;margin-bottom:18px}.welcome-card h1{margin:0 0 10px;font-size:27px}.welcome-card>p{color:var(--muted);font-size:15px;line-height:1.6;max-width:800px}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:24px}.feature-grid>div{padding:15px;border:1px solid var(--line);border-radius:9px;background:#fbfcfd}.feature-grid b{display:block;margin-bottom:4px}.feature-grid span{font-size:12px;color:var(--muted);line-height:1.45}.card-shell{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 2px 9px rgba(30,54,76,.035)}.current-head{min-height:77px;display:flex;align-items:center;position:relative;overflow:hidden;padding:12px 14px 12px 20px}.current-head .accent{position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--blue)}.titleblock{min-width:0;flex:1}.titleblock small{font-size:9px;color:var(--blue);font-weight:800;letter-spacing:.08em}.titleblock h2{font-size:18px;margin:3px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.plot-meta{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.head-badges{display:flex;flex-direction:column;align-items:flex-end;gap:5px;margin-left:12px}.type-badge,.status-badge{padding:4px 8px;border-radius:10px;font-size:10px;font-weight:800}.type-badge{background:#eaf2f8;color:#42637c}.status-badge{background:#e8edf2;color:#536371}.status-badge.ok{background:var(--greenbg);color:var(--green)}.status-badge.bad{background:var(--redbg);color:var(--red)}.measurement-toolbar{margin-top:9px;padding:9px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px}.marker-action{display:flex;align-items:center;gap:7px;min-width:0}.marker-action label{font-size:11px;color:var(--muted);font-weight:700}.marker-action select{min-width:90px}.hint{font-size:11px;color:var(--muted);white-space:nowrap}.toolbar-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.toolbar-actions button{padding:7px 10px;font-size:12px}.plot-card{margin-top:9px;padding:9px 10px 5px}.plot-legend{height:27px;display:flex;align-items:center;gap:18px;padding-left:54px;color:#596b7a;font-size:10px}.legend-line{display:inline-block;width:22px;height:0;border-top:2px dashed;margin-right:5px;vertical-align:middle}.legend-line.green{border-color:var(--green)}.legend-line.orange{border-color:var(--amber)}.legend-box{display:inline-block;width:18px;height:9px;background:#eaf3fb;border:1px solid #a9c7df;margin-right:5px;vertical-align:middle}#plotSvg{width:100%;height:clamp(430px,58vh,640px);display:block;touch-action:none}.plot-readout{display:flex;justify-content:space-between;gap:12px;min-height:28px;padding:5px 6px 2px 58px;border-top:1px solid #edf1f4;color:#516473;font-size:11px}.plot-readout span:last-child{color:#7d8a96}
.inspector{background:#f8fafc;border-left:1px solid var(--line);min-width:0;overflow:auto}.inspector-tabs{position:sticky;top:0;display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-bottom:1px solid var(--line);z-index:5}.inspector-tabs button{border:0;background:#fff;padding:12px 5px;color:#657483;font-weight:650;font-size:12px;border-bottom:2px solid transparent}.inspector-tabs button.active{color:var(--blue);border-bottom-color:var(--blue);background:#f8fbfe}.inspector-body{padding:12px}.inspector-pane{display:none}.inspector-pane.active{display:block}.panel-title{display:flex;justify-content:space-between;align-items:center;margin:1px 2px 9px;font-weight:750}.issue{padding:9px 10px;border-radius:7px;margin-bottom:6px;border:1px solid transparent;font-size:11px;line-height:1.42}.issue.error{background:var(--redbg);border-color:#f0d0d0;color:#812c2c}.issue.ok{background:var(--greenbg);border-color:#d5e9dc;color:#286d48}.issue.info{background:#eef6fd;border-color:#d6e7f5;color:#365f82}.note-field{display:block;margin-top:12px}.note-field textarea{width:100%;margin-top:4px}.marker-row{display:grid;grid-template-columns:minmax(50px,.8fr) 1.1fr 1fr 28px;gap:6px;align-items:center;padding:7px 5px;border-bottom:1px solid #e9eef2;font-size:11px}.marker-symbol{font-weight:750;color:#962b2b}.marker-delete{width:25px;height:25px;border:0;border-radius:5px;background:#fff1f1;color:#a42c2c}.marker-delete:hover{background:#ffe2e2}.info-list{font-size:11px}.info-row{display:grid;grid-template-columns:105px 1fr;gap:8px;padding:7px 3px;border-bottom:1px solid #e7edf1}.info-row span:first-child{color:var(--muted)}.info-row span:last-child{font-weight:600;word-break:break-word}
.modal{position:fixed;inset:0;background:rgba(15,28,39,.42);z-index:100;display:grid;place-items:center;padding:22px}.modal-dialog{background:#fff;border:1px solid #cdd8e1;border-radius:12px;box-shadow:var(--shadow-lg);display:flex;flex-direction:column;max-height:94vh;overflow:hidden}.settings-dialog{width:min(1180px,96vw);height:min(850px,92vh)}.help-dialog{width:min(1050px,94vw);height:min(760px,90vh)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);background:#fbfcfd}.modal-head h2{margin:2px 0 0;font-size:18px}.close-btn{border:0;background:transparent;color:#657483;font-size:26px;line-height:1;width:34px;height:34px;border-radius:7px}.close-btn:hover{background:#edf2f6}.routine-manager{display:flex;align-items:end;gap:7px;padding:11px 15px;background:#f6f9fb;border-bottom:1px solid var(--line)}.routine-manager label:first-child{width:330px}.routine-manager select{width:100%}.active-routine-check{display:flex;align-items:center;gap:6px;margin-left:auto;padding-bottom:8px;font-weight:600;color:#425463}.settings-layout{display:grid;grid-template-columns:190px 1fr;flex:1;min-height:0}.settings-nav{background:#f7f9fb;border-right:1px solid var(--line);padding:10px}.settings-nav button{display:block;width:100%;border:0;background:transparent;text-align:left;border-radius:6px;padding:10px;color:#465969;font-weight:600;margin-bottom:3px}.settings-nav button.active{background:#eaf3fb;color:#145d99}.settings-content{overflow:auto;padding:13px 15px}.settings-section{display:none}.settings-section.active{display:block}.setting-card{border:1px solid var(--line);border-radius:9px;padding:13px 14px;background:#fff;margin-bottom:11px}.setting-card h3{font-size:13px;margin:0 0 11px;color:#2c4355}.form-grid{display:grid;gap:11px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:1fr 1.05fr 1.1fr}.form-grid input,.form-grid select{width:100%}.setting-check{display:flex;align-items:center;gap:7px;margin-top:10px;color:#3e4f5d;font-weight:600}.setting-check.align-end{align-self:end;height:34px;margin:0}.setting-note{font-size:11px;line-height:1.48;color:var(--muted);margin:9px 0 0}.warning-note{background:#fff8ec;border-left:3px solid #e3a344;padding:7px 9px;color:#725019}.radio-line{display:flex;align-items:center;gap:16px}.radio-line label,.radio-stack label{display:flex;align-items:center;gap:6px}.radio-stack{display:flex;flex-direction:column;gap:8px}.unit-field{display:flex;align-items:center}.unit-field input{width:90px;border-radius:6px 0 0 6px}.unit-field span{height:34px;padding:8px;background:#edf2f6;border:1px solid var(--line2);border-left:0;border-radius:0 6px 6px 0;color:#637483}.inline-fields{display:flex;align-items:center;gap:5px}.inline-fields select{min-width:78px}.inline-setting{display:flex;align-items:center;gap:7px;margin-top:10px}.inline-setting input{width:80px}.marker-rules-card{overflow-x:auto}.rules-table{min-width:880px;border:1px solid #e1e8ed;border-radius:7px;overflow:hidden}.rule-head,.rule-row{display:grid;grid-template-columns:52px 92px 105px 105px 200px 90px 90px;align-items:center}.rule-head{background:#f0f4f7;color:#536574;font-size:10px;font-weight:750}.rule-head>div,.rule-row>div{padding:6px;border-right:1px solid #e3e9ee}.rule-row{border-top:1px solid #e7edf1;font-size:11px}.rule-row input[type="checkbox"]{width:16px;height:16px}.rule-row input,.rule-row select{width:100%;height:29px;font-size:11px}.rule-row .rule-label{font-weight:700}.modal-foot{display:flex;justify-content:space-between;gap:8px;padding:10px 14px;border-top:1px solid var(--line);background:#f8fafc}.modal-foot>div{display:flex;gap:6px}
.help-layout{display:grid;grid-template-columns:220px 1fr;flex:1;min-height:0}.help-nav{background:#f7f9fb;border-right:1px solid var(--line);padding:10px;overflow:auto}.help-nav button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px;border-radius:6px;color:#4d5f6d}.help-nav button.active{background:#e9f2fa;color:#145d99;font-weight:700}.help-content{overflow:auto;padding:20px 24px;line-height:1.6}.help-content h2{margin-top:0;font-size:20px}.help-content h3{margin-top:24px;font-size:14px}.help-content p,.help-content li{color:#4b5d6b}.help-content code{background:#eef2f5;padding:2px 4px;border-radius:4px}.help-content .callout{background:#f0f7fd;border-left:4px solid var(--blue);padding:10px 12px;border-radius:5px}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:200;background:#1f2d38;color:#fff;border-radius:8px;padding:10px 15px;box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:min(760px,90vw);font-size:12px;white-space:pre-line}
@media(max-width:1250px){.workspace{grid-template-columns:min(var(--sidebar-width),380px) 7px minmax(480px,1fr) 290px}.hint{display:none}.routine-quick span{display:none}.routine-quick select{min-width:170px}.project-title-preview{display:none}}
@media(max-width:980px){body{overflow:auto}.app-shell{height:auto;min-height:100vh}.workspace{display:block}.sidebar-resizer{display:none}.sidebar,.inspector{border:0;border-bottom:1px solid var(--line)}.content{overflow:visible}.topbar{position:sticky;top:0}.projectbar{flex-wrap:wrap}.menu-bar{margin-left:10px}.brand-copy{display:none}.workspace{min-height:0}.inspector-tabs{position:static}.settings-layout{grid-template-columns:150px 1fr}.form-grid.three{grid-template-columns:1fr}.top-actions .primary{display:none}}

/* v0.2.1 - clearer review states + desktop-parity RL scope editor */
.measurement-item{border-left-width:5px;padding-left:8px}
.measurement-item.status-OFFEN{background:#fff2f2;border-color:#ecc8c8;border-left-color:#c94a4a}
.measurement-item.status-OFFEN:hover{background:#ffeaea;border-color:#dfa9a9;border-left-color:#b83434}
.measurement-item.status-PRÜFEN{background:#ffe7e7;border-color:#e8b0b0;border-left-color:#a92222}
.measurement-item.status-PRÜFEN:hover{background:#ffdddd;border-color:#dc9696}
.measurement-item.status-OK{background:#eaf7ef;border-color:#bcdcc8;border-left-color:#2c8755}
.measurement-item.status-OK:hover{background:#e0f3e7;border-color:#9fcdb0}
.measurement-item.active{box-shadow:0 0 0 2px rgba(23,104,178,.17),inset 3px 0 var(--blue);border-top-color:#77a9d2;border-right-color:#77a9d2;border-bottom-color:#77a9d2}
.measurement-item.active.status-OFFEN{background:#ffe9e9}.measurement-item.active.status-PRÜFEN{background:#ffdede}.measurement-item.active.status-OK{background:#dff3e7}
.list-status-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:9px;font-size:9px;font-weight:800;letter-spacing:.025em;border:1px solid transparent}
.status-OFFEN .list-status-pill{background:#fff;border-color:#e3b3b3;color:#9f2e2e}.status-PRÜFEN .list-status-pill{background:#a92222;color:#fff;border-color:#8f1c1c}.status-OK .list-status-pill{background:#2c8755;color:#fff;border-color:#247247}
.legend-box.full{background:#fff;border-style:dashed;border-color:#7e8992}
.qa-threshold-row{align-items:end}.qa-explainer{min-height:56px;border:1px solid #e8d2ad;background:#fff9ef;border-radius:7px;padding:8px 10px;display:flex;flex-direction:column;justify-content:center}.qa-explainer b{font-size:11px;color:#9a5c0b}.qa-explainer span{font-size:10px;line-height:1.35;color:#6d5a3d;margin-top:2px}
.qa-mode-title{margin-top:14px;padding-top:11px;border-top:1px solid #e6ebef;font-size:11px;font-weight:800;color:#354958}
.qa-mode-grid{display:grid;gap:7px;margin-top:7px}.qa-mode-option{display:flex;align-items:flex-start;gap:9px;border:1px solid #dce4ea;border-radius:8px;padding:9px 10px;background:#fbfcfd;cursor:pointer;transition:.12s}.qa-mode-option:hover{border-color:#abc3d7;background:#f6fafd}.qa-mode-option.selected{border-color:#6fa4cf;background:#edf6fd;box-shadow:inset 3px 0 #1768b2}.qa-mode-option>input{width:16px;height:16px;margin:2px 0 0;flex:0 0 auto}.qa-mode-option>span{display:block;min-width:0}.qa-mode-option b{display:block;font-size:11px;color:#2b4152}.qa-mode-option small{display:block;margin-top:2px;color:#6b7b88;line-height:1.35;font-size:10px}.free-range-fields{display:flex;align-items:center;gap:6px;margin-top:7px}.free-range-fields select{height:29px;min-width:86px;font-size:11px}.free-range-fields>span{font-size:10px;color:#677987}.qa-mode-option:not(.selected) .free-range-fields{opacity:.55}.mode-feedback{padding:7px 9px;background:#f1f6fa;border-left:3px solid #6597bc;border-radius:3px;color:#4b6477;font-weight:600}

/* v0.2.2 - Plot bleibt strikt im sichtbaren Diagrammfenster */
#plotSvg{overflow:hidden}

/* v0.2.3 - sichtbarer PDF-Druckplan / Leerplots / separater PDF-Druck */
.measurement-item{display:flex;gap:8px;align-items:stretch}
.measurement-main{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center}
.pdf-slot-rail{flex:0 0 46px;border-right:1px solid rgba(82,104,121,.18);padding-right:7px;display:flex;align-items:center;gap:4px;color:#526979}
.pdf-slot-rail>b{font-family:Consolas,"Courier New",monospace;font-size:24px;line-height:1;color:#447899;font-weight:500}
.pdf-slot-rail>span{font-size:8px;font-weight:800;line-height:1.05;text-transform:uppercase;white-space:nowrap;color:#557080}
.pdf-slot-rail small{display:block;font-size:9px;margin-top:3px;color:#7c8b96}
.blank-plot-item{background:repeating-linear-gradient(135deg,#fafbfc,#fafbfc 9px,#f3f6f8 9px,#f3f6f8 18px)!important;border-color:#bdc9d2!important;border-left-color:#7d8d99!important;cursor:default}
.blank-plot-item .measurement-name{color:#6c7983;letter-spacing:.06em}
.mini-type.blank{background:#e8ecef;color:#687984}
.blank-actions{display:flex;gap:3px}
.blank-actions button{width:23px;height:21px;padding:0;border:1px solid #c9d4dc;border-radius:4px;background:#fff;color:#556875;line-height:1}
.blank-actions button:hover{background:#edf3f7;border-color:#9fb3c2}
.print-plan-hint{position:sticky;bottom:25px;margin:8px -13px 0;padding:7px 13px;background:#f6f9fb;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#607383;z-index:2}
.print-plan-hint b{color:#40596d}.print-plan-hint span{text-align:right}
#blankPlotBtn{padding:4px 7px;font-size:10px;white-space:nowrap}
@media(max-width:1250px){#blankPlotBtn{font-size:0;padding:4px 7px}#blankPlotBtn:after{content:'+ Leer';font-size:10px}}
.pdf-page-divider{display:flex;align-items:center;justify-content:space-between;margin:5px 2px -1px;padding:2px 5px;color:#5a7284;border-bottom:1px dashed #b9c7d1;font-size:8px;letter-spacing:.08em;font-weight:850}
.pdf-page-divider small{font-size:8px;letter-spacing:0;text-transform:none;font-weight:600;color:#82909a}

/* Web 0.3.3 */
.measurement-order-actions{display:flex;gap:3px;margin-left:auto}
.measurement-order-actions button{width:23px;height:21px;padding:0;border:1px solid #c9d4dc;border-radius:4px;background:#fff;color:#556875;line-height:1;font-weight:800}
.measurement-order-actions button:hover:not(:disabled){background:#edf3f7;border-color:#9fb3c2}
.measurement-order-actions button:disabled{opacity:.3;cursor:default}
.caption-editor{margin-top:9px;padding:10px 12px;display:flex;align-items:end;gap:10px}
.caption-field{display:flex;flex-direction:column;gap:4px;min-width:0}.caption-field.grow{flex:1}.caption-field.pair-field{flex:0 1 260px}
.caption-field label{font-size:9px;color:var(--muted);font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.caption-field input{width:100%;min-width:0}.caption-actions{display:flex;gap:6px;flex:0 0 auto}.caption-actions button{height:34px}
@media(max-width:980px){.caption-editor{flex-wrap:wrap}.caption-field.grow,.caption-field.pair-field{flex:1 1 320px}.caption-actions{width:100%;justify-content:flex-end}}

/* Web 0.3.4 - dynamische Messungsleiste */
.sidebar-width-tip{font-size:10px;color:#728391}

/* v0.3.11 - Login vor der Anwendung */
.login-gate{position:fixed;inset:0;z-index:500;background:#e8eef3;display:grid;place-items:center;padding:24px}
.login-card{width:min(420px,92vw);background:#fff;border:1px solid #cbd7e0;border-radius:16px;box-shadow:0 20px 55px rgba(24,49,70,.18);padding:30px}
.login-mark{width:54px;height:54px;border-radius:14px;background:linear-gradient(145deg,#173f67,#1f78bc);display:grid;place-items:center;color:#fff;font-weight:800;font-size:21px;margin-bottom:18px}
.login-card h1{margin:0 0 7px;font-size:24px}.login-card>p{margin:0 0 22px;color:#667887;line-height:1.5}
.login-card label{display:block;margin:12px 0}.login-card label span{display:block;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.05em;color:#5f7180;margin-bottom:5px}
.login-card input{width:100%;height:40px}.login-card button{width:100%;margin-top:13px;padding:10px 14px}.login-error{margin-top:11px;padding:9px 10px;border-radius:7px;background:#fff0f0;border:1px solid #efc3c3;color:#982d2d;font-size:12px}

/* v0.3.11 - Mehrfachauswahl / Drag & Drop */
.measure-select{display:flex;align-items:flex-start;padding-top:3px;flex:0 0 auto;cursor:pointer}.measure-select input{width:16px;height:16px;margin:0}
.measurement-item.selected{outline:2px solid rgba(23,104,178,.28);outline-offset:-2px}.measurement-item.drag-source{opacity:.45}
.measurement-item.drop-before:before,.measurement-item.drop-after:after{content:"";position:absolute;left:8px;right:8px;height:3px;border-radius:2px;background:#1768b2;z-index:4}
.measurement-item.drop-before:before{top:-5px}.measurement-item.drop-after:after{bottom:-5px}
.selection-badge{background:#e6f1fb;color:#205f93;white-space:nowrap}

/* v0.3.11 - Sammel-Ersetzen */
.name-replace-panel{position:relative;margin:0 0 10px;background:#fff;border:1px solid #cbd8e2;border-radius:9px;padding:10px;box-shadow:0 6px 18px rgba(28,50,70,.08)}
.name-replace-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.name-replace-head strong{font-size:13px}.close-mini{border:0;background:transparent;font-size:20px;line-height:1;color:#657483;padding:0 3px}
.name-replace-panel label{display:block;margin:7px 0}.name-replace-panel label>span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:750;color:#667887;margin-bottom:3px}.name-replace-panel input[type="text"],.name-replace-panel select{width:100%}
.name-replace-panel .replace-check{display:flex;align-items:center;gap:6px}.name-replace-panel .replace-check input{width:15px;height:15px}.name-replace-panel .replace-check span{display:inline;margin:0;text-transform:none;letter-spacing:0;font-size:11px}
.name-replace-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;margin-top:9px}.name-replace-panel p{font-size:10px;line-height:1.4;color:#6c7d8b;margin:8px 0 0}
