:root {
  --ink:#12323c; --muted:#506e74; --line:#dbe7e8; --paper:#f2f7f7; --surface:#fff;
  --accent:#006c73; --accent-ink:#005f65; --sidebar:#092631;
  --settings-hover:#e8f4f2; --settings-icon:#d9f1ed;
  font-family:"Aptos","Segoe UI",system-ui,sans-serif;
}
html[data-theme="dark"] { --ink:#e6f5f5; --muted:#a4bec3; --line:#26434d; --paper:#102732; --surface:#173541;
  --accent:#168a8e; --accent-ink:#a0f1e6; --settings-hover:#214653; --settings-icon:#224951; }
@media (prefers-color-scheme:dark) {
  html[data-theme="system"] { --ink:#e6f5f5; --muted:#a4bec3; --line:#26434d; --paper:#102732; --surface:#173541;
    --accent:#168a8e; --accent-ink:#a0f1e6; --settings-hover:#214653; --settings-icon:#224951; }
}
.shell { grid-template-columns:223px minmax(0,1fr); }
#login-account { display:grid; gap:11px; min-width:0; padding:0; margin:0; border:none; }
#login-account[hidden] { display:none; }
#login-account summary { margin-bottom:7px; color:var(--accent-ink); font-size:.86rem; cursor:pointer; }
#remember-mobile:not([hidden]) { display:flex; flex-direction:row; align-items:center; gap:8px; }
#remember-mobile input { width:auto; }
.sidebar { gap:13px; padding:19px 12px 13px; background:#092631; overflow:auto; }
.sidebar .brand { min-width:0; color:#edfaff; font-size:19px; justify-content:flex-start; }
.brand span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.brand img { background:#e3ffff12; border-radius:13px; object-fit:contain; }
.sidebar nav { gap:2px; }
nav button,.agent-link { color:#b1cbd0; font-size:13px; border-radius:10px; padding:8px; gap:8px; }
nav button span { color:#73dcd8; }
nav button:hover,.agent-link:hover { background:#174450; color:#fff; }
nav button[aria-current="page"],.agent-link.selected { background:#14505a; color:#f4ffff; }
.side-agents { flex:1 1 100px; border-color:#1c4851; min-height:78px; }
.side-footer { border-color:#1c4851; }
.side-footer button,.side-footer a { color:#abdedf; }
.topbar { position:sticky; top:0; z-index:2; padding:12px clamp(16px,3vw,40px); min-height:76px; }
.topbar > div:first-of-type { flex:1; }
.topbar .breadcrumb { color:var(--accent-ink); font-size:11px; font-weight:680; }
.topbar h1 { letter-spacing:-.65px; font-size:24px; }
.nova-search { width:40px; height:40px; min-width:40px; background:var(--settings-hover); color:var(--accent-ink); border:1px solid var(--line); font-size:23px; }
.primary:hover { background:#005763; }
.secondary:hover,.subtle:hover { background:var(--settings-hover); }
.pill { background:var(--settings-hover); color:var(--accent-ink); }
.mini { background:#dbf4f1; color:#005d64; }
.mini.c1 { background:#dfedf9; color:#205680; }
.mini.c2 { background:#edf1cf; color:#575f1b; }
.mini.c3 { background:#e0e8fb; color:#3d4b8d; }
#content { padding:26px clamp(16px,3vw,40px) 36px; }
.nova-home,.nova-page-stack { display:grid; gap:18px; }
.nova-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,37%); position:relative; overflow:hidden; isolation:isolate;
  min-height:258px; border-radius:23px; background:linear-gradient(116deg,#072833 20%,#0a414b 66%,#106369); color:#efffff; }
.nova-hero::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.28; pointer-events:none;
  background-image:radial-gradient(#95ece6 1px,transparent 1px); background-size:27px 27px; mask-image:linear-gradient(90deg,transparent 20%,#000); }
.nova-hero-copy { padding:clamp(25px,5vw,49px); align-self:center; }
.nova-hero h2 { margin:8px 0 11px; color:#f7ffff; font-size:clamp(30px,5vw,62px); letter-spacing:-.062em; line-height:1.04; overflow-wrap:anywhere; }
.nova-hero p { color:#c8e2e3; max-width:510px; line-height:1.5; margin:0 0 23px; font-size:1.04rem; }
.nova-hero .primary { background:#7be1d5; color:#0b393c; }
.nova-hero .secondary { background:#174f57; border-color:#468079; color:#ebffff; }
.nova-brand-tag { color:#93e8de; font-size:12px; letter-spacing:.09em; text-transform:uppercase; font-weight:700; }
.nova-orbit { position:relative; isolation:isolate; display:grid; place-items:center; min-width:0; }
.nova-orbit::before,.nova-orbit::after { content:""; position:absolute; z-index:-1; border-radius:42%; border:1px solid #7ee7d961; width:67%; aspect-ratio:1; transform:rotate(34deg); }
.nova-orbit::after { width:84%; opacity:.5; transform:rotate(18deg); }
.nova-orbit img { width:min(78%,280px); max-height:225px; object-fit:contain; filter:drop-shadow(0 0 27px #2de8e85b); }
.nova-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.nova-metric { position:relative; padding:16px 14px; display:grid; text-align:left; gap:5px; border:1px solid var(--line);
  background:var(--surface); color:var(--muted); border-radius:15px; }
.nova-metric strong,.nova-index strong { color:var(--ink); font-size:28px; font-weight:720; }
.nova-metric-arrow { color:var(--accent-ink); font-size:17px; }
.nova-metric .nova-metric-arrow { position:absolute; top:12px; right:12px; }
.nova-overview-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.nova-overview-grid > :last-child { grid-column:1 / -1; }
.nova-surface { min-width:0; padding:16px; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.nova-section-head,.nova-project-head,.nova-plan-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.nova-section-head h2,.nova-surface h2 { font-size:1.15rem; margin:0 0 5px; }
.nova-surface p:last-child { margin-bottom:0; }
.nova-empty,.nova-intro { color:var(--muted); margin:8px 0; font-size:14px; }
.nova-list-link { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:47px; text-align:left;
  background:transparent; padding:9px; color:var(--ink); }
.nova-list-link:hover,.nova-metric:hover { background:var(--settings-hover); }
.nova-list-link > span:first-child { display:grid; gap:3px; overflow-wrap:anywhere; }
.nova-list-link small,.nova-plan-row p { color:var(--muted); margin:4px 0; }
.nova-search-results { max-height:54vh; overflow:auto; }
.nova-tile h3 { margin-top:13px; }
.nova-people { display:flex; gap:6px; flex-wrap:wrap; }
.nova-stage { padding:10px; border:1px solid var(--line); border-radius:10px; margin-bottom:8px; }
.nova-gantt-scroll { overflow:auto; max-width:100%; margin-top:9px; }
.gantt-line { stroke:var(--line); }
.gantt-date { fill:var(--muted); font-size:11px; }
.gantt-title { fill:var(--ink); font-size:12px; font-weight:650; }
.gantt-base { fill:#0a8d9939; }
.gantt-progress { fill:#008e91; }
.gantt-dependency { stroke:#72999b; stroke-dasharray:4 3; fill:none; }
.nova-task-list { border:1px solid var(--line); background:var(--surface); border-radius:14px; }
.nova-plan-row { padding:11px 14px; }
.nova-plan-row + .nova-plan-row { border-top:1px solid var(--line); }
.nova-project-views { display:flex; gap:4px; justify-self:start; padding:4px; border:1px solid var(--line);
  border-radius:12px; background:var(--surface); }
.nova-project-views button[aria-pressed="true"] { background:var(--settings-hover); color:var(--accent-ink); font-weight:700; }
.nova-kanban-section > h2 { margin:0 0 13px; }
.nova-kanban { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.nova-kanban-column { --stage-color:#aa792f; display:grid; align-content:start; gap:9px; min-width:0; min-height:140px;
  padding:10px; border:1px solid var(--line); border-top:3px solid var(--stage-color); border-radius:12px; background:var(--paper); }
.nova-kanban-column[data-stage="active"] { --stage-color:#168e9c; }
.nova-kanban-column[data-stage="completed"] { --stage-color:#3a976d; }
.nova-kanban-column > header { display:flex; align-items:center; justify-content:space-between; gap:7px; padding:2px 1px 5px; }
.nova-kanban-column > header h3 { margin:0; font-size:.91rem; }
.nova-kanban-column .nova-empty { padding:2px; }
.nova-kanban-card { display:grid; justify-items:start; min-width:0; gap:6px; padding:10px; border:1px solid var(--line);
  border-radius:9px; color:var(--ink); background:var(--surface); overflow-wrap:anywhere; text-align:left; }
.nova-kanban-card h4 { margin:0; font-size:.9rem; }
.nova-kanban-card .hint,.nova-project-description { margin:0; color:var(--muted); font-size:.78rem; }
.nova-project-card { width:100%; }
.nova-project-card:hover { background:var(--settings-hover); }
.nova-project-description { display:-webkit-box; overflow:hidden; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
@media (max-width:840px) {
  .nova-kanban { grid-template-columns:repeat(3,minmax(225px,82%)); overflow-x:auto; padding-bottom:9px; scroll-snap-type:x proximity; }
  .nova-kanban-column { scroll-snap-align:start; }
}
.nova-form-columns { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.nova-question-group,.nova-center-preview { border:1px solid var(--line); border-radius:12px; padding:9px 11px; margin-bottom:10px; }
.nova-question-group summary { cursor:pointer; font-weight:700; padding:5px 0; }
.nova-question-group[open] summary { margin-bottom:12px; }
.nova-score-row { display:flex; justify-content:space-between; padding:9px 0; border-top:1px solid var(--line); }
.company-groups > :last-child { grid-column:auto; }
.nova-office > header { margin-bottom:12px; }
.nova-office-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(190px,.8fr); gap:15px; align-items:center; }
.nova-office-scene { position:relative; aspect-ratio:16 / 9; overflow:hidden; isolation:isolate;
  border:1px solid var(--line); border-radius:14px; background:#fff; }
.nova-office-art,.nova-office-paths { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.nova-office-art { object-fit:contain; }
.nova-office-paths { overflow:visible; }
.nova-office-paths line { stroke:#0a9cab; stroke-width:2.4; stroke-linecap:round; stroke-dasharray:5 7;
  opacity:.78; filter:drop-shadow(0 0 4px #0a9cab80); animation:office-flow 1.05s linear infinite; }
.nova-office-paths line.queued { stroke:#dc9200; animation-duration:.72s; }
.office-core { position:absolute; left:50%; top:51%; width:78px; height:78px; transform:translate(-50%,-50%); pointer-events:none; }
.office-core > span { position:absolute; inset:0; border:2px solid #0a9cab85; border-radius:50%;
  opacity:0; animation:office-wave 2.2s ease-out infinite; }
.office-core > span:nth-child(2) { animation-delay:.65s; }
.office-core > span:nth-child(3) { animation-delay:1.3s; }
.office-core b { position:absolute; right:-2px; top:-2px; width:23px; height:23px; display:grid; place-items:center;
  border:2px solid #fff; border-radius:50%; color:#fff; background:#087481; box-shadow:0 3px 9px #0848514d; font-size:.66rem; }
.office-desk { position:absolute; z-index:1; width:38px; height:38px; padding:0; transform:translate(-50%,-50%);
  border:2px solid #fff; border-radius:50%; color:#fff; background:var(--office-agent-color,#087481); box-shadow:0 3px 12px #07254340; }
.office-desk:is(:hover,:focus-visible) { z-index:2; }
.office-desk:focus-visible { outline:2px solid #17314c; outline-offset:3px; }
.office-initials { position:relative; display:grid; place-items:center; width:100%; height:100%; font-size:.64rem; font-weight:800; }
.office-halo { position:absolute; inset:-7px; border:2px solid #6ac1c9;
  border-color:color-mix(in srgb,var(--office-agent-color,#087481) 70%,white);
  border-radius:50%; opacity:.3; pointer-events:none; }
.office-running .office-halo { animation:office-pulse 1.35s ease-out infinite; }
.office-queued .office-halo { border-color:#e5a019; animation:office-pulse .85s ease-out infinite; }
.office-label { position:absolute; left:50%; top:calc(100% + 7px); width:128px; display:grid; gap:1px; padding:5px 8px;
  transform:translateX(-50%); border:1px solid #c4d2dde6; border-radius:6px; color:#17314c; background:#fffffff0;
  box-shadow:0 3px 9px #0826401a; white-space:nowrap; }
.office-label strong,.office-task small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.64rem; }
.office-label small { color:#596779; font-size:.56rem; }
.office-running .office-label small { color:#087481; font-weight:700; }
.office-queued .office-label small { color:#936300; font-weight:700; }
.office-sparks { position:absolute; inset:-13px; pointer-events:none; }
.office-sparks i { position:absolute; left:50%; bottom:2px; width:4px; height:4px; border-radius:50%;
  background:#11bbcd; opacity:0; animation:office-spark 1.45s ease-out infinite; }
.office-sparks i:nth-child(2) { margin-left:-10px; animation-delay:.42s; }
.office-sparks i:nth-child(3) { margin-left:9px; animation-delay:.82s; }
.office-task { position:absolute; left:50%; bottom:calc(100% + 15px); width:150px; display:grid; gap:3px; padding:9px 10px 8px;
  transform:translateX(-50%); border:1px solid #b9e5eb; border-radius:8px; color:#18314d; background:#fffffff7;
  box-shadow:0 7px 17px #08305029; text-align:left; opacity:0; pointer-events:none; transition:opacity .18s ease,transform .18s ease; }
.office-desk:is(:hover,:focus-visible) .office-task { opacity:1; transform:translate(-50%,-2px); }
.office-task b { color:#087481; font-size:.64rem; text-transform:uppercase; letter-spacing:.04em; }
.office-task > span { height:3px; overflow:hidden; border-radius:99px; background:#e0edef; }
.office-task > span i { display:block; width:42%; height:100%; border-radius:inherit; background:#0a9cab; animation:office-scan 1.35s ease-in-out infinite; }
@keyframes office-flow { to { stroke-dashoffset:-24; } }
@keyframes office-wave {
  0% { opacity:.8; transform:scale(.7); }
  80%,100% { opacity:0; transform:scale(1.65); }
}
@keyframes office-pulse {
  0% { opacity:.75; transform:scale(.75); }
  75%,100% { opacity:0; transform:scale(1.5); }
}
@keyframes office-spark {
  0% { opacity:0; transform:translate(0,0) scale(.7); }
  25% { opacity:1; }
  100% { opacity:0; transform:translate(3px,-29px) scale(1.2); }
}
@keyframes office-scan {
  0%,100% { transform:translateX(-10%); }
  50% { transform:translateX(145%); }
}
.nova-office-status > :not(:last-child) { border-bottom:1px solid var(--line); }
@media (max-width:990px) { .nova-office-layout { grid-template-columns:1fr; } }
@media (max-width:700px) {
  .nova-office-scene { aspect-ratio:4 / 3; overflow:visible; }
  .office-core { width:58px; height:58px; }
  .office-desk { width:34px; height:34px; }
  .office-label { width:clamp(100px,33vw,128px); padding:4px 6px; }
}
html[data-motion="reduced"] :is(.nova-office-paths line,.office-core > span,.office-halo,.office-sparks i,.office-task,.office-task i) {
  animation:none; transition:none;
}
@media (prefers-reduced-motion:reduce) {
  html[data-motion="system"] :is(.nova-office-paths line,.office-core > span,.office-halo,.office-sparks i,.office-task,.office-task i) {
    animation:none; transition:none;
  }
}
@media (max-width:950px) { .shell { grid-template-columns:183px minmax(0,1fr); } }
@media (max-width:700px) {
  .sidebar { width:min(82vw,325px); gap:12px; background:#092631; padding:19px 13px; }
  .sidebar nav button { font-size:14px; padding:9px; }
  .topbar { min-height:64px; padding:8px 11px; }
  .topbar h1 { font-size:19px; }
  .nova-search { min-width:34px; width:34px; height:38px; }
  .drawer-open { color:var(--accent-ink); }
  #content { padding:14px 12px 25px; }
  .nova-hero { min-height:220px; grid-template-columns:minmax(0,1fr) 67px; }
  .nova-hero-copy { padding:22px 6px 22px 18px; }
  .nova-hero h2 { font-size:clamp(29px,8vw,44px); }
  .nova-hero p { font-size:.91rem; }
  .nova-orbit img { width:100%; }
  .nova-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .nova-overview-grid { grid-template-columns:1fr; }
  .nova-plan-row { align-items:flex-start; flex-wrap:wrap; }
  .nova-overview-grid > :last-child { grid-column:auto; }
}
