:root[data-theme="light"]{--bg:#f3f5f8;--card:#fff;--text:#18263d;--muted:#68758a;--border:#e3e8ef;--raised:#eaf0f5;--accent:#c62c3b;--accent-tint:#fff0f1;--display:'Barlow',system-ui,sans-serif;--shadow:0 20px 60px #14243e20}
body{background:var(--bg)}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:34px 32px 24px}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#748297;margin-bottom:10px}
.workspace-heading h2{font-size:34px;letter-spacing:-.8px;line-height:1.15}
.workspace-heading p{margin:9px 0 0;color:var(--muted);font-size:15px}
.preview-label{font-size:11px;color:#64748b;border:1px solid var(--border);border-radius:20px;padding:7px 12px;background:#fff;white-space:nowrap}
.overview{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:0 32px 28px}
.metric{text-align:left;border:1px solid var(--border);border-radius:15px;background:#fff;padding:18px 22px;display:flex;flex-direction:column;gap:6px;box-shadow:0 3px 9px #14243e03}
.metric>span{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#6b7890}.metric strong{font-family:var(--display);font-size:34px;line-height:1.2}.metric small{font-size:12px;color:var(--muted)}.metric b{float:right;color:#b4273a;font-size:17px}.metric:hover{border-color:#adb9c9;background:#fcfdff}
.searchrow input{border-radius:10px;height:43px}.chip{border-radius:9px;border-color:transparent;background:#e9eef4;font-size:12px;height:32px;padding:0 11px}.chip[aria-pressed="true"]{background:#1d304b;color:#fff;border-color:#1d304b}.chip[aria-pressed="true"] .cnt{color:#fff}.chiprow{gap:6px}.card{border-radius:12px;box-shadow:0 2px 4px #11223c03;transition:box-shadow .15s,transform .15s,border-color .15s}.card:hover{box-shadow:0 7px 18px #14243e0d;border-color:#becbdc;transform:translateY(-1px)}.card .cust{font-weight:700}.card .age{font-size:11px;border-radius:5px;padding:3px 5px;background:#f2f5f8}.card .what{color:#66748a}.card .site{color:#43536a}.sechead .lbl{font-size:11px;letter-spacing:.7px}.sechead .cnt{background:#e1e7ef;border-radius:5px;padding:1px 6px;color:#617089;font-size:11px}.pill.nobody{background:#f1f3f6;color:#778296}.iconbtn{border-radius:12px}.sheet,.panel{box-shadow:var(--shadow)}.btn{border-radius:9px}.page{gap:14px}.page>.card{padding:18px}.tabbar{background:#fff;border-top:1px solid var(--border)}
.brand-mark{display:none}.business-name{display:none}
@media(min-width:900px){
#app{padding-left:214px}.topbar{position:fixed;left:0;top:0;bottom:0;width:214px;padding:32px 20px 24px;display:flex;flex-direction:column;align-items:stretch;gap:0;background:#14253d;color:#fff;border:0;z-index:20}
.brand-mark{display:flex;width:44px;height:44px;align-items:center;justify-content:center;font-size:28px;font-weight:800;background:#cb3442;border-radius:12px;margin-bottom:15px;position:relative}.brand-mark span{font-size:16px;position:absolute;right:3px;top:0}
.topbar h1{flex:none;font-size:25px;letter-spacing:-.4px}.topbar .sub{display:none}.business-name{display:block;font-size:8px;letter-spacing:1.9px;color:#8e9eb6;margin-top:3px}
.desknav{display:flex;flex-direction:column;margin:38px 0 0;padding:0;background:none;gap:8px;border-radius:0}.desknav button{text-align:left;border-radius:9px;height:44px;padding:0 16px;color:#aab8cb;font-size:15px;position:relative}.desknav button[aria-current="page"]{background:#293b55;color:#fff;box-shadow:inset 3px 0 #e05864}.desknav button:hover{background:#253750;color:#fff}.topbar .spacer{flex:1}.topbar .iconbtn{background:#21344d;color:#dce5f3;border-color:#35445a;width:100%;height:40px;margin-top:10px;gap:10px}.topbar #btnSettings:after{content:'Settings';font-size:13px}.topbar #btnAdd{background:#c62c3b;border-color:#c62c3b;color:white}.topbar #btnAdd:after{content:'Add a job';font-size:13px;font-weight:600}
.searchrow,.chiprow{padding-left:32px;padding-right:32px}.searchrow{max-width:650px;margin-bottom:5px}.cols{grid-auto-columns:minmax(235px,1fr);gap:16px;padding:10px 32px 30px}.col{background:#eaf0f5;padding:10px;border-radius:13px;gap:10px}.col .sechead{margin:0 0 6px;height:auto;min-height:26px}.col .sechead .lbl{flex:1}.col .card{padding:15px 13px;gap:10px}.col .card .cust{font-size:15px;line-height:20px}.col .card .site,.col .card .what{font-size:13px;line-height:19px}.col .card .l1{align-items:start}.page{padding:0 32px 32px;max-width:1150px}.bnotice{margin-left:32px;margin-right:32px}#view-ask{max-width:950px;margin:auto}.askhead{border-radius:12px}
}
@media(max-width:899px){.topbar{padding:14px 18px;background:#14253d;color:#fff}.topbar h1{font-size:24px}.topbar .iconbtn:not(.primary){background:#263a55;color:#fff;border:0}.workspace-heading{padding:23px 18px 18px;display:block}.workspace-heading h2{font-size:29px}.workspace-heading p{font-size:13px}.preview-label{display:inline-block;margin-top:14px;font-size:10px}.overview{padding:0 18px 20px;gap:8px}.metric{padding:12px 10px;border-radius:11px}.metric>span{font-size:8px;letter-spacing:.7px}.metric strong{font-size:27px}.metric small{display:none}.eyebrow{font-size:9px}.card{padding:15px}.workspace-heading .eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){.card{transition:none}.card:hover{transform:none}}
#assistantSetup{width:min(460px,calc(100vw - 32px));max-height:90vh;border:0;border-radius:20px;padding:26px;background:#fff;color:#17263d;box-shadow:0 20px 70px #14243e44}
#assistantSetup::backdrop{background:#12243d99;backdrop-filter:blur(3px)}
#assistantSetup form{display:flex;flex-direction:column;gap:14px}.setup-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.setup-heading h2{font-size:24px;line-height:1.2}.setup-heading button{border:0;background:#eef2f6;border-radius:50%;font-size:26px;width:32px;height:32px;line-height:1;flex:none}
#assistantSetup p{margin:0;font-size:14px;line-height:1.5;color:#64748b}#assistantSetup label{font-size:13px;font-weight:600}#assistantKey{width:100%;box-sizing:border-box;height:46px;border:1px solid #cbd5e1;border-radius:9px;padding:0 12px;font-size:16px}#assistantSetup a{font-size:13px;color:#a72132}#assistantSetup .setup-remember{display:flex;align-items:center;gap:9px;font-weight:400}#assistantSetup .setup-detail{font-size:12px}#assistantSetupMessage{color:#a72132!important;min-height:18px}#assistantConnectSubmit{width:100%;min-height:44px}
.assistant-connect{margin-left:auto;flex:none;background:#eef2f6;color:#53657d;border:1px solid #d9e1eb;border-radius:20px;font-size:12px;padding:7px 12px}.assistant-connect.connected{background:#e7f4ed;border-color:#c6e4d5;color:#26704a}.askhead .spk{margin-left:0}
/* A compact, light workspace and a focused account experience. */
.login-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:36px 20px;background:radial-gradient(ellipse at 18% 5%,#eef3f8,transparent 55%),#f8fafc;box-sizing:border-box}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px;color:#17263d;font-size:22px;font-weight:700}.login-brand small{display:block;font-size:8px;font-weight:600;letter-spacing:1.8px;color:#77849b;margin-top:4px}.login-mark{width:45px;height:45px;display:grid;place-items:center;position:relative;border-radius:12px;background:#bd2c3b;color:white;font-family:var(--display);font-size:29px}.login-mark span{position:absolute;right:4px;top:1px;font-size:15px}
.login-card{width:100%;max-width:440px;border:1px solid #e2e8f0;border-radius:20px;background:white;padding:30px;box-shadow:0 10px 40px #1b335207;box-sizing:border-box}.login-eyebrow{font-size:9px;font-weight:700;letter-spacing:1.7px;color:#7d8a9d}.login-card h1{font-family:var(--display);font-size:30px;line-height:1.15;color:#1e3049;margin:12px 0 10px}.login-card>p{font-size:14px;color:#6f7d91;line-height:1.5;margin:0 0 23px}.auth-field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.auth-field label{font-weight:600;font-size:13px;color:#34455e}.auth-field input{height:45px;border:1px solid #d9e0e9;border-radius:9px;padding:0 12px;background:#fff;font-size:16px;box-sizing:border-box;width:100%}.auth-field input:focus{outline:3px solid #b9273617;border-color:#c14753}.auth-field>span{font-size:11px;color:#7a879a}.login-submit{width:100%;height:45px;border:0;border-radius:9px;background:#be2e3e;color:#fff;font-weight:600;font-size:15px}.login-submit:hover{background:#a92332}.form-message{font-size:13px;line-height:1.5;color:#ac2535;margin:10px 0;min-height:18px}.login-footer{font-size:12px;color:#8793a5;margin:24px 0 0}.text-button{background:none;border:0;color:#65758b;font-size:12px;padding:14px 0 0}.login-submit:disabled{opacity:.6;cursor:wait}
.account-box{border-top:1px solid #e8edf3;padding-top:17px;margin-top:22px}.account-person{display:flex;gap:9px;align-items:center;margin-bottom:11px}.account-dot{width:26px;height:26px;border-radius:50%;background:#f6e7e9;border:7px solid #fff;box-shadow:0 0 0 1px #e7d4d8;box-sizing:border-box}.account-person strong{display:block;font-size:12px;color:#334760}.account-person span:not(.account-dot){display:block;font-size:10px;color:#8a98aa;margin-top:2px}.account-action{display:block;background:none;border:0;color:#73839a;font-size:11px;text-align:left;padding:6px 0}.account-action:hover{color:#b52938}#accountMessage{font-size:10px;color:#73839a}
.app-dialog{width:min(490px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #e2e8f0;border-radius:18px;background:white;padding:26px;box-shadow:0 20px 80px #19315333;color:#273b56;box-sizing:border-box}.app-dialog::backdrop{background:#14263f66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-heading h2{font-size:25px;line-height:1.2;margin:5px 0}.dialog-close{border:0;background:#f1f4f8;color:#64748b;border-radius:50%;width:30px;height:30px;flex:none;font-size:23px}.dialog-description{color:#7b879a;font-size:13px;line-height:1.5;margin:12px 0 20px}.team-person{display:flex;gap:11px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1f5}.team-avatar{width:33px;height:33px;border-radius:10px;background:var(--avatar);color:white;font-size:11px;display:grid;place-items:center;flex:none}.team-person-info{flex:1}.team-person-info strong{display:block;font-size:14px;font-weight:600}.team-person-info span{display:block;font-size:11px;color:#8a98ac;margin-top:3px}.team-small{border:1px solid #dbe3ee;color:#58718e;background:#fff;border-radius:8px;font-size:12px;padding:6px 10px}
#inviteForm,#inviteResult{margin-top:20px;border-radius:12px;background:#f6f8fb;padding:15px;display:flex;flex-direction:column;gap:10px}#inviteForm h3{font-size:16px}#inviteForm label,#inviteResult label{font-size:12px;font-weight:600}#inviteForm input,#inviteResult input{font-size:15px;border:1px solid #d9e1eb;border-radius:8px;height:42px;padding:0 10px;box-sizing:border-box;width:100%}#inviteResult p{font-size:11px;color:#7c8b9e;line-height:1.5}#recoveryCode{display:block;background:#f1f5f9;border-radius:10px;padding:16px;overflow-wrap:anywhere;font-size:15px;margin:18px 0;user-select:all}.crew-note-choice{display:flex;align-items:center;gap:7px;font-size:12px;color:#79889a;margin:8px 0 12px}.crew-note-choice input{accent-color:#b82e3d}.work-finished{background:#e8f4ed;border:1px solid #d0e6da;color:#397553;padding:12px;border-radius:9px;font-size:13px}
.workspace-heading{padding:23px 27px 17px}.workspace-heading h2{font-size:27px;font-weight:600}.workspace-heading p{font-size:13px;margin-top:7px}.overview{padding:0 27px 21px;gap:12px}.metric{padding:13px 17px;border-radius:11px;gap:4px;box-shadow:none}.metric strong{font-size:27px}.metric small{font-size:11px}.eyebrow{font-size:8px;margin-bottom:8px}.preview-label{font-size:10px;color:#8391a4;background:#f8fafc;border-color:#e8edf3}.card{box-shadow:none}.card:hover{transform:none;box-shadow:0 4px 14px #203c5810}.askhead{background:white}.askhead .name{font-size:17px}
.job-extras{border-top:1px solid #e4eaf1;padding-top:14px}.job-extras summary{font-size:13px;font-weight:600;color:#6f8096;cursor:pointer;padding-bottom:12px}.job-extras[open] summary{color:#263d58}.job-extras>.field{margin-bottom:15px}
@media(max-width:899px){.account-action{font-size:11px;min-height:30px;padding:5px 0}.account-box{gap:12px}}
body[data-role="crew"] .owner-only,body[data-role="crew"] [data-nav="tasks"],body[data-role="crew"] [data-nav="money"],body[data-role="crew"] [data-nav="ask"],body[data-role="crew"] #btnSettings,body[data-role="crew"] #btnAdd,body[data-role="crew"] #crewChips{display:none!important}body[data-role="crew"] .overview{grid-template-columns:1fr;max-width:310px}body[data-role="crew"] .tabbar{justify-content:space-evenly}
body[data-role="crew"] #boardCols,body[data-role="crew"] #boardNotice{display:none!important}body[data-role="crew"] #boardList{display:flex!important;flex-direction:column;max-width:850px;gap:14px}body[data-role="crew"] #boardList .card{width:100%}
@media(min-width:900px){.topbar{background:#fff;color:#20334d;border-right:1px solid #e4eaf1;padding:26px 19px 22px}.topbar h1{font-size:24px}.business-name{color:#8d99aa;letter-spacing:1.5px}.brand-mark{width:38px;height:38px;font-size:25px;background:#bd2c3b;margin-bottom:12px;border-radius:10px}.brand-mark span{font-size:14px}.desknav{margin-top:30px;gap:6px}.desknav button{color:#79899e;font-size:14px;height:41px;padding-left:13px}.desknav button[aria-current="page"]{background:#f8ecee;color:#9f2534;box-shadow:inset 2px 0 #c44150}.desknav button:hover{background:#f3f6fa;color:#334960}.topbar .iconbtn{background:#f8fafc;color:#60738c;border-color:#e6ebf1}.topbar #btnAdd{background:#bc2c3b;border-color:#bc2c3b}.cols{padding:8px 27px 26px;gap:12px;grid-auto-columns:minmax(226px,1fr)}.col{background:#eef2f6;border-radius:11px;padding:9px}.searchrow,.chiprow{padding-left:27px;padding-right:27px}.page{padding:0 27px 27px}}
@media(max-width:899px){.topbar{background:#fff;color:#263c57;border-bottom:1px solid #e6ebf2;flex-wrap:wrap;gap:9px;padding:12px 18px}.topbar h1{font-size:22px}.topbar .iconbtn:not(.primary){background:#f0f4f8;color:#657891}.topbar .spacer{display:none}.account-box{order:8;flex-basis:100%;display:flex;gap:13px;align-items:center;border-top:1px solid #f0f3f7;padding-top:8px;margin-top:0}.account-person{margin:0;flex:1}.account-person strong{font-size:11px}.account-person span:not(.account-dot){display:none}.account-action{font-size:10px;padding:0}#downloadBackup,#accountMessage{display:none}.workspace-heading{padding:19px 18px 14px}.workspace-heading h2{font-size:26px}.preview-label{display:none}.overview{padding:0 18px 18px;gap:8px}.metric{padding:11px}.metric strong{font-size:25px}.metric>span{font-size:8px}.login-card{padding:26px 23px}.login-screen{padding-top:26px;padding-bottom:26px}.login-card h1{font-size:28px}.login-brand{margin-bottom:25px}.login-footer{font-size:11px}}
@media(max-width:899px){.account-action{font-size:11px;min-height:30px;padding:5px 0}}
.quote-followup{margin:15px 0;padding:17px;border:1px solid #e4eaf1;border-radius:12px;background:#f8fafc}.quote-followup .row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.quote-followup h3{font-size:16px;margin:0}.quote-followup .row span{font-size:11px;color:var(--muted)}.quote-followup label{display:block;font-size:12px;margin-bottom:7px;color:var(--muted)}.quote-followup input{width:100%;box-sizing:border-box}.quote-followup p{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0 0}.quote-followup .btnrow{flex-wrap:wrap;gap:7px;margin-top:12px}.quote-closed{padding:16px;margin:14px 0;background:#f1f4f7;border-radius:11px}.quote-closed p{font-size:13px;white-space:pre-wrap}.quote-closed .btn{margin-top:12px}#closeQuoteForm select,#closeQuoteForm textarea{display:block;width:100%;box-sizing:border-box;margin:7px 0 16px}#closeQuoteForm label{font-size:13px}#closeQuoteMessage{margin-bottom:12px}#f-closure-fields{padding:13px;background:#f1f4f7;border-radius:10px;margin:12px 0}@media(max-width:480px){.quote-followup{padding:14px}.quote-followup .btn{font-size:12px}.quote-followup .row{align-items:flex-start}}
.quote-followup input[type=date],#closeQuoteForm select,#closeQuoteForm textarea{font:inherit;color:var(--text);background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px;min-height:44px}#closeQuoteForm textarea{min-height:80px}
/* The owner can edit, move or cancel without searching through the job sheet. */
.job-stage{margin-top:14px}.job-stage>label{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.job-stage-row{display:flex;gap:8px;align-items:center}.job-stage-row select{min-width:0;flex:1;width:100%;padding:10px 12px;border:1px solid var(--line,#e4eaf1);border-radius:9px;background:#fff;color:var(--text,#20334d);font:inherit;font-size:14px}.job-stage-row .btn{min-height:42px}.job-manage{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.job-manage .btn{min-height:38px}.job-delete{color:var(--bad,#b91c1c)}.job-stage-row .btn:disabled{opacity:.45;cursor:default}@media(max-width:480px){.job-manage{gap:6px}.job-manage .btn{flex:1;padding:8px;font-size:12px}.statusrow{flex-wrap:wrap}}
