:root{font:16px system-ui;color:#173147;background:#eff4f7}*{box-sizing:border-box}body{margin:0}header{padding:20px 5%;background:#122d43;color:white;display:flex;justify-content:space-between;gap:20px}header b{font-size:24px;letter-spacing:3px}main{max-width:1000px;margin:auto;padding:24px}h1{font-size:28px}h2{font-size:21px}h3{font-size:18px}.muted,small{color:#536879;line-height:1.5}nav{display:flex;gap:8px;overflow:auto;padding-bottom:10px;position:sticky;top:0;background:#eff4f7;z-index:2}button,.file{font:inherit;border:0;border-radius:8px;padding:13px 16px;min-height:48px;background:#dfe9ef;color:#173147;cursor:pointer;display:inline-block}button.active,button.primary{background:#126976;color:white}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #e3a931}.panel{background:white;border:1px solid #d7e2e9;padding:22px;border-radius:12px;margin:18px 0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-size:16px}input,select,textarea{display:block;width:100%;font:inherit;padding:12px;border:1px solid #bdcdd7;border-radius:7px;margin:8px 0 16px;background:white;color:#173147}textarea{min-height:90px}input[type=checkbox]{width:24px;height:24px;margin:0}.check{display:flex;align-items:center;gap:12px;padding:14px;background:#f1f6f8;border-radius:7px}.notice{background:#fff4d9;border-left:4px solid #db9c22;padding:15px;line-height:1.5}.pill{display:inline-block;background:#e7eef3;padding:7px 10px;border-radius:6px;font-size:14px}.photos{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.photos img{width:100%;max-height:240px;object-fit:contain;background:#edf2f5}footer{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:30px 0}footer span{flex-basis:100%;font-size:14px}.file input{margin:8px 0}.money{font-size:28px;font-weight:bold}.row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #dce6ed;padding:14px 0}.steps{display:flex;justify-content:space-between;margin:24px 0;gap:12px}@media(max-width:650px){main{padding:14px}.grid,.photos{grid-template-columns:1fr}.panel{padding:18px}nav button{white-space:nowrap}header span{font-size:14px}.row{flex-wrap:wrap}}

.visitbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0}.visitbar span{flex:1;min-width:200px;font-weight:600}

[hidden]{display:none!important}.login{max-width:450px;margin:8vh auto;padding:30px;background:white;border:1px solid #d7e2e9;border-radius:14px}.admin{max-width:950px;margin:25px auto}header{flex-wrap:wrap}header button{font-size:14px}form button{margin-top:10px}

/* Atlas login: dark working surface, separate primary and recovery actions. */
body:has(#loginRoot:not([hidden])){background:#101416;color:#f4f7f7;min-height:100dvh}
body:has(#loginRoot:not([hidden]))>header{background:transparent;color:#829493;padding:22px 5%;align-items:center}
body:has(#loginRoot:not([hidden]))>header b{color:#dce7e5;font-size:18px}
body:has(#loginRoot:not([hidden]))>header span{font-size:12px}
.login{width:calc(100% - 32px);max-width:480px;margin:32px auto 64px;padding:42px 48px 32px;background:#191f22;border:1px solid #2c363a;border-radius:20px;box-shadow:0 24px 72px #0003;color:#f4f7f7}
.login-brand{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:13px;font-weight:700;letter-spacing:4px}
.atlas-mark{display:grid;place-items:center;width:52px;height:52px;border:1px solid #75dcc1;border-radius:50%;color:#75dcc1;font-size:28px;letter-spacing:0;font-weight:700}
.login h1{text-align:center;font-size:27px;letter-spacing:-.7px;margin:24px 0 12px}
.login #loginIntro{text-align:center;color:#a9b9bb;font-size:14px;line-height:1.6;margin:0 0 30px;padding-bottom:28px;border-bottom:1px solid #303a3e}
.login label{font-size:14px;font-weight:600}
.login input{background:#13181b;border:1px solid #566368;color:#f4f7f7;border-radius:8px;min-height:52px;margin:10px 0 24px;padding:14px}
.login input:focus-visible{outline:2px solid #75dcc1;outline-offset:3px}
.login button.primary{width:100%;border-radius:28px;background:#75dcc1;color:#102b25;font-weight:700;min-height:52px;margin-top:8px}
.login button.primary:hover{background:#94e7d0}
.login button:disabled{opacity:.6;cursor:wait}
.login-recovery{text-align:center;margin-top:24px;padding-top:4px}
.login-recovery button{background:transparent;color:#dce6e7;text-decoration:underline;text-underline-offset:4px;font-size:14px;padding:12px 8px;border-radius:6px}
.login-recovery button:hover{color:#75dcc1}
.login button:focus-visible{outline:2px solid #75dcc1;outline-offset:4px}
.login #loginStatus{font-size:14px;line-height:1.6;color:#eacb94;overflow-wrap:anywhere;margin:20px 0 0}
.login #loginStatus:empty{display:none}
.login #recoveryForm{border-top:1px solid #303a3e;margin-top:20px;padding-top:20px}
.login #recoveryForm p{color:#a9b9bb;font-size:14px;line-height:1.6}
@media(max-width:550px){.login{margin:18px auto 32px;padding:32px 24px;border-radius:16px}.login h1{font-size:25px}body:has(#loginRoot:not([hidden]))>header{gap:8px;padding:20px 20px}}

.ai-actions{display:flex;flex-wrap:wrap;gap:14px}.ai-text{white-space:pre-wrap}.ai-actions button:disabled{opacity:.55;cursor:not-allowed}

.visit-actions{display:flex;gap:12px;flex-wrap:wrap}.danger{color:#8c2525;background:#f9e8e8}.danger:hover{background:#f0cdcd}

.document-preview iframe{width:100%;height:75vh;min-height:480px;border:1px solid #d7e2e9;border-radius:8px;background:white;margin-top:20px}.document-preview .ai-actions{margin:16px 0}#aiStatus:not(:empty){padding:14px;background:#edf6f4;border-radius:8px;color:#173147}#documentNotice{scroll-margin-top:70px}
/* Atlas 0.7: focused field notebook */
:root{color:#1c3045;background:#f3f6fa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;line-height:1.5}body{background:#f3f6fa}header{background:#102a43;padding:14px 4%;align-items:center;gap:14px}header b{font-size:22px}header>span:first-of-type{flex:1;color:#b9cbd9;font-size:14px}header button{background:#ffffff14;color:#fff;border:1px solid #ffffff2a;min-height:42px;padding:8px 12px}main{max-width:1120px;padding:32px 28px 24px}h1{font-size:30px;letter-spacing:-.8px;margin:5px 0 8px}h2{letter-spacing:-.4px}p{line-height:1.6}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.workspace-heading p{margin:0}.eyebrow{font-size:12px;font-weight:750;letter-spacing:1.4px;color:#397685}.workspace-badge{color:#436075;background:#e4ecf3;border-radius:20px;padding:8px 14px;font-size:14px;white-space:nowrap}.visitbar{padding:16px 20px;border:1px solid #dce5ed;border-radius:14px;background:#fff;margin:26px 0 18px}.visitbar span{font-size:16px}.visitbar button:first-of-type{background:#126976;color:white}nav{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:#e5ecf3;padding:6px;border-radius:14px;position:sticky;top:8px;box-shadow:0 5px 16px #18334a0a}nav button{display:flex;align-items:center;justify-content:center;gap:10px;background:transparent;border:1px solid transparent;color:#425b71;min-height:56px;padding:8px 12px;font-weight:650}nav button.active{background:white;color:#126976;border-color:#d5e2ea;box-shadow:0 2px 6px #1731470c}.step-number{border-radius:50%;height:26px;width:26px;display:grid;place-items:center;background:#d4dfe9;color:#476174;font-size:14px;flex-shrink:0}nav button.active .step-number{background:#126976;color:white}.stage-title{padding:24px 2px 4px}.stage-title h2{margin:0 0 6px;font-size:24px}.stage-title p{margin:0;color:#546a7c}.panel{border:1px solid #dfe7ee;border-radius:16px;box-shadow:0 4px 16px #16354a04;padding:26px;margin:20px 0}.panel h2:first-child{margin-top:0}.panel h2 small{font-size:14px;font-weight:450;float:right;background:#f0f4f8;padding:4px 10px;border-radius:16px}label{font-size:14px;font-weight:600;color:#385268}input,select,textarea{font-size:16px;line-height:1.5;border:1px solid #cfdae4;border-radius:9px;background:#fbfcfe;min-height:48px;margin:7px 0 18px}input:hover,select:hover,textarea:hover{border-color:#9cb1c2}input:focus,textarea:focus,select:focus{border-color:#126976;background:white;outline:3px solid #12697622}textarea{min-height:110px}.check{font-size:16px;font-weight:450;background:#f5f8fb;border:1px solid #e3ebf2;padding:13px 14px;border-radius:9px;min-height:56px}.check:has(input:checked){background:#edf8f6;border-color:#83bfb5;color:#174f54}input[type=checkbox]{accent-color:#126976;width:22px;height:22px;flex-shrink:0}button,.file{border-radius:9px;font-size:14px;font-weight:650;min-height:48px;transition:background .15s;background:#eaf0f6}button:hover,.file:hover{background:#dce7ef}button.primary{background:#126976}button.primary:hover{background:#0d5662}button:disabled{opacity:.5;cursor:wait}button:focus-visible,.file:focus-visible{outline:3px solid #26a18e;outline-offset:3px}.panel>button{margin:8px 8px 0 0}.grid{gap:14px 20px}summary{cursor:pointer;font-size:14px;font-weight:650;color:#456176;padding:14px 0}details{border-top:1px solid #e3eaf1;margin-top:20px}.notice{background:#fff7e7;border-radius:9px;color:#684e24;font-size:14px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-heading h2{margin:0}.location-line{font-size:14px;background:#f3f7fa;border-radius:9px;padding:12px 16px}.deliverables{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}.deliverables article{border:1px solid #dce6ed;border-radius:13px;padding:22px;background:#fbfdfe}.deliverables h3{font-size:21px;margin:10px 0}.deliverables p{font-size:16px;color:#52697c}.deliverables button{width:100%}.deliverables .muted{font-size:14px;margin-bottom:0}.stage-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0}.document-preview{scroll-margin-top:90px}.document-preview iframe{height:70vh;min-height:460px}.document-preview .ai-actions{gap:10px}.ai-actions button{flex:0 1 auto}#fileDelivery .file{margin-right:12px;color:#126976;text-decoration:none}footer{border-top:1px solid #dae4ed;padding-top:18px}footer>span{background:#e7f2ef;color:#235b51;padding:10px 14px;border-radius:9px}footer details{margin:0;border:0;width:100%}footer .ai-actions{padding:12px 0}.photos>div{border:1px solid #dbe6ee;border-radius:12px;padding:16px;background:#f8fbfd}.photos img{border-radius:8px}.row{align-items:center}.danger{background:#fcecec;color:#963c3c}.login input{background:#13181b}.login label{color:#dce6e7}
@media(max-width:700px){main{padding:22px 16px}header>span:first-of-type{display:none}header{gap:10px}header #sessionName{flex:1;text-align:right;font-size:14px}.workspace-heading{align-items:flex-start}.workspace-badge{display:none}h1{font-size:26px}.visitbar{padding:14px;gap:10px}.visitbar span{flex-basis:100%}.visitbar button{flex:1}nav{gap:2px;padding:4px;top:4px}nav button{flex-direction:column;gap:4px;min-height:66px;padding:7px 3px;font-size:14px}.step-number{width:22px;height:22px;font-size:12px}.panel{padding:20px 16px;border-radius:13px}.panel h2{font-size:20px}.panel h2 small{float:none;display:inline-block;margin-left:5px}.grid,.deliverables,.photos{grid-template-columns:1fr}.stage-title{padding-top:22px}.stage-title h2{font-size:22px}.deliverables{gap:14px}.ai-actions>button{flex:1 1 160px}.stage-actions button{max-width:74%}.document-preview iframe{min-height:380px}.workspace-heading .eyebrow{font-size:12px}.panel-heading{align-items:flex-start;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

footer>span:empty{display:none}.ai-text{overflow-wrap:anywhere}.document-preview iframe{display:block}#stageIntro{scroll-margin-top:100px}
.environment-badge{font-size:12px;font-weight:700;letter-spacing:.3px;border:1px solid #75dcc166;border-radius:20px;padding:4px 10px;color:#a1e5d3}.environment-badge.staging{background:#fff1ce;color:#78521a;border-color:#e4b456}.passkey-login{margin-top:20px;padding-top:20px;border-top:1px solid #303a3e}.passkey-login button{width:100%;background:#243d3c;color:#a5ead7;border:1px solid #426d62}.passkey-login p{font-size:14px;color:#a9b9bb;line-height:1.6}#passkeyPanel{scroll-margin-top:20px}#passkeyStatus:not(:empty){padding:14px;background:#edf6f4;border-radius:8px}@media(max-width:700px){header .environment-badge{order:5;flex-basis:100%;text-align:center}header #accountButton{font-size:14px}}

/* A single, uninterrupted sign-in surface, including mobile overscroll. */
html:has(#loginRoot:not([hidden])){background:#101416;color-scheme:dark;min-height:100%}
body:has(#loginRoot:not([hidden])){background:#101416;min-height:100dvh;display:flow-root}
body:has(#loginRoot:not([hidden]))>header{display:none}
.login #loginIntro,.login .passkey-login,.login #recoveryForm{border:0}
.login{margin-top:clamp(24px,6vh,64px);margin-bottom:32px}
