:root{ --primary:#1e40af; --primary-d:#1e3a8a; }
*{box-sizing:border-box}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;color:#1f2937}
.app{display:flex;min-height:100vh}
.sidebar{width:236px;background:#0f172a;color:#cbd5e1;display:flex;flex-direction:column;position:fixed;height:100vh;padding:16px 0}
.brand{display:flex;align-items:center;gap:10px;padding:0 18px 18px;border-bottom:1px solid #1e293b}
.brand .logo{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#3b82f6,#1e40af);display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff}
.brand b{color:#fff;font-size:14px;display:block;line-height:1.2}
.brand span{font-size:11px;color:#64748b}
.nav{padding:12px 10px;flex:1;overflow-y:auto}
.nav-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:#475569;padding:12px 12px 6px;font-weight:700}
.nav-item{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:9px;cursor:pointer;color:#94a3b8;font-weight:500;font-size:13.5px;margin-bottom:2px;transition:.12s}
.nav-item i{width:18px;height:18px}
.nav-item:hover{background:#1e293b;color:#e2e8f0}
.nav-item.active{background:var(--primary);color:#fff}
.side-foot{padding:14px 16px;border-top:1px solid #1e293b;display:flex;align-items:center;gap:10px}
.side-foot b{color:#fff;font-size:13px;display:block}
.side-foot span{font-size:11px;color:#64748b}
.main{margin-left:236px;flex:1;display:flex;flex-direction:column}
.topbar{background:#fff;border-bottom:1px solid #e5e7eb;padding:15px 28px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:5}
.topbar h1{font-size:18px;font-weight:700}
.topbar .sub{font-size:12.5px;color:#6b7280;margin-top:2px}
.content{padding:24px 28px}
.page{animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.avatar{border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;border:2px solid #fff;flex:none}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06)}
.card-h{padding:15px 20px;border-bottom:1px solid #f1f3f6;display:flex;align-items:center;justify-content:space-between}
.card-h h3{font-size:15px;font-weight:700}
.link{font-size:12.5px;color:var(--primary);font-weight:600;cursor:pointer}
.ic{width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none}
.ic i{width:17px;height:17px}
.chip{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:20px;font-size:11.5px;font-weight:700;white-space:nowrap}
.pbar{height:7px;background:#eef0f4;border-radius:20px;overflow:hidden}
.pbar i{display:block;height:100%;border-radius:20px;background:var(--primary)}
.btn{border:1px solid #e5e7eb;background:#fff;color:#1f2937;padding:7px 13px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:.12s}
.btn:hover{background:#f9fafb}
.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.btn-primary:hover{background:var(--primary-d)}
.btn-green{background:#16a34a;color:#fff;border-color:#16a34a}
.btn-red{background:#fff;color:#dc2626;border-color:#fecaca}
.note{background:#eff6ff;border:1px solid #dbeafe;border-radius:10px;padding:13px 16px;font-size:12.5px;color:#1e3a5f}
.note b{color:var(--primary-d)}
table{width:100%;border-collapse:collapse}
th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#9ca3af;font-weight:700;padding:11px 20px;border-bottom:1px solid #f1f3f6}
td{padding:12px 20px;border-bottom:1px solid #f1f3f6;font-size:13.5px;vertical-align:middle}
tr:last-child td{border-bottom:none}
.clickable{cursor:pointer}
.clickable:hover{background:#fafbfc}
.proj:hover{box-shadow:0 4px 16px rgba(16,24,40,.09);transform:translateY(-2px)}
.back{font-size:13px;color:var(--primary);font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:5px;margin-bottom:14px}
.back i{width:16px;height:16px}
.seg{display:inline-flex;background:#eef0f4;border-radius:9px;padding:3px}
.seg button{border:none;background:none;padding:6px 14px;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer;color:#6b7280}
.seg button.on{background:#fff;color:#1f2937;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.kanban{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.kcol{background:#f1f5f9;border-radius:12px;padding:11px;min-width:0}
.kcol-h{display:flex;align-items:center;justify-content:space-between;padding:3px 5px 11px;font-weight:700;font-size:13px}
.kcol-h .cnt{background:#fff;color:#6b7280;border-radius:20px;padding:1px 9px;font-size:11px}
.kcard{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px;margin-bottom:9px;box-shadow:0 1px 2px rgba(16,24,40,.05);cursor:pointer}
.kcard:hover{box-shadow:0 4px 12px rgba(16,24,40,.09)}
.gantt{border:1px solid #eef0f4;border-radius:10px;overflow:hidden}
.cfg-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #f1f3f6}
.cfg-row:last-child{border-bottom:none}
.cfg-input{width:80px;padding:6px 10px;border:1px solid #d1d5db;border-radius:7px;font-size:13px;font-weight:600;text-align:right}
.cfg-input:focus{outline:none;border-color:var(--primary)}
.kpi-bar{height:8px;background:#eef0f4;border-radius:20px;overflow:hidden;width:80px;display:inline-block;vertical-align:middle}
.kpi-bar i{display:block;height:100%;border-radius:20px}
.g-wrap{display:flex;border:1px solid #eef0f4;border-radius:10px;overflow:hidden}
.g-wbs{flex:none;width:430px;border-right:2px solid #e5e7eb;overflow-x:auto}
.g-wbs table{width:100%}
.g-wbs th{padding:7px 8px;font-size:9.5px;background:#f8fafc;position:sticky;top:0}
.g-wbs td{padding:0;height:34px;border-bottom:1px solid #f6f7f9;font-size:12px}
.g-wbs-c{text-align:center;color:#64748b;font-size:11px;white-space:nowrap;padding:0 6px!important}
.g-wbs-name{padding:0 8px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px}
.g-wbs-stage td{background:#fcfcfd;font-weight:700}
.g-wbs-row{cursor:pointer}
.g-wbs-row:hover td{background:#eff6ff}
.g-crit{color:#dc2626}
.g-chart{flex:1;overflow-x:auto;background:#fff}
.g-legend{display:flex;gap:12px}
.g-legend span{font-size:11px;color:#64748b;display:flex;align-items:center;gap:5px}
.g-legend i{width:11px;height:6px;border-radius:2px;display:inline-block}
.panel-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:30}
.task-panel{position:fixed;top:0;right:0;width:440px;max-width:92vw;height:100vh;background:#fff;box-shadow:-8px 0 30px rgba(0,0,0,.15);z-index:31;flex-direction:column}
.tp-head{display:flex;justify-content:space-between;align-items:flex-start;padding:20px;border-bottom:1px solid #eef0f4}
.tp-x{border:none;background:#f1f5f9;border-radius:8px;width:32px;height:32px;cursor:pointer;color:#64748b}
.tp-x i{width:16px;height:16px}
.tp-body{padding:20px;overflow-y:auto;flex:1}
.tp-field{background:#f8fafc;border-radius:8px;padding:9px 12px}
.tp-field span{display:block;font-size:11px;color:#94a3b8;margin-bottom:2px}
.tp-field b{font-size:13px}
.tp-sec{margin-top:18px;padding-top:14px;border-top:1px solid #f1f3f6}
.tp-sec>b{font-size:13px;display:block;margin-bottom:8px}
.tp-check{display:flex;align-items:center;gap:8px;font-size:13px;padding:4px 0;color:#374151}
.tp-file{display:flex;align-items:center;gap:7px;font-size:13px;color:#2563eb;padding:5px 0}
.tp-file i{width:14px;height:14px}
.tp-cmt{font-size:13px;color:#374151;padding:7px 10px;background:#f8fafc;border-radius:8px;margin-bottom:6px}
.notif-panel{position:absolute;top:44px;right:0;width:340px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.12);z-index:40;overflow:hidden}
.notif-h{padding:13px 16px;font-weight:700;font-size:14px;border-bottom:1px solid #f1f3f6}
.notif-item{display:flex;gap:11px;padding:12px 16px;border-bottom:1px solid #f6f7f9;align-items:flex-start}
.notif-item:hover{background:#fafbfc}
.notif-item:last-child{border-bottom:none}
.demo-tag{position:fixed;bottom:14px;right:16px;background:#0f172a;color:#cbd5e1;font-size:11px;padding:6px 12px;border-radius:20px;z-index:20;opacity:.85}
.ic-btn{border:none;background:transparent;color:#94a3b8;width:28px;height:28px;border-radius:7px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex:none}
.ic-btn:hover{background:#f1f5f9;color:#334155}
.ic-btn i{width:15px;height:15px}
.stage-h{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:10px}
.task-line{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fff;border:1px solid #f1f3f6;border-radius:9px;margin-bottom:6px;cursor:pointer;transition:.12s}
.task-line:hover{border-color:#bfdbfe;background:#fafdff}
.add-proj{border:2px dashed #d1d5db;background:#fafbfc;cursor:pointer;transition:.15s}
.add-proj:hover{border-color:#1e40af;color:#1e40af;background:#f5f8ff}
.modal{position:fixed;inset:0;z-index:51;display:flex;align-items:flex-start;justify-content:center;padding:48px 16px;overflow-y:auto}
.modal-card{background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.25);max-width:96vw;display:flex;flex-direction:column;animation:pop .16s ease}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.modal-h{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #f1f3f6}
.modal-h h3{font-size:16px;font-weight:800}
.modal-b{padding:18px 20px;overflow-y:auto;max-height:64vh}
.modal-f{display:flex;gap:10px;justify-content:flex-end;padding:14px 20px;border-top:1px solid #f1f3f6}
.f-row{margin-bottom:13px}
.f-row label{display:block;font-size:12px;font-weight:700;color:#475569;margin-bottom:5px}
.f-inp{width:100%;padding:8px 11px;border:1px solid #d1d5db;border-radius:8px;font-size:13.5px;font-family:inherit;color:#1f2937}
.f-inp:focus{outline:none;border-color:#1e40af;box-shadow:0 0 0 3px rgba(30,64,175,.1)}
textarea.f-inp{resize:vertical}
.chk-wrap{display:flex;flex-wrap:wrap;gap:8px 14px;padding:4px 0}
.chk{display:flex;align-items:center;gap:6px;font-size:13px;color:#374151;cursor:pointer}
.mini-lbl{display:block;font-size:11px;font-weight:700;color:#64748b;margin-bottom:4px}
.cost-block{background:#f8fafc;border:1px solid #eef0f4;border-radius:10px;padding:12px;margin:4px 0 13px}
.cost-block-h{font-size:12px;font-weight:800;color:#1e40af;margin-bottom:10px}
.cost-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px}
.cc{background:#f8fafc;border-radius:8px;padding:9px 12px}
.cc span{display:block;font-size:11px;color:#94a3b8;margin-bottom:3px}
.cc b{font-size:14px}
.catrow{display:flex;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid #f1f3f6}
.catrow:last-child{border-bottom:none}
.catname{width:120px;flex:none}
.catbars{flex:1;display:flex;flex-direction:column;gap:6px}
.catbar{display:flex;align-items:center;gap:10px}
.cb-lbl{font-size:10.5px;font-weight:700;color:#94a3b8;width:22px}
.cb-track{flex:1;height:14px;background:#eef0f4;border-radius:7px;overflow:hidden}
.cb-track i{display:block;height:100%;border-radius:7px}
.cb-val{font-size:11.5px;font-weight:700;color:#475569;width:64px;text-align:right}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#0f172a;color:#fff;padding:11px 20px;border-radius:10px;font-size:13.5px;font-weight:600;z-index:60;opacity:0;pointer-events:none;transition:.25s;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
