:root{--bg:#f4f5f7;--surface:#fff;--border:#0f172a12;--border-hover:#0f172a1c;--text:#0c1222;--text-secondary:#4b5568;--text-muted:#6b7280;--accent:#111827;--accent-hover:#1f2937;--accent-subtle:#f3f4f6;--accent-muted:#e5e7eb;--radius-sm:6px;--radius-md:9px;--radius-lg:12px;--shadow-sm:0 1px 2px #0f172a0a;--shadow-md:0 4px 24px #0f172a0f;--focus-ring:0 0 0 3px #11182714;color:var(--text);background:var(--bg);font-feature-settings:"cv02", "cv03", "cv04", "cv11";-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--bg);min-height:100vh;color:var(--text);margin:0;line-height:1.5}.authBootScreen{justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex}.loginScreen{background:linear-gradient(160deg,#fafbfc 0%,#f0f2f5 48%,#e8eaef 100%);justify-content:center;align-items:center;min-height:100vh;padding:1.5rem;display:flex}.loginScreen--ims{background:#fff}.loginCard{background:#fff;border:1px solid #e8edf4;border-radius:16px;width:100%;max-width:400px;padding:2rem 1.75rem;box-shadow:0 12px 40px #0f172a0f}.loginCard--ims{border-radius:var(--radius-lg);border:1px solid var(--border);text-align:center;max-width:380px;padding:2.25rem 2rem;box-shadow:0 1px 2px #0f172a0a}.loginTitle{color:#0f172a;margin:0 0 .5rem;font-size:1.35rem;font-weight:700}.loginTitle--ims{color:#0a0a0a;letter-spacing:-.02em;margin:0 0 .35rem;font-size:clamp(1.05rem,3.2vw,1.35rem);font-weight:700;line-height:1.25}.loginSubtitle{color:#64748b;margin:0 0 1.25rem;font-size:.88rem;line-height:1.5}.loginSubtitle--ims{color:#6b7280;margin:0 0 1.75rem;font-size:.9rem;font-weight:400}.loginConfigWarn{color:#64748b;text-align:left;margin:0 0 1rem;font-size:.82rem;line-height:1.45}.loginConfigWarn code{font-size:.78rem}.loginMessage{color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;margin:0 0 1rem;padding:.6rem .75rem;font-size:.85rem}.loginMessage--ims{text-align:left;border-radius:8px;margin:0 0 1.25rem;padding:.65rem .75rem;line-height:1.45}.loginMessage--imsError{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.loginMessage--imsInfo{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.loginEmailForm{text-align:left;flex-direction:column;gap:.65rem;margin-bottom:.25rem;display:flex}.loginFieldLabel{color:#374151;flex-direction:column;gap:.35rem;font-size:.85rem;font-weight:600;display:flex}.loginFieldInput{background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:.55rem .65rem;font-size:.95rem}.loginFieldInput:focus{outline-offset:0;border-color:#2563eb;outline:2px solid #2563eb}.loginPasswordHint{color:#6b7280;margin:0;font-size:.75rem;line-height:1.35}.loginSubmitBtn{color:#fff;cursor:pointer;background:#0a0a0a;border:none;border-radius:8px;width:100%;margin-top:.25rem;padding:.65rem 1rem;font-size:.95rem;font-weight:600}.loginSubmitBtn:hover{background:#252530}.loginModeLink{color:#2563eb;cursor:pointer;background:0 0;border:none;align-self:center;margin-top:.15rem;padding:.35rem;font-size:.85rem;text-decoration:underline}.loginSignupHint{color:#6b7280;text-align:center;margin:.35rem 0 0;font-size:.78rem;line-height:1.45}.loginForgotFlow{text-align:left}.loginForgotSuccess{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;margin:0 0 .5rem;padding:.7rem .75rem;font-size:.88rem}.forgotPasswordLink{color:#2563eb;cursor:pointer;text-align:left;background:0 0;border:none;width:100%;margin:0;padding:0;font-size:.85rem;text-decoration:underline}.forgotPasswordLink:hover{color:#1d4ed8;background:0 0}.loginInlineLink{color:#2563eb;font-size:inherit;cursor:pointer;background:0 0;border:none;margin:0;padding:0;font-weight:600;text-decoration:underline;display:inline}.loginDivider{color:#9ca3af;align-items:center;gap:.75rem;margin:1rem 0;font-size:.8rem;display:flex}.loginDivider:before,.loginDivider:after{content:"";background:#e5e7eb;flex:1;height:1px}.loginGoogleBtn{color:#3c4043;cursor:pointer;background:#fff;border:1px solid #dadce0;border-radius:10px;justify-content:center;align-items:center;gap:.5rem;width:100%;padding:.7rem 1rem;font-size:.95rem;font-weight:600;display:inline-flex;box-shadow:0 1px 2px #0000000d}.loginGoogleBtn:hover{background:#f8f9fa;border-color:#d0d4da}.loginGoogleBtn--ims{color:#fff;box-shadow:none;background:#13131a;border:none;border-radius:8px;padding:.75rem 1.25rem;font-size:.95rem;font-weight:500}.loginGoogleBtn--ims:hover{background:#252530}.loginGoogleSvg{flex-shrink:0}.topUserEmail{color:var(--text-secondary);letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;max-width:240px;font-size:.8rem;font-weight:500;overflow:hidden}.topBarLead{flex:1;align-items:center;gap:.65rem;min-width:0;display:flex}.topBarTitles{min-width:0}.topBarTitle{letter-spacing:-.04em;color:var(--text);margin:0 0 .1rem;font-size:1.05rem;font-weight:600}.topBarSubtitle{color:var(--text-muted);margin:0;font-size:.78rem;font-weight:400}.menuToggle{border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface);width:40px;height:40px;color:var(--text-secondary);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:none}.menuToggle:hover{background:var(--accent-subtle);border-color:var(--border-hover)}.menuToggleIcon{background:var(--text);width:16px;height:2px;box-shadow:0 -5px 0 var(--text), 0 5px 0 var(--text);border-radius:1px;display:block}.sidebarBackdrop{display:none}.topLogoutBtn{flex-shrink:0;padding:.45rem .7rem;font-size:.78rem;font-weight:500}#root{width:100%;max-width:100%;min-height:100vh;margin:0;padding:0}h1,h2,h3,p{margin:0}.appShell{background:var(--bg);isolation:isolate;min-height:90vh;display:flex}.sidebar{background:var(--surface);width:236px;color:var(--text);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;display:flex}.sidebarBrand{border-bottom:1px solid var(--border);padding:1rem}.sidebarBrand h1{letter-spacing:-.035em;color:var(--text);margin:0 0 .2rem;font-size:.9rem;font-weight:600;line-height:1.25}.sidebarBrand p{color:var(--text-muted);letter-spacing:.01em;margin:0;font-size:.68rem;line-height:1.4}.sidebarNav{flex:1;padding:.5rem;overflow-y:auto}.sidebarFooter{border-top:1px solid var(--border);flex-shrink:0;padding:.65rem .9rem .9rem}.sidebarLogoutBtn{justify-content:center;width:100%;font-weight:600}.navSectionLabel{text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);opacity:.92;padding:.65rem .85rem .35rem;font-size:.6rem;font-weight:600}.navItem{text-align:left;width:100%;color:var(--text-secondary);cursor:pointer;border-radius:var(--radius-md);background:0 0;border:none;border-left:3px solid #0000;margin:.05rem 0;padding:.48rem .75rem;font-size:.8125rem;transition:background .15s,color .15s,border-color .15s;display:block}.navItem:hover{background:var(--accent-subtle);color:var(--text)}.navItem.active{background:var(--accent-subtle);color:var(--text);border-left-color:var(--accent);font-weight:600}.mainArea{flex-direction:column;flex:1;min-width:0;display:flex}.contentArea{flex:1;padding:1.25rem 1.5rem 2rem;overflow:auto}.contentArea .panel{max-width:1200px;margin:0 auto}.app{gap:1rem;display:grid}.topBar{background:var(--surface);box-shadow:var(--shadow-sm);border:none;border-radius:0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 1.35rem;display:flex}.topBar h1{margin-bottom:.1rem;font-size:1.05rem}.topBar p{color:var(--text-muted);font-size:.8rem}.topControls{flex-wrap:wrap;align-items:center;gap:.5rem .75rem;display:flex}label{color:var(--text-secondary);gap:.3rem;font-size:.78rem;font-weight:500;display:grid}input,textarea,select,button{font:inherit}input,textarea,select{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text);padding:.48rem .6rem;transition:border-color .12s}input:focus-visible,textarea:focus-visible,select:focus-visible{border-color:var(--border-hover);box-shadow:var(--focus-ring);outline:none}textarea{min-height:72px}button{border:1px solid var(--accent);background:var(--accent);color:#fafafa;border-radius:var(--radius-md);cursor:pointer;padding:.45rem .85rem;font-size:.84rem;font-weight:500;transition:background .12s,border-color .12s}button:hover{background:var(--accent-hover);border-color:var(--accent-hover)}button.secondary{border-color:var(--border);background:var(--surface);color:var(--text)}button.secondary:hover{background:var(--accent-subtle);border-color:var(--border-hover)}a.secondary{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:var(--radius-md);cursor:pointer;justify-content:center;align-items:center;padding:.45rem .85rem;font-size:.84rem;font-weight:500;text-decoration:none;transition:background .12s,border-color .12s;display:inline-flex}a.secondary:hover{background:var(--accent-subtle);border-color:var(--border-hover)}a.secondary:focus-visible{box-shadow:var(--focus-ring);outline:none}button.menuToggle{border:1px solid var(--border);background:var(--surface);width:40px;height:40px;color:var(--text-secondary);border-radius:var(--radius-md);padding:0}button.menuToggle:hover{background:var(--accent-subtle);border-color:var(--border-hover)}button:focus-visible{box-shadow:var(--focus-ring);outline:none}.message{background:var(--surface);color:var(--text-secondary);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);margin:0;padding:.7rem .9rem;font-size:.84rem}.message.messageError{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.message.messageInfo{color:#1e3a8a;background:#eff6ff;border-color:#bfdbfe}.message.messageSuccess{color:var(--text);background:#16a34a14;border-color:#16a34a40}.locationLockNote{border-radius:var(--radius-md);border:1px solid #0000;padding:.45rem .55rem;font-weight:600}.locationLockNote.ok{color:#166534;background:#ecfdf5;border-color:#86efac}.locationLockNote.warn{color:#9a3412;background:#fff7ed;border-color:#fdba74}.settingsPanel{gap:1rem;max-width:920px}.settingsHeader .settingsLead{margin:.15rem 0 0;font-size:.82rem}.settingsCard{padding:1.1rem 1.2rem}.settingsTableWrap{border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm)}.settingsTable{border-collapse:collapse;width:100%;font-size:.82rem}.settingsTable th{text-align:left;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);border-bottom:1px solid var(--border);background:var(--accent-subtle);padding:.6rem .75rem;font-size:.65rem;font-weight:600}.settingsTable td{border-bottom:1px solid var(--border);vertical-align:middle;padding:.55rem .65rem}.settingsTable tbody tr:last-child td{border-bottom:none}.settingsEmailCell{word-break:break-all;font-weight:500}.followupTableWrap{border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm);overscroll-behavior-x:contain;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;max-width:100%;max-height:min(68vh,560px);overflow:auto}.followupTable{border-collapse:collapse;table-layout:auto;width:max-content;min-width:920px}.followupTable th,.followupTable td{border-bottom:1px solid var(--border);vertical-align:top;padding:.65rem .55rem}.followupTable th{background:var(--accent-subtle)}.followupTable tbody tr:hover{background:#0f3d3908}.followupTable tbody tr:last-child td{border-bottom:none}.followupTable td{overflow-wrap:anywhere}.followupTableWrap--archived{margin-top:.5rem}.followupCustomerCell{min-width:0}.followupCustomerName{color:var(--text);word-break:break-word;font-size:.9rem;font-weight:600;line-height:1.35}.followupCustomerHead{justify-content:space-between;align-items:flex-start;gap:.45rem;display:flex}.followupArchiveToggle{color:var(--text-secondary);white-space:nowrap;-webkit-user-select:none;user-select:none;align-items:center;gap:.35rem;font-size:.68rem;font-weight:600;display:inline-flex}.followupArchiveToggle input{margin:0}.switchToggle{border:1px solid var(--border);background:var(--surface);min-height:1.8rem;color:var(--text);border-radius:999px;place-self:start;align-items:center;gap:0;width:auto;padding:.12rem .24rem;display:inline-flex}.switchToggle .switchTrack{border:1px solid var(--border);background:#e5e7eb;border-radius:999px;align-items:center;width:2rem;height:1.15rem;padding:1px;display:inline-flex}.switchToggle .switchThumb{background:#fff;border-radius:50%;width:.9rem;height:.9rem;transition:transform .18s;transform:translate(0);box-shadow:0 1px 2px #00000040}.switchToggle.isOn .switchTrack{background:#d1d5db}.switchToggle.isOn .switchThumb{transform:translate(.82rem)}.switchToggle:hover{background:var(--surface);border-color:var(--border)}.switchToggle--compact{min-height:1.65rem}.followupCustomerMeta{color:var(--text-muted);word-break:break-word;margin-top:.25rem;font-size:.72rem;line-height:1.35}.followupSalesmanCell,.followupCityCell{color:var(--text-secondary);word-break:break-word;font-size:.76rem}.followupCompactCell{white-space:nowrap}.followupDateCell{white-space:nowrap;font-variant-numeric:tabular-nums}.followupPill,.followupStatus{letter-spacing:.02em;white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;min-height:1.65rem;padding:.17rem .48rem;font-size:.7rem;font-weight:600;display:inline-flex}.followupPill{color:var(--text-secondary);background:#0f3d3914}.followupPill--high{color:#b45309;background:#ea580c24}.followupPill--medium{color:#1d4ed8;background:#2563eb1f}.followupPill--low{color:#15803d;background:#16a34a1f}.followupStatus{color:var(--text-secondary);background:#0f3d390f}.followupStatus--closed{color:#15803d;background:#16a34a1f}.followupStatus--pending{color:#c2410c;background:#ea580c1f}.followupStatus--in_progress{color:#1d4ed8;background:#2563eb1f}.followupRemarks{line-clamp:3;-webkit-line-clamp:3;color:var(--text-secondary);word-break:break-word;-webkit-box-orient:vertical;line-height:1.45;display:-webkit-box;overflow:hidden}.followupRemarksCell{width:20rem;min-width:14rem;max-width:22rem}.followupRemarksCell .followupRemarks{line-clamp:unset;-webkit-box-orient:initial;-webkit-line-clamp:unset;white-space:normal;overflow-wrap:anywhere;display:block;overflow:visible}.followupTable .dynamicFieldCol,.customersTable .dynamicFieldCol,.visitsTable .dynamicFieldCol{white-space:normal;word-break:break-word;overflow-wrap:anywhere;vertical-align:top;min-width:10rem;max-width:12rem}.followupActions,.followupEditActions{flex-wrap:wrap;align-items:stretch;gap:.3rem;display:flex}.followupActions button,.followupEditActions button{flex:none;min-width:0;padding:.32rem .55rem;font-size:.72rem;line-height:1.15}.followupEditRow td{background:linear-gradient(#0f3d3905,#0f3d390a);padding:.6rem .4rem .65rem}.followupEditCard{border-radius:calc(var(--radius-md) - 2px);background:#fffc;border:1px solid #0f3d391f;padding:.6rem}.followupEditHeader{justify-content:space-between;align-items:flex-start;gap:.55rem;margin-bottom:.5rem;display:flex}.followupEditHeader strong{font-size:.85rem}.followupEditHeader .muted{margin-top:.1rem;font-size:.72rem}.followupEditGrid{grid-template-columns:repeat(3,max-content);justify-content:flex-start;align-items:end;gap:.3rem .4rem;display:grid}.followupEditGrid label{max-width:8rem;font-size:.72rem;font-weight:500}.followupEditGrid label:last-of-type{grid-column:1/-1;max-width:none}.followupEditGrid input,.followupEditGrid select{width:7.5rem;max-width:7.5rem;min-height:1.8rem;padding:.28rem .35rem;font-size:.76rem}.followupEditGrid textarea{resize:vertical;width:min(100%,18rem);max-width:18rem;min-height:3.2rem;padding:.28rem .35rem;font-size:.76rem}.followupEditActions{justify-content:flex-start;gap:.3rem;margin-top:.5rem}.meetingEditGrid{row-gap:.5rem}.meetingResponseLabel{grid-column:1/-1!important;max-width:none!important}.meetingEditGrid .meetingResponseLabel textarea{width:min(100%,38rem);max-width:38rem;min-height:4.5rem}.customersTableWrap{border-radius:var(--radius-md);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm);overscroll-behavior-x:contain;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;max-width:100%;max-height:min(68vh,560px);overflow:auto}.customersTable{border-collapse:collapse;table-layout:auto;width:max-content;min-width:860px}.customersTable th,.customersTable td{border-bottom:1px solid var(--border);vertical-align:top;padding:.65rem .55rem}.customersTable th{background:var(--accent-subtle)}.customersTable tbody tr:hover{background:#0f3d3908}.customersTable tbody tr:last-child td{border-bottom:none}.customersTable td{overflow-wrap:anywhere}.visitsTable{border-collapse:collapse;table-layout:auto;width:max-content;min-width:980px}.visitsTable th,.visitsTable td{vertical-align:top}.visitsTable td{overflow-wrap:anywhere}.visitCustomerCell{align-items:center;gap:.4rem;display:inline-flex}.visitHistoryToggle{padding:.2rem .35rem;line-height:1}.visitHistoryToggle.isOpen{background:var(--accent-subtle);border-color:var(--border-hover)}.visitHistoryExpandedRow>td{background:color-mix(in srgb, var(--panel2) 84%, white)}.visitHistoryMeta{color:var(--text-secondary);flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:.55rem;font-size:.74rem;display:flex}.visitHistoryMeta strong{color:var(--text)}.visitHistoryNestedWrap{width:100%;overflow-x:auto}.visitHistoryNestedTable{width:max-content;min-width:980px}.visitHistoryNotesCell{white-space:normal;word-break:break-word;overflow-wrap:anywhere;min-width:16rem;max-width:22rem;line-height:1.45}.customersNameCell{color:var(--text);font-size:.9rem;font-weight:600}.customersCompactCell,.customersSalesmanCell{color:var(--text-secondary);white-space:nowrap;font-size:.76rem}.customersTagsCell{color:var(--text-secondary);word-break:break-word;font-size:.76rem;line-height:1.4}.customerMetaPill,.customerTagChip,.customerEmptyChip{border:1px solid var(--border);background:var(--surface);min-height:1.55rem;color:var(--text-secondary);letter-spacing:.01em;border-radius:999px;justify-content:center;align-items:center;padding:.16rem .48rem;font-size:.7rem;font-weight:600;display:inline-flex}.customerMetaPill--subtle{background:var(--accent-subtle)}.customerMetaPill--mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.67rem}.customerTagChips{flex-wrap:wrap;gap:.22rem;display:flex}.customerTagChip{background:#0f3d390f}.customerEmptyChip{background:0 0;border-style:dashed}.customerActions{grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;align-items:stretch;gap:.32rem;display:grid}.customerActionBtn{text-align:center;white-space:nowrap;width:100%;min-width:0;color:var(--text);border-color:var(--border);background:var(--surface);box-shadow:none;border-radius:999px;justify-content:center;align-items:center;padding:.42rem .5rem;font-size:.71rem;line-height:1.15;text-decoration:none;display:inline-flex}a.customerActionBtn:hover,button.customerActionBtn:hover{color:var(--text);background:var(--accent-subtle);border-color:var(--border-hover);text-decoration:none}a.customerActionBtn:focus-visible,button.customerActionBtn:focus-visible{box-shadow:var(--focus-ring);outline:none}.settingsDateCell{white-space:nowrap;font-size:.76rem}.settingsActionsCell{text-align:right;width:5.5rem}.roleBadge{background:var(--accent-subtle);color:var(--text-secondary);border:1px solid var(--border);letter-spacing:.01em;border-radius:999px;padding:.22rem .55rem;font-size:.7rem;font-weight:500;display:inline-block}.idCell{cursor:help;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.74rem}button.secondary.danger{color:#b91c1c;border-color:#dc262659}button.secondary.danger:hover{background:#dc26260f;border-color:#dc262680}.panel{gap:1rem;display:grid}.panel h2{letter-spacing:-.035em;color:var(--text);font-size:1.05rem;font-weight:600;line-height:1.3}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.grid.single{grid-template-columns:1fr;gap:.75rem;max-width:760px;display:grid}.card{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);gap:.65rem;padding:1.1rem 1.2rem;display:grid}.card h3{letter-spacing:-.02em;color:var(--text);font-size:.88rem;font-weight:600}.dashboardMetricGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;display:grid}.dashboardMetricTile{border:1px solid var(--border);border-radius:var(--radius-md);min-height:94px;padding:.7rem .75rem}.dashboardMetricTile.softBlue{background:#eef6ff}.dashboardMetricTile.softPeach{background:#fff4ec}.dashboardMetricTile.softMint{background:#ecfbf3}.dashboardMetricTile.softLavender{background:#f2efff}.dashboardMetricTile.softSky{background:#eef9ff}.dashboardMetricTile.softRose{background:#fff1f5}.dashboardMetricLabel{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.04em;margin:0;font-size:.72rem;font-weight:600}.dashboardMetricValue{color:var(--text);margin:.2rem 0 .15rem;font-size:1.22rem;font-weight:700;line-height:1.1}.dashboardMetricDesc{color:var(--text-secondary);margin:0;font-size:.75rem;line-height:1.35}.muted{color:var(--text-muted);font-size:.8rem;font-weight:400;line-height:1.45}.rowBetween{flex-wrap:wrap;justify-content:space-between;gap:.75rem;display:flex}.inlineFilters,.inlineActions{flex-wrap:wrap;align-items:end;gap:.5rem;display:flex}.myCustomersHeader{align-items:center;gap:.75rem;margin-bottom:.75rem;display:flex}.myCustomersSearchWrap{width:36%;min-width:240px;max-width:380px;margin-left:auto}.myCustomersSearchInput{border:1px solid #8a8f98;width:100%}.formGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;display:grid}.statusTag{color:var(--text-muted);letter-spacing:.01em;background:0 0;border:none;border-radius:0;align-items:center;gap:.4rem;padding:0;font-size:.72rem;font-weight:500;display:inline-flex}.statusTag:not(.queueTag):before{content:"";background:var(--text-muted);border-radius:50%;flex-shrink:0;width:6px;height:6px}.statusTag.ok{color:var(--text-secondary)}.statusTag.ok:before{background:#16a34a;box-shadow:0 0 0 2px #16a34a33}.statusTag.warning{color:var(--text-secondary)}.statusTag.warning:before{background:#ea580c;box-shadow:0 0 0 2px #ea580c2e}.statusTag.queueTag:before{display:none}.statusTag.queueTag{font-variant-numeric:tabular-nums;border-radius:var(--radius-sm);background:var(--accent-subtle);color:var(--text-secondary);padding:.2rem .5rem}.list,.miniList{margin:0;padding:0;list-style:none}.list li{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm);justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.4rem;padding:.65rem .85rem;display:flex}.miniList li{color:var(--text-secondary);border-bottom:1px solid var(--border);padding:.35rem 0}.scrollArea{overscroll-behavior-x:contain;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;max-height:min(68vh,560px);overflow:auto}.scrollAreaSettings,.overdueTableWrap,.meetingResponsesTableWrap{overflow-x:auto}.overdueTable,.meetingResponsesTable{border-collapse:collapse;table-layout:auto;width:max-content;min-width:1100px}.overdueTable th,.overdueTable td,.meetingResponsesTable th,.meetingResponsesTable td{border-bottom:1px solid var(--border);vertical-align:top;padding:.6rem .65rem}.overdueCompactCell,.meetingCompactCell{white-space:nowrap}.overdueLongCell,.meetingLongCell{white-space:normal;word-break:break-word;overflow-wrap:anywhere;min-width:220px;max-width:28rem}.overdueTable .dynamicFieldCol,.meetingResponsesTable .dynamicFieldCol{white-space:nowrap;text-overflow:ellipsis;min-width:9rem;max-width:12rem;overflow:hidden}.overdueTable th,.meetingResponsesTable th{white-space:nowrap;text-overflow:ellipsis;max-width:12rem;overflow:hidden}.overdueTable th.overdueLongCell,.meetingResponsesTable th.meetingLongCell{max-width:20rem}table{border-collapse:collapse;width:100%;min-width:620px}th,td{border-bottom:1px solid var(--border);text-align:left;vertical-align:top;padding:.5rem .4rem;font-size:.8rem}th{color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;background:var(--accent-subtle);font-size:.7rem;font-weight:600}.scrollArea thead th,.settingsTable thead th,.followupTable thead th,.customersTable thead th,.overdueTable thead th,.meetingResponsesTable thead th{z-index:2;background:var(--accent-subtle);box-shadow:inset 0 -1px 0 var(--border);position:sticky;top:0}a{color:var(--text-secondary);text-underline-offset:3px;text-decoration:none;transition:color .15s}a:hover{color:var(--text);text-decoration:underline}.contentArea a:not([class]),.panel a:not([class]){text-underline-offset:3px;text-decoration:underline}.photoPreview{border-radius:var(--radius-md);border:1px solid var(--border);width:min(280px,100%)}.visitPhotoModalOverlay{z-index:500;box-sizing:border-box;background:#0f172ab8;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.visitPhotoModal{background:var(--surface);border-radius:var(--radius-lg);border:1px solid var(--border);flex-direction:column;gap:.75rem;max-width:min(960px,100%);max-height:min(92vh,100%);padding:1rem 1.1rem;display:flex;box-shadow:0 24px 48px #0003}.visitPhotoModalHeader{align-items:flex-start;gap:.75rem}.visitPhotoModalCaption{color:var(--text);flex:1;min-width:0;margin:0;font-size:.88rem;font-weight:600;line-height:1.35}.visitPhotoModalImg{object-fit:contain;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--accent-subtle);width:auto;max-width:100%;height:auto;max-height:min(72vh,720px);margin:0 auto;display:block}.visit-session-banner{border-radius:var(--radius-lg);border:1px solid var(--border);background:linear-gradient(#f8fafc 0%,#f2f6fb 100%);grid-column:1/-1;margin-bottom:.75rem;padding:.9rem 1rem}.visit-session-banner p{margin:0}.visitSessionMeta{gap:.3rem;display:grid}.visitSessionStat{color:var(--text-secondary);font-size:.78rem}.visitSessionActions{margin-top:.6rem}.visitFormCard{gap:.85rem}.visitFormHeader{justify-content:space-between;align-items:center;display:flex}.visitStepIntro{border:1px solid var(--border);border-radius:var(--radius-md);background:#fafcff;margin:0;padding:.75rem .85rem}.visitLockHint{margin:-.2rem 0 0}.visitStagePanel{border:1px solid var(--border);border-radius:var(--radius-md);background:#fcfdff;padding:.8rem}.visitStageMain{grid-column:1/-1;margin-bottom:-.1rem}.visitStartActions{margin-top:-.2rem}.visit-camera-block{border:1px solid var(--border);border-radius:var(--radius-lg);background:linear-gradient(#f8fafc 0%,#f2f7ff 100%);grid-column:1/-1;padding:.95rem}.visit-camera-title{color:#1e3a5f;margin:0 0 .25rem;font-size:.92rem}.visitCameraHeader{margin-bottom:.5rem}.visitCameraHeader .muted{margin:0}.visit-camera-warn{color:#b45309;margin:.35rem 0 .5rem;font-weight:500}.visit-camera-video{object-fit:cover;background:#0f172a;border-radius:10px;width:100%;max-height:min(360px,50vh);margin-bottom:.65rem}.visit-camera-actions{margin-top:.25rem}.visit-camera-primary{min-width:200px;padding:.6rem 1.25rem;font-weight:600}.visit-camera-capture-wrap{flex-direction:column;align-items:stretch;gap:.5rem;margin-top:.5rem;display:flex}.capture-photo-btn{border-radius:var(--radius-lg);background:var(--accent);border:1px solid var(--accent);color:#fafafa;width:100%;max-width:420px;box-shadow:none;padding:.85rem 1.5rem;font-size:1.02rem;font-weight:600}.capture-photo-btn:hover{background:var(--accent-hover);border-color:var(--accent-hover);filter:none}.capture-hint{margin:0;font-size:.8rem}.dynamic-fields-section{border:1px solid var(--border);border-radius:var(--radius-md);background:#f8fafc;grid-column:1/-1;padding:.8rem}.visitDynamicHeading{margin:0 0 .5rem}.dynamic-fields-grid,.dynamic-fields-admin-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.dynamic-fields-admin-form{margin-bottom:.7rem}.visit-submit-actions{width:100%}.visit-submit-btn{min-width:220px}.visitCameraPreviewWrap{border:1px solid var(--border);border-radius:var(--radius-md);background:#fff;grid-column:1/-1;padding:.65rem}.dynamicFieldLine{color:var(--text-secondary);word-break:break-word;font-size:.74rem;line-height:1.35}.dealer-map-wrap{flex-direction:column;gap:.65rem;min-height:min(70vh,620px);display:flex}.dealer-map{border-radius:var(--radius-lg);border:1px solid var(--border);z-index:0;width:100%;min-height:420px;box-shadow:var(--shadow-sm);flex:1;overflow:hidden}.mapColorKey{color:#475569;flex-wrap:wrap;gap:.5rem 1rem;margin-bottom:.25rem;font-size:.78rem;display:flex}.mapColorKeyItem{align-items:center;gap:.35rem;display:inline-flex}.mapColorSwatch{border:1px solid #0f172a1f;border-radius:50%;flex-shrink:0;width:10px;height:10px}.map-legend{color:#475569;flex-wrap:wrap;gap:1rem;font-size:.78rem;display:flex}.map-legend span{align-items:center;gap:.35rem;display:inline-flex}.legend-pin,.legend-dot{border-radius:50%;width:10px;height:10px;display:inline-block}.legend-pin.dealer{background:#2563eb;border-radius:2px;width:8px;height:12px}.legend-dot.live{background:#ef4444;border:2px solid #fff;box-shadow:0 0 0 1px #fecaca}.legend-dot.visit{background:#16a34a;border:2px solid #fff;box-shadow:0 0 0 1px #bbf7d0}.visit-marker-icon{background:0 0!important;border:none!important}.visit-marker-dot{background:#16a34a;border:2px solid #fff;border-radius:50%;width:12px;height:12px;display:block;box-shadow:0 1px 4px #00000059}@media (width<=900px){.menuToggle{display:inline-flex}.appShell{flex-direction:row;position:relative}.appShell--navOpen .sidebarBackdrop{z-index:190;cursor:pointer;background:#0f172a73;border:none;margin:0;padding:0;display:block;position:fixed;inset:0}.sidebar{width:min(288px,88vw);height:100dvh;max-height:100vh;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);z-index:200;box-shadow:none;border-right:1px solid var(--border);flex-flow:column;align-items:stretch;transition:transform .22s;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.sidebar.sidebar--open{transform:translate(0);box-shadow:8px 0 32px #0f172a26}.sidebarBrand{flex-shrink:0}.sidebarNav{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;flex:1;padding:.5rem 0;display:block;overflow-y:auto}.sidebarFooter{padding:.65rem 1rem calc(.75rem + env(safe-area-inset-bottom,0px))}.navSectionLabel{width:auto}.navItem{border-radius:var(--radius-md);border-left:none;width:100%;padding:.55rem .85rem}.navItem.active{background:var(--accent-subtle);color:var(--text)}.mainArea{width:100%;min-width:0;padding-bottom:env(safe-area-inset-bottom,0px);flex:1}.topBar{border-left:none;border-right:none;border-radius:0;flex-direction:column;align-items:stretch;gap:.65rem;padding:.65rem .75rem}.topBarLead{width:100%}.topControls{justify-content:flex-start;align-items:center;gap:.35rem .5rem;width:100%}.topUserEmail{white-space:normal;word-break:break-all;flex:100%;order:-1;max-width:100%;font-size:.76rem;line-height:1.35}.statusTag{font-size:.68rem}.statusTag.queueTag{padding:.18rem .45rem}.contentArea{padding:.65rem .75rem 1.25rem}.contentArea .panel{max-width:none}.dealer-map-wrap{min-height:min(52dvh,420px)}.dealer-map{border-radius:10px;min-height:240px}.list li{flex-direction:column;align-items:stretch;gap:.5rem}.list li button{align-self:flex-start}table{min-width:480px;font-size:.78rem}th,td{padding:.4rem .3rem}.capture-photo-btn{max-width:none}.dynamic-fields-grid,.dynamic-fields-admin-form{grid-template-columns:1fr}.dynamic-fields-section label input,.dynamic-fields-section label select,.dynamic-fields-section label textarea,.dynamic-fields-admin-form label input,.dynamic-fields-admin-form label select{width:100%}.visit-submit-actions{z-index:2;background:linear-gradient(to top, var(--surface), #ffffffeb);padding-top:.5rem;position:sticky;bottom:0}.visit-submit-btn{width:100%;min-height:46px}.visit-camera-primary{width:100%;min-width:0}.inlineActions{flex-direction:column;align-items:stretch}.inlineActions button,.inlineActions a{width:100%}.inlineFilters{align-items:flex-start}.inlineFilters label{flex:none;width:calc(50% - .25rem);min-width:0;max-width:calc(50% - .25rem)}.inlineFilters label input,.inlineFilters label select{box-sizing:border-box;width:100%;min-width:0;max-width:none}.followupTable{min-width:760px}.followupCustomerHead{flex-direction:column;align-items:flex-start;gap:.25rem}.followupActions,.followupEditActions{flex-direction:column;align-items:stretch}.followupActions button,.followupEditActions button{width:100%;min-width:0}.followupEditActions{flex-flow:wrap;justify-content:flex-start;align-items:center;gap:.45rem}.followupEditActions button{width:auto;min-width:5.25rem}.followupEditRow td{max-width:calc(100vw - 4rem);padding:.4rem .25rem .45rem}.followupEditCard{box-sizing:border-box;max-width:min(100vw - 4rem,28rem);padding:.5rem}.followupEditHeader{flex-direction:column;align-items:stretch;gap:.2rem;margin-bottom:.35rem}.followupEditHeader strong{font-size:.78rem}.followupEditHeader .muted{margin-top:0;font-size:.66rem}.followupEditGrid{grid-template-columns:1fr;justify-items:stretch;gap:.2rem .15rem}.followupEditGrid label{width:100%;max-width:none;font-size:.68rem;font-weight:500}.followupEditGrid label:last-of-type{grid-column:auto}.followupEditGrid input,.followupEditGrid select{width:100%;max-width:none;min-height:1.6rem;padding:.24rem .25rem;font-size:.7rem}.followupEditGrid textarea{width:100%;max-width:none;min-height:2.2rem;padding:.24rem .25rem;font-size:.7rem}.followupActions button,.followupEditActions button,.customerActionBtn{white-space:normal}.customersTable{min-width:720px}.visitsTable{min-width:860px}.visitHistoryMeta{font-size:.7rem}.visitHistoryNotesCell{min-width:12rem;max-width:16rem}.customerActions{grid-template-columns:1fr}.customerActionBtn{width:100%;min-width:0}.myCustomersSearchInput{min-width:0}.rowBetween,.myCustomersHeader{flex-direction:column;align-items:stretch}.myCustomersSearchWrap{width:100%;min-width:0;max-width:none;margin-left:0}.followupTableWrap,.customersTableWrap{margin-inline:0}.grid.two,.formGrid,.dashboardMetricGrid{grid-template-columns:1fr}}@media (width>=901px){.sidebar{z-index:1;align-self:flex-start;height:100vh;position:sticky;top:0}}
