:root{--text-xs:clamp(.75rem,.7rem + .25vw,.875rem);--text-sm:clamp(.875rem,.8rem + .35vw,1rem);--text-base:clamp(1rem,.95rem + .25vw,1.125rem);--text-lg:clamp(1.125rem,1rem + .75vw,1.5rem);--text-xl:clamp(1.5rem,1.2rem + 1.25vw,2.25rem);--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;--space-12:3rem;--space-16:4rem;--radius-sm:.375rem;--radius-md:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--color-bg:#f5f3eb;--color-surface:#fffdf8;--color-surface-2:#f1eee4;--color-border:#d8d1be;--color-text:#1b2924;--color-muted:#5e6963;--green:#103c32;--green-hover:#0a2d25;--gold:#dab05b;--danger:#8d3329;--success:#3d7031;--shadow:0 8px 25px #142a221a;--font-body:"Satoshi","Helvetica Neue",sans-serif;--font-display:"Cabinet Grotesk","Helvetica Neue",sans-serif}*{box-sizing:border-box;margin:0;padding:0}html{-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;background:var(--color-bg)}body{min-height:100dvh;font-family:var(--font-body);font-size:var(--text-base);color:var(--color-text);background:var(--color-bg);line-height:1.5}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit}img,video{max-width:100%;height:auto;display:block}input,textarea,select{border:1px solid var(--color-border);border-radius:var(--radius-sm);width:100%;padding:var(--space-3);background:var(--color-surface);min-height:44px}textarea{resize:vertical;min-height:110px}label{gap:var(--space-2);font-size:var(--text-sm);font-weight:700;display:grid}h1{font-family:var(--font-display);font-size:var(--text-xl);line-height:1.08}h2{font-size:var(--text-lg);line-height:1.15}h3{font-size:var(--text-base)}:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.skip-link{position:absolute;left:-999px}.skip-link:focus{left:var(--space-4);top:var(--space-4);z-index:10;padding:var(--space-3);background:#fff}.app-shell{min-height:100dvh}.topbar{background:var(--green);color:#fff;min-height:64px;padding:var(--space-3) max(var(--space-4),env(safe-area-inset-right));justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.brand{align-items:center;gap:var(--space-2);letter-spacing:.06em;font-size:1.2rem;font-weight:900;display:inline-flex}.brand span span{color:var(--gold)}.brand svg{width:32px;height:32px;color:var(--gold)}.logo-link{text-decoration:none}.topbar-actions{gap:var(--space-3);align-items:center;display:flex}.user-name{font-size:var(--text-sm)}.navigation{padding:0 var(--space-3);z-index:2;background:#0b2e26;display:flex;position:sticky;top:0;overflow:auto}.navigation a{color:#dbe5df;padding:var(--space-3) var(--space-4);font-size:var(--text-sm);white-space:nowrap;border-bottom:3px solid #0000;font-weight:700;text-decoration:none}.navigation a.active{color:#fff;border-color:var(--gold)}.content{max-width:1080px;padding:var(--space-6) var(--space-4) calc(var(--space-16) + env(safe-area-inset-bottom));margin:auto}.page-heading,.detail-head,.section-heading,.sheet-header{justify-content:space-between;align-items:flex-start;gap:var(--space-4);margin-bottom:var(--space-6);display:flex}.eyebrow{font-size:var(--text-xs);letter-spacing:.12em;color:#8a6b29;margin-bottom:var(--space-1);font-weight:900}.primary-button,.secondary-button,.danger-button,.quiet-button,.back-button,.upload-button{min-height:44px;padding:var(--space-2) var(--space-4);border-radius:var(--radius-sm);font-size:var(--text-sm);justify-content:center;align-items:center;font-weight:900;text-decoration:none;display:inline-flex}.primary-button{background:var(--green);color:#fff}.primary-button:hover{background:var(--green-hover)}.secondary-button{background:var(--color-surface-2);border:1px solid var(--color-border)}.danger-button{background:var(--danger);color:#fff}.quiet-button,.back-button{text-underline-offset:3px;background:0 0;text-decoration:underline}.job-list,.task-list,.activity-list{gap:var(--space-3);display:grid}.job-card,.task-card,.clock-card,.estimate-card,.video-slot{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow)}.job-card{padding:var(--space-5);justify-content:space-between;gap:var(--space-4);cursor:pointer;display:flex}.job-card h2{margin:var(--space-1) 0}.job-card p:not(.job-meta){color:var(--color-muted);font-size:var(--text-sm)}.job-meta{color:#80652a;font-size:var(--text-xs);font-weight:700}.status{height:max-content;padding:var(--space-1) var(--space-2);font-size:var(--text-xs);background:#e8ddbf;border-radius:99px;font-weight:700}.status.completed{color:#1d5720;background:#d9ead0}.detail-section{margin-top:var(--space-10)}.section-heading p,.section-copy{color:var(--color-muted);font-size:var(--text-sm);margin-top:var(--space-1)}.task-card{padding:var(--space-4)}.task-top{justify-content:space-between;gap:var(--space-2);margin-bottom:var(--space-2);display:flex}.check-label{font-size:var(--text-sm);grid-template-columns:auto 1fr;align-items:center;display:flex}.check-label input{width:22px;height:22px;min-height:22px;accent-color:var(--green)}.subtasks{margin:var(--space-3) 0;padding-left:var(--space-4);color:var(--color-muted);font-size:var(--text-sm)}.proof-row{gap:var(--space-3);margin-top:var(--space-4);border-top:1px solid var(--color-border);padding-top:var(--space-3);grid-template-columns:1fr 1fr;display:grid}.proof-row>div{gap:var(--space-2);font-size:var(--text-xs);display:grid}.proof-row img{aspect-ratio:1.15;object-fit:cover;border-radius:var(--radius-sm);background:var(--color-surface-2);width:100%}.upload-button{color:var(--green);width:max-content;font-size:var(--text-xs);background:#e8e0cd;position:relative}.inline-error,.form-error{color:var(--danger);font-size:var(--text-sm)}.add-task{gap:var(--space-2);margin-top:var(--space-4);display:flex}.add-task input{min-width:0}.video-grid{gap:var(--space-3);margin-top:var(--space-4);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.video-slot{padding:var(--space-3);gap:var(--space-3);font-size:var(--text-sm);display:grid}.video-slot video{aspect-ratio:1.5;object-fit:cover;background:#18201d;width:100%}.grade-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.estimate-card{padding:var(--space-4)}.estimate-lines{gap:var(--space-2);margin-bottom:var(--space-4);display:grid}.estimate-lines>div,.total-row{justify-content:space-between;gap:var(--space-3);display:flex}.estimate-lines span{font-size:var(--text-sm);color:var(--color-muted)}.total-row{border-top:1px solid var(--color-border);padding:var(--space-4) 0;margin-bottom:var(--space-4);font-size:var(--text-lg)}.clock-card{gap:var(--space-4);padding:var(--space-5);max-width:570px;display:grid}.clock-card select{margin-top:var(--space-2)}.table-wrap{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);overflow:auto}table{border-collapse:collapse;width:100%;min-width:640px;font-size:var(--text-sm)}th,td{padding:var(--space-3);text-align:left;border-bottom:1px solid var(--color-border)}th{background:var(--color-surface-2)}.activity-row{padding:var(--space-4);background:var(--color-surface);border-bottom:1px solid var(--color-border);justify-content:space-between;gap:var(--space-4);font-size:var(--text-sm);display:flex}.activity-row p,.activity-row time{font-size:var(--text-xs);color:var(--color-muted)}.sheet-backdrop{z-index:20;padding:var(--space-3);background:#10221b8c;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--color-surface);border-radius:var(--radius-xl) var(--radius-xl) var(--radius-sm) var(--radius-sm);width:min(680px,100%);max-height:92dvh;padding:var(--space-6);box-shadow:var(--shadow);overflow:auto}.sheet>p{margin:var(--space-2) 0 var(--space-5);color:var(--color-muted)}.form-grid{gap:var(--space-4);grid-template-columns:1fr;display:grid}.wide{grid-column:1/-1}.login-page{min-height:100dvh;padding:var(--space-4);background:linear-gradient(160deg,#103c32 0%,#0a2922 66%,#6d5221 160%);place-items:center;display:grid}.login-card{width:min(470px,100%);padding:var(--space-8);border-radius:var(--radius-xl);background:#fffdf8;box-shadow:0 20px 60px #00000047}.login-card>.brand{color:var(--green);margin-bottom:var(--space-8)}.login-card h1{margin:var(--space-2) 0}.login-copy,.login-help{color:var(--color-muted);font-size:var(--text-sm);margin-bottom:var(--space-6)}.login-card form{gap:var(--space-4);display:grid}.login-help{margin:var(--space-5) 0 0}.notice{padding:var(--space-3);color:#225321;border-radius:var(--radius-sm);margin-bottom:var(--space-4);font-size:var(--text-sm);background:#e6eedf}.empty-state{text-align:center;padding:var(--space-16) var(--space-6);color:var(--color-muted);flex-direction:column;align-items:center;display:flex}.empty-state h2{color:var(--color-text);margin-bottom:var(--space-2)}.empty-state p{margin-bottom:var(--space-6);max-width:34ch}.empty-state-icon{font-family:var(--font-display);color:var(--gold);margin-bottom:var(--space-3);font-size:3rem}.skeleton{border-radius:var(--radius-sm);background:linear-gradient(90deg,#e7e4d9 25%,#f5f3eb 50%,#e7e4d9 75%) 0 0/200% 100%;animation:1.5s infinite shimmer}.skeleton-stack{gap:var(--space-3);display:grid}.skeleton-heading{width:40%;height:38px}.skeleton-card{height:105px}@keyframes shimmer{to{background-position:-200% 0}}.push-gate{z-index:5;right:var(--space-3);bottom:var(--space-3);justify-items:end;gap:var(--space-2);max-width:min(300px,100vw - 2rem);display:grid;position:fixed}.push-gate button{background:var(--green);color:#fff;padding:var(--space-2) var(--space-3);box-shadow:var(--shadow);font-size:var(--text-xs);border-radius:99px;font-weight:700}.push-gate span{background:var(--color-surface);box-shadow:var(--shadow);padding:var(--space-2);font-size:var(--text-xs);border-radius:var(--radius-sm)}.image-fallback{min-height:82px;padding:var(--space-2);background:var(--color-surface-2);color:var(--color-muted);font-size:var(--text-xs);text-align:center;place-items:center;display:grid}@media (width>=700px){.content{padding:var(--space-10) var(--space-6)}.form-grid{grid-template-columns:1fr 1fr}.proof-row{grid-template-columns:repeat(2,minmax(0,280px))}.sheet-backdrop{align-items:center}.sheet{border-radius:var(--radius-xl)}.job-card{padding:var(--space-6)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.subtask-control{gap:var(--space-2);padding:var(--space-2) 0;border-top:1px solid var(--color-border);display:grid}.subtask-control .quiet-button{min-height:32px;font-size:var(--text-xs);justify-self:start;padding:0}.subtask-detail{gap:var(--space-3);padding:var(--space-2) 0;display:grid}.subtask-detail textarea{min-height:70px}.pw-field{display:block;position:relative}.pw-field input{width:100%;padding-right:4.75rem}.pw-toggle{cursor:pointer;font:inherit;color:#1d5b4c;background:0 0;border:0;border-radius:.375rem;min-height:2rem;padding:.35rem .5rem;font-size:.8125rem;font-weight:600;position:absolute;top:50%;right:.5rem;transform:translateY(-50%)}.pw-toggle:hover{background:#1d5b4c14}.pw-toggle:focus-visible{outline-offset:1px;outline:2px solid #1d5b4c}.pw-count{color:#6b7280;letter-spacing:.01em;margin:.375rem 0 0;font-size:.75rem}@media (display-mode:standalone){.topbar{padding-top:calc(var(--space-3) + env(safe-area-inset-top))}.navigation{padding-left:max(var(--space-3),env(safe-area-inset-left));padding-right:max(var(--space-3),env(safe-area-inset-right))}.content{padding-bottom:calc(var(--space-16) + env(safe-area-inset-bottom))}.push-gate{bottom:calc(var(--space-3) + env(safe-area-inset-bottom))}body{overscroll-behavior-y:contain}}.install-banner{z-index:6;left:var(--space-3);right:var(--space-3);bottom:calc(var(--space-3) + env(safe-area-inset-bottom));background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);max-width:520px;padding:var(--space-3);margin-inline:auto;animation:.25s ease-out install-in;position:fixed;box-shadow:0 12px 40px #102a2238}@keyframes install-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.install-row{align-items:center;gap:var(--space-3);display:flex}.install-icon{background:var(--green);border-radius:var(--radius-sm);flex:none;place-items:center;width:38px;height:38px;display:grid}.install-icon svg{width:26px;height:26px}.install-copy{flex:auto;min-width:0}.install-copy strong{font-size:var(--text-sm);line-height:1.25;display:block}.install-copy p{font-size:var(--text-xs);color:var(--color-muted);margin-top:2px}.install-actions{align-items:center;gap:var(--space-1);flex:none;display:flex}.install-cta{background:var(--green);color:#fff;padding:var(--space-2) var(--space-4);font-size:var(--text-xs);border-radius:99px;min-height:38px;font-weight:900}.install-cta:hover{background:var(--green-hover)}.install-x{color:var(--color-muted);border-radius:var(--radius-sm);background:0 0;min-width:38px;min-height:38px;font-size:1rem}.install-x:hover{background:var(--color-surface-2)}.install-steps{margin:var(--space-3) 0 0;gap:var(--space-2);font-size:var(--text-xs);color:var(--color-text);border-top:1px solid var(--color-border);padding-left:1.35rem;padding-top:var(--space-3);display:grid}.install-steps li{line-height:1.45}.offline-bar{z-index:7;align-items:center;gap:var(--space-2);color:#ffe9cf;padding:var(--space-2) var(--space-4);font-size:var(--text-xs);padding-top:calc(var(--space-2) + env(safe-area-inset-top));background:#5c2f0e;font-weight:700;display:flex;position:sticky;top:0}.offline-dot{background:#ffb35c;border-radius:50%;flex:none;width:8px;height:8px;animation:1.6s ease-in-out infinite offline-pulse}@keyframes offline-pulse{0%,to{opacity:1}50%{opacity:.35}}.camera-button{background:var(--green);color:#fff;margin-left:var(--space-2)}.camera-button:hover{background:var(--green-hover)}.biometric-button{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:var(--radius-sm);justify-content:center;align-items:center;gap:var(--space-2);width:100%;min-height:48px;margin-top:var(--space-2);font-weight:900;display:flex}.filter-chips,.contact-actions,.photo-actions,.diagnosis-actions{gap:var(--space-2);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.filter-chips button{min-height:38px;padding:var(--space-2) var(--space-3);background:var(--color-surface-2);border:1px solid var(--color-border);font-size:var(--text-xs);text-transform:capitalize;border-radius:99px;font-weight:800}.filter-chips button.active{background:var(--green);color:#fff}.ahs-card{text-decoration:none}.ahs-sheet{gap:var(--space-4);display:grid}.low-confidence input{background:#fff6df;border-color:#b77721}.shot-list{gap:var(--space-3);margin-bottom:var(--space-4);display:grid}.shot-card{gap:var(--space-3);padding:var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);border-left:4px solid #b77721;display:grid}.shot-card.complete{border-left-color:var(--success)}.shot-card>div:first-child{justify-content:space-between;gap:var(--space-2);display:flex}.shot-card img{aspect-ratio:1.2;object-fit:cover;border-radius:var(--radius-sm);width:150px}.required-tag{font-size:var(--text-xs);color:#8d3329;font-weight:800}.ahs-diagnosis{gap:var(--space-5);padding:var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow);display:grid}.dictation-field{gap:var(--space-2);display:grid}.mic-button{min-height:32px;padding:var(--space-1) var(--space-2);font-size:var(--text-xs);justify-self:start}.parts-editor{gap:var(--space-2);display:grid}.parts-editor .section-heading{margin:0}.part-row{gap:var(--space-2);grid-template-columns:minmax(0,1fr) 70px 92px auto auto;align-items:center;display:grid}.part-row input{min-width:0;padding:var(--space-2);min-height:38px}.tiny-check{align-items:center;gap:var(--space-1);font-size:var(--text-xs);display:flex}.tiny-check input{width:18px;min-height:18px}.composed-box{gap:var(--space-3);padding:var(--space-4);border-radius:var(--radius-sm);background:#f4f0e4;display:grid}.composed-box .section-heading{margin:0}.composed-box textarea{background:#fff;min-height:170px}@media (width<=520px){.part-row{grid-template-columns:1fr 58px 78px}.part-row .tiny-check,.part-row button{grid-column:auto}.contact-actions{width:100%}}.authorization-note{border-left:4px solid var(--gold)}.note-body{white-space:pre-line;margin:var(--space-2) 0;font-size:var(--text-sm)!important;color:var(--color-text)!important}.card-statuses{gap:var(--space-2);justify-items:end;height:max-content;display:grid}.status.in-progress{color:#7a5410;background:#f6e2b8}.status.new{color:#274060;background:#dfe6ee}.status.unknown{color:var(--color-muted);background:#e7e4d9}.ahs-revenue{padding:var(--space-5);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow)}.ahs-revenue .section-heading{margin-bottom:var(--space-4)}.revenue-grid{gap:var(--space-3);grid-template-columns:1fr;display:grid}.revenue-card{gap:var(--space-1);padding:var(--space-4);background:var(--color-surface-2);border-radius:var(--radius-sm);border-left:4px solid var(--color-border);display:grid}.revenue-card.lead{border-left-color:var(--green)}.revenue-card.outstanding{border-left-color:var(--gold)}.revenue-card span{font-size:var(--text-xs);letter-spacing:.04em;text-transform:uppercase;color:var(--color-muted);font-weight:800}.revenue-card strong{font-family:var(--font-display);font-size:var(--text-lg)}.revenue-card em{font-style:normal;font-size:var(--text-xs);color:var(--color-muted)}@media (width>=700px){.revenue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.amount-editor{max-width:none;margin-bottom:var(--space-4)}.portal-table-wrap{margin:12px 0;overflow-x:auto}.portal-table-wrap h3{margin:0 0 6px;font-size:1rem}.portal-table{border-collapse:collapse;width:100%;font-size:.9rem}.portal-table th,.portal-table td{text-align:left;vertical-align:top;border-bottom:1px solid #7f7f7f40;padding:6px 8px}.portal-table th{white-space:nowrap;font-weight:600}.portal-text{margin-top:12px}.portal-text pre{white-space:pre-wrap;word-break:break-word;max-height:60vh;font-size:.85rem;overflow:auto}.frontdoor-gallery{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;display:grid}.frontdoor-gallery a{flex-direction:column;gap:2px;text-decoration:none;display:flex}.frontdoor-gallery img{aspect-ratio:1;object-fit:cover;border-radius:8px;width:100%}.frontdoor-gallery small{opacity:.7}.report-filters{flex-wrap:wrap;align-items:flex-end;gap:12px;margin:8px 0 14px;display:flex}.report-filters label{flex-direction:column;gap:4px;font-size:.85rem;display:flex}.category-filter{border:0;flex-wrap:wrap;align-items:center;gap:12px;margin:0;padding:0;display:flex}.category-filter legend{margin-bottom:4px;font-size:.85rem}.report-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.report-table th,.report-table td{text-align:right;white-space:nowrap;border-bottom:1px solid #7f7f7f33;padding:6px 8px}.report-table th:first-child,.report-table td:first-child{text-align:left}.report-table tfoot th{border-top:2px solid #7f7f7f66}.report-table .negative{color:#c0392b}.report-table .positive{color:#1e8449}.expense-form{margin-bottom:14px}.expense-list{margin-top:14px}.jobs-table td,.jobs-table th{white-space:normal;vertical-align:top}.jobs-table .num{text-align:right;white-space:nowrap}.jobs-table td:not(.num),.jobs-table th:not(.num){text-align:left}.sort-button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.jobs-table tr.subtotal th{background:#7f7f7f14;font-weight:600}.table-wrap{max-height:75vh;overflow:auto}.report-table thead th,.jobs-table thead th{z-index:2;background:var(--surface,#fff);position:sticky;top:0;box-shadow:0 1px #7f7f7f59}@media (prefers-color-scheme:dark){.report-table thead th,.jobs-table thead th{background:var(--surface,#1c1c1e)}}.contact-cell a{text-decoration:none}.contact-grid{gap:10px;display:grid}.contact-row{border-bottom:1px solid #7f7f7f2e;grid-template-columns:120px 1fr;align-items:start;gap:8px;padding:8px 0;display:grid}.contact-label{text-transform:uppercase;letter-spacing:.04em;opacity:.7;padding-top:2px;font-size:.8rem}.contact-value{word-break:break-word;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.contact-value .contact-actions{flex-wrap:wrap;gap:6px;display:flex}@media (width<=560px){.contact-row{grid-template-columns:1fr}}.message-thread{flex-direction:column;gap:8px;max-height:50vh;padding:8px 0;display:flex;overflow:auto}.bubble{border-radius:14px;flex-direction:column;gap:2px;max-width:80%;padding:8px 12px;display:flex}.bubble.out{color:#fff;background:#0a84ff;align-self:flex-end}.bubble.in{background:#7f7f7f2e;align-self:flex-start}.bubble small{opacity:.8;font-size:.72rem}.message-compose{flex-direction:column;gap:8px;margin-top:8px;display:flex}.message-compose textarea{min-height:80px}.quick-replies{flex-wrap:wrap;gap:6px;display:flex}.unfiled-data ul{margin:8px 0 0 18px}.jobs-table td:first-child,.jobs-table .status{white-space:nowrap}.crm-tabs{gap:var(--space-1);margin:0 0 var(--space-6);padding-bottom:var(--space-1);border-bottom:1px solid var(--color-border);display:flex;overflow-x:auto}.crm-tabs a{padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm) var(--radius-sm) 0 0;font-size:var(--text-sm);color:var(--color-muted);white-space:nowrap;font-weight:700;text-decoration:none}.crm-tabs a.active{color:var(--green);box-shadow:inset 0 -3px 0 var(--green)}.crm-pill{text-transform:capitalize;white-space:nowrap}.crm-pill.won,.crm-pill.approved,.crm-pill.completed,.crm-pill.customer{color:#1d5720;background:#d9ead0}.crm-pill.lost,.crm-pill.declined,.crm-pill.cancelled,.crm-pill.expired,.crm-pill.unqualified,.crm-pill.urgent{color:var(--danger);background:#f1d6d2}.crm-pill.scheduled,.crm-pill.sent,.crm-pill.in_progress,.crm-pill.high{color:#1d3f5c;background:#dfe8f1}.crm-pill.contacted,.crm-pill.viewed,.crm-pill.estimated,.crm-pill.vendor,.crm-pill.subcontractor{color:#4a2d63;background:#ece3f3}.crm-pill.warranty{color:#6a4a0c;background:#f3e7c9}.crm-stats{margin-bottom:var(--space-4)}.crm-stats a.revenue-card{color:inherit;text-decoration:none}.crm-two-col{gap:var(--space-6);grid-template-columns:1fr;display:grid}@media (width>=900px){.crm-two-col{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}.crm-two-col>.detail-section,.crm-two-col>div>.detail-section:first-child{margin-top:var(--space-6)}.crm-list{gap:var(--space-2);display:grid}.crm-row{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);color:inherit;text-decoration:none;display:flex}a.crm-row:hover{border-color:var(--green)}.crm-row p{margin:var(--space-1) 0 0;font-size:var(--text-xs);color:var(--color-muted)}.crm-row-end{align-items:center;gap:var(--space-2);font-size:var(--text-xs);color:var(--color-muted);flex-wrap:wrap;justify-content:flex-end;display:flex}.crm-row-end select{min-height:36px;padding:var(--space-1) var(--space-2)}.crm-task.done strong{color:var(--color-muted);text-decoration:line-through}.crm-task .tiny-check{align-items:flex-start;gap:var(--space-2);display:flex}.crm-sub{font-size:var(--text-xs);color:var(--color-muted);display:block}.crm-filters{gap:var(--space-3);margin-bottom:var(--space-4);flex-wrap:wrap;align-items:flex-end;display:flex}.crm-filters label{min-width:180px}.crm-filters .tiny-check{align-items:center;gap:var(--space-2);min-width:0;display:flex}.crm-table tr.clickable{cursor:pointer}.crm-table tr.clickable:hover td{background:var(--color-surface-2)}.crm-facts{margin-bottom:var(--space-4)}.crm-notes{white-space:pre-wrap}.negative{color:var(--danger)}.crm-gap{margin:var(--space-4) 0}.crm-danger{border-top:1px solid var(--color-border);padding-top:var(--space-4)}.crm-danger .quiet-button{color:var(--danger)}.crm-board{gap:var(--space-3);padding-bottom:var(--space-4);scroll-snap-type:x proximity;grid-auto-columns:minmax(230px,1fr);grid-auto-flow:column;display:grid;overflow-x:auto}.crm-column{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:var(--space-3);gap:var(--space-2);scroll-snap-align:start;flex-direction:column;min-height:220px;display:flex}.crm-column.droppable{outline:2px dashed var(--color-border);outline-offset:-4px}.crm-column header{justify-content:space-between;align-items:baseline;gap:var(--space-2);display:flex}.crm-column header h2{font-size:var(--text-sm);text-transform:capitalize;margin:0}.crm-column header span{font-size:var(--text-xs);color:var(--color-muted)}.crm-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:var(--space-3);gap:var(--space-1);cursor:grab;display:grid;box-shadow:0 1px 2px #142a220f}.crm-card a{color:inherit;text-decoration:none}.crm-card p{font-size:var(--text-xs);color:var(--color-text);overflow-wrap:anywhere;margin:0}.crm-card .crm-card-meta{color:var(--color-muted)}.crm-card .crm-card-meta.negative{color:var(--danger)}.crm-card select{margin-top:var(--space-1);min-height:34px;font-size:var(--text-xs);padding:var(--space-1) var(--space-2)}.crm-inline-form{gap:var(--space-2);margin:var(--space-3) 0;grid-template-columns:1fr;display:grid}@media (width>=700px){.crm-inline-form{grid-template-columns:minmax(0,2fr) minmax(0,1.3fr) auto minmax(0,.8fr) auto}}.crm-inline-form .form-error{grid-column:1/-1}.crm-estimate-form{gap:var(--space-3);display:grid}.crm-estimate-form td input{width:100%;min-width:0}.crm-estimate-form .crm-num{text-align:right;width:6rem}.crm-log{gap:var(--space-2);margin-bottom:var(--space-4);padding:var(--space-4);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);display:grid}.crm-log .filter-chips button{min-height:36px;padding:var(--space-1) var(--space-3);text-transform:capitalize}.crm-log textarea{min-height:80px}.crm-log .primary-button{text-transform:capitalize;justify-self:start}.crm-feed{padding:0 0 0 var(--space-4);border-left:2px solid var(--color-border);gap:var(--space-3);margin:0;list-style:none;display:grid}.crm-feed-item{padding:var(--space-3);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);position:relative}.crm-feed-item:before{content:"";left:calc(-1 * var(--space-4) - 7px);top:var(--space-4);background:var(--color-border);border:2px solid var(--color-bg);border-radius:50%;width:12px;height:12px;position:absolute}.crm-feed-item.call:before,.crm-feed-item.text:before,.crm-feed-item.email:before{background:var(--green)}.crm-feed-item.status_change:before,.crm-feed-item.estimate_sent:before{background:var(--gold)}.crm-feed-item.dispatch:before{background:#1d3f5c}.crm-feed-head{justify-content:space-between;gap:var(--space-2);font-size:var(--text-xs);color:var(--color-muted);display:flex}.crm-feed-type{text-transform:capitalize;color:var(--color-text);font-weight:800}.crm-feed-item p{margin:var(--space-1) 0 0;font-size:var(--text-sm);white-space:pre-wrap;overflow-wrap:anywhere}.crm-feed-item small{font-size:var(--text-xs);color:var(--color-muted)}.crm-heading{flex-wrap:wrap}.crm-heading h1{overflow-wrap:anywhere}.crm-chip.active{background:var(--green);border-color:var(--green);color:#fff}.crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}@media (width>=900px){.crm-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}.crm-filters label.tiny-check{align-items:center;gap:var(--space-2);flex-direction:row;min-height:44px;display:flex}.crm-inline-form{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-inline-form>input:first-child{grid-column:1/-1}@media (width>=700px){.crm-inline-form{grid-template-columns:minmax(0,1.4fr) auto minmax(0,1fr) auto}}.brand-tag{letter-spacing:.08em;opacity:.85;border:1px solid;border-radius:99px;margin-left:.5rem;padding:.1rem .45rem;font-size:.7rem;font-weight:800}.topbar .brand{align-items:center;display:inline-flex}
