:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color-scheme:light dark}*{box-sizing:border-box}body{margin:0;padding:24px;background:#f5f5f7;color:#111}[data-theme=dark] body{background:#16181d;color:#eaeaea}[data-theme=dark] .panel{background:#1f2228;border-color:#2c3038}[data-theme=dark] input,[data-theme=dark] select{background:#16181d;color:#eaeaea;border-color:#2c3038}h1{margin:0 0 4px;font-size:1.4rem}h2{font-size:1.05rem;margin:0 0 12px;color:inherit;opacity:.8}.app{max-width:1100px;margin:0 auto}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}@media (max-width: 800px){.grid{grid-template-columns:1fr}}.panel{background:#fff;border:1px solid #e0e0e4;border-radius:8px;padding:20px}.row{display:grid;grid-template-columns:var(--label-w, 168px) minmax(0,1fr) auto;gap:8px 10px;align-items:center;margin-bottom:10px}label{font-size:.9rem;display:flex;align-items:center;gap:6px;line-height:1.25}input,select{padding:6px 10px;border:1px solid #c8c8cc;border-radius:5px;font-size:.95rem;width:100%;transition:border-color .12s ease,box-shadow .12s ease}input:focus,select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb29}input.field-missing{border-color:#f59e0b;background:#fffbeb;box-shadow:0 0 0 2px #fef3c7}.req-mark{color:#dc2626;font-weight:700}[data-theme=dark] .req-mark{color:#f87171}.unit{color:#888;font-size:.8rem;min-width:60px}.unit:empty{min-width:0}button{padding:8px 18px;background:#2563eb;color:#fff;border:0;border-radius:5px;font-size:.95rem;cursor:pointer;margin-top:8px}button:hover{background:#1d4ed8}button:disabled{background:#888;cursor:not-allowed}.tag-row{align-items:start}.tag-list{display:flex;flex-direction:column;gap:6px;min-width:0}.tag-entry{display:flex;gap:6px;align-items:center}.tag-entry input{flex:1 1 auto;min-width:0}.tag-del{flex:0 0 auto;margin-top:0;padding:0;width:28px;height:32px;background:#f3f4f6;color:#6b7280;border:1px solid #d1d5db;border-radius:5px;font-size:1.05rem;line-height:1}.tag-del:hover{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}.tag-add{align-self:flex-start;margin-top:0;padding:4px 10px;background:transparent;color:#2563eb;border:1px dashed #93c5fd;border-radius:5px;font-size:.82rem;font-weight:500}.tag-add:hover{background:#eff6ff}[data-theme=dark] .tag-del{background:#1f2228;color:#9ca3af;border-color:#2c3038}[data-theme=dark] .tag-del:hover{background:#3a1518;color:#fca5a5;border-color:#b91c1c}[data-theme=dark] .tag-add{color:#93c5fd;border-color:#3b5bbf}[data-theme=dark] .tag-add:hover{background:#1e2230}.help-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#d1d5db;color:#1f2937;font-size:10px;cursor:help;font-weight:700}.help-icon:hover{background:#2563eb;color:#fff}.results-table{width:100%;border-collapse:collapse}.results-table td{padding:6px 8px;border-bottom:1px solid #eee;font-size:.95rem}.results-table td:first-child{color:#555}.results-table td:nth-child(2){font-family:ui-monospace,monospace;text-align:right}.results-table td:nth-child(3){color:#888;font-size:.82rem;width:60px}.warnings{background:#fef3c7;border:1px solid #f59e0b;padding:10px;border-radius:6px;margin-top:12px}.project-banner{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;background:#eef2ff;border:1px solid #c7d2fe;border-left:3px solid #4f46e5;border-radius:6px;padding:10px 14px;margin-bottom:14px}.project-banner .pb-main{display:flex;flex-direction:column;gap:6px;min-width:0}.project-banner .pb-right{flex-shrink:0}[data-theme=dark] .project-banner{background:#1e2230;border-color:#38406b;border-left-color:#6366f1}.project-banner .pb-primary{display:flex;flex-wrap:wrap;gap:4px 28px}.project-banner .pb-secondary{display:flex;flex-wrap:wrap;gap:2px 18px}.project-banner .pb-item{display:inline-flex;align-items:baseline;gap:6px}.project-banner .pb-lbl{font-size:.7rem;text-transform:uppercase;letter-spacing:.03em;color:#6b7280}.project-banner .pb-primary .pb-val{font-weight:600;font-size:1.05rem}.project-banner .pb-secondary .pb-val{font-weight:500;font-size:.85rem;opacity:.9}.project-banner .pb-hint{color:#6b7280;font-size:.85rem}.error{background:#fee2e2;border:1px solid #ef4444;padding:10px;border-radius:6px;margin-top:12px;color:#7f1d1d}.tag{display:inline-block;padding:2px 6px;background:#e5e7eb;border-radius:4px;font-size:.75rem;color:#374151;margin-left:6px}small.cite{display:block;color:#888;font-size:.75rem;margin-top:2px}.section-hd{font-weight:600;margin:20px 0 10px;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;border-bottom:1px solid #ececef;padding-bottom:5px}[data-theme=dark] .section-hd{color:#9ca3af;border-bottom-color:#2c3038}.reset-link{border:none;background:transparent;cursor:pointer;font-size:.72rem;color:#9ca3af;padding:0;text-transform:none;letter-spacing:0}.reset-link:hover{color:#2563eb}[data-theme=dark] .reset-link{color:#6b7280}[data-theme=dark] .reset-link:hover{color:#60a5fa}.three-point-toggle{display:flex;gap:.5em;align-items:center;margin:.5em 0}.three-point-grid{display:flex;flex-direction:column;gap:.25em}.three-point-grid .tp-shared{margin-bottom:.5em}.three-point-grid .tp-header,.three-point-grid .tp-row{display:grid;grid-template-columns:8em 1fr 1fr 1fr;gap:.5em;align-items:center}.three-point-grid .tp-header{font-weight:600;font-size:.9em;color:#555}.three-point-grid .tp-row input{width:100%}.muted{color:#888}.three-point-results .tp-results-header{margin-bottom:.5em}.three-point-results .tp-results-grid{display:flex;flex-direction:column;gap:.2em}.three-point-results .tp-header,.three-point-results .tp-row{display:grid;grid-template-columns:12em 1fr 1fr 1fr;gap:.5em;font-variant-numeric:tabular-nums}.three-point-results .tp-header{font-weight:600;color:#555}.three-point-results .tp-warnings{margin-top:.5em}.three-point-results .tp-warn-col{color:#b85c00;margin-top:.25em}.app-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:16px}.app-toolbar button{margin-top:0}.tool-btn{margin-top:0;padding:5px 12px;font-size:.85rem;font-weight:500;background:var(--surface, #f3f4f6);color:var(--text, #374151);border:1px solid var(--border, #d1d5db);border-radius:5px}.tool-btn:hover:not(:disabled){background:#4a80ff1a;border-color:#9ec0ff}.tool-btn:disabled{background:var(--surface, #f3f4f6);color:#9ca3af;border-color:var(--border, #e5e7eb);cursor:not-allowed;opacity:.65}[data-theme=dark] .tool-btn{background:#23262d;color:#d1d5db;border-color:#2c3038}[data-theme=dark] .tool-btn:hover:not(:disabled){background:#4a80ff29;border-color:#2f436e}[data-theme=dark] .tool-btn:disabled{background:#23262d;color:#6b7280;border-color:#2c3038}.lang-toggle{display:inline-flex;gap:2px;margin-right:8px}.lang-toggle button{padding:4px 10px;font-size:12px;background:var(--surface, #f3f3f3);border:1px solid var(--border, #ccc);cursor:pointer}.lang-toggle button.active{background:var(--accent, #4a6cf7);color:#fff;border-color:var(--accent, #4a6cf7)}.lang-select{padding:4px 8px;font-size:12px;background:#fff;color:#111;border:1px solid var(--border, #ccc);border-radius:3px;cursor:pointer}[data-theme=dark] .lang-select{background:#16181d;color:#eaeaea;border-color:#2c3038}.export-lang{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted, #555)}.export-lang .lang-select{margin-left:2px}.lang-hint{font-size:11px;color:#888;margin-left:4px;cursor:help}.unit-select{min-width:60px;width:auto;padding:2px 4px;font-size:.8rem;background:#fff;color:#333;border:1px solid #c8c8cc;border-radius:4px}[data-theme=dark] .unit-select{background:#16181d;color:#eaeaea;border-color:#2c3038}.result-badges{display:flex;gap:8px;margin:4px 0 8px;flex-wrap:wrap}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:.85em;border-radius:4px;border:1px solid var(--border, #ccc)}.badge-warning{background:#fff3cd;border-color:#ffc107;color:#856404}.badge-info{background:#d1ecf1;border-color:#17a2b8;color:#0c5460}[data-theme=dark] .badge-warning{background:#4a3a00;border-color:#ffc107;color:#ffe28a}[data-theme=dark] .badge-info{background:#0c3a40;border-color:#17a2b8;color:#a8e0ec}.shell{max-width:1100px;margin:0 auto}.shell-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.shell-header-left{display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-width:0}.shell-header-right{display:flex;align-items:center;gap:8px;flex:0 0 auto}.shell-proj-btn{padding:7px 14px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-size:.9rem;cursor:pointer}.shell-proj-btn:hover{background:#f3f4f6}[data-theme=dark] .shell-proj-btn{background:#1f2228;color:#d1d5db;border-color:#2c3038}[data-theme=dark] .shell-proj-btn:hover{background:#2c3038}.shell-tabs{display:flex;flex-wrap:nowrap;gap:4px;flex:1 1 auto;min-width:0}.shell-tabs>*{min-width:0}.shell-tabs button{padding:8px 18px;background:#f3f4f6;color:#374151;border:1px solid #d1d5db;border-radius:6px 6px 0 0;font-size:.95rem;cursor:pointer;margin-top:0;border-bottom:2px solid transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.shell-tabs button:hover{background:#e5e7eb}.shell-tabs button.active{background:#fff;color:#111;border-color:#d1d5db;border-bottom-color:#2563eb}.shell-tabs-sep{width:1px;align-self:stretch;margin:4px 6px;background:#d1d5db}.shell-tabs button.admin{font-size:.85rem;padding:8px 12px;color:#6b7280;background:transparent;border-style:dashed}.shell-tabs button.admin:hover{background:#f3f4f6}.shell-tabs button.admin.active{background:#fff;color:#374151;border-bottom-color:#6b7280}[data-theme=dark] .shell-tabs-sep{background:#2c3038}[data-theme=dark] .shell-tabs button.admin{background:transparent;color:#9ca3af}.shell-tabs-more{position:relative;display:inline-flex}.shell-tabs button.more{color:#6b7280;background:transparent;border-style:dashed;font-size:.9rem}.shell-tabs button.more:hover{background:#f3f4f6}.shell-tabs button.more.active{background:#fff;color:#374151;border-bottom-color:#2563eb}.shell-more-menu{position:absolute;top:100%;left:0;margin-top:4px;min-width:210px;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 8px 24px #0000001f;padding:6px;z-index:30}.shell-more-menu.right{left:auto;right:0;min-width:160px}.shell-file-menu{position:relative;display:inline-flex}.shell-more-menu .hd{padding:6px 10px 4px;color:#9ca3af;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.shell-more-menu button{display:block;width:100%;text-align:left;padding:8px 10px;border:none;background:transparent;border-radius:6px;font-size:.9rem;color:#374151;cursor:pointer}.shell-more-menu button:hover{background:#f3f4f6}.shell-more-menu button.active{color:#111;font-weight:600}.shell-tabs-variant{position:relative;display:inline-flex}.variant-caret{font-size:.7em;opacity:.7;margin-left:2px}.variant-active-name{font-size:.72em;opacity:.65;margin-left:5px;font-weight:400}.result-tabs{display:inline-flex;gap:2px}.result-tab{border:none;background:transparent;cursor:pointer;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;padding:1px 8px;opacity:.55;border-bottom:2px solid transparent}.result-tab:hover{opacity:.85}.result-tab.active{opacity:1;border-bottom-color:#2563eb}[data-theme=dark] .result-tab.active{border-bottom-color:#4a80ff}.variant-compare{margin:12px 0 4px}.variant-compare-title{font-weight:600;font-size:.95rem;margin-bottom:6px}.variant-compare-table{border-collapse:collapse;font-size:.9rem;width:100%}.variant-compare-table th,.variant-compare-table td{border:1px solid var(--border, #e5e7eb);padding:5px 12px;text-align:right}.variant-compare-table thead th{text-align:center;background:var(--panel-2, rgba(127,127,127,.06))}.variant-compare-table tbody th{text-align:left;font-weight:600}.variant-compare-table .variant-compare-unit{opacity:.55;font-weight:400;font-size:.85em;margin-left:4px}.variant-compare-table td.active,.variant-compare-table thead th.active{background:#4a80ff1f}.variant-compare-table tr.diff th,.variant-compare-table tr.diff td{background:#f59e0b1f}.variant-compare-table tr.diff th{font-weight:700}.variant-compare-table tr.diff td.active{background:#4a80ff33}[data-theme=dark] .variant-compare-table tr.diff th,[data-theme=dark] .variant-compare-table tr.diff td{background:#f59e0b29}.variant-compare-col{border:none;background:transparent;cursor:pointer;font:inherit;font-weight:600;color:inherit;padding:0}.variant-compare-col:hover{text-decoration:underline}[data-theme=dark] .variant-compare-table th,[data-theme=dark] .variant-compare-table td{border-color:#2c3038}.cross-domain{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.cd-card{flex:1 1 150px;border:1px solid var(--border, #e5e7eb);border-radius:8px;padding:8px 10px}.cd-head{font-weight:600;margin-bottom:6px}.cd-row{display:grid;grid-template-columns:1fr auto 2.6em;gap:8px;font-size:.9rem;padding:2px 0}.cd-row span:first-child{opacity:.7}.cd-row span:nth-child(2){text-align:right;font-variant-numeric:tabular-nums}.cd-row span:last-child{opacity:.5}[data-theme=dark] .cd-card{border-color:#2c3038}.proj-variant-compare{margin-top:16px}.proj-variant-compare .cd-head{margin-bottom:4px}.project-overview{display:flex;flex-direction:column;gap:20px}.positions-table{width:100%;border-collapse:collapse;font-size:.85rem;margin-top:4px}.positions-table th,.positions-table td{padding:4px 8px;border-bottom:1px solid var(--border, #e5e7eb);text-align:left}.positions-table thead th{font-weight:600;color:var(--muted, #555)}.positions-table td:nth-child(3),.positions-table th:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}.positions-table tbody tr{cursor:pointer}.positions-table tbody tr:hover{background:#4a80ff0f}.positions-table tr.current{background:#4a80ff1f}.positions-table tr.current:hover{background:#4a80ff29}.positions-table .row-actions{white-space:nowrap;text-align:right}.positions-table .row-actions button{background:transparent;border:1px solid var(--border, #ccc);border-radius:4px;padding:1px 6px;margin:0 0 0 4px;font-size:.78rem;cursor:pointer;color:inherit}.positions-table .row-actions button:hover{background:#4a80ff1a}.positions-table .row-actions button:disabled{opacity:.35;cursor:not-allowed;background:transparent}.add-position{font-size:.85rem;cursor:pointer;margin-top:8px}.positions-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}[data-theme=dark] .positions-table th,[data-theme=dark] .positions-table td{border-bottom-color:#2c3038}[data-theme=dark] .positions-table .row-actions button{border-color:#2c3038}.positions-table .calc-chips{white-space:nowrap}.calc-chip{display:inline-flex;align-items:center;gap:4px;margin:0 4px 0 0;padding:1px 4px 1px 7px;border-radius:10px;font-size:.72rem;font-weight:600;border:1px solid transparent}.calc-chip .calc-count{display:inline-flex;align-items:center;justify-content:center;min-width:15px;height:15px;padding:0 3px;border-radius:8px;font-size:.66rem;font-variant-numeric:tabular-nums;background:#0000001a}.calc-flow{background:#e0ecff;color:#1d4ed8;border-color:#b9d2ff}.calc-ce{background:#e6f7ec;color:#15803d;border-color:#bfe8cd}.calc-blb{background:#fdeede;color:#b45309;border-color:#f6d7ad}.calc-steckblende{background:#f0e9fb;color:#7c3aed;border-color:#ddccf6}[data-theme=dark] .calc-chip .calc-count{background:#ffffff29}[data-theme=dark] .calc-flow{background:#16294d;color:#93b8ff;border-color:#244277}[data-theme=dark] .calc-ce{background:#133023;color:#86efac;border-color:#1f4d36}[data-theme=dark] .calc-blb{background:#3a2a10;color:#f5c577;border-color:#5a4423}[data-theme=dark] .calc-steckblende{background:#2a1f47;color:#c4b0f5;border-color:#3f3068}.shell-more-sep{height:1px;margin:6px 4px;background:#e5e7eb}.shell-more-menu .variant-row{display:flex;align-items:center;gap:2px}.shell-more-menu .variant-row button{width:auto}.shell-more-menu .variant-pick{flex:1;display:flex;align-items:center;gap:6px}.variant-dot{font-size:.7em;opacity:.75}.shell-more-menu .variant-row-btn{flex:0 0 auto;min-width:26px;text-align:center;padding:8px 4px}.shell-more-menu .variant-row-danger:not(:disabled){color:#dc2626}.shell-more-menu .variant-row-btn:disabled{opacity:.35;cursor:not-allowed}.shell-more-menu .variant-add{font-weight:600}[data-theme=dark] .shell-more-sep,[data-theme=dark] .shell-tabs button.more:hover{background:#2c3038}[data-theme=dark] .shell-tabs button.more.active{background:#16181d;color:#eaeaea}[data-theme=dark] .shell-more-menu{background:#16181d;border-color:#2c3038}[data-theme=dark] .shell-more-menu button{color:#d1d5db}[data-theme=dark] .shell-more-menu button:hover{background:#2c3038}[data-theme=dark] .shell-more-menu button.active{color:#eaeaea}[data-theme=dark] .shell-more-menu .hd{color:#6b7280}[data-theme=dark] .shell-tabs button.admin.active{background:#16181d;border-bottom-color:#9ca3af}.pin-legend{display:block;color:#6b7280;font-size:.74rem;margin:0 0 10px}[data-theme=dark] .pin-legend{color:#9ca3af}.pipe-trio{display:flex;gap:10px}.pipe-trio-cell{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.pipe-trio-cell input{width:100%;box-sizing:border-box}.pipe-trio-lbl{font-size:.72rem;color:#6b7280}[data-theme=dark] .pipe-trio-lbl{color:#9ca3af}.pipe-trio-meta{display:flex;align-items:center;gap:4px;min-height:18px}.pipe-trio-row{align-items:start}.pipe-trio-row>label{padding-top:20px}.pipe-trio-row .mk-third{padding-top:20px}.theme-toggle{padding:6px 14px;background:transparent;color:inherit;border:1px solid #d1d5db;border-radius:6px;font-size:.85rem;cursor:pointer;margin-top:0}.theme-toggle:hover{background:#f3f4f6}[data-theme=dark] .shell-tabs button{background:#1f2228;color:#d1d5db;border-color:#2c3038}[data-theme=dark] .shell-tabs button:hover{background:#2c3038}[data-theme=dark] .shell-tabs button.active{background:#16181d;color:#eaeaea;border-bottom-color:#4a80ff}[data-theme=dark] .theme-toggle{border-color:#2c3038}[data-theme=dark] .theme-toggle:hover{background:#1f2228}.references-panel{border:1px solid var(--border, #ddd);border-radius:6px;padding:8px 10px}.references-panel>summary{cursor:pointer;font-size:.95em}.ref-search{width:100%;margin:8px 0;padding:5px 8px;box-sizing:border-box}.ref-group-block{margin-bottom:10px}.ref-group{font-weight:600;text-transform:capitalize;color:#2563eb;margin:4px 0;font-size:.85em}.ref-entry{margin:4px 0 6px;padding-left:8px;border-left:2px solid #e5e7eb}.ref-cite{font-size:.82em;color:#374151}.ref-cite code{background:#f3f4f6;padding:0 4px;border-radius:3px}.ref-desc{font-size:.82em;color:#6b7280}.ref-empty{color:#888;font-size:.85em}[data-theme=dark] .ref-group{color:#60a5fa}[data-theme=dark] .ref-cite{color:#d1d5db}[data-theme=dark] .ref-cite code{background:#374151}[data-theme=dark] .ref-desc{color:#9ca3af}[data-theme=dark] .ref-entry{border-left-color:#374151}.applic-panel{border:1px solid var(--border, #ddd);border-radius:6px;padding:6px 9px;margin:6px 0 8px;font-size:.85em}.applic-panel>summary{cursor:pointer}.applic-badge-ok{color:#15803d;font-weight:600}.applic-badge-out{color:#b91c1c;font-weight:600}.applic-table{width:100%;border-collapse:collapse;margin-top:6px}.applic-table td{padding:2px 6px;vertical-align:top}.applic-req{color:#6b7280}.applic-act{text-align:right;font-variant-numeric:tabular-nums}.applic-row-out{background:#fef2f2}.applic-row-out td{color:#b91c1c}[data-theme=dark] .applic-req{color:#9ca3af}[data-theme=dark] .applic-row-out{background:#2a1416}[data-theme=dark] .applic-row-out td,[data-theme=dark] .applic-badge-out{color:#fca5a5}[data-theme=dark] .applic-badge-ok{color:#86efac}.mk-toggle{font-size:.75rem;font-weight:400;display:inline-flex;align-items:center;gap:4px;cursor:pointer;opacity:.85}.mk-toggle input{width:auto}.mk-group summary{cursor:pointer;font-weight:600;font-size:.85rem;margin:8px 0 6px}.mk-section{margin-bottom:6px}.mk-more{margin:2px 0 10px}.mk-more>summary{cursor:pointer;font-size:.75rem;color:#6b7280;list-style:none;padding:2px 0;-webkit-user-select:none;user-select:none}.mk-more>summary::-webkit-details-marker{display:none}.mk-more>summary:before{content:"▸ "}.mk-more[open]>summary:before{content:"▾ "}.mk-more>summary:hover{color:#2563eb}[data-theme=dark] .mk-more>summary{color:#9ca3af}.mk-trio{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:2px 0 10px;padding:6px 10px;background:#f6f7f9;border-radius:6px}[data-theme=dark] .mk-trio{background:#1b1e24}.mk-trio-cell{display:inline-flex;align-items:center;gap:4px}.mk-trio-cell em{font-style:italic;color:#6b7280;min-width:1.4em;text-align:right}.mk-trio-in{width:64px;padding:3px 6px;text-align:right;font-variant-numeric:tabular-nums}.mk-trio-cell.mk-derived .mk-trio-in{background:#fff;color:#166534}.mk-trio-cell.mk-given .mk-trio-in{font-weight:600}[data-theme=dark] .mk-trio-cell.mk-derived .mk-trio-in{background:#14391f;color:#86efac}.mk-third{display:inline-flex;align-items:center;gap:6px}.mk-state{font-size:.7rem;padding:1px 6px;border-radius:4px;border:1px solid #c8c8cc;white-space:nowrap}.mk-given{background:#dbeafe;border-color:#2563eb;color:#1e40af}.mk-derived{background:#dcfce7;border-color:#16a34a;color:#166534}.mk-unset{background:transparent;color:#888}.mk-state.mk-computed{background:#dbeafe;border-color:#3b82f6;color:#1e40af}[data-theme=dark] .mk-given{background:#1e3a5f;color:#93c5fd}[data-theme=dark] .mk-derived{background:#14391f;color:#86efac}[data-theme=dark] .mk-computed{background:#1e3a5f99;border-color:#3b82f6;color:#93c5fd}.mk-pinbtn{border:1px solid #c8c8cc;background:transparent;border-radius:4px;cursor:pointer;font-size:.8rem;padding:1px 6px;color:inherit}.mk-pinbtn:hover{border-color:#2563eb}.mk-conflict-input{border-color:#dc2626;box-shadow:0 0 0 2px #dc262626}.mk-conflict-note{display:block;color:#b91c1c;font-size:.75rem;margin:-6px 0 8px}[data-theme=dark] .mk-conflict-note{color:#fca5a5}.mk-hint{display:block;color:#b45309;font-size:.75rem;margin:-6px 0 8px}[data-theme=dark] .mk-hint{color:#fcd34d}.mk-rw .mk-state,.mk-rw .mk-pinbtn{opacity:0;transition:opacity .12s ease}.mk-rw:hover .mk-state,.mk-rw:focus-within .mk-state,.mk-rw:hover .mk-pinbtn,.mk-rw:focus-within .mk-pinbtn{opacity:1}.mk-rw input[readonly]{background:#f6f7f9;color:#4b5563}[data-theme=dark] .mk-rw input[readonly]{background:#1b1e24;color:#cbd5e1}.tpl-editor{margin-top:16px}.tpl-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #e0e0e4}[data-theme=dark] .tpl-toolbar{border-bottom-color:#2c3038}.tpl-toolbar-field{display:flex;flex-direction:column;gap:4px}.tpl-toolbar-field label{font-size:.75rem;opacity:.7}.tpl-toolbar-field select{min-width:240px}.tpl-toolbar-field input{width:90px}.tpl-toolbar>.mk-pinbtn{padding:7px 12px}.tpl-editor details.mk-group{border:1px solid #e6e6ea;border-radius:8px;padding:0 14px 12px;margin:0 0 12px;background:#fafafb}[data-theme=dark] .tpl-editor details.mk-group{border-color:#2c3038;background:#1b1e23}.tpl-editor details.mk-group>summary{margin:0 -14px;padding:11px 14px;font-size:.9rem}.tpl-editor details.mk-group[open]>summary{border-bottom:1px solid #e6e6ea;margin-bottom:12px}[data-theme=dark] .tpl-editor details.mk-group[open]>summary{border-bottom-color:#2c3038}.tpl-list{border:1px solid #e6e6ea;border-radius:6px;overflow:hidden;margin-bottom:10px;background:#fff}[data-theme=dark] .tpl-list{border-color:#2c3038;background:#16181d}.tpl-list:empty{display:none}.tpl-subgroup{border:1px solid #ececed;border-radius:6px;margin-bottom:8px;background:#fff}[data-theme=dark] .tpl-subgroup{border-color:#2c3038;background:#16181d}.tpl-subgroup>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 12px;font-size:.82rem;font-weight:600}.tpl-subgroup[open]>summary{border-bottom:1px solid #f0f0f2}[data-theme=dark] .tpl-subgroup[open]>summary{border-bottom-color:#23262d}.tpl-cat{display:inline-flex;align-items:center;padding:2px 11px;font-size:.78rem;font-weight:600;border-radius:999px;border:1px solid}.tpl-cat-geometry{background:#e0edff;border-color:#93b4f5;color:#1e40af}.tpl-cat-flow{background:#d1f0f5;border-color:#5bbfcf;color:#0c5460}.tpl-cat-fluid{background:#dcfce7;border-color:#6ee7a0;color:#166534}.tpl-cat-erp{background:#fef3c7;border-color:#f0c14b;color:#92600a}.tpl-cat-blb{background:#ede0ff;border-color:#b794e8;color:#6b21a8}.tpl-cat-ce{background:#ffe0e6;border-color:#f59ab0;color:#9f1239}.tpl-cat-other{background:#ececed;border-color:#c8c8cc;color:#555}[data-theme=dark] .tpl-cat-geometry{background:#14233f;border-color:#3b5fa0;color:#bcd2ff}[data-theme=dark] .tpl-cat-flow{background:#0c3a40;border-color:#2f7d8a;color:#a8e0ec}[data-theme=dark] .tpl-cat-fluid{background:#11331f;border-color:#2e7d4f;color:#9be8b8}[data-theme=dark] .tpl-cat-erp{background:#3a2c00;border-color:#8a6a1f;color:#f5d98a}[data-theme=dark] .tpl-cat-blb{background:#2a1a40;border-color:#6f4ba0;color:#d6bcf5}[data-theme=dark] .tpl-cat-ce{background:#3a1420;border-color:#9a4a60;color:#f5a8bc}[data-theme=dark] .tpl-cat-other{background:#23262d;border-color:#3a3f49;color:#9ca3af}.tpl-subcount{margin-left:auto;font-size:.72rem;font-weight:600;color:#777;background:#0000000d;padding:1px 8px;border-radius:10px}[data-theme=dark] .tpl-subcount{background:#ffffff12;color:#9ca3af}.tpl-subgroup .tpl-list{border:none;border-radius:0;margin:0;background:transparent}.tpl-role{flex:none;font-size:.68rem;font-weight:600;white-space:nowrap;padding:1px 7px;border-radius:10px;border:1px solid}.tpl-role-input{background:#dbeafe;border-color:#93c5fd;color:#1e40af}.tpl-role-derived{background:#dcfce7;border-color:#86efac;color:#166534}[data-theme=dark] .tpl-role-input{background:#1e3a5f;border-color:#3b5fa0;color:#bcd2ff}[data-theme=dark] .tpl-role-derived{background:#14391f;border-color:#2e7d4f;color:#9be8b8}.tpl-item .cite.tpl-from{flex:none;margin-top:0;white-space:nowrap;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.72rem}.tpl-target{flex:none;font-size:.68rem;font-weight:600;white-space:nowrap;padding:1px 7px;border-radius:10px;border:1px dashed #c9cdd4;background:transparent;color:#9aa0a8;cursor:pointer}.tpl-target:hover:not(:disabled){border-color:#b45309;color:#b45309}.tpl-target:disabled{opacity:.35;cursor:default}.tpl-target.on{border-style:solid;background:#fef3c7;border-color:#f59e0b;color:#92400e}[data-theme=dark] .tpl-target{border-color:#3a3f49;color:#6b7280}[data-theme=dark] .tpl-target.on{background:#3a2c00;border-color:#8a6a1f;color:#f5d98a}.tpl-merkmal{flex:none;font-size:.68rem;font-weight:600;white-space:nowrap;padding:1px 7px;border-radius:10px;border:1px dashed #c9cdd4;background:transparent;color:#9aa0a8;cursor:pointer}.tpl-merkmal:hover{border-color:#2563eb;color:#2563eb}.tpl-merkmal.on{border-style:solid;background:#dbeafe;border-color:#3b82f6;color:#1e40af}[data-theme=dark] .tpl-merkmal{border-color:#3a3f49;color:#6b7280}[data-theme=dark] .tpl-merkmal.on{background:#16294d;border-color:#2f5ca8;color:#bfd4f5}.tpl-subcount.tpl-target-count{margin-left:6px;background:#fef3c7;color:#92400e}[data-theme=dark] .tpl-subcount.tpl-target-count{background:#3a2c00;color:#f5d98a}.tpl-domain{margin-bottom:10px}.tpl-domain>summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px 2px;font-weight:700;letter-spacing:.02em}.tpl-domain-hd{font-size:.95rem}.tpl-domain-body{padding-left:4px}.calc-list{display:flex;flex-direction:column;gap:4px;padding:4px 0}.calc-list>.cite{margin-bottom:2px}.calc-list-indent{padding-left:16px}.calc-row{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;padding:4px 6px;border-radius:6px}.calc-row:nth-child(2n){background:#00000005}[data-theme=dark] .calc-row:nth-child(2n){background:#ffffff08}.calc-label{font-weight:600;min-width:12ch}.calc-toggle{display:inline-flex;align-items:center;gap:4px;font-size:.82rem;cursor:pointer;-webkit-user-select:none;user-select:none}.calc-derives{display:inline-flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:.85rem}.calc-arrow{opacity:.6}.calc-in{color:#1e40af}.calc-out{color:#166534}[data-theme=dark] .calc-in{color:#bcd2ff}[data-theme=dark] .calc-out{color:#9be8b8}.tpl-knobs{display:inline-flex;align-items:center;gap:8px;margin-left:auto;flex:none}.tpl-emphasis{display:inline-flex;border:1px solid #c9cdd4;border-radius:8px;overflow:hidden}[data-theme=dark] .tpl-emphasis{border-color:#3a3f49}.tpl-emph-btn{font-size:.68rem;font-weight:600;padding:1px 8px;border:none;background:transparent;color:#9aa0a8;cursor:pointer}.tpl-emph-btn+.tpl-emph-btn{border-left:1px solid #c9cdd4}[data-theme=dark] .tpl-emph-btn+.tpl-emph-btn{border-left-color:#3a3f49}.tpl-emph-btn.on{background:#2563eb;color:#fff}[data-theme=dark] .tpl-emph-btn.on{background:#1d4ed8}.tpl-def-cell{display:inline-flex;align-items:center;gap:4px}.tpl-def-input{width:7rem;font-size:.8rem;padding:2px 6px;border:1px solid #c9cdd4;border-radius:6px;background:#fff}[data-theme=dark] .tpl-def-input{border-color:#3a3f49;background:#1f2937;color:inherit}.tpl-def-na{color:#b8bcc4;font-size:.8rem;width:7rem;justify-content:center}.mk-target-chip{flex:none;font-size:.68rem;font-weight:600;white-space:nowrap;padding:1px 7px;border-radius:10px;border:1px dashed #f59e0b;color:#b45309;background:transparent}.mk-target-chip.met{border-style:solid;background:#fef3c7;color:#92400e}[data-theme=dark] .mk-target-chip{border-color:#8a6a1f;color:#f5d98a}[data-theme=dark] .mk-target-chip.met{background:#3a2c00}.mk-guidance{margin:8px 0 10px;padding:8px 12px;border-radius:8px;border:1px solid #f3d28a;border-left:4px solid #f59e0b;background:#fffbeb}.mk-guidance.mk-gd-ok{border-color:#86efac;border-left-color:#16a34a;background:#f0fdf4}[data-theme=dark] .mk-guidance{border-color:#5a4712;border-left-color:#8a6a1f;background:#221c08}[data-theme=dark] .mk-guidance.mk-gd-ok{border-color:#2e7d4f;border-left-color:#2e7d4f;background:#0e2517}.mk-gd-progress{font-size:.78rem;font-weight:600;color:#92400e;margin-bottom:4px}[data-theme=dark] .mk-gd-progress{color:#f5d98a}.mk-gd-primary,.mk-gd-alt{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px}.mk-gd-lbl,.mk-gd-or{font-size:.78rem;color:#6b7280;white-space:nowrap}.mk-gd-chip{font-size:.75rem;font-weight:600;padding:2px 9px;border-radius:11px;border:1px solid #f59e0b;background:#fff;color:#92400e;cursor:pointer}.mk-gd-chip:hover{background:#fef3c7}.mk-gd-chip.mk-gd-enable{border-style:dashed}[data-theme=dark] .mk-gd-chip{background:#2a2208;border-color:#8a6a1f;color:#f5d98a}[data-theme=dark] .mk-gd-chip:hover{background:#3a2c00}.mk-gd-cond{margin-top:0}.mk-gd-alts{margin-top:6px}.mk-gd-alts>summary{font-size:.78rem;color:#6b7280;cursor:pointer}.mk-spine{border-left:4px solid #f59e0b;padding-left:10px;margin:0 0 12px;border-radius:0 6px 6px 0}.mk-spine>.section-hd{color:#92400e;border-bottom-color:#f3d28a;margin-top:4px}[data-theme=dark] .mk-spine>.section-hd{color:#f5d98a;border-bottom-color:#5a4712}.tpl-item{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:7px 10px;border-bottom:1px solid #f0f0f2}[data-theme=dark] .tpl-item{border-bottom-color:#23262d}.tpl-item:last-child{border-bottom:none}.tpl-item:hover{background:#f7f9fc}[data-theme=dark] .tpl-item:hover{background:#1f2937}.tpl-item .badge{flex:none}.tpl-item-label{flex:1 1 140px;font-weight:500;font-size:.9rem}.tpl-item-key{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.75rem;color:#777;background:#0000000b;padding:1px 6px;border-radius:4px}[data-theme=dark] .tpl-item-key{background:#ffffff0f;color:#9ca3af}.tpl-item-actions{margin-left:auto;display:inline-flex;gap:4px;flex:none}.tpl-rules .tpl-item .tpl-item-key{font-weight:600;color:inherit}.tpl-rules .tpl-item .cite{flex:1 1 200px;margin-top:0}.tpl-rule-io{display:flex;flex-wrap:wrap;align-items:center;gap:3px 4px}.tpl-io-label{font-weight:600;opacity:.7}.tpl-io-arrow{opacity:.5;margin:0 4px}.tpl-io-gives{font-family:ui-monospace,SF Mono,Menlo,monospace}.tpl-need{display:inline-flex;align-items:center;padding:0 6px;border-radius:4px;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.72rem;border:1px solid transparent}.tpl-need-raw{color:#555;background:#0000000d}.tpl-need-up{color:#166534;background:#dcfce7;border-color:#86efac}.tpl-need-down{color:#9f1239;background:#ffe0e6;border-color:#f59ab0}.tpl-need-src{opacity:.85;margin-left:3px}[data-theme=dark] .tpl-need-raw{color:#9ca3af;background:#ffffff0f}[data-theme=dark] .tpl-need-up{color:#9be8b8;background:#14391f;border-color:#2e7d4f}[data-theme=dark] .tpl-need-down{color:#f5a8bc;background:#3a1420;border-color:#9a4a60}.tpl-rules-list{position:relative;padding-left:30px}.tpl-rule-domain-hd{font-weight:600;font-size:.95rem;margin:10px 0 2px}.tpl-rule-domain-hd:first-child{margin-top:0}.tpl-rule-row.tpl-rule-indent{padding-left:26px}.tpl-dep-svg{pointer-events:none;overflow:visible;z-index:2}.tpl-rule-row{cursor:pointer}.tpl-rule-row.tpl-row-off{opacity:.32;transition:opacity .12s ease}.tpl-rule-row.tpl-row-pinned{background:#2563eb12}[data-theme=dark] .tpl-rule-row.tpl-row-pinned{background:#60a5fa21}.tpl-propset>.row,.tpl-rules>.row{margin-bottom:0}.tpl-defaults .row:last-child{margin-bottom:0}.tpl-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:16px;margin-top:4px;border-top:1px solid #e0e0e4}[data-theme=dark] .tpl-actions{border-top-color:#2c3038}.tpl-actions .mk-pinbtn{padding:7px 18px;font-size:.85rem}.tpl-btn-primary{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:600}.tpl-btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}.tpl-btn-danger{color:#b91c1c}.tpl-btn-danger:hover{border-color:#dc2626;background:#fef2f2}[data-theme=dark] .tpl-btn-danger{color:#fca5a5}[data-theme=dark] .tpl-btn-danger:hover{background:#2a1416}.tpl-opt-toggle{display:inline-flex;align-items:center;gap:3px;font-size:.8em;color:var(--muted, #666);cursor:pointer}.tpl-opt-dep{opacity:.5;cursor:help;padding:0 4px}.mk-opt-row{display:flex;align-items:center;gap:6px;padding:2px 0}.mk-opt-label{flex:1}.tpl-rule-label{font-weight:600;margin-right:6px}.mk-opt-toggles{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--border, #ddd)}.mk-opt-toggles-lbl{font-weight:600;font-size:.85rem;color:var(--muted, #555)}.mk-opt-toggle{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border:1px solid var(--border, #ccc);border-radius:999px;cursor:pointer;font-size:.85rem;-webkit-user-select:none;user-select:none}.mk-opt-toggle.on{border-color:var(--accent, #4a6cf7);background:color-mix(in srgb,var(--accent, #4a6cf7) 12%,transparent);font-weight:600}.mk-opt-toggle input{margin:0}.mk-fluid-hint{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 8px;padding:6px 9px;border:1px solid var(--border, #ddd);border-radius:6px;background:color-mix(in srgb,var(--accent, #4a6cf7) 8%,transparent);font-size:.85rem}.mk-fluid-hint>span{flex:1;min-width:12rem;color:var(--muted, #555)}.mk-rw,.tpl-rw{border-radius:6px;transition:background .12s ease}.mk-rw.mk-lit>.row,.tpl-rw.tpl-lit>.tpl-item{background:#2563eb14}.mk-rw.mk-hover>.row,.tpl-rw.tpl-hover>.tpl-item{background:#2563eb29}[data-theme=dark] .mk-rw.mk-lit>.row,[data-theme=dark] .tpl-rw.tpl-lit>.tpl-item{background:#60a5fa1f}[data-theme=dark] .mk-rw.mk-hover>.row,[data-theme=dark] .tpl-rw.tpl-hover>.tpl-item{background:#60a5fa33}.part-results{align-self:start}.part-notice{border-radius:6px;padding:8px 10px;margin-bottom:10px;border:1px solid;font-size:.85rem}.part-notice-hd{font-weight:700;margin-bottom:4px;font-size:.78rem;text-transform:uppercase;letter-spacing:.03em}.part-notice-row{padding:1px 0}.part-notice-error{background:#fde8e8;border-color:#e02424;color:#9b1c1c}.part-notice-range{background:#fff4e0;border-color:#d97706;color:#92400e}.part-notice-warn{background:#fef3c7;border-color:#f59e0b;color:#8a5a00}.part-notice-ok{background:#e7f6ec;border-color:#34a853;color:#1e7e40;font-size:.82rem;padding:6px 10px}[data-theme=dark] .part-notice-error{background:#3a1414;border-color:#e02424;color:#f5a9a9}[data-theme=dark] .part-notice-range{background:#3a2a0c;border-color:#d97706;color:#fcd9a0}[data-theme=dark] .part-notice-warn{background:#3a3008;border-color:#f59e0b;color:#f5dd9a}[data-theme=dark] .part-notice-ok{background:#10331d;border-color:#34a853;color:#a7e3bd}.part-res-domain{margin-bottom:10px}.part-res-domain-hd{font-size:.72rem;font-weight:700;opacity:.6;text-transform:uppercase;letter-spacing:.04em;margin:6px 0 3px}.part-res-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:baseline;padding:2px 0}.part-res-label{opacity:.85}.part-res-value{font-variant-numeric:tabular-nums;font-weight:600;text-align:right}.part-res-unit{opacity:.6;min-width:2.5em}.part-res-pending{font-size:.8rem;opacity:.7;font-style:italic;padding:2px 0}.part-dl{display:flex;gap:8px;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid #e0e0e4}[data-theme=dark] .part-dl{border-top-color:#2c3038}.part-dl select{min-width:110px}.part-switcher{display:flex;flex-wrap:nowrap;gap:4px;align-items:center;overflow-x:auto;min-width:0}.part-chip{padding:4px 12px;background:#f3f4f6;color:#374151;border:1px solid #d1d5db;border-radius:4px 4px 0 0;font-size:.82rem;cursor:pointer;margin-top:0;white-space:nowrap;flex:0 0 auto;transition:background .1s ease}.part-chip:hover{background:#e5e7eb}.part-chip.active{background:#fff;color:#111;border-color:#d1d5db;border-bottom-color:#2563eb;font-weight:600}.part-chip.add{background:transparent;color:#6b7280;border-style:dashed;border-color:#d1d5db}.part-chip.add:hover{background:#f3f4f6;color:#374151}[data-theme=dark] .part-chip{background:#1f2228;color:#d1d5db;border-color:#2c3038}[data-theme=dark] .part-chip:hover{background:#2c3038}[data-theme=dark] .part-chip.active{background:#16181d;color:#eaeaea;border-bottom-color:#4a80ff}[data-theme=dark] .part-chip.add{background:transparent;color:#9ca3af;border-color:#2c3038}[data-theme=dark] .part-chip.add:hover{background:#1f2228;color:#d1d5db}.login-screen{display:flex;align-items:center;justify-content:center;min-height:100vh}.login-card{display:flex;flex-direction:column;gap:12px;width:320px;padding:28px;border:1px solid var(--border, #ccc);border-radius:10px;background:var(--panel, #fff)}.login-card h1{margin:0 0 8px;font-size:1.3rem}.login-card label{display:flex;flex-direction:column;gap:4px;font-size:.85rem}.login-card input{padding:8px}.login-card button{padding:9px;cursor:pointer}.login-error{color:#c0392b;font-size:.85rem}.pb-new{padding:7px 14px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-size:.9rem;cursor:pointer;white-space:nowrap}.pb-new:hover{background:#f3f4f6}.pb-del{padding:7px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#6b7280;font-size:.9rem;cursor:pointer}.pb-del:hover{background:#eef0f2;color:#374151}.pb-sync-error{color:#c0392b}[data-theme=dark] .pb-new{background:#1f2228;color:#d1d5db;border-color:#2c3038}[data-theme=dark] .pb-new:hover{background:#2c3038}[data-theme=dark] .pb-del:hover{background:#2c3038;color:#d1d5db}.pb-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;z-index:50}.pb-dialog{display:flex;flex-direction:column;gap:10px;width:340px;padding:22px;background:var(--panel, #fff);border-radius:10px}.pb-dialog label{display:flex;flex-direction:column;gap:3px;font-size:.85rem}.pb-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.pb-error{color:#c0392b;font-size:.85rem}.app-loading,.app-notfound{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:60vh;opacity:.85}.picker{max-width:560px;margin:40px auto}.picker-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}.picker-list button{width:100%;text-align:left;padding:10px 12px;cursor:pointer}.picker-empty{opacity:.7}.app-header{display:flex;align-items:center;gap:10px;padding:8px 16px;margin-bottom:16px;border-bottom:1px solid #e5e7eb;background:#fff}.app-header-brand{font-weight:600;font-size:1rem;letter-spacing:.01em;background:none;border:0;padding:0;color:inherit;cursor:pointer}.app-header-brand:hover{text-decoration:underline}.app-header-switch{max-width:320px;padding:6px 10px;margin-left:4px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-size:.85rem;cursor:pointer}[data-theme=dark] .app-header-switch{background:#1f2228;color:#d1d5db;border-color:#2c3038}.app-header-spacer{flex:1 1 auto}.app-header-user{font-size:.85rem;opacity:.75;white-space:nowrap}.app-header-sync{font-size:.8rem;opacity:.8;white-space:nowrap}.app-header-btn{padding:6px 14px;background:transparent;color:inherit;border:1px solid #d1d5db;border-radius:6px;font-size:.85rem;cursor:pointer}.app-header-btn:hover{background:#f3f4f6}.app-header-btn.active{border-color:#4f46e5;color:#4f46e5;font-weight:600}[data-theme=dark] .app-header-btn.active{border-color:#6366f1;color:#a5b4fc}.app-header-icon{width:34px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:6px;font-size:1rem;cursor:pointer;line-height:1}.app-header-icon:hover:not(:disabled){background:#f3f4f6}.app-header-icon:disabled{opacity:.45;cursor:default}[data-theme=dark] .app-header{background:#16181d;border-bottom-color:#2c3038}[data-theme=dark] .app-header-btn{border-color:#2c3038}[data-theme=dark] .app-header-btn:hover,[data-theme=dark] .app-header-icon:hover:not(:disabled){background:#1f2228}.overview{max-width:1000px;margin:0 auto;padding:0 16px 40px}.overview-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px}.overview-title{font-size:1.4rem;margin:0}.overview-spacer{flex:1 1 auto}.overview-search{padding:7px 10px;min-width:200px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;font-size:.9rem}.overview-table{width:100%;border-collapse:collapse;font-size:.9rem}.overview-table th{text-align:left;padding:8px 10px;border-bottom:2px solid #e5e7eb;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;color:#374151}.overview-table th.num{text-align:right}.overview-table th.sorted{color:#2563eb}.sort-caret{font-size:.7rem}.overview-table td{padding:8px 10px;border-bottom:1px solid #eef0f2}.overview-table td.num{text-align:right;font-variant-numeric:tabular-nums}.overview-table td.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.overview-updated{color:#6b7280;white-space:nowrap}.overview-row{cursor:pointer}.overview-row:hover{background:#f9fafb}.overview-row:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.overview-actions{text-align:right;width:1%}.overview-empty td{text-align:center;color:#6b7280;padding:24px}[data-theme=dark] .overview-search{background:#1f2228;color:#d1d5db;border-color:#2c3038}[data-theme=dark] .overview-table th{border-bottom-color:#2c3038;color:#d1d5db}[data-theme=dark] .overview-table th.sorted{color:#6ea0ff}[data-theme=dark] .overview-table td{border-bottom-color:#23262d}.history-panel{position:fixed;top:0;right:0;bottom:0;width:360px;max-width:92vw;background:#fff;color:#111;border-left:1px solid #e0e0e4;box-shadow:-8px 0 24px #0000001f;display:flex;flex-direction:column;z-index:50}.history-panel-head{display:flex;align-items:center;justify-content:space-between;padding:.6rem .8rem;border-bottom:1px solid #e0e0e4}.history-panel-title{font-weight:600}.history-panel-close{border:0;background:none;color:inherit;cursor:pointer;font-size:1rem}.history-panel-body{overflow-y:auto;padding:.4rem .6rem}.history-empty{color:#6b7280;padding:1rem .2rem}.history-entry{border-bottom:1px solid #ececef;padding:.4rem 0}.history-entry-head{display:flex;align-items:baseline;gap:.4rem;width:100%;border:0;background:none;color:inherit;cursor:pointer;text-align:left;padding:.1rem 0}.history-entry-event{font-weight:600}.history-entry-meta{color:#6b7280;font-size:.8rem}.history-entry-caret{margin-left:auto;color:#6b7280}.history-entry-summary{font-size:.85rem;color:#333;margin:.1rem 0 .2rem}.history-diff{margin:.2rem 0 .2rem 1rem;font-size:.8rem}.history-diff code{background:#f4f4f4;padding:0 .2rem;border-radius:3px}[data-theme=dark] .history-panel{background:#1f2228;color:#eaeaea;border-left-color:#2c3038}[data-theme=dark] .history-panel-head{border-bottom-color:#2c3038}[data-theme=dark] .history-empty{color:#9ca3af}[data-theme=dark] .history-entry{border-bottom-color:#2c3038}[data-theme=dark] .history-entry-meta,[data-theme=dark] .history-entry-caret{color:#9ca3af}[data-theme=dark] .history-entry-summary{color:#cbd1d9}[data-theme=dark] .history-diff code{background:#16181d}[data-theme=dark] .overview-row:hover{background:#1b1e24}.settings-page{padding:0 16px 24px}.settings-tabs{display:flex;gap:6px;margin-bottom:12px;border-bottom:1px solid var(--border, #e5e7eb)}.settings-tabs button{padding:8px 14px;border:none;background:transparent;cursor:pointer;font-size:.95rem;color:#6b7280;border-bottom:2px solid transparent;margin-bottom:-1px}.settings-tabs button:hover{color:#374151}.settings-tabs button.active{color:#111827;font-weight:600;border-bottom-color:#4f46e5}[data-theme=dark] .settings-tabs button{color:#9ca3af}[data-theme=dark] .settings-tabs button.active{color:#eaeaea;border-bottom-color:#6366f1}.users-admin{max-width:820px}.users-create{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 18px}.users-create input{width:auto;flex:0 1 200px}.users-create select{width:auto;flex:0 0 130px}.users-create button,.users-actions button{width:auto;flex:0 0 auto;padding:6px 12px;cursor:pointer}.users-table{width:100%;border-collapse:collapse;font-size:.9rem}.users-table th,.users-table td{text-align:left;padding:6px 10px;border-bottom:1px solid var(--border, #e5e7eb)}.users-table th{font-weight:600;color:#6b7280}.users-table td select{width:auto;min-width:110px}.users-actions{display:flex;gap:6px}.users-inactive{opacity:.55}.users-error{color:#b91c1c;margin:6px 0;font-size:.9rem}[data-theme=dark] .users-table th{color:#9ca3af}[data-theme=dark] .users-error{color:#f87171}.rev-badge{font-size:12px;font-weight:600;padding:2px 10px;border-radius:10px;white-space:nowrap}.rev-draft{background:#e5e7eb;color:#374151}.rev-clean{background:#dcfce7;color:#166534}.rev-modified{background:#fef3c7;color:#92400e}.rev-release-btn:disabled{opacity:.5;cursor:not-allowed}.history-tabs{display:flex;gap:4px;padding:6px 10px;border-bottom:1px solid var(--border, #e5e7eb)}.history-tabs button{flex:1;padding:4px 8px;font-size:13px;background:transparent;border:none;cursor:pointer;border-radius:6px}.history-tabs button.active{background:var(--accent-soft, #eef2ff);font-weight:600}.rev-row .rev-actions{display:flex;gap:8px;margin-top:6px}.rev-row .rev-actions button{font-size:12px;padding:2px 10px;cursor:pointer}.drw-codes{position:relative;min-width:200px}.drw-codes-box{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-height:30px;padding:4px 8px;border-radius:5px;cursor:pointer;background:#fff;color:#111;border:1px solid #d1d5db}.drw-codes-box.disabled{cursor:default;padding:4px 0;border:none;background:transparent}.drw-codes-caret{margin-left:auto;opacity:.55}.drw-codes-ph{opacity:.55}.drw-codes-chip{display:inline-flex;gap:4px;align-items:center;padding:1px 7px;border-radius:10px;font-size:.8rem;white-space:nowrap;background:#eef2ff;color:#1e3a8a;border:1px solid #c7d2fe}.drw-codes-chip button{border:none;background:none;padding:0;margin:0;cursor:pointer;color:inherit;font-size:.85em;line-height:1}.drw-codes-menu{position:absolute;z-index:30;top:100%;left:0;min-width:100%;max-height:240px;overflow-y:auto;margin-top:2px;border-radius:5px;background:#fff;color:#111;border:1px solid #ccc;box-shadow:0 4px 12px #0000002e}.drw-codes-menu label{display:flex;gap:6px;align-items:center;padding:4px 8px;white-space:nowrap;cursor:pointer}.drw-codes-menu label:hover{background:#7f7f7f1f}[data-theme=dark] .drw-codes-box{background:#16181d;color:#eaeaea;border-color:#2c3038}[data-theme=dark] .drw-codes-chip{background:#16294d;color:#93b8ff;border-color:#244277}[data-theme=dark] .drw-codes-menu{background:#1f2228;color:#eaeaea;border-color:#2c3038}
