:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f4f6fa;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0}.app-shell{min-height:100vh}.sidebar{width:248px;background:#101827;color:#e9eef8;position:fixed;inset:0 auto 0 0;padding:28px 18px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font-weight:750;font-size:15px;letter-spacing:-.3px;padding:0 8px 38px}.brand small{display:block;color:#8290a8;font-size:9px;letter-spacing:2px;margin-top:3px}.brand-mark{width:36px;height:36px;border-radius:11px;background:#ef4444;display:grid;place-items:center;color:#fff}.sidebar nav{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:13px;color:#9aa8bd;text-decoration:none;padding:12px 13px;border-radius:10px;font-size:14px}.nav-link.active,.nav-link:hover{background:#202c40;color:#fff}.sidebar-note{margin-top:auto;border:1px solid #344157;background:#1a2638;border-radius:12px;padding:14px;font-size:12px}.sidebar-note strong{color:#b8f3d0}.sidebar-note p{color:#9aa8bd;line-height:1.5;margin-bottom:0}.profile{display:flex;align-items:center;gap:10px;padding:20px 5px 0;font-size:12px}.profile small{display:block;color:#8290a8;margin-top:3px}.avatar{width:34px;height:34px;border-radius:50%;background:#35445b;display:grid;place-items:center;font-weight:700}.main-content{margin-left:248px;padding:34px clamp(20px,4vw,58px);max-width:1600px}.topbar,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#8290a5;margin:0 0 7px}.topbar h1{font-size:28px;margin:0;letter-spacing:-1px}.status-pill,.step-tag,.count{font-size:11px;font-weight:700;padding:9px 12px;border-radius:30px;background:#e8f8ef;color:#197347}.status-pill i{display:inline-block;width:7px;height:7px;background:#22a06b;border-radius:50%;margin-right:6px}.welcome{margin:28px 0 22px;padding:30px 34px;background:linear-gradient(115deg,#172b4d,#263f69);border-radius:18px;color:#fff;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.welcome h2{font-size:clamp(23px,3vw,34px);letter-spacing:-1px;margin:0 0 9px}.welcome p:not(.eyebrow){color:#c5d2e7;margin:0 0 21px;font-size:14px;line-height:1.6;max-width:550px}.eyebrow.light{color:#a9bddc}.welcome-icon{width:108px;height:108px;border:1px solid #6b83a8;border-radius:28px;display:grid;place-items:center;font-size:44px;color:#fff;transform:rotate(8deg);background:#ffffff0d;margin-right:5%}.primary-button{border:0;background:#ef4444;color:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:15px;padding:12px 17px;border-radius:9px;font-size:13px;font-weight:750;cursor:pointer}.primary-button:hover{background:#dc3838}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:22px}.stat-card,.panel{background:#fff;border:1px solid #e8ebf1;border-radius:14px}.stat-card{padding:18px 20px}.stat-label,.stat-foot{display:block;color:#7a879a;font-size:12px}.stat-card strong{display:block;font-size:29px;letter-spacing:-1px;margin:8px 0 3px}.stat-foot{font-size:10px}.content-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:17px;align-items:start}.panel{padding:22px}.section-heading{margin-bottom:22px}.section-heading h2{font-size:17px;margin:0;letter-spacing:-.4px}.step-tag{background:#eef2ff;color:#4d5eb0;font-size:9px;letter-spacing:1px}form label{display:block;font-size:12px;font-weight:700;margin:15px 0 7px;color:#354158}input,select{width:100%;height:43px;border:1px solid #dfe4ec;border-radius:8px;background:#fff;padding:0 11px;color:#263248;font:inherit;font-size:13px;outline:none}input:focus,select:focus{border-color:#637ee8;box-shadow:0 0 0 3px #637ee81c}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.approval-note{display:flex;gap:10px;align-items:center;background:#f0faf4;border:1px solid #d9f1e2;border-radius:9px;padding:10px 12px;margin:18px 0}.approval-note>span{width:24px;height:24px;flex:none;display:grid;place-items:center;background:#d6f4e2;color:#16834d;border-radius:50%;font-weight:800}.approval-note p{font-size:11px;line-height:1.5;color:#53715f;margin:0}.approval-note strong{color:#245b3e}.submit-button{width:100%}.form-message{font-size:12px;color:#16834d;min-height:16px;margin-bottom:0}.count{background:#f0f2f6;color:#6c7789;padding:6px 9px}.project-list{display:grid;gap:10px}.project-item{border:1px solid #e9edf3;border-radius:10px;padding:13px}.project-item h3{font-size:13px;margin:0 0 7px}.project-meta{display:flex;flex-wrap:wrap;gap:6px;color:#778398;font-size:10px}.draft-label{margin-left:auto;color:#9a6a17;background:#fff5df;padding:4px 7px;border-radius:20px;font-size:9px;font-weight:800}.empty-state{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#8994a5}.empty-state span{font-size:27px;margin-bottom:10px}.empty-state strong{font-size:13px;color:#455168}.empty-state p{font-size:11px}footer{display:flex;justify-content:space-between;color:#9aa3b1;font-size:10px;padding:25px 3px 8px}@media(max-width:900px){.sidebar{width:205px}.main-content{margin-left:205px;padding:26px 20px}.content-grid{grid-template-columns:1fr}.welcome-icon{width:80px;height:80px}}@media(max-width:620px){.sidebar{position:static;width:auto;height:auto;padding:13px 14px}.brand{padding:0 5px 13px}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav-link{padding:9px 10px;white-space:nowrap;font-size:12px}.nav-link span{display:inline}.sidebar-note,.profile{display:none}.main-content{margin:0;padding:22px 14px}.topbar h1{font-size:24px}.status-pill{font-size:9px;padding:7px 9px}.welcome{padding:23px 20px}.welcome-icon{display:none}.stats-grid{gap:8px}.stat-card{padding:13px 11px}.stat-card strong{font-size:24px}.stat-label{font-size:10px}.stat-foot{font-size:9px}.panel{padding:17px}.form-row{grid-template-columns:1fr}footer{gap:8px;flex-wrap:wrap}}

/* Supabase authentication */
[hidden]{display:none!important}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f4f6fa}
.auth-card{width:min(100%,420px);background:#fff;border:1px solid #e8ebf1;border-radius:18px;padding:30px;box-shadow:0 18px 55px #17203312}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px;color:#172033}
.auth-brand .brand-mark{width:38px;height:38px;border-radius:11px;background:#ef4444;display:grid;place-items:center;color:#fff}
.auth-brand small{display:block;color:#8290a5;font-size:9px;letter-spacing:1.2px;margin-top:4px}
.auth-card h1{font-size:25px;margin:0 0 8px}
.auth-card>p{font-size:13px;color:#758197;line-height:1.5;margin:0 0 20px}
.auth-card label{display:block;font-size:12px;font-weight:700;margin:15px 0 7px;color:#354158}
.auth-card input{width:100%;height:44px;border:1px solid #dfe4ec;border-radius:8px;padding:0 11px;font:inherit;font-size:13px}
.auth-card .primary-button,.secondary-button{width:100%;margin-top:17px;min-height:43px}
.secondary-button{border:1px solid #dfe4ec;background:#fff;color:#354158;border-radius:9px;font-weight:700;cursor:pointer}
.auth-message{font-size:12px;line-height:1.5;color:#52627a;min-height:18px}
.sign-out-button{margin-left:auto;border:1px solid #43516a;background:transparent;color:#cbd5e1;border-radius:7px;padding:7px 9px;font-size:10px;cursor:pointer}
.profile{gap:8px}


/* Phase 2 AI content generator */
.generator-panel{margin-top:18px}
.helper-text{font-size:12px;color:#778398;line-height:1.6;margin:-8px 0 15px}
textarea{width:100%;min-height:88px;border:1px solid #dfe4ec;border-radius:8px;background:#fff;padding:11px;color:#263248;font:inherit;font-size:13px;resize:vertical}
textarea:focus{border-color:#637ee8;outline:none;box-shadow:0 0 0 3px #637ee81c}
.generated-output{margin-top:24px;border-top:1px solid #e9edf3;padding-top:20px}
.generated-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.generated-heading h3{font-size:19px;margin:0 0 15px}
.draft-chip{font-size:9px;font-weight:800;letter-spacing:.5px;background:#fff5df;color:#91620e;padding:7px 9px;border-radius:20px}
.output-block{margin:15px 0;padding:14px;border:1px solid #e9edf3;border-radius:10px}
.output-block>strong{font-size:12px;color:#354158}
.output-block p,.output-block pre{font-size:12px;line-height:1.7;color:#59667a;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;font-family:inherit}
.scene-card{border-top:1px solid #edf0f4;padding:12px 0}
.scene-card:first-child{margin-top:8px}
.scene-card strong{font-size:12px}
.scene-card p{font-size:11px;line-height:1.6;color:#69768a;margin:6px 0}
