:root{
  font-family:Inter,system-ui,sans-serif;
  --bg:#f6f8fb;
  --surface:#ffffff;
  --surface-2:#f0f4f8;
  --text:#152033;
  --muted:#6b788d;
  --border:#dde5ef;
  --accent:#2f6fed;
  --accent-2:#6f57e8;
  --success:#20865b;
  --warning:#c88a16;
  --danger:#c94c4c;
  --sidebar:#0d1629;
  --shadow:0 14px 36px rgba(24,43,75,.07);
}
html[data-theme="dark"]{
  --bg:#080c14;
  --surface:#101827;
  --surface-2:#172136;
  --text:#edf3ff;
  --muted:#95a3b8;
  --border:#27344b;
  --sidebar:#070b13;
  --shadow:0 18px 48px rgba(0,0,0,.28);
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.app{display:flex;min-height:100vh}
.sidebar{
  position:fixed;inset:0 auto 0 0;width:274px;
  display:flex;flex-direction:column;background:var(--sidebar);color:#dbe5f5;z-index:30
}
.brand{display:flex;align-items:center;gap:.8rem;padding:1rem;border-bottom:1px solid rgba(255,255,255,.07)}
.brand-logo{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900;color:white;background:linear-gradient(135deg,var(--accent),var(--accent-2))}
.brand div:last-child{display:flex;flex-direction:column}.brand small{color:#8fa0b9}
.nav{padding:.8rem;overflow:auto}
.nav p{font-size:.67rem;text-transform:uppercase;letter-spacing:.12em;color:#74849c;margin:1rem .65rem .35rem}
.nav-link{display:flex;align-items:center;gap:.7rem;padding:.68rem .75rem;border-radius:10px;color:#c7d2e3;font-size:.86rem;transition:.16s ease}
.nav-link span:first-child{width:22px;text-align:center;color:#96b4ff}
.nav-link:hover,.nav-link.active{background:rgba(70,116,240,.14);color:white;transform:translateX(2px)}
.sidebar-footer{margin-top:auto;padding:1rem;display:flex;gap:.7rem;align-items:center;border-top:1px solid rgba(255,255,255,.07)}
.sidebar-footer div{display:flex;flex-direction:column}.sidebar-footer small{color:#8494ac}.online{width:9px;height:9px;border-radius:50%;background:#35d293;box-shadow:0 0 13px #35d293}
.workspace{margin-left:274px;width:calc(100% - 274px)}
.topbar{
  min-height:78px;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;
  position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(16px);border-bottom:1px solid var(--border)
}
.topbar small{color:var(--accent);font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.topbar h1{margin:.15rem 0 0;font-size:1.35rem}
.topbar-actions{display:flex;align-items:center;gap:.7rem}
.search-button,.icon-button,.primary-button,.secondary-button{
  min-height:42px;border-radius:11px;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.7rem 1rem;font-weight:800
}
.search-button,.icon-button,.secondary-button{background:var(--surface);color:var(--text)}
.search-button{color:var(--muted);cursor:pointer}.search-button kbd{font-size:.67rem;border:1px solid var(--border);background:var(--surface-2);border-radius:5px;padding:.12rem .35rem}
.icon-button{width:42px;padding:0;cursor:pointer}.primary-button{border:0;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:white}
main{max-width:1520px;margin:auto;padding:2rem}
.welcome{
  display:grid;grid-template-columns:1.7fr .8fr;gap:1rem;align-items:center;
  padding:2rem;border-radius:22px;background:linear-gradient(135deg,#0e1a31,#1b315c 65%,#312d61);color:white;box-shadow:var(--shadow)
}
.eyebrow{font-size:.67rem;letter-spacing:.11em;font-weight:900;color:#7da8ff}
.welcome h2{font-size:clamp(2rem,4vw,3.2rem);line-height:1.04;margin:.45rem 0 1rem;max-width:900px}
.welcome p{color:#c0ccdd;line-height:1.65;max-width:780px}
.welcome-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.2rem}
.welcome-summary{display:grid;gap:.7rem}
.welcome-summary>div{padding:1rem;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.welcome-summary small{display:block;color:#a9bad0}.welcome-summary strong{display:block;margin-top:.2rem}
.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.8rem;margin:1rem 0}
.metric-card{padding:1rem;border-radius:15px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow)}
.metric-card small{color:var(--muted)}.metric-card strong{display:block;font-size:1.55rem;margin-top:.4rem}.metric-card span{font-size:.76rem;color:var(--success)}
.loading{min-height:112px;background:linear-gradient(90deg,var(--surface),var(--surface-2),var(--surface));background-size:220%;animation:loading 1.25s infinite}
@keyframes loading{to{background-position:-220%}}
.content-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:1rem;margin-bottom:1rem}
.panel{padding:1.15rem;border-radius:17px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow)}
.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.panel h3{margin:.2rem 0}.status-badge{font-size:.7rem;font-weight:800;color:var(--success);background:rgba(32,134,91,.1);padding:.35rem .6rem;border-radius:999px}
.text-button{border:0;background:transparent;color:var(--accent);font-weight:800;cursor:pointer;padding:0}
.timeline{display:grid;grid-template-columns:repeat(8,minmax(78px,1fr));overflow:auto;padding:1rem 0}
.year{text-align:center;position:relative}.year:before{content:"";position:absolute;height:2px;top:7px;left:-50%;right:50%;background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.year:first-child:before{display:none}.year-dot{width:15px;height:15px;border-radius:50%;border:4px solid var(--accent);background:var(--surface);margin:auto;position:relative;z-index:1}.year.active .year-dot{box-shadow:0 0 0 6px rgba(47,111,237,.12)}.year strong{display:block;margin-top:.55rem}.year small{color:var(--muted)}
.status-list,.priority-list{display:grid;gap:.6rem}.status-item,.priority-item{display:flex;align-items:center;gap:.7rem;padding:.8rem;border-radius:12px;background:var(--surface-2)}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--success)}.status-dot.warn{background:var(--warning)}.status-dot.error{background:var(--danger)}.status-item div,.priority-item div{display:flex;flex-direction:column}.status-item small,.priority-item small{color:var(--muted)}
.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.quick-actions a{display:flex;align-items:center;gap:.75rem;padding:.9rem;border:1px solid var(--border);border-radius:13px;transition:.16s ease}.quick-actions a:hover{border-color:var(--accent);transform:translateY(-2px)}.quick-actions span{font-size:1.25rem;color:var(--accent)}.quick-actions div{display:flex;flex-direction:column}.quick-actions small{color:var(--muted)}
.executive-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}.summary-item{padding:1rem;border-radius:13px;background:var(--surface-2)}.summary-item small{color:var(--muted)}.summary-item strong{display:block;margin-top:.3rem}
.palette{display:none;position:fixed;inset:0;background:rgba(3,8,18,.62);backdrop-filter:blur(7px);z-index:60;justify-content:center;padding-top:12vh}.palette.open{display:flex}.palette-box{width:min(720px,92vw);background:var(--surface);border:1px solid var(--border);border-radius:17px;box-shadow:0 30px 80px rgba(0,0,0,.35);overflow:hidden;height:max-content}.palette-input{display:flex;align-items:center;gap:.7rem;padding:1rem;border-bottom:1px solid var(--border)}.palette-input input{flex:1;border:0;background:transparent;outline:0;color:var(--text)}.palette-input kbd{font-size:.67rem;border:1px solid var(--border);border-radius:5px;padding:.15rem .35rem}.palette-result{display:flex;justify-content:space-between;padding:.85rem 1rem}.palette-result:hover{background:var(--surface-2)}
.toast{position:fixed;right:1rem;bottom:1rem;background:#101a2e;color:white;padding:.8rem 1rem;border-radius:10px;opacity:0;transform:translateY(20px);transition:.2s;z-index:70}.toast.show{opacity:1;transform:none}
@media(max-width:1250px){.metric-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.workspace{margin-left:0;width:100%}.topbar{display:none}.content-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.welcome{grid-template-columns:1fr}.welcome-summary{grid-template-columns:repeat(3,1fr)}.executive-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){main{padding:.8rem}.welcome{padding:1.3rem;border-radius:17px}.welcome-summary{grid-template-columns:1fr}.metric-grid,.executive-summary{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr}}
