/* V135: one presentation layer using the existing Kash component names and theme tokens. */
html[data-theme="light"] { --bg:#f4f6f4!important;--surface:#fff!important;--soft:#f0f4f1!important;--text:#19271f!important;--muted:#5c6d62!important;--green:#0c7445!important;--green2:#0c7445;--mint:#e6f4eb!important;--border:#dde5df!important;--line:#dde5df!important;--white:#fff!important;--danger:#b33535!important;--shadow:0 3px 12px #142a1d05!important;--shadow-sm:0 1px 4px #142a1d08!important; }
html[data-theme="dark"] { --bg:#0d1511!important;--surface:#151f19!important;--soft:#1b2820!important;--text:#eef4ef!important;--muted:#a4b4a9!important;--green:#48da88!important;--green2:#48da88;--mint:#1c3928!important;--border:#2b3b30!important;--line:#2b3b30!important;--white:#151f19!important;--danger:#ff9696!important;--shadow:0 3px 12px #0000000c!important;--shadow-sm:0 1px 4px #00000010!important; }
html:has(body.os-ui) { background:var(--bg)!important;scrollbar-gutter:stable; }
html[data-theme] body.os-ui { margin:0!important;padding:0!important;background:var(--bg)!important;color:var(--text)!important;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important; }
html[data-theme] body.os-ui *,html[data-theme] body.os-ui *::before,html[data-theme] body.os-ui *::after { box-sizing:border-box; }
html[data-theme] body.os-ui :is(button,input,select,textarea) { font-family:inherit!important;letter-spacing:0!important; }
html[data-theme] body.os-ui [hidden],html[data-theme] body.os-ui dialog:not([open]) { display:none!important; }
html[data-theme] body.os-ui :is(h1,h2,h3,h4,p) { color:inherit; }
html[data-theme] body.os-ui h1 { font-size:26px!important;line-height:1.2!important;letter-spacing:-.035em!important; }
html[data-theme] body.os-ui h2 { font-size:20px!important;line-height:1.25!important;letter-spacing:-.025em!important; }
html[data-theme] body.os-ui h3 { font-size:16px!important;line-height:1.35!important; }
html[data-theme] body.os-ui :is(.sub,.muted,.field-help) { color:var(--muted)!important;font-size:12px!important;line-height:1.5!important; }
html[data-theme] body.os-ui .eyebrow { color:var(--green)!important;font-size:10px!important;letter-spacing:.1em!important;line-height:1.4!important; }
html[data-theme] body.os-ui :is(button,a,input,select,textarea,summary,[tabindex="0"]):focus-visible { outline:3px solid var(--green)!important;outline-offset:3px!important;box-shadow:none!important; }
html[data-theme] body.os-ui button { cursor:pointer;touch-action:manipulation; }
html[data-theme] body.os-ui button:disabled { cursor:default;opacity:.55; }
html[data-theme] body.os-ui :is(button.primary,button.success,.primary,.success) { background:var(--green)!important;color:#fff!important;border:1px solid transparent!important;border-radius:10px!important;min-height:44px!important;padding:10px 16px!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important; }
html[data-theme="dark"] body.os-ui :is(button.primary,button.success,.primary,.success) { color:#102219!important; }
html[data-theme] body.os-ui :is(.ghost,.mini,.refresh,.route-link,.occ-outline,.occ-link,.occ-head-add,.job-actions button,.job-actions a,.today-actions button,.dialog-actions>button,.dialog-actions>a,.schedule-job-actions button,.schedule-job-actions a) { min-height:40px!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:8px 12px!important;background:var(--surface)!important;color:var(--text)!important;font-size:12px!important;font-weight:650!important;line-height:1.4!important;box-shadow:none!important;text-decoration:none!important;display:inline-flex;justify-content:center;align-items:center;gap:7px; }
html[data-theme] body.os-ui :is(.ghost,.mini,.refresh,.route-link,.occ-outline,.occ-link):hover { background:var(--soft)!important;border-color:var(--muted)!important; }
html[data-theme] body.os-ui :is(.danger-button,.danger-link,.history-delete-btn) { min-height:40px!important;color:var(--danger)!important;border:1px solid var(--line)!important;background:var(--surface)!important;border-radius:9px!important;padding:8px 12px!important;font-size:12px!important; }
html[data-theme] body.os-ui :is(.x,.dialog-x) { display:grid!important;place-items:center;flex:none!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;font-size:24px!important;line-height:1!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--soft)!important;color:var(--text)!important; }
html[data-theme] body.os-ui :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) { width:100%!important;min-width:0!important;min-height:44px!important;background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:10px 12px!important;font-size:14px!important;font-weight:400!important;box-shadow:none!important;line-height:1.4!important; }
html[data-theme] body.os-ui input::placeholder,html[data-theme] body.os-ui textarea::placeholder { color:var(--muted)!important;opacity:.8; }
html[data-theme] body.os-ui :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--green); }
html[data-theme] body.os-ui label { font-size:12px!important;font-weight:650!important;color:var(--text)!important;line-height:1.4!important;margin:0 0 12px!important; }
html[data-theme] body.os-ui label :is(input,select,textarea) { margin-top:6px; }
html[data-theme] body.os-ui :is(.panel,.stat,.occ-card,.schedule-board,.schedule-side-card,.schedule-kpi,.finance-stat,.growth-hero,.login-card,.detail,.referral-card,.service-request-card,.feedback-card,.portal-inbox-card) { border:1px solid var(--line)!important;border-radius:14px!important;background:var(--surface)!important;color:var(--text)!important;box-shadow:var(--shadow)!important; }
html[data-theme] body.os-ui :is(.panel-head,.schedule-board-head) { padding:16px 18px!important;border-bottom:1px solid var(--line)!important;align-items:center!important;gap:12px; }
html[data-theme] body.os-ui :is(.panel-head h2,.occ-card-head h2,.schedule-board-head h3) { font-size:15px!important;margin:0!important; }
html[data-theme] body.os-ui :is(.panel-head span,.schedule-board-head span) { font-size:12px!important;color:var(--muted)!important;line-height:1.45!important; }
html[data-theme] body.os-ui :is(.stats,.finance-stats,.schedule-overview,.growth-kpis) { display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 16px!important; }
html[data-theme] body.os-ui :is(.stat,.finance-stat,.schedule-kpi) { padding:16px!important;min-height:100px!important; }
html[data-theme] body.os-ui :is(.stat,.finance-stat,.schedule-kpi)>span { color:var(--muted)!important;font-size:11px!important;font-weight:650!important;text-transform:none!important;letter-spacing:0!important; }
html[data-theme] body.os-ui :is(.stat,.finance-stat,.schedule-kpi)>strong { font-size:25px!important;line-height:1.2!important;color:var(--text)!important;margin:7px 0!important;letter-spacing:-.03em; }
html[data-theme] body.os-ui :is(.stat,.finance-stat,.schedule-kpi)>small { font-size:11px!important;line-height:1.4!important;color:var(--muted)!important; }
html[data-theme] body.os-ui :is(.empty,.today-empty,.occ-empty-v107,.my-lawn-preview-loading) { padding:28px 18px!important;min-height:100px!important;font-size:13px!important;line-height:1.6!important;color:var(--muted)!important;text-align:center; }
html[data-theme] body.os-ui .empty strong { color:var(--text)!important; }
html[data-theme] body.os-ui :is(.status-pill,.count,.badge,.referral-health>div,.referral-health>span) { font-size:11px!important;border-radius:7px!important;line-height:1.5!important;background:var(--soft)!important;color:var(--text)!important; }
html[data-theme] body.os-ui .status-pill[data-status="New"],html[data-theme] body.os-ui .status-pill[data-status="Accepted"],html[data-theme] body.os-ui .status-pill[data-status="Active"] { background:var(--mint)!important;color:var(--green)!important; }
html[data-theme] body.os-ui :is(.toolbar,.schedule-topbar,.map-toolbar) { display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;margin:0 0 16px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important; }
html[data-theme] body.os-ui .toolbar>input { flex:1 1 240px!important; }
html[data-theme] body.os-ui .toolbar>select { flex:0 1 230px!important;width:auto!important; }
html[data-theme] body.os-ui .toolbar>button { flex:0 0 auto; }
html[data-theme] body.os-ui :is(.page-intro,.schedule-page-head,.finance-hero,.growth-hero) { margin:0 0 18px!important;gap:16px!important;align-items:center!important; }
html[data-theme] body.os-ui :is(.page-intro,.finance-hero,.growth-hero) :is(h2) { font-size:22px!important; }
html[data-theme] body.os-ui :is(.page-intro,.finance-hero,.growth-hero)>div>span { font-size:12px!important;color:var(--muted)!important;line-height:1.5!important; }
html[data-theme] body.os-ui :is(.growth-grid-main,.two-col,.finance-grid,.schedule-desktop-grid) { gap:16px!important;min-width:0; }
html[data-theme] body.os-ui :is(.view,.view>section,.view>div,.panel>div,.form-grid>*,.finance-grid>*,.growth-grid-main>*,.two-col>*) { min-width:0; }
html[data-theme] body.os-ui :is(.lead,.customer-row,.estimate-row,.zone-row,.history-visit,.finance-transaction-row) { background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important;padding:15px 18px!important;gap:12px!important; }
html[data-theme] body.os-ui :is(.lead,.customer-row,.estimate-row):hover { background:var(--soft)!important; }
html[data-theme] body.os-ui :is(.lead,.customer-row,.estimate-row) strong { color:var(--text)!important;font-size:13px!important; }
html[data-theme] body.os-ui :is(.book-row,.history-row,.compact,.finance-category-row,.finance-recurring-row) { border-color:var(--line)!important;font-size:12px!important; }
html[data-theme] body.os-ui :is(.book-row,.finance-category-row,.finance-recurring-row) :is(strong,small,span) { font-size:12px!important;line-height:1.5!important; }
html[data-theme] body.os-ui :is(.customer-profile-summary,.share-preview,.history-box,.estimate-items-box,.estimate-price-check-box,.my-lawn-admin-card,.owner-push-status-card,.owner-push-ios-help,.owner-notification-row,.owner-notification-footer) { border-color:var(--line)!important;border-radius:12px!important;background:var(--soft)!important;color:var(--text)!important;padding:14px!important; }
html[data-theme] body.os-ui :is(.customer-profile-summary,.share-preview,.history-box,.estimate-items-box,.estimate-price-check-box) { margin:0 0 16px!important; }
html[data-theme] body.os-ui .estimate-item { grid-template-columns:minmax(100px,1fr) minmax(100px,1.3fr) 65px 90px 40px!important;gap:8px!important; }
html[data-theme] body.os-ui .estimate-item input { font-size:13px!important; }
html[data-theme] body.os-ui .estimate-item-remove { min-width:40px!important;min-height:44px!important;background:var(--surface)!important;color:var(--danger)!important;border:1px solid var(--line)!important;border-radius:8px!important; }
html[data-theme] body.os-ui :is(.estimate-items-head,.estimate-items-head>div) { min-width:0; }
html[data-theme] body.os-ui .estimate-items-head { gap:12px!important;align-items:flex-start!important; }
html[data-theme] body.os-ui :is(.estimate-items-head span,.price-check-inputs label,.owner-notification-row small,.owner-push-status-card p,.owner-notification-footer span) { font-size:12px!important;color:var(--muted)!important;line-height:1.5!important; }
html[data-theme] body.os-ui :is(.estimate-price-check,.estimate-share-preview) { background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important;font-size:12px!important; }
html[data-theme] body.os-ui .owner-notification-row { margin-bottom:0!important;border-radius:0!important;border-width:0 0 1px!important; }
html[data-theme] body.os-ui .owner-notification-row>input { width:24px!important;height:24px!important;flex:none; }
html[data-theme] body.os-ui .owner-notification-footer { display:flex;flex-wrap:wrap;gap:10px; }
html[data-theme] body.os-ui .form-grid { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 16px!important; }
html[data-theme] body.os-ui .form-grid :is(.wide-field,.full) { grid-column:1/-1!important; }
html[data-theme] body.os-ui .os-fieldset { border:0;padding:0;margin:0 0 12px;min-width:0; }
html[data-theme] body.os-ui .os-fieldset legend { width:100%;padding:0 0 10px;margin-bottom:12px;border-bottom:1px solid var(--line);font-size:13px;font-weight:750;color:var(--text); }
html[data-theme] body.os-ui :is(.os-customer-activity,.os-home-details) { border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 16px;margin-bottom:16px; }
html[data-theme] body.os-ui :is(.os-customer-activity,.os-home-details)>summary { cursor:pointer;min-height:48px;padding:13px 0;font-size:13px;font-weight:700; }
html[data-theme] body.os-ui :is(.os-customer-activity,.os-home-details)>summary span { color:var(--muted);font-size:11px;font-weight:400;margin-left:8px; }
html[data-theme] body.os-ui :is(.dialog-actions,.service-request-actions,.portal-actions,.history-pay-actions,.finance-filters,.map-actions) { display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0; }
html[data-theme] body.os-ui .finance-filters { flex:1 1 400px;justify-content:flex-end; }
html[data-theme] body.os-ui .finance-filters>* { flex:1 1 130px;max-width:250px; }
html[data-theme] body.os-ui .finance-hero-actions { display:flex;gap:8px;flex-wrap:wrap; }
html[data-theme] body.os-ui .finance-transactions-head { flex-wrap:wrap; }
html[data-theme] body.os-ui :is(.finance-account-card,.finance-transaction) { background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important; }
html[data-theme] body.os-ui :is(.finance-account-main,.finance-transaction-main) { min-width:0;overflow-wrap:anywhere; }
html[data-theme] body.os-ui .finance-account-card { grid-template-columns:40px minmax(0,1fr) 120px 110px!important; }
html[data-theme] body.os-ui :is(.finance-account-card strong,.finance-transaction strong,.finance-cash-row strong) { color:var(--text)!important;font-size:13px!important; }
html[data-theme] body.os-ui .finance-account-card select { font-size:12px!important; }
html[data-theme] body.os-ui .website-reviews-control { display:flex!important;gap:20px;align-items:center;justify-content:space-between;padding:18px!important; }
html[data-theme] body.os-ui .website-reviews-copy { flex:1;min-width:0; }
html[data-theme] body.os-ui .website-reviews-copy p { margin-bottom:0;font-size:12px!important;color:var(--muted)!important; }
html[data-theme] body.os-ui .review-toggle { flex:none!important;width:auto!important;min-height:44px;display:flex;align-items:center;margin:0!important; }
html[data-theme] body.os-ui .review-toggle-track { background:var(--line)!important; }
html[data-theme] body.os-ui .review-toggle input:checked+.review-toggle-track { background:var(--green)!important; }
html[data-theme] body.os-ui .review-toggle input:focus-visible+.review-toggle-track { outline:3px solid var(--green);outline-offset:3px; }
html[data-theme] body.os-ui .map-layout { grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)!important;gap:16px!important; }
html[data-theme] body.os-ui :is(.big-map,.customer-map) { height:clamp(380px,65vh,700px)!important;background:var(--soft)!important; }
html[data-theme] body.os-ui .map-hint { max-width:calc(100% - 28px);background:var(--surface)!important;color:var(--muted)!important;border-color:var(--line)!important; }
html[data-theme] body.os-ui .os-map-unavailable { display:flex;align-items:center;justify-content:center;padding:30px;text-align:center; }
html[data-theme] body.os-ui .os-map-unavailable p { max-width:300px;font-size:13px;color:var(--muted); }
html[data-theme] body.os-ui .growth-hero-number strong { font-size:28px!important; }
html[data-theme] body.os-ui :is(.forecast-grid,.premium-forecast) { gap:12px!important; }
html[data-theme] body.os-ui :is(.premium-forecast-card,.growth-funnel-stage,.growth-action-card) { background:var(--soft)!important;color:var(--text)!important;border-color:var(--line)!important;border-radius:12px!important; }
html[data-theme] body.os-ui .growth-bars { padding:18px!important; }
html[data-theme] body.os-ui :is(.growth-bar-label,.growth-bar-value,.growth-action-card small) { font-size:11px!important;color:var(--muted)!important; }
html[data-theme] body.os-ui .schedule-page-head>div:first-child { display:none!important; }
html[data-theme] body.os-ui .schedule-page-head { justify-content:flex-end!important; }
html[data-theme] body.os-ui .schedule-topbar { padding:0!important; }
html[data-theme] body.os-ui :is(.schedule-range-tabs,.schedule-view-tabs,.segmented) { display:flex!important;gap:3px!important;background:var(--soft)!important;padding:4px!important;border:1px solid var(--line)!important;border-radius:10px!important; }
html[data-theme] body.os-ui :is(.range,.schedule-mode,.segmented button) { min-height:40px!important;border:0!important;border-radius:7px!important;padding:8px 12px!important;background:transparent!important;color:var(--muted)!important;font-size:12px!important;font-weight:650!important; }
html[data-theme] body.os-ui :is(.range.active,.schedule-mode.active,.segmented button.active,.segmented button[aria-pressed="true"]) { background:var(--surface)!important;color:var(--green)!important;box-shadow:var(--shadow-sm)!important; }
html[data-theme] body.os-ui .schedule-range-caption { width:100%;font-size:12px;color:var(--muted); }
html[data-theme] body.os-ui .schedule-side-column { min-width:0; }
html[data-theme] body.os-ui :is(.schedule-day-head,.schedule-date-block,.range-cal-day,.range-cal-date,.schedule-legend,.mini-calendar) { color:var(--text)!important;background:var(--surface)!important;border-color:var(--line)!important; }
html[data-theme] body.os-ui :is(.schedule-job,.schedule-visit-card,.schedule-stop-card) { background:var(--surface)!important;border-color:var(--line)!important;border-radius:10px!important; }
html[data-theme] body.os-ui :is(.range-cal-day,.cal-day) { min-width:0!important; }
html[data-theme] body.os-ui :is(.range-cal-job,.cal-job) { min-height:44px!important;white-space:normal!important;overflow-wrap:anywhere;background:var(--mint)!important;color:var(--text)!important;border:1px solid var(--line)!important;font-size:11px!important; }
html[data-theme] body.os-ui .range-cal-job.projected { opacity:1!important;background:var(--soft)!important;color:var(--muted)!important;border-style:dashed!important; }

/* App shell: fixed navigation on desktop, compact sticky header and safe-area navigation on phones. */
html[data-theme] body.os-ui .topbar { position:fixed!important;inset:0 auto 0 0!important;width:228px!important;height:100dvh!important;min-height:0!important;padding:18px 12px!important;display:flex!important;flex-direction:column!important;gap:0!important;background:var(--surface)!important;border-right:1px solid var(--line)!important;box-shadow:none!important;z-index:100!important; }
html[data-theme] body.os-ui .brand { padding:0 8px 18px!important;margin:0!important;border-bottom:1px solid var(--line)!important;display:flex!important;align-items:center;gap:10px;flex:none; }
html[data-theme] body.os-ui .brand .logo { width:36px!important;height:36px!important;min-width:36px!important;border-radius:10px!important;background:var(--green)!important;color:white!important;box-shadow:none!important;font-size:18px!important; }
html[data-theme="dark"] body.os-ui .brand .logo { color:#102219!important; }
html[data-theme] body.os-ui .brand strong { color:var(--text)!important;font-size:14px!important;line-height:1.3!important;letter-spacing:-.015em!important; }
html[data-theme] body.os-ui .brand span { color:var(--muted)!important;font-size:10px!important;letter-spacing:.04em!important; }
html[data-theme] body.os-ui .tabs { position:static!important;inset:auto!important;display:flex!important;flex-direction:column!important;width:100%!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;margin:10px 0!important;padding:0 2px!important;gap:2px!important;border:0!important;background:transparent!important;border-radius:0!important;scrollbar-width:thin; }
html[data-theme] body.os-ui .os-nav-label { font-size:9px;font-weight:750;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;padding:14px 10px 6px; }
html[data-theme] body.os-ui .tabs .tab { position:relative!important;display:flex!important;align-items:center;gap:10px!important;flex:none!important;min-height:38px!important;padding:8px 10px!important;font-size:12px!important;line-height:1.3!important;font-weight:600!important;border:0!important;background:transparent!important;color:var(--muted)!important;border-radius:8px!important;text-align:left!important;white-space:normal!important; }
html[data-theme] body.os-ui .tabs .tab::before { content:none!important; }
html[data-theme] body.os-ui .tabs .tab.active { color:var(--green)!important;background:var(--mint)!important;font-weight:750!important; }
html[data-theme] body.os-ui .tabs .tab:hover { background:var(--soft)!important;color:var(--text)!important; }
html[data-theme] body.os-ui .os-nav-icon { display:inline-flex;width:18px;height:18px;flex:none; }
html[data-theme] body.os-ui :is(.os-nav-icon,.owner-bell,.os-settings-button,.mobile-more-item-icon)>svg { width:18px;height:18px;flex:none; }
html[data-theme] body.os-ui .top-actions { position:static!important;inset:auto!important;width:100%!important;display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important;padding:12px 0 0!important;margin:0!important;border-top:1px solid var(--line)!important;flex:none; }
html[data-theme] body.os-ui .top-actions button { min-height:38px!important;font-size:11px!important;padding:8px 6px!important;width:auto!important; }
html[data-theme] body.os-ui .owner-notification-button { display:flex!important;gap:6px!important;align-items:center;justify-content:center; }
html[data-theme] body.os-ui .owner-notification-button-label { display:inline!important; }
html[data-theme] body.os-ui .owner-bell { display:inline-flex; }
html[data-theme] body.os-ui #appView.app { margin:0 0 0 228px!important;padding:24px!important;max-width:none!important;min-height:100dvh!important;width:calc(100% - 228px)!important;background:var(--bg)!important;color:var(--text)!important; }
html[data-theme] body.os-ui .hero { display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;min-height:0!important;margin:0 0 20px!important;padding:0!important; }
html[data-theme] body.os-ui .hero h1 { font-size:25px!important;margin:0 0 4px!important;color:var(--text)!important; }
html[data-theme] body.os-ui .hero .eyebrow { display:none!important; }
html[data-theme] body.os-ui .hero #pageSub { color:var(--muted)!important;font-size:12px!important;line-height:1.5!important; }
html[data-theme] body.os-ui .login-wrap { min-height:100dvh!important;margin:0!important;padding:30px!important;display:grid;place-items:center; }
html[data-theme] body.os-ui:not(.os-authenticated) .topbar { display:none!important; }
html[data-theme] body.os-ui .login-card { width:min(420px,100%);padding:26px!important; }
html[data-theme] body.os-ui .login-card h1 { margin:18px 0 10px; }
html[data-theme] body.os-ui .login-card>p { color:var(--muted)!important;font-size:13px!important; }
html[data-theme] body.os-ui .mobile-app-nav { display:none!important; }
html[data-theme] body.os-ui .os-connection-status { display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);background:var(--soft);padding:12px 16px;margin-bottom:16px;border-radius:10px;font-size:13px; }
html[data-theme] body.os-ui .os-connection-status[data-state="error"] { border-color:var(--danger); }
html[data-theme] body.os-ui #customerPushState { position:relative!important;z-index:2;margin:12px 24px 12px 252px;background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:10px;font-size:12px; }

/* Home: a single source of numbers, with Today and attention prioritized. */
html[data-theme] body.os-ui #dashboardView>section:not(#ownerCommandCenter) { display:none!important; }
html[data-theme] body.os-ui #ownerCommandCenter { display:flex!important;flex-direction:column!important;gap:16px!important; }
html[data-theme] body.os-ui #ownerCommandCenter>* { margin:0!important;min-width:0; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-v108-head { display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between;gap:14px!important;padding:0!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-v108-greeting>h2 { font-size:23px!important;color:var(--text)!important;margin:0 0 5px!important; }
html[data-theme] body.os-ui #occDateLine { font-size:12px!important;color:var(--muted)!important;margin:0!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-v108-greeting>span { display:none!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-v108-head-tools { display:flex!important;align-items:center!important;justify-content:flex-end;flex:1;gap:10px!important; }
html[data-theme] body.os-ui #ownerCommandCenter :is(.occ-avatar,.occ-bell) { display:none!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-weather-card { min-width:0!important;width:auto!important;height:auto!important;padding:0 10px!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:8px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-weather-card i { font-size:23px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-weather-card :is(span,small) { font-size:10px!important;color:var(--muted)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-weather-card strong { color:var(--text)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-search { display:flex!important;position:relative!important;align-items:center!important;flex:1;max-width:330px;min-width:160px!important;gap:8px!important;padding:0 10px!important;height:44px!important;margin:0!important;border:1px solid var(--line)!important;border-radius:9px!important;background:var(--surface)!important; }
html[data-theme] body.os-ui #ownerCommandCenter #occSearchInput { border:0!important;padding:8px 0!important;margin:0!important;background:transparent!important;min-height:40px!important;font-size:12px!important;border-radius:0!important; }
html[data-theme] body.os-ui .occ-search kbd { flex:none;font-size:9px;background:var(--soft)!important;color:var(--muted)!important;border-radius:4px;padding:2px 4px; }
html[data-theme] body.os-ui .occ-search-results { position:absolute!important;top:calc(100% + 5px)!important;left:0!important;right:0!important;z-index:80!important;max-height:350px;overflow:auto!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:0 12px 35px #0002!important; }
html[data-theme] body.os-ui .occ-search-result { width:100%;display:block;min-height:48px!important;background:var(--surface)!important;color:var(--text)!important;border:0;border-bottom:1px solid var(--line);padding:12px!important;text-align:left; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-v107-top { display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr)!important;gap:16px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-card { min-height:0!important;padding:16px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-card-head { display:flex;justify-content:space-between;align-items:center!important;margin:0 0 14px!important;gap:12px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-card-head span { display:block;font-size:11px!important;color:var(--muted)!important;margin-top:5px; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-link { border:0!important;background:transparent!important;padding:6px 8px!important;color:var(--green)!important;min-height:36px!important; }
html[data-theme] body.os-ui #ownerCommandCenter :is(.occ-route-card.is-empty,.occ-attention-card.is-empty,.occ-pipeline-card,.occ-activity-card) { min-height:0!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-all-clear { min-height:0!important;padding:18px 0!important;display:flex;gap:12px;align-items:center; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-all-clear>i { width:32px!important;height:32px!important;background:var(--mint)!important;color:var(--green)!important;font-size:16px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-all-clear strong { color:var(--text)!important;font-size:13px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-all-clear small { font-size:12px!important;color:var(--muted)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-add-row { min-height:40px!important;margin:12px 0 0!important;background:var(--soft)!important;border:1px dashed var(--line)!important;color:var(--green)!important;border-radius:8px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-row-v107 { display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:10px!important;padding:14px 0!important;border-color:var(--line)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-house-photo { width:42px!important;height:42px!important;min-height:42px!important;background:var(--soft)!important;border:1px solid var(--line)!important;border-radius:8px!important;color:var(--muted)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-house-photo small { font-size:8px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-main strong { color:var(--text)!important;font-size:14px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-main small { color:var(--muted)!important;font-size:12px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-time-v107 { font-size:11px!important;color:var(--muted)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-service-v107 { grid-column:2;grid-row:2; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-service-v107 :is(span,small) { font-size:11px!important;background:none!important;color:var(--muted)!important;padding:0!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-price-v107 { grid-column:3;grid-row:1;font-size:15px!important;color:var(--text)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-actions-v107 { grid-column:2/-1;display:flex!important;gap:8px!important;flex-wrap:wrap; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-actions-v107>* { min-height:40px!important;border:1px solid var(--line)!important;border-radius:8px!important;background:var(--surface)!important;color:var(--text)!important;padding:8px 12px!important;font-size:12px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-route-actions-v107>.start { background:var(--green)!important;color:var(--bg)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-attention-item-v107 { min-height:64px!important;padding:12px 0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;gap:10px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-attention-item-v107 i { background:var(--mint)!important;color:var(--green)!important;width:30px!important;height:30px!important;font-style:normal; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-attention-item-v107 strong { font-size:13px!important;color:var(--text)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-attention-item-v107 small { font-size:11px!important;color:var(--muted)!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-kpis { display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-kpi-v107 { display:block!important;padding:16px!important;min-height:100px!important;background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:12px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-kpi-label { color:var(--muted)!important;font-size:11px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-kpi-label i { display:none!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-kpi-copy>strong { display:block!important;font-size:26px!important;line-height:1.3!important;color:var(--text)!important;margin:7px 0!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-kpi-copy>small { color:var(--muted)!important;font-size:11px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-kpi-chart { display:none!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-v107-bottom { display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;margin-bottom:16px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-funnel { display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-funnel>b { display:none!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-funnel>div { clip-path:none!important;border-radius:8px!important;background:var(--soft)!important;color:var(--text)!important;padding:12px 8px!important;height:auto!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-funnel>div>span { color:var(--muted)!important;font-size:10px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-funnel strong { color:var(--text)!important;font-size:20px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-pipeline-stats { border-color:var(--line)!important;gap:12px!important;margin-top:14px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-pipeline-stats strong { color:var(--text)!important;font-size:20px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-pipeline-stats span { color:var(--muted)!important;font-size:10px!important; }
html[data-theme] body.os-ui #ownerCommandCenter .os-home-today { display:none!important; }
html[data-theme] body.os-ui #ownerCommandCenter .os-upcoming { display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important; }

/* Modal behavior is native; existing forms get a scroll area and a persistent save footer. */
html[data-theme] body.os-ui dialog { position:fixed!important;inset:0!important;width:min(720px,calc(100vw - 40px))!important;max-width:calc(100vw - 40px)!important;max-height:calc(100dvh - 48px)!important;height:fit-content!important;min-height:0!important;margin:auto!important;padding:0!important;background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:18px!important;overflow:auto!important;box-shadow:0 22px 90px #0005!important; }
html[data-theme] body.os-ui dialog::backdrop { background:#06140db3!important;backdrop-filter:blur(3px); }
html[data-theme] body.os-ui dialog>.dialog-shell { width:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;max-height:calc(100dvh - 50px)!important;padding:0!important;border:0!important;border-radius:0!important;background:var(--surface)!important;color:var(--text)!important;box-shadow:none!important;overflow:hidden!important; }
html[data-theme] body.os-ui dialog>.dialog-shell>.dialog-head { position:relative!important;top:auto!important;display:flex!important;align-items:flex-start!important;justify-content:space-between;gap:16px;padding:20px!important;margin:0!important;background:var(--surface)!important;border-bottom:1px solid var(--line)!important;z-index:2;flex:none; }
html[data-theme] body.os-ui .dialog-head h2 { color:var(--text)!important;font-size:21px!important;margin:4px 0 0!important; }
html[data-theme] body.os-ui .os-dialog-content { overflow:auto;overscroll-behavior:contain;min-height:0;padding:20px; }
html[data-theme] body.os-ui .os-dialog-footer { display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:none;background:var(--surface);border-top:1px solid var(--line);padding:14px 20px; }
html[data-theme] body.os-ui .os-dialog-footer .wide { width:auto!important;min-width:160px; }
html[data-theme] body.os-ui dialog>.form-grid { padding:22px!important; }
html[data-theme] body.os-ui dialog>form[method="dialog"] { display:flex;justify-content:flex-end;padding:12px 16px 0; }
html[data-theme] body.os-ui #jobFocusDialog>section { background:var(--surface)!important;color:var(--text)!important;padding:20px!important; }
html[data-theme] body.os-ui .os-settings-content section { border-bottom:1px solid var(--line);padding:0 0 22px;margin-bottom:22px; }
html[data-theme] body.os-ui .os-settings-content h3 { margin:0 0 6px; }
html[data-theme] body.os-ui .os-settings-content p { font-size:13px;color:var(--muted);margin:0 0 14px; }
html[data-theme] body.os-ui .os-theme-choices { width:fit-content; }
html[data-theme] body.os-ui .os-version { color:var(--muted);font-size:11px; }

/* Closed sheets are removed from rendering and focus, eliminating persistent off-screen overlays. */
html[data-theme] body.os-ui .mobile-more-sheet:not(.open),html[data-theme] body.os-ui .mobile-more-backdrop:not(.open) { display:none!important;visibility:hidden!important;pointer-events:none!important; }
html[data-theme] body.os-ui .mobile-more-backdrop.open { display:block!important;position:fixed!important;inset:0!important;background:#06140db3!important;opacity:1!important;z-index:900!important; }
html[data-theme] body.os-ui .mobile-more-sheet.open { display:block!important;position:fixed!important;inset:auto 0 0!important;transform:none!important;transition:none!important;visibility:visible!important;max-height:85dvh!important;width:min(640px,100%)!important;margin:0 auto!important;padding:10px 20px max(20px,env(safe-area-inset-bottom))!important;border:1px solid var(--line)!important;border-radius:20px 20px 0 0!important;background:var(--surface)!important;color:var(--text)!important;box-shadow:0 -15px 70px #0003!important;overflow:auto!important;overscroll-behavior:contain;z-index:901!important; }
html[data-theme] body.os-ui.os-sheet-open { overflow:hidden!important; }
html[data-theme] body.os-ui .mobile-more-title { position:sticky!important;top:-10px!important;display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:16px 0!important;background:var(--surface)!important;z-index:2;margin:0 0 8px!important; }
html[data-theme] body.os-ui .mobile-more-title strong { color:var(--text)!important;font-size:20px!important; }
html[data-theme] body.os-ui .mobile-more-title small { color:var(--muted)!important;font-size:11px!important; }
html[data-theme] body.os-ui .mobile-more-title button { width:40px!important;height:40px!important;border:1px solid var(--line)!important;border-radius:10px!important;font-size:24px!important;background:var(--soft)!important;color:var(--text)!important; }
html[data-theme] body.os-ui .mobile-more-group-title { padding:12px 0 8px!important;font-size:10px!important;font-weight:750;color:var(--muted)!important;text-transform:uppercase;letter-spacing:.08em; }
html[data-theme] body.os-ui .mobile-more-group-grid { display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important; }
html[data-theme] body.os-ui .mobile-more-item { display:grid!important;grid-template-columns:28px minmax(0,1fr) 10px!important;align-items:center!important;gap:10px!important;min-height:64px!important;padding:12px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--surface)!important;color:var(--text)!important;text-align:left!important; }
html[data-theme] body.os-ui .mobile-more-item.active { background:var(--mint)!important;border-color:var(--green)!important; }
html[data-theme] body.os-ui .mobile-more-item-icon { width:28px!important;height:28px!important;border-radius:7px!important;background:var(--soft)!important;color:var(--green)!important;display:grid;place-items:center; }
html[data-theme] body.os-ui .mobile-more-item-copy { display:block!important;width:auto!important;min-width:0; }
html[data-theme] body.os-ui .mobile-more-item-copy strong,html[data-theme] body.os-ui .mobile-quick-sheet .mobile-more-item>span { font-size:12px!important;line-height:1.4!important;color:var(--text)!important;white-space:normal!important;word-break:normal!important; }
html[data-theme] body.os-ui .mobile-more-item-copy small,html[data-theme] body.os-ui .mobile-quick-sheet .mobile-more-item small { display:block!important;color:var(--muted)!important;font-size:10px!important;font-weight:400!important;line-height:1.4!important;margin-top:3px!important; }
html[data-theme] body.os-ui .mobile-more-chevron { color:var(--muted)!important; }
html[data-theme] body.os-ui .mobile-quick-sheet .mobile-more-grid { display:grid!important;grid-template-columns:1fr!important;gap:8px!important; }
html[data-theme] body.os-ui .mobile-quick-sheet .mobile-more-item { grid-template-columns:minmax(0,1fr) 20px!important;min-height:64px!important; }
html[data-theme] body.os-ui .mobile-quick-sheet .mobile-more-item>span { display:block!important;width:auto!important;max-width:none!important; }
html[data-theme] body.os-ui .os-more-footer { display:flex;gap:8px;margin-top:20px;border-top:1px solid var(--line);padding-top:16px; }
html[data-theme] body.os-ui .os-more-footer button { flex:1; }

@media(min-width:761px) and (max-width:1150px) {
  html[data-theme] body.os-ui #appView.app { padding:20px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-v108-head-tools { flex-basis:100%;justify-content:flex-start; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-v107-top,html[data-theme] body.os-ui .schedule-desktop-grid { grid-template-columns:1fr!important; }
  html[data-theme] body.os-ui .schedule-side-column { display:none!important; }
  html[data-theme] body.os-ui :is(.stats,.finance-stats,.schedule-overview),html[data-theme] body.os-ui #ownerCommandCenter .occ-kpis { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  html[data-theme] body.os-ui :is(.finance-grid,.growth-grid-main,.map-layout) { grid-template-columns:1fr!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-v107-bottom { grid-template-columns:1fr!important; }
}
@media(max-width:760px) {
  html:has(body.os-ui) { scrollbar-gutter:auto; }
  html[data-theme] body.os-ui .topbar { position:sticky!important;inset:0 0 auto!important;width:100%!important;height:auto!important;min-height:60px!important;padding:calc(8px + env(safe-area-inset-top)) 16px 8px!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;border:0!important;border-bottom:1px solid var(--line)!important;z-index:90!important; }
  html[data-theme] body.os-ui .brand { border:0!important;padding:0!important;gap:8px!important; }
  html[data-theme] body.os-ui .brand .logo { width:30px!important;height:30px!important;min-width:30px!important;border-radius:8px!important;font-size:16px!important; }
  html[data-theme] body.os-ui .brand strong { font-size:12px!important; }
  html[data-theme] body.os-ui .brand span { font-size:9px!important; }
  html[data-theme] body.os-ui .tabs { display:none!important; }
  html[data-theme] body.os-ui .top-actions { display:flex!important;align-items:center!important;width:auto!important;padding:0!important;border:0!important;gap:6px!important; }
  html[data-theme] body.os-ui .top-actions button { min-height:40px!important;height:40px!important;min-width:40px!important;padding:8px!important; }
  html[data-theme] body.os-ui .top-actions #signOutBtn,html[data-theme] body.os-ui .top-actions .os-settings-button { display:none!important; }
  html[data-theme] body.os-ui .owner-notification-button-label { display:none!important; }
  html[data-theme] body.os-ui .theme-toggle { font-size:11px!important; }
  html[data-theme] body.os-ui #appView.app { width:100%!important;margin:0!important;padding:18px 14px calc(90px + env(safe-area-inset-bottom))!important;min-height:calc(100dvh - 60px)!important; }
  html[data-theme] body.os-ui .hero { margin-bottom:18px!important;align-items:flex-start!important; }
  html[data-theme] body.os-ui .hero h1 { font-size:24px!important; }
  html[data-theme] body.os-ui .hero #pageSub { font-size:12px!important; }
  html[data-theme] body.os-ui[data-os-view="dashboard"] .hero { display:none!important; }
  html[data-theme] body.os-ui .mobile-app-nav { display:grid!important;position:fixed!important;inset:auto 0 0!important;grid-template-columns:repeat(5,minmax(0,1fr));width:100%!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;min-height:66px!important;border-top:1px solid var(--line)!important;background:var(--surface)!important;z-index:100!important;box-shadow:0 -3px 16px #00000008!important; }
  html[data-theme] body.os-ui:not(.os-authenticated) .mobile-app-nav { display:none!important; }
  html[data-theme] body.os-ui .mobile-nav-btn { display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px!important;min-height:52px!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-size:10px!important;padding:4px!important; }
  html[data-theme] body.os-ui .mobile-nav-btn.active { color:var(--green)!important; }
  html[data-theme] body.os-ui .mobile-nav-btn svg { width:21px!important;height:21px!important; }
  html[data-theme] body.os-ui .mobile-nav-btn.mobile-add { width:44px!important;min-height:44px!important;height:44px!important;align-self:center;justify-self:center;border-radius:13px!important;background:var(--green)!important;color:var(--bg)!important;transform:none!important;box-shadow:none!important;margin:0!important; }
  html[data-theme] body.os-ui .mobile-nav-btn.mobile-add span { display:none!important; }
  html[data-theme] body.os-ui :is(.toolbar,.map-toolbar) { gap:10px!important; }
  html[data-theme] body.os-ui .toolbar>input,html[data-theme] body.os-ui .toolbar>select { flex:1 1 100%!important;width:100%!important; }
  html[data-theme] body.os-ui .toolbar>button { flex:1 1 auto!important; }
  html[data-theme] body.os-ui :is(.stats,.finance-stats,.schedule-overview,.growth-kpis) { grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-bottom:14px!important; }
  html[data-theme] body.os-ui :is(.stat,.finance-stat,.schedule-kpi) { padding:14px!important;min-height:95px!important; }
  html[data-theme] body.os-ui :is(.stat,.finance-stat,.schedule-kpi)>strong { font-size:24px!important; }
  html[data-theme] body.os-ui :is(.two-col,.finance-grid,.growth-grid-main,.map-layout,.schedule-desktop-grid,.forecast-grid) { grid-template-columns:1fr!important;gap:14px!important; }
  html[data-theme] body.os-ui :is(.page-intro,.finance-hero,.growth-hero) { flex-direction:column!important;align-items:stretch!important; }
  html[data-theme] body.os-ui .page-intro h2 { display:none!important; }
  html[data-theme] body.os-ui :is(.page-intro .eyebrow,.schedule-page-head>div:first-child) { display:none!important; }
  html[data-theme] body.os-ui .page-intro>div:first-child>span { display:none!important; }
  html[data-theme] body.os-ui .referral-health { display:flex;gap:8px;flex-wrap:wrap; }
  html[data-theme] body.os-ui :is(button.primary,button.success,.primary,.success,.ghost,.mini,.refresh,.route-link,.occ-outline,.occ-link,.job-actions button,.job-actions a,.today-actions button,.dialog-actions>button,.dialog-actions>a,.schedule-job-actions button,.schedule-job-actions a) { min-height:44px!important; }
  html[data-theme] body.os-ui :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) { font-size:16px!important; }
  html[data-theme] body.os-ui .form-grid { grid-template-columns:1fr!important;gap:0!important; }
  html[data-theme] body.os-ui .form-grid label { margin-bottom:14px!important; }
  html[data-theme] body.os-ui :is(.lead,.customer-row,.estimate-row,.zone-row,.finance-transaction-row) { grid-template-columns:1fr!important;gap:8px!important;padding:16px!important; }
  html[data-theme] body.os-ui :is(.lead,.customer-row,.estimate-row)>div { min-width:0;overflow-wrap:anywhere; }
  html[data-theme] body.os-ui :is(.lead,.customer-row,.estimate-row) strong { font-size:14px!important; }
  html[data-theme] body.os-ui .history-visit { grid-template-columns:50px minmax(0,1fr)!important;gap:10px!important;padding:14px!important; }
  html[data-theme] body.os-ui .history-price { grid-column:2!important;font-size:16px!important;text-align:left!important; }
  html[data-theme] body.os-ui .history-pay-actions { gap:8px!important; }
  html[data-theme] body.os-ui .history-pay-actions>* { min-height:44px!important; }
  html[data-theme] body.os-ui .dialog-actions { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  html[data-theme] body.os-ui .dialog-actions>* { min-width:0!important;white-space:normal; }
  html[data-theme] body.os-ui .service-request-actions { display:grid!important;grid-template-columns:1fr!important; }
  html[data-theme] body.os-ui .estimate-item { grid-template-columns:1fr 1fr 44px!important;gap:8px!important; }
  html[data-theme] body.os-ui .estimate-item [data-item-field="name"],html[data-theme] body.os-ui .estimate-item [data-item-field="description"] { grid-column:1/-1!important; }
  html[data-theme] body.os-ui .estimate-item input { font-size:16px!important; }
  html[data-theme] body.os-ui .estimate-items-head { flex-wrap:wrap!important; }
  html[data-theme] body.os-ui .price-check-inputs { grid-template-columns:1fr!important; }
  html[data-theme] body.os-ui .finance-account-card { grid-template-columns:36px minmax(0,1fr)!important; }
  html[data-theme] body.os-ui .finance-account-card>select { grid-column:2; }
  html[data-theme] body.os-ui .finance-account-card>strong { grid-column:2; }
  html[data-theme] body.os-ui .finance-hero-actions { width:100%; }
  html[data-theme] body.os-ui .finance-filters { flex-basis:100%;width:100%; }
  html[data-theme] body.os-ui .finance-filters>* { max-width:none;flex-basis:100%; }
  html[data-theme] body.os-ui .finance-transactions-head { align-items:stretch!important; }
  html[data-theme] body.os-ui .website-reviews-control { padding:16px!important;gap:14px; }
  html[data-theme] body.os-ui .website-reviews-copy h3 { font-size:14px!important; }
  html[data-theme] body.os-ui .review-toggle-state { display:none; }
  html[data-theme] body.os-ui .schedule-page-head { margin-bottom:14px!important; }
  html[data-theme] body.os-ui .schedule-head-actions { display:flex!important;gap:8px!important;width:100%; }
  html[data-theme] body.os-ui .schedule-head-actions>* { flex:1; }
  html[data-theme] body.os-ui .schedule-topbar>* { width:100%; }
  html[data-theme] body.os-ui .schedule-range-tabs .range,html[data-theme] body.os-ui .schedule-view-tabs .schedule-mode { flex:1;min-height:44px!important;padding:8px 6px!important; }
  html[data-theme] body.os-ui .schedule-side-column { display:none!important; }
  html[data-theme] body.os-ui .schedule-board-head { padding:14px!important; }
  html[data-theme] body.os-ui .schedule-board-head h3 { font-size:13px!important; }
  html[data-theme] body.os-ui #scheduleQuickAdd { display:none!important; }
  html[data-theme] body.os-ui .schedule-day-head { flex-wrap:wrap;gap:10px!important;padding:14px!important; }
  html[data-theme] body.os-ui .range-calendar { display:grid!important;grid-template-columns:1fr!important; }
  html[data-theme] body.os-ui .range-cal-day { display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;min-height:70px!important;border-right:0!important; }
  html[data-theme] body.os-ui .range-cal-date { min-height:64px!important;display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;padding:10px!important;border-right:1px solid var(--line)!important;border-bottom:0!important; }
  html[data-theme] body.os-ui .range-cal-date strong { font-size:21px!important; }
  html[data-theme] body.os-ui .range-cal-jobs { min-width:0;padding:8px!important; }
  html[data-theme] body.os-ui .range-cal-job { width:100%!important;margin:0 0 6px!important;min-height:48px!important;font-size:12px!important; }
  html[data-theme] body.os-ui .range-cal-empty { font-size:12px!important;display:block;padding:14px;color:var(--muted)!important; }
  html[data-theme] body.os-ui :is(.big-map,.customer-map) { height:55dvh!important;min-height:320px; }
  html[data-theme] body.os-ui .map-actions { width:100%;justify-content:flex-start!important; }
  html[data-theme] body.os-ui .map-actions>* { flex:1 1 100px; }
  html[data-theme] body.os-ui .map-hint { position:static!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;max-width:100%;box-shadow:none!important;padding:12px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter { gap:14px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-v108-head { order:0;gap:14px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-v108-greeting>h2 { font-size:22px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-v108-head-tools { flex:1 1 100%;gap:8px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-weather-card { display:none!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-search { max-width:none;min-width:0!important; }
  html[data-theme] body.os-ui #ownerCommandCenter #occSearchInput { font-size:16px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-search kbd { display:none!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-v107-top { display:block!important;order:1; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-route-card { display:none!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-attention-card { padding:14px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-attention-card .occ-card-head { margin:0 0 4px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-all-clear { padding:10px 0 0!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-attention-item-v107 { min-height:64px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .os-home-today { display:block!important;order:2;padding:0!important; }
  html[data-theme] body.os-ui .today-command-head { display:flex!important;align-items:center!important;flex-wrap:wrap;gap:10px!important;padding:14px!important;background:transparent!important;border-bottom:1px solid var(--line)!important; }
  html[data-theme] body.os-ui .today-command-head>div { flex:1 1 100%; }
  html[data-theme] body.os-ui .today-command-head .eyebrow { display:none!important; }
  html[data-theme] body.os-ui #todayHeading { display:block!important;font-size:16px!important;margin:0 0 4px!important; }
  html[data-theme] body.os-ui #todaySummary { font-size:11px!important; }
  html[data-theme] body.os-ui .today-empty { border:0!important;background:transparent!important;padding:20px 14px!important;min-height:110px!important; }
  html[data-theme] body.os-ui .today-empty>strong { display:none!important; }
  html[data-theme] body.os-ui .today-empty>span { display:block!important;margin-bottom:10px!important; }
  html[data-theme] body.os-ui .today-section-label { background:var(--soft)!important;color:var(--muted)!important;padding:8px 14px!important;font-size:11px!important; }
  html[data-theme] body.os-ui .today-job { display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:10px!important;padding:14px!important;background:var(--surface)!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important; }
  html[data-theme] body.os-ui .today-stop { width:24px!important;min-width:24px!important; }
  html[data-theme] body.os-ui .today-stop span { width:24px!important;height:24px!important;font-size:11px!important;background:var(--mint)!important;color:var(--green)!important; }
  html[data-theme] body.os-ui .today-job-top strong { font-size:15px!important;color:var(--text)!important; }
  html[data-theme] body.os-ui .today-job-top span,html[data-theme] body.os-ui .today-service { font-size:12px!important;color:var(--muted)!important; }
  html[data-theme] body.os-ui .today-job-top b { font-size:15px!important;color:var(--text)!important; }
  html[data-theme] body.os-ui .today-actions { display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:12px; }
  html[data-theme] body.os-ui .today-start { background:var(--green)!important;color:var(--bg)!important; }
  html[data-theme] body.os-ui :is(.today-payment,.today-duration) { display:flex!important;flex-wrap:wrap;gap:8px;background:var(--soft)!important;color:var(--text)!important;padding:10px!important;border-radius:8px; }
  html[data-theme] body.os-ui .today-payment button,html[data-theme] body.os-ui .today-duration button { min-height:44px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-kpis { order:3;grid-template-columns:1fr 1fr!important;gap:10px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-kpi-v107 { min-height:95px!important;padding:14px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-kpi-copy>strong { font-size:24px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .os-home-details { order:5; }
  html[data-theme] body.os-ui #ownerCommandCenter .occ-v107-bottom { grid-template-columns:1fr!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .os-upcoming { order:4;grid-template-columns:1fr!important; }
  html[data-theme] body.os-ui #customerPushState { margin:12px 14px!important; }
  html[data-theme] body.os-ui dialog { width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top))!important;border-radius:16px!important; }
  html[data-theme] body.os-ui dialog>.dialog-shell { max-height:calc(100dvh - 26px - env(safe-area-inset-top))!important; }
  html[data-theme] body.os-ui dialog>.dialog-shell>.dialog-head { padding:16px!important; }
  html[data-theme] body.os-ui .dialog-head h2 { font-size:20px!important; }
  html[data-theme] body.os-ui .os-dialog-content { padding:16px; }
  html[data-theme] body.os-ui .os-dialog-footer { padding:12px 16px max(12px,env(safe-area-inset-bottom)); }
  html[data-theme] body.os-ui .os-dialog-footer .wide { flex:1;min-width:0; }
  html[data-theme] body.os-ui .mobile-more-sheet.open { width:100%!important;padding-left:14px!important;padding-right:14px!important; }
  html[data-theme] body.os-ui .mobile-more-item { padding:10px!important;grid-template-columns:26px minmax(0,1fr) 8px!important;gap:8px!important; }
  html[data-theme] body.os-ui .mobile-quick-sheet .mobile-more-item { grid-template-columns:minmax(0,1fr) 20px!important; }
  html[data-theme] body.os-ui #roadmapView { padding:0!important; }
  html[data-theme] body.os-ui #roadmapView .rm-heading { padding-top:0; }
  html[data-theme] body.os-ui #roadmapView .rm-heading h1 { font-size:25px!important; }
  html[data-theme] body.os-ui #roadmapView .rm-now>div { padding:16px; }
  html[data-theme] body.os-ui #roadmapView .rm-baseline>strong { font-size:36px; }
}
@media(max-width:350px) {
  html[data-theme] body.os-ui .topbar { padding-left:10px!important;padding-right:10px!important; }
  html[data-theme] body.os-ui .brand strong { font-size:11px!important; }
  html[data-theme] body.os-ui .brand .logo { display:none!important; }
  html[data-theme] body.os-ui .mobile-more-group-grid { grid-template-columns:1fr!important; }
  html[data-theme] body.os-ui .dialog-actions { grid-template-columns:1fr!important; }
}
@media(prefers-reduced-motion:reduce) { html[data-theme] body.os-ui *,html[data-theme] body.os-ui *::before,html[data-theme] body.os-ui *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; } }
html[data-theme] body.os-ui [hidden][hidden][hidden] { display:none!important; }
html[data-theme] body.os-ui .review-toggle { position:relative; }
html[data-theme] body.os-ui #websiteReviewsToggle { position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;clip-path:inset(50%);margin:0!important; }
html[data-theme] body.os-ui .hero .refresh { width:auto!important;min-width:76px!important;padding:9px 12px!important;font-size:12px!important;flex:none!important; }
html[data-theme] body.os-ui .hero .refresh::after { content:none!important; }
html[data-theme] body.os-ui #ownerCommandCenter .occ-all-clear :is(strong,small) { display:block!important; }
html[data-theme] body.os-ui .mobile-more-title small { display:block!important; }
html[data-theme] body.os-ui #customerProfileSummary:empty { display:none!important; }
html[data-theme] body.os-ui #roadmapView .rm-source-list a { display:inline-flex;align-items:center;min-height:44px; }
@media(max-width:760px) {
  html[data-theme] body.os-ui #ownerCommandCenter .today-command::before { display:none!important;content:none!important; }
  html[data-theme] body.os-ui #todaySummary { display:block!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .today-jobs { padding:0!important;border:0!important;background:transparent!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .today-empty { display:flex!important;flex-direction:column!important;justify-content:center!important;border-radius:0!important;gap:8px!important; }
  html[data-theme] body.os-ui .today-empty>span { margin:0!important; }
}
/* Final cross-page consistency: immediate navigation, readable headings and compact summaries. */
html[data-theme] body.os-ui .view { animation:none!important;opacity:1!important;transform:none!important; }
html[data-theme] body.os-ui :is(h1,h2,h3,h4) { color:var(--text)!important; }
html[data-theme] body.os-ui .growth-hero-number { background:var(--mint)!important;border-color:var(--line)!important;border-radius:12px!important;padding:14px 18px!important; }
html[data-theme] body.os-ui .growth-hero-number strong { color:var(--green)!important; }
html[data-theme] body.os-ui .growth-kpis .stat { min-width:0!important;width:auto!important; }
html[data-theme] body.os-ui .owner-notification-row input { flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:26px!important;min-height:26px!important;max-height:26px!important;margin:0!important;padding:0!important; }
html[data-theme] body.os-ui .owner-notification-row { min-height:64px!important; }
@media(max-width:760px) {
  html[data-theme] body.os-ui #ownerCommandCenter .today-command-head::before { content:none!important;display:none!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .today-command-head>div { flex:1 1 170px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .today-empty { min-height:64px!important;padding:16px 14px!important; }
  html[data-theme] body.os-ui #ownerCommandCenter .today-empty button { display:none!important; }
  html[data-theme] body.os-ui .today-job-top span { display:block!important; }
  html[data-theme] body.os-ui .today-done { display:block!important;color:var(--muted)!important;font-size:12px!important;margin-top:8px; }
  html[data-theme] body.os-ui #routeTodayBtn { display:inline-flex!important; }
}
html[data-theme] body.os-ui :is(.data-notice,#financeSetupNotice) { display:flex;flex-direction:column!important;gap:5px!important;padding:14px!important;font-size:13px!important;line-height:1.5!important; }
html[data-theme] body.os-ui :is(.data-notice,#financeSetupNotice) :is(strong,span) { font-size:13px!important;line-height:1.5!important; }
html[data-theme] body.os-ui .map-toggle { min-height:44px!important;display:flex!important;align-items:center; }
@media(min-width:1200px) {
  html[data-theme] body.os-ui :is(.growth-kpis,.finance-stats) { grid-template-columns:repeat(6,minmax(0,1fr))!important; }
}

html[data-theme] body.os-ui dialog[open] { display:block!important; }
html[data-theme] body.os-ui .os-theme-choices button[aria-pressed="true"] { background:var(--mint)!important;color:var(--green)!important;border-color:var(--green)!important; }

/* V137: compact attention rows and today's work before secondary summaries. */
html[data-theme] body.os-ui:not(.os-authenticated) #ownerCommandCenter{display:none!important}
html[data-theme] body.os-ui #occAttention .occ-attention-item-v107{display:grid!important;grid-template-columns:26px minmax(0,1fr) 16px!important;gap:12px!important;align-items:center!important;width:100%!important;min-height:64px!important;padding:12px!important;text-align:left!important;border-radius:8px!important}
html[data-theme] body.os-ui #occAttention .occ-attention-item-v107>div{display:block!important;min-width:0!important}
html[data-theme] body.os-ui #occAttention .occ-attention-item-v107 strong{display:block!important;font-size:14px!important;line-height:1.4!important;color:var(--text)!important}
html[data-theme] body.os-ui #occAttention .occ-attention-item-v107 small{display:block!important;font-size:12px!important;line-height:1.5!important;color:var(--muted)!important;margin-top:3px!important}
html[data-theme] body.os-ui .os-home-details .occ-kpis{margin-bottom:16px!important}
html[data-theme] body.os-ui #rescheduleDialog{max-width:440px!important;padding:24px!important}
html[data-theme] body.os-ui #rescheduleDialog input{font-size:16px!important;min-height:48px!important}
html[data-theme] body.os-ui #rescheduleDialog .reschedule-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
html[data-theme] body.os-ui #rescheduleError{color:var(--danger,#b63838);font-size:14px}
@media(max-width:760px){
 html[data-theme] body.os-ui #ownerCommandCenter .os-home-today{order:1!important}
 html[data-theme] body.os-ui #ownerCommandCenter .occ-v107-top{order:2!important}
 html[data-theme] body.os-ui #ownerCommandCenter .os-home-details{order:3!important}
 html[data-theme] body.os-ui .schedule-more summary{min-width:44px!important;min-height:44px!important}
 html[data-theme] body.os-ui #scheduleOverview{display:none!important}
 html[data-theme] body.os-ui .today-actions button{min-height:44px!important;grid-column:auto!important}
}
/* V140 — selectable optional estimate add-ons */
html[data-theme] body.os-ui .estimate-item { grid-template-columns:minmax(100px,1fr) minmax(100px,1.3fr) 65px 90px auto 40px!important; }
html[data-theme] body.os-ui .estimate-item-optional{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;color:var(--muted);padding:0 4px}
html[data-theme] body.os-ui .estimate-item-optional input{width:18px!important;height:18px!important;min-height:0!important;margin:0!important}
@media(max-width:700px){html[data-theme] body.os-ui .estimate-item{grid-template-columns:1fr 1fr 44px!important}html[data-theme] body.os-ui .estimate-item-optional{grid-column:1/3;min-height:40px}}
/* Hidden authentication and loading states must override layout display rules. */
html body.os-ui #appView[hidden],
html body.os-ui #loginView[hidden],
html body.os-ui [hidden] { display: none !important; }
