:root{--bg: #f6f7fb;--surface: #ffffff;--line: #e7e9f0;--line-strong: #d5d9e4;--text: #1b2033;--muted: #6b7388;--faint: #9aa1b4;--brand: #4f46e5;--brand-dark: #4338ca;--brand-soft: #eef0ff;--red: #e5484d;--amber: #d98a0b;--green: #1f9d63;--radius: 12px;--shadow: 0 1px 2px rgba(27,32,51,.04), 0 2px 8px rgba(27,32,51,.04);--shadow-lg: 0 10px 30px rgba(27,32,51,.14);--sunken: #eceef5;--head: #fafbfd;--hover: var(--hover);--chip: #f1f3f9;--track-bg: #e9ebf3;--input-hover: #b9bfd0;--err-bg: #fff1f1;--err-line: #f6caca;--err-text: #b4232a;--high-bg: #fff0dc;--high-text: #b45f06;--urgent-bg: #ffe3e3;--urgent-text: #c2262d;--overlay: var(--overlay);--focus-ring: var(--focus-ring);color-scheme:light}[data-theme=dark]{--bg: #0f1220;--surface: #181c2e;--line: #262b42;--line-strong: #343a58;--text: #e6e8f2;--muted: #9aa2bd;--faint: #6c7390;--brand: #8b8cff;--brand-dark: #a1a2ff;--brand-soft: #25284a;--red: #ff6b70;--amber: #f0a73a;--green: #3ccb87;--shadow: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.25);--shadow-lg: 0 10px 30px rgba(0,0,0,.55);--sunken: #131729;--head: #1d2236;--hover: #20253b;--chip: #252a42;--track-bg: #2a3050;--input-hover: #4a5278;--err-bg: #3a1c24;--err-line: #6b2b35;--err-text: #ff9ca0;--high-bg: #3d2d12;--high-text: #f5b25a;--urgent-bg: #46202a;--urgent-text: #ff8a90;--overlay: rgba(0,0,0,.65);--focus-ring: rgba(139,140,255,.25);color-scheme:dark}*{box-sizing:border-box}body{margin:0;font:14px/1.55 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}b{font-weight:600}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.app{display:flex;min-height:100vh}.side{width:212px;background:var(--surface);border-right:1px solid var(--line);padding:20px 14px;display:flex;flex-direction:column;gap:4px;flex-shrink:0;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px;padding:2px 8px 20px}.logo{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;display:grid;place-items:center;font-size:15px;flex-shrink:0}.side button{display:flex;align-items:center;gap:10px;background:none;border:0;color:var(--muted);text-align:left;padding:9px 12px;border-radius:9px;cursor:pointer;font-weight:500;transition:background .12s,color .12s}.side button .ico{width:18px;text-align:center;font-size:15px;opacity:.85}.side button:hover{background:var(--bg);color:var(--text)}.side button.on{background:var(--brand-soft);color:var(--brand);font-weight:600}.main{flex:1;padding:28px 36px 48px;min-width:0;max-width:1480px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0 22px;flex-wrap:wrap}.page-head h2{margin:0;font-size:24px;font-weight:700;letter-spacing:-.01em}h3{margin:0 0 14px;font-size:15px;font-weight:650}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between;margin-bottom:14px}.muted{color:var(--muted);font-size:13px}.late{color:var(--red);font-weight:600}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:18px}.pad{padding:20px}.pad-h{padding:18px 20px 4px;margin:0}.btn{border:1px solid var(--line-strong);background:var(--surface);border-radius:9px;padding:7px 14px;cursor:pointer;font-weight:500;transition:background .12s,border-color .12s,box-shadow .12s}.btn:hover{background:var(--bg)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 1px 2px #4f46e54d}.btn.primary:hover{background:var(--brand-dark)}.btn.danger{color:var(--red);border-color:var(--err-line);background:var(--surface)}.btn.danger:hover{background:var(--err-bg)}.btn.left{margin-right:auto}.link{background:none;border:0;color:var(--brand);cursor:pointer;padding:0;font-weight:500}.link:hover{text-decoration:underline}.link.danger{color:var(--red)}.back{margin-bottom:4px;color:var(--muted)}.icon-btn{background:none;border:0;font-size:20px;line-height:1;cursor:pointer;color:var(--faint);border-radius:6px;width:26px;height:26px}.icon-btn:hover{background:var(--bg);color:var(--text)}select,input,textarea{border:1px solid var(--line-strong);border-radius:9px;padding:7px 11px;background:var(--surface);transition:border-color .12s,box-shadow .12s}select:hover,input:hover,textarea:hover{border-color:var(--input-hover)}select:focus,input:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--focus-ring)}input::placeholder{color:var(--faint)}.error{background:var(--err-bg);color:var(--err-text);border:1px solid var(--err-line);border-radius:9px;padding:9px 12px;margin:8px 0}.empty{text-align:center;color:var(--faint);padding:28px 20px}.seg{display:inline-flex;background:var(--sunken);border-radius:10px;padding:3px}.seg button{border:0;background:none;padding:5px 16px;border-radius:8px;cursor:pointer;color:var(--muted);font-weight:500}.seg .on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:18px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.filters .muted{margin-left:auto}.search{min-width:260px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:var(--muted);font-weight:600;font-size:12px;background:var(--head);letter-spacing:.02em}tbody tr:last-child td{border-bottom:0}tr.click{cursor:pointer}tr.click:hover td{background:var(--hover)}.right{text-align:right}.badge{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.progress{display:flex;align-items:center;gap:8px;min-width:110px}.progress .bar{flex:1;height:6px;background:var(--track-bg);border-radius:3px;overflow:hidden}.progress .bar div{height:100%;background:linear-gradient(90deg,#6366f1,#8b5cf6);border-radius:3px}.progress span{font-size:12px;color:var(--muted);width:34px;text-align:right}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:18px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand)}.stat b{display:block;font-size:30px;line-height:1.2;font-weight:700;letter-spacing:-.02em}.stat span{color:var(--muted);font-size:13px}.stat.bad:before{background:var(--red)}.stat.bad b{color:var(--red)}.stat.warn:before{background:var(--amber)}.stat.warn b{color:var(--amber)}.stat.ok:before{background:var(--green)}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}@media (max-width: 900px){.two{grid-template-columns:1fr}.app{flex-direction:column}.side{width:100%;height:auto;position:static;flex-direction:row;overflow-x:auto;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line);align-items:center}.brand{padding:0 8px 0 0;white-space:nowrap}.side button{white-space:nowrap}.main{padding:18px 16px 40px}}.hbar{display:flex;align-items:center;gap:12px;margin:12px 0}.hl{width:64px;color:var(--muted)}.hv{width:24px;text-align:right;font-weight:600}.track{flex:1;height:10px;background:var(--track-bg);border-radius:5px;overflow:hidden}.track div{height:100%;border-radius:5px;min-width:2px}.log{padding:9px 8px;margin:0 -8px;border-bottom:1px solid var(--line);display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;border-radius:8px}.log:last-child{border-bottom:0}.log.click{cursor:pointer}.log.click:hover{background:var(--hover)}.log .muted{font-variant-numeric:tabular-nums}.board{display:grid;grid-template-columns:repeat(6,minmax(240px,1fr));gap:14px;overflow-x:auto;padding-bottom:12px;align-items:start}.board.four{grid-template-columns:repeat(4,minmax(230px,1fr))}.column{background:var(--sunken);border-radius:var(--radius);padding:12px;min-height:160px}.column.over{outline:2px dashed var(--brand);outline-offset:-2px;background:var(--brand-soft)}.col-head{display:flex;align-items:center;gap:8px;font-weight:650;margin-bottom:12px;padding:0 2px}.col-head em{font-style:normal;color:var(--muted);font-weight:600;background:var(--surface);border-radius:999px;padding:0 8px;font-size:12px}.col-head .add{margin-left:auto}.dot{width:9px;height:9px;border-radius:50%}.kcard{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:10px;box-shadow:var(--shadow);cursor:grab;display:flex;flex-direction:column;gap:8px;transition:box-shadow .12s,transform .12s,border-color .12s}.kcard:hover{box-shadow:var(--shadow-lg);border-color:var(--line-strong);transform:translateY(-1px)}.k-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.k-title{font-weight:500;line-height:1.4}.k-meta{display:flex;gap:6px;flex-wrap:wrap}.k-meta span{background:var(--chip);border-radius:6px;padding:1px 8px;font-size:12px;color:var(--muted)}.k-foot{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12.5px}.k-foot .who{display:inline-flex;align-items:center;gap:6px}.avatar{width:20px;height:20px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:700;display:inline-grid;place-items:center}.avatar.none{background:var(--chip);color:var(--faint)}.prio{font-size:11px;font-weight:600;padding:1px 8px;border-radius:999px;background:var(--chip);color:var(--muted);flex-shrink:0}.prio.high{background:var(--high-bg);color:var(--high-text)}.prio.urgent{background:var(--urgent-bg);color:var(--urgent-text)}.info{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:18px 20px;padding:20px}.info>div{font-weight:500}.info span{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-bottom:3px}.info .desc{grid-column:1 / -1;font-weight:400;padding-top:14px;border-top:1px solid var(--line)}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line-strong);margin-bottom:18px}.tabs button{background:none;border:0;padding:10px 16px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;font-weight:500}.tabs button:hover{color:var(--text)}.tabs .on{color:var(--brand);border-color:var(--brand);font-weight:600}.dropzone{border:2px dashed var(--line-strong);border-radius:var(--radius);padding:26px;text-align:center;color:var(--muted);background:var(--surface);margin-bottom:14px;transition:all .12s}.dropzone.over{border-color:var(--brand);background:var(--brand-soft)}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:10;padding:16px}.modal{background:var(--surface);border-radius:16px;padding:24px;width:460px;max-width:100%;max-height:92vh;overflow:auto;box-shadow:var(--shadow-lg)}.modal.wide{width:640px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-head h3{margin:0;font-size:18px}.form{display:flex;flex-direction:column;gap:14px}.form label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted);font-weight:500}.form input,.form select,.form textarea{color:var(--text);font-weight:400}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form.grid2{display:grid}.span2{grid-column:1 / -1}.actions{display:flex;gap:8px;justify-content:flex-end;padding-top:6px}.trend{display:flex;gap:16px;align-items:flex-end;height:180px}.tcol{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end}.tbar{width:100%;max-width:44px;height:120px;display:flex;flex-direction:column;justify-content:flex-end;border-radius:6px 6px 0 0;overflow:hidden}.tnum{font-size:12px;color:var(--muted);font-weight:600;margin-bottom:4px}.tlab{font-size:12px;color:var(--muted);margin-top:6px}.legend{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12.5px;margin-top:12px}.legend i{width:10px;height:10px;border-radius:3px;margin-left:10px}.side .spacer{flex:1}.side .theme{border:1px solid var(--line-strong);justify-content:center;margin-top:8px}@media (max-width: 900px){.side .spacer{display:none}.side .theme{margin-top:0;margin-left:auto}}body,.side,.card,.btn,input,select,textarea,.stat,.filters,.column,.kcard,.modal{transition:background-color .2s,border-color .2s,color .2s}[data-theme=dark] .btn.primary{background:#5b5bd6;border-color:#5b5bd6;color:#fff}[data-theme=dark] .btn.primary:hover{background:#6d6de6}[data-theme=dark] .btn:hover{background:var(--hover)}
