.app-shell{min-height:100vh;display:flex;flex-direction:column;position:relative}.topbar{--topbar-control-height: 2.3rem;display:flex;justify-content:space-between;align-items:center;padding:1.5rem 3rem;background:linear-gradient(90deg,#ffffffd6,#ffffffed);-webkit-backdrop-filter:blur(14px) saturate(130%);backdrop-filter:blur(14px) saturate(130%);border-bottom:1px solid rgba(198,214,228,.72);box-shadow:0 10px 24px #0c1a280f;position:sticky;top:0;z-index:12}.brand{display:flex;gap:1rem;align-items:center}.nav-toggle-btn{margin-left:.25rem;min-height:var(--topbar-control-height)}.brand-mark{width:44px;height:44px;border-radius:15px;background:linear-gradient(135deg,var(--primary),#1d7fb4 58%,var(--accent));display:grid;place-items:center;color:#fff;font-weight:700;letter-spacing:.02em;box-shadow:0 12px 26px #0f5f8c59;border:1px solid rgba(255,255,255,.5)}.brand-title{font-weight:700;font-size:1.18rem}.brand-sub{font-size:.82rem;color:var(--muted);letter-spacing:.03em;text-transform:uppercase}.topbar-actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:flex-end;align-items:center}.topbar-actions>button,.topbar-actions>.role-pill,.topbar-actions>.theme-picker{min-height:var(--topbar-control-height);display:inline-flex;align-items:center}.topbar-actions>.mode-toggle{min-height:var(--topbar-control-height)}.role-pill{padding:0 .8rem;border-radius:999px;background:#0f6b8d1f;color:var(--primary-dark);font-size:.8rem;align-self:center;border:1px solid rgba(15,107,141,.18);box-shadow:var(--shadow-sm)}.theme-picker{display:inline-flex;align-items:center;gap:.45rem;padding:0 .58rem;border-radius:999px;border:1px solid var(--border);background:var(--surface-ghost);color:var(--muted);font-size:.8rem;box-shadow:var(--shadow-sm)}.theme-picker span{color:var(--muted);font-weight:600}.theme-picker select{border:none;background:transparent;color:var(--ink);font-weight:600;min-width:8.9rem;height:100%;box-shadow:none;padding:0 .2rem}.theme-picker select:focus{box-shadow:none}.db-pill{padding:0 .8rem;border-radius:999px;background:#0f6b8d14;color:var(--primary-dark);font-size:.8rem;align-self:center}.mode-toggle{display:inline-flex;align-items:stretch;border:1px solid var(--border);border-radius:999px;overflow:hidden;background:#ffffffdb;box-shadow:var(--shadow-sm)}.mode-toggle-btn{border:none;background:transparent;min-height:100%;display:inline-flex;align-items:center;padding:0 .9rem;font-size:.8rem;color:var(--muted)}.mode-toggle-btn.active{background:linear-gradient(145deg,#0f6b8d33,#0f6b8d1f);color:var(--primary-dark);font-weight:600}.draft-action{font-size:.82rem}.shell-body{display:grid;grid-template-columns:var(--sidebar-width, 260px) 10px 1fr;gap:1.4rem;padding:1.35rem 2.2rem 2rem;transition:grid-template-columns .2s ease}.shell-body.nav-collapsed{grid-template-columns:var(--sidebar-width, 72px) 1fr;column-gap:.85rem}.sidebar{display:flex;flex-direction:column;gap:1.5rem;min-width:0}.sidebar.collapsed{gap:.8rem}.sidebar.icon-only{gap:.9rem}.sidebar-section{background:linear-gradient(165deg,#fffffff5,#fbfdffe6);border-radius:var(--radius);padding:1.25rem;border:1px solid rgba(207,220,232,.8);box-shadow:var(--shadow)}.sidebar-title{font-weight:600;margin-bottom:.8rem;letter-spacing:.01em}.sidebar.collapsed .sidebar-section{padding:.7rem .45rem}.sidebar.collapsed .sidebar-title{font-size:.72rem;margin-bottom:.5rem;text-align:center}.sidebar.icon-only .sidebar-section{padding:.7rem .55rem}.sidebar.icon-only .sidebar-title{font-size:.72rem;margin-bottom:.5rem;text-align:center}.nav{display:flex;flex-direction:column;gap:.5rem}.nav-link{display:flex;align-items:center;gap:.65rem;padding:.68rem .85rem;border-radius:12px;text-decoration:none;color:var(--ink);font-weight:500;border:1px solid transparent;transition:border-color .14s ease,background-color .14s ease,transform .14s ease}.sidebar.collapsed .nav-link{padding:.46rem .35rem;justify-content:center}.sidebar.icon-only .nav-link{padding:.46rem .35rem;justify-content:center;gap:0}.nav-link-icon{width:1.85rem;height:1.85rem;border-radius:10px;display:inline-grid;place-items:center;font-size:.66rem;font-weight:700;letter-spacing:.03em;color:#f9fdff;background:linear-gradient(145deg,#2f8ebe,#0f6b8d);border:1px solid rgba(255,255,255,.35);box-shadow:inset 0 -6px 10px #0000002e,0 6px 16px #0f5f8c3d}.nav-link-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav-link:hover{transform:translate(2px);border-color:#0f6b8d3d;background:#0f6b8d0f}.nav-link.active{background:linear-gradient(145deg,#0f6b8d29,#0f6b8d1c);color:var(--primary-dark);border-color:#0f6b8d47}.nav-link.active .nav-link-icon{background:linear-gradient(145deg,#1079a4,#0b5f7d)}.status-card{border:1px solid rgba(201,214,226,.95);padding:.9rem;border-radius:14px;margin-bottom:.75rem;background:linear-gradient(170deg,#fff,#f7fbff);box-shadow:var(--shadow-sm)}.status-card.warning{border-color:#c94f3d66;background:#c94f3d0f}.status-label{font-size:.85rem;color:var(--muted)}.status-value{font-size:1.5rem;font-weight:700}.status-sub{font-size:.8rem;color:var(--muted)}.content{display:flex;flex-direction:column;gap:1.6rem;min-width:0}.sidebar-resizer{width:10px;border-radius:8px;background:linear-gradient(180deg,#0f6b8d14,#0f6b8d29);border:1px solid rgba(15,107,141,.16);cursor:col-resize;align-self:stretch}.shell-body.nav-collapsed .sidebar-resizer{display:none}.shell-body.nav-resizing{-webkit-user-select:none;user-select:none;cursor:col-resize}.draft-banner{border:1px solid rgba(201,145,61,.45);background:linear-gradient(150deg,#c9913d29,#c9913d1a);border-radius:15px;padding:.72rem .95rem;display:flex;align-items:center;justify-content:space-between;gap:.8rem;box-shadow:var(--shadow-sm)}.draft-banner-title{font-weight:700;color:#75501d}.draft-banner-meta{display:inline-flex;align-items:center;gap:.5rem;color:#6b5329;flex-wrap:wrap;justify-content:flex-end}.warning-chip{border-radius:999px;padding:.2rem .55rem;font-size:.8rem;background:#c94f3d24;color:#9f2e1e;border:1px solid rgba(201,79,61,.2)}@media (max-width: 1100px){.shell-body{grid-template-columns:1fr}.sidebar-resizer{display:none}}@media (max-width: 700px){.topbar{flex-direction:column;gap:1rem;align-items:flex-start}.topbar-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.draft-banner{flex-direction:column;align-items:flex-start}.draft-banner-meta{justify-content:flex-start}}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f181c80;display:flex;align-items:center;justify-content:center;padding:2rem;z-index:40;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-card{width:min(520px,95vw);background:linear-gradient(180deg,#fffffffa,#f9fcfff2);border-radius:var(--radius);padding:1.5rem;border:1px solid rgba(210,222,232,.92);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;gap:.75rem}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end}.toast{align-self:flex-start;background:linear-gradient(145deg,var(--primary),#1c8ab4 62%);color:#fff;padding:.5rem .95rem;border-radius:999px;border:1px solid rgba(255,255,255,.22);box-shadow:var(--shadow);display:inline-flex;align-items:center;gap:.75rem;font-weight:600}.toast-action{border:none;background:#fff3;color:#fff;padding:.3rem .75rem;border-radius:999px;font-size:.85rem}:root[data-theme=dark] .topbar{background:linear-gradient(90deg,#121c28eb,#0f1722f7);border-bottom:1px solid rgba(98,122,151,.38);box-shadow:0 10px 24px #02081094}:root[data-theme=dark] .role-pill,:root[data-theme=dark] .db-pill{background:#4ba4cc29;border-color:#4ba4cc57;color:#d8f0ff}:root[data-theme=dark] .theme-picker{border-color:#627a976b;background:#202d3ce6}:root[data-theme=dark] .mode-toggle{background:#1d2936eb;border-color:#627a976b}:root[data-theme=dark] .mode-toggle-btn.active{background:linear-gradient(145deg,#4ba4cc3d,#4ba4cc24);color:#d8f0ff}:root[data-theme=dark] .sidebar-section{background:linear-gradient(165deg,#1d2936f2,#182431f0);border:1px solid rgba(88,112,139,.44)}:root[data-theme=dark] .nav-link-icon{color:#e9f5ff;background:linear-gradient(145deg,#2f8ebe,#2b84af);border-color:#6d92b77a;box-shadow:inset 0 -6px 10px #00000047,0 6px 16px #04101d61}:root[data-theme=dark] .nav-link:hover{border-color:#4ba4cc59;background:#4ba4cc2e}:root[data-theme=dark] .nav-link.active{color:#d8f0ff;border-color:#4ba4cc7a;background:linear-gradient(145deg,#4ba4cc47,#4ba4cc33)}:root[data-theme=dark] .nav-link.active .nav-link-icon{background:linear-gradient(145deg,#4ba4cc,#2f8ebe)}:root[data-theme=dark] .status-card{border-color:#58708b80;background:linear-gradient(170deg,#202d3cf5,#1d2936eb)}:root[data-theme=dark] .status-card.warning{border-color:#e46a608c;background:#e46a6024}:root[data-theme=dark] .sidebar-resizer{background:linear-gradient(180deg,#4ba4cc2e,#4ba4cc47);border-color:#4ba4cc52}:root[data-theme=dark] .draft-banner{border-color:#deaa3e8c;background:linear-gradient(150deg,#deaa3e38,#deaa3e1f)}:root[data-theme=dark] .draft-banner-title{color:#fde68a}:root[data-theme=dark] .draft-banner-meta{color:#fcecb2}:root[data-theme=dark] .warning-chip{background:#e46a6033;color:#fecaca;border-color:#e46a606b}:root[data-theme=dark] .modal-card{background:linear-gradient(180deg,#1d2936fa,#182431f2);border-color:#58708b70}:root[data-theme=dark] .horizon-control{border-left-color:#829ab66b}:root[data-theme=kais90s] .topbar{background:linear-gradient(90deg,#221845f0,#1a1333fa);border-bottom:1px solid rgba(143,122,201,.46);box-shadow:0 10px 24px #0a06189e}:root[data-theme=kais90s] .brand-title{color:#f7edff}:root[data-theme=kais90s] .brand-sub{color:#c3b5e3}:root[data-theme=kais90s] .role-pill,:root[data-theme=kais90s] .db-pill{background:#00b5b838;border-color:#00d2d680;color:#d7ffff}:root[data-theme=kais90s] .theme-picker{border-color:#8f7ac980;background:#30255ceb}:root[data-theme=kais90s] .theme-picker span{color:#d1c3ef}:root[data-theme=kais90s] .theme-picker select{color:#f7edff}:root[data-theme=kais90s] .mode-toggle{background:#30255ceb;border-color:#8f7ac980}:root[data-theme=kais90s] .mode-toggle-btn{color:#d1c3ef}:root[data-theme=kais90s] .mode-toggle-btn.active{background:linear-gradient(145deg,#ff4fa35c,#00b5b838);color:#fff3fb}:root[data-theme=kais90s] .sidebar-section{background:linear-gradient(165deg,#30255cf5,#261d4bf2);border:1px solid rgba(143,122,201,.5)}:root[data-theme=kais90s] .sidebar-title{color:#ece2ff}:root[data-theme=kais90s] .nav-link{color:#f7edff}:root[data-theme=kais90s] .nav-link-icon{color:#fff7ff;background:linear-gradient(145deg,#ff4fa3,#00b5b8);border-color:#f8d7ff66;box-shadow:inset 0 -6px 10px #0000004d,0 6px 16px #08041473}:root[data-theme=kais90s] .nav-link:hover{border-color:#ff4fa394;background:#ff4fa333}:root[data-theme=kais90s] .nav-link.active{color:#fff3fb;border-color:#00d2d69e;background:linear-gradient(145deg,#ff4fa361,#00b5b83d)}:root[data-theme=kais90s] .nav-link.active .nav-link-icon{background:linear-gradient(145deg,#ff67b1,#00d2d6)}:root[data-theme=kais90s] .status-card{border-color:#8f7ac985;background:linear-gradient(170deg,#30255cf5,#261d4bed)}:root[data-theme=kais90s] .status-card.warning{border-color:#ff5f6d94;background:#ff5f6d2e}:root[data-theme=kais90s] .status-label,:root[data-theme=kais90s] .status-sub{color:#d1c3ef}:root[data-theme=kais90s] .status-value{color:#fff3fb}:root[data-theme=kais90s] .sidebar-resizer{background:linear-gradient(180deg,#ff4fa342,#00b5b847);border-color:#ff4fa366}:root[data-theme=kais90s] .draft-banner{border-color:#ffb74d8f;background:linear-gradient(150deg,#ffb74d3d,#ff4fa324)}:root[data-theme=kais90s] .draft-banner-title{color:#ffe7b8}:root[data-theme=kais90s] .draft-banner-meta{color:#f8dcff}:root[data-theme=kais90s] .warning-chip{background:#ff5f6d3d;color:#ffd2d6;border-color:#ff5f6d75}:root[data-theme=kais90s] .modal-card{background:linear-gradient(180deg,#30255cfa,#261d4bf2);border-color:#8f7ac980}:root[data-theme=kais90s] .horizon-control{border-left-color:#b09adf80}:root[data-theme=kais3270s] .topbar{background:linear-gradient(90deg,#121b12f5,#0a0f0afc);border-bottom:1px solid rgba(110,231,135,.28);box-shadow:0 10px 24px #020a0294}:root[data-theme=kais3270s] .brand-title{color:#e8ffe2;text-shadow:0 0 12px rgba(110,231,135,.14)}:root[data-theme=kais3270s] .brand-sub{color:#9cc79a}:root[data-theme=kais3270s] .role-pill,:root[data-theme=kais3270s] .db-pill{background:#162016e0;border-color:#6ee78757;color:#dfffd9}:root[data-theme=kais3270s] .theme-picker,:root[data-theme=kais3270s] .mode-toggle{border-color:#6ee7873d;background:#162016f0}:root[data-theme=kais3270s] .theme-picker span,:root[data-theme=kais3270s] .mode-toggle-btn{color:#a8d2a6}:root[data-theme=kais3270s] .theme-picker select{color:#e8ffe2}:root[data-theme=kais3270s] .mode-toggle-btn.active{background:linear-gradient(145deg,#ffb00038,#6ee7872e);color:#fff3c6}:root[data-theme=kais3270s] .sidebar-section,:root[data-theme=kais3270s] .modal-card{background:linear-gradient(170deg,#162016fa,#101910f0);border-color:#6ee7873d}:root[data-theme=kais3270s] .sidebar-title,:root[data-theme=kais3270s] .status-value{color:#e8ffe2}:root[data-theme=kais3270s] .nav-link,:root[data-theme=kais3270s] .status-label,:root[data-theme=kais3270s] .status-sub,:root[data-theme=kais3270s] .draft-banner-meta{color:#a8d2a6}:root[data-theme=kais3270s] .nav-link-icon{color:#e8ffe2;background:linear-gradient(145deg,#1c301f,#2b4730);border-color:#6ee78742;box-shadow:inset 0 -6px 10px #00000047,0 6px 16px #020a0266}:root[data-theme=kais3270s] .nav-link:hover{border-color:#6ee78761;background:#6ee78717}:root[data-theme=kais3270s] .nav-link.active{color:#f8ffd7;border-color:#ffb00057;background:linear-gradient(145deg,#ffb00029,#6ee7871f)}:root[data-theme=kais3270s] .nav-link.active .nav-link-icon{background:linear-gradient(145deg,#3a5f40,#264029)}:root[data-theme=kais3270s] .status-card{border-color:#6ee7873d;background:linear-gradient(170deg,#162016f5,#101910eb)}:root[data-theme=kais3270s] .status-card.warning,:root[data-theme=kais3270s] .warning-chip{border-color:#ffb00057;background:#ffb00024;color:#ffe2a1}:root[data-theme=kais3270s] .sidebar-resizer{background:linear-gradient(180deg,#ffb00033,#6ee78738);border-color:#6ee7873d}:root[data-theme=kais3270s] .draft-banner{border-color:#ffb00052;background:linear-gradient(150deg,#ffb00024,#6ee78714)}:root[data-theme=kais3270s] .draft-banner-title{color:#fff0b8}:root[data-theme=kais3270s] .horizon-control{border-left-color:#6ee7873d}.global-hscroll{position:fixed;bottom:8px;z-index:35;opacity:0;pointer-events:none;transition:opacity .12s ease}.global-hscroll.visible{opacity:1;pointer-events:auto}.global-hscroll-track{width:100%;overflow-x:auto;overflow-y:hidden;height:14px;border-radius:999px;background:#0f172a14;border:1px solid rgba(100,116,139,.28);box-shadow:0 8px 18px #0f172a1f}.global-hscroll-track::-webkit-scrollbar{height:12px}.global-hscroll-track::-webkit-scrollbar-thumb{background:#0f6b8da8;border-radius:999px}.global-hscroll-track::-webkit-scrollbar-track{background:transparent}.global-hscroll-inner{height:1px}@media (max-width: 700px){.global-hscroll{bottom:5px}}.table{display:grid;gap:.5rem;background:linear-gradient(175deg,#fffffffa,#fafdffed);border-radius:var(--radius);padding:1rem;border:1px solid rgba(206,219,231,.88);box-shadow:var(--shadow)}.table-row{display:grid;grid-template-columns:80px 1.45fr 1fr 1.1fr .8fr 1.25fr 120px;gap:1rem;align-items:center;padding:.78rem .55rem;border-bottom:1px solid rgba(214,224,233,.95);cursor:grab;border-radius:10px;transition:background-color .14s ease}.table-row:not(.header):hover{background:#0f6b8d0f}.table-row.header{font-weight:600;color:var(--muted);text-transform:uppercase;font-size:.75rem}.table-row:last-child{border-bottom:none}.table-row-child{background:#0f182608}.rank-cell{font-weight:700}.project-title{font-weight:600}.project-meta{font-size:.8rem;color:var(--muted)}.status-pill{display:inline-flex;align-items:center;padding:.2rem .6rem;border-radius:999px;font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;background:var(--info-bg);color:var(--info-fg);margin-right:.4rem;border:1px solid var(--info-border)}.status-pill.soft{background:#7d88f233;color:#3b46b3}.status-pill.hard{background:#1f6b6333;color:var(--primary-dark)}.status-pill.locked{background:#c94f3d33;color:var(--danger)}.status-pill.warn{background:var(--warning-bg);color:var(--warning-fg)}.period-cell{font-size:.85rem;color:var(--muted)}.actions{display:flex;gap:.4rem}.staffing-cell{display:flex;flex-direction:column;gap:.35rem}.staffing-stats{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.staffing-stat{display:inline-flex;align-items:center;min-height:1.45rem;padding:.1rem .45rem;border-radius:999px;font-size:.72rem;font-weight:600;color:#35516a;background:#d8e3edbf;border:1px solid rgba(149,162,180,.28)}.staffing-stat.gap{color:var(--danger);background:#c94f3d1f;border-color:#c94f3d38}.staffing-stat.ok{color:var(--success-fg);background:#20a3731f;border-color:#20a3733d}.staffing-pill{display:inline-flex;align-items:center;width:fit-content;border-radius:999px;padding:.15rem .55rem;font-size:.7rem;font-weight:700;letter-spacing:.02em}.staffing-pill.green{background:var(--success-bg);color:var(--success-fg);border:1px solid var(--success-border)}.staffing-pill.yellow{background:var(--warning-bg);color:var(--warning-fg);border:1px solid var(--warning-border)}.staffing-pill.red{background:var(--danger-bg);color:var(--danger-fg);border:1px solid var(--danger-border)}.staffing-pill.zero{background:var(--critical-bg);color:var(--critical-fg);border:1px solid var(--critical-border)}.staffing-pill.unknown{background:var(--neutral-bg);color:var(--neutral-fg);border:1px solid var(--neutral-border)}.staffing-meter{position:relative;width:100%;height:18px;border-radius:999px;border:1px solid rgba(149,162,180,.35);background:#dfe7f0b3;overflow:hidden}.staffing-fill{position:absolute;inset:0 auto 0 0;min-width:0;border-radius:999px}.staffing-fill.green{background:linear-gradient(90deg,#1c9b60,#2ab673)}.staffing-fill.yellow{background:linear-gradient(90deg,#e2ad2d,#edc85d)}.staffing-fill.red{background:linear-gradient(90deg,#c94937,#d86756)}.staffing-fill.zero{background:linear-gradient(90deg,#7a1f14,#9c3022)}.staffing-fill.unknown{background:linear-gradient(90deg,#6c7b8f,#8f9db0)}.staffing-value{position:absolute;right:.45rem;top:50%;transform:translateY(-50%);font-size:.72rem;font-weight:700;color:#183146}button.small{padding:.3rem .55rem}@media (max-width: 1000px){.table-row{grid-template-columns:60px 1.6fr 1fr;grid-template-rows:auto auto}.table-row>div:nth-child(4),.table-row>div:nth-child(5),.table-row>div:nth-child(6),.table-row>div:nth-child(7){grid-column:span 3}}:root[data-theme=dark] .table{background:linear-gradient(175deg,#1d2936fa,#182431f0);border-color:#58708b75}:root[data-theme=dark] .table-row{border-bottom-color:#58708b66}:root[data-theme=dark] .table-row-child{background:#4ba4cc14}:root[data-theme=dark] .staffing-stat{color:#d8e6f5;background:#46586cb8;border-color:#748da957}:root[data-theme=dark] .staffing-stat.gap{color:#fecaca;background:#c94f3d29;border-color:#c94f3d47}:root[data-theme=dark] .staffing-stat.ok{color:#b4f0d0;background:#20a37329;border-color:#20a3734d}:root[data-theme=dark] .table-row:not(.header):hover{background:#4ba4cc29}:root[data-theme=dark] .status-pill.soft{background:#95a0ff3d;color:#dbe1ff}:root[data-theme=dark] .status-pill.hard{background:#34a76b3d;color:#aaf0c9}:root[data-theme=dark] .staffing-meter{border-color:#72849970;background:#7284993d}:root[data-theme=dark] .staffing-value{color:#dbe8f7}:root[data-theme=kais90s] .table{background:linear-gradient(175deg,#30255cfa,#261d4bf0);border-color:#8f7ac980}:root[data-theme=kais90s] .table-row{border-bottom-color:#8f7ac966}:root[data-theme=kais90s] .table-row-child{background:#00b5b814}:root[data-theme=kais90s] .table-row:not(.header):hover{background:#ff4fa329}:root[data-theme=kais90s] .status-pill.soft{background:#7d5fff47;color:#eee5ff}:root[data-theme=kais90s] .status-pill.hard{background:#34c59742;color:#b8ffe9}:root[data-theme=kais90s] .staffing-meter{border-color:#a18dd080;background:#a18dd038}:root[data-theme=kais90s] .staffing-value{color:#f7edff}.timeline-board{background:var(--card);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:1.2rem}.timeline-board.compact{padding:.9rem;gap:.75rem}.timeline-board.compact .legend{font-size:.75rem;gap:.65rem}.timeline-board.compact .timeline-scale-wrap{margin-bottom:.35rem}.timeline-board.compact .scale-cell{font-size:.68rem;padding:.12rem .22rem}.timeline-board.compact .scale-sub-label{font-size:.58rem}.timeline-board.compact .timeline-grid{gap:.55rem}.timeline-board.compact .timeline-row{gap:.6rem}.timeline-board.compact .row-label{padding:.12rem .32rem;gap:.15rem}.timeline-board.compact .row-title{font-size:.86rem}.timeline-board.compact .row-meta{font-size:.68rem}.timeline-board.compact .row-actions{gap:.25rem}.timeline-board.compact .row-actions button{padding:.18rem .38rem;font-size:.68rem}.timeline-board.compact .row-track{min-height:34px}.timeline-board.compact .row-track:before{top:12px}.timeline-board.compact .row-bar{padding:.4rem .58rem;border-radius:11px}.timeline-board.compact .row-bar .bar-label{font-size:.72rem}.timeline-board.compact .handle{width:10px;height:18px}.timeline-board.compact .row-bar.baseline{top:4px;height:18px}.timeline-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.legend{display:flex;gap:1rem;flex-wrap:wrap;font-size:.85rem;color:var(--muted)}.legend-item{display:inline-flex;gap:.35rem;align-items:center}.dot{width:10px;height:10px;border-radius:50%;display:inline-block}.dot.hard{background:var(--primary)}.dot.soft{background:var(--soft)}.dot.locked{background:var(--danger)}.dot.risk{background:var(--accent)}.dot.under{background:#c94f3d}.dot.deadline{background:#6e6e6e}.dot.activity{background:#4b8ea6}.dot.goal-solid{background:#435c6b}.dot.goal-buffer{background:#435c6b61}.dot.goal-delay{background:#c94f3de6}.message{padding:.4rem .8rem;border-radius:999px;background:#1f6b631f;color:var(--primary-dark);font-size:.85rem}.timeline-toolbar{display:flex;flex-direction:column;gap:.8rem;background:var(--card);border-radius:var(--radius);padding:1rem;box-shadow:var(--shadow);margin-bottom:1rem}.toolbar-label{font-size:.8rem;color:var(--muted)}.toolbar-note{font-size:.78rem;color:var(--muted);background:#1f6b6314;border:1px solid rgba(31,107,99,.18);border-radius:999px;padding:.2rem .55rem}.toolbar-search{min-width:200px}.timeline-preview{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#f2b45a33;padding:.6rem 1rem;border-radius:12px;margin-bottom:.8rem;position:relative;z-index:80}.preview-actions{display:flex;gap:.6rem}.timeline-layout{display:block}.timeline-grid{display:flex;flex-direction:column;gap:1rem}.timeline-scroll{overflow-x:auto;padding-bottom:.5rem;background:linear-gradient(180deg,#ffffffe6,#fff0)}.timeline-scale-wrap{display:grid;grid-template-columns:240px auto;gap:1rem;align-items:end;margin-bottom:.8rem;min-height:32px;position:sticky;top:0;z-index:3}.timeline-scale-spacer{background:var(--bg);border-radius:10px}.timeline-scale-track{display:flex;flex-direction:column;gap:.2rem}.timeline-month-scale{display:grid;grid-auto-flow:column;grid-auto-columns:var(--timeline-col-width, 60px);gap:0}.month-cell{font-size:.74rem;text-transform:capitalize;color:#3f4550;text-align:center;padding:.1rem .35rem;background:#1f6b6324;border-right:1px solid rgba(0,0,0,.06)}.timeline-scale{display:grid;grid-auto-flow:column;grid-auto-columns:var(--timeline-col-width, 60px);gap:0;min-height:32px}.scale-cell{font-size:.75rem;color:var(--muted);text-align:center;padding:.15rem .2rem;border-radius:0;background:#1f6b6314;border-right:1px dashed rgba(0,0,0,.08);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.08rem;min-height:38px}.scale-label{line-height:1.1}.scale-sub-label{font-size:.63rem;color:#33506a;line-height:1.05;font-weight:600}.scale-cell.risk{background:#f2b45a38;color:#8a4b00}.timeline-row{display:grid;grid-template-columns:240px 1fr;gap:1rem;align-items:center}.timeline-row.activity-row{opacity:.9}.row-label{font-weight:600;position:sticky;left:0;z-index:2;background:var(--bg);padding:.2rem .4rem;border-radius:10px;display:flex;flex-direction:column;gap:.35rem}.row-title{cursor:pointer}.row-meta{font-size:.8rem;color:var(--muted)}.row-meta.baseline-delta{color:#64748b}.row-actions{display:flex;gap:.4rem;flex-wrap:wrap}.row-title.activity-title{font-size:.92rem;color:#3f4550}.row-track{display:flex;flex-direction:column;gap:.5rem;position:relative;min-height:48px;background-image:repeating-linear-gradient(to right,rgba(0,0,0,.06) 0,rgba(0,0,0,.06) 1px,transparent 1px,transparent var(--timeline-col-width, 60px));background-size:var(--timeline-col-width, 60px) 100%}.deadline-line{position:absolute;top:-6px;bottom:-6px;width:0;border-left:2px dashed rgba(110,110,110,.8);z-index:1}.goal-deadline-line{position:absolute;top:-8px;bottom:-8px;width:0;border-left:2px solid rgba(183,41,41,.9);z-index:1}.goal-deadline-line span{position:absolute;top:-14px;left:4px;font-size:.68rem;color:#7a1414;background:#ffffffeb;padding:.1rem .35rem;border-radius:999px;border:1px solid rgba(183,41,41,.2);white-space:nowrap}.row-bar{padding:.7rem 1rem;border-radius:16px;color:#fff;font-weight:500;position:relative;cursor:grab;position:absolute;top:0;transition:transform .2s ease,box-shadow .2s ease;z-index:2}.row-bar.baseline{top:6px;height:24px;padding:.2rem .5rem;border-radius:10px;background:#94a3b859;border:1px dashed rgba(100,116,139,.8);color:#334155;cursor:default;pointer-events:none;z-index:1}.row-bar.baseline .bar-label{font-size:.72rem;font-weight:700}.row-bar.baseline.changed{background:#94a3b873}.row-bar.preview{background:#4b8ea633;color:#1d2b34;border:2px dashed rgba(75,142,166,.6);pointer-events:none;top:0;z-index:3}.row-bar.selected{box-shadow:0 0 0 2px #1f6b6380}.row-track:before{content:"";position:absolute;left:0;right:0;top:18px;height:2px;background:#0000000d}.row-bar:active{cursor:grabbing}.row-bar.dragging{transform:scale(1.02);box-shadow:0 10px 20px #0000002e}.row-bar.hard{background:linear-gradient(90deg,#1f6b63,#3f9f95)}.row-bar.soft{background:linear-gradient(90deg,#7d88f2,#a8b0ff)}.row-bar.locked{outline:2px solid rgba(201,79,61,.7)}.row-bar.risk{box-shadow:0 0 0 2px #f2b45acc}.row-bar.under-resourced{box-shadow:0 0 0 2px #c94f3db8}.row-bar.constraint{box-shadow:0 0 0 2px #c94f3db3}.row-bar.goal-aggregate{background:linear-gradient(90deg,#435c6b,#5f7f8f);box-shadow:0 0 0 1px #435c6b38;cursor:default}.row-bar.goal-aggregate.goal-on-track{background:linear-gradient(90deg,#435c6b,#5f7f8f)}.row-bar.goal-aggregate.goal-risk{background:linear-gradient(90deg,#6f6b42,#9b935b);box-shadow:0 0 0 2px #f2b45a8c}.row-bar.goal-aggregate.goal-off-track{background:linear-gradient(90deg,#884749,#b55e61);box-shadow:0 0 0 2px #c94f3d99}.goal-tail{position:absolute;top:3px;height:30px;border-radius:10px;pointer-events:none;z-index:1}.goal-tail.goal-tail-ahead{background:linear-gradient(90deg,#435c6b57,#435c6b38);border:1px dashed rgba(67,92,107,.6)}.goal-tail.goal-tail-overdue{background:linear-gradient(90deg,#c94f3d70,#c94f3d4d);border:1px solid rgba(201,79,61,.72)}.timeline-row.goal-row .row-label{background:#435c6b14}.row-bar .continuation{position:absolute;top:8px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent}.row-bar .continuation.left{left:-6px;border-right:6px solid rgba(0,0,0,.4)}.row-bar .continuation.right{right:-6px;border-left:6px solid rgba(0,0,0,.4)}.activity-bar-row .continuation{position:absolute;top:8px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent}.activity-bar-row .continuation.left{left:-6px;border-right:6px solid rgba(0,0,0,.4)}.activity-bar-row .continuation.right{right:-6px;border-left:6px solid rgba(0,0,0,.4)}.bar-label{font-size:.85rem}.lock-tag{position:absolute;right:16px;top:-10px;background:#c94f3de6;color:#fff;border-radius:999px;padding:.15rem .45rem;font-size:.65rem}.warn-tag{position:absolute;right:56px;top:-12px;font-size:.68rem;letter-spacing:.01em;background:#c94f3d2e;color:#872b20;padding:.16rem .45rem;border:1px solid rgba(201,79,61,.4);border-radius:999px}.activity-markers{position:absolute;left:0;top:38px;height:10px;width:100%}.activity-marker{position:absolute;height:6px;border-radius:999px;background:#4b8ea6cc}.activity-bar-row{position:absolute;height:26px;border-radius:12px;background:#4b8ea640;border:1px dashed rgba(75,142,166,.7);display:flex;align-items:center;padding:0 .6rem;color:#1d2b34;font-size:.75rem}.expected-finish{position:absolute;top:-6px;bottom:-6px;width:0;border-left:2px dashed rgba(75,142,166,.8)}.timeline-panel{background:var(--card);border-radius:var(--radius);padding:1rem;box-shadow:var(--shadow);position:sticky;top:1rem;display:flex;flex-direction:column;gap:1rem}.timeline-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;background:#11182138;display:flex;justify-content:flex-end;align-items:stretch}.timeline-drawer.timeline-panel{width:min(460px,100vw);height:100dvh;border-radius:0;margin:0;position:relative;top:0;overflow-y:auto;box-shadow:-8px 0 30px #00000029;animation:timelineDrawerIn .18s ease-out}.timeline-drawer .panel-header{position:sticky;top:0;z-index:1;background:var(--card);padding-bottom:.5rem;border-bottom:1px solid var(--border)}@keyframes timelineDrawerIn{0%{transform:translate(18px);opacity:.8}to{transform:translate(0);opacity:1}}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:.6rem}.panel-title{font-weight:700}.panel-sub{font-size:.85rem;color:var(--muted)}.panel-section{display:flex;flex-direction:column;gap:.75rem}.panel-activity-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem;align-items:center}.panel-activity-form button{justify-self:start}.panel-meta{display:flex;flex-direction:column;gap:.4rem;font-size:.9rem}.panel-estimate label{font-size:.8rem;color:var(--muted)}.estimate-row{display:flex;gap:.5rem;align-items:center}.activity-panel{display:flex;flex-direction:column;gap:.8rem}.activity-timeline{position:relative;height:60px;background:#1f6b630f;border-radius:12px;overflow:hidden}.activity-scale{position:absolute;top:0;bottom:0;width:44px;border-right:1px dashed rgba(0,0,0,.08)}.activity-bar{position:absolute;top:16px;height:28px;border-radius:12px;background:#4b8ea6d9;color:#fff;display:flex;align-items:center;padding:0 .6rem;font-size:.75rem;cursor:grab}.activity-bar.warn{box-shadow:0 0 0 2px #c94f3db3}.activity-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-handle{position:absolute;top:4px;width:10px;height:20px;border-radius:6px;background:#ffffffb3}.activity-handle.start{left:4px;cursor:ew-resize}.activity-handle.end{right:4px;cursor:ew-resize}.activity-list{display:flex;flex-direction:column;gap:.6rem}.activity-row{display:flex;justify-content:space-between;gap:.6rem;border-bottom:1px solid var(--border);padding-bottom:.4rem}.activity-row:last-child{border-bottom:none}.activity-name{font-weight:600}.activity-sub{font-size:.8rem;color:var(--muted)}.activity-warning{margin-left:.4rem;color:var(--danger);font-weight:600}.handle{position:absolute;top:50%;display:block;width:12px;height:28px;border-radius:6px;background:#fffc;transform:translateY(-50%);z-index:4;touch-action:none;box-shadow:0 0 0 1px #0f172a14}.handle:before{content:"";position:absolute;top:-10px;right:-8px;bottom:-10px;left:-8px}.handle.start{left:-2px;cursor:ew-resize}.handle.end{right:-2px;cursor:ew-resize}.drop-zones{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-top:3.2rem}.drop{background:transparent;border:1px dashed var(--border);padding:.35rem .8rem;border-radius:999px;font-size:.8rem;color:var(--muted);min-width:140px;text-align:center}.drop:hover{border-color:var(--primary);color:var(--primary-dark)}.conflict-pill{padding:.3rem .7rem;border-radius:999px;font-size:.75rem;background:#f2b45a40;color:#8a4b00}.conflict-pill.warn{background:#c94f3d33;color:var(--danger)}:root[data-theme=dark] .timeline-scroll{background:linear-gradient(180deg,#182431f2,#18243100)}:root[data-theme=dark] .message,:root[data-theme=dark] .toolbar-note{background:#4ba4cc2e;border-color:#4ba4cc57;color:#d8f0ff}:root[data-theme=dark] .timeline-preview{background:#deaa3e38}:root[data-theme=dark] .month-cell{color:#dbe8f7;background:#4ba4cc33;border-right-color:#829ab64d}:root[data-theme=dark] .scale-cell{background:#4ba4cc21;border-right-color:#829ab647}:root[data-theme=dark] .scale-sub-label{color:#b7c9dd}:root[data-theme=dark] .scale-cell.risk{background:#deaa3e3d;color:#fde68a}:root[data-theme=dark] .row-meta.baseline-delta{color:#b7c9dd}:root[data-theme=dark] .row-title.activity-title{color:#dbe8f7}:root[data-theme=dark] .row-track{background-image:repeating-linear-gradient(to right,rgba(130,154,182,.2) 0,rgba(130,154,182,.2) 1px,transparent 1px,transparent var(--timeline-col-width, 60px))}:root[data-theme=dark] .row-track:before{background:#829ab633}:root[data-theme=dark] .deadline-line{border-left-color:#c9d5e5b3}:root[data-theme=dark] .goal-deadline-line{border-left-color:#e46a60d9}:root[data-theme=dark] .goal-deadline-line span{color:#fecaca;background:#1d2936f5;border-color:#e46a6057}:root[data-theme=dark] .row-bar.baseline{background:#72849957;border-color:#7284999e;color:#d7e1ec}:root[data-theme=dark] .row-bar.preview{background:#4ba4cc42;color:#d8f0ff;border-color:#4ba4ccb8}:root[data-theme=dark] .timeline-row.goal-row .row-label{background:#72849933}:root[data-theme=dark] .lock-tag{background:#e46a60e0}:root[data-theme=dark] .warn-tag{background:#e46a6033;color:#fecaca;border-color:#e46a606b}:root[data-theme=dark] .activity-marker{background:#4ba4cce6}:root[data-theme=dark] .activity-bar-row{background:#4ba4cc47;border-color:#4ba4ccad;color:#d8f0ff}:root[data-theme=dark] .expected-finish{border-left-color:#4ba4ccbf}:root[data-theme=dark] .timeline-drawer-backdrop{background:#050a126b}:root[data-theme=dark] .timeline-drawer.timeline-panel{box-shadow:-8px 0 30px #0208107a}:root[data-theme=dark] .activity-timeline{background:#4ba4cc1f}:root[data-theme=dark] .activity-scale{border-right-color:#829ab64d}:root[data-theme=dark] .activity-bar{background:#4ba4cce0}:root[data-theme=dark] .activity-handle,:root[data-theme=dark] .handle{background:#d7e7f7c7}:root[data-theme=dark] .conflict-pill{background:#deaa3e38;color:#fde68a}:root[data-theme=dark] .conflict-pill.warn{background:#e46a6033;color:#fecaca}:root[data-theme=kais90s] .timeline-scroll{background:linear-gradient(180deg,#261d4bf2,#261d4b00)}:root[data-theme=kais90s] .message,:root[data-theme=kais90s] .toolbar-note{background:#00b5b833;border-color:#00d2d666;color:#d7ffff}:root[data-theme=kais90s] .timeline-preview{background:#ffb74d38}:root[data-theme=kais90s] .month-cell{color:#f4e9ff;background:#00b5b833;border-right-color:#b09adf52}:root[data-theme=kais90s] .scale-cell{background:#00b5b81f;border-right-color:#b09adf4d}:root[data-theme=kais90s] .scale-sub-label{color:#d5c6f3}:root[data-theme=kais90s] .scale-cell.risk{background:#ffb74d3d;color:#ffe7b8}:root[data-theme=kais90s] .row-meta.baseline-delta{color:#d5c6f3}:root[data-theme=kais90s] .row-title.activity-title{color:#f4e9ff}:root[data-theme=kais90s] .row-track{background-image:repeating-linear-gradient(to right,rgba(176,154,223,.22) 0,rgba(176,154,223,.22) 1px,transparent 1px,transparent var(--timeline-col-width, 60px))}:root[data-theme=kais90s] .row-track:before{background:#b09adf3d}:root[data-theme=kais90s] .deadline-line{border-left-color:#e7d6ffb8}:root[data-theme=kais90s] .goal-deadline-line{border-left-color:#ff5f6ddb}:root[data-theme=kais90s] .goal-deadline-line span{color:#ffd2d6;background:#30255cf5;border-color:#ff5f6d5c}:root[data-theme=kais90s] .row-bar.baseline{background:#a18dd057;border-color:#a18dd0a3;color:#f4e9ff}:root[data-theme=kais90s] .row-bar.preview{background:#00b5b83d;color:#d7ffff;border-color:#00d2d6b8}:root[data-theme=kais90s] .timeline-row.goal-row .row-label{background:#a18dd033}:root[data-theme=kais90s] .lock-tag{background:#ff5f6de6}:root[data-theme=kais90s] .warn-tag{background:#ff5f6d38;color:#ffd2d6;border-color:#ff5f6d75}:root[data-theme=kais90s] .activity-marker{background:#00b5b8e6}:root[data-theme=kais90s] .activity-bar-row{background:#00b5b842;border-color:#00d2d6b3;color:#d7ffff}:root[data-theme=kais90s] .expected-finish{border-left-color:#00d2d6cc}:root[data-theme=kais90s] .timeline-drawer-backdrop{background:#0a061873}:root[data-theme=kais90s] .timeline-drawer.timeline-panel{box-shadow:-8px 0 30px #0a061885}:root[data-theme=kais90s] .activity-timeline{background:#00b5b81f}:root[data-theme=kais90s] .activity-scale{border-right-color:#b09adf52}:root[data-theme=kais90s] .activity-bar{background:#00b5b8e6}:root[data-theme=kais90s] .activity-handle,:root[data-theme=kais90s] .handle{background:#f7edffcc}:root[data-theme=kais90s] .conflict-pill{background:#ffb74d3d;color:#ffe7b8}:root[data-theme=kais90s] .conflict-pill.warn{background:#ff5f6d38;color:#ffd2d6}@media (max-width: 900px){.timeline-row,.timeline-scale-wrap{grid-template-columns:1fr!important}.timeline-scale-spacer{display:none}.timeline-drawer.timeline-panel{width:100vw}}.right-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:70;background:#11182138;display:flex;justify-content:flex-end;align-items:stretch;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.right-drawer-panel{width:min(460px,100vw);height:100dvh;overflow-y:auto;background:var(--card);border-radius:0;border-left:1px solid var(--border);box-shadow:-8px 0 30px #00000029;padding:1rem;display:flex;flex-direction:column;gap:.9rem;animation:rightDrawerIn .18s ease-out}.right-drawer-header{position:sticky;top:0;z-index:1;background:var(--card);padding-bottom:.5rem;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:.6rem}.right-drawer-title{font-weight:700}.right-drawer-sub{font-size:.85rem;color:var(--muted)}.right-drawer-body{display:flex;flex-direction:column;gap:.85rem}@keyframes rightDrawerIn{0%{transform:translate(18px);opacity:.8}to{transform:translate(0);opacity:1}}@media (max-width: 900px){.right-drawer-panel{width:100vw}}.capacity-toolbar{display:flex;flex-direction:column;gap:1rem;background:linear-gradient(175deg,#fffffffa,#fafdffed);border-radius:var(--radius);padding:1rem 1.2rem;border:1px solid rgba(206,219,231,.9);box-shadow:var(--shadow)}.horizon-control{display:inline-flex;align-items:center;gap:.5rem;margin-left:.75rem;padding-left:.75rem;border-left:1px solid rgba(0,0,0,.08);font-size:.85rem;color:var(--muted)}.toolbar-group{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.view-toggle{display:inline-flex;gap:.35rem;padding:.2rem;border-radius:12px;border:1px solid rgba(206,219,231,.9);background:#f8fbfd}.view-toggle .ghost{min-height:34px;border-radius:10px}.view-toggle .ghost.active{background:linear-gradient(120deg,#1f6b6324,#0f6b8d24);border-color:#1f6b6359;color:#13443f}.capacity-toolbar select,.capacity-toolbar input[type=text],.capacity-toolbar input[type=number]{min-height:36px;padding:.45rem .65rem}.filter-block{display:flex;flex-direction:column;gap:.35rem;min-width:160px}.filter-block label{font-size:.8rem;color:var(--muted);font-weight:600;letter-spacing:.01em}.filter-list{max-height:140px;overflow:auto;border:1px solid var(--border);border-radius:12px;padding:.5rem;background:#fff}.filter-item{display:flex;align-items:center;gap:.4rem;font-size:.85rem}.filter-block-person{min-width:270px;max-width:360px}.person-filter{position:relative}.person-filter-trigger{width:100%;border:1px solid var(--border);border-radius:12px;background:linear-gradient(180deg,#fff,#f6f8fa);padding:.56rem .7rem;display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-size:.85rem;color:#1f2733;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease}.person-filter-trigger:hover{border-color:#1f6b6373}.person-filter-trigger.open{border-color:var(--primary);box-shadow:0 0 0 3px #1f6b6329}.person-filter-chevron{font-size:.75rem;color:#4b5868;transition:transform .14s ease}.person-filter-trigger.open .person-filter-chevron{transform:rotate(180deg)}.person-filter-panel{position:absolute;top:calc(100% + 8px);left:0;width:min(360px,calc(100vw - 36px));border:1px solid var(--border);border-radius:14px;padding:.6rem;background:#fff;box-shadow:0 16px 28px #111a2726;z-index:25;display:grid;gap:.45rem}.person-filter-search{border:1px solid var(--border);border-radius:10px;padding:.45rem .55rem;font-size:.84rem}.person-filter-actions{display:flex;gap:.35rem}.person-filter-actions .ghost{padding:.24rem .5rem;font-size:.75rem}.person-filter-list{max-height:240px;overflow:auto;display:grid;gap:.3rem;padding:.2rem .1rem}.person-filter-option{border:1px solid rgba(203,210,219,.95);border-radius:10px;padding:.38rem .45rem;display:flex;align-items:center;gap:.45rem;text-align:left;background:#fff;cursor:pointer}.person-filter-option:hover{border-color:#1f6b636b;background:#1f6b630d}.person-filter-option.selected{border-color:#1f6b6394;background:#1f6b631c}.person-filter-option-check{width:18px;height:18px;border-radius:6px;border:1px solid rgba(31,107,99,.42);display:grid;place-items:center;font-size:.74rem;color:#fff;background:#1f6b63e6;flex:0 0 18px}.person-filter-option:not(.selected) .person-filter-option-check{background:#fff;color:transparent}.person-filter-option-name{font-size:.84rem;color:#27313f}.person-filter-empty{padding:.45rem;font-size:.82rem;color:var(--muted);text-align:center}.person-filter-chips{display:flex;flex-wrap:wrap;gap:.35rem}.person-chip{border:1px solid rgba(31,107,99,.35);border-radius:999px;background:#1f6b6317;color:#1f3640;font-size:.75rem;padding:.18rem .5rem;cursor:pointer}.person-chip span{opacity:.75}.person-chip.more{cursor:default;border-color:#00000024;background:#0000000f}.person-filter-hint{font-size:.74rem;color:var(--muted)}.capacity-board{display:flex;flex-direction:column;gap:.6rem;margin-top:1rem;overflow-x:auto}.board-header{display:grid;grid-template-columns:240px 1fr;position:sticky;top:0;background:var(--bg);z-index:5}.board-sticky{position:sticky;left:0;z-index:4;background:var(--bg);padding:.5rem;border-right:1px solid var(--border)}.period-group-row,.period-row{display:grid;gap:.25rem;width:max-content}.period-group-row{grid-auto-columns:1fr;background:#1f6b631a;border-radius:12px;padding:.4rem .6rem;font-weight:600;color:var(--primary-dark)}.period-group{text-align:center}.period-row{grid-auto-columns:1fr;padding:.4rem .6rem}.period-cell-header{text-align:center;font-size:.85rem;color:var(--muted)}.board-row{display:grid;grid-template-columns:240px 1fr;gap:.4rem}.person-card{display:flex;gap:.75rem;align-items:flex-start}.person-avatar{width:38px;height:38px;border-radius:12px;background:#1f6b632e;display:grid;place-items:center;font-weight:700;color:var(--primary-dark)}.person-name{font-weight:600}.person-skills{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.2rem}.skill-chip{font-size:.7rem;padding:.1rem .4rem;border-radius:999px;background:#1f6b631a}.person-total{font-size:.8rem;color:var(--muted);margin-top:.25rem;display:flex;align-items:center;gap:.4rem}.person-warning-badge{font-size:.65rem;padding:.1rem .35rem;border-radius:999px;background:#f2b45a4d;color:#8a4b00;font-weight:600}.person-warning-badge.fixed{background:#53535333;color:#2b2b2b}.board-grid{position:relative;display:grid;gap:.25rem;padding:.5rem;border-radius:16px;background:linear-gradient(180deg,#fffffff5,#f9fcffeb);border:1px solid rgba(209,220,230,.86);width:max-content}.capacity-cell{min-height:var(--capacity-cell-height, 64px);border:1px solid var(--border);border-radius:12px;padding:.35rem .5rem;background:#1f6b630a;position:relative}.capacity-cell.load-green{border-color:#1f6b6357;background:#1f6b631f}.capacity-cell.load-yellow{border-color:#daab3e80;background:#daab3e2e}.capacity-cell.load-red{border-color:#c94f3d99;background:#c94f3d33}.cell-free{font-size:.8rem;color:var(--primary-dark);font-weight:600}.cell-flag{position:absolute;top:6px;right:6px;font-size:.65rem;padding:.15rem .35rem;border-radius:999px;background:#c94f3d33;color:var(--danger)}.cell-flag.secondary{top:26px;background:#53535333;color:#2f2f2f}.capacity-cell.over-hard{border-color:#c94f3d99;background:#c94f3d33}.capacity-cell.over-total{border-color:#c94f3de6;background:#c94f3d42}.allocation-layer{position:absolute;top:.5rem;right:.5rem;bottom:.5rem;left:.5rem;display:grid;gap:.25rem;align-content:start;pointer-events:none}.fixed-load-layer{position:absolute;top:.5rem;right:.5rem;bottom:.5rem;left:.5rem;display:grid;gap:.15rem;align-content:end;pointer-events:none;z-index:1}.fixed-load-block{border-radius:9px;border:1px solid rgba(95,95,95,.45);background:#d6d6d6;color:#292929;padding:.1rem .35rem;display:flex;align-items:center;justify-content:space-between;gap:.3rem;font-size:.72rem;line-height:1;box-shadow:inset 0 0 0 1px #ffffff26}.fixed-load-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fixed-load-sub{font-variant-numeric:tabular-nums}.allocation-block{pointer-events:auto;border-radius:12px;padding:.4rem 1.3rem .4rem .6rem;height:36px;border:2px solid transparent;display:flex;flex-direction:column;gap:.2rem;position:relative;box-shadow:0 6px 14px #1414141f;overflow:hidden;z-index:2;justify-self:stretch;transition:box-shadow .12s ease,opacity .12s ease;will-change:transform,width}.allocation-block.is-previewing{box-shadow:0 10px 24px #111a2738;opacity:.98;z-index:5}.allocation-block.is-previewing:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border:2px solid rgba(255,255,255,.55);border-radius:12px;pointer-events:none}.allocation-block.preview-move{cursor:grabbing}.allocation-block.preview-left,.allocation-block.preview-right{cursor:ew-resize}.allocation-block.is-previewing .resize-handle{opacity:.95}.allocation-block.allocation-load-green{background:#1f8f57;color:#fff}.allocation-block.allocation-load-yellow{background:#f0b53f;color:#2d2200}.allocation-block.allocation-load-red{background:#c94937;color:#fff}.allocation-block.allocation-load-green .allocation-sub,.allocation-block.allocation-load-red .allocation-sub{opacity:.95;color:#fffffff2}.allocation-block.allocation-load-yellow .allocation-sub{opacity:.95;color:#2d2200eb}.allocation-remove{position:absolute;top:3px;right:4px;width:16px;height:16px;border:none;border-radius:999px;background:#ffffffd9;color:#1d1b1b;font-size:.8rem;line-height:1;padding:0;cursor:pointer}.allocation-remove:hover{background:#c94f3d38}.allocation-title{font-weight:600;font-size:.85rem;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.allocation-sub{font-size:.75rem;opacity:.85}.resize-handle{position:absolute;top:0;bottom:0;width:12px;cursor:ew-resize;background:linear-gradient(to bottom,#ffffff3d,#0000001f);opacity:.65;border-radius:6px}.resize-handle.left{left:-3px}.resize-handle.right{right:-3px}.capacity-context-layer{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f12144d;z-index:20;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.capacity-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#1118213d;display:flex;justify-content:flex-end;align-items:stretch;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.capacity-drawer-panel{width:min(500px,100vw);height:100dvh;overflow-y:auto;background:var(--card);border-left:1px solid var(--border);box-shadow:-10px 0 30px #00000029;padding:1rem;display:flex;flex-direction:column;gap:.9rem;animation:capacityDrawerIn .18s ease-out}.capacity-drawer-panel .panel-header{position:sticky;top:0;z-index:1;background:var(--card);padding-bottom:.5rem;border-bottom:1px solid var(--border)}.capacity-drawer-panel .panel-header{display:flex;justify-content:space-between;align-items:center;gap:.6rem}.capacity-drawer-panel .panel-title{font-weight:700}.capacity-drawer-panel .panel-sub{font-size:.85rem;color:var(--muted)}.capacity-drawer-panel .panel-section{display:flex;flex-direction:column;gap:.75rem}@keyframes capacityDrawerIn{0%{transform:translate(18px);opacity:.8}to{transform:translate(0);opacity:1}}.capacity-context{position:fixed;width:300px;max-height:calc(100vh - 24px);overflow-y:auto;background:var(--card);border-radius:16px;padding:1rem;box-shadow:var(--shadow);border:1px solid var(--border);display:flex;flex-direction:column;gap:.4rem}.capacity-impact-dialog.capacity-context{width:min(560px,calc(100vw - 24px))}.capacity-impact-info{font-size:.84rem;color:#3a4250;background:#0f5f8c14;border:1px solid rgba(15,95,140,.2);border-radius:10px;padding:.55rem .65rem}.capacity-impact-summary{border:1px solid var(--border);background:#1f6b630d;border-radius:10px;padding:.5rem .65rem;display:grid;gap:.35rem}.capacity-impact-summary.compact{margin-top:.35rem}.capacity-impact-summary-row{display:flex;justify-content:space-between;gap:.75rem;font-size:.82rem}.capacity-impact-summary-row span{color:var(--muted)}.capacity-impact-summary-row strong{color:#1c2533;display:inline-flex;gap:.3rem;flex-wrap:wrap;justify-content:flex-end}.studio-rebalance-dialog .capacity-impact-option{cursor:default}.studio-rebalance-dialog .capacity-impact-option select,.studio-rebalance-dialog .capacity-impact-option input{margin-top:.15rem}.studio-rebalance-stepper{display:flex;gap:.45rem;flex-wrap:wrap}.studio-rebalance-stepper .step-pill{display:inline-flex;align-items:center;border-radius:999px;border:1px solid #c8d2dd;background:#f5f8fb;color:#516072;font-size:.73rem;font-weight:700;padding:.18rem .55rem}.studio-rebalance-stepper .step-pill.active{border-color:#89b79f;background:#eaf5ef;color:#1e5d53}.studio-rebalance-visual{border:1px solid var(--border);border-radius:12px;background:#fff;padding:.55rem .65rem;display:grid;gap:.45rem}.studio-rebalance-legend{display:flex;gap:.55rem;flex-wrap:wrap}.studio-rebalance-legend .legend-item{display:inline-flex;align-items:center;gap:.3rem;font-size:.73rem;color:#3e4857}.studio-rebalance-legend .legend-swatch{width:14px;height:8px;border-radius:6px;display:inline-block}.studio-rebalance-legend .legend-swatch.source{background:#4e7da8}.studio-rebalance-legend .legend-swatch.target{background:#1f6b63}.studio-rebalance-legend .legend-swatch.shifted{background:#8a63c7}.studio-rebalance-legend .legend-swatch.conflict{background:repeating-linear-gradient(45deg,#c2314a,#c2314a 4px,#efb6c0 4px,#efb6c0 8px)}.studio-rebalance-axis{display:flex;justify-content:space-between;color:var(--muted);font-size:.72rem}.studio-rebalance-row{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:.45rem}.studio-rebalance-row .row-label{color:#2a3443;font-size:.76rem;font-weight:600}.studio-rebalance-row .row-value{color:#2a3443;font-size:.74rem;font-weight:600;white-space:nowrap}.studio-rebalance-track{position:relative;min-height:14px;border-radius:999px;background:#edf1f5;overflow:hidden}.studio-rebalance-segment{position:absolute;top:2px;bottom:2px;border-radius:999px}.studio-rebalance-segment.source{background:linear-gradient(120deg,#5a89b2,#456e95)}.studio-rebalance-segment.target{background:linear-gradient(120deg,#2c7f76,#1f6b63)}.studio-rebalance-segment.shifted{background:linear-gradient(120deg,#a77dd8,#7a5eb5)}.studio-rebalance-segment.conflict{background:repeating-linear-gradient(45deg,#ba273f,#ba273f 4px,#f2b4bf 4px,#f2b4bf 8px);box-shadow:inset 0 0 0 1px #78142659}.capacity-state-pill{display:inline-flex;align-items:center;padding:.1rem .45rem;border-radius:999px;font-size:.7rem;font-weight:700;border:1px solid transparent}.capacity-state-pill.hard{color:#7e1c2a;background:#ffe8ec;border-color:#f2a4b1}.capacity-state-pill.soft{color:#7a5a0e;background:#fff2d8;border-color:#ebcd8b}.capacity-state-pill.deadline{color:#113f61;background:#e9f4ff;border-color:#9ec4e5}.capacity-state-pill.neutral{color:#4c5564;background:#f1f4f8;border-color:#d3dae2}.capacity-impact-options{display:grid;gap:.5rem}.capacity-impact-option{border:1px solid var(--border);border-radius:12px;background:#fff;padding:.6rem .7rem;text-align:left;cursor:pointer;display:grid;gap:.2rem;transition:border-color .14s ease,box-shadow .14s ease,background-color .14s ease}.capacity-impact-option:hover{border-color:#1f6b6373}.capacity-impact-option.selected{border-color:var(--primary);background:#1f6b6314;box-shadow:inset 0 0 0 1px #1f6b6329}.capacity-impact-option-title{font-size:.9rem;font-weight:700;color:#1c2533}.capacity-impact-option-sub{font-size:.8rem;color:#4c5564}.capacity-impact-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.2rem;padding-top:.5rem;border-top:1px solid var(--border)}.context-title{font-weight:700}.context-sub{font-size:.85rem;color:var(--muted)}.context-form{display:flex;flex-direction:column;gap:.6rem}.context-form label{font-size:.8rem;color:var(--muted)}.context-form select,.context-form input{padding:.45rem .6rem;border-radius:10px;border:1px solid var(--border)}.context-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.4rem}.capacity-context .table-mini-row,.capacity-drawer-panel .table-mini-row{grid-template-columns:1fr auto auto;align-items:start}.capacity-context .table-mini-row button,.capacity-drawer-panel .table-mini-row button{align-self:start;margin-top:1.15rem}.studio-period-suggestion{border:1px solid rgba(15,95,140,.24);background:#0f5f8c17;border-radius:10px;padding:.6rem .7rem;display:flex;flex-direction:column;gap:.35rem}.studio-period-suggestion-title{font-size:.85rem;font-weight:700;color:#12364c}.studio-period-suggestion-meta{font-size:.82rem;color:#2f4050}.studio-period-suggestion-actions{margin-top:.15rem}.capacity-context-allocation-item{display:grid;gap:.35rem}.capacity-context-allocation-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:600}.capacity-context-allocation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;align-items:center}.capacity-context-allocation-grid label{font-size:.72rem;color:var(--muted)}.capacity-context-allocation-grid input{width:100%;min-width:0}:root[data-theme=dark] .capacity-toolbar{background:linear-gradient(175deg,#1d2936fa,#182431ed);border-color:#58708b75}:root[data-theme=dark] .horizon-control{border-left-color:#829ab661}:root[data-theme=dark] .view-toggle{background:#1d2936eb;border-color:#58708b70}:root[data-theme=dark] .view-toggle .ghost.active{background:linear-gradient(120deg,#4ba4cc42,#4ba4cc29);border-color:#4ba4cc7a;color:#d8f0ff}:root[data-theme=dark] .filter-list,:root[data-theme=dark] .person-filter-panel,:root[data-theme=dark] .person-filter-option,:root[data-theme=dark] .studio-rebalance-visual,:root[data-theme=dark] .capacity-impact-option{background:#1d2936f2;border-color:#58708b75}:root[data-theme=dark] .person-filter-trigger{background:linear-gradient(180deg,#202d3cfa,#1d2936f2);color:#dbe8f7}:root[data-theme=dark] .person-filter-chevron,:root[data-theme=dark] .person-filter-option-name,:root[data-theme=dark] .studio-rebalance-row .row-label,:root[data-theme=dark] .studio-rebalance-row .row-value,:root[data-theme=dark] .capacity-impact-option-title,:root[data-theme=dark] .studio-period-suggestion-title{color:#dbe8f7}:root[data-theme=dark] .person-filter-option:hover,:root[data-theme=dark] .capacity-impact-option.selected{border-color:#4ba4cc80;background:#4ba4cc29}:root[data-theme=dark] .person-filter-option.selected{background:#4ba4cc33}:root[data-theme=dark] .person-filter-option-check{border-color:#4ba4cc80;background:#4ba4ccd9}:root[data-theme=dark] .person-filter-option:not(.selected) .person-filter-option-check{background:#1d2936e6}:root[data-theme=dark] .person-chip{border-color:#4ba4cc6b;background:#4ba4cc24;color:#d8f0ff}:root[data-theme=dark] .person-chip.more{border-color:#72849975;background:#72849933;color:#c9d7e6}:root[data-theme=dark] .period-group-row{background:#4ba4cc29;color:#d8f0ff}:root[data-theme=dark] .person-avatar{background:#4ba4cc3d;color:#d8f0ff}:root[data-theme=dark] .skill-chip{background:#4ba4cc2e;color:#d8f0ff}:root[data-theme=dark] .person-warning-badge{background:#deaa3e3d;color:#fde68a}:root[data-theme=dark] .person-warning-badge.fixed{background:#7284993d;color:#dbe8f7}:root[data-theme=dark] .board-grid{background:linear-gradient(180deg,#1d2936f7,#182431f0);border-color:#58708b75}:root[data-theme=dark] .capacity-cell{background:#4ba4cc1a}:root[data-theme=dark] .capacity-cell.load-green{border-color:#34a76b8a;background:#34a76b38}:root[data-theme=dark] .capacity-cell.load-yellow{border-color:#deaa3e8f;background:#deaa3e3d}:root[data-theme=dark] .capacity-cell.load-red,:root[data-theme=dark] .capacity-cell.over-hard,:root[data-theme=dark] .capacity-cell.over-total{border-color:#e46a609e;background:#e46a6038}:root[data-theme=dark] .cell-flag{background:#e46a603d;color:#fecaca}:root[data-theme=dark] .cell-flag.secondary{background:#7284993d;color:#dbe8f7}:root[data-theme=dark] .fixed-load-block{border-color:#829ab666;background:#7284994d;color:#e6eef8;box-shadow:inset 0 0 0 1px #e6eef81f}:root[data-theme=dark] .allocation-remove{background:#182431e0;color:#d8f0ff}:root[data-theme=dark] .allocation-remove:hover{background:#e46a6052}:root[data-theme=dark] .resize-handle{background:linear-gradient(to bottom,#e6eef838,#06141f33)}:root[data-theme=dark] .capacity-context-layer{background:#050a126b}:root[data-theme=dark] .capacity-drawer-backdrop{background:#050a1275}:root[data-theme=dark] .capacity-drawer-panel{box-shadow:-10px 0 30px #0208107a}:root[data-theme=dark] .capacity-impact-info,:root[data-theme=dark] .studio-period-suggestion{border-color:#4ba4cc6b;background:#4ba4cc29}:root[data-theme=dark] .capacity-impact-summary{background:#4ba4cc1a;border-color:#58708b75}:root[data-theme=dark] .capacity-impact-summary-row strong,:root[data-theme=dark] .capacity-impact-option-sub,:root[data-theme=dark] .studio-period-suggestion-meta{color:#c9d7e6}:root[data-theme=dark] .studio-rebalance-stepper .step-pill{border-color:#58708b80;background:#202d3ce6;color:#c9d7e6}:root[data-theme=dark] .studio-rebalance-stepper .step-pill.active{border-color:#4ba4cc8c;background:#4ba4cc33;color:#d8f0ff}:root[data-theme=dark] .studio-rebalance-track{background:#72849947}:root[data-theme=dark] .capacity-state-pill.hard{color:#fecaca;background:#e46a603d;border-color:#e46a6070}:root[data-theme=dark] .capacity-state-pill.soft{color:#fde68a;background:#deaa3e3d;border-color:#deaa3e70}:root[data-theme=dark] .capacity-state-pill.deadline{color:#d8f0ff;background:#4ba4cc38;border-color:#4ba4cc73}:root[data-theme=dark] .capacity-state-pill.neutral{color:#dbe8f7;background:#7284993d;border-color:#7284996b}:root[data-theme=kais90s] .capacity-toolbar{background:linear-gradient(175deg,#30255cfa,#261d4bf0);border-color:#8f7ac980}:root[data-theme=kais90s] .horizon-control{border-left-color:#b09adf70}:root[data-theme=kais90s] .view-toggle{background:#30255ceb;border-color:#8f7ac980}:root[data-theme=kais90s] .view-toggle .ghost.active{background:linear-gradient(120deg,#ff4fa352,#00b5b82e);border-color:#ff4fa394;color:#fff3fb}:root[data-theme=kais90s] .filter-list,:root[data-theme=kais90s] .person-filter-panel,:root[data-theme=kais90s] .person-filter-option,:root[data-theme=kais90s] .studio-rebalance-visual,:root[data-theme=kais90s] .capacity-impact-option{background:#30255cf2;border-color:#8f7ac980}:root[data-theme=kais90s] .person-filter-trigger{background:linear-gradient(180deg,#372963fa,#30255cf2);color:#f4e9ff}:root[data-theme=kais90s] .person-filter-chevron,:root[data-theme=kais90s] .person-filter-option-name,:root[data-theme=kais90s] .studio-rebalance-row .row-label,:root[data-theme=kais90s] .studio-rebalance-row .row-value,:root[data-theme=kais90s] .capacity-impact-option-title,:root[data-theme=kais90s] .studio-period-suggestion-title{color:#f4e9ff}:root[data-theme=kais90s] .person-filter-option:hover,:root[data-theme=kais90s] .capacity-impact-option.selected{border-color:#ff4fa394;background:#ff4fa32e}:root[data-theme=kais90s] .person-filter-option.selected{background:#00b5b833}:root[data-theme=kais90s] .person-filter-option-check{border-color:#00d2d685;background:#00b5b8e0}:root[data-theme=kais90s] .person-filter-option:not(.selected) .person-filter-option-check{background:#30255ceb}:root[data-theme=kais90s] .person-chip{border-color:#00d2d675;background:#00b5b829;color:#d7ffff}:root[data-theme=kais90s] .person-chip.more{border-color:#a18dd07a;background:#a18dd038;color:#efe5ff}:root[data-theme=kais90s] .period-group-row{background:#ff4fa333;color:#fff0fa}:root[data-theme=kais90s] .person-avatar{background:#00b5b842;color:#d7ffff}:root[data-theme=kais90s] .skill-chip{background:#7d5fff42;color:#eee5ff}:root[data-theme=kais90s] .person-warning-badge{background:#ffb74d42;color:#ffe7b8}:root[data-theme=kais90s] .person-warning-badge.fixed{background:#a18dd03d;color:#f4e9ff}:root[data-theme=kais90s] .board-grid{background:linear-gradient(180deg,#30255cf7,#261d4bf0);border-color:#8f7ac980}:root[data-theme=kais90s] .capacity-cell{background:#00b5b81a}:root[data-theme=kais90s] .capacity-cell.load-green{border-color:#34c59794;background:#34c5973d}:root[data-theme=kais90s] .capacity-cell.load-yellow{border-color:#ffb74d94;background:#ffb74d3d}:root[data-theme=kais90s] .capacity-cell.load-red,:root[data-theme=kais90s] .capacity-cell.over-hard,:root[data-theme=kais90s] .capacity-cell.over-total{border-color:#ff5f6d9e;background:#ff5f6d3d}:root[data-theme=kais90s] .cell-flag{background:#ff5f6d3d;color:#ffd2d6}:root[data-theme=kais90s] .cell-flag.secondary{background:#a18dd03d;color:#f4e9ff}:root[data-theme=kais90s] .fixed-load-block{border-color:#b09adf70;background:#a18dd057;color:#f7edff;box-shadow:inset 0 0 0 1px #f7edff24}:root[data-theme=kais90s] .allocation-remove{background:#261d4be6;color:#f4e9ff}:root[data-theme=kais90s] .allocation-remove:hover{background:#ff5f6d57}:root[data-theme=kais90s] .resize-handle{background:linear-gradient(to bottom,#f7edff3d,#1a133338)}:root[data-theme=kais90s] .capacity-context-layer{background:#0a061875}:root[data-theme=kais90s] .capacity-drawer-backdrop{background:#0a061880}:root[data-theme=kais90s] .capacity-drawer-panel{box-shadow:-10px 0 30px #0a061885}:root[data-theme=kais90s] .capacity-impact-info,:root[data-theme=kais90s] .studio-period-suggestion{border-color:#00d2d670;background:#00b5b82e}:root[data-theme=kais90s] .capacity-impact-summary{background:#7d5fff24;border-color:#8f7ac980}:root[data-theme=kais90s] .capacity-impact-summary-row strong,:root[data-theme=kais90s] .capacity-impact-option-sub,:root[data-theme=kais90s] .studio-period-suggestion-meta{color:#e4d9ff}:root[data-theme=kais90s] .studio-rebalance-stepper .step-pill{border-color:#8f7ac985;background:#372963e6;color:#e4d9ff}:root[data-theme=kais90s] .studio-rebalance-stepper .step-pill.active{border-color:#ff4fa39e;background:#ff4fa33d;color:#fff3fb}:root[data-theme=kais90s] .studio-rebalance-track{background:#a18dd04d}:root[data-theme=kais90s] .capacity-state-pill.hard{color:#ffd2d6;background:#ff5f6d3d;border-color:#ff5f6d75}:root[data-theme=kais90s] .capacity-state-pill.soft{color:#ffe7b8;background:#ffb74d3d;border-color:#ffb74d75}:root[data-theme=kais90s] .capacity-state-pill.deadline{color:#d7ffff;background:#00b5b83d;border-color:#00d2d67a}:root[data-theme=kais90s] .capacity-state-pill.neutral{color:#f4e9ff;background:#a18dd03d;border-color:#a18dd070}@media (max-width: 900px){.filter-block-person{min-width:100%;max-width:100%}.person-filter-panel{width:min(100%,calc(100vw - 36px))}.board-header,.board-row{grid-template-columns:200px 1fr}.capacity-context-allocation-grid{grid-template-columns:1fr}.capacity-drawer-panel{width:100vw}.studio-rebalance-row{grid-template-columns:1fr;gap:.25rem}.studio-rebalance-row .row-value{white-space:normal}}body.capacity-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}.project-studio{display:flex;flex-direction:column;gap:.9rem}.project-studio-header{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;padding:.8rem .95rem;border:1px solid var(--border);border-radius:14px;background:linear-gradient(120deg,#fafdfff2,#f0f9f6eb)}.project-studio-title{font-size:1.05rem;font-weight:700}.project-studio-subtitle{color:var(--muted);font-size:.9rem}.project-studio-controls{display:flex;align-items:center;gap:.5rem}.project-studio-controls label{font-size:.78rem;color:var(--muted)}.studio-mode-pill{border:1px solid var(--border);border-radius:999px;padding:.28rem .65rem;font-size:.74rem;font-weight:600}.studio-mode-pill.draft{color:#0f5f8c;background:#0f5f8c14;border-color:#0f5f8c3d}.studio-mode-pill.live{color:#9f5d00;background:#9f5d001a;border-color:#9f5d003d}.project-studio-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.project-studio-card{border:1px solid var(--border);border-radius:12px;padding:.6rem .7rem;background:#fff}.project-studio-card .label{color:var(--muted);font-size:.76rem}.project-studio-card .value{font-size:1rem;font-weight:700}.project-studio-card .value.warn{color:#b52a2a}.project-studio-card .value.ok{color:#1f6b63}.project-studio-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:.75rem}.project-studio-panel{border:1px solid var(--border);border-radius:14px;padding:.8rem;background:#fff}.project-studio-panel h3{margin:0 0 .4rem}.studio-scale{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(34px,1fr);gap:2px;margin-bottom:.45rem}.studio-scale-cell{font-size:.7rem;color:var(--muted);text-align:center}.studio-project-track{border:1px solid rgba(15,107,141,.2);border-radius:10px;padding:.2rem;background:#0f6b8d0a;margin-bottom:.6rem}.studio-project-bar{border-radius:8px;background:linear-gradient(120deg,#0f6b8d,#1f6b63);color:#fff;font-weight:600;font-size:.83rem;padding:.35rem .5rem;cursor:context-menu}.studio-allocation-list{display:flex;flex-direction:column;gap:.4rem}.studio-activity-timeline{display:flex;flex-direction:column;gap:.35rem;margin:.45rem 0 .6rem}.studio-activity-row{display:grid;grid-template-columns:220px 1fr;gap:.45rem;align-items:center}.studio-activity-label{display:flex;flex-direction:column;min-width:0}.studio-activity-label strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-activity-label span{color:var(--muted);font-size:.72rem}.studio-activity-track{position:relative;height:10px;border-radius:999px;background:#11496e14;overflow:hidden;cursor:context-menu}.studio-activity-bar{position:absolute;top:1px;bottom:1px;border-radius:999px;background:linear-gradient(120deg,#11496e,#0f6b8d)}.studio-allocation-row{display:grid;grid-template-columns:220px 1fr auto;gap:.45rem;align-items:center}.studio-allocation-label{display:flex;flex-direction:column}.studio-allocation-label span{color:var(--muted);font-size:.78rem}.studio-allocation-track{position:relative;height:14px;border-radius:999px;background:#0f6b8d14;overflow:hidden}.studio-allocation-bar{position:absolute;top:2px;bottom:2px;border-radius:999px;background:linear-gradient(120deg,#1f6b63,#0f6b8d)}.studio-empty{color:var(--muted);font-size:.85rem;padding:.5rem 0}.studio-target-picker{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.6rem}.studio-staffing-mode-toggle{display:inline-flex;gap:.35rem;flex-wrap:wrap}.studio-target-hint{font-size:.78rem;color:var(--muted)}.studio-candidate-list{display:flex;flex-direction:column;gap:.45rem;max-height:430px;overflow:auto}.studio-candidate-row{border:1px solid rgba(208,220,232,.85);border-radius:10px;padding:.45rem .55rem;display:flex;justify-content:space-between;gap:.6rem;align-items:center}.studio-candidate-name{font-weight:600}.studio-candidate-heading{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.studio-window-badge{display:inline-flex;align-items:center;border:1px solid rgba(17,73,110,.28);background:#11496e14;color:#11496e;border-radius:999px;padding:.1rem .45rem;font-size:.68rem;font-weight:600;letter-spacing:.01em}.studio-state-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.12rem .5rem;font-size:.67rem;font-weight:700;letter-spacing:.01em;border:1px solid transparent}.studio-state-badge.availability.full{color:#145338;background:#e9f8ef;border-color:#89d7aa}.studio-state-badge.availability.partial{color:#6f4c00;background:#fff4d9;border-color:#efcb74}.studio-state-badge.availability.none{color:#8d1727;background:#ffe8ec;border-color:#f1a0ac}.studio-state-badge.team.match{color:#11496e;background:#e8f4ff;border-color:#93bde0}.studio-state-badge.team.mismatch{color:#6d2330;background:#ffe9ed;border-color:#eaacb8}.studio-candidate-sub{color:var(--muted);font-size:.78rem}.studio-candidate-actions{display:inline-flex;gap:.35rem}.studio-team-actions{display:inline-flex;gap:.35rem;flex-wrap:wrap;margin-bottom:.45rem}.studio-candidate-rank{display:inline-flex;align-items:center;justify-content:center;min-width:1.7rem;padding:.08rem .36rem;border-radius:999px;background:#0f6b8d1f;color:var(--primary-dark);font-size:.67rem;font-weight:700;letter-spacing:.01em}.project-studio-panel.scenarios p{margin:.2rem 0 .6rem;color:var(--muted)}.studio-scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.studio-scenario-card{border:1px solid rgba(208,220,232,.86);border-radius:10px;padding:.55rem;background:#fcfdff}.studio-scenario-title{font-weight:700}.studio-scenario-meta{font-size:.76rem;color:var(--muted);min-height:2.2em;margin:.2rem 0 .45rem}.studio-scenario-actions{display:flex;gap:.35rem}:root[data-theme=dark] .project-studio-header,:root[data-theme=dark] .project-studio-panel,:root[data-theme=dark] .project-studio-card,:root[data-theme=dark] .studio-scenario-card{background:linear-gradient(160deg,#1d2936f7,#182431f0);border-color:#58708b75}:root[data-theme=dark] .studio-mode-pill.draft{color:#d8f0ff;background:#4ba4cc33;border-color:#4ba4cc6b}:root[data-theme=dark] .studio-mode-pill.live{color:#fde68a;background:#deaa3e33;border-color:#deaa3e6b}:root[data-theme=dark] .project-studio-card .value.warn{color:#fecaca}:root[data-theme=dark] .project-studio-card .value.ok{color:#86efac}:root[data-theme=dark] .studio-project-track,:root[data-theme=dark] .studio-activity-track,:root[data-theme=dark] .studio-allocation-track{border-color:#4ba4cc6b;background:#4ba4cc1f}:root[data-theme=dark] .studio-candidate-row{border-color:#58708b75;background:#1d2936e0}:root[data-theme=dark] .studio-window-badge{border-color:#4ba4cc80;background:#4ba4cc33;color:#d8f0ff}:root[data-theme=dark] .studio-candidate-rank{background:#4ba4cc3d;color:#d8f0ff}:root[data-theme=dark] .studio-state-badge.availability.full{color:#86efac;background:#34a76b3d;border-color:#34a76b70}:root[data-theme=dark] .studio-state-badge.availability.partial{color:#fde68a;background:#deaa3e3d;border-color:#deaa3e70}:root[data-theme=dark] .studio-state-badge.availability.none{color:#fecaca;background:#e46a603d;border-color:#e46a6070}:root[data-theme=dark] .studio-state-badge.team.match{color:#d8f0ff;background:#4ba4cc38;border-color:#4ba4cc75}:root[data-theme=dark] .studio-state-badge.team.mismatch{color:#ffd0e3;background:#cd58863d;border-color:#cd588670}:root[data-theme=kais90s] .project-studio-header,:root[data-theme=kais90s] .project-studio-panel,:root[data-theme=kais90s] .project-studio-card,:root[data-theme=kais90s] .studio-scenario-card{background:linear-gradient(160deg,#30255cf7,#261d4bf0);border-color:#8f7ac980}:root[data-theme=kais90s] .studio-mode-pill.draft{color:#d7ffff;background:#00b5b838;border-color:#00d2d675}:root[data-theme=kais90s] .studio-mode-pill.live{color:#ffe7b8;background:#ffb74d38;border-color:#ffb74d70}:root[data-theme=kais90s] .project-studio-card .value.warn{color:#ffd2d6}:root[data-theme=kais90s] .project-studio-card .value.ok{color:#b8ffe9}:root[data-theme=kais90s] .studio-project-track,:root[data-theme=kais90s] .studio-activity-track,:root[data-theme=kais90s] .studio-allocation-track{border-color:#00d2d670;background:#00b5b824}:root[data-theme=kais90s] .studio-candidate-row{border-color:#8f7ac980;background:#30255ce6}:root[data-theme=kais90s] .studio-window-badge{border-color:#00d2d685;background:#00b5b838;color:#d7ffff}:root[data-theme=kais90s] .studio-candidate-rank{background:#ff4fa33d;color:#fff3fb}:root[data-theme=kais90s] .studio-state-badge.availability.full{color:#b8ffe9;background:#34c59742;border-color:#34c59775}:root[data-theme=kais90s] .studio-state-badge.availability.partial{color:#ffe7b8;background:#ffb74d3d;border-color:#ffb74d75}:root[data-theme=kais90s] .studio-state-badge.availability.none{color:#ffd2d6;background:#ff5f6d3d;border-color:#ff5f6d75}:root[data-theme=kais90s] .studio-state-badge.team.match{color:#d7ffff;background:#00b5b838;border-color:#00d2d67a}:root[data-theme=kais90s] .studio-state-badge.team.mismatch{color:#ffd8ec;background:#ff4fa33d;border-color:#ff4fa375}:root[data-theme=kais3270s] .project-studio-header,:root[data-theme=kais3270s] .project-studio-panel,:root[data-theme=kais3270s] .project-studio-card,:root[data-theme=kais3270s] .studio-scenario-card{background:linear-gradient(160deg,#162016fa,#101910f0);border-color:#6ee78738}:root[data-theme=kais3270s] .studio-mode-pill.draft,:root[data-theme=kais3270s] .studio-state-badge.team.match{color:#dfffd9;background:#6ee7871f;border-color:#6ee78747}:root[data-theme=kais3270s] .studio-mode-pill.live,:root[data-theme=kais3270s] .studio-state-badge.availability.partial{color:#ffe2a1;background:#ffb00024;border-color:#ffb0004d}:root[data-theme=kais3270s] .project-studio-card .value.warn,:root[data-theme=kais3270s] .studio-state-badge.availability.none,:root[data-theme=kais3270s] .studio-state-badge.team.mismatch{color:#ffd1cd}:root[data-theme=kais3270s] .project-studio-card .value.ok,:root[data-theme=kais3270s] .studio-state-badge.availability.full{color:#dfffd9}:root[data-theme=kais3270s] .studio-project-track,:root[data-theme=kais3270s] .studio-activity-track,:root[data-theme=kais3270s] .studio-allocation-track{border-color:#6ee7873d;background:#6ee78714}:root[data-theme=kais3270s] .studio-candidate-row{border-color:#6ee7872e;background:#162016e6}:root[data-theme=kais3270s] .studio-window-badge{border-color:#7ee7ff47;background:#7ee7ff1a;color:#c9f7ff}:root[data-theme=kais3270s] .studio-candidate-rank{background:#ffb00029;color:#fff0b8}@media (max-width: 1150px){.project-studio-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.project-studio-grid{grid-template-columns:1fr}}@media (max-width: 760px){.project-studio-header{flex-direction:column;align-items:stretch}.project-studio-controls{flex-wrap:wrap}.studio-team-actions{width:100%}.studio-allocation-row,.studio-activity-row,.studio-scenario-grid{grid-template-columns:1fr}}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.form-card{background:linear-gradient(170deg,#fffffffa,#fafdfff0);border-radius:var(--radius);padding:1.05rem;border:1px solid rgba(208,220,232,.88);box-shadow:var(--shadow)}.form-card h3{margin-bottom:.8rem}.form-row{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.6rem}.form-row input,.form-row select,.form-row textarea{padding:.6rem .8rem;border-radius:11px}.inline-list{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.tag{display:inline-flex;gap:.4rem;align-items:center;padding:.22rem .62rem;border-radius:999px;background:#0f6b8d24;border:1px solid rgba(15,107,141,.22);font-size:.8rem}.table-mini{display:grid;gap:.58rem}.table-mini-row{display:grid;grid-template-columns:1fr 1fr 120px auto;gap:.5rem;align-items:center;padding:.44rem .46rem;border-radius:11px;background:#ffffffb8;border:1px solid rgba(216,226,235,.9)}.table-mini-row input{width:100%}.warning{color:var(--danger);font-size:.84rem;border:1px solid rgba(198,73,63,.22);background:#c6493f14;border-radius:10px;padding:.45rem .56rem}.success{color:var(--primary-dark);font-size:.84rem;border:1px solid rgba(15,107,141,.2);background:#0f6b8d14;border-radius:10px;padding:.45rem .56rem}.inline-save-feedback{display:inline-flex;align-items:center;gap:.4rem;padding:.48rem .84rem;border-radius:999px;border:1px solid rgba(15,107,141,.3);background:linear-gradient(145deg,#0f6b8d29,#0f6b8d1a);color:var(--primary-dark);font-size:.82rem;font-weight:600;line-height:1;box-shadow:0 8px 20px #0f6b8d24}.toggle{display:inline-flex;gap:.5rem;align-items:center;font-size:.85rem;color:var(--muted)}:root[data-theme=dark] .form-card{background:linear-gradient(170deg,#1d2936fa,#182431f0);border-color:#58708b75}:root[data-theme=dark] .tag{background:#4ba4cc2e;border-color:#4ba4cc57;color:#d8f0ff}:root[data-theme=dark] .table-mini-row{background:#1d2936eb;border-color:#58708b75}:root[data-theme=dark] .warning{border-color:#e46a606b;background:#e46a6029;color:#fecaca}:root[data-theme=dark] .success{border-color:#4ba4cc57;background:#4ba4cc29;color:#d8f0ff}:root[data-theme=dark] .inline-save-feedback{border-color:#4ba4cc6b;background:linear-gradient(145deg,#4ba4cc3d,#4ba4cc29);color:#d8f0ff;box-shadow:0 8px 20px #06141f52}:root[data-theme=kais90s] .form-card{background:linear-gradient(170deg,#30255cf7,#261d4bf0);border-color:#8f7ac980}:root[data-theme=kais90s] .tag{background:#00b5b83d;border-color:#00d2d675;color:#d7ffff}:root[data-theme=kais90s] .table-mini-row{background:#30255ce6;border-color:#8f7ac980}:root[data-theme=kais90s] .warning{border-color:#ff5f6d75;background:#ff5f6d33;color:#ffd2d6}:root[data-theme=kais90s] .success{border-color:#00d2d66b;background:#00b5b833;color:#d7ffff}:root[data-theme=kais90s] .inline-save-feedback{border-color:#ff4fa385;background:linear-gradient(145deg,#ff4fa347,#00b5b833);color:#fff3fb;box-shadow:0 8px 20px #0a061866}:root[data-theme=kais3270s] .form-card{background:linear-gradient(170deg,#162016f7,#101910f0);border-color:#6ee78738}:root[data-theme=kais3270s] .tag{background:#6ee7871f;border-color:#6ee78747;color:#dfffd9}:root[data-theme=kais3270s] .table-mini-row{background:#162016e0;border-color:#6ee7872e}:root[data-theme=kais3270s] .warning{border-color:#ffb00052;background:#ffb0001f;color:#ffe2a1}:root[data-theme=kais3270s] .success{border-color:#6ee78747;background:#6ee7871f;color:#dfffd9}:root[data-theme=kais3270s] .inline-save-feedback{border-color:#6ee7874d;background:linear-gradient(145deg,#6ee7872e,#7ee7ff1f);color:#e8ffe2;box-shadow:0 8px 20px #020a0266}.capacity-overview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:1.5rem}.chart-card{background:var(--card);border-radius:var(--radius);padding:1.25rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:1rem}.chart-header{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}.chart-title{font-weight:600}.chart-sub{color:var(--muted);font-size:.85rem}.chart-shell{position:relative;overflow-x:auto}.capacity-chart{width:100%;min-width:1400px;height:auto}.grid-line{stroke:#10181c14;stroke-width:1}.axis-label{fill:var(--muted);font-size:11px}.axis-label-year{font-size:10px;font-weight:700;fill:var(--muted)}.bar-hard{fill:#1f6b63}.bar-hard.over{fill:#c94f3d}.bar-soft{fill:#1f6b6359}.bar-soft.risk{fill:#f1b24a}.bar-hard-gap{fill:#d46a2a}.bar-soft-gap{fill:#d46a2a61}.bar-fixed{fill-opacity:1;stroke:#ffffff8c;stroke-width:.8}.bar-segment-label{fill:#fff;font-size:10px;font-weight:700;pointer-events:none;paint-order:stroke;stroke:#00000047;stroke-width:1.5px}.bar-gap{fill:#00000014}.bar-gap.low{fill:#3a74c859}.bar-hit{fill:transparent;cursor:pointer}.line-available{stroke:#c94f3d;stroke-width:2;fill:none}.line-hard{stroke:#1f2b28;stroke-width:2;fill:none;stroke-dasharray:6 6}.chart-legend{display:flex;gap:1rem;flex-wrap:wrap;font-size:.85rem;color:var(--muted)}.team-overview-card{margin-top:.75rem;border-top:1px solid var(--border);padding-top:.75rem;display:flex;flex-direction:column;gap:.6rem}.team-overview-header{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem}.team-matrix-shell{overflow:auto;border:1px solid var(--border);border-radius:12px}.team-matrix{width:100%;border-collapse:collapse;min-width:860px}.team-matrix th,.team-matrix td{border-bottom:1px solid var(--border);border-right:1px solid var(--border);padding:.4rem;text-align:center;white-space:nowrap}.team-matrix th{font-size:.75rem;color:var(--muted);background:var(--surface-soft);position:sticky;top:0;z-index:2}.team-matrix th:first-child,.team-matrix td:first-child{position:sticky;left:0;z-index:1;background:var(--surface-strong)}.team-name-cell{min-width:160px;text-align:left;font-weight:600;display:flex;align-items:center;gap:.45rem}.team-swatch{width:10px;height:10px;border-radius:999px;display:inline-block;flex:none}.team-cell{width:100%;border:1px solid transparent;border-radius:8px;background:var(--surface-soft);padding:.25rem .35rem;cursor:pointer;display:flex;flex-direction:column;gap:.12rem;align-items:stretch}.team-cell.low{border-color:#137a5d40;background:#137a5d14}.team-cell.mid{border-color:#ca8f2e4d;background:#ca8f2e1f}.team-cell.high{border-color:#c4464659;background:#c4464624}.team-cell-main{font-size:.78rem;font-weight:700;color:var(--ink);line-height:1.1}.team-cell-sub{font-size:.7rem;color:var(--muted);line-height:1.1}.team-cell-track{display:block;width:100%;height:4px;border-radius:999px;background:#0000001f;overflow:hidden}.team-cell-fill{display:block;height:100%;border-radius:inherit;background:#204f77}.legend-swatch{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:.35rem}.legend-swatch.hard{background:#1f6b63}.legend-swatch.soft{background:#1f6b6359}.legend-swatch.fixed{background:#7c7c7c}.legend-swatch.hard-gap{background:#d46a2a}.legend-swatch.soft-gap{background:#d46a2a61}.legend-line{display:inline-block;width:20px;height:2px;margin-right:.35rem;vertical-align:middle}.legend-line.available{background:#c94f3d}.legend-line.hardline{background:#1f2b28;border-top:2px dashed #1f2b28;height:0}.detail-panel{background:var(--card);border-radius:var(--radius);padding:1.25rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:1.25rem}.detail-header h3{margin:0 0 .25rem}.detail-header p{margin:0;color:var(--muted);font-size:.85rem}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.detail-label{font-size:.8rem;color:var(--muted)}.detail-value{font-size:1.1rem;font-weight:600}.detail-section h4{margin:0 0 .5rem}.project-demand-summary{display:flex;gap:.45rem;flex-wrap:wrap;margin-bottom:.75rem}.project-demand-summary-pill{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:999px;font-size:.76rem;font-weight:700}.project-demand-summary-pill.staffed{background:#1f6b631f;color:#1f6b63}.project-demand-summary-pill.partial{background:#ca8f2e24;color:#9a6508}.project-demand-summary-pill.unstaffed{background:#d46a2a24;color:#b3531a}.project-demand-card{border:1px solid var(--border);border-radius:14px;padding:.8rem .9rem;background:var(--surface-soft);margin-bottom:.7rem}.project-demand-card.staffed{box-shadow:inset 0 0 0 1px #1f6b6314}.project-demand-card.partial{box-shadow:inset 0 0 0 1px #ca8f2e29}.project-demand-card.unstaffed{box-shadow:inset 0 0 0 1px #d46a2a33}.project-demand-header{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start;margin-bottom:.65rem}.project-demand-subline{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;margin-top:.2rem}.project-demand-team,.project-demand-state{display:inline-flex;align-items:center;padding:.14rem .45rem;border-radius:999px;font-size:.74rem;font-weight:600}.project-demand-team{background:#0f6b8d1a;color:var(--primary-dark)}.project-demand-state.staffed{background:#1f6b631f;color:#1f6b63}.project-demand-state.partial{background:#ca8f2e24;color:#9a6508}.project-demand-state.unstaffed{background:#d46a2a24;color:#b3531a}.project-demand-totals{font-size:.82rem;font-weight:700;color:var(--ink);white-space:nowrap}.project-demand-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin-bottom:.7rem}.project-demand-metric-value{font-size:.96rem;font-weight:700}.project-demand-staffing-block{display:flex;flex-direction:column;gap:.35rem}.project-demand-staffing-list{display:flex;flex-wrap:wrap;gap:.45rem}.project-demand-person-chip{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;padding:.35rem .5rem;border-radius:10px;background:var(--card);border:1px solid var(--border)}.project-demand-person-name{font-size:.82rem;font-weight:700}.project-demand-person-meta{font-size:.76rem;color:var(--muted)}.project-demand-person-days{font-size:.78rem;font-weight:700;color:var(--primary-dark)}.detail-row{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid var(--border)}.detail-row:last-child{border-bottom:none}.detail-row-title{font-weight:600;display:inline-flex;align-items:center;gap:.4rem}.detail-row-sub{color:var(--muted);font-size:.85rem}.detail-row-meta{display:flex;gap:.75rem;color:var(--muted);font-size:.85rem}.capacity-tooltip{position:fixed;z-index:40;background:var(--surface-strong);border:1px solid var(--border);padding:.75rem;border-radius:12px;box-shadow:var(--shadow);min-width:220px}.tooltip-title{font-weight:600;margin-bottom:.5rem}.tooltip-grid{display:grid;grid-template-columns:auto auto;gap:.25rem .75rem;font-size:.85rem;margin-bottom:.5rem}.tooltip-section{border-top:1px solid var(--border);padding-top:.5rem}.tooltip-sub{font-size:.8rem;color:var(--muted);margin-bottom:.35rem}.tooltip-row{display:flex;justify-content:space-between;font-size:.85rem}.toggle-group{display:inline-flex;gap:.4rem;background:var(--info-bg);padding:.2rem;border-radius:999px}.horizon-control{display:inline-flex;align-items:center;gap:.5rem;margin-left:.75rem;padding-left:.75rem;border-left:1px solid var(--border);font-size:.85rem;color:var(--muted)}.horizon-control input[type=range]{accent-color:var(--primary)}.toggle-group .chip{border-radius:999px}.range-controls{display:flex;gap:.5rem}@media (max-width: 1100px){.capacity-overview-grid{grid-template-columns:1fr}.project-demand-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}:root[data-theme=dark] .grid-line{stroke:#d6e4f424}:root[data-theme=dark] .line-hard{stroke:#d8e8f7}:root[data-theme=dark] .legend-line.hardline{background:#d8e8f7;border-top-color:#d8e8f7}:root[data-theme=dark] .team-cell-track{background:#d8e8f73d}:root[data-theme=kais90s] .grid-line{stroke:#e1ceff2e}:root[data-theme=kais90s] .axis-label-year{fill:#dbcdfa}:root[data-theme=kais90s] .bar-hard{fill:#00b5b8}:root[data-theme=kais90s] .bar-soft{fill:#00b5b86b}:root[data-theme=kais90s] .bar-soft.risk{fill:#ffc45c}:root[data-theme=kais90s] .bar-hard-gap{fill:#ff8a38}:root[data-theme=kais90s] .bar-soft-gap{fill:#ff8a386b}:root[data-theme=kais90s] .line-available{stroke:#ff9aa5}:root[data-theme=kais90s] .line-hard{stroke:#f9f0ff}:root[data-theme=kais90s] .legend-line.hardline{background:#f9f0ff;border-top-color:#f9f0ff}:root[data-theme=kais90s] .team-cell-track{background:#efdeff4d}:root[data-theme=kais90s] .team-cell-fill{background:#00d2d6}:root[data-theme=kais3270s] .grid-line{stroke:#6ee7871f}:root[data-theme=kais3270s] .axis-label-year{fill:#a8d2a6}:root[data-theme=kais3270s] .bar-hard{fill:#6ee787}:root[data-theme=kais3270s] .bar-soft{fill:#7ee7ff5c}:root[data-theme=kais3270s] .bar-soft.risk{fill:#ffb000}:root[data-theme=kais3270s] .bar-hard-gap{fill:#ffb000}:root[data-theme=kais3270s] .bar-soft-gap{fill:#ffb0005c}:root[data-theme=kais3270s] .line-available{stroke:#c9f7ff}:root[data-theme=kais3270s] .line-hard{stroke:#f2ffe9}:root[data-theme=kais3270s] .legend-line.hardline{background:#f2ffe9;border-top-color:#f2ffe9}:root[data-theme=kais3270s] .team-cell-track{background:#6ee78724}:root[data-theme=kais3270s] .team-cell-fill{background:linear-gradient(90deg,#3fb950,#6ee787)}.project-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.2rem}.summary-card{background:var(--card);border-radius:var(--radius);padding:1rem 1.2rem;box-shadow:var(--shadow)}.summary-label{font-size:.8rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.summary-value{font-size:1.2rem;font-weight:600;margin-top:.4rem}.summary-sub{margin-top:.3rem;font-size:.85rem;color:var(--muted)}.project-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.2rem}.detail-card{background:var(--card);border-radius:var(--radius);padding:1.1rem;box-shadow:var(--shadow)}.detail-title{font-weight:600;margin-bottom:.75rem}.detail-list{display:flex;flex-direction:column;gap:.8rem}.detail-item{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--border);padding-bottom:.6rem}.detail-item:last-child{border-bottom:none}.detail-main{font-weight:600}.detail-sub{font-size:.85rem;color:var(--muted)}.detail-tag{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;background:#1f6b631f;padding:.2rem .5rem;border-radius:999px;height:fit-content}:root[data-theme=dark] .detail-tag{background:#4ba4cc33;color:#d8f0ff}:root[data-theme=kais90s] .detail-tag{background:#00b5b83d;color:#d7ffff}.login-page{min-height:100vh;display:grid;place-items:center}.login-card{background:linear-gradient(175deg,#fffffffa,#f9fcfff0);padding:2rem;border-radius:var(--radius);border:1px solid rgba(208,220,232,.9);box-shadow:var(--shadow);width:min(540px,92vw);position:relative}.login-brand-row{display:flex;gap:.75rem;align-items:center;margin-bottom:.8rem}.login-brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--primary),#1d7fb4 58%,var(--accent));display:grid;place-items:center;color:#fff;font-weight:700;box-shadow:0 8px 18px #0f5f8c47}.login-brand-title{font-weight:700;line-height:1.2;letter-spacing:.01em}.login-brand-sub{font-size:.78rem;color:var(--muted)}.login-shell{position:relative;min-height:320px}.login-primary-panel{max-width:360px;padding:.25rem 0 4.5rem}.login-kicker{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .6rem;border-radius:999px;margin-bottom:.9rem;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:var(--info-bg);color:var(--info-fg);border:1px solid var(--info-border)}.login-primary-action{margin-top:1rem;min-width:220px}.login-reserve-panel{position:absolute;right:0;bottom:0;width:min(280px,100%);padding:.85rem .95rem .95rem;border-radius:16px;border:1px solid var(--border);background:linear-gradient(180deg,var(--surface-strong),var(--surface-muted));box-shadow:var(--shadow-sm)}.login-reserve-panel.standalone{position:static;width:100%;margin-top:1rem}.login-reserve-panel form,.login-reserve-panel{display:flex;flex-direction:column;gap:.8rem}.login-reserve-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.login-reserve-title{font-size:.8rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.login-reserve-close,.login-reserve-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--border);background:var(--surface-strong);color:var(--muted);border-radius:999px;font:inherit}.login-reserve-close{width:28px;height:28px;display:grid;place-items:center;cursor:pointer}.login-reserve-toggle{position:absolute;right:0;bottom:0;padding:.45rem .8rem;font-size:.78rem;cursor:pointer;box-shadow:var(--shadow-sm)}.login-reserve-submit{width:100%}label{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;color:var(--muted)}input{padding:.6rem .8rem;border-radius:10px;border:1px solid var(--border);font-family:inherit}.error{color:var(--danger);font-size:.85rem}:root[data-theme=dark] .login-card{background:linear-gradient(175deg,#1d2936fa,#182431f0);border-color:#58708b75}:root[data-theme=kais90s] .login-card{background:linear-gradient(175deg,#30255cfa,#261d4bf0);border-color:#8f7ac980}:root[data-theme=kais3270s] .login-card{background:linear-gradient(175deg,#162016fa,#101910f2);border-color:#6ee78742;box-shadow:0 18px 44px #020a028f}:root[data-theme=kais3270s] .login-reserve-panel,:root[data-theme=kais3270s] .login-reserve-toggle,:root[data-theme=kais3270s] .login-reserve-close{background:#121b12f5;border-color:#6ee78738;color:#a8d2a6}:root[data-theme=kais3270s] .login-reserve-title{color:#dfffd9}@media (max-width: 720px){.login-card{width:min(460px,94vw);padding:1.4rem}.login-shell{min-height:0}.login-primary-panel{max-width:none;padding-bottom:1rem}.login-reserve-toggle{position:static;margin-top:.75rem;align-self:flex-end}.login-reserve-panel{position:static;width:100%;margin-top:.85rem}}.goals-layout{display:grid;grid-template-columns:300px minmax(480px,1fr) 360px;gap:1rem;align-items:start}.goals-column{display:flex;flex-direction:column;gap:1rem}.goals-card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem;display:flex;flex-direction:column;gap:.75rem}.goal-list{display:flex;flex-direction:column;gap:.5rem}.goal-list-item{text-align:left;border:1px solid var(--border);border-radius:12px;padding:.7rem;background:var(--surface-strong);display:grid;gap:.3rem}.goal-list-item.active{border-color:#0f5f8c8c;box-shadow:0 0 0 2px #0f5f8c1f}.goal-item-title{font-weight:700}.goal-item-sub{color:var(--muted);font-size:.86rem}.goal-status-pill{display:inline-flex;align-items:center;width:fit-content;border-radius:999px;padding:.2rem .55rem;font-size:.76rem;font-weight:700}.goal-status-pill.on_track{background:var(--success-bg);color:var(--success-fg)}.goal-status-pill.risk{background:var(--warning-bg);color:var(--warning-fg)}.goal-status-pill.off_track{background:var(--danger-bg);color:var(--danger-fg)}.goal-inline-meta{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;color:var(--muted);font-size:.88rem}.goal-actions{display:flex;gap:.6rem}.goal-drop-zone{border:1px dashed rgba(15,95,140,.32);border-radius:12px;padding:.8rem;display:flex;flex-direction:column;gap:.6rem;background:linear-gradient(180deg,rgba(15,95,140,.03),transparent)}.goal-empty{color:var(--muted);font-size:.9rem}.goal-project-row,.goal-library-item{border:1px solid var(--border);border-radius:12px;background:var(--surface-strong);padding:.65rem;display:flex;justify-content:space-between;align-items:center;gap:.6rem}.goal-project-title{font-weight:700;display:flex;gap:.45rem;align-items:center}.goal-project-sub{color:var(--muted);font-size:.82rem}.critical-tag{display:inline-flex;border-radius:999px;padding:.15rem .5rem;font-size:.72rem;background:var(--danger-bg);color:var(--danger-fg)}.goal-library-list{display:flex;flex-direction:column;gap:.5rem}.scenario-drawer{position:sticky;top:1rem}.scenario-row{border:1px solid var(--border);border-radius:12px;background:var(--surface-strong);padding:.7rem;display:grid;gap:.45rem}.scenario-title{font-weight:700}.scenario-sub{color:var(--muted);font-size:.86rem}.scenario-meta{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;color:var(--muted);font-size:.82rem}@media (max-width: 1250px){.goals-layout{grid-template-columns:1fr}}.whatif-page{display:grid;gap:16px}.whatif-move-dialog{width:min(680px,96vw);display:grid;gap:12px}.whatif-move-dialog p{margin:0;color:var(--muted)}.whatif-move-options{display:grid;gap:10px}.whatif-move-options label{border:1px solid var(--border);border-radius:10px;padding:10px;display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:4px;align-items:start;background:var(--surface-muted)}.whatif-move-options label.active{border-color:var(--primary);box-shadow:0 0 0 2px #0f6b8d2e}.whatif-move-options label span{font-weight:700;color:var(--ink)}.whatif-move-options label small{grid-column:2;color:var(--muted);font-size:12px}.whatif-move-toggle{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:600}.whatif-header{display:flex;justify-content:space-between;align-items:center}.whatif-header h2{margin:0}.whatif-header p{margin:6px 0 0;color:var(--muted)}.whatif-status{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:600}.badge-draft{padding:5px 10px;border-radius:999px;background:var(--info-bg);color:var(--info-fg);font-size:12px;letter-spacing:.02em}.whatif-grid{display:grid;gap:16px;grid-template-columns:260px minmax(0,1fr)}.whatif-grid.sidebar-hidden{grid-template-columns:minmax(0,1fr)}.whatif-sidebar{display:grid;align-content:start;gap:10px;position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}.whatif-create-row{display:grid;gap:8px;grid-template-columns:1fr auto}.whatif-scenario-list{display:grid;gap:8px;max-height:320px;overflow:auto}.scenario-item{text-align:left;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);padding:10px;display:grid;gap:4px}.scenario-item.active{border-color:var(--primary);background:#0f6b8d1f}.scenario-item span{color:var(--muted);font-size:12px}.whatif-sidebar-actions{display:grid;gap:8px;grid-template-columns:1fr 1fr}.whatif-main{display:grid;gap:16px;min-width:0}.whatif-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.whatif-kpi-row article{border:1px solid var(--border);border-radius:10px;padding:10px;background:var(--surface-muted)}.whatif-kpi-row h4{margin:0;font-size:13px;color:var(--muted)}.kpi-big{margin:8px 0 6px;font-size:28px;font-weight:800;line-height:1}.kpi-actions{margin-top:8px;display:grid;gap:8px}.whatif-header-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end}.whatif-workshop-toolbar{margin:0}.whatif-timeline-wrap{border-radius:14px;overflow:hidden}.whatif-apply-section{display:grid;gap:8px;padding-top:6px;border-top:1px solid rgba(15,23,42,.08)}.whatif-apply-section h4{margin:0;font-size:13px}.whatif-select-list{display:grid;gap:8px;padding-top:6px;border-top:1px solid rgba(15,23,42,.08)}.whatif-select-list h4{margin:0 0 2px;font-size:13px}.whatif-select-group{display:grid;gap:4px}.whatif-select-title{font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:700}.whatif-select-items{display:grid;gap:4px;max-height:234px;overflow:auto;padding-right:2px}.whatif-select-row{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:8px;font-size:12px;color:var(--ink);border:1px solid rgba(148,163,184,.25);border-radius:7px;min-height:30px;padding:4px 7px;background:#f8fafce6}.whatif-select-row input[type=checkbox]{margin:0;width:16px;min-width:16px;height:16px;justify-self:start}.whatif-select-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1;min-width:0;max-width:100%}.whatif-select-empty{font-size:12px;color:var(--muted);padding:6px 4px}.whatif-timeline-wrap .timeline-board{padding:1rem}.whatif-impact-filter{display:inline-flex;align-items:center;gap:.45rem;min-height:34px;border:1px solid var(--border);border-radius:999px;padding:.35rem .75rem;background:var(--surface-muted);color:var(--ink);font-size:.8rem;font-weight:600}.whatif-impact-filter input[type=checkbox]{margin:0}.whatif-project-form{display:grid;gap:8px;grid-template-columns:2fr repeat(6,minmax(0,1fr))}.whatif-project-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.whatif-project-header h3{margin:0}.whatif-status-filter{display:inline-flex;border:1px solid var(--border);border-radius:999px;overflow:hidden;background:var(--surface-muted)}.whatif-status-filter button{border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:700;padding:6px 12px}.whatif-status-filter button.active{background:var(--primary);color:var(--surface-strong)}.whatif-project-table,.whatif-team-table,.whatif-goal-table{display:grid;gap:8px;align-items:center}.whatif-project-table{grid-template-columns:80px 1.6fr 100px repeat(3,1fr) 1.2fr}.whatif-team-table{grid-template-columns:80px 1.2fr 1fr 1fr 110px}.whatif-goal-table{grid-template-columns:1.5fr 1fr 1fr 1fr 110px}.goal-row{display:contents}.whatif-team-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.whatif-team-header h3{margin:0}.whatif-team-filters{display:flex;gap:8px;flex-wrap:wrap}.whatif-team-filters select,.whatif-team-filters input{min-width:140px}.whatif-project-table .head,.whatif-team-table .head,.whatif-goal-table .head{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:700}.whatif-project-table input,.whatif-project-form input,.whatif-project-form select,.whatif-team-table select,.whatif-sidebar input:not([type=checkbox]){width:100%}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.status-pill{border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700}.status-pill.hard{background:var(--info-bg);color:var(--info-fg)}.status-pill.soft{background:var(--success-bg);color:var(--success-fg)}.deadline-ok{color:var(--success-fg);font-weight:700}.deadline-late{color:var(--danger-fg);font-weight:700}.status.on_track{color:var(--success-fg);font-weight:700}.status.risk{color:var(--warning-fg);font-weight:700}.status.off_track{color:var(--danger-fg);font-weight:700}@media (max-width: 1400px){.whatif-grid{grid-template-columns:1fr}.whatif-kpi-row,.whatif-project-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 960px){.whatif-kpi-row,.whatif-project-table,.whatif-team-table,.whatif-goal-table{grid-template-columns:1fr}.whatif-project-table .head,.whatif-team-table .head,.whatif-goal-table .head{display:none}.whatif-project-header,.whatif-team-header{flex-direction:column;align-items:flex-start}.whatif-header-actions{justify-content:flex-start}}.chat-page{gap:1rem}.chat-layout{display:grid;grid-template-columns:minmax(260px,320px) 1fr;gap:1rem;align-items:start}.chat-sidebar{display:grid;gap:1rem}.chat-card{background:linear-gradient(165deg,#fffffff7,#f9fdffeb);border-radius:var(--radius);border:1px solid rgba(206,220,233,.9);box-shadow:var(--shadow);padding:1rem}.chat-quick-list{display:grid;gap:.5rem}.chat-quick-button{width:100%;text-align:left;border-radius:12px}.chat-toggle{display:inline-flex;align-items:center;gap:.45rem;margin-bottom:.65rem}.chat-meta-list{display:grid;gap:.35rem}.chat-meta-row{display:flex;justify-content:space-between;font-size:.9rem;color:var(--muted)}.chat-meta{margin-top:.45rem;font-size:.82rem;color:var(--muted)}.chat-main{display:grid;gap:1rem}.chat-thread{max-height:64vh;overflow-y:auto;display:grid;gap:.75rem;align-content:start}.chat-message{border-radius:14px;padding:.75rem .85rem;border:1px solid rgba(206,220,232,.9)}.chat-message.user{background:linear-gradient(145deg,#0f6b8d1f,#0f6b8d14);border-color:#0f6b8d47}.chat-message.assistant{background:#ffffffb8}.chat-message.system{background:linear-gradient(150deg,#c6493f1f,#c6493f12);border-color:#c6493f59}.chat-message.pending{border-color:#0f6b8d52}.chat-message-role{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:.25rem}.chat-message-content{white-space:pre-wrap;line-height:1.45}.chat-message.pending .chat-message-content{display:inline-flex;align-items:center;gap:.55rem}.chat-status{border-radius:12px;border:1px solid transparent;padding:.75rem .9rem;display:inline-flex;align-items:flex-start;gap:.65rem;font-size:.9rem}.chat-status.waiting{border-color:#0f6b8d4d;background:linear-gradient(145deg,#0f6b8d21,#0f6b8d14);color:var(--primary-dark)}.chat-status.error{border-color:#c6493f66;background:linear-gradient(150deg,#c6493f29,#c6493f17);color:#8e2c22}.chat-spinner{width:.95rem;height:.95rem;border-radius:999px;border:2px solid rgba(15,107,141,.2);border-top-color:#0f6b8df2;animation:chat-spin .7s linear infinite;flex:0 0 auto}@keyframes chat-spin{to{transform:rotate(360deg)}}.chat-compose textarea{width:100%;resize:vertical;min-height:100px;padding:.75rem .8rem}.chat-compose-actions{margin-top:.75rem;display:flex;align-items:center;justify-content:flex-end;gap:.7rem}.chat-compose-buttons{display:inline-flex;align-items:center;gap:.6rem}@media (max-width: 1100px){.chat-layout{grid-template-columns:1fr}.chat-thread{max-height:none}}:root[data-theme=dark] .chat-card{background:linear-gradient(165deg,#1d2936f7,#182431f0);border-color:#58708b75}:root[data-theme=dark] .chat-message{border-color:#58708b70}:root[data-theme=dark] .chat-message.assistant{background:#1d2936e6}:root[data-theme=dark] .chat-status.waiting{border-color:#4ba4cc6b;background:linear-gradient(145deg,#4ba4cc38,#4ba4cc24);color:#d8f0ff}:root[data-theme=dark] .chat-status.error{border-color:#e46a6075;background:linear-gradient(150deg,#e46a6033,#a13c2f29);color:#fecaca}:root[data-theme=kais90s] .chat-card{background:linear-gradient(165deg,#30255cf7,#261d4bf0);border-color:#8f7ac980}:root[data-theme=kais90s] .chat-message{border-color:#8f7ac975}:root[data-theme=kais90s] .chat-message.user{background:linear-gradient(145deg,#00b5b838,#00b5b824);border-color:#00d2d675}:root[data-theme=kais90s] .chat-message.assistant{background:#30255ce6}:root[data-theme=kais90s] .chat-message.system{background:linear-gradient(150deg,#ff5f6d2e,#ff4fa324);border-color:#ff5f6d75}:root[data-theme=kais90s] .chat-status.waiting{border-color:#00d2d675;background:linear-gradient(145deg,#00b5b83d,#ff4fa324);color:#d7ffff}:root[data-theme=kais90s] .chat-status.error{border-color:#ff5f6d7a;background:linear-gradient(150deg,#ff5f6d38,#d4354a2e);color:#ffd2d6}:root,:root[data-theme=light]{color-scheme:light;--bg: #edf2f7;--bg-accent: #e7edf4;--ink: #142236;--muted: #5b697a;--primary: #0f6b8d;--primary-dark: #0a405c;--accent: #f0b646;--danger: #c6493f;--soft: #6e78d8;--border: #d5e0ea;--card: #fdfefe;--surface-strong: #ffffff;--surface-muted: #f8fbff;--surface-soft: #f7f9fc;--surface-ghost: rgba(248, 250, 252, .9);--ring: rgba(15, 107, 141, .24);--info-bg: rgba(15, 107, 141, .14);--info-fg: var(--primary-dark);--info-border: rgba(15, 107, 141, .26);--success-bg: rgba(25, 146, 89, .16);--success-fg: #0f6c3f;--success-border: rgba(25, 146, 89, .28);--warning-bg: rgba(230, 179, 48, .2);--warning-fg: #7d5600;--warning-border: rgba(230, 179, 48, .3);--danger-bg: rgba(201, 73, 55, .17);--danger-fg: #9a1d10;--danger-border: rgba(201, 73, 55, .3);--critical-bg: rgba(120, 33, 20, .16);--critical-fg: #7a1f14;--critical-border: rgba(120, 33, 20, .34);--neutral-bg: rgba(86, 99, 118, .14);--neutral-fg: #39485c;--neutral-border: rgba(86, 99, 118, .26);--shadow-sm: 0 8px 20px rgba(12, 26, 40, .08);--shadow: 0 16px 38px rgba(12, 26, 40, .12);--shadow-lg: 0 24px 50px rgba(12, 26, 40, .18);--radius: 18px;--bg-layer-top: #f8fbff;--bg-layer-bottom: #e8edf4;--primary-strong-start: #1a88b2;--primary-strong-end: #238db5;--primary-border: rgba(12, 88, 120, .42);--primary-shadow: rgba(15, 107, 141, .28);--primary-shadow-hover: rgba(15, 107, 141, .32);--ghost-bg: rgba(255, 255, 255, .74);--ghost-bg-hover: rgba(255, 255, 255, .95);--ghost-border-hover: rgba(15, 107, 141, .44);--ghost-active-bg: rgba(15, 107, 141, .12);--input-placeholder: #7a8594;--focus-border: rgba(15, 107, 141, .55);--scroll-thumb: rgba(26, 50, 70, .28);--scroll-track: rgba(26, 50, 70, .08)}:root[data-theme=dark]{color-scheme:dark;--bg: #111923;--bg-accent: #1a2633;--ink: #e7eef7;--muted: #9fb0c4;--primary: #4ba4cc;--primary-dark: #2b84af;--accent: #f0b646;--danger: #e46a60;--soft: #95a0ff;--border: #314355;--card: #18222e;--surface-strong: #1d2936;--surface-muted: #202d3c;--surface-soft: #1a2633;--surface-ghost: rgba(44, 63, 84, .72);--ring: rgba(75, 164, 204, .34);--info-bg: rgba(75, 164, 204, .2);--info-fg: #d8f0ff;--info-border: rgba(75, 164, 204, .42);--success-bg: rgba(52, 167, 107, .24);--success-fg: #86efac;--success-border: rgba(52, 167, 107, .38);--warning-bg: rgba(222, 170, 62, .24);--warning-fg: #fde68a;--warning-border: rgba(222, 170, 62, .36);--danger-bg: rgba(228, 106, 96, .24);--danger-fg: #fecaca;--danger-border: rgba(228, 106, 96, .38);--critical-bg: rgba(161, 60, 47, .34);--critical-fg: #fecaca;--critical-border: rgba(161, 60, 47, .46);--neutral-bg: rgba(114, 132, 153, .22);--neutral-fg: #c9d7e6;--neutral-border: rgba(114, 132, 153, .34);--shadow-sm: 0 8px 20px rgba(2, 8, 16, .44);--shadow: 0 16px 38px rgba(2, 8, 16, .52);--shadow-lg: 0 24px 50px rgba(2, 8, 16, .6);--bg-layer-top: #182431;--bg-layer-bottom: #101821;--primary-strong-start: #3f93bc;--primary-strong-end: #4ba4cc;--primary-border: rgba(75, 164, 204, .45);--primary-shadow: rgba(6, 20, 31, .45);--primary-shadow-hover: rgba(6, 20, 31, .54);--ghost-bg: rgba(36, 50, 66, .86);--ghost-bg-hover: rgba(44, 62, 81, .95);--ghost-border-hover: rgba(75, 164, 204, .5);--ghost-active-bg: rgba(75, 164, 204, .2);--input-placeholder: #8ea0b6;--focus-border: rgba(75, 164, 204, .7);--scroll-thumb: rgba(130, 154, 182, .46);--scroll-track: rgba(71, 92, 116, .3)}:root[data-theme=europris]{color-scheme:light;--bg: #eef4ef;--bg-accent: #e7f0e8;--ink: #15261d;--muted: #4f6258;--primary: #006c43;--primary-dark: #005836;--accent: #d51130;--danger: #d51130;--soft: #0074d9;--border: #c5d8cb;--card: #ffffff;--surface-strong: #ffffff;--surface-muted: #f5faf6;--surface-soft: #f1f7f2;--surface-ghost: rgba(245, 250, 246, .9);--ring: rgba(0, 108, 67, .28);--info-bg: rgba(0, 108, 67, .13);--info-fg: #00472b;--info-border: rgba(0, 108, 67, .26);--success-bg: rgba(0, 108, 67, .16);--success-fg: #005836;--success-border: rgba(0, 108, 67, .3);--warning-bg: rgba(240, 182, 70, .2);--warning-fg: #7d5600;--warning-border: rgba(240, 182, 70, .34);--danger-bg: rgba(213, 17, 48, .16);--danger-fg: #8d1029;--danger-border: rgba(213, 17, 48, .3);--critical-bg: rgba(157, 20, 45, .2);--critical-fg: #6f0e21;--critical-border: rgba(157, 20, 45, .34);--neutral-bg: rgba(88, 108, 96, .14);--neutral-fg: #314539;--neutral-border: rgba(88, 108, 96, .26);--shadow-sm: 0 8px 20px rgba(15, 33, 24, .08);--shadow: 0 16px 38px rgba(15, 33, 24, .12);--shadow-lg: 0 24px 50px rgba(15, 33, 24, .18);--bg-layer-top: #f6fbf7;--bg-layer-bottom: #e4ede6;--primary-strong-start: #0b7c51;--primary-strong-end: #005836;--primary-border: rgba(0, 88, 54, .44);--primary-shadow: rgba(0, 108, 67, .26);--primary-shadow-hover: rgba(0, 88, 54, .34);--ghost-bg: rgba(255, 255, 255, .77);--ghost-bg-hover: rgba(255, 255, 255, .95);--ghost-border-hover: rgba(0, 108, 67, .42);--ghost-active-bg: rgba(0, 108, 67, .12);--input-placeholder: #76877d;--focus-border: rgba(0, 108, 67, .58);--scroll-thumb: rgba(23, 63, 45, .34);--scroll-track: rgba(23, 63, 45, .1)}:root[data-theme=kais90s]{color-scheme:dark;--bg: #1a1333;--bg-accent: #221845;--ink: #f7edff;--muted: #b7a8d8;--primary: #00b5b8;--primary-dark: #0d8f93;--accent: #ff4fa3;--danger: #ff5f6d;--soft: #7d5fff;--border: #4a3e73;--card: #241b46;--surface-strong: #2a1f52;--surface-muted: #30255c;--surface-soft: #261d4b;--surface-ghost: rgba(48, 37, 92, .76);--ring: rgba(0, 181, 184, .35);--info-bg: rgba(0, 181, 184, .22);--info-fg: #b7ffff;--info-border: rgba(0, 181, 184, .42);--success-bg: rgba(52, 197, 151, .25);--success-fg: #8fffe1;--success-border: rgba(52, 197, 151, .42);--warning-bg: rgba(255, 183, 77, .25);--warning-fg: #ffe7b8;--warning-border: rgba(255, 183, 77, .42);--danger-bg: rgba(255, 95, 109, .24);--danger-fg: #ffd2d6;--danger-border: rgba(255, 95, 109, .44);--critical-bg: rgba(212, 53, 74, .34);--critical-fg: #ffd2db;--critical-border: rgba(212, 53, 74, .5);--neutral-bg: rgba(161, 141, 208, .24);--neutral-fg: #e4d9ff;--neutral-border: rgba(161, 141, 208, .4);--shadow-sm: 0 8px 20px rgba(10, 6, 24, .45);--shadow: 0 16px 38px rgba(10, 6, 24, .55);--shadow-lg: 0 24px 50px rgba(10, 6, 24, .65);--bg-layer-top: #261d4d;--bg-layer-bottom: #150f2c;--primary-strong-start: #00d2d6;--primary-strong-end: #00a4a7;--primary-border: rgba(0, 181, 184, .48);--primary-shadow: rgba(0, 181, 184, .28);--primary-shadow-hover: rgba(255, 79, 163, .3);--ghost-bg: rgba(55, 41, 99, .88);--ghost-bg-hover: rgba(66, 50, 116, .96);--ghost-border-hover: rgba(0, 181, 184, .58);--ghost-active-bg: rgba(255, 79, 163, .2);--input-placeholder: #9c8fbe;--focus-border: rgba(0, 210, 214, .74);--scroll-thumb: rgba(176, 154, 223, .48);--scroll-track: rgba(90, 69, 142, .34)}:root[data-theme=kais3270s]{color-scheme:dark;--bg: #0a0f0a;--bg-accent: #101710;--ink: #d8f9d2;--muted: #8aad88;--primary: #6ee787;--primary-dark: #3fb950;--accent: #ffb000;--danger: #ff7b72;--soft: #7ee7ff;--border: #29422d;--card: #111911;--surface-strong: #162016;--surface-muted: #172317;--surface-soft: #101910;--surface-ghost: rgba(22, 32, 22, .84);--ring: rgba(110, 231, 135, .3);--info-bg: rgba(126, 231, 255, .14);--info-fg: #c9f7ff;--info-border: rgba(126, 231, 255, .34);--success-bg: rgba(110, 231, 135, .16);--success-fg: #b7ffbf;--success-border: rgba(110, 231, 135, .34);--warning-bg: rgba(255, 176, 0, .18);--warning-fg: #ffe2a1;--warning-border: rgba(255, 176, 0, .34);--danger-bg: rgba(255, 123, 114, .18);--danger-fg: #ffd1cd;--danger-border: rgba(255, 123, 114, .36);--critical-bg: rgba(206, 80, 68, .28);--critical-fg: #ffd1cd;--critical-border: rgba(206, 80, 68, .42);--neutral-bg: rgba(116, 152, 115, .18);--neutral-fg: #d0eacb;--neutral-border: rgba(116, 152, 115, .3);--shadow-sm: 0 8px 20px rgba(2, 10, 2, .44);--shadow: 0 16px 38px rgba(2, 10, 2, .54);--shadow-lg: 0 24px 50px rgba(2, 10, 2, .66);--bg-layer-top: #162116;--bg-layer-bottom: #090d09;--primary-strong-start: #79f28f;--primary-strong-end: #4fca66;--primary-border: rgba(110, 231, 135, .42);--primary-shadow: rgba(110, 231, 135, .2);--primary-shadow-hover: rgba(255, 176, 0, .2);--ghost-bg: rgba(22, 32, 22, .9);--ghost-bg-hover: rgba(28, 41, 28, .96);--ghost-border-hover: rgba(110, 231, 135, .5);--ghost-active-bg: rgba(255, 176, 0, .16);--input-placeholder: #7d9d7c;--focus-border: rgba(110, 231, 135, .7);--scroll-thumb: rgba(110, 231, 135, .3);--scroll-track: rgba(41, 66, 45, .3)}*{box-sizing:border-box}body{margin:0;font-family:Space Grotesk,Helvetica Neue,sans-serif;background:radial-gradient(circle at 6% -5%,#f0b6463b,#f0b64600 38%),radial-gradient(circle at 96% -8%,#0f6b8d38,#0f6b8d00 44%),linear-gradient(180deg,var(--bg-layer-top) 0%,var(--bg) 56%,var(--bg-layer-bottom) 100%);color:var(--ink);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}h1,h2,h3{font-family:Fraunces,Georgia,serif;margin:0 0 .45rem;letter-spacing:.01em}p{margin:0;color:var(--muted);line-height:1.45}button{font-family:inherit;border:1px solid transparent;border-radius:999px;padding:.62rem 1.25rem;cursor:pointer;font-weight:600;letter-spacing:.01em;transition:transform .12s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease}button:hover{transform:translateY(-1px)}button:active{transform:translateY(0)}button:focus-visible{outline:none;box-shadow:0 0 0 3px var(--ring)}button:disabled{opacity:.62;cursor:not-allowed;transform:none}button.primary{background:linear-gradient(145deg,var(--primary),var(--primary-strong-start) 60%,var(--primary-strong-end) 100%);color:#fff;border-color:var(--primary-border);box-shadow:0 12px 24px var(--primary-shadow)}button.primary:hover{box-shadow:0 16px 28px var(--primary-shadow-hover)}button.ghost{background:var(--ghost-bg);border-color:var(--border);color:var(--ink);box-shadow:var(--shadow-sm)}button.ghost:hover{border-color:var(--ghost-border-hover);background:var(--ghost-bg-hover)}button.ghost.active{border-color:var(--primary);color:var(--primary-dark);background:var(--ghost-active-bg)}input,select,textarea{font-family:inherit;color:var(--ink);background:var(--surface-strong);border:1px solid var(--border);border-radius:11px;box-shadow:inset 0 1px #fffc}input::placeholder,textarea::placeholder{color:var(--input-placeholder)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--focus-border);box-shadow:0 0 0 3px var(--ring)}.page{display:flex;flex-direction:column;gap:1.4rem}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem}.page-actions{display:flex;gap:.75rem;flex-wrap:wrap}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:999px}::-webkit-scrollbar-track{background:var(--scroll-track)}@media (max-width: 900px){.page-header{flex-direction:column}}
