/* Scott AI design system — calm surfaces, clear hierarchy, intentional color. */
:root{font-family:Inter,"Segoe UI Variable Display","Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif;font-synthesis:none;color:#202c40;background:#f7f9fc;--navy:#152e54;--blue:#2868d8;--red:#cf5264;--muted:#7c8799;--line:#e8edf4;--surface:#fff;--shadow:0 3px 5px #23385c02,0 10px 32px #23385c04}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{border:0;cursor:pointer;border-radius:10px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:13px;line-height:1.4;font-weight:600;background:#2868d8;color:#fff;transition:background .16s,box-shadow .16s,transform .16s}button:hover{background:#1f5cc4;box-shadow:0 4px 12px #2868d81a}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:default;box-shadow:none;transform:none}button.secondary{color:#435775;background:#fff;border:1px solid #dde5f1;box-shadow:0 2px 3px #102c5003}button.secondary:hover{background:#f5f8ff;border-color:#b9cbed}button.danger{background:#c84656}button.link{padding:5px 0;background:none;color:#3870c7;box-shadow:none;font-size:12px}button.link .icon{width:16px;height:16px}button.icon-button{width:32px;height:32px;padding:7px;border-radius:8px;background:transparent;color:#8a97a9;box-shadow:none}button.icon-button:hover{background:#eef3fa;color:#3569b9}button:focus-visible,a:focus-visible{outline:3px solid #97bafa;outline-offset:3px}.icon{width:20px;height:20px;flex:none;vertical-align:middle}input,select,textarea{width:100%;border:1px solid #dfe6f0;border-radius:10px;background:#fff;color:#25364d;padding:12px 13px;font-size:13px;transition:border-color .16s,box-shadow .16s}input::placeholder,textarea::placeholder{color:#98a3b4}input:focus,textarea:focus,select:focus{outline:0;border-color:#91b3ee;box-shadow:0 0 0 3px #3778df12}label{display:grid;gap:8px;font-size:12px;font-weight:600;color:#627088;margin:0 0 18px}textarea{min-height:100px;resize:vertical}h1,h2,h3,p{margin-top:0}h1{font-size:32px;font-weight:650;line-height:1.2;letter-spacing:-1.1px;margin-bottom:10px;color:#22324b}h2{font-size:16px;font-weight:650;letter-spacing:-.3px;margin-bottom:16px;color:#263850}h3{font-size:14px;font-weight:650;margin-bottom:8px}p{line-height:1.7}a{color:#3274d6;text-decoration:none}.muted{color:var(--muted)}.small{font-size:12px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px}.stack{display:grid;gap:12px}.eyebrow{font-size:10px;line-height:1.5;font-weight:650;letter-spacing:1.8px;color:#8b99ae;margin-bottom:9px}
.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{height:100vh;position:sticky;top:0;padding:32px 18px 20px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 39px}.mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#2466d5,#245ac0);color:white;box-shadow:0 5px 13px #3779d52a;position:relative}.mark:after{content:'';position:absolute;right:-2px;top:-2px;width:8px;height:8px;background:#e96a79;border:2px solid white;border-radius:50%}.mark .icon{width:23px;height:23px;stroke-width:1.5}.brand strong{font-size:25px;letter-spacing:-1.2px;color:#243956;font-weight:700}.brand strong span{font-weight:400;color:#4b7dd4;margin-left:2px}.brand small{display:block;color:#9aa6b6;font-size:7.5px;font-weight:600;letter-spacing:1.25px;margin-top:4px;white-space:nowrap}.nav-label{font-size:9px;font-weight:650;letter-spacing:1.9px;color:#a3adbc;padding:0 14px;margin-bottom:14px}.nav{display:grid;gap:5px}.nav button{justify-content:flex-start;position:relative;border-radius:9px;background:transparent;color:#7e8ba0;padding:12px 13px;font-size:12px;font-weight:500;text-align:left;box-shadow:none;gap:12px;min-height:43px}.nav button .icon{width:18px;height:18px;stroke-width:1.7}.nav button:hover{background:#f6f8fc;color:#3268be}.nav button.active{background:#edf3ff;color:#2c67cc;font-weight:600}.nav button.active:before{content:'';position:absolute;left:-18px;top:12px;bottom:12px;width:3px;background:#4078d5;border-radius:0 3px 3px 0}.nav-ai-dot{width:5px;height:5px;border-radius:50%;background:#d87a8b;margin-left:auto}.sidebar-foot{margin-top:auto;padding-top:30px}.workspace-mini{border:1px solid #e9eef5;background:#fcfdff;display:flex;align-items:center;gap:9px;padding:12px;border-radius:11px}.mini-logo{background:#eef3fc;border-radius:8px;color:#486d9d;width:30px;height:30px;display:grid;place-items:center;font-size:13px;font-weight:700}.workspace-mini strong{display:block;color:#64738b;font-size:10px;font-weight:600}.workspace-mini small{display:block;color:#a0aaba;font-size:9px;margin-top:4px}.connection{font-size:9px;color:#97a3b4;display:flex;align-items:center;gap:6px;margin:15px 10px 0}.connection i{width:5px;height:5px;background:#63a89d;border-radius:50%}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{height:76px;flex:none;background:#ffffffd9;backdrop-filter:blur(15px);border-bottom:1px solid #e9edf4;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{display:flex;gap:12px;align-items:center;font-size:11px;color:#a3adbb;white-space:nowrap}.breadcrumb .icon{width:12px;height:12px;color:#b2bdcc}.breadcrumb strong{font-weight:500;color:#65758d}.topbar-right{display:flex;align-items:center;gap:27px}.global-search{display:flex;align-items:center;gap:10px;width:215px;color:#a7b1bf}.global-search>.icon{width:16px;height:16px}.global-search input{border:0;background:transparent;padding:8px 0;font-size:11px;box-shadow:none}.global-search button{background:transparent;color:#a1adbe;padding:4px;box-shadow:none}.global-search button .icon{width:13px;height:13px}.identity{display:flex;align-items:center;gap:10px;border-left:1px solid #e7ecf4;padding-left:24px}.avatar{width:34px;height:34px;border-radius:50%;background:#e7edf9;color:#5579b8;display:grid;place-items:center;font-size:11px;font-weight:650;border:3px solid #fff;box-shadow:0 0 0 1px #edf1f8}.identity-copy strong{font-size:10px;font-weight:650;display:block;color:#53637a}.identity-copy small{font-size:9px;color:#a2adbd;display:block;margin-top:4px;text-transform:capitalize}.identity .icon-button{margin-left:7px;width:26px;height:26px;padding:5px}.identity .icon{width:15px;height:15px}.main{width:100%;max-width:1600px;padding:29px 34px 20px;margin:0 auto;flex:1}.workspace-footer{padding:0 36px 18px;display:flex;justify-content:space-between;font-size:9px;color:#aab4c2;gap:20px}.status-dot{width:5px;height:5px;display:inline-block;border-radius:50%;background:#85b7a6;margin:0 5px 1px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:7px 0 28px}.page-heading .muted{font-size:12px;margin:0}.heading-actions{display:flex;gap:10px;align-items:center}.heading-actions button{white-space:nowrap}.page-heading .actions{margin:0}.page-heading h1{font-size:30px}
.welcome{display:flex;align-items:center;justify-content:space-between;overflow:hidden;border:1px solid #e4ecfb;border-radius:17px;background:linear-gradient(110deg,#eef4ff 0%,#f2f6ff 46%,#f8faff 100%);padding:30px 30px 29px;margin-bottom:23px;position:relative;min-height:213px}.welcome-date{display:flex;align-items:center;gap:7px;font-size:10px;color:#7188ac;font-weight:500;margin-bottom:15px}.welcome-date>span{width:5px;height:5px;border-radius:50%;background:#779cda}.welcome h1{font-size:32px;letter-spacing:-1.1px;line-height:1.25;margin:0 0 9px;font-weight:600;color:#253f65}.welcome h1>span{color:#cd6575}.welcome p{font-size:11px;color:#8392aa;margin-bottom:21px}.welcome-actions{display:flex;gap:15px;align-items:center}.welcome-actions button{font-size:11px;padding:11px 15px;border-radius:8px;box-shadow:0 4px 10px #2b68c91a}.welcome-actions .icon{width:15px;height:15px}.welcome-actions .hero-secondary{background:transparent;color:#6e83a3;box-shadow:none;padding-left:0}.welcome-art{width:260px;flex:none;position:relative;align-self:stretch;display:flex;align-items:center;justify-content:center;margin:-13px 0 -8px 15px}.welcome-art>svg{width:270px;position:relative;z-index:1}.art-glow{position:absolute;width:220px;height:220px;background:radial-gradient(circle,#e1ebfc90,transparent 68%);border-radius:50%;top:-10px;left:20px}.art-label{position:absolute;bottom:3px;right:60px;font-size:6px;font-weight:650;color:#a6b7d3;letter-spacing:1.5px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat{text-align:left;display:block;background:#fff;border:1px solid #e7ecf4;border-radius:13px;padding:17px 19px 18px;box-shadow:var(--shadow);color:#2b3e5c;font-weight:400;min-width:0}.stat:hover{background:white;box-shadow:0 5px 24px #234b8b0d;border-color:#cadbf4;transform:translateY(-2px)}.stat-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.stat-icon{width:30px;height:30px;display:grid;place-items:center;background:#edf4ff;border-radius:9px;color:#6b95d8}.stat-icon .icon{width:16px;height:16px}.stat.violet .stat-icon{background:#f1edff;color:#a194d7}.stat.orange .stat-icon{background:#fff3e9;color:#d9a37b}.stat.green .stat-icon{background:#ebf6f0;color:#78ab94}.stat-arrow{width:13px;height:13px;color:#c1cad7;transform:rotate(-40deg)}.stat label{font-size:10px;font-weight:500;color:#8290a5;margin:0 0 6px;cursor:pointer}.stat b{display:block;font-size:27px;letter-spacing:-1px;color:#2b3e5c;font-weight:600;line-height:1.3}.stat small{font-size:8px;color:#a6b0bf;display:block;margin-top:8px;white-space:normal}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:23px}.grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:23px}.card{background:#fff;border:1px solid #e7ecf3;border-radius:14px;box-shadow:var(--shadow);padding:23px;margin-bottom:22px;min-width:0}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px}.card-head h2{margin:0 0 5px;font-size:14px}.card-head p{margin:0;font-size:10px}.card-head .icon{width:17px;height:17px;color:#a1b0c5}.card-head button{white-space:nowrap;font-size:10px}.schedule-card{min-height:292px}.schedule-empty{text-align:center;padding:13px 12px 8px}.empty-calendar{width:48px;height:48px;border:1px solid #e7edf9;background:#f9fbff;border-radius:13px;margin:0 auto 13px;display:grid;place-items:center;position:relative}.empty-calendar>.icon{width:26px;height:26px;stroke:#a1b8dd;stroke-width:1.2}.empty-calendar>span{position:absolute;font-size:8px;color:#7294c7;top:24px;font-weight:650}.schedule-empty h3{font-size:12px;color:#687a96;font-weight:600;margin-bottom:7px}.schedule-empty p{font-size:10px;color:#a0aabd;max-width:285px;margin:0 auto 17px}.schedule-empty button{font-size:10px;padding:9px 13px;border-radius:8px}.schedule-empty button .icon{width:13px;height:13px}.archive-card{display:flex;gap:15px;align-items:center;padding:21px}.archive-symbol{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:12px;background:#f0f4fc;color:#7897c8}.archive-symbol .icon{width:20px;height:20px}.archive-card .eyebrow{font-size:7px;letter-spacing:1.4px;margin-bottom:5px}.archive-card h2{font-size:12px;margin-bottom:5px}.archive-card p{font-size:9px;margin:0;line-height:1.7}.archive-card>button{margin-left:auto;flex:none;font-size:9px;padding:9px 12px;border-radius:8px;white-space:nowrap}.archive-card>button .icon{width:13px;height:13px}.assistant-card{border-radius:15px;background:linear-gradient(120deg,#1b3762,#294c80);color:white;padding:23px;position:relative;overflow:hidden;margin-bottom:22px;min-height:259px;box-shadow:0 6px 16px #25406c0c}.assistant-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:25px;position:relative;z-index:1}.assistant-symbol{display:grid;place-items:center;width:32px;height:32px;background:#ffffff12;border:1px solid #ffffff12;border-radius:10px;color:#d2dffa}.assistant-symbol .icon{width:18px;height:18px}.assistant-state{font-size:8px;color:#b1c4e2;background:#ffffff09;border:1px solid #ffffff10;padding:5px 8px;border-radius:20px;display:flex;align-items:center;gap:5px}.assistant-state i{width:4px;height:4px;background:#dfa7a5;border-radius:50%}.assistant-card h2{font-size:22px;font-weight:500;letter-spacing:-.6px;line-height:1.35;color:#fff;margin-bottom:12px;position:relative;z-index:1}.assistant-card>p{font-size:10px;color:#abbfdf;max-width:230px;line-height:1.8;margin-bottom:20px;position:relative;z-index:1}.assistant-card>button{font-size:10px;background:#fff;color:#456799;padding:10px 14px;border-radius:8px;position:relative;z-index:1}.assistant-card>button .icon{width:14px;height:14px}.assistant-orbit{width:200px;height:200px;border:1px solid #ffffff08;border-radius:50%;position:absolute;right:-130px;bottom:-70px;box-shadow:0 0 0 35px #ffffff03,0 0 0 70px #ffffff02}.contact-card{padding:22px}.contact-card .card-head{margin-bottom:20px}.coverage-row{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:9px;color:#8492a8;margin-bottom:8px}.coverage-row>span{display:flex;align-items:center;gap:8px}.coverage-row .icon{width:13px;height:13px;color:#a8b7cf}.coverage-row strong{font-size:10px;font-weight:600;color:#687c9e}.coverage-row strong small{font-size:9px;color:#b1bac8;font-weight:400}.coverage-track{display:block;width:100%;height:4px;appearance:none;border:0;border-radius:10px;margin-bottom:17px;overflow:hidden;background:#f0f3f8}.coverage-track::-webkit-progress-bar{background:#f0f3f8;border-radius:10px}.coverage-track::-webkit-progress-value{background:#9fbbea;border-radius:10px}.coverage-track.green::-webkit-progress-value{background:#a1c4b4}.coverage-track::-moz-progress-bar{background:#9fbbea;border-radius:10px}.contact-card>.link{font-size:9px;margin-top:3px}.contact-card>.link .icon{width:12px;height:12px}
.directory-card{padding:0;overflow:hidden}.directory-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px 25px 18px}.directory-header h2{font-size:15px;margin:0 0 7px;display:flex;align-items:center;gap:10px}.count-pill{font-size:10px;color:#7893bc;background:#eef3fc;border:1px solid #e4ebf7;border-radius:7px;padding:3px 7px;font-weight:500;letter-spacing:0}.directory-header p{margin:0;font-size:11px}.directory-search{display:flex;gap:9px;align-items:center;width:min(330px,47%);border:1px solid #e4eaf4;border-radius:9px;background:#fbfcfe;padding:0 12px;margin:0}.directory-search>.icon{width:16px;height:16px;color:#a2b1c8}.directory-search input{background:transparent;border:0;padding:10px 0;font-size:10px;box-shadow:none}.directory-filters{display:flex;gap:5px;align-items:center;padding:0 25px 16px}.filter-button{padding:7px 11px;font-size:10px;border-radius:7px;background:transparent;color:#97a3b6;font-weight:500;box-shadow:none}.filter-button:hover{background:#f5f8fd;color:#6985af;box-shadow:none}.filter-button.selected{background:#edf3ff;color:#4b7ecb}.directory-note{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:9px;color:#a3aec0}.directory-note .icon{width:11px;height:11px}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{background:#f9fbfe;color:#9aa7ba;font-size:9px;text-transform:uppercase;letter-spacing:1px;font-weight:500;padding:13px 18px;border-top:1px solid #edf1f7;border-bottom:1px solid #edf1f7}td{padding:15px 18px;border-bottom:1px solid #f0f3f8;color:#687b99;font-size:11px}tr:last-child td{border-bottom:0}#customer-list th:first-child,#customer-list td:first-child{padding-left:25px}#customer-list tbody tr:hover{background:#fcfdff}.customer-name{display:flex;align-items:center;gap:11px;min-width:180px}.customer-avatar{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none;font-size:10px;font-weight:600;color:#7092c2;background:#eef4ff}.tone-1{background:#f0ecfa;color:#a195c7}.tone-2{background:#eaf4f2;color:#81a99c}.tone-3{background:#fff0ea;color:#c49c85}.tone-4{background:#edf1f6;color:#8b9db7}.customer-name-button{padding:0;background:none;color:#4d6587;border-radius:3px;font-weight:600;font-size:11px;justify-content:flex-start;box-shadow:none;text-align:left}.customer-name-button:hover{background:none;color:#2469cc;box-shadow:none}.customer-name small{display:block;font-size:8px;color:#a8b3c3;margin-top:5px}.contact-primary{font-size:10px;color:#7286a4;overflow-wrap:anywhere}.contact-secondary{font-size:9px;color:#a2aec0;margin-top:5px}.address-cell{max-width:230px;font-size:10px;line-height:1.7;color:#97a4b8;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.history-link{background:#f4f7fc;color:#7d95b8;font-size:9px;padding:6px 9px;font-weight:500;border:1px solid #ebf0f8;border-radius:6px;white-space:nowrap;box-shadow:none}.history-link:hover{background:#eaf1fd;color:#4975b8}.directory-pagination{display:flex;justify-content:space-between;align-items:center;padding:17px 25px;border-top:1px solid #edf1f7;font-size:10px;color:#a3afbf}.directory-pagination>div{display:flex;gap:13px;align-items:center;font-size:9px;color:#a4b1c5}.directory-pagination button{font-size:9px;padding:7px 11px;border-radius:7px}
.job-card{padding:20px;border:1px solid #e8edf6;border-radius:11px;background:#fff;margin-bottom:12px}.job-card h3{margin:0 0 7px;font-size:13px}.job-details{display:flex;flex-wrap:wrap;gap:16px;color:#9ba8ba;font-size:10px;margin:15px 0}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.actions button{font-size:11px}.badge{display:inline-block;background:#eff4fc;color:#7694c0;font-weight:500;font-size:9px;border-radius:5px;padding:5px 8px;text-transform:capitalize;white-space:nowrap}.badge.completed,.badge.paid{background:#edf7f2;color:#6eaa91}.badge.draft{background:#fff5e8;color:#c1a06f}.badge.in_progress{background:#edf3ff;color:#6c91c7}.badge.owner{background:#edf3ff;color:#5d84c3}.notice{background:#f2f6fd;border:1px solid #e5edf9;border-radius:10px;padding:16px 18px;color:#8399ba;font-size:11px;line-height:1.8;margin-bottom:22px;overflow-wrap:anywhere}.notice strong{display:block;font-weight:600;color:#5a7caa}.empty{padding:35px 15px;text-align:center;color:#a0adbf;font-size:12px;line-height:1.8}.empty strong{display:block;color:#8295b1;font-size:14px;font-weight:600;margin-bottom:7px}.feature{padding:16px 0;border-bottom:1px solid #edf1f7;font-size:11px;color:#98a7bc;line-height:1.8}.feature:last-child{border:0}.feature strong{display:block;color:#6d829f;font-weight:600;margin-bottom:5px}.auth{min-height:100vh;display:grid;place-items:center;padding:35px;position:relative;background:radial-gradient(ellipse at 20% 10%,#eaf2ff 0%,transparent 50%),radial-gradient(ellipse at 90% 90%,#fbecf0 0%,transparent 40%),#f8faff}.auth-card{position:relative;z-index:1;width:100%;max-width:430px;border:1px solid #fff;background:#ffffffd9;box-shadow:0 20px 90px #3453850c,0 0 0 1px #e7edf79c;border-radius:22px;padding:38px;backdrop-filter:blur(15px)}.auth .brand{padding:0 0 36px}.auth h1{font-size:27px;font-weight:600;letter-spacing:-.8px}.auth .eyebrow{font-size:8px;color:#a1aec4}.auth .muted{font-size:11px}.auth form{margin-top:25px}.auth form>button{width:100%;margin-top:5px}.auth-card>p:last-child{font-size:9px;color:#afb9c9;text-align:center;margin:22px 0 0}.auth label{font-size:10px}.auth input{background:#fdfefe}.auth .brand strong{font-size:26px}.error{font-size:11px;line-height:1.7;color:#c25a6c;margin-top:10px}
dialog{border:1px solid #ffffffcf;border-radius:19px;padding:29px;width:min(700px,calc(100% - 32px));max-height:90vh;box-shadow:0 25px 100px #152d5733,0 4px 15px #1d3b5d0d;background:#fff;color:#425979}dialog::backdrop{background:#1a2d4f3b;backdrop-filter:blur(5px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.modal-heading h2{font-size:19px;margin:0}.modal-heading .link{color:#a0aec3;font-size:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:25px}.line-item{display:grid;grid-template-columns:minmax(0,1fr) 65px 105px 35px;gap:8px;margin:12px 0}.line-item button{padding:7px}.line-item input{min-width:0}.import-choices{display:grid;gap:12px;margin-top:24px}.import-choices>button{display:grid;grid-template-columns:35px 1fr 20px;grid-template-rows:auto auto;text-align:left;gap:5px 12px;background:#fafcff;border:1px solid #e7edf7;color:#7292bd;padding:20px;box-shadow:none;justify-content:stretch}.import-choices>button>.icon:first-child{grid-row:1/3;align-self:center;width:25px;height:25px}.import-choices>button>strong{font-size:12px;color:#59779f;grid-column:2}.import-choices>button>span{font-size:10px;font-weight:400;color:#9aaac0;grid-column:2;line-height:1.7}.import-choices>button>.icon:last-child{grid-column:3;grid-row:1/3;align-self:center;width:17px;height:17px}.import-choices>button:hover{background:#f3f7ff;border-color:#bdcfee}.inline-check{display:flex;align-items:flex-start;gap:10px;line-height:1.7;margin:20px 0}.inline-check input,.import-row,.history-row{width:17px;min-width:17px;height:17px;accent-color:#3778db}.import-mapping{margin-top:22px}.import-table{max-height:420px;margin:18px 0}.import-table td{vertical-align:top;min-width:120px}.import-table td:first-child{min-width:55px}.import-table td:last-child{min-width:210px}details summary{cursor:pointer;font-size:11px;color:#6c8fbd;font-weight:600;margin:15px 0;line-height:1.7}#modal:has(.import-table){width:min(1100px,calc(100% - 32px))}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.history-card{border:1px solid #e6edf8;border-radius:12px;padding:20px;margin:17px 0}.customer-history{border-top:1px solid #e8eef7;padding-top:24px;margin-top:14px}.history-card label{margin-top:18px}#modal:has(.customer-history){width:min(900px,calc(100% - 32px))}.conversation{min-height:280px;max-height:500px;overflow:auto;display:flex;flex-direction:column;gap:16px;padding-bottom:22px}.message{max-width:90%;align-self:flex-start;white-space:pre-wrap;padding:16px 20px;border-radius:15px;background:#f1f5fd;font-size:13px;line-height:1.8;color:#7b92b4}.message.you{align-self:flex-end;background:#315e9e;color:white}.chat-form{display:flex;gap:12px;align-items:flex-end}.chat-form textarea{min-height:75px;border-radius:13px}.chat-form button{white-space:nowrap}.photos{display:flex;flex-wrap:wrap;gap:12px;margin-top:17px}.photos img{width:110px;height:85px;object-fit:cover;border-radius:9px}.note{border-left:2px solid #bed2f1;padding:10px 15px;margin:15px 0;font-size:12px;line-height:1.8;white-space:pre-wrap;background:#fafcff}.note .small{font-size:9px}.document{padding:25px}.document-brand{padding-bottom:24px;margin-bottom:29px;border-bottom:3px solid #cf6070}.document-brand h1{font-size:28px}.document-brand .muted{font-size:12px}.document-total{font-size:24px;text-align:right;font-weight:650;margin:28px 0;color:#375379}.document p{font-size:12px}.document .small{font-size:10px}.document td{color:#60748f}.internal-ledger{margin-top:23px;border-top:1px solid #e9eef7;padding-top:23px}#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);display:none;border:1px solid #ffffff22;border-radius:12px;background:#29486fe8;color:#fff;box-shadow:0 8px 30px #1b365d1a;backdrop-filter:blur(10px);padding:13px 22px;font-size:12px;max-width:90vw;z-index:30;line-height:1.6}
@media(min-width:1550px){.main{padding-top:38px;padding-left:45px;padding-right:45px}.welcome{padding:36px;min-height:240px}.welcome h1{font-size:38px}.welcome p{font-size:13px}.stat{padding:23px}.stat b{font-size:32px}.stat label{font-size:12px}.stat small{font-size:10px}.dashboard-grid{gap:27px}.card{padding:28px}.card-head h2{font-size:16px}.assistant-card{padding:28px}.assistant-card h2{font-size:27px}.assistant-card p{font-size:12px}.assistant-card button{font-size:12px}}
@media(max-width:1150px){.shell{grid-template-columns:78px minmax(0,1fr)}.sidebar{padding:30px 13px 20px}.brand{padding:0 5px 35px}.sidebar .brand>div:last-child,.sidebar .nav-label,.nav .nav-text,.nav-ai-dot,.sidebar-foot{display:none}.nav button{justify-content:center;padding:13px}.nav button .icon{width:20px;height:20px}.nav button.active:before{left:-13px}.main{padding:28px}.topbar{padding:0 28px}.topbar-right{gap:20px}.welcome-art{width:230px}.welcome h1{font-size:30px}.archive-card{flex-wrap:wrap}.archive-card>div:nth-child(2){flex:1}.archive-card>button{margin-left:59px}.directory-header{gap:15px}.heading-actions button{font-size:11px}.page-heading h1{font-size:29px}.stat{padding:17px}.stat b{font-size:25px}.stat small{font-size:8px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}}
@media(max-width:900px){.main{padding:24px}.topbar{height:66px;padding:0 24px}.global-search{width:160px}.identity-copy{display:none}.identity{padding-left:15px;gap:5px}.breadcrumb{font-size:10px;gap:8px}.welcome{padding:25px;min-height:195px}.welcome-art{width:190px}.welcome h1{font-size:27px}.welcome p{font-size:10px}.welcome-date{font-size:9px}.stats{gap:11px}.stat{padding:16px 13px}.stat b{font-size:24px}.stat label{font-size:9px}.stat small{font-size:7px}.stat-top{margin-bottom:12px}.dashboard-grid{grid-template-columns:1fr 1fr;gap:18px}.assistant-card{padding:22px 19px}.assistant-card h2{font-size:21px}.assistant-state{font-size:7px}.archive-card{padding:18px;gap:12px}.archive-symbol{width:37px;height:37px}.archive-card>button{margin-left:49px}.grid{grid-template-columns:1fr}.directory-header{align-items:flex-start;flex-direction:column}.directory-search{width:100%;max-width:100%}.page-heading{align-items:flex-start}.heading-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px}.heading-actions button{padding:10px 12px}.directory-note{display:none}.workspace-footer{padding-left:24px;padding-right:24px}.customer-name{min-width:160px}}
@media(max-width:680px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:static;height:auto;padding:19px 18px 0;border:0;background:white}.sidebar .brand{padding:0 0 18px}.sidebar .brand>div:last-child{display:block}.sidebar .brand strong{font-size:24px}.sidebar .mark{width:33px;height:33px;border-radius:10px}.sidebar .brand small{font-size:6.5px}.nav{display:flex;overflow-x:auto;gap:5px;padding:0 0 11px;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav button{padding:9px 10px;min-height:34px;gap:7px;flex:none;border-radius:7px;font-size:10px}.nav .nav-text{display:block}.nav button .icon{width:14px;height:14px}.nav button.active:before{display:none}.topbar{height:55px;padding:0 18px}.breadcrumb{display:none}.topbar-right{width:100%;justify-content:space-between;gap:10px}.global-search{width:70%;max-width:250px}.identity{border:0;padding:0}.avatar{width:29px;height:29px;font-size:9px}.identity .icon-button{width:24px;height:24px}.main{padding:19px 17px}.welcome{min-height:185px;padding:25px 21px;margin-bottom:17px;border-radius:14px}.welcome-copy{position:relative;z-index:1}.welcome h1{font-size:27px;max-width:280px;letter-spacing:-1px}.welcome p{font-size:10px;max-width:240px;margin-bottom:20px}.welcome-art{position:absolute;right:-66px;bottom:-15px;width:210px;opacity:.3;z-index:0}.art-label{display:none}.welcome-date{font-size:8px;margin-bottom:13px}.welcome-actions{gap:10px}.welcome-actions button{padding:9px 12px;font-size:9px}.welcome-actions .icon{width:13px;height:13px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:18px}.stat{padding:15px 17px;border-radius:12px}.stat-top{margin-bottom:10px}.stat b{font-size:27px}.stat label{font-size:10px}.stat small{font-size:8px}.stat-icon{width:28px;height:28px}.dashboard-grid{grid-template-columns:minmax(0,1fr);gap:0}.card{padding:21px;margin-bottom:18px;border-radius:13px}.schedule-card{min-height:280px}.assistant-card{padding:25px;min-height:250px;margin-bottom:18px}.assistant-card h2{font-size:26px}.assistant-card>p{font-size:11px;max-width:270px}.assistant-card>button{font-size:11px}.assistant-state{font-size:8px}.assistant-card-top{margin-bottom:24px}.contact-card .card-head h2{font-size:14px}.coverage-row{font-size:10px}.coverage-row strong{font-size:11px}.archive-card{padding:20px;gap:13px}.archive-card h2{font-size:13px}.archive-card p{font-size:10px}.archive-card>button{margin-left:50px;font-size:10px}.workspace-footer{padding:0 18px 20px;font-size:8px}.workspace-footer span:last-child{display:none}.page-heading{flex-direction:column;gap:20px;margin:9px 0 22px}.page-heading h1{font-size:29px}.page-heading .muted{font-size:11px}.heading-actions{justify-content:flex-start;width:100%;gap:9px}.heading-actions button{font-size:11px}.directory-card{padding:0}.directory-header{padding:20px}.directory-header h2{font-size:14px}.directory-filters{padding:0 17px 16px;gap:3px}.filter-button{padding:7px 9px;font-size:9px}.directory-header p{font-size:10px}.directory-search input{font-size:10px}.directory-pagination{padding:17px;font-size:9px;gap:12px;flex-wrap:wrap}.directory-pagination>div{gap:10px}.customer-name{min-width:170px}#customer-list th:first-child,#customer-list td:first-child{padding-left:20px}.directory-note{display:none}.form-grid{grid-template-columns:1fr}.line-item{grid-template-columns:minmax(0,1fr) 48px 80px 29px;gap:6px}.line-item input{font-size:11px;padding:10px 7px}.auth{padding:23px}.auth-card{padding:29px}.auth-card h1{font-size:25px}dialog{padding:24px;max-height:92vh;border-radius:16px}.modal-heading h2{font-size:17px}.form-actions{gap:8px}.form-actions button{font-size:11px;padding:10px 13px}.document{padding:10px 0}.document-brand h1{font-size:23px}.document table td,.document table th{padding:12px 7px}.document-total{font-size:22px}.chat-form{display:grid}.chat-form button{width:100%}.job-details{gap:10px}.message{max-width:100%}.import-choices>button{padding:17px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:white;color:#222}.shell,#toast,.modal-heading,.form-actions,.internal-ledger{display:none}dialog[open]{position:static;width:100%;max-height:none;box-shadow:none;border:0;border-radius:0;padding:0;overflow:visible}dialog::backdrop{display:none}.document{padding:0}.document h1,.document h2,.document p,.document td,.document th,.document-total{color:#111}.document .muted{color:#555}.document-brand{border-bottom-color:#b3394e}.document th{background:#f5f5f5}}
/* Readable type and contrast at the actual Codex pane size. */
:root{--muted:#6c7c93}.nav button{color:#687c99;font-size:12px}.brand small{font-size:8px;color:#7c8fa9}.breadcrumb{font-size:11px;color:#7e8fa8}.breadcrumb strong{color:#566d8d}.identity-copy strong{font-size:12px}.identity-copy small{font-size:10px;color:#7486a1}.global-search input{font-size:12px}.welcome-date{font-size:11px;color:#617da8}.welcome p{font-size:13px;color:#697f9f}.welcome-actions button{font-size:12px}.stat label{font-size:12px;color:#687e9e}.stat b{font-size:30px}.stat small{font-size:10px;color:#7b8ca5}.card-head h2{font-size:16px}.card-head p{font-size:12px}.card-head button{font-size:11px}.schedule-empty h3{font-size:14px;color:#627b9f}.schedule-empty p{font-size:12px;color:#7a8faa}.schedule-empty button{font-size:11px}.archive-card .eyebrow{font-size:9px;color:#8196b3}.archive-card h2{font-size:14px}.archive-card p{font-size:11px}.archive-card>button{font-size:11px}.assistant-card h2{font-size:25px}.assistant-card>p{font-size:12px;color:#bacbe4}.assistant-card>button{font-size:12px}.assistant-state{font-size:9px;color:#ccd8eb}.coverage-row{font-size:11px;color:#6f84a4}.coverage-row strong{font-size:12px}.coverage-row strong small{font-size:10px;color:#7f91aa}.contact-card>.link{font-size:11px}.workspace-footer{font-size:10px;color:#7f90aa}.directory-header h2{font-size:16px}.directory-header p{font-size:12px}.directory-search input{font-size:12px}.filter-button{font-size:11px;color:#7b8fae}.directory-note{font-size:10px;color:#7c90ad}th{font-size:10px;color:#7e91ad}td{font-size:12px}.customer-name-button{font-size:12px;color:#405b81}.customer-name small{font-size:10px;color:#8094b1}.customer-avatar{font-size:11px}.contact-primary{font-size:12px;color:#617da1}.contact-secondary{font-size:11px;color:#7e94b1}.address-cell{font-size:12px;color:#6f87a7}.history-link{font-size:10px;color:#6384b3}.directory-pagination{font-size:11px;color:#7d91ae}.directory-pagination>div,.directory-pagination button{font-size:10px}.page-heading .muted{font-size:13px}.eyebrow{color:#7b8fab}.badge{font-size:10px}.empty{font-size:13px;color:#7d91af}.notice{font-size:12px;color:#667fa4}.notice strong{color:#416695}.feature{font-size:12px;color:#6e86a9}.auth .muted{font-size:13px}.auth label{font-size:12px}.auth .eyebrow{font-size:9px}.auth-card>p:last-child{font-size:10px;color:#7e92b1}.error{font-size:12px}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-grid>div:last-child{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.assistant-card{padding:23px}.assistant-card h2{font-size:23px}.assistant-card-top{flex-wrap:wrap;gap:10px;margin-bottom:18px}.assistant-card>p{font-size:12px}.contact-card{align-self:stretch}.archive-card>button{margin-left:auto}.stat{padding:20px}.stat-top{margin-bottom:12px}.welcome h1{font-size:30px}.welcome-art{width:190px}.welcome p{font-size:12px}}
@media(max-width:680px){.welcome h1{font-size:28px}.welcome p{font-size:12px}.welcome-date{font-size:10px}.welcome-actions button{font-size:11px}.stat{padding:18px}.stat label{font-size:11px}.stat b{font-size:29px}.stat small{font-size:10px}.dashboard-grid>div:last-child{display:block}.assistant-card h2{font-size:27px}.assistant-card>p{font-size:13px}.card-head h2{font-size:15px}.card-head p{font-size:11px}.card-head button{font-size:10px}.archive-card>button{margin-left:50px}.coverage-row{font-size:12px}.coverage-row strong{font-size:13px}.directory-header p{font-size:12px}.directory-search input{font-size:11px}.directory-pagination{font-size:10px}.nav button{font-size:10px}.workspace-footer{font-size:9px}.directory-header h2{font-size:15px}.filter-button{font-size:10px}.page-heading .muted{font-size:12px}.heading-actions button{font-size:12px}}
.employee-summary{display:flex;align-items:center;gap:14px;margin:18px 0}.employee-summary .customer-avatar{width:46px;height:46px;flex:none}.employee-summary h3,.employee-summary p{margin:3px 0}.badge.inactive{background:#f2f4f8;color:#6b7280}.badge.active{background:#e8f7ef;color:#317258}
.square-mark{font-size:34px;color:#243b59}.square-checklist{margin:18px 0}.square-checklist>div{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.square-checklist .icon{color:#6b86ad;width:18px;height:18px;flex:none}.square-checklist span{flex:1;font-size:13px}.square-checklist strong{font-size:12px;color:#667c9b;text-align:right}.square-link-row{padding:15px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.square-link-row p{margin:5px 0}.button-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:10px 0}.button-link .icon{width:16px;height:16px}@media(max-width:680px){.square-checklist>div{flex-wrap:wrap}.square-checklist strong{margin-left:30px;width:100%;text-align:left}.square-link-row{align-items:flex-start;flex-direction:column}}
/* Job planning, field handoff and printable work orders. */
.job-filters{display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(130px,1fr));gap:16px}.job-filters label{margin:0}.job-results-count{font-size:12px;color:var(--muted);margin:0 0 14px}.job-site{display:flex;gap:9px;color:#60799d;font-size:13px;white-space:pre-line;align-items:flex-start}.job-site .icon{width:16px;height:16px;flex:none;margin-top:2px}.job-details .icon{width:15px;height:15px;flex:none}.job-details span{display:flex;gap:7px;align-items:center}.job-readiness{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.job-readiness span{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:7px;background:#f4f6fa;font-size:11px;color:#8795a9}.job-readiness .icon{width:13px;height:13px}.job-readiness .done{background:#edf8f1;color:#397c58}.assignee-fieldset{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:12px}.assignee-fieldset legend{font-size:13px;font-weight:600;padding:0 6px}.assignee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.assignee-choice{display:flex;align-items:center;gap:10px;margin:0;padding:10px;border:1px solid var(--line);border-radius:9px;font-size:12px}.assignee-choice input[type=checkbox]{width:17px;height:17px;min-height:0;flex:none;margin:0;accent-color:var(--blue)}.assignee-choice strong,.assignee-choice small{display:block}.assignee-choice small{font-size:10px;color:var(--muted);margin-top:3px}.schedule-override{margin:20px 0}.schedule-override .assignee-choice{margin-top:12px}.job-summary h2{font-size:25px;margin:12px 0}.job-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.job-summary-grid strong{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#8193ac}.job-summary-grid p{font-size:13px;line-height:1.7;margin:7px 0 0}.job-section{padding-top:22px;margin-top:23px;border-top:1px solid var(--line)}.job-section h3{font-size:16px}.photo-stage-status{display:flex;gap:10px;margin:10px 0 18px}.photo-stage-status span{background:#f1f5fc;color:#657ea4;padding:6px 10px;border-radius:7px;font-size:11px}.work-order{padding:15px 8px;color:#29405e}.work-order-brand{display:flex;justify-content:space-between;gap:20px;padding-bottom:23px;border-bottom:3px solid #315e9b}.work-order-brand h1{font-size:25px;margin:9px 0}.work-order-brand>div:last-child{text-align:right;padding-top:6px}.work-order-brand strong{font-size:11px;letter-spacing:.15em;color:#8b9bb2}.work-order-brand span:not(.eyebrow){display:block;font-size:30px;font-weight:650;margin-top:5px}.work-order-title{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:23px 0}.work-order-title h2{font-size:22px;margin:0}.work-order-facts{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px;background:#f6f8fc;border-radius:11px;margin-bottom:25px}.work-order-facts h3,.work-order>section>h3{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#6b82a3;margin:0 0 10px}.work-order-facts p{font-size:13px;margin:0;line-height:1.7}.work-order>section{margin:23px 0}.work-order>section>p{font-size:13px;line-height:1.8}.work-order-checklist{display:flex;flex-wrap:wrap;gap:24px;font-size:13px}.work-order-note{border-top:1px solid var(--line);padding:10px 0}.work-order-note p{font-size:12px}.work-order-note small{font-size:10px;color:var(--muted)}.work-order-writing div{height:31px;border-bottom:1px solid #dae2ee}.work-order footer{border-top:1px solid var(--line);padding-top:15px;color:#8292a8;font-size:10px;margin-top:30px}@media(max-width:1100px){.job-filters{grid-template-columns:1fr 1fr}}@media(max-width:680px){.job-filters{grid-template-columns:1fr}.assignee-grid,.job-summary-grid,.work-order-facts{grid-template-columns:1fr}.job-summary-grid{gap:15px}.work-order{padding:0}.work-order-brand{flex-wrap:wrap}.work-order-brand h1{font-size:22px}.work-order-title h2{font-size:20px}.work-order-checklist{gap:12px}}@media print{.square-card{display:none!important}.work-order{padding:0;color:#111;font-size:11pt}.work-order-brand{border-bottom-color:#315e9b}.work-order-brand h1{font-size:22pt}.work-order-title h2{font-size:16pt}.work-order-facts{grid-template-columns:1fr 1fr;background:#f7f7f7;border:1px solid #ddd;border-radius:0;padding:15px}.work-order section,.work-order-note{break-inside:avoid}.work-order h3,.work-order .muted,.work-order footer{color:#444}.work-order-facts p,.work-order>section>p{font-size:10pt}.work-order footer{font-size:8pt}}

.staff-unread{margin-left:auto;font-size:11px;font-weight:700;color:#cb4040}.staff-time{display:block;font-size:10px;opacity:.75;margin-top:4px}.staff-conversation{min-height:250px;max-height:480px}.staff-conversation .message p{margin:8px 0 0}.staff-conversation .message strong{font-size:12px}
.invoice-review{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid #dfe6ef;margin-top:28px;padding:23px 0 12px;break-inside:avoid;page-break-inside:avoid}.invoice-review h3{font-size:23px;line-height:1.2;margin:9px 0;color:#203d60}.invoice-review p{font-size:12px;line-height:1.6;max-width:340px;margin:0 0 10px}.invoice-review a{font-size:12px;font-weight:600;color:#285c9b}.invoice-review small{display:block;margin-top:8px;font-size:9px;color:#6d7b90;overflow-wrap:anywhere}.review-qr{display:flex;flex-direction:column;align-items:center;flex:none;text-decoration:none!important;color:#203d60!important}.review-qr img{display:block;width:144px;height:144px;image-rendering:pixelated;background:white}.review-qr span{font-size:10px;letter-spacing:.03em;margin-top:4px}@media(max-width:500px){.invoice-review{gap:12px}.invoice-review h3{font-size:20px}.review-qr img{width:112px;height:112px}.invoice-review .eyebrow{font-size:8px}}@media print{.invoice-review{margin-top:7mm;padding-top:5mm;border-top:1px solid #ccc;break-inside:avoid;page-break-inside:avoid;print-color-adjust:exact}.invoice-review h3{font-size:16pt;color:#111}.invoice-review p,.invoice-review a{font-size:9pt}.invoice-review small{font-size:7pt}.review-qr img{width:32mm;height:32mm}.review-qr span{font-size:8pt}}

@media print { .document-internal-note { display:none !important; } }

/* A modal's screen centering must never offset a paginated print document. */
@media print { html,body { height:auto !important; overflow:visible !important; } dialog[open] { inset:auto !important; margin:0 !important; height:auto !important; max-width:none !important; transform:none !important; } .document thead { display:table-header-group; } .document tr { break-inside:avoid; page-break-inside:avoid; } .document td:first-child { overflow-wrap:anywhere; } }

@media print { .document-audit-timestamps { display:none !important; } }

/* Keep the screen canvas color off customer PDFs below short documents. */
@media print { html { background:#fff !important; } }

.training-banner { padding:12px 16px; margin:0 0 20px; border:1px solid #b8ccea; border-radius:10px; background:#eef4ff; color:#183d70; font-weight:650; font-size:14px; }
