:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f5f7;--bg-deep:#fff;--text:#000;--text-soft:#333;--muted:#6a6a6f;--dim-2:#aeaeb2;--border:#e5e5e7;--border-strong:#8a8a8e;--card:#fff;--card-hover:#f0f0f2;--card-press:#e5e5e7;--accent:#000;--accent-soft:#00000014;--accent-dim:#0000000d;--on-accent:#fff;--green:#187a41;--amber:#9a5b00;--red:#c0392b;--slate:#6e6e73;--city-1:#3b82f6;--city-2:#8b5cf6;--city-3:#f97316;--city-4:#14b8a6;--city-5:#ec4899;--city-6:#6366f1;--city-7:#0ea5e9;--city-8:#84cc16;--city-9:#a16207;--city-10:#64748b;--city-11:#eab308;--city-12:#f43f5e;--city-13:#22c55e;--city-14:#ef4444;--green-tint:#e8f5ed;--red-tint:#fbeae7;--red-line:#c0392b66;--amber-tint:#fbf1df;--amber-line:#9a5b0066;--shadow:0 1px 2px #0000000a, 0 8px 24px #0000000f;--scrim:#00000061;--paper-ink:#000;--paper-bg:#fff;--font-sans:"Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;--font-mono:ui-monospace, "SF Mono", Consolas, monospace;--text-xs:.75rem;--text-sm:.8125rem;--text-md:.875rem;--text-base:.9375rem;--text-lg:1.0625rem;--text-xl:1.25rem;--text-2xl:1.5rem;--radius-sm:8px;--radius-md:12px;--radius:10px;--radius-lg:14px;--radius-xl:18px;--radius-pill:999px;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.5rem;--space-6:2rem;--focus-ring:2px solid var(--accent);--sidebar-width:244px;--content-max:1120px;--content-pad:28px}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#000;--bg-deep:#1c1c1e;--text:#fff;--text-soft:#e5e5e7;--muted:#98989d;--dim-2:#636366;--border:#2e2e30;--border-strong:#757579;--card:#1c1c1e;--card-hover:#2a2a2c;--card-press:#323234;--accent:#fff;--accent-soft:#ffffff1f;--accent-dim:#ffffff12;--on-accent:#000;--green:#3dd47e;--amber:#f5b546;--red:#ff7566;--slate:#98989d;--green-tint:#12301f;--red-tint:#3a1a16;--red-line:#ff756666;--amber-tint:#33270f;--amber-line:#f5b54666;--shadow:0 1px 2px #00000080, 0 12px 32px #0009;--scrim:#0009}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#000;--bg-deep:#1c1c1e;--text:#fff;--text-soft:#e5e5e7;--muted:#98989d;--dim-2:#636366;--border:#2e2e30;--border-strong:#757579;--card:#1c1c1e;--card-hover:#2a2a2c;--card-press:#323234;--accent:#fff;--accent-soft:#ffffff1f;--accent-dim:#ffffff12;--on-accent:#000;--green:#3dd47e;--amber:#f5b546;--red:#ff7566;--slate:#98989d;--green-tint:#12301f;--red-tint:#3a1a16;--red-line:#ff756666;--amber-tint:#33270f;--amber-line:#f5b54666;--shadow:0 1px 2px #00000080, 0 12px 32px #0009;--scrim:#0009}*,:before,:after{box-sizing:border-box}html{background:var(--bg)}body{min-height:100vh;font-family:var(--font-sans);font-size:var(--text-base);color:var(--text);background-color:var(--bg);-webkit-font-smoothing:antialiased;margin:0;line-height:1.5}#root{min-height:100vh}h1,h2,h3{letter-spacing:-.01em;color:var(--text);font-weight:600;line-height:1.2}h1{font-size:var(--text-2xl);margin:0 0 var(--space-4)}h2{font-size:var(--text-xl)}h3{font-size:var(--text-lg)}a{color:var(--accent);text-underline-offset:.15em}a:hover{color:var(--text)}::placeholder{color:var(--muted);opacity:1}::selection{background:var(--accent-soft)}:focus-visible{outline:var(--focus-ring);outline-offset:2px}form{gap:var(--space-3);max-width:480px;display:grid}label{font-size:var(--text-sm);color:var(--text-soft);gap:6px;font-weight:500;display:grid}input,select,textarea,button{font:inherit;padding:.5rem .75rem}input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-height:40px;color:var(--text);background:var(--card);border:1px solid var(--border-strong);border-radius:var(--radius);font-size:var(--text-base);font-weight:400;transition:border-color .15s,box-shadow .15s}input:not([type=checkbox]):not([type=radio]):hover,select:hover,textarea:hover{border-color:var(--muted)}input:not([type=checkbox]):not([type=radio])[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--red)}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--accent);outline:var(--focus-ring);outline-offset:1px}select option{color:var(--text);background:var(--bg)}textarea{resize:vertical}button{cursor:pointer;min-height:40px;color:var(--text);background:var(--card);border:1px solid var(--border-strong);border-radius:var(--radius);font-weight:500;transition:background-color .15s,border-color .15s}button:hover:not(:disabled){background:var(--card-press)}button:disabled{cursor:not-allowed;opacity:.55}.btn-primary{justify-content:center;align-items:center;gap:var(--space-2);color:var(--on-accent);background:var(--accent);border-color:var(--accent);font-weight:600;display:inline-flex}.btn-primary:hover:not(:disabled){background:var(--accent);opacity:.86}a.btn-primary{border:1px solid var(--accent);border-radius:var(--radius);min-height:40px;font-size:var(--text-base);padding:.5rem 1rem;text-decoration:none}a.btn-primary:hover{color:var(--on-accent);opacity:.86}fieldset{border:1px solid var(--border-strong);border-radius:var(--radius-lg);padding:var(--space-3);min-width:0;margin:0}legend{padding:0 var(--space-1);color:var(--text-soft);font-weight:600}.field{gap:var(--space-2);align-content:start;min-width:0;display:grid}.required-mark:after{content:"*";color:var(--red);margin-left:2px;font-weight:600}.field-message{font-size:var(--text-sm);color:var(--red);margin:0}.form-note{font-size:var(--text-sm);color:var(--muted);margin:0}.filter-search{flex:18rem;max-width:30rem}.input-with-icon{display:block;position:relative}.input-with-icon>.icon{color:var(--muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.input-with-icon>input:not([type=checkbox]):not([type=radio]){padding-left:36px}.filter-search>.input-with-icon{align-self:end}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg)}.card-title{margin:0 0 var(--space-4);font-size:var(--text-lg)}.state-card{padding:var(--space-5)}.empty-state{align-items:center;gap:var(--space-1);padding:40px var(--space-5);text-align:center;flex-direction:column;display:flex}.empty-state-icon{width:44px;height:44px;margin-bottom:var(--space-2);color:var(--accent);background:var(--accent-dim);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.not-found{max-width:460px;margin:48px auto 0}.not-found h1{font-size:var(--text-xl);margin:0}.not-found .back-link{margin:var(--space-3) 0 0;color:var(--accent)}.back-link{margin-bottom:var(--space-4);font-size:var(--text-md);color:var(--muted);align-items:center;gap:6px;text-decoration:none;display:inline-flex}.back-link:hover{color:var(--text)}.contact-line{gap:var(--space-1) 18px;font-size:var(--text-md);color:var(--text-soft);flex-wrap:wrap;margin:6px 0 0;display:flex}.contact-line dd{overflow-wrap:anywhere;align-items:center;gap:6px;min-width:0;margin:0;display:inline-flex}.contact-line .icon{color:var(--muted)}.contact-line a{color:inherit;text-decoration:underline;-webkit-text-decoration-color:var(--dim-2);text-decoration-color:var(--dim-2);text-underline-offset:3px;align-items:center;display:inline-flex}.contact-line a:hover{color:var(--accent);text-decoration-color:currentColor}@keyframes bulb-on{0%{background:var(--bg);box-shadow:none}45%{box-shadow:0 0 0 6px var(--accent-soft)}}[aria-disabled=true]{cursor:not-allowed;opacity:.55}.admin-grid{gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(min(100%,26rem),1fr));align-items:start;display:grid}.admin-card{gap:var(--space-4);min-width:0;padding:18px 20px 20px;display:grid}.admin-card>.card-title{margin:0}.admin-note{margin:0 0 var(--space-4)}.invite-card{max-width:none}.admin-user{align-items:center;gap:var(--space-3);grid-template-columns:auto minmax(0,1fr);display:grid}.admin-user-text{gap:2px;min-width:0;display:grid}.admin-user-name{font-size:var(--text-lg);margin:0}.admin-user-email{text-overflow:ellipsis;font-size:var(--text-sm);color:var(--muted);margin:0;overflow:hidden}.role-checks{gap:0 var(--space-3);border:none;border-radius:0;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;display:grid}.role-check{min-height:44px;font-size:var(--text-base);color:var(--text);cursor:pointer;align-items:center;gap:10px;font-weight:400;display:flex}.role-check input{width:18px;height:18px;accent-color:var(--accent);margin:0;padding:0}.role-check:has(input:disabled){color:var(--muted);cursor:not-allowed}.admin-card-actions{justify-content:flex-end;display:flex}.admin-card-actions button{min-width:7.5rem}.list-add{max-width:none}.list-add-row,.list-rename{gap:var(--space-2);display:flex}.list-add-row input,.list-rename label{flex:auto;min-width:0}.list-add-row button{flex:none;min-width:5.5rem}.list-items{margin:0;padding:0;list-style:none;display:grid}.list-item{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-3);border-top:1px solid var(--border);flex-wrap:wrap;padding:10px 0;display:flex}.list-item>.list-rename{flex:100%;max-width:none}.list-item>[role=alert]{flex:100%}.list-item-name{overflow-wrap:anywhere;min-width:0}.list-item-actions{gap:var(--space-2);flex:none;margin-left:auto;display:flex}.crews-stack{gap:var(--space-4);display:grid}.crew-summary{gap:var(--space-1);min-width:0;display:grid}.crew-people{font-size:var(--text-sm);color:var(--muted);overflow-wrap:anywhere}.crew-form{gap:var(--space-3);max-width:none;display:grid}.crew-form .list-item-actions{margin-left:0}.list-item>.crew-form{flex:100%}.setup-form{gap:var(--space-3);max-width:none;display:grid}.setup-tabs{margin-top:var(--space-4)}.cities-card .cell-count{text-align:right;font-variant-numeric:tabular-nums}.city-swatches{gap:var(--space-1);flex-wrap:wrap;display:flex}.city-swatch{place-items:center;width:44px;min-height:44px;padding:0;display:grid}.city-swatch .city-dot{width:20px;height:20px}.city-swatch[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.setup-checks{display:grid}.setup-check{min-height:44px;font-size:var(--text-base);color:var(--text);cursor:pointer;align-items:center;gap:10px;font-weight:400;display:flex}.setup-check input{width:18px;height:18px;accent-color:var(--accent);flex:none;margin:0;padding:0}.setup-subtitle{margin:var(--space-3) 0 0;font-size:var(--text-sm);color:var(--muted);font-weight:600}.setup-permissions{gap:var(--space-3);display:grid}.setup-switches{margin:0;padding:0;list-style:none;display:grid}.setup-switch{align-items:center;gap:var(--space-3);border-bottom:1px solid var(--border);display:flex}.setup-switch:last-child{border-bottom:none}.setup-switch-text{min-width:0;padding:var(--space-2) 0;gap:2px;display:grid}.integration-status{justify-content:space-between;align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.empty-state-title{color:var(--text);margin:0;font-weight:600}.empty-state-text{font-size:var(--text-md);color:var(--muted);margin:0}.empty-state-action{margin-top:var(--space-3)}.filters{gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.detail-header{align-items:center;gap:var(--space-3) var(--space-4);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.detail-header-text{flex:16rem;min-width:0}.detail-title{align-items:center;gap:var(--space-2) var(--space-3);flex-wrap:wrap;display:flex}.detail-title h1{overflow-wrap:anywhere;margin:0}.detail-header-action{flex:none;min-width:5.5rem}.section-header{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-4);margin:var(--space-6) 0 var(--space-3);flex-wrap:wrap;display:flex}.section-header h2{margin:0}.form-card{gap:18px;max-width:720px;padding:20px 24px 24px}.site-form{gap:18px;max-width:none}.field-grid{gap:14px var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;display:grid}.field-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.form-wide{grid-column:1/-1}.form-actions{justify-content:flex-end;gap:var(--space-2);flex-wrap:wrap;display:flex}.form-actions button{min-width:7.5rem}.site-list{gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(min(100%,22rem),1fr));align-items:start;display:grid}.site-card{gap:var(--space-3);min-width:0;padding:16px 20px 18px;display:grid}.site-card-head{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-3);flex-wrap:wrap;display:flex}.site-card-head h3{overflow-wrap:anywhere;margin:0}.site-address{color:var(--text-soft);overflow-wrap:anywhere;align-items:baseline;gap:6px;margin:0;display:flex}.site-address .icon{color:var(--muted);align-self:center}table{border-collapse:collapse;width:100%}th,td{padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border);text-align:left}th{font-size:var(--text-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);white-space:nowrap;font-weight:600}tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:var(--card-hover)}.table-scroll{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);position:relative;overflow-x:auto;container-type:inline-size}.data-table td{color:var(--text-soft);vertical-align:middle}.data-table .cell-primary{color:var(--text);font-weight:500}.cell-primary a,.cell-primary .row-open{color:var(--text);font-weight:500;text-decoration:none}.cell-primary a:hover,.cell-primary .row-open:hover:not(:disabled){color:var(--accent);text-decoration:underline}.cell-primary .row-open{min-height:0;font:inherit;text-align:left;background:0 0;border:none;padding:0}.cell-primary .row-open:hover:not(:disabled){background:0 0}.cell-phone{font-size:var(--text-md);white-space:nowrap}.cell-email{overflow-wrap:anywhere}.cell-count{font-variant-numeric:tabular-nums}.row-links tbody tr{cursor:pointer}.row-links tbody tr:hover .cell-primary a,.row-links tbody tr:hover .cell-primary .row-open{color:var(--accent)}.stack-label{color:var(--muted);display:none}@container (width<=880px){.table-stack,.table-stack tbody{display:block}.table-stack thead{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.table-stack tbody tr{align-items:center;gap:6px var(--space-3);padding:14px var(--space-4);border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto;display:grid}.table-stack tbody tr:last-child{border-bottom:none}.table-stack td{border:none;min-width:0;padding:0;display:block}.table-stack td:empty{display:none}.table-stack .stack-label{display:inline}.table-stack.customer-rows tbody tr{grid-template-areas:"primary status""phone stage""email count""cities cities"}.table-stack.opportunity-rows tbody tr{grid-template-areas:"primary stage""setter closer"}.table-stack .cell-primary{grid-area:primary}.table-stack .cell-phone{grid-area:phone}.table-stack .cell-email{font-size:var(--text-md);grid-area:email}.table-stack .cell-count{font-size:var(--text-md);grid-area:count}.table-stack .cell-cities{font-size:var(--text-md);grid-area:cities}.table-stack .cell-status{grid-area:status}.table-stack .cell-stage{grid-area:stage}.table-stack .cell-setter{font-size:var(--text-md);grid-area:setter}.table-stack .cell-closer{font-size:var(--text-md);grid-area:closer}.table-stack .cell-status,.table-stack .cell-stage,.table-stack .cell-count,.table-stack .cell-closer{text-align:right;justify-self:end}}.error,[role=alert]{padding:var(--space-3) var(--space-4);color:var(--red);background:var(--red-tint);border:1px solid var(--red-line);border-radius:var(--radius);margin:0}.error-card{align-items:center;gap:var(--space-2) 0;padding:var(--space-4) var(--space-5);border-radius:var(--radius-lg);flex-wrap:wrap;display:flex}[role=status]{color:var(--muted)}.brand-mark{align-items:center;gap:11px;min-width:0;display:flex}.mark{flex:none;width:30px;height:30px;display:block}.mark-bg{fill:var(--text)}.mark-star{fill:var(--bg-deep)}.brand-text{min-width:0}.brand{font-size:var(--text-md);letter-spacing:.14em;text-transform:uppercase;color:var(--text);margin:0;font-weight:600;line-height:1.2}.brand-sub{font-size:var(--text-xs);letter-spacing:.02em;color:var(--muted);white-space:nowrap;margin:2px 0 0}.app-layout{grid-template-columns:var(--sidebar-width) minmax(0, 1fr);min-height:100vh;display:grid}.sidebar{background:var(--bg-deep);border-right:1px solid var(--border);flex-direction:column;height:100dvh;padding:18px 12px 12px;display:flex;position:sticky;top:0;overflow-y:auto}.sidebar:focus{outline:none}.sidebar>.brand-mark{padding:4px 8px 14px}.workspace-switch{margin-bottom:var(--space-3);position:relative}.workspace-switch-card{text-align:left;width:100%;min-height:44px;color:var(--text);background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 10px;display:grid}.sidebar>.workspace-switch-card{margin-bottom:var(--space-3)}.workspace-switch-card>.icon{color:var(--muted)}.workspace-switch-initial{width:32px;height:32px;font-size:var(--text-sm);color:var(--text-soft);background:var(--card-hover);border:1px solid var(--border);-webkit-user-select:none;user-select:none;border-radius:7px;flex:none;justify-content:center;align-items:center;font-weight:600;line-height:1;display:inline-flex}.workspace-switch-card-error .workspace-switch-name{color:var(--red)}.workspace-switch-button:hover:not(:disabled){background:var(--card-hover);border-color:var(--border-strong)}.workspace-switch-text{flex-direction:column;min-width:0;line-height:1.35;display:flex}.workspace-switch-name{font-size:var(--text-sm);white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.workspace-switch-line{font-size:var(--text-xs);color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.workspace-switch-list{top:calc(100% + var(--space-1));z-index:10;gap:var(--space-1);padding:var(--space-1);box-shadow:var(--shadow);margin:0;list-style:none;display:grid;position:absolute;left:0;right:0}.workspace-switch-option{align-items:center;gap:var(--space-2);width:100%;min-height:44px;padding:var(--space-2);text-align:left;background:0 0;border-color:#0000;grid-template-columns:minmax(0,1fr) auto;display:grid}.workspace-switch-option:hover:not(:disabled){background:var(--card-hover)}.workspace-switch-option>.icon{color:var(--accent)}.workspace-switch-status{margin:var(--space-1) 0 0;padding:0 var(--space-1);font-size:var(--text-xs);color:var(--text-soft)}.workspace-switch-status:empty{display:none}.side-nav{gap:var(--space-1);flex-direction:column;flex:1;display:flex}.nav-group-head{width:100%;min-height:34px;padding:0 var(--space-2);font-size:var(--text-xs);letter-spacing:.09em;text-transform:uppercase;color:var(--muted);border-radius:var(--radius-sm);background:0 0;border:none;justify-content:space-between;align-items:center;font-weight:600;display:flex}.nav-group-head:hover:not(:disabled){color:var(--text);background:0 0}.nav-group-head .icon{transition:transform .15s}.nav-group-head[aria-expanded=false] .icon{transform:rotate(-90deg)}@media (width<=820px),(pointer:coarse){.nav-group-head{min-height:44px}}.nav-group-items{gap:2px;margin:0;padding:0;list-style:none;display:grid}.nav-group-items[hidden]{display:none}.nav-item{min-height:38px;padding:0 var(--space-2);border-radius:var(--radius-sm);font-size:var(--text-md);color:var(--text-soft);align-items:center;gap:10px;text-decoration:none;transition:background-color .15s,color .15s;display:flex}.nav-item .icon{color:var(--muted)}.nav-item:hover{color:var(--text);background:var(--card-hover)}.nav-item.active{color:var(--text);background:var(--accent-dim);box-shadow:inset 2px 0 0 var(--accent);font-weight:500}.nav-item.active .icon{color:var(--accent)}.sidebar-foot{gap:var(--space-2);padding-top:var(--space-4);margin-top:auto;display:grid}.user-card{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:12px;display:grid}.user-info{min-width:0;font-size:var(--text-xs);flex-direction:column;line-height:1.45;display:flex}.user-name{font-size:var(--text-sm);white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.user-roles{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.logout-button{justify-content:center;align-items:center;gap:var(--space-2);width:100%;font-size:var(--text-sm);color:var(--muted);border:1px solid var(--border);background:0 0;display:inline-flex}.logout-button:hover:not(:disabled){color:var(--text);background:var(--card-hover);border-color:var(--border-strong)}.app-main{flex-direction:column;min-width:0;display:flex}.top-bar{z-index:5;align-items:center;gap:var(--space-3);height:54px;padding:0 var(--space-5);background:var(--bg-deep);border-bottom:1px solid var(--border);display:flex;position:sticky;top:0}.top-bar-title{min-width:0;font-size:var(--text-base);white-space:nowrap;text-overflow:ellipsis;flex:6rem;margin:0;font-weight:600;overflow:hidden}.icon-button{width:44px;min-height:44px;color:var(--muted);border:1px solid var(--border);background:0 0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.icon-button:hover:not(:disabled){color:var(--text);background:var(--card-hover);border-color:var(--border-strong)}.menu-button{display:none}.drawer-backdrop{z-index:15;background:var(--scrim);cursor:default;border:none;border-radius:0;padding:0;display:none;position:fixed;inset:0}.drawer-backdrop:hover:not(:disabled){background:var(--scrim)}.center-screen-theme{top:var(--space-4);right:var(--space-4);position:absolute}.app-content{max-width:var(--content-max);padding:var(--content-pad)}.center-screen{min-height:100vh;padding:48px var(--space-4);place-items:center;display:grid;position:relative}.center-stack{align-items:center;gap:var(--space-4);flex-direction:column;display:flex}.mark-pulse{width:40px;height:40px;animation:1.6s ease-in-out infinite brand-pulse}@keyframes brand-pulse{50%{opacity:.45}}.status-line{font-size:var(--text-md);color:var(--muted);align-items:center;gap:10px;margin:0;display:inline-flex}.status-line:before{content:"";border:2px solid var(--border-strong);border-top-color:var(--accent);border-radius:50%;flex:none;width:14px;height:14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.login-card{border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--bg-deep);width:100%;max-width:440px;box-shadow:var(--shadow);padding:28px}.login-card>.brand-mark{border-bottom:1px solid var(--border);margin-bottom:22px;padding-bottom:22px}.login-intro h2{font-size:var(--text-xl);margin:0}.login-hint{font-size:var(--text-sm);color:var(--muted);margin:6px 0 0}.login-intro+*{margin-top:22px}.login-form{gap:var(--space-4);max-width:none}.login-dealer+.login-dealer{margin-top:22px}.login-dealer h3{margin:0 0 var(--space-2);font-size:var(--text-sm);color:var(--muted);font-weight:600}.login-dealer-off{margin:0 0 var(--space-2);font-size:var(--text-sm)}.login-demo{border-top:1px solid var(--border);margin:22px 0 0;padding-top:22px}.login-demo-title{font-size:var(--text-lg);margin:0}.login-demo-people{margin-top:var(--space-4)}.login-users{gap:6px;margin:0;padding:0;list-style:none;display:grid}.login-user{text-align:left;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 12px;transition:background-color .15s,border-color .15s;display:grid}.login-user:hover:not(:disabled){background:var(--card-hover);border-color:var(--accent-soft)}.login-user-text{flex-direction:column;min-width:0;display:flex}.login-user-name{font-size:var(--text-base);color:var(--text);font-weight:600}.login-user-roles{font-size:var(--text-sm);color:var(--muted);font-weight:400}.login-user>.icon{color:var(--muted);transition:transform .15s,color .15s}.login-user:hover>.icon{color:var(--accent);transform:translate(2px)}.session-error-alert{padding:var(--space-4);gap:var(--space-1);display:grid}.session-error-title{color:var(--red);margin:0;font-weight:600}.session-error-text{font-size:var(--text-md);color:var(--text-soft);margin:0}.session-error-actions{gap:var(--space-2);margin-top:var(--space-3);flex-wrap:wrap;display:flex}[role=alert]>button{margin-left:var(--space-2);min-height:32px;font-size:var(--text-sm);padding:.2rem .75rem}.icon{vertical-align:middle;flex:none}.page-header{justify-content:space-between;align-items:flex-start;gap:var(--space-3) var(--space-4);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.page-header h1{margin:0}.page-header-subtitle{margin:var(--space-1) 0 0;color:var(--muted);font-size:var(--text-md)}.page-header-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.chip{font-size:var(--text-xs);white-space:nowrap;color:var(--text-soft);background:var(--card-hover);border-radius:var(--radius-pill);border:1px solid #0000;align-items:center;gap:6px;padding:.1rem .6rem;font-weight:500;line-height:1.5;display:inline-flex}.chip:before{content:"";background:var(--muted);border-radius:50%;flex:none;width:6px;height:6px}.chip-done:before{background:var(--green)}.chip-warn:before{background:var(--amber)}.chip-bad:before{background:var(--red)}.avatar{color:var(--text-soft);background:var(--card-hover);border:1px solid var(--border);-webkit-user-select:none;user-select:none;border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:600;line-height:1;display:inline-flex}.avatar-sm{width:32px;height:32px;font-size:var(--text-sm)}.avatar-md{width:34px;height:34px;font-size:var(--text-md)}.avatar-lg{width:36px;height:36px;font-size:var(--text-md)}.avatar-xl{width:52px;height:52px;font-size:var(--text-xl)}.mono{font-family:var(--font-mono)}.muted{color:var(--muted)}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.link-target{align-items:center;min-height:44px;display:inline-flex}@media (width<=820px){.app-layout{grid-template-columns:minmax(0,1fr)}.sidebar{z-index:20;visibility:hidden;width:min(268px,85vw);transition:transform .2s,visibility 0s linear .2s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.drawer-open .sidebar{visibility:visible;box-shadow:var(--shadow);transition:transform .2s;transform:none}.drawer-open .drawer-backdrop{display:block}.menu-button{display:inline-flex}.top-bar{padding:0 var(--space-4) 0 var(--space-2);gap:var(--space-2)}.app-content{padding:20px var(--space-4) var(--space-6)}.center-screen{padding:24px var(--space-4)}.login-card{padding:22px 18px}form{max-width:none}.back-link{margin-bottom:var(--space-2)}.not-found .back-link{margin-top:var(--space-1)}.filter-search{flex:none;max-width:none}.filters>.filter-select{flex:none}.filters{flex-direction:column}.form-card{padding:18px var(--space-4) 20px}.form-actions button{flex:auto}.section-header{margin-top:var(--space-5)}}@media (width<=600px){.field-grid,.field-grid-3{grid-template-columns:minmax(0,1fr)}}@media (width<=820px),(pointer:coarse){button,a.btn-primary,[role=alert]>button,input:not([type=checkbox]):not([type=radio]),select,.nav-item,.back-link,.contact-line a,.quick-action-link,.opportunity-rows .cell-primary a{min-height:44px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.status-line:before{display:none}}.city{align-items:center;gap:6px;display:inline-flex}.city-dot{border-radius:50%;flex:none;width:8px;height:8px}.city-list{flex-wrap:wrap;gap:4px 12px;display:flex}.city-dot.c-1{background:var(--city-1)}.city-dot.c-2{background:var(--city-2)}.city-dot.c-3{background:var(--city-3)}.city-dot.c-4{background:var(--city-4)}.city-dot.c-5{background:var(--city-5)}.city-dot.c-6{background:var(--city-6)}.city-dot.c-7{background:var(--city-7)}.city-dot.c-8{background:var(--city-8)}.city-dot.c-9{background:var(--city-9)}.city-dot.c-10{background:var(--city-10)}.city-dot.c-11{background:var(--city-11)}.city-dot.c-12{background:var(--city-12)}.city-dot.c-13{background:var(--city-13)}.city-dot.c-14{background:var(--city-14)}.form-page .form-card{max-width:760px}.form-section{gap:var(--space-3);display:grid}.form-section-label{font-size:var(--text-lg);margin:0}.customer-row{align-items:center;gap:var(--space-3);flex-wrap:wrap;list-style:none;display:flex}.customer-row-text{flex:12rem;min-width:0}.customer-row-name{color:var(--text);font-weight:600;display:block}.duplicate-box{gap:var(--space-3);padding:var(--space-4);background:var(--amber-tint);border:1px solid var(--amber-line);border-radius:var(--radius-lg);display:grid}.duplicate-box ul{gap:var(--space-3);margin:0;padding:0;list-style:none;display:grid}.duplicate-head{align-items:center;gap:var(--space-2);color:var(--amber);display:flex}.duplicate-head h3{margin:0}.duplicate-hint{color:var(--text-soft);margin:0}.link-button{min-height:44px;color:var(--text);background:0 0;border:none;justify-self:start;padding:.5rem .25rem;text-decoration:underline}.link-button:hover:not(:disabled){color:var(--accent);background:0 0}.btn-danger{color:var(--red);border-color:var(--red-line)}.btn-danger:hover:not(:disabled){background:var(--red-tint)}.follow-up{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.follow-up-overdue{color:var(--red);font-weight:600}.filter-select{flex:0 11rem;min-width:0}.cell-select{white-space:nowrap;width:1%;padding:0}.select-box{cursor:pointer;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.cell-select input[type=checkbox]{cursor:pointer;width:22px;height:22px;margin:0}.cell-value{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}@container (width<=880px){.table-stack.lead-rows tbody tr{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"select primary stage""select cities value""select setter closer""select follow source"}.table-stack .cell-select{grid-area:select;width:auto}.table-stack .cell-source{font-size:var(--text-md);grid-area:source;justify-self:end}.table-stack .cell-follow-up{font-size:var(--text-md);grid-area:follow}.table-stack .cell-value{font-size:var(--text-md);grid-area:value}}.bulk-bar,.bulk-result{align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);padding:var(--space-3) var(--space-4);flex-wrap:wrap;display:flex}.bulk-result{justify-items:start;display:grid}.bulk-result p,.bulk-result ul{margin:0}.bulk-result ul{padding-left:var(--space-5)}.bulk-count{color:var(--text);margin:0;font-weight:600}.bulk-assign{gap:var(--space-2);flex-wrap:wrap;display:flex}.bulk-assign select{width:auto;min-width:11rem}.bulk-bar .lost-form{flex:100%}.stage-control{gap:var(--space-2);min-width:0;display:grid}.stage-move{font-size:var(--text-sm);color:var(--text-soft);gap:4px;display:grid}.stage-move-row{gap:var(--space-2);display:flex}.stage-move-row select{flex:auto;min-width:0}.stage-lost-reason{gap:2px;margin:0;display:grid}.stage-lost-reason-name{color:var(--text);font-weight:600}.stage-lost-detail{color:var(--text-soft);overflow-wrap:anywhere}.lost-form{max-width:none;padding-top:var(--space-3);border-top:1px solid var(--border)}.board{align-items:flex-start;gap:var(--space-3);max-width:100%;padding-bottom:var(--space-2);display:flex;overflow-x:auto}.board-summary{color:var(--text-soft);font-variant-numeric:tabular-nums;align-self:center;margin:0 0 0 auto}.board-column{gap:var(--space-2);min-width:0;min-height:10rem;padding:var(--space-2);background:var(--accent-dim);border-radius:var(--radius-lg);border:1px solid #0000;flex-direction:column;flex:0 0 17rem;transition:border-color .12s;display:flex}.board-column-over{border-color:var(--accent)}.board-column-title{padding:var(--space-1) var(--space-1) 0;font-size:var(--text-md);margin:0}.board-column-stats{padding:0 var(--space-1);font-size:var(--text-sm);color:var(--muted);font-variant-numeric:tabular-nums;margin:0}.board-cards{gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}.board-empty{padding:var(--space-3);text-align:center;font-size:var(--text-sm);color:var(--muted);margin:0}.board-card{text-align:left;gap:6px;min-width:0;padding:10px 12px;transition:box-shadow .12s;display:grid}.board-card[draggable=true]{cursor:grab}.board-card:hover{box-shadow:var(--shadow)}.board-card-dragging{opacity:.4}.board-card p{font-size:var(--text-md);margin:0}.board-card-name{font-size:var(--text-base);overflow-wrap:anywhere;margin:0}.board-card-name a{color:var(--text);text-decoration:none}.board-card-name a:hover{text-decoration:underline}@media (pointer:coarse){.board-card-name a{align-items:center;min-height:44px;display:inline-flex}}.board-card-value{color:var(--text);font-variant-numeric:tabular-nums;font-weight:600}.board-card-closer{color:var(--text-soft);align-items:center;gap:6px;display:flex}.num{font-variant-numeric:tabular-nums}.person-toggle,.choice-chip{align-items:center;gap:var(--space-2);min-height:44px;padding:0 var(--space-3);font-size:var(--text-sm);color:var(--text-soft);border:1px solid var(--border-strong);border-radius:var(--radius-pill);cursor:pointer;font-weight:400;display:inline-flex}:is(.person-toggle:has(input:checked),.choice-chip:has(input:checked)){color:var(--text);background:var(--accent-dim);border-color:var(--accent)}.person-toggle input,.choice-chip input{width:18px;height:18px;accent-color:var(--accent);margin:0}.person-toggles{gap:var(--space-2);margin-bottom:var(--space-4);border:none;flex-wrap:wrap;padding:0;display:flex}.appointment-form-fields,.office-event-form-fields,.task-form-fields{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));align-items:end;display:grid}.appointment-form,.office-event-form,.task-form{gap:var(--space-3);max-width:none;display:grid}.appointment-saved{gap:var(--space-2);display:grid}.appointment-saved-title{margin:0;font-weight:600}.appointment-warning{align-items:flex-start;gap:var(--space-2);padding:var(--space-3) var(--space-4);font-size:var(--text-md);color:var(--amber);background:var(--amber-tint);border:1px solid var(--amber-line);border-radius:var(--radius);margin:0;display:flex}.calendar-toolbar{align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.calendar-steps,.calendar-views,.calendar-types,.task-views{gap:var(--space-2);flex-wrap:wrap;display:flex}.calendar-types,.task-views{margin-bottom:var(--space-3)}.calendar-steps button,.list-pager button,.calendar-views button,.calendar-types button,.task-views button,.task-show-done{min-height:44px}.calendar-step,.list-pager button{justify-content:center;align-items:center;min-width:44px;padding:0;display:inline-flex}.calendar-title{font-size:var(--text-lg);flex:auto;margin:0}.calendar-views button[aria-pressed=true],.calendar-types button[aria-pressed=true],.task-views button[aria-pressed=true]{color:var(--text);background:var(--accent-dim);border-color:var(--accent)}.view-switch{gap:var(--space-2);margin-bottom:var(--space-3);flex-wrap:wrap;display:flex}.view-switch button{min-height:44px}.view-switch button[aria-pressed=true]{color:var(--text);background:var(--accent-dim);border-color:var(--accent)}.page-header-actions .view-switch{margin-bottom:0}.calendar-panel{gap:var(--space-2);margin-bottom:var(--space-4);padding:14px 18px 16px;display:grid}.calendar-panel p,.calendar-panel-title{margin:0}.calendar-panel-title{font-size:var(--text-base)}.picker-list{max-height:18rem;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.picker-list a{align-items:center;min-height:44px;display:flex}.calendar-panel-when{font-size:var(--text-sm);color:var(--text-soft)}.calendar-panel-notes{white-space:pre-line;overflow-wrap:anywhere}.calendar-panel-details{gap:var(--space-2) var(--space-4);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));margin:0;display:grid}.calendar-panel-details dt{font-size:var(--text-sm);color:var(--text-soft)}.calendar-panel-details dd{overflow-wrap:anywhere;margin:0}.office-event-all-day{justify-self:start}.office-event-form-delete,.task-form-delete{margin-right:auto}.confirm-bar{gap:var(--space-2);display:grid}.confirm-bar p{margin:0}.calendar-week,.calendar-month,.calendar-entries,.calendar-day-entries{margin:0;padding:0;list-style:none}.calendar-week{gap:var(--space-2);display:grid}.calendar-week-day{padding:var(--space-3);background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg)}.calendar-week-day[aria-current=date],.calendar-month-day[aria-current=date]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.calendar-week-day-title{font-size:var(--text-sm);color:var(--text-soft);margin:0;font-weight:600}.calendar-entries{gap:var(--space-2);display:grid}.calendar-entries:not(:empty){margin-top:var(--space-2)}.calendar-entry{width:100%;min-height:44px;padding:var(--space-2) var(--space-3);text-align:left;background:var(--accent-dim);border:none;border-left:3px solid var(--accent);border-radius:var(--radius-sm);overflow-wrap:anywhere;gap:2px;font-weight:400;display:grid}.calendar-entry:hover:not(:disabled){background:var(--accent-soft)}.calendar-entry-time,.calendar-entry-meta{font-size:var(--text-sm);color:var(--text-soft)}.calendar-entry-name{font-weight:500}.city-edge.c-1{border-left-color:var(--city-1)}.city-edge.c-2{border-left-color:var(--city-2)}.city-edge.c-3{border-left-color:var(--city-3)}.city-edge.c-4{border-left-color:var(--city-4)}.city-edge.c-5{border-left-color:var(--city-5)}.city-edge.c-6{border-left-color:var(--city-6)}.city-edge.c-7{border-left-color:var(--city-7)}.city-edge.c-8{border-left-color:var(--city-8)}.city-edge.c-9{border-left-color:var(--city-9)}.city-edge.c-10{border-left-color:var(--city-10)}.city-edge.c-11{border-left-color:var(--city-11)}.city-edge.c-12{border-left-color:var(--city-12)}.city-edge.c-13{border-left-color:var(--city-13)}.city-edge.c-14{border-left-color:var(--city-14)}@media (width>=1100px){.calendar-week{grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-week-day{min-height:10rem}}.calendar-weekdays,.calendar-month{gap:var(--space-1);grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.calendar-weekdays{margin-bottom:var(--space-1);font-size:var(--text-xs);color:var(--muted);text-align:center}.calendar-month-day{min-width:0;min-height:7rem;padding:var(--space-1);background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm)}.calendar-month-day>section,.calendar-day-entries{grid-template-columns:minmax(0,1fr);gap:2px;display:grid}.calendar-day-outside{opacity:.5}.calendar-day-number{font-size:var(--text-sm);color:var(--text-soft)}.calendar-chip,.calendar-more{width:100%;min-height:0;padding:2px var(--space-1);font-size:var(--text-xs);color:var(--text);text-align:left;white-space:nowrap;text-overflow:ellipsis;border:none;border-radius:4px;font-weight:400;text-decoration:none;display:block;overflow:hidden}.calendar-chip{background:var(--accent-dim)}.calendar-chip:hover:not(:disabled),.calendar-more:hover{background:var(--accent-soft)}.calendar-more{color:var(--accent)}.calendar-day-count{display:none}@media (width<=820px),(pointer:coarse){.calendar-chip,.calendar-more{align-items:center;min-height:44px;display:flex}}@media (width<=767px){.calendar-month-day{min-height:0}.calendar-day-entries,.calendar-more{display:none}.calendar-day-count{min-height:44px;font-size:var(--text-sm);color:var(--text);background:var(--accent-dim);border-radius:var(--radius-sm);justify-content:center;align-items:center;font-weight:600;text-decoration:none;display:flex}}.task-card{gap:var(--space-3);min-width:0;padding:14px 18px 16px;display:grid}.task-form-card{margin-bottom:var(--space-4);padding:14px 18px 16px}.task-card-header{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-3);flex-wrap:wrap;display:flex}.task-card-header>.card-title,.task-card p,.task-form-card p{margin:0}.task-groups{gap:var(--space-4);min-width:0;display:grid}.task-group{gap:var(--space-2);min-width:0;display:grid}.task-group-title{font-size:var(--text-base);margin:0;font-weight:600}.task-group-overdue .task-group-title{color:var(--red)}.task-group-count{color:var(--muted);font-weight:500}.task-show-done{justify-self:start}.task-rows{margin:0;padding:0;list-style:none;display:grid}.task-rows[hidden]{display:none}.task-row{gap:var(--space-1);min-width:0;padding-bottom:var(--space-2);border-top:1px solid var(--border);display:grid}.task-row-editing{padding:var(--space-3) 0}.task-row-main{align-items:center;gap:var(--space-2);min-width:0;display:flex}.task-check{min-width:0;min-height:44px;font-size:var(--text-base);color:var(--text);cursor:pointer;flex:auto;align-items:center;gap:10px;font-weight:400;display:flex}.task-check input{width:18px;height:18px;accent-color:var(--accent);flex:none;margin:0;padding:0}.task-title{overflow-wrap:anywhere;min-width:0}.task-row-done .task-title{color:var(--muted);text-decoration:line-through}.task-edit{flex:none;min-width:44px;min-height:44px}.task-meta,.task-notes{font-size:var(--text-sm);padding-left:28px}.task-meta{align-items:center;gap:var(--space-1) var(--space-3);color:var(--text-soft);flex-wrap:wrap;display:flex}.task-due,.task-assignee{align-items:center;gap:6px;display:inline-flex}.task-overdue{padding:1px var(--space-2);font-size:var(--text-xs);color:var(--red);background:var(--red-tint);border:1px solid var(--red-line);border-radius:var(--radius-pill);font-weight:600}.task-priority-high,.task-priority-urgent{padding:1px var(--space-2);font-size:var(--text-xs);color:var(--amber);background:var(--amber-tint);border:1px solid var(--amber-line);border-radius:var(--radius-pill);font-weight:600}.task-priority-urgent{color:var(--red);background:var(--red-tint);border-color:var(--red-line)}.task-sale{overflow-wrap:anywhere;align-items:center;min-height:44px;display:inline-flex}.task-notes{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.task-related{align-items:center;gap:var(--space-1);display:inline-flex}.task-comments{gap:var(--space-2);padding-left:28px;display:grid}.task-comments-toggle{font-size:var(--text-sm);justify-self:start}.task-form-checklist{gap:var(--space-2);display:grid}.task-comments-toggle,.task-comments .list-add-row button,.task-form-checklist .list-add-row button,.task-form-checklist-remove{min-height:44px}.task-checklist{margin:0;padding:0 0 0 28px;list-style:none;display:grid}.task-checklist-item{font-size:var(--text-sm)}.task-checklist-name{overflow-wrap:anywhere;min-width:0}.task-form-sale{gap:6px;margin:0;display:grid}.task-form-sale-label{font-size:var(--text-sm);color:var(--text-soft);font-weight:500}.outcome-form{gap:var(--space-3);display:grid}.bell{flex:none;position:relative}.bell-button{position:relative}.bell-badge{min-width:20px;height:20px;font-size:var(--text-xs);text-align:center;color:var(--on-accent);background:var(--red);border-radius:var(--radius-pill);padding:0 5px;font-weight:600;line-height:20px;position:absolute;top:-6px;right:-6px}.bell-flag{border-radius:var(--radius-pill);width:8px;height:8px;position:absolute;bottom:6px;right:6px}.bell-flag-danger{background:var(--red)}.bell-flag-warning{background:var(--amber)}.bell-warning-icon{color:var(--amber);flex:none;margin-top:.2rem}.bell-popover{top:calc(100% + var(--space-2));z-index:10;gap:var(--space-2);width:min(24rem, calc(100vw - 2 * var(--space-4)));max-height:min(70vh,32rem);padding:var(--space-3);box-shadow:var(--shadow);display:grid;position:absolute;right:0;overflow-y:auto}@media (width<=820px){.bell-popover{top:60px;right:var(--space-4);left:var(--space-4);width:auto;position:fixed}}.bell-header{justify-content:space-between;align-items:center;gap:var(--space-2);display:flex}.bell-title{font-size:var(--text-lg);margin:0}.bell-note{padding:var(--space-2);margin:0}.bell-list{gap:var(--space-1);margin:0;padding:0;list-style:none;display:grid}.bell-item{align-items:flex-start;gap:var(--space-2);width:100%;min-height:44px;padding:var(--space-2) var(--space-3);text-align:left;background:0 0;border-color:#0000;display:flex}.bell-item-unread{font-weight:600}.bell-dot{background:var(--accent);border-radius:var(--radius-pill);flex:none;width:8px;height:8px;margin-top:.4rem}.bell-item-body{gap:2px;min-width:0;display:grid}.bell-item-text{overflow-wrap:anywhere}.bell-item-time{font-size:var(--text-xs);color:var(--muted);font-weight:400}.bell-footer{padding-top:var(--space-2);border-top:1px solid var(--border)}.bell-settings-link{min-height:44px;padding:0 var(--space-3);font-size:var(--text-sm);align-items:center;display:flex}.global-search{flex:0 20rem;min-width:0;position:relative}.global-search-toggle{display:none}@media (width>=821px){.global-search-popover{left:0;right:auto}}.global-search-option{cursor:pointer;border-radius:var(--radius)}.global-search-option:hover,.global-search-option[aria-selected=true]{background:var(--card-hover)}.global-search-label{overflow-wrap:anywhere;font-weight:600}@media (width<=600px){.global-search{flex:none;position:static}.global-search-toggle{display:inline-flex}.global-search-box{display:none}.global-search-expanded .global-search-box{top:5px;right:var(--space-2);left:var(--space-2);z-index:1;display:block;position:absolute}}.new-menu{flex:none;position:relative}.new-menu-item{color:var(--text);border-radius:var(--radius);align-items:center;text-decoration:none}.new-menu-item:hover{color:var(--text);background:var(--card-hover)}.notify-grid th[scope=row]{font-size:var(--text-base);letter-spacing:normal;text-transform:none;color:var(--text);white-space:normal;font-weight:500}.notify-grid-name,.notify-grid-covers{display:block}.notify-grid-covers{font-size:var(--text-sm);color:var(--muted);font-weight:400}.notify-grid .notify-grid-channel{text-align:center;width:6.5rem;padding:0}.notify-check{cursor:pointer;justify-content:center;align-items:center;min-width:44px;min-height:44px;display:flex}.notify-check input{width:18px;height:18px;accent-color:var(--accent);margin:0}@media (width<=620px){.notify-grid .notify-grid-channel{width:auto}}.opportunity-panel{gap:var(--space-4);margin-top:var(--space-5);padding:14px 18px 16px;display:grid}.opportunity-panel>.card-title{margin:0}.opportunity-facts{gap:var(--space-3) var(--space-4);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));margin:0;display:grid}.opportunity-facts dt{font-size:var(--text-sm);color:var(--muted)}.opportunity-facts dd{overflow-wrap:anywhere;margin:2px 0 0}.person-phone{white-space:nowrap}@media (width<=820px),(pointer:coarse){.person-phone{align-items:center;min-height:44px;display:inline-flex}}.progress{gap:var(--space-2);display:grid}.progress-lost-label{color:var(--red);margin:0;font-weight:600}.progress-strip{gap:var(--space-2);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.progress-step{font-size:var(--text-sm);color:var(--muted);border:1px solid var(--border);border-radius:var(--radius-pill);padding:4px 10px}.progress-step-done{color:var(--green);background:var(--green-tint);border-color:#0000}.progress-step-current{color:var(--on-accent);background:var(--accent);border-color:var(--accent);font-weight:600}.progress-strip-lost .progress-step{color:var(--dim-2);text-decoration:line-through}.stage-flow{align-items:center}.stage-flow-item{align-items:center;gap:var(--space-2);color:var(--muted);display:inline-flex}.stage-flow-off{opacity:.4}.setup-banner{padding:var(--space-2) var(--space-3);font-size:var(--text-sm);background:var(--card-press);border:1px solid var(--border);border-radius:var(--radius);margin:0}.quick-actions-block{gap:var(--space-3);display:grid}.quick-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.quick-action-link{min-height:40px;padding:0 var(--space-4);color:var(--text);background:var(--card);border:1px solid var(--border-strong);border-radius:var(--radius);align-items:center;font-weight:500;text-decoration:none;display:inline-flex}.quick-action-link:hover{background:var(--card-press)}@media (width<=820px),(pointer:coarse){.quick-action-link{min-height:44px}}.quick-action-form{padding:var(--space-3) var(--space-4)}.assign-form{gap:var(--space-3);max-width:none;display:grid}.assign-form label{color:var(--text-soft);gap:6px;font-weight:500;display:grid}.opportunity-rows .cell-primary a{align-items:center;display:inline-flex}.opportunity-rows tbody tr[aria-current=true]{background:var(--accent-dim)}.customer-tabs{margin-top:var(--space-5)}.tab-list{gap:var(--space-1);margin-bottom:var(--space-3);border-bottom:1px solid var(--border);flex-wrap:wrap;display:flex}.tab{min-height:44px;padding:0 var(--space-4);color:var(--muted);background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0}.tab:hover:not(:disabled){color:var(--text);background:var(--card-hover)}.tab[aria-selected=true]{color:var(--text);border-bottom-color:var(--accent);font-weight:600}.overview-cards{gap:var(--space-4);grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));display:grid}.overview-card{padding:14px 18px 16px}.coming-up{gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}.coming-up-when{font-weight:600}.history{gap:var(--space-3);padding:14px 18px 16px;display:grid}.history-header{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-4);flex-wrap:wrap;display:flex}.history-header>.card-title{margin:0}.history-filter{align-items:center;gap:var(--space-2);font-size:var(--text-sm);color:var(--text-soft);display:flex}.history-list{margin:0;padding:0;list-style:none;display:grid}.history-list li{padding:var(--space-3) 0;border-top:1px solid var(--border);gap:2px;display:grid}.history-text{overflow-wrap:anywhere}.history-time{font-size:var(--text-xs);color:var(--muted)}.task-row-highlight{padding-left:var(--space-2);background:var(--accent-soft);border-left:3px solid var(--accent);border-radius:var(--radius-sm)}.task-missing{margin:0 0 var(--space-3)}.quotes-tab{gap:var(--space-4);display:grid}.quote-form-card{padding:var(--space-4)}.quote-form{gap:var(--space-3);max-width:none;display:grid}.quote-form-fields{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));align-items:start;display:grid}.quote-form-fields .field:last-child{grid-column:1/-1}.close-sale-install{gap:var(--space-3);display:grid}.close-sale-install-fields{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));align-items:start;display:grid}.quote-discount{gap:var(--space-2);border:none;border-radius:0;padding:0;display:grid}.quote-discount legend{font-size:var(--text-sm);margin-bottom:6px;padding:0;font-weight:500}.quote-discount-row{gap:var(--space-2);align-items:center;display:flex}.quote-discount-kinds{gap:var(--space-2);flex:none;display:flex}.quote-discount-value{flex:auto;min-width:0}.quote-summary{font-variant-numeric:tabular-nums;color:var(--text);margin:0;font-weight:600}.close-sale-derived{gap:var(--space-1);font-variant-numeric:tabular-nums;align-self:end;min-height:44px;margin:0;display:grid}.close-sale-derived span{font-size:var(--text-sm);font-weight:500}.close-sale-review,.close-sale-review-item{gap:var(--space-2);display:grid}.close-sale-review-item{border-color:var(--border)}.close-sale-needed{gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}.close-sale-needed li{justify-content:space-between;align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.close-sale-documents{gap:var(--space-3);display:grid}.quote-grid{gap:var(--space-4);grid-template-columns:minmax(0,1fr);align-items:start;display:grid}@media (width>=768px){.quote-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.quote-card{gap:var(--space-3);padding:var(--space-4);display:grid}.quote-card-head{justify-content:space-between;align-items:center;gap:var(--space-2);display:flex}.quote-card-head .card-title{margin:0}.quote-facts dd{overflow-wrap:anywhere}.quote-total{font-variant-numeric:tabular-nums;font-weight:600}.quote-card-declined{opacity:.6}.quote-card-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.quote-action-link{min-height:44px;padding:0 var(--space-4);color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius);align-items:center;font-weight:500;text-decoration:none;display:inline-flex}.quote-action-link:hover{background:var(--card-press)}.quote-approve-form{gap:var(--space-2);display:grid}.quote-print-actions{justify-content:space-between;align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.quote-paper{gap:var(--space-5);max-width:56rem;padding:var(--space-6);color:var(--paper-ink);background:var(--paper-bg);border:1px solid var(--paper-ink);border-radius:var(--radius);font-size:var(--text-md);display:grid}.quote-paper p,.quote-paper h2,.quote-paper h3,.quote-paper ul{color:inherit;margin:0;padding:0;list-style:none}.quote-paper-head{justify-content:space-between;gap:var(--space-4);flex-wrap:wrap;display:flex}.quote-paper-dealer{font-size:var(--text-xl)}.quote-paper-meta{text-align:right}.quote-paper-numbers,.quote-paper-strong{font-weight:600}.quote-paper-label{font-size:var(--text-sm);text-transform:uppercase;letter-spacing:.04em;font-weight:400}.quote-paper-table{border-collapse:collapse;width:100%}.quote-paper-table th,.quote-paper-table td{color:inherit;padding:var(--space-2);text-align:left;vertical-align:top;border-bottom:1px solid var(--paper-ink)}.quote-paper-table tbody tr:hover{background:0 0}.quote-paper-table th{white-space:normal}.quote-paper-table td span{display:block}.quote-paper-table .quote-paper-num{text-align:right;font-variant-numeric:tabular-nums}.quote-paper-signatures{gap:var(--space-5);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));display:grid}.quote-paper-line{border-bottom:1px solid var(--paper-ink);min-height:2rem;font-style:italic}@page{margin:12mm}@media print{.sidebar,.drawer-backdrop,.top-bar,.quote-print-actions{display:none}.app-layout,.app-main{display:block}.app-content{max-width:none;padding:0}.quote-paper{border:0;border-radius:0;max-width:none;padding:0}}.files-tab{gap:var(--space-4);display:grid}.upload-card{padding:var(--space-4)}.upload-form{gap:var(--space-3);max-width:32rem;display:grid}.check-field{align-items:center;gap:var(--space-2);min-height:44px;display:flex}.upload-chosen,.upload-refused{padding-left:var(--space-4);margin:0}.file-list{margin:0;padding:0;list-style:none;display:grid}.file-row{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-3);min-height:44px;padding:var(--space-2) 0;border-bottom:1px solid var(--border);flex-wrap:wrap;display:flex}.file-info{flex:16rem;min-width:0;display:grid}.file-name{overflow-wrap:anywhere;font-weight:500}.file-actions{gap:var(--space-2);display:flex}.file-row .confirm-bar{flex:1 0 100%}.file-viewer{gap:var(--space-3);padding:var(--space-4);display:grid}.file-viewer-head{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.file-viewer-head .card-title{overflow-wrap:anywhere;margin:0}.file-preview{justify-self:start;max-width:100%;max-height:70vh}.job-tab{gap:var(--space-4);display:grid}.job-card{gap:var(--space-3);padding:var(--space-4);display:grid}.job-card-head{justify-content:space-between;align-items:center;gap:var(--space-2) var(--space-4);flex-wrap:wrap;display:flex}.job-card-head .card-title{margin:0}.job-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.job-statuses{gap:var(--space-2);grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr));display:grid}.job-status{gap:var(--space-1);min-width:0;padding:var(--space-2) var(--space-3);background:var(--card-press);border:1px solid var(--border);border-radius:var(--radius);display:grid}.job-status-heading{font-size:var(--text-sm);color:var(--muted)}.job-status-value{overflow-wrap:anywhere;font-weight:600}.qc-details,.qc-blockers{gap:var(--space-1);min-width:0;display:grid}.qc-details p,.qc-blockers p,.qc-blockers h4{overflow-wrap:anywhere;margin:0}.qc-blockers ul{padding-left:var(--space-4);margin:0}.qc-panel .job-actions button,.qc-form .form-actions button{min-height:44px}.job-card .schedule-booking{margin:0;font-weight:600}.job-card .schedule-confirmation,.job-card .schedule-track{color:var(--text-soft);margin:0}.job-facts .job-note{grid-column:1/-1}.job-facts .job-note dd{white-space:pre-wrap}.still-needed-bar{align-items:center;gap:var(--space-2) var(--space-4);padding:var(--space-2) var(--space-4);margin-bottom:var(--space-3);background:var(--amber-tint);border:1px solid var(--amber-line);border-radius:var(--radius-lg);color:var(--amber);flex-wrap:wrap;display:flex}.still-needed-bar ul{gap:var(--space-1) var(--space-4);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.still-needed-bar a{min-height:44px;color:var(--text);align-items:center;text-decoration:underline;display:inline-flex}.payment-totals{gap:var(--space-3) var(--space-4);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));margin:0;display:grid}.payment-totals dt{color:var(--muted);font-size:var(--text-xs)}.payment-totals dd{font-size:var(--text-lg);font-variant-numeric:tabular-nums;margin:0}.payment-rows .cell-amount{font-variant-numeric:tabular-nums;white-space:nowrap}.payment-rows .cell-actions{white-space:nowrap}.row-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}@container (width<=880px){.table-stack.payment-rows tbody tr{grid-template-areas:"kind amount""status status""method method""collected collected""verified verified""references references""actions actions"}.payment-rows .cell-kind{grid-area:kind}.payment-rows .cell-amount{grid-area:amount;justify-self:end}.payment-rows .cell-pay-status{grid-area:status}.payment-rows .cell-method{grid-area:method}.payment-rows .cell-collected{grid-area:collected}.payment-rows .cell-verified{grid-area:verified}.payment-rows .cell-references{overflow-wrap:anywhere;grid-area:references}.payment-rows .cell-actions{grid-area:actions}}.dispatch-waiting{margin-bottom:var(--space-4)}.dispatch-waiting-head{align-items:center;gap:var(--space-2);margin-bottom:var(--space-2);display:flex}.dispatch-waiting-title{font-size:var(--text-lg);margin:0}.dispatch-waiting-count{padding:0 var(--space-2);font-size:var(--text-sm);color:var(--text-soft);background:var(--accent-dim);border-radius:var(--radius-pill)}.dispatch-waiting-list{gap:var(--space-2);grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));margin:0;padding:0;list-style:none;display:grid}.dispatch-waiting-card{gap:var(--space-2);padding:var(--space-3);display:grid}.dispatch-waiting-main{text-align:left;gap:2px;width:100%;min-height:44px;font-weight:400;display:grid}.dispatch-suggestions p{font-size:var(--text-sm);margin:0}.dispatch-bar-picked,.dispatch-waiting-main[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:1px}.dispatch-picking-note{align-items:center;gap:var(--space-3);margin:0 0 var(--space-3);padding:var(--space-2) var(--space-3);font-size:var(--text-md);background:var(--accent-dim);border:1px solid var(--accent);border-radius:var(--radius);flex-wrap:wrap;display:flex}.dispatch-scroll{max-width:100%;padding-bottom:var(--space-2);overflow-x:auto}.dispatch-week,.dispatch-day{gap:var(--space-2);min-width:45rem;display:grid}.dispatch-week-head,.dispatch-crew-row{gap:var(--space-2);grid-template-columns:8.5rem minmax(0,1fr);display:grid}.dispatch-days{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.dispatch-day-head{min-height:44px;font-size:var(--text-sm);color:var(--text-soft);border-radius:var(--radius-sm);justify-content:center;align-items:center;font-weight:600;text-decoration:none;display:flex}.dispatch-day-head:hover{background:var(--accent-dim)}.dispatch-day-head[aria-current=date]{color:var(--text);box-shadow:inset 0 -2px 0 var(--accent)}.dispatch-crew{padding:var(--space-2) 0;align-content:start;gap:2px;display:grid}.dispatch-crew-name{font-size:var(--text-base);margin:0}.dispatch-crew-open{font-size:var(--text-sm);color:var(--text-soft);margin:0}.dispatch-lanes{grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(var(--lanes), minmax(56px, auto));gap:4px;display:grid}.dispatch-cell{grid-column:var(--col);background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);grid-row:1/-1;min-height:56px;display:flex}.dispatch-cell-today{border-color:var(--accent)}.dispatch-place{min-height:44px;color:var(--text-soft);border:1px dashed var(--border-strong);background:0 0;flex:auto}.dispatch-dragging .dispatch-bar{pointer-events:none}.dispatch-bar{z-index:1;background:var(--card);border:1px solid var(--border-strong);border-radius:var(--radius-sm);border-left-width:4px;align-items:stretch;min-width:0;margin:4px;display:flex}.dispatch-week-bar{grid-column:var(--col-start) / var(--col-end);grid-row:var(--lane)}.dispatch-bar[draggable=true]{cursor:grab}.dispatch-bar-clash{background:var(--amber-tint)}.dispatch-bar-main{min-width:0;min-height:44px;padding:4px var(--space-2);text-align:left;background:0 0;border:none;border-radius:0;flex:auto;align-content:center;gap:1px;font-weight:400;display:grid}.dispatch-bar-name{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.dispatch-bar-city,.dispatch-bar-detail{font-size:var(--text-xs);color:var(--text-soft);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dispatch-bar-flag{font-size:var(--text-xs);color:var(--amber);align-items:center;gap:4px;font-weight:600;display:inline-flex}.dispatch-bar-end{width:28px;min-height:44px;color:var(--text-soft);border:none;border-left:1px solid var(--border);cursor:ew-resize;background:0 0;border-radius:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}.dispatch-bar-end:before{content:"";position:absolute;inset:0 -8px}.dispatch-bar-end[aria-pressed=true]{color:var(--on-accent);background:var(--accent)}.dispatch-hours,.dispatch-timeline{grid-template-columns:repeat(var(--cols), minmax(0, 1fr));display:grid}.dispatch-hours span{grid-column:var(--col) / span 4;font-size:var(--text-xs);color:var(--muted)}.dispatch-timeline{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);grid-auto-rows:minmax(56px,auto);min-height:64px}.dispatch-day-block{grid-column:var(--col-start) / var(--col-end)}.dispatch-timeline .dispatch-place{grid-column:1/-1}.dispatch-month-day{grid-template-columns:minmax(0,1fr);gap:2px;display:grid}.dispatch-month-open{font-size:var(--text-xs);color:var(--muted)}.calendar-day-entries li[draggable=true]{cursor:grab}.booking-form{gap:var(--space-3);max-width:none;display:grid}.booking-form-title{font-size:var(--text-base);margin:0}.booking-form-when{font-size:var(--text-sm);color:var(--text-soft);margin:0}.booking-form-fields{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));align-items:end;display:grid}.booking-form-link{align-items:center;min-height:44px;display:inline-flex}.booking-form-link,.booking-form-unschedule{margin-right:auto}.inventory-stack{gap:var(--space-4);display:grid}.stock-rows .cell-on-hand,.stock-rows .cell-allocated,.stock-rows .cell-available,.stock-rows .cell-incoming{font-variant-numeric:tabular-nums;white-space:nowrap}.reorder-edit{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.reorder-edit input{width:6rem}.reorder-edit .error,.reorder-edit .muted{flex-basis:100%;margin:0}.stock-flag{border-radius:var(--radius-lg);font-size:var(--text-sm);padding:2px 10px;font-weight:600;display:inline-block}.stock-flag-low{color:var(--amber);background:var(--amber-tint)}.stock-flag-out{color:var(--red);background:var(--red-tint)}.order-rows .cell-actions{white-space:nowrap}.order-form{gap:var(--space-3);max-width:none;display:grid}.order-line{align-items:end;gap:var(--space-3);grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;display:grid}.order-form-more{display:flex}@container (width<=880px){.table-stack.stock-rows tbody tr{grid-template-areas:"item flag""sku sku""onhand onhand""allocated allocated""available available""incoming incoming""expected expected""reorder reorder"}.stock-rows .cell-item{grid-area:item}.stock-rows .cell-flag{grid-area:flag;justify-self:end}.stock-rows .cell-sku{grid-area:sku}.stock-rows .cell-on-hand{grid-area:onhand}.stock-rows .cell-allocated{grid-area:allocated}.stock-rows .cell-available{grid-area:available}.stock-rows .cell-incoming{grid-area:incoming}.stock-rows .cell-expected{grid-area:expected}.stock-rows .cell-reorder-point{grid-area:reorder}.table-stack.order-rows tbody tr{grid-template-areas:"number status""lines lines""expected expected""placed placed""actions actions"}.order-rows .cell-number{grid-area:number}.order-rows .cell-status{grid-area:status;justify-self:end}.order-rows .cell-lines{overflow-wrap:anywhere;grid-area:lines}.order-rows .cell-expected{grid-area:expected}.order-rows .cell-placed{grid-area:placed}.order-rows .cell-actions{grid-area:actions}}@media (width<=640px){.order-line{grid-template-columns:minmax(0,1fr);align-items:stretch}}.field-page,.field-view{gap:var(--space-4);min-width:0;max-width:42rem;display:grid}.field-head{gap:var(--space-3);min-width:0;display:grid}.field-head h1,.field-head h2,.field-head .page-header-subtitle{overflow-wrap:anywhere;margin:0}.field-links{gap:var(--space-2);flex-wrap:wrap;display:flex}.field-link{justify-content:center;align-items:center;gap:var(--space-2);min-height:48px;padding:var(--space-2) var(--space-4);color:var(--text);background:var(--card);border:1px solid var(--border-strong);border-radius:var(--radius);flex:10rem;font-weight:600;text-decoration:none;display:inline-flex}.field-link:hover{background:var(--card-press)}.field-warning{align-items:flex-start;gap:var(--space-2);padding:var(--space-3);color:var(--text);background:var(--amber-tint);border:1px solid var(--amber-line);border-radius:var(--radius);margin:0;display:flex}.field-warning .icon{color:var(--amber);flex:none}.field-card{gap:var(--space-3);padding:var(--space-4);min-width:0;display:grid}.field-card .card-title{margin:0}.field-actions,.field-checks,.field-files,.field-job-list{gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}.job-cards{grid-template-columns:repeat(auto-fill,minmax(17rem,1fr))}.field-actions>li{gap:var(--space-3);display:grid}.field-action,.field-choices button,.field-form-actions button,.field-row>button,.field-rows>button{width:100%;min-height:48px}.field-action-next{min-height:56px;font-size:var(--text-lg)}.field-action-reason{margin:var(--space-1) 0 0;font-size:var(--text-sm)}.field-panel{padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-lg)}.field-form,.field-choices,.field-rows{gap:var(--space-3);min-width:0;display:grid}.field-form-actions{flex-wrap:nowrap}.field-form-actions button{flex:1 1 0;min-width:0}.field-row{gap:var(--space-2);padding-bottom:var(--space-3);border-bottom:1px solid var(--border);display:grid}.field-check{min-height:48px}.field-check input{flex:none;width:22px;height:22px}.field-facts{gap:var(--space-3);margin:0;display:grid}.field-facts dt{font-size:var(--text-sm);color:var(--muted)}.field-facts dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.field-file{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.field-file-text{overflow-wrap:anywhere;min-width:0;display:grid}.field-file button{flex:none;min-height:48px}.field-jobs{gap:var(--space-3);display:grid}.field-section-title{font-size:var(--text-lg);margin:0}.field-job-card{gap:var(--space-2);min-height:48px;padding:var(--space-4);color:var(--text);justify-items:start;text-decoration:none;display:grid}.field-job-card:hover{background:var(--card-hover)}.field-job-top{justify-content:space-between;align-items:center;gap:var(--space-2);flex-wrap:wrap;width:100%;display:flex}.field-job-name{font-size:var(--text-lg);overflow-wrap:anywhere;font-weight:600}.field-job-meta{gap:var(--space-1) var(--space-3);color:var(--text-soft);flex-wrap:wrap;display:flex}.system-rows .cell-leds,.system-rows .cell-controllers{font-variant-numeric:tabular-nums}.system-rows .cell-address{gap:var(--space-1);display:grid}@container (width<=880px){.table-stack.system-rows tbody tr{grid-template-areas:"owner tickets""address address""installed warranty""crew crew""leds controllers"}.system-rows .cell-owner{grid-area:owner}.system-rows .cell-address{grid-area:address}.system-rows .cell-installed{grid-area:installed}.system-rows .cell-crew{grid-area:crew}.system-rows .cell-leds{grid-area:leds}.system-rows .cell-controllers{grid-area:controllers;justify-self:end}.system-rows .cell-warranty{grid-area:warranty;justify-self:end}.system-rows .cell-tickets{grid-area:tickets;justify-self:end}}.ticket-rows .cell-age{font-variant-numeric:tabular-nums}@container (width<=880px){.table-stack.ticket-rows tbody tr{grid-template-areas:"number status""customer customer""category priority""assignee age"}.ticket-rows .cell-number{grid-area:number}.ticket-rows .cell-status{grid-area:status;justify-self:end}.ticket-rows .cell-customer{grid-area:customer}.ticket-rows .cell-category{grid-area:category}.ticket-rows .cell-priority{grid-area:priority;justify-self:end}.ticket-rows .cell-assignee{grid-area:assignee}.ticket-rows .cell-age{grid-area:age;justify-self:end}}.ticket-form,.ticket-form-card{gap:var(--space-3);display:grid}.ticket-form-card{margin-bottom:var(--space-4);padding:var(--space-4)}.ticket-form-fields{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));align-items:end;display:grid}.ticket-page{gap:var(--space-4);min-width:0;max-width:48rem;display:grid}.ticket-facts{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}.ticket-visit-when{align-items:center;gap:var(--space-2);flex-wrap:wrap;margin:0;display:flex}.ticket-visits>li>button{min-height:48px}.service-tab{gap:var(--space-3);display:grid}.service-tickets{gap:var(--space-2);margin:0;padding:0;list-style:none;display:grid}.service-ticket{align-items:center;gap:var(--space-2) var(--space-3);flex-wrap:wrap;display:flex}@media (width<=820px),(pointer:coarse){.ticket-rows .cell-number a,.ticket-rows .cell-customer a,.service-ticket a,.ticket-customer-link{align-items:center;min-height:44px;display:inline-flex}}.tiles{gap:var(--space-3);margin-bottom:var(--space-4);grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));display:grid}.tile{gap:var(--space-1);min-height:44px;padding:var(--space-3) var(--space-4);text-align:left;display:grid}.tile-link{color:inherit;text-decoration:none}.tile-link:hover{background:var(--card-press)}.tile-label{color:var(--muted);font-size:var(--text-sm)}.tile-value{font-size:var(--text-2xl);font-weight:600}.tile-note{color:var(--muted);font-size:var(--text-xs)}.list-table th{padding-block:0}.sort-button{align-items:center;gap:var(--space-1);width:100%;min-height:44px;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;background:0 0;border:none;padding:0;display:inline-flex}.sort-button:hover:not(:disabled){color:var(--text);background:0 0}.list-table .cell-number .sort-button{justify-content:flex-end}.list-table tbody tr{height:44px}.list-foot{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-4);border-top:1px solid var(--border);color:var(--muted);font-size:var(--text-sm);flex-wrap:wrap;display:flex}.list-pager{align-items:center;gap:var(--space-2);display:flex}@media (width<=1099px){.cell-hide-tablet{display:none}}.list-table th.cell-head-wrap{white-space:normal}.list-table th.cell-head-wrap .sort-button{text-align:inherit}.list-table th.cell-number.cell-head-wrap .sort-button{text-align:right}.office-body{gap:var(--space-3);align-items:start;display:grid}.office-tabs{gap:var(--space-1);flex-wrap:wrap;display:flex}.office-tab{justify-content:space-between;align-items:center;gap:var(--space-2);min-height:44px;padding:0 var(--space-3);text-align:left;display:flex}.office-tab[aria-selected=true]{border-color:var(--accent);background:var(--accent-dim);font-weight:600}.office-count{min-width:1.5rem;padding:0 var(--space-2);border-radius:var(--radius-pill);background:var(--card-press);font-size:var(--text-xs);text-align:center}.office-count-zero{color:var(--muted);background:0 0}.office-panel{gap:var(--space-3);min-width:0;padding:var(--space-3) var(--space-4);display:grid}.office-hint{font-size:var(--text-sm);margin:0}.office-rows{margin:0;padding:0;list-style:none;display:grid}.office-row{align-items:center;gap:var(--space-3);min-height:44px;padding:var(--space-2) 0;border-top:1px solid var(--border);grid-template-columns:4rem minmax(0,9rem) minmax(0,1fr) auto;display:grid}.office-row-number{align-items:center;min-height:44px;font-weight:600;display:inline-flex}.office-row-text{min-width:0;min-height:44px;color:var(--text);align-content:center;text-decoration:none;display:grid}.office-row-customer{color:var(--accent);font-weight:500}.office-row-text:hover .office-row-customer{text-decoration:underline}.office-row-form{grid-column:1/-1}.office-row-detail{color:var(--muted);font-size:var(--text-sm);overflow-wrap:anywhere}.office-row-actions{justify-content:flex-end;align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}@media (width>=1100px){.office-body{grid-template-columns:17rem minmax(0,1fr)}.office-tabs{flex-flow:column}}@media (width<=820px){.office-row{grid-template-columns:3rem minmax(0,1fr)}.office-row-number{grid-row:1/span 3;align-self:start}.office-row-city,.office-row-text,.office-row-actions{grid-column:2;justify-content:flex-start}}.pay-filters{align-items:flex-end;gap:var(--space-3) var(--space-4);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.pay-totals{gap:var(--space-3) var(--space-6);margin:0 0 var(--space-3);flex-wrap:wrap;display:flex}.pay-totals dt{color:var(--muted);font-size:var(--text-xs)}.pay-totals dd{font-size:var(--text-lg);font-variant-numeric:tabular-nums;margin:0}.pay-rows .cell-amount,.pending-rows .cell-amount,.dealer-payment-rows .cell-amount{font-variant-numeric:tabular-nums;white-space:nowrap}.pay-rows .cell-job a,.pending-rows .cell-job a,.dealer-payment-rows .cell-job a{align-items:center;min-height:44px;display:inline-flex}.pay-withdrawn{color:var(--muted);text-decoration:line-through}.pay-line-note{margin:var(--space-1) 0 0;color:var(--muted);font-size:var(--text-xs)}.pay-pending{margin-top:var(--space-6)}.pay-left-out-closers{gap:0 var(--space-4);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.pay-left-out-closers a{align-items:center;min-height:44px;display:inline-flex}@container (width<=880px){.table-stack.pay-rows tbody tr{grid-template-areas:"job amount""customer customer""status status""kind kind""person person""earned paydate""value rate"}.pay-rows .cell-job{grid-area:job}.pay-rows .cell-amount{grid-area:amount;justify-self:end}.pay-rows .cell-customer{grid-area:customer}.pay-rows .cell-status{text-align:start;grid-area:status;justify-self:stretch}.pay-rows .cell-kind{grid-area:kind}.pay-rows .cell-person{grid-area:person}.pay-rows .cell-earned{grid-area:earned}.pay-rows .cell-pay-date{grid-area:paydate;justify-self:end}.pay-rows .cell-value{grid-area:value}.pay-rows .cell-rate{grid-area:rate;justify-self:end}.table-stack.pending-rows tbody tr{grid-template-areas:"job estimate""customer customer""person person""value rate"}.pending-rows .cell-job{grid-area:job}.pending-rows .cell-amount{grid-area:estimate;justify-self:end}.pending-rows .cell-customer{grid-area:customer}.pending-rows .cell-person{grid-area:person}.pending-rows .cell-value{grid-area:value}.pending-rows .cell-rate{grid-area:rate;justify-self:end}}.pay-rules-group{gap:var(--space-3);border:none;min-width:0;margin:0;padding:0;display:grid}.pay-rules-group legend{padding:0;font-weight:600}.pay-rules-fields{gap:var(--space-3) var(--space-4);grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));display:grid}.analytics-filters{align-items:flex-end;gap:var(--space-3) var(--space-4);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.analytics-heading{margin:var(--space-5) 0 var(--space-3);font-size:var(--text-xl)}.analytics-note{margin:0 0 var(--space-3)}.stat-grid{gap:var(--space-3);margin:0 0 var(--space-4);grid-template-columns:repeat(auto-fill,minmax(min(100%,12rem),1fr));padding:0;list-style:none;display:grid}.stat-card{gap:var(--space-1);min-width:0;padding:var(--space-4);align-content:start;display:grid}.stat-label{font-size:var(--text-sm);color:var(--text-soft);font-weight:500}.stat-value{font-size:var(--text-2xl);font-variant-numeric:tabular-nums;color:var(--text);overflow-wrap:anywhere;font-weight:600}.stat-detail{font-size:var(--text-sm);color:var(--muted);font-variant-numeric:tabular-nums}.analytics-grid{gap:var(--space-3);margin-bottom:var(--space-4);grid-template-columns:minmax(0,1fr);align-items:start;display:grid}@media (width>=1100px){.analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.bar-card{min-width:0;padding:var(--space-4)}.bar-card .muted{margin:0}.bar-list{gap:var(--space-3);margin:0;padding:0;list-style:none;display:grid}.bar-row{gap:var(--space-1) var(--space-3);font-size:var(--text-md);grid-template-columns:minmax(0,1fr) auto;display:grid}.bar-label{overflow-wrap:anywhere}.bar-value{color:var(--text-soft);font-variant-numeric:tabular-nums;text-align:right}.bar-track{background:var(--accent-dim);border-radius:var(--radius-pill);grid-column:1/-1;height:8px;overflow:hidden}.bar-fill{width:var(--bar,0%);background:var(--accent);border-radius:var(--radius-pill);height:100%;display:block}@media (width>=1100px){.funnel-card{grid-column:1/-1}.analytics-money{grid-area:1/2/span 2}}.funnel-conversion{font-size:var(--text-sm);color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;grid-column:1/-1}.funnel-days,.pipeline-figures{gap:var(--space-3);margin:var(--space-4) 0 0;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));display:grid}.pipeline-figures{margin-top:0}.funnel-days dt,.pipeline-figures dt{font-size:var(--text-sm);color:var(--text-soft);font-weight:500}.funnel-days dd,.pipeline-figures dd{font-size:var(--text-lg);font-variant-numeric:tabular-nums;margin:0;font-weight:600}.funnel-card .funnel-note{margin:var(--space-3) 0 0;font-size:var(--text-sm)}.table-scroll.table-scroll-flat,.table-scroll.analytics-table{background:0 0;border:none;border-radius:0}.analytics-table .data-table .cell-number,.list-table .cell-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.list-table .cell-nowrap{white-space:nowrap}.analytics-table .data-table tbody th{font-size:var(--text-md);letter-spacing:normal;text-transform:none;white-space:normal;color:var(--text)}.analytics-table .data-table tbody tr:last-child th{border-bottom:none}.dealer-payment-rows .cell-actions{white-space:nowrap}.payments-form-row,.row-links .payments-form-row:hover{cursor:default}.payments-form-row td{padding:var(--space-3) var(--space-4)}@container (width<=880px){.table-stack.dealer-payment-rows tbody tr{grid-template-areas:"customer amount""job status""kind kind""collected collected""verified verified""method method""actions actions"}.dealer-payment-rows .cell-customer{grid-area:customer}.dealer-payment-rows .cell-amount{grid-area:amount;justify-self:end}.dealer-payment-rows .cell-job{grid-area:job}.dealer-payment-rows .cell-status{grid-area:status;justify-self:end}.dealer-payment-rows .cell-kind{grid-area:kind}.dealer-payment-rows .cell-collected{grid-area:collected}.dealer-payment-rows .cell-verified{grid-area:verified}.dealer-payment-rows .cell-method{grid-area:method}.dealer-payment-rows .cell-actions{grid-area:actions}.table-stack.dealer-payment-rows tbody tr.payments-form-row{display:block}}.performance-leaderboard{margin-bottom:var(--space-3)}.performance-grid{gap:var(--space-3);margin-bottom:var(--space-4);grid-template-columns:minmax(0,1fr);align-items:start;display:grid}@media (width>=1100px){.performance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.report-tiles{gap:var(--space-3);margin-bottom:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(12rem,1fr));display:grid}.report-tile{align-content:start}.report-tile[aria-pressed=true]{background:var(--accent-dim);border-color:var(--accent)}.report-tile-name{font-weight:600}.report-tile-description,.report-tile-rows{color:var(--muted);font-size:var(--text-sm)}.report-notice{margin:0}.report-notice:not(:empty){margin-bottom:var(--space-3)}.table-card-top{justify-content:space-between;align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.workspace-grid{gap:var(--space-4);grid-template-columns:minmax(0,1fr);display:grid}@media (width>=1100px){.workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.workspace-card{margin-bottom:var(--space-4);padding:var(--space-4)}.workspace-grid>.workspace-card{margin-bottom:0}.workspace-card>.card-title{margin:0 0 var(--space-2)}.workspace-list{margin:0;padding:0;list-style:none}.workspace-row{align-items:center;gap:var(--space-3);min-height:44px;padding:var(--space-1) 0;border-top:1px solid var(--border);color:inherit;text-decoration:none;display:flex}a.workspace-row:hover{background:var(--card-hover)}.workspace-tick{align-items:center;gap:var(--space-3);flex:1;min-width:0;min-height:44px;display:flex}.workspace-main{overflow-wrap:anywhere;flex:1;min-width:0;display:grid}.workspace-sub,.workspace-when,.workspace-date,.workspace-time{color:var(--muted);font-size:var(--text-sm)}.workspace-number,.workspace-amount{font-variant-numeric:tabular-nums;font-weight:600}.workspace-date{flex:none;min-width:3rem}.workspace-time{flex:none;min-width:3.75rem}.workspace-number{flex:none;min-width:3rem}.workspace-empty{gap:var(--space-1);color:var(--muted);margin:0;display:grid}.team-forms{margin-bottom:var(--space-4)}.team-forms .admin-card-actions{gap:var(--space-2)}.team-crews{margin-top:var(--space-4)}.team-name{align-items:center;gap:var(--space-2);display:inline-flex}.team-roles{gap:var(--space-1);flex-wrap:wrap;display:flex}.bar-card-head{justify-content:space-between;align-items:baseline;gap:var(--space-2);margin-bottom:var(--space-2);flex-wrap:wrap;display:flex}.bar-card-head>.card-title{margin:0}.bar-card-head>a{align-items:center;min-height:44px;display:inline-flex}.messages-tab{gap:var(--space-4);display:grid}.thread{gap:var(--space-2);flex-direction:column;max-height:28rem;display:flex;overflow-y:auto}.bubble{max-width:min(100%,34rem);padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card)}.bubble-out{background:var(--accent-soft);align-self:flex-end}.bubble-note{background:var(--amber-tint);border-color:var(--amber-line);align-self:flex-start}.bubble-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.bubble small{color:var(--muted);font-size:var(--text-xs);margin-top:4px;display:block}.composer{gap:var(--space-3);display:grid}.composer-channels{gap:var(--space-2) var(--space-4);border:0;flex-wrap:wrap;margin:0;padding:0;display:flex}.composer-channel,.composer-follow-up label{align-items:center;gap:var(--space-2);min-height:44px;display:inline-flex}.composer-hint{margin:0}.composer-text{resize:vertical;min-height:44px}.composer-follow-up{align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}.composer-actions{justify-content:space-between;align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}.composer-note{font-size:var(--text-sm)}.reply-form{gap:var(--space-3);max-width:40rem;padding:var(--space-4);display:grid}.reply-form label{color:var(--text-soft);gap:6px;font-weight:500;display:grid}.inbox{gap:var(--space-4);grid-template-columns:minmax(0,1fr);display:grid}.inbox-list,.inbox-thread,.inbox-panel{min-width:0}.inbox-tools{gap:var(--space-2);margin-bottom:var(--space-3);display:grid}.inbox-tools .view-switch{margin-bottom:0}.inbox-rows{gap:var(--space-1);max-height:70vh;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.inbox-row{align-items:center;gap:var(--space-3);text-align:left;background:var(--card);width:100%;min-height:44px;display:flex}.inbox-row-on{background:var(--accent-dim);border-color:var(--accent)}.inbox-row-text{flex:auto;min-width:0;display:grid}.inbox-row-top{justify-content:space-between;gap:var(--space-2);display:flex}.inbox-row-name,.inbox-row-preview{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.inbox-row-unread{font-weight:700}.inbox-row-date{font-size:var(--text-xs);flex:none}.inbox-dot{background:var(--accent);border-radius:var(--radius-pill);flex:none;width:8px;height:8px}.inbox-thread-body,.inbox-panel-body{gap:var(--space-3);display:grid}.inbox-thread-head,.inbox-panel-who{align-items:center;gap:var(--space-3);display:flex}.inbox-thread-name{font-size:var(--text-lg);margin:0}.inbox-panel-name{margin:0;font-weight:600}.inbox-facts{gap:var(--space-2) var(--space-3);grid-template-columns:5.5rem minmax(0,1fr);margin:0;display:grid}.inbox-facts dt{color:var(--muted)}.inbox-facts dd{overflow-wrap:anywhere;margin:0}.inbox-link{min-height:44px;padding:0 var(--space-3);color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius);align-items:center;text-decoration:none;display:inline-flex}.inbox-panel-body>button{min-height:44px}.nav-badge{min-width:20px;height:20px;font-size:var(--text-xs);text-align:center;color:var(--on-accent);background:var(--red);border-radius:var(--radius-pill);margin-left:auto;padding:0 6px;font-weight:600;line-height:20px}@media (width<=819px){.inbox:not(.inbox-open) .inbox-thread,.inbox:not(.inbox-open) .inbox-panel,.inbox-open .inbox-list{display:none}}@media (width>=820px){.inbox{grid-template-columns:minmax(16rem,20rem) minmax(0,1fr);align-items:start}.inbox-list{grid-row:span 2}.inbox-back{display:none}}@media (width>=1100px){.inbox{grid-template-columns:minmax(16rem,20rem) minmax(0,1fr) minmax(15rem,18rem)}.inbox-list{grid-row:auto}}.template-pick{justify-content:space-between;align-items:center;gap:var(--space-3);text-align:left;background:var(--card);flex:12rem;min-width:0;min-height:44px;display:flex}.template-pick-on{background:var(--accent-dim);border-color:var(--accent)}.broadcast-banner{gap:var(--space-1);display:grid}.broadcast-banner p{overflow-wrap:anywhere;margin:0}.broadcast-notice{margin:0;font-weight:500}.past-broadcasts{gap:var(--space-3);margin-top:var(--space-5);display:grid}.automations-banner,.automation-form{margin-bottom:var(--space-4)}.automation-list{gap:var(--space-3);margin:0;padding:0;list-style:none;display:grid}.automation-card{gap:var(--space-3);min-width:0;padding:14px 20px 16px;display:grid}.automation-head{align-items:center;gap:var(--space-2) var(--space-3);flex-wrap:wrap;display:flex}.automation-name{font-size:var(--text-base);overflow-wrap:anywhere;margin:0}.automation-count{font-size:var(--text-xs);font-variant-numeric:tabular-nums}.automation-switch{cursor:pointer;justify-content:center;align-items:center;min-width:44px;min-height:44px;margin-left:auto;display:inline-flex}.automation-switch input{width:20px;height:20px;accent-color:var(--accent);margin:0}.automation-flow{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.automation-flow-off{opacity:.5}.automation-node{min-width:0;padding:var(--space-2) var(--space-3);font-size:var(--text-sm);background:var(--card-press);border:1px solid var(--border);border-radius:var(--radius);overflow-wrap:anywhere;gap:2px;display:grid}.automation-caption{font-size:var(--text-xs);color:var(--muted)}.automation-arrow{color:var(--muted);display:inline-flex}.automation-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.automation-log{gap:var(--space-1);padding:var(--space-2) 0 0;border-top:1px solid var(--border);margin:0;list-style:none;display:grid}.automation-log-line{align-items:center;gap:0 var(--space-2);font-size:var(--text-sm);overflow-wrap:anywhere;flex-wrap:wrap;display:flex}@media (width>=1100px){.dashboard-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}.dashboard-cards>:last-child:nth-child(odd){grid-column:1/-1}}.dealer-steps{border:none;border-radius:0;margin:0;padding:0}.dealer-steps legend{margin-bottom:var(--space-1);font-size:var(--text-sm);padding:0;font-weight:600}.dealers-bars,.dealer-defaults{margin-top:var(--space-4)}.records-notice{align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.record-issues-card{margin-bottom:var(--space-4)}.record-issues{gap:var(--space-3);margin:0;padding:0;list-style:none;display:grid}.record-issues li{gap:var(--space-1);overflow-wrap:anywhere;display:grid}.person-access{gap:var(--space-3);min-width:0;display:grid}.person-access-status{align-items:center;gap:var(--space-2);flex-wrap:wrap;margin:0;font-weight:600;display:flex}.person-access-actions{justify-content:flex-end;gap:var(--space-2);flex-wrap:wrap;display:flex}
