:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17223a;background:#f4f6fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.app{display:flex;min-height:100vh}.sidebar{width:255px;background:#101c35;color:#f9fbff;padding:24px 16px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;margin:4px 8px 36px}.brandmark{background:#82e5cb;color:#10283b;border-radius:12px;font-size:26px;font-weight:900;width:46px;height:46px;display:grid;place-items:center}.brand strong{font-size:20px;display:block;letter-spacing:-.7px}.brand small{font-size:10px;color:#a3b2d0}.side-label,.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#67809b}.side-label{color:#7e93b6;margin:0 12px 12px}.sidebar nav{display:grid;gap:6px}.nav{appearance:none;border:0;text-align:left;background:transparent;color:#d1d9e6;padding:14px 13px;border-radius:10px;font-weight:650;font-size:13px;cursor:pointer}.nav:hover,.nav.active{background:#253b60;color:white}.nav.active{border-left:3px solid #8becd4}.sidebar-bottom{font-size:12px;color:#c6d4e7;margin-top:auto;border-top:1px solid #344767;padding:22px 9px 0}.sidebar-bottom p{font-size:11px;color:#9caec9}.status-dot{display:inline-block;background:#89e1bd;width:7px;height:7px;border-radius:50%;margin-right:5px}.main{width:100%;max-width:1500px;padding:34px 40px 24px;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #dae1eb;padding-bottom:24px;margin-bottom:26px}.topbar h1{font-size:33px;letter-spacing:-1.2px;margin:9px 0 4px}.topbar p{color:#66748b;font-size:13px;margin:0}.chip{font-size:11px;background:#e8edf6;border:1px solid #d7e0ec;padding:8px 12px;border-radius:30px;font-weight:800;letter-spacing:.5px;white-space:nowrap}.page{display:none}.page.show{display:block}.notice{padding:16px 20px;background:#e7f5f2;border:1px solid #c9e8df;border-radius:13px;margin-bottom:24px;color:#1b6254;font-size:13px}.section-title{margin:10px 0 16px}.section-title h2,.card h2{font-size:17px;letter-spacing:-.3px;margin:0 0 9px}.section-title p{font-size:12px;color:#6e7b90;margin:0}.card{background:white;border:1px solid #e0e7f0;box-shadow:0 5px 22px #152c5208;border-radius:16px;padding:22px;margin-bottom:18px}.grid{display:grid;gap:17px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.four{grid-template-columns:repeat(4,minmax(0,1fr))}label{display:flex;flex-direction:column;font-size:12px;font-weight:700;color:#40516a;gap:7px;margin-bottom:12px}input,select,textarea{font:inherit;font-size:13px;color:#192c48;width:100%;background:#fff;border:1px solid #cdd8e6;border-radius:9px;padding:11px;min-height:42px}textarea{resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #75cdbf80;outline-offset:2px}.helper{font-size:12px;line-height:1.6;color:#63728b;margin:4px 0 0}.stats{margin:0 0 20px}.stat{background:#142642;color:#fff;padding:19px;border-radius:13px;display:flex;flex-direction:column;gap:9px}.stat small{color:#c0d2e4;font-size:11px}.stat strong{font-size:25px;letter-spacing:-.6px}.huddle{font-size:13px;line-height:1.75;color:#31445e;min-height:198px}.huddle strong{color:#17253f}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}button:not(.nav){border:1px solid #ced9e7;border-radius:9px;background:white;color:#203b5b;padding:11px 14px;font-size:12px;font-weight:750;cursor:pointer}button:not(.nav):hover{background:#f1f5fb}.primary,button.primary:not(.nav){background:#142642;color:white;border-color:#142642}.primary:hover,button.primary:not(.nav):hover{background:#24476b}.secondary{background:#edf5f3!important}.progress{height:6px;background:#e6ecf4;border-radius:10px;overflow:hidden;margin:6px 0 20px}.progress>div{background:#24a589;height:100%;width:33%;transition:width .2s}.answer-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.answer-row button.selected{background:#d6f5ed;border-color:#25a285;color:#15584b}.result{background:#f3f6fa;border:1px solid #e1e8f1;border-radius:11px;padding:15px;font-size:13px;color:#40516a;line-height:1.65;margin:12px 0}.result p{margin:7px 0}.kpi-card h3{margin:0 0 7px;font-size:17px}.kpi-card p{font-size:13px;color:#47566e;line-height:1.6}.kpi-card .tag{font-size:10px;font-weight:800;color:#147564;letter-spacing:.5px;text-transform:uppercase}.kpi-card details{font-size:12px;color:#394e67;border-top:1px solid #e4eaf2;margin-top:14px;padding-top:12px}.kpi-card summary{cursor:pointer;font-weight:750}footer{color:#8a97a8;font-size:10px;line-height:1.6;margin:24px 0}.toast{display:none;position:fixed;right:20px;bottom:20px;background:#142642;color:white;border-radius:10px;padding:14px 20px;font-size:12px;box-shadow:0 10px 30px #0002}.toast.show{display:block}@media(max-width:900px){.app{display:block}.sidebar{width:100%;padding:12px}.brand{margin:2px 0 10px}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav{white-space:nowrap;font-size:12px;padding:12px}.side-label,.sidebar-bottom{display:none}.main{padding:20px 14px}.topbar h1{font-size:25px}.topbar .chip{display:none}.three,.four{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.two,.three,.four{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:13px}.stat strong{font-size:20px}.topbar{padding-bottom:16px}.card{padding:16px}.brand small{display:none}}

.goal-card{border:2px solid #accfcd;background:#f7fcfb}.stat-sub{font-size:12px;color:#d1e2f1;line-height:1.5}.stat-sub b{color:white}.stats .stat{min-height:150px}.goal-card .section-title{margin-top:0}

/* Secure access screen (pilot). Auth is enforced by Supabase and database RLS. */
[hidden]{display:none!important}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 10% 15%,#284b67 0%,#101d35 55%,#0b1428 100%)}
.auth-card{width:min(100%,440px);background:white;border-radius:22px;padding:34px;box-shadow:0 24px 85px #0005}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px;color:#152741}
.auth-brand strong{font-size:25px;letter-spacing:-.8px;display:block}
.auth-brand small{font-size:11px;color:#63758e}
.auth-kicker{font-size:10px;font-weight:800;color:#567584;letter-spacing:1.5px}
.auth-card h1{font-size:30px;letter-spacing:-1px;margin:8px 0}
.auth-intro{font-size:13px;line-height:1.6;color:#68758a;margin-bottom:26px}
.auth-card label{margin:15px 0 7px}.auth-card input{font-size:15px}
.auth-card #login-button{width:100%;margin-top:18px;font-size:14px;min-height:46px}
.auth-card button:disabled{opacity:.55;cursor:not-allowed}
button.auth-link:not(.nav){margin:13px 0 0;background:transparent;color:#285e7b;border:0;padding:4px 0;font-size:12px}
.auth-message{font-size:12px;border-radius:10px;padding:11px 13px;margin-top:16px;background:#eef4f8;color:#33506c;line-height:1.5}
.auth-message.error{background:#fff0ed;color:#a33226}
.auth-message.success{background:#eaf6f0;color:#175d48}
.auth-foot{font-size:11px;color:#7e8798;text-align:center;margin-top:22px}
.account-panel{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
button.signout:not(.nav){font-size:11px;padding:8px 12px}
@media(max-width:520px){.auth-card{padding:24px}.auth-card h1{font-size:26px}}
