:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e9ecf7;background:#0a0d15;font-synthesis:none;--line:#242a3b;--muted:#8992ac;--bg:#0a0d15;--panel:#121827;--panel2:#191f31;--accent:#b9adff;--accent2:#88c9ea;--green:#63d5b1;--orange:#ffbf88}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--accent)}.boot{display:grid;place-content:center;text-align:center;min-height:100vh;font-size:44px;font-weight:750;letter-spacing:-3px}.boot span{color:var(--accent)}.boot small{font-size:14px;letter-spacing:3px;color:#bac6e8}.boot p{font-size:14px;letter-spacing:0;color:var(--muted);font-weight:400}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 450px;background:radial-gradient(circle at 21% 28%,#272047 0,transparent 43%),#0a0d15}.auth-art{padding:clamp(30px,7vw,110px);display:flex;flex-direction:column;justify-content:space-between}.brand{font-weight:800;font-size:22px;letter-spacing:-1.2px;color:#eef0fa;display:flex;align-items:center;gap:10px}.brand-icon{width:33px;height:33px;border-radius:12px;display:inline-grid;place-items:center;background:linear-gradient(135deg,#b5a5ff,#65b2e2);color:#121329}.brand small{font-size:10px;letter-spacing:2px;color:#aaa8e9}.auth-art h1{font-size:clamp(43px,5.7vw,88px);letter-spacing:-5px;line-height:1.02;margin:0;max-width:750px}.auth-art h1 em{font-style:normal;color:#c1b5ff}.auth-art p{max-width:520px;line-height:1.8;color:#a8b1cc}.micro{font-size:11px;color:#8793ad;text-transform:uppercase;letter-spacing:2px}.auth-panel{padding:7vw 48px;background:#111624;border-left:1px solid #303248;display:flex;justify-content:center;flex-direction:column}.auth-panel h2{font-size:32px;letter-spacing:-1px;margin:8px 0}.auth-panel p{color:var(--muted);line-height:1.7}.field{display:flex;flex-direction:column;gap:7px;margin:18px 0}.field label{color:#c2c7db;font-size:12px;font-weight:650}.field input,.field textarea,.field select,.search,input,textarea,select{background:#0b101e;border:1px solid #303951;border-radius:12px;color:#eef0fa;outline:none;padding:12px 14px;min-width:0}.field input:focus,.field textarea:focus,input:focus,select:focus,textarea:focus{border-color:#988bdf;box-shadow:0 0 0 3px #a697ff18}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;border-radius:12px;background:#272e43;border:1px solid #3b425b;color:#f2f4ff;font-weight:650;font-size:13px;transition:.15s}.btn:hover{background:#353d57}.btn.primary{color:#141329;background:linear-gradient(120deg,#c1b2ff,#9dcbf6);border-color:transparent}.btn.primary:hover{filter:brightness(1.08)}.btn.ghost{background:transparent;border:1px solid #343a51}.btn.danger{color:#ffb8be;border-color:#814453;background:#411f30}.btn.full{width:100%}.link-button{padding:0;border:0;background:none;color:#c4b4ff;font-weight:650}.error{color:#ffa8b6;background:#44202c;padding:10px 12px;border:1px solid #853447;border-radius:10px;margin:10px 0}.layout{display:grid;grid-template-columns:226px minmax(0,1fr);height:100dvh}.sidebar{border-right:1px solid #283044;background:#101522;padding:24px 13px 16px;display:flex;flex-direction:column;gap:20px;min-height:0}.sidebar .brand{padding:0 12px}.sidebar .navgroup{padding:14px 12px 7px;color:#6c7b9c;font-size:10px;font-weight:800;letter-spacing:2px;text-transform:uppercase}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{display:flex;gap:11px;align-items:center;width:100%;padding:11px 13px;color:#aab3ce;background:none;text-align:left;border-radius:11px;font-size:13px}.sidebar nav button:hover{background:#1e2638;color:white}.sidebar nav button.active{background:linear-gradient(100deg,#3e355c,#242a3e);box-shadow:inset 3px 0 #b5a6ff;color:#f5f4ff}.nav-icon{width:20px;font-size:16px;color:#a8a4ff}.sidebar-end{margin-top:auto;padding:14px 12px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:11px}.badge{display:inline-block;border:1px solid #536076;color:#b8c4e3;padding:5px 10px;border-radius:50px;font-size:10px}.online{background:#183d32;color:#8decc7;border-color:#2e775d}.main{display:flex;flex-direction:column;min-width:0;min-height:0}.topbar{display:flex;justify-content:space-between;align-items:center;height:76px;padding:0 clamp(20px,3vw,42px);border-bottom:1px solid var(--line);gap:13px}.topbar .crumb{font-size:11px;color:#8392b2;letter-spacing:1.4px;text-transform:uppercase}.topbar .top-title{font-size:19px;font-weight:750;margin-top:4px}.topbar .tools{display:flex;align-items:center;gap:12px}.topbar select{background:#161d2e;font-size:12px;padding:9px 12px;max-width:190px}.circle{display:grid;place-items:center;border-radius:50%;width:33px;height:33px;background:#403b66;border:1px solid #655e98;font-size:12px;font-weight:800}.content{overflow:auto;min-height:0;padding:30px clamp(18px,3vw,44px) 60px}.heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:28px}.heading h1{font-size:32px;letter-spacing:-1.3px;margin:0 0 8px}.heading p{color:#8895b2;margin:0;line-height:1.65;font-size:13px}.actions{display:flex;gap:10px;flex-wrap:wrap}.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.card{background:linear-gradient(155deg,#171d2e,#121724);border:1px solid #293046;border-radius:18px;min-width:0}.kpi{padding:23px;position:relative;overflow:hidden}.kpi:after{content:'';position:absolute;right:-40px;top:-47px;width:110px;height:110px;border-radius:50%;background:#9c8ceb16}.kpi .caption{font-size:11px;color:#919cba;text-transform:uppercase;letter-spacing:1.3px}.kpi strong{display:block;font-size:34px;letter-spacing:-1.8px;margin:11px 0 0}.split{display:grid;grid-template-columns:1.5fr 1fr;gap:17px;margin-top:20px}.panel{padding:22px}.panel h3{font-size:16px;margin:0 0 18px}.item{padding:13px 0;border-top:1px solid #2a3042;display:flex;align-items:center;justify-content:space-between;gap:10px}.item:first-of-type{border-top:0}.item strong{font-size:13px;font-weight:650}.item p{font-size:11px;color:#8993ad;margin:5px 0 0}.muted{color:var(--muted)}.empty{color:#8793ab;text-align:center;padding:50px 20px;font-size:13px;line-height:1.75}.empty-icon{font-size:29px;margin-bottom:12px;color:#aca0ea}.board{display:grid;grid-template-columns:repeat(5,minmax(205px,1fr));gap:13px;min-width:950px}.board-wrap{overflow:auto;padding-bottom:12px}.lane{border:1px solid #292f43;border-radius:16px;background:#111724;min-height:510px;padding:14px}.lane.drop{outline:2px solid #c2b4ff}.lane-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:750;padding:3px 4px 17px}.count{display:inline-grid;place-items:center;background:#252c40;border-radius:8px;min-width:24px;height:22px;font-size:11px;color:#aebbdc}.task{border:1px solid #374054;border-radius:13px;background:#1c2334;padding:15px;margin:0 0 10px;cursor:grab}.task:hover{border-color:#827ab4}.task h4{font-size:12px;line-height:1.5;margin:10px 0;color:#f0f2fd}.task p{font-size:11px;line-height:1.5;color:#99a5bf;max-height:60px;overflow:hidden}.task-bottom{display:flex;align-items:center;justify-content:space-between;color:#798ba8;font-size:10px}.priority{font-size:9px;border:1px solid #5a566b;border-radius:6px;padding:4px 6px;color:#dabaff}.label-chip{font-size:10px;background:#292e48;border-radius:8px;padding:5px 8px;color:#c5c8f4}.chat-shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:calc(100dvh - 176px);background:#111725;border:1px solid #293044;border-radius:18px;overflow:hidden}.threads{padding:15px;border-right:1px solid var(--line);overflow:auto}.threads h3{font-size:11px;color:#7c8aa9;letter-spacing:1.7px;text-transform:uppercase;padding-left:11px}.thread{width:100%;display:flex;align-items:center;gap:10px;padding:13px 11px;margin:6px 0;border-radius:12px;text-align:left;background:none;color:#aab5d0;font-size:12px}.thread:hover,.thread.active{background:#293048;color:#f4f2ff}.thread .avatar{flex-shrink:0}.avatar{width:35px;height:35px;border-radius:11px;background:linear-gradient(140deg,#605a9a,#343f6c);color:#f7f1ff;display:grid;place-items:center;font-weight:750}.conversation{display:flex;flex-direction:column;min-width:0}.conversation-head{padding:21px 24px;border-bottom:1px solid var(--line);font-size:14px;font-weight:750}.conversation-head small{display:block;color:#8b96b2;font-weight:400;margin-top:6px}.messages{padding:24px;overflow:auto;flex:1;min-height:250px;max-height:calc(100dvh - 340px)}.message{max-width:min(84%,730px);margin-bottom:22px;display:flex;gap:10px;align-items:flex-start}.message.you{margin-left:auto;flex-direction:row-reverse}.bubble{padding:13px 16px;background:#242c43;border:1px solid #36405b;border-radius:14px;font-size:12px;line-height:1.72;white-space:pre-wrap;overflow-wrap:anywhere}.message.you .bubble{background:#39345b;border-color:#635b8e}.message .meta{font-size:10px;color:#8390ae;padding:0 3px 7px}.message.you .meta{text-align:right}.composer{margin:16px 20px 20px;border:1px solid #353b55;border-radius:14px;background:#1a2131;padding:10px}.composer textarea{width:100%;min-height:60px;resize:vertical;border:0;background:transparent;padding:6px;color:#f2f3fc}.composer-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.composer small{color:#7986a6;font-size:10px}.team-grid,.devices-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:15px}.team-card{padding:25px}.team-card h3{margin:16px 0 6px;font-size:16px}.team-card p{font-size:12px;line-height:1.7;color:#a5b0cd}.team-card .role{font-size:10px;color:#d3beff;text-transform:uppercase;letter-spacing:1.2px}.device-card{padding:25px}.device-card h3{margin:16px 0 5px}.device-card p{color:#94a1c0;font-size:12px}.device-card code{display:block;overflow-wrap:anywhere;color:#9aa8d6;font-size:11px}.table{width:100%;border-collapse:collapse}.table th{text-align:left;color:#8590ac;text-transform:uppercase;letter-spacing:1px;font-size:10px;padding:14px}.table td{padding:15px 14px;border-top:1px solid #292f43;font-size:12px;max-width:360px;overflow-wrap:anywhere}.table .result{max-height:100px;overflow:auto;display:block;white-space:pre-wrap;font:11px/1.5 ui-monospace,monospace;color:#aebada}.project-card{padding:23px;cursor:pointer}.project-card:hover{border-color:#8879b8}.project-card h3{margin:0 0 10px}.project-card p{font-size:12px;color:var(--muted);line-height:1.5}.modal-scrim{position:fixed;inset:0;background:#070914d9;z-index:30;display:grid;place-items:center;padding:16px}.modal{width:min(95vw,510px);max-height:88vh;overflow:auto;background:#1b2131;border:1px solid #48536e;border-radius:20px;padding:30px;box-shadow:0 20px 100px #0009}.modal h2{font-size:22px;margin:0}.modal p{font-size:12px;line-height:1.7;color:#9eabc6}.modal .footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.modal code{display:block;overflow-wrap:anywhere;background:#0a1020;color:#bacaff;padding:14px;border:1px solid #333e59;border-radius:12px;font-size:12px}.hidden{display:none!important}#toast{position:fixed;bottom:20px;right:24px;z-index:60;display:grid;gap:10px}#toast>div{max-width:350px;padding:13px 17px;background:#333153;color:#fff;border:1px solid #6e63a4;border-radius:12px;box-shadow:0 9px 32px #0007;font-size:12px}.mobile-menu{display:none}.status-pill{padding:5px 10px;border-radius:999px;background:#363851;color:#d0cdfa;font-size:11px}.status-pill.done{background:#174439;color:#8eebc8}.status-pill.failed{background:#4c2532;color:#ffb5c2}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,1fr)}.split{grid-template-columns:1fr}.topbar{padding:0 18px}.topbar select{max-width:130px}}
@media(max-width:780px){.layout{grid-template-columns:1fr}.sidebar{position:fixed;z-index:20;top:0;bottom:0;left:0;width:250px;transform:translateX(-105%);transition:transform .2s;box-shadow:15px 0 70px #0008}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-flex}.content{padding:23px 15px 45px}.topbar{height:66px}.topbar .crumb{display:none}.topbar .top-title{font-size:15px}.topbar .tools{gap:5px}.topbar select{max-width:110px;padding:7px}.kpis{grid-template-columns:repeat(2,1fr)}.heading{align-items:flex-start;flex-direction:column}.heading h1{font-size:27px}.chat-shell{grid-template-columns:125px minmax(0,1fr);min-height:calc(100dvh - 210px)}.threads{padding:7px}.threads h3{font-size:9px}.thread{padding:9px 5px;gap:5px;font-size:10px}.thread .avatar{display:none}.conversation-head{padding:14px}.messages{padding:12px}.composer{margin:9px}.message{max-width:95%}.auth-shell{grid-template-columns:1fr}.auth-art{display:none}.auth-panel{min-height:100vh;padding:40px 26px}.table{min-width:650px}.table-wrap{overflow:auto}}

/* v8.2 dependency graph surface */
.dependency-graph{display:grid;gap:8px;margin-top:14px}
.dependency-graph[hidden]{display:none}
.dependency-row{border:1px solid rgba(134,154,206,.18);border-radius:12px;padding:13px;display:grid;grid-template-columns:minmax(130px,2fr) minmax(90px,1fr) minmax(140px,2fr);gap:10px;align-items:center;cursor:pointer}
.dependency-row:hover{background:rgba(115,143,228,.09)}
.dependency-links{font-size:12px;line-height:1.65;color:#abbad9;overflow-wrap:anywhere}
@media(max-width:740px){.dependency-row{grid-template-columns:1fr 1fr}.dependency-links{grid-column:1/-1}}

/* v8.3 project capability grants and approval inspector */
.cap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:280px;overflow-y:auto;padding:12px;background:#0d1423;border:1px solid #39435d;border-radius:12px}
.cap-choice{display:flex;align-items:center;gap:8px;font:12px ui-monospace,monospace;color:#bec9e0;min-width:0;overflow-wrap:anywhere}
.cap-choice input{accent-color:#a193fb;width:15px;height:15px;flex-shrink:0}
@media(max-width:480px){.cap-grid{grid-template-columns:1fr}}

/* Stage C — customer-focused Project HQ / sprint delivery / audit timeline */
.hq-hero{padding:28px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(115deg,rgba(162,142,235,.17),rgba(38,71,100,.12)),#121827;margin-bottom:16px}
.hq-hero h2{margin:8px 0 8px;font-size:clamp(24px,2.5vw,35px);letter-spacing:-1px}.hq-hero p{color:#a7b4d0;max-width:700px;font-size:13px;line-height:1.65}.hq-binding{display:inline-flex;max-width:100%;overflow-wrap:anywhere;flex-wrap:wrap;font-size:11px;color:#a8d5cc;border:1px solid #356159;padding:8px 12px;border-radius:9px;background:#0d2423}.hq-actions{display:flex;gap:8px;flex-shrink:0}
.hq-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}.hq-stat{padding:19px 14px;min-width:0}.hq-stat span{font-size:11px;display:block;color:#a1abc7}.hq-stat strong{font-size:27px;display:block;margin-top:12px;line-height:1}.hq-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px;align-items:start}.hq-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.hq-section-title h3{margin:6px 0 0}.hq-section-title .btn{white-space:nowrap}.hq-progress{height:10px;border-radius:99px;background:#293347;overflow:hidden;margin:15px 0 8px}.hq-progress span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#89b7fb,#b6a9ff)}.hq-note{font-size:12px;color:#ffd09a;padding:12px;border:1px solid #665034;border-radius:12px}.hq-mini-list{margin-top:18px}.hq-mini-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #2a3245;font-size:12px}.hq-mini-row strong{font-weight:600}.hq-mini-row small{display:block;font-size:11px;color:#9eabc7;margin-top:5px}.hq-mini-row>small{text-align:right;white-space:nowrap}.hq-mini-row:last-child{border-bottom:0}.hq-workforce{max-height:370px;overflow-y:auto}.hq-agent{display:flex;gap:12px;align-items:center;border-bottom:1px solid #283047;padding:11px 0}.hq-agent:last-child{border-bottom:0}.hq-agent-avatar{width:35px;height:35px;background:#35354f;color:#dcd3ff;display:grid;place-items:center;border-radius:11px;font-size:11px;font-weight:700;flex-shrink:0}.hq-agent>div{flex:1;min-width:0}.hq-agent strong,.hq-agent small{display:block}.hq-agent small{font-size:11px;color:#98a5c5;margin-top:5px}.hq-message-list{max-height:325px;overflow-y:auto;border:1px solid #30364c;background:#101625;padding:12px;border-radius:12px}.hq-message{border-bottom:1px solid #273049;padding:12px 3px}.hq-message:last-child{border-bottom:0}.hq-message-meta{color:#a49ce1;font-size:11px}.hq-message p{font-size:12px;line-height:1.6;color:#d0d8ec;margin:8px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.hq-form{margin-top:15px;display:grid;gap:9px}.hq-form textarea{min-height:112px;width:100%;resize:vertical}.hq-form-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.hq-form-controls label,.hq-timeline-filters label{display:grid;gap:5px;font-size:11px;color:#9aabc7;min-width:150px}.hq-form-controls button{margin-left:auto}.hq-request-list{max-height:560px;overflow:auto}.hq-request,.hq-lineage-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:14px;text-align:left;padding:14px 0;border-bottom:1px solid #283147;background:none;color:#e9eefa}.hq-request:hover,.hq-lineage-row:hover{background:#262d42}.hq-request>div,.hq-lineage-row>div{min-width:0}.hq-request strong,.hq-request small,.hq-lineage-row strong,.hq-lineage-row small{display:block}.hq-request strong,.hq-lineage-row strong{font-size:12px;font-weight:620;line-height:1.5}.hq-request small,.hq-lineage-row small{font-size:10px;color:#91a1c3;margin-top:7px}.hq-request .status-pill,.hq-lineage-row .status-pill{white-space:nowrap}.hq-acceptance{font-size:11px;color:#9ba7c1;display:block;text-align:right;margin-top:6px}.hq-modal{width:min(94vw,780px)}.hq-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.hq-modal-head h2{margin:5px 0}.hq-request-body{white-space:pre-wrap;overflow-wrap:anywhere;background:#11192b;border:1px solid #30394f;border-radius:12px;padding:16px;max-height:180px;overflow:auto}.hq-lineage-list{max-height:50vh;overflow:auto}.hq-timeline-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.hq-timeline{padding:10px 4px}.hq-timeline-event{display:grid;grid-template-columns:25px minmax(0,1fr);gap:12px;position:relative;padding:18px 0;border-bottom:1px solid #293247}.hq-event-mark{width:13px;height:13px;border:3px solid #b4a3ee;border-radius:50%;background:#1b2237;margin-top:4px}.hq-event-mark.sprint{border-color:#92dcca}.hq-event-mark.request{border-color:#f8cd9c}.hq-event-main{min-width:0}.hq-event-top{display:flex;justify-content:space-between;gap:10px;font-size:13px}.hq-event-top small{font-size:10px;white-space:nowrap;color:#8d9ab7}.hq-event-main p{font-size:12px;color:#bac5de;white-space:pre-wrap;overflow-wrap:anywhere}.hq-event-main>small{font-size:11px;color:#8292b5}.hq-event-main .btn{margin-top:10px;padding:7px 11px;font-size:11px}
@media(max-width:1450px){.hq-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1050px){.hq-two{grid-template-columns:1fr}}@media(max-width:650px){.hq-hero{align-items:stretch;flex-direction:column;padding:20px}.hq-actions{flex-wrap:wrap}.hq-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hq-form-controls label{width:100%}.hq-form-controls button{margin:0;width:100%}.hq-section-title{align-items:flex-start}.hq-request,.hq-lineage-row{align-items:flex-start;flex-direction:column}.hq-timeline-filters label{width:100%}.hq-event-top{align-items:flex-start;flex-direction:column}.hq-mini-row{align-items:flex-start}.hq-stat{padding:14px 12px}}
