:root{--bg:#0b1220;--panel:#121a2a;--panel2:#0f1828;--line:#25324a;--text:#e6edf8;--muted:#8ea0bb;--blue:#4f86ff;--green:#22c55e;--yellow:#f59e0b;--red:#ef4444}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Arial}
body{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.sidebar{border-right:1px solid var(--line);padding:16px 14px;background:linear-gradient(180deg,#0e1626,#0a1322)}
.brand{font-weight:800;letter-spacing:.08em;font-size:12px;margin:2px 6px 16px;color:#b9c9e5}
.sidebar nav{display:grid;gap:7px}.sidebar .tab{border:1px solid #28364d;background:#111b2c;color:var(--text);padding:10px 12px;border-radius:10px;text-align:left;cursor:pointer;font-size:13px;line-height:1.2}.sidebar .tab.active{border-color:var(--blue);background:#13213a;box-shadow:0 0 0 1px rgba(79,134,255,.25) inset}
.sidebar-actions{margin-top:14px;display:grid;gap:7px}.sidebar-actions button{background:#0f1828;border:1px solid #273750;color:var(--muted);padding:9px 10px;border-radius:10px;font-size:13px;line-height:1.1;text-align:left}
.page{display:flex;flex-direction:column}
.topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:16px 24px 12px;border-bottom:1px solid #22314a;background:rgba(8,14,24,.78);backdrop-filter:blur(6px)}
h1{margin:0;font-size:28px;line-height:1.1;font-weight:700;letter-spacing:-.01em}.muted{margin:6px 0 0;color:var(--muted);font-size:12px;letter-spacing:.01em}
.topbar .toolbar > *:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(110,168,255,.22);border-color:#6ea8ff}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.toolbar input,.toolbar select{height:36px;background:#101a2b;border:1px solid #31405d;color:var(--text);padding:8px 11px;border-radius:10px;font-size:13px;line-height:1}.toolbar input{width:200px}.toolbar select:nth-of-type(1){width:132px}.toolbar select:nth-of-type(2){width:144px}.toolbar .primary{height:36px;min-width:146px;background:var(--blue);color:#fff;border:none;padding:0 14px;border-radius:10px;font-size:13px;font-weight:600;white-space:nowrap}
main{padding:14px 20px 20px;max-width:1240px}
.screen{display:none}.screen.active{display:block}
#projects{display:grid;gap:10px}
.project-row{display:grid;grid-template-columns:minmax(420px,1fr) 124px 68px;align-items:center;gap:10px;background:linear-gradient(180deg,#131d2e,#111a2a);border:1px solid #2a3953;border-radius:12px;padding:15px 16px;margin:0;min-height:82px;box-shadow:0 1px 0 rgba(0,0,0,.15)}
.project-row:hover{border-color:#3a5275;background:linear-gradient(180deg,#152238,#122035);transform:translateY(-1px);transition:transform .18s ease,border-color .18s ease,background .18s ease}
.title{font-weight:650;font-size:16px;line-height:1.18;letter-spacing:.001em}.meta{font-size:12px;color:var(--muted);margin-top:8px}
.badge{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:700;justify-self:start;letter-spacing:.02em;white-space:nowrap}
.work{background:rgba(34,197,94,.18);color:#95f0b8;border:1px solid rgba(34,197,94,.35)}.pause{background:rgba(245,158,11,.16);color:#ffd48a;border:1px solid rgba(245,158,11,.33)}.wait{background:rgba(79,134,255,.16);color:#b8d0ff;border:1px solid rgba(79,134,255,.33)}
.ring{--size:58px;width:var(--size);height:var(--size);display:grid;place-items:center;border-radius:50%;background:conic-gradient(#5b8dff calc(var(--p)*1%), #22324c 0);box-shadow:inset 0 0 0 1px #2f3f5d;justify-self:end}
.ring span{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:#0f1828;font-size:11px;font-weight:700;color:#d8e4fa;font-variant-numeric:tabular-nums}
.kanban-grid{display:grid;grid-template-columns:repeat(6,minmax(184px,1fr));gap:12px;align-items:start}
.col h3{margin:0 0 9px;color:#a9b9d3;font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.card{background:linear-gradient(180deg,#131d2e,#111a2a);border:1px solid #2a3953;padding:12px 12px 11px;border-radius:12px;margin-bottom:10px;min-height:70px;box-shadow:0 1px 0 rgba(0,0,0,.15)}
.card:hover{border-color:#3a5275;transform:translateY(-1px);transition:transform .18s ease,border-color .18s ease}
.card.warn{border-color:#6d4a13;background:linear-gradient(180deg,#2b2214,#241d12)}.card.ok{border-color:#1f5c3d;background:linear-gradient(180deg,#15281f,#132319)}
.small{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.35}
.bar{height:8px;background:#1d2a40;border-radius:999px;overflow:hidden;margin-top:10px}.bar i{display:block;height:100%;background:linear-gradient(90deg,#3cb4ff,#4f86ff)}.bar.big{height:10px}
.two-col{display:grid;grid-template-columns:1fr 320px;gap:14px}
.panel{background:linear-gradient(180deg,#131d2e,#111a2a);border:1px solid #2a3953;padding:14px;border-radius:12px;margin-bottom:12px;box-shadow:0 1px 0 rgba(0,0,0,.15)}
.panel h3,.panel h4{margin:0 0 8px;letter-spacing:.01em}
.status-line{display:flex;gap:8px;margin-bottom:10px;align-items:center}.chip{font-size:12px;padding:6px 9px;background:#1a2740;border:1px solid #2b3c5d;border-radius:999px;color:#b7cbef}
.alert{border:1px solid;padding:12px;border-radius:12px;margin-bottom:12px;line-height:1.35}.alert.red{background:rgba(239,68,68,.13);border-color:#6f1f29}.alert.yellow{background:rgba(245,158,11,.15);border-color:#6b4a14}
.log{margin:0;padding:0;list-style:none}.log li{padding:9px 0;border-bottom:1px dashed #2b3a56;font-size:14px}.log span{display:inline-block;width:56px;color:var(--muted);font-variant-numeric:tabular-nums}
.steps{list-style:none;padding:0;margin:10px 0 0}.steps li{padding:9px 0;border-bottom:1px dashed #2b3a56}.steps li.done{color:#8bf2b0}.steps li.current{color:#b8d0ff;font-weight:700}
@media (max-width:1200px){.kanban-grid{grid-template-columns:repeat(3,minmax(170px,1fr))}}
@media (max-width:900px){body{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:5}.two-col{grid-template-columns:1fr}.project-row{grid-template-columns:1fr auto}.toolbar{width:100%}.toolbar input{width:100%}.toolbar select:nth-of-type(1),.toolbar select:nth-of-type(2),.toolbar .primary{width:calc(50% - 4px);min-width:0}}
