/* ====== DESIGN TOKENS (auf :root -> überall verfügbar; pro Theme via .app[data-theme] überschrieben) ====== */
:root{
  --paper:#EEF2F4; --surface:#FFFFFF; --surface-2:#F4F7F8;
  --line:#DCE3E7; --line-soft:#E7ECEF;
  --ink:#12242F; --muted:#5D707C; --faint:#8B9AA3;
  --shadow:0 1px 2px rgba(18,36,47,.04),0 4px 14px rgba(18,36,47,.05);
  --card-hover:0 3px 18px rgba(11,122,140,.13);
  --accent:#0B7A8C; --accent-deep:#095E6C; --accent-soft:#E1F0F1;
  --rail-bg:#FFFFFF; --rail-txt:#5D707C; --rail-active-bg:#E1F0F1; --rail-active-txt:#095E6C; --rail-border:#DCE3E7; --rail-group:#9CACB5;
  --grey:#9AAAB4; --amber:#B77A1E; --green:#2E9E6B; --red:#D64536; --info:#3B82C4;
  --grey-bg:#EAEFF1; --amber-bg:#FBF0DC; --green-bg:#E2F1E9; --red-bg:#F8E2DE; --info-bg:#E4EEF6;
  --p-service-bg:#E1F0F1; --p-service-tx:#095E6C;
  --p-neubau-bg:#E5EDF7;  --p-neubau-tx:#2F6595;
  --p-garantie-bg:#EFE4F2;--p-garantie-tx:#7A4D8A;
  --intern-bg:#EFE7D6; --intern-tx:#8A7327;
}
.app[data-theme="nacht"]{
  --paper:#0E1A21; --surface:#17272F; --surface-2:#1E313A;
  --line:#2A3F49; --line-soft:#22343D;
  --ink:#E8EFF2; --muted:#9FB2BC; --faint:#6C808C;
  --shadow:0 1px 2px rgba(0,0,0,.25),0 6px 18px rgba(0,0,0,.28);
  --card-hover:0 3px 20px rgba(38,165,181,.22);
  --accent:#28A9B9; --accent-deep:#63C8D5; --accent-soft:#123840;
  --rail-bg:#0B151B; --rail-txt:#8DA1AC; --rail-active-bg:#123840; --rail-active-txt:#7FD6E1; --rail-border:#213139; --rail-group:#55707C;
  --grey:#7C909B; --amber:#D9A24C; --green:#47B27E; --red:#E36A5B; --info:#5B9BD6;
  --grey-bg:#24343D; --amber-bg:#372C19; --green-bg:#173529; --red-bg:#39201D; --info-bg:#1B2F3E;
  --p-service-bg:#123840; --p-service-tx:#7FD6E1;
  --p-neubau-bg:#1C2F42; --p-neubau-tx:#8FB6DE;
  --p-garantie-bg:#2E2138;--p-garantie-tx:#C79BD6;
  --intern-bg:#33301E; --intern-tx:#DAC684;
}
.app[data-theme="see"]{
  --paper:#EDF1F5; --surface:#FFFFFF; --surface-2:#F2F6FA;
  --line:#D9E1EA; --line-soft:#E6ECF2; --ink:#14212E;
  --accent:#1E5F8C; --accent-deep:#164A6E; --accent-soft:#E2EAF3;
  --rail-active-bg:#E2EAF3; --rail-active-txt:#164A6E;
  --p-service-bg:#E2EAF3; --p-service-tx:#164A6E;
  --card-hover:0 3px 18px rgba(30,95,140,.15);
}

*{box-sizing:border-box}
html,body{margin:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; background:var(--paper,#EEF2F4)}
:root{--mono:ui-monospace,"SF Mono","SFMono-Regular","Roboto Mono",Menlo,Consolas,monospace}
.app{color:var(--ink); background:var(--paper); display:grid; grid-template-columns:216px 1fr; min-height:100vh; font-size:14px; line-height:1.45; -webkit-font-smoothing:antialiased}
b{font-weight:650}
button{font-family:inherit; color:inherit; cursor:pointer}
a{color:var(--accent-deep)}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}

/* ---------- Rail ---------- */
.rail{background:var(--rail-bg); color:var(--rail-txt); display:flex; flex-direction:column; padding:16px 12px; gap:3px; position:sticky; top:0; height:100vh; border-right:1px solid var(--rail-border); overflow-y:auto}
.brand{display:flex; align-items:center; gap:9px; padding:6px 8px 16px; color:var(--ink); font-weight:700; font-size:17px; letter-spacing:.2px}
.brand .anchor{width:26px; height:26px; display:grid; place-items:center; background:var(--accent); color:#fff; border-radius:8px; font-size:15px}
.nav-group{margin-top:14px; padding:0 8px 6px; font-family:var(--mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--rail-group)}
.nav-item{display:flex; align-items:center; gap:11px; padding:8px 10px; border-radius:8px; color:var(--rail-txt); font-size:13.5px; border:0; background:none; width:100%; text-align:left}
.nav-item:hover{background:var(--surface-2); color:var(--ink)}
.nav-item.active{background:var(--rail-active-bg); color:var(--rail-active-txt); font-weight:600; box-shadow:inset 3px 0 0 var(--accent)}
.nav-item .ic{width:17px; text-align:center; opacity:.9}
.rail-foot{margin-top:auto; padding-top:10px}

/* ---------- Topbar ---------- */
.main{display:flex; flex-direction:column; min-width:0}
.topbar{display:flex; align-items:center; gap:14px; padding:12px 26px; background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5}
.search{flex:1; max-width:520px; display:flex; align-items:center; gap:9px; background:var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:9px 13px; color:var(--faint)}
.search kbd{margin-left:auto; font-family:var(--mono); font-size:11px; background:var(--surface); border:1px solid var(--line); border-bottom-width:2px; border-radius:5px; padding:1px 6px; color:var(--muted)}
.spacer{flex:1}
.icon-btn{width:36px; height:36px; border-radius:9px; border:1px solid var(--line); background:var(--surface); color:var(--muted); display:grid; place-items:center; font-size:15px}
.icon-btn:hover{border-color:var(--accent); color:var(--accent-deep)}
.avatar{width:34px; height:34px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font-weight:650; font-size:13px}

.view{padding:22px 26px 60px}
.page-head{display:flex; align-items:center; gap:14px}
.page-head h1{font-size:22px; margin:0; letter-spacing:-.01em}
.btn{border:1px solid var(--line); background:var(--surface); border-radius:9px; padding:8px 13px; font-size:13px; font-weight:550; display:inline-flex; align-items:center; gap:7px; color:var(--ink)}
.btn:hover{border-color:var(--accent); color:var(--accent-deep)}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.primary:hover{background:var(--accent-deep)}
.btn.ghost{background:none}
.btn.danger:hover{border-color:var(--red); color:var(--red)}
.toolbar2{display:flex; align-items:center; gap:14px; margin:16px 0 12px; flex-wrap:wrap}
.selwrap{display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted)}
.sel{border:1px solid var(--line); background:var(--surface); border-radius:8px; padding:6px 10px; font-size:12.5px; color:var(--ink)}
.summary{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px}
.s-chip{font-size:12px; padding:4px 10px; border-radius:20px; font-weight:600}
.summary .muted{color:var(--faint); font-size:12.5px; margin-left:4px}
.legend{font-size:12px; color:var(--muted); margin:0 0 14px; display:flex; align-items:center; gap:7px}
.legend .sp{font-family:var(--mono); color:var(--accent-deep); background:var(--accent-soft); border-radius:6px; padding:1px 6px}
.empty{color:var(--faint); text-align:center; padding:40px; font-size:13.5px}

/* ---------- Board ---------- */
.board-scroll{overflow-x:auto; padding-bottom:14px; margin:0 -26px; padding-left:26px; padding-right:26px}
.board{display:flex; gap:16px; align-items:flex-start; min-width:min-content}
.col{width:288px; flex:0 0 288px; display:flex; flex-direction:column; gap:11px}
.col-head{display:flex; align-items:center; gap:9px; padding:2px 4px 0}
.col-head .badge{width:8px; height:8px; border-radius:50%}
.col-head h3{margin:0; font-size:13px; font-weight:650}
.col-head .cnt{font-family:var(--mono); font-size:11.5px; color:var(--faint)}
.col-empty{border:1.5px dashed var(--line); border-radius:12px; padding:18px; text-align:center; color:var(--faint); font-size:12.5px}
.archmore{margin-top:4px; width:100%; justify-content:center}

/* ---------- Kachel ---------- */
.pcard{position:relative; text-align:left; width:100%; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:12px; box-shadow:var(--shadow); transition:border-color .14s, transform .05s, box-shadow .14s}
.pcard:hover{border-color:var(--accent); box-shadow:var(--card-hover)}
.pcard:active{transform:translateY(1px)}
.pcard.near{border-color:var(--amber)}
.pcard.over{border-color:var(--red); background:linear-gradient(180deg,var(--red-bg),var(--surface) 26px)}
.pcard-news{position:absolute; top:12px; right:13px; width:9px; height:9px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.split-tag{position:absolute; top:0; right:0; font-family:var(--mono); font-size:9.5px; letter-spacing:.06em; background:var(--accent-soft); color:var(--accent-deep); padding:3px 8px; border-bottom-left-radius:8px; border-top-right-radius:12px; border-left:1px solid var(--line); border-bottom:1px solid var(--line)}
.pcard-top{display:flex; align-items:flex-start; gap:13px}
.ring{--p:0; --c:var(--grey); position:relative; width:52px; height:52px; flex:0 0 52px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(var(--c) calc(var(--p)*1%), var(--grey-bg) 0)}
.ring::before{content:""; position:absolute; width:40px; height:40px; border-radius:50%; background:var(--surface)}
.ring span{position:relative; font-family:var(--mono); font-size:12px; font-weight:600; letter-spacing:-.02em}
.pcard-head{min-width:0; flex:1; padding-right:16px}
.pcard-title{font-weight:680; font-size:14.5px; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pcard-name{font-size:13px; color:var(--ink); margin-top:1px}
.pcard-sub{font-family:var(--mono); font-size:10.5px; letter-spacing:.03em; text-transform:uppercase; color:var(--faint); margin-top:3px}
.pcard-lead{font-size:12px; color:var(--muted); margin-top:5px}
.pcard-lead .vt{color:var(--faint)}
.pcard-abnahme{display:inline-flex; align-items:center; gap:4px; margin-top:7px; font-size:11.5px; font-weight:650; color:var(--amber); background:var(--amber-bg); border:1px solid var(--amber); border-radius:7px; padding:3px 8px; width:fit-content}
.pcard-mid{display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.chip{font-size:11.5px; color:var(--muted); background:var(--surface-2); border:1px solid var(--line-soft); border-radius:7px; padding:3px 8px}
.chip b{color:var(--ink); font-variant-numeric:tabular-nums}
.chip.warn b{color:var(--red)}
.chip.intern{background:var(--intern-bg); border-color:var(--intern-bg); color:var(--intern-tx); font-weight:600}
.pill{font-size:11px; font-weight:650; letter-spacing:.02em; padding:3px 9px; border-radius:7px}
.pill-service{background:var(--p-service-bg); color:var(--p-service-tx)}
.pill-neubau{background:var(--p-neubau-bg); color:var(--p-neubau-tx)}
.pill-garantie{background:var(--p-garantie-bg); color:var(--p-garantie-tx)}
.pcard-tasks{display:flex; flex-direction:column; gap:5px; border-top:1px solid var(--line-soft); padding-top:10px}
.ptask{display:flex; align-items:center; gap:9px; font-size:12.5px}
.ptask .dot{width:9px; height:9px; border-radius:50%; flex:0 0 9px}
.d-grey{background:var(--grey)} .d-amber{background:var(--amber)} .d-green{background:var(--green)} .d-red{background:var(--red)}
.ptask .tt{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.ptask .tt.done{text-decoration:line-through; color:var(--faint)}
.ptask.more{color:var(--faint); font-size:11.5px; padding-left:18px}
.pcard-pause{display:flex; align-items:center; gap:6px; font-size:11.5px; color:var(--muted); background:var(--surface-2); border:1px dashed var(--line); border-radius:7px; padding:4px 9px; width:fit-content}
.pcard-pause.due{color:var(--amber); border-color:var(--amber); background:var(--amber-bg); font-weight:600; border-style:solid}

/* ---------- Detail ---------- */
.backlink{border:0; background:none; color:var(--accent-deep); font-weight:600; font-size:13px; padding:0; margin-bottom:14px}
.detail-head{display:flex; align-items:flex-start; gap:16px; flex-wrap:wrap}
.detail-head h1{font-size:22px; margin:0 0 3px}
.detail-sub{color:var(--muted); font-size:13px}
.detail-sub a{font-weight:600; text-decoration:none; cursor:pointer}
.detail-actions{display:flex; gap:8px; flex-wrap:wrap}
.flowbar{display:flex; flex-direction:column; align-items:center; gap:13px; margin:20px 0}
.flow{display:flex; align-items:center; gap:6px; margin:0; padding:12px 14px; width:100%; background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow-x:auto}
.flow .nav-btn{flex:0 0 auto; width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:var(--surface); display:grid; place-items:center; color:var(--muted); font-size:15px}
.flow .nav-btn:hover{border-color:var(--accent); color:var(--accent-deep)}
.flow-track{display:flex; align-items:center; justify-content:center; gap:5px; flex:1; min-width:min-content}
.stage{font-size:11.5px; padding:6px 11px; border-radius:20px; white-space:nowrap; color:var(--faint); background:var(--surface-2); border:1px solid var(--line-soft); font-weight:550}
.stage.done{color:var(--muted); background:var(--surface)}
.stage.cur{color:#fff; background:var(--accent); border-color:var(--accent); font-weight:650}
.stage-arrow{color:var(--faint); font-size:11px}
.nextstep{font-size:14px; font-weight:650; padding:11px 26px; border-radius:11px; box-shadow:0 2px 10px var(--accent-soft)}
.nextstep .ns-arrow{font-weight:700; margin-left:2px}
.nextstep-done{font-size:12.5px; color:var(--green, #3a9d5d); font-weight:600}
/* Kalkulations-/Popup-Zeilen */
.calc-list{display:flex; flex-direction:column; gap:7px; margin:4px 0 10px}
.calc-row{display:flex; align-items:center; gap:8px}
.calc-row .calc-t{flex:1; font-size:13px; color:var(--ink); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.calc-row .calc-h{width:90px; flex:0 0 auto}
.calc-del{flex:0 0 auto; width:28px; height:28px; border-radius:7px; border:1px solid var(--line); background:var(--surface); color:var(--faint); cursor:pointer}
.calc-del:hover{border-color:var(--red, #d05); color:var(--red, #d05)}
.calc-add{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:4px}
.calc-add input{flex:1; min-width:120px}
.calc-add .btn{flex:0 0 auto}
.calc-sum{margin-top:12px; text-align:right; font-size:13px; color:var(--muted)}
.calc-sum b{color:var(--ink); font-size:15px}
/* Beauftragen-Liste */
.colist{display:flex; flex-direction:column; gap:8px}
.rowline{display:flex; align-items:center; gap:10px}
.chkinline{display:flex; align-items:center; gap:8px; font-size:13px; cursor:pointer}
.chkinline.grow{flex:1; min-width:0}
.rowline .cono{width:140px; flex:0 0 auto}
.prog-wrap{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin-bottom:14px}
.prog-top{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:8px}
.prog-top .lbl{font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.prog-top .pct{font-size:24px; font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:-.02em}
.bar{height:9px; border-radius:6px; background:var(--grey-bg); overflow:hidden}
.bar>span{display:block; height:100%; border-radius:6px; background:var(--accent)}
.prog-note{margin-top:9px; font-size:12.5px; color:var(--muted)}
.prog-note .warn{color:var(--amber); font-weight:600}
.stats{display:flex; gap:22px; flex-wrap:wrap; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:15px 18px; margin-bottom:14px; align-items:center}
.stat .k{font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint)}
.stat .v{font-size:15px; font-weight:600; margin-top:2px; font-variant-numeric:tabular-nums}
.stat .v.small{font-size:13.5px; font-weight:550}
.stat-div{width:1px; align-self:stretch; background:var(--line)}
.notes-field{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin-bottom:18px}
.notes-field .k{font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint); display:block; margin-bottom:6px}
.notes-field p{margin:0; color:var(--muted); font-size:13px}
.tabs{display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom:14px; flex-wrap:wrap}
.tab{padding:10px 15px; font-size:13.5px; font-weight:600; color:var(--muted); border:0; background:none; border-bottom:2px solid transparent; margin-bottom:-1px; display:flex; align-items:center; gap:7px}
.tab .n{font-family:var(--mono); font-size:11px; color:var(--faint); background:var(--surface-2); border-radius:10px; padding:0 7px}
.tab.active{color:var(--ink); border-bottom-color:var(--accent)}
.tab.active .n{color:var(--accent-deep); background:var(--accent-soft)}
.split-note{display:flex; align-items:flex-start; gap:9px; font-size:12.5px; color:var(--muted); background:var(--accent-soft); border:1px solid var(--line); border-radius:9px; padding:9px 12px; margin-bottom:14px}
.split-note b{color:var(--accent-deep)}
.tasklist{display:flex; flex-direction:column; gap:10px}
.trow{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:13px 15px; box-shadow:var(--shadow)}
.trow-main{display:flex; align-items:flex-start; gap:13px}
.chk{width:19px; height:19px; flex:0 0 19px; margin-top:2px; border:1.5px solid var(--line); border-radius:6px; background:var(--surface); display:grid; place-items:center; color:#fff; font-size:12px}
.chk.on{background:var(--green); border-color:var(--green)}
.trow-body{flex:1; min-width:0}
.trow-title{font-weight:640; font-size:14px}
.trow-title.done{text-decoration:line-through; color:var(--faint)}
.trow-meta{font-size:12px; color:var(--faint); margin-top:2px}
.assignees{display:flex; gap:5px; flex-wrap:wrap; margin-top:8px}
.who{font-size:11.5px; color:var(--muted); background:var(--surface-2); border:1px solid var(--line-soft); border-radius:20px; padding:2px 9px}
.tbars{margin-top:11px; display:flex; flex-direction:column; gap:7px; max-width:520px}
.tbar{display:flex; align-items:center; gap:10px}
.tbar .tag{font-family:var(--mono); font-size:9.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); width:78px; flex:0 0 78px}
.tbar .bar{flex:1; height:7px}
.tbar .val{font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; width:60px; text-align:right; flex:0 0 60px}
.hbar>span{background:var(--green)}
.hbar.over>span{background:var(--red)}
.tstate{margin-left:auto; align-self:flex-start; font-size:11px; font-weight:650; padding:3px 10px; border-radius:20px}
.st-arbeit{background:var(--info-bg); color:var(--info)}
.st-offen{background:var(--grey-bg); color:var(--muted)}
.st-fertig{background:var(--green-bg); color:var(--green)}
.st-stuck{background:var(--red-bg); color:var(--red)}
.plan-btn{font-size:11.5px; padding:5px 11px; border-radius:8px; border:1px solid var(--line); background:var(--surface); color:var(--muted); align-self:flex-start}
.trow-right{display:flex; align-items:center; gap:9px; margin-left:9px}
.expand{color:var(--faint); background:none; border:0; font-size:14px}
.texp{margin-top:13px; padding-top:13px; border-top:1px dashed var(--line); display:flex; flex-direction:column; gap:12px}
.subhead{font-family:var(--mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint)}
.subrow{display:flex; align-items:center; gap:9px; font-size:12.5px; padding:3px 0}
.subrow .box{width:15px; height:15px; border:1.4px solid var(--line); border-radius:4px; background:var(--surface); flex:0 0 15px; display:grid; place-items:center; color:#fff; font-size:10px}
.subrow .box.on{background:var(--green); border-color:var(--green)}
.subrow .done{text-decoration:line-through; color:var(--faint)}

/* ---------- Einstellungen ---------- */
.set-layout{display:grid; grid-template-columns:200px 1fr; gap:24px; margin-top:18px; align-items:start}
.set-nav{display:flex; flex-direction:column; gap:2px; position:sticky; top:78px}
.set-nav button{text-align:left; border:0; background:none; padding:9px 12px; border-radius:8px; font-size:13.5px; color:var(--muted); font-weight:550}
.set-nav button:hover{background:var(--surface-2); color:var(--ink)}
.set-nav button.on{background:var(--accent-soft); color:var(--accent-deep); font-weight:650}
.set-panel{display:none}
.set-panel.on{display:block}
.set-group{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:20px 22px; margin-bottom:16px; box-shadow:var(--shadow)}
.set-group h3{margin:0 0 3px; font-size:15px}
.set-group .desc{margin:0 0 16px; font-size:12.5px; color:var(--muted)}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:16px; max-width:440px}
.field:last-child{margin-bottom:0}
.field label{font-size:12.5px; font-weight:600; color:var(--ink)}
.field .hint{font-size:11.5px; color:var(--faint)}
.field input, .field select, .field textarea{border:1px solid var(--line); border-radius:9px; padding:9px 12px; font-size:13px; font-family:inherit; background:var(--surface); color:var(--ink)}
.field textarea{resize:vertical; min-height:120px; line-height:1.5}
.theme-cards{display:flex; gap:12px; flex-wrap:wrap}
.theme-card{border:1.5px solid var(--line); border-radius:12px; padding:12px; background:var(--surface); width:150px; text-align:left; display:flex; flex-direction:column; gap:9px}
.theme-card:hover{border-color:var(--accent)}
.theme-card.on{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.theme-swatch{height:44px; border-radius:8px; display:flex; overflow:hidden; border:1px solid rgba(0,0,0,.08)}
.theme-swatch span{flex:1}
.theme-card .tc-name{display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:650}
.theme-card .tc-check{color:var(--accent); font-weight:700}
.saved-hint{font-size:12px; color:var(--green); margin-left:10px}

/* ---------- Platzhalter ---------- */
.placeholder{max-width:560px; margin:40px auto; text-align:center; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:40px 32px; box-shadow:var(--shadow)}
.placeholder .ph-ic{width:52px; height:52px; margin:0 auto 16px; border-radius:13px; background:var(--accent-soft); color:var(--accent-deep); display:grid; place-items:center; font-size:23px}
.placeholder h2{margin:0 0 8px; font-size:19px}
.placeholder p{margin:0 auto; font-size:13.5px; color:var(--muted); max-width:420px; line-height:1.6}
.placeholder .ph-tag{display:inline-block; margin-top:16px; font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent-deep); background:var(--accent-soft); border-radius:7px; padding:5px 11px}

/* ---------- Login ---------- */
.login-wrap{min-height:100vh; display:grid; place-items:center; background:var(--paper); padding:24px}
.login-card{width:100%; max-width:380px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:32px 30px; box-shadow:var(--shadow)}
.login-brand{display:flex; align-items:center; gap:10px; font-weight:700; font-size:20px; margin-bottom:4px}
.login-brand .anchor{width:30px; height:30px; display:grid; place-items:center; background:var(--accent); color:#fff; border-radius:9px; font-size:17px}
.login-sub{color:var(--muted); font-size:13px; margin-bottom:22px}
.login-card .field{max-width:none}
.login-err{color:var(--red); font-size:12.5px; margin-top:-6px; margin-bottom:12px; min-height:16px}
.login-card .btn.primary{width:100%; justify-content:center; padding:11px}

/* ---------- Loading ---------- */
.loading{display:grid; place-items:center; min-height:60vh; color:var(--faint)}
.spinner{width:26px; height:26px; border:3px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){ .spinner{animation:none} }

/* ---------- Generische Komponenten (alle Seiten) ---------- */
.toolbar{display:flex; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap}
.toolbar h2{margin:0; font-size:20px; letter-spacing:-.01em}
.card{background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow)}
.list{display:flex; flex-direction:column; gap:8px}
.lrow{display:flex; align-items:center; gap:13px; background:var(--surface); border:1px solid var(--line); border-radius:11px; padding:12px 15px; box-shadow:var(--shadow); text-align:left; width:100%}
.lrow.clickable{cursor:pointer; transition:border-color .14s, box-shadow .14s}
.lrow.clickable:hover{border-color:var(--accent); box-shadow:var(--card-hover)}
.lrow .lr-main{flex:1; min-width:0}
.lrow .lr-title{font-weight:640; font-size:14px}
.lrow .lr-sub{font-size:12px; color:var(--muted); margin-top:2px}
.lrow .lr-trail{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12.5px; margin-left:auto}
.avatar-sm{width:34px; height:34px; border-radius:9px; background:var(--accent-soft); color:var(--accent-deep); display:grid; place-items:center; font-weight:650; font-size:14px; flex:0 0 34px}
.group-head{display:flex; align-items:center; justify-content:space-between; margin:18px 0 8px; font-weight:650; font-size:13px}
.group-head .cnt{font-family:var(--mono); font-size:11.5px; color:var(--faint); font-weight:400}
.kv{display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px 22px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; box-shadow:var(--shadow); margin-bottom:14px}
.kv>div{display:flex; flex-direction:column; gap:2px; min-width:0}
.kv span{font-family:var(--mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint)}
.kv b{font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis}
.table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:var(--shadow)}
.data-table{width:100%; border-collapse:collapse; font-size:13px}
.data-table th{font-family:var(--mono); font-size:10px; letter-spacing:.05em; text-transform:uppercase; color:var(--faint); text-align:left; padding:11px 13px; border-bottom:1px solid var(--line); white-space:nowrap; background:var(--surface)}
.data-table td{padding:10px 13px; border-bottom:1px solid var(--line-soft); white-space:nowrap; font-variant-numeric:tabular-nums}
.data-table tr:last-child td{border-bottom:0}
.data-table .sticky-col{position:sticky; left:0; background:var(--surface); font-weight:600; z-index:1}
.data-table td.cell-on{background:var(--green-bg)} .data-table td.cell-off{background:var(--surface-2)}
.stat-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px}
.stat-tile{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; box-shadow:var(--shadow)}
.stat-tile .st-k{font-family:var(--mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint)}
.stat-tile .st-v{font-size:26px; font-weight:700; margin-top:6px; letter-spacing:-.02em; font-variant-numeric:tabular-nums}
.stat-tile .st-sub{font-size:12px; color:var(--muted); margin-top:3px}
.cal-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:6px}
.cal-dow{font-family:var(--mono); font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--faint); text-align:center; padding:4px}
.cal-cell{min-height:94px; background:var(--surface); border:1px solid var(--line); border-radius:9px; padding:7px 8px; font-size:12px; display:flex; flex-direction:column; gap:3px}
.cal-cell.out{background:var(--surface-2); color:var(--faint)}
.cal-cell.today{border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent)}
.cal-cell .cal-d{font-weight:650; font-size:12px; font-variant-numeric:tabular-nums}
.cal-ev{font-size:10.5px; padding:1px 5px; border-radius:5px; background:var(--accent-soft); color:var(--accent-deep); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.badge2{font-size:11px; font-weight:600; padding:2px 8px; border-radius:20px; background:var(--surface-2); color:var(--muted); border:1px solid var(--line-soft)}
.filterbar{display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:14px}
.subtabs{display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap}
.subtab{font-size:12.5px; font-weight:600; color:var(--muted); background:var(--surface-2); border:1px solid var(--line); border-radius:20px; padding:5px 13px}
.subtab.on{background:var(--accent); border-color:var(--accent); color:#fff}
.row-between{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
.cl-items{margin:11px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:3px; font-size:13px; color:var(--ink)}
.cl-items li{padding:1px 0}
.cl-empty-note{font-size:12px; color:var(--faint); margin-top:8px}

/* ======================= SHELL v2 (Icons/Topbar/Suche/User-Menü) ======================= */
/* Brand */
.brand{display:flex; align-items:center; gap:9px; padding:4px 8px 16px; border:0; background:none; width:100%; text-align:left; color:var(--ink); font-weight:700; font-size:17px; letter-spacing:.2px}
.brand .brand-logo{width:28px; height:28px; display:grid; place-items:center; color:var(--accent)}
.brand .logo-svg{width:24px; height:24px}
.brand .brand-name{font-weight:700}
.brand:hover{color:var(--accent-deep)}
/* Sidebar-Icons kräftiger + Labels bolder */
.nav-item{font-weight:560; gap:12px; padding:9px 11px}
.nav-item .ic{width:20px; height:20px; display:grid; place-items:center; opacity:1}
.nav-item .ic .ic-svg{width:19px; height:19px; display:block}
.nav-item .lbl{font-size:13.5px}
.nav-item:hover .ic{color:var(--ink)}
.nav-item.active{font-weight:650}
.nav-item.active .ic .ic-svg{stroke-width:2.4; color:var(--accent)}
.nav-group{font-weight:600}

/* Topbar: Suche zentriert, rechts nur Glocke + Avatar */
.topbar{position:relative; display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:11px 22px}
.topsearch{position:absolute; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:9px; width:min(46vw,480px); background:var(--surface-2); border:1px solid var(--line); border-radius:11px; padding:9px 13px; color:var(--faint); font-size:13px; cursor:text}
.topsearch:hover{border-color:var(--accent)}
.topsearch .ic-svg{width:16px; height:16px}
.topsearch span{flex:1; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.topsearch kbd{font-family:var(--mono); font-size:11px; background:var(--surface); border:1px solid var(--line); border-bottom-width:2px; border-radius:5px; padding:1px 7px; color:var(--muted)}
.topbar-right{display:flex; align-items:center; gap:10px}
.icon-btn .ic-svg{width:18px; height:18px}
.avatar{cursor:pointer; border:0}

/* Popover (User-Dropdown + Notif-Panel) */
.notifwrap, .usermenuwrap{position:relative}
.popover{position:absolute; top:calc(100% + 9px); right:0; min-width:236px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:0 12px 34px rgba(10,20,26,.22); padding:6px; display:none; z-index:30}
.popover.open{display:block; animation:pop .12s ease}
@keyframes pop{from{opacity:0; transform:translateY(-4px)}to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){ .popover.open{animation:none} }
.um-head{padding:8px 10px 10px; border-bottom:1px solid var(--line); margin-bottom:4px}
.um-name{display:block; font-weight:650; font-size:13.5px}
.um-role{font-size:11.5px; color:var(--muted)}
.um-group{font-family:var(--mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); padding:9px 10px 3px}
.um-item{display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:0; background:none; padding:8px 10px; border-radius:8px; font-size:13px; color:var(--ink)}
.um-item:hover{background:var(--surface-2)}
.um-item .ic-svg{width:16px; height:16px; color:var(--muted)}
.um-sep{height:1px; background:var(--line); margin:5px 4px}

/* Benachrichtigungen */
.bellbtn{position:relative}
.bell-badge{position:absolute; top:-3px; right:-3px; min-width:16px; height:16px; padding:0 4px; border-radius:9px; background:var(--red); color:#fff; font-size:10px; font-weight:700; display:grid; place-items:center; line-height:1}
.notifpanel{min-width:330px; padding:0; overflow:hidden}
.np-head{display:flex; align-items:center; justify-content:space-between; padding:11px 14px; border-bottom:1px solid var(--line)}
.np-title{font-weight:650; font-size:13.5px}
.np-readall{border:0; background:none; color:var(--accent-deep); font-size:12px; font-weight:600; cursor:pointer}
.np-empty{padding:24px; text-align:center; color:var(--faint); font-size:13px}
.np-list{max-height:min(60vh,420px); overflow:auto}
.np-item{display:flex; gap:8px; align-items:flex-start; padding:10px 14px; border-bottom:1px solid var(--line-soft)}
.np-item.unread{background:var(--accent-soft)}
.np-item[role="button"]{cursor:pointer}
.np-body{flex:1; min-width:0; display:flex; justify-content:space-between; gap:10px}
.np-ititle{font-weight:600; font-size:13px; display:block}
.np-isub{font-size:12px; color:var(--muted); display:block; margin-top:1px}
.np-time{font-size:11px; color:var(--faint); white-space:nowrap; flex:0 0 auto}
.np-x{border:0; background:none; color:var(--faint); font-size:17px; width:22px; height:22px; border-radius:6px; flex:0 0 auto}
.np-x:hover{background:var(--surface-2); color:var(--ink)}

/* Globale Suche (Command-Palette-Overlay) */
.gsearch-ov{position:fixed; inset:0; background:rgba(10,20,26,.5); z-index:60; padding:11vh 14px 0; display:flex; justify-content:center; align-items:flex-start}
.gsearch-ov[hidden]{display:none}
.gsearch-box{width:100%; max-width:560px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:14px; box-shadow:0 20px 60px rgba(10,20,26,.4); overflow:hidden}
.gsearch-inwrap{display:flex; align-items:center; gap:11px; padding:14px 16px; border-bottom:1px solid var(--line)}
.gsearch-mag{color:var(--faint); font-size:18px}
.gsearch-in{flex:1; border:0; outline:none; background:none; font-size:15px; color:var(--ink); font-family:inherit; min-height:auto; padding:0}
.gsearch-res{max-height:54vh; overflow:auto; padding:6px}
.gsearch-h{font-family:var(--mono); font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:var(--faint); padding:9px 10px 4px}
.gsearch-item{display:block; width:100%; text-align:left; border:0; background:none; padding:9px 11px; border-radius:8px; font-size:13.5px; color:var(--ink); cursor:pointer}
.gsearch-item:hover, .gsearch-item.gs-sel{background:var(--accent-soft)}
.gsearch-item .muted{color:var(--muted)}
.gsearch-hint{padding:14px; color:var(--faint); font-size:13px}
.lrow.dim{opacity:.6}

/* ---------- Projekt-Board: 2 Ansichten + Sprung ---------- */
.summary .s-chip.jump{display:inline-flex; align-items:center; gap:6px; background:var(--surface-2); color:var(--muted); border:1px solid var(--line); cursor:pointer}
.summary .s-chip.jump:hover{border-color:var(--accent); color:var(--ink)}
.summary .jdot{width:8px; height:8px; border-radius:50%}
.proj-stack{display:flex; flex-direction:column; gap:4px}
.psection-head{width:100%; text-align:left; background:var(--paper); border:0; border-bottom:1px solid var(--line); cursor:pointer; padding:10px 4px; display:flex; align-items:center; gap:9px; font-size:14px; font-weight:650; position:sticky; top:56px; z-index:4}
.psection-head:hover{color:var(--accent-deep)}
.psection-head .ps-arrow{color:var(--faint); width:13px; font-size:11px}
.psection-head .badge{width:8px; height:8px; border-radius:50%; flex:0 0 8px}
.psection-head .ps-name{color:var(--ink)}
.psection-head .ps-cnt{font-family:var(--mono); font-size:11.5px; color:var(--faint); font-weight:400}
.psection-body{padding:12px 0 10px 22px; position:relative}
.psection-body::before{content:""; position:absolute; left:6px; top:12px; bottom:10px; width:3px; border-radius:2px; background:var(--cat, var(--line)); opacity:.7}
.pgrid{display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:12px}
.col[data-projcol]{border-radius:12px; transition:box-shadow .2s, background .2s}
.col.col-jump{background:var(--surface-2); box-shadow:0 0 0 2px var(--accent)}
.psection.sec-jump>.psection-head{box-shadow:inset 0 0 0 2px var(--accent); border-radius:8px}
.archmore{margin-top:8px; width:100%; justify-content:center}

/* ---------- Modal ---------- */
.modal-ov{position:fixed; inset:0; background:rgba(10,20,26,.5); display:grid; place-items:center; z-index:50; padding:20px; animation:fade .12s ease}
@keyframes fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .modal-ov{animation:none} }
.modal{width:100%; max-width:480px; max-height:88vh; overflow:auto; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 50px rgba(10,20,26,.35)}
.modal-h{display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--line)}
.modal-h h3{margin:0; font-size:16px}
.modal-x{border:0; background:none; color:var(--faint); font-size:16px; width:30px; height:30px; border-radius:8px}
.modal-x:hover{background:var(--surface-2); color:var(--ink)}
.modal-b{padding:18px 20px; display:flex; flex-direction:column; gap:14px}
.modal-b label{font-size:12.5px; font-weight:600; color:var(--ink); display:block; margin-bottom:5px}
.modal-b input, .modal-b select, .modal-b textarea{width:100%; border:1px solid var(--line); border-radius:9px; padding:9px 12px; font-size:13px; font-family:inherit; background:var(--surface); color:var(--ink)}
.modal-b textarea{resize:vertical; min-height:72px; line-height:1.5}
.modal-b .row2{display:flex; gap:12px}
.modal-b .row2>*{flex:1}
.modal-b .chkline{display:flex; align-items:center; gap:8px; font-size:13px}
.modal-b .chkline input{width:auto}
.modal-b .mhint{font-size:11.5px; color:var(--faint); margin:0}
.modal-f{display:flex; justify-content:flex-end; gap:10px; padding:14px 20px; border-top:1px solid var(--line)}

.hidden{display:none}

/* ---- Projektkachel: Seitenfenster-Icon ---- */
.pcard-side{position:absolute; top:8px; right:8px; width:26px; height:26px; border-radius:7px; display:grid; place-items:center; color:var(--faint); background:var(--surface); border:1px solid transparent; opacity:0; transition:opacity .12s, color .12s, border-color .12s; z-index:2}
.pcard:hover .pcard-side{opacity:1}
.pcard-side:hover{color:var(--accent-deep); border-color:var(--line)}
.pcard-side .ic-svg{width:15px; height:15px}

/* ---- Rechtes Info-Seitenpanel (Peek-Drawer) ---- */
.rdrawer{position:fixed; top:0; right:0; height:100vh; width:min(420px,92vw); background:var(--paper); border-left:1px solid var(--line); box-shadow:-12px 0 34px rgba(0,0,0,.16); transform:translateX(100%); transition:transform .22s cubic-bezier(.4,0,.2,1); z-index:120; display:flex; flex-direction:column}
.rdrawer.open{transform:translateX(0)}
.rdrawer-p{display:flex; flex-direction:column; height:100%; min-height:0}
.rdrawer-h{flex:0 0 auto; display:flex; align-items:center; gap:10px; padding:16px 18px; border-bottom:1px solid var(--line)}
.rdrawer-h b{flex:1; font-size:16px; font-weight:700; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rdrawer-h .iconbtn{flex:0 0 auto; width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:var(--surface); color:var(--muted); cursor:pointer}
.rdrawer-h .iconbtn:hover{border-color:var(--accent); color:var(--accent-deep)}
.rdrawer-b{flex:1; min-height:0; overflow-y:auto; padding:16px 18px; display:flex; flex-direction:column; gap:14px}
.rd-full{width:100%; justify-content:center; display:inline-flex; align-items:center; gap:8px}
.rd-full-ic .ic-svg{width:16px; height:16px}
.rd-sub{font-size:12.5px; color:var(--muted); line-height:1.5}
.rd-chips{display:flex; flex-wrap:wrap; gap:6px}
.rd-chips .chip{font-size:11.5px; padding:4px 10px; border-radius:20px; background:var(--surface); border:1px solid var(--line); color:var(--muted)}
.rd-chips .chip.warn{border-color:var(--amber); color:var(--amber)}
.rd-prog{background:var(--surface); border:1px solid var(--line); border-radius:11px; padding:12px 14px}
.rd-prog-top{display:flex; justify-content:space-between; font-size:12px; color:var(--muted); margin-bottom:7px}
.rd-prog-top b{color:var(--ink); font-size:15px}
.rd-prog .bar{height:7px; background:var(--surface-2); border-radius:6px; overflow:hidden}
.rd-prog .bar span{display:block; height:100%; background:var(--accent); border-radius:6px}
.rd-prog-note{font-size:11.5px; color:var(--faint); margin-top:7px}
.rd-stats{display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px}
.rd-stat{background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:9px 10px}
.rd-stat .k{font-size:10px; text-transform:uppercase; letter-spacing:.5px; color:var(--faint)}
.rd-stat .v{font-size:13px; font-weight:600; color:var(--ink); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rd-notes .k{font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--faint); margin-bottom:4px}
.rd-notes p{margin:0; font-size:12.5px; color:var(--muted); line-height:1.55; white-space:pre-wrap}
.rd-tasks-h{font-size:12.5px; font-weight:650; color:var(--ink); display:flex; align-items:center; gap:8px; margin-top:2px}
.rd-tasks{display:flex; flex-direction:column; gap:2px}
.rd-task{display:flex; align-items:center; gap:9px; padding:7px 2px; border-bottom:1px solid var(--line-soft)}
.rd-task .dot{flex:0 0 auto; width:8px; height:8px; border-radius:50%}
.rd-tt{flex:1; font-size:12.5px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.rd-tt.done{color:var(--faint); text-decoration:line-through}
.rd-tp{flex:0 0 auto; font-size:11px; color:var(--faint); font-variant-numeric:tabular-nums}

/* ---- Dashboard ---- */
.dash-head{display:flex; align-items:flex-end; gap:14px; margin-bottom:18px}
.dash-head h1{font-size:22px; margin:0; letter-spacing:-.01em}
.dash-sub{font-size:12.5px; color:var(--muted); margin-top:3px}
.kpi-grid{display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-bottom:16px}
.kpi{display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px; box-shadow:var(--shadow)}
.kpi-ic{flex:0 0 auto; width:38px; height:38px; border-radius:10px; display:grid; place-items:center}
.kpi-ic .ic-svg{width:18px; height:18px}
.kpi-main{min-width:0}
.kpi-v{font-size:23px; font-weight:700; line-height:1; color:var(--ink)}
.kpi-k{font-size:12px; color:var(--muted); margin-top:5px; font-weight:550}
.kpi-sub{font-size:10.5px; color:var(--faint); margin-top:2px}
.dash-cols{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px}
.dash-card{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; box-shadow:var(--shadow)}
.dash-card.wide{grid-column:auto}
.dash-cols:first-of-type{grid-template-columns:1.4fr 1fr}
.dash-card-h{display:flex; align-items:center; gap:9px; margin-bottom:14px}
.dash-card-h h3{margin:0; font-size:14px; font-weight:650}
.dash-bars{display:flex; flex-direction:column; gap:9px}
.dash-bar{display:flex; align-items:center; gap:11px; background:none; border:0; padding:2px 0; width:100%; text-align:left}
.db-label{flex:0 0 92px; font-size:12px; color:var(--muted)}
.db-track{flex:1; height:9px; background:var(--surface-2); border-radius:6px; overflow:hidden}
.db-fill{display:block; height:100%; border-radius:6px; min-width:4px; transition:width .3s}
.db-val{flex:0 0 auto; font-size:12px; font-weight:650; color:var(--ink); font-variant-numeric:tabular-nums; min-width:20px; text-align:right}
.dash-bar:hover .db-label{color:var(--accent-deep)}
.donut-wrap{display:flex; align-items:center; gap:20px}
.donut{flex:0 0 auto; width:120px; height:120px; border-radius:50%; display:grid; place-items:center}
.donut-hole{width:76px; height:76px; border-radius:50%; background:var(--surface); display:grid; place-items:center; text-align:center}
.donut-hole b{font-size:22px; font-weight:700; color:var(--ink); line-height:1}
.donut-hole span{font-size:10px; color:var(--faint)}
.donut-legend{display:flex; flex-direction:column; gap:8px}
.dleg{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted)}
.dleg b{color:var(--ink); margin-left:2px}
.dleg-dot{width:10px; height:10px; border-radius:3px}
.dash-list{display:flex; flex-direction:column}
.dash-row{display:flex; align-items:center; gap:12px; padding:10px 4px; border-bottom:1px solid var(--line-soft); background:none; border-left:0; border-right:0; border-top:0; width:100%; text-align:left}
.dash-row:last-child{border-bottom:0}
.dash-row:hover{background:var(--surface-2)}
.dr-main{flex:1; min-width:0}
.dr-title{font-size:13px; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.dr-sub{font-size:11.5px; color:var(--faint); margin-top:2px}
.dr-badge{flex:0 0 auto; font-size:11px; padding:3px 9px; border-radius:20px; background:var(--surface-2); color:var(--muted); font-weight:600; white-space:nowrap}
.dr-badge.near{background:var(--amber-bg); color:var(--amber)}
.dr-badge.over{background:var(--red-bg); color:var(--red)}

@media (max-width:1200px){ .kpi-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:900px){ .set-layout{grid-template-columns:1fr} .set-nav{position:static; flex-direction:row; flex-wrap:wrap} .dash-cols,.dash-cols:first-of-type{grid-template-columns:1fr} .kpi-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:820px){ .app{grid-template-columns:1fr} .rail{display:none} }
