:root{color:#172033;background:#f5f7f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{width:100%;border:1px solid #d6dee2;border-radius:8px;background:#fff;color:#172033;padding:11px 12px}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#566672 50%),linear-gradient(135deg,#566672 50%,transparent 50%);background-position:calc(100% - 22px) 50%,calc(100% - 16px) 50%;background-repeat:no-repeat;background-size:6px 6px,6px 6px;padding-right:42px}textarea{resize:vertical}label{display:grid;gap:7px;color:#40505c;font-size:.9rem;font-weight:700}.auth-page{display:grid;min-height:100vh;place-items:center;padding:24px;background:linear-gradient(135deg,rgba(30,111,92,.12),transparent 42%),linear-gradient(315deg,rgba(232,138,65,.14),transparent 45%),#f5f7f8}.auth-panel,.loading-box{width:min(440px,100%);border:1px solid #dce4e8;border-radius:8px;background:#fff;box-shadow:0 16px 40px #17203314;padding:32px}.auth-panel h1{margin:18px 0 8px;font-size:2rem}.auth-panel p{margin:0 0 24px;color:#667782}.brand-mark{display:grid;width:52px;height:52px;place-items:center;border-radius:8px;background:#1e6f5c;color:#fff}.brand-mark.small{width:38px;height:38px}.stack{display:grid;gap:16px}.app-shell{display:grid;min-height:100vh;grid-template-columns:260px 1fr}.sidebar{position:sticky;top:0;display:flex;height:100vh;flex-direction:column;justify-content:space-between;border-right:1px solid #dce4e8;background:#fff;padding:20px}.brand-row{display:flex;align-items:center;gap:12px;padding-bottom:22px}.brand-row span{display:block;max-width:160px;overflow:hidden;color:#71808a;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}.nav-list{display:grid;gap:6px}.mobile-nav{display:none}.mobile-nav-trigger{display:flex;width:100%;min-height:48px;align-items:center;justify-content:space-between;border:1px solid #d6dee2;border-radius:8px;background:#f7faf9;color:#172033;padding:10px 12px;font-weight:900}.mobile-nav-trigger span{display:inline-flex;align-items:center;gap:9px}.chevron{transition:transform .16s ease}.chevron.open{transform:rotate(180deg)}.mobile-nav-menu{display:grid;gap:6px;margin-top:8px;border:1px solid #dce4e8;border-radius:8px;background:#fff;padding:8px;box-shadow:0 10px 24px #17203314}.nav-button,.ghost-button,.secondary-button,.primary-button,.icon-button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;font-weight:800}.nav-button{justify-content:flex-start;width:100%;background:transparent;color:#566672;padding:11px 12px}.nav-button.active{background:#e7f1ee;color:#1e6f5c}.ghost-button{background:#f2f5f6;color:#40505c}.primary-button{background:#1e6f5c;color:#fff;padding:11px 15px}.primary-button.compact{min-height:38px}.secondary-button{border:1px solid #d5dee3;background:#fff;color:#33424c;padding:10px 14px}.icon-button{min-width:42px;background:#f4f6f7;color:#40505c}.content{padding:28px}.topbar,.section-head,.button-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.section-actions{display:flex;align-items:center;gap:10px}.mobile-only{display:none}.topbar{margin-bottom:22px}.eyebrow{margin:0 0 4px;color:#7b6435;font-size:.8rem;font-weight:900;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:clamp(2rem,3vw,3.2rem)}h2{margin-bottom:12px;font-size:1.15rem}h3{margin-bottom:4px;font-size:1rem}p{color:#667782}.page-grid{display:grid;gap:18px}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.metric,.panel,.item-card{border:1px solid #dce4e8;border-radius:8px;background:#fff}.metric{display:flex;align-items:center;gap:14px;padding:18px}.metric span{display:grid;width:42px;height:42px;place-items:center;border-radius:8px;background:#fff3e8;color:#b45b1c}.metric p{margin-bottom:2px;font-size:.85rem}.metric strong{font-size:1.45rem}.panel{padding:18px}.editing-panel{border-color:#d7ad5b;box-shadow:0 0 0 3px #d7ad5b29}.split-layout{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(420px,1.15fr);gap:18px;align-items:start}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wide{grid-column:1 / -1}.checkbox-label,.inline-check{display:flex;align-items:center;gap:8px}.checkbox-label input,.inline-check input{width:auto}.card-list{display:grid;gap:12px}.search-box{margin-bottom:8px}.search-box span{color:#697984;font-size:.78rem;text-transform:uppercase}.matching-count{margin:0 0 14px;color:#667782;font-weight:800}.compact-field{min-width:170px}.item-card{display:grid;grid-template-columns:1fr auto;gap:16px;padding:14px}.item-card p{margin-bottom:4px}.subtle-line{font-size:.9rem}.reason-line{width:fit-content;border-radius:8px;background:#fff3e8;color:#7b3f14;padding:6px 8px;font-size:.9rem;font-weight:800}.job-card{align-items:center}.route-row{display:flex;align-items:center;gap:12px}.route-order{display:grid;min-width:34px;height:34px;place-items:center;border-radius:8px;background:#e7f1ee;color:#1e6f5c;font-weight:900}.job-controls,.icon-actions{display:flex;align-items:center;gap:8px}.job-controls select{min-width:132px}.job-controls .icon-button{flex:0 0 auto}.icon-actions button{border:1px solid #d6dee2;border-radius:8px;background:#fff;color:#40505c;padding:8px 10px}.count-pill,.meta-line{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#eef2f4;color:#566672;font-size:.82rem;font-weight:800;padding:5px 9px}.location-link{width:fit-content;text-decoration:none}.location-link:hover{background:#e7f1ee;color:#1e6f5c}.route-groups{display:grid;gap:14px}.route-group{display:grid;gap:10px}.route-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:8px;background:#f2f5f6;color:#40505c;padding:10px 12px}.route-group-head span{color:#667782;font-size:.86rem;font-weight:800}.notice{margin-bottom:16px;border-radius:8px;padding:12px 14px;font-weight:800}.notice.success{background:#e7f5ee;color:#16643e}.notice.error,.error-text{background:#fff0f0;color:#b42318}.error-text{margin:0;border-radius:8px;padding:10px 12px}.empty-state{display:grid;min-height:120px;place-items:center;border:1px dashed #c9d3d9;border-radius:8px;color:#667782;font-weight:800}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;color:#566672;font-weight:800}.pagination .secondary-button{min-width:104px}.location-picker{display:grid;gap:10px}.location-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#566672;font-size:.88rem;font-weight:800}.map-frame{position:relative;min-height:220px;overflow:hidden;border:1px solid #d6dee2;border-radius:8px;background:#eef3f4}.map-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;gap:8px;color:#566672;padding:18px;text-align:center;font-weight:800}.helper-text{margin:0;color:#667782;font-size:.88rem}.loading-box{display:flex;align-items:center;justify-content:center;gap:10px;color:#40505c;font-weight:800}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;gap:14px}.brand-row{padding-bottom:14px}.mobile-nav{display:block}.nav-list,.sidebar-sign-out{display:none}.split-layout,.summary-grid{grid-template-columns:1fr}.customer-list-panel,.workflow-list-panel{order:1}.customer-form-panel,.workflow-form-panel{order:2}.customer-form-panel:not(.is-open),.workflow-form-panel:not(.is-open){display:none}.job-controls{flex-wrap:wrap}}@media(max-width:680px){.content,.sidebar{padding:16px}.content{padding-top:18px}.brand-row{align-items:flex-start}.brand-row span{max-width:220px}.topbar,.section-head,.item-card,.job-controls,.location-actions,.pagination{align-items:stretch;flex-direction:column}.customer-list-panel .section-head,.workflow-list-panel .section-head,.section-actions{align-items:center;flex-direction:row}.topbar{display:grid;grid-template-columns:1fr auto;align-items:end}.topbar h1{font-size:2rem;line-height:1}.topbar .secondary-button{min-width:48px;padding:0}.topbar .button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.customer-list-panel .section-head,.workflow-list-panel .section-head{justify-content:space-between}.customer-list-panel .section-head>div,.workflow-list-panel .section-head>div{min-width:0}.customer-list-panel .section-head h2,.workflow-list-panel .section-head h2{margin-bottom:0}.section-actions{flex-shrink:0}.section-head .section-actions{align-items:stretch;flex-direction:column}.compact-field{min-width:0}.section-actions .count-pill{display:none}.section-actions .primary-button{min-height:42px;padding:8px 11px}.mobile-only{display:inline-flex}.item-card,.form-grid{grid-template-columns:1fr}.button-row{align-items:stretch;flex-direction:column}.job-controls select,.pagination .secondary-button{width:100%}}
