/* Desktop readability layer. Keep workflow styling independent of saved records. */
:root{font-family:"Open Sans","Segoe UI",Tahoma,sans-serif;font-size:15px;--ink:#1b2a38;--secondary:#536273;--canvas:#eaf0f5;--surface:#fff;--section:#e7eef5;--soft:#f3f6fa;--edge:#9aaabd;--divider:#bdcad7;--accent:#a84d0d;--selected:#fff0df;--line:var(--divider);--muted:var(--secondary)}
body,.workspace,main{background:var(--canvas);color:var(--ink);font-size:14px;line-height:1.5}
h1,h2,h3,h4,b,strong{color:inherit}
h1,.hcp-page-title h1,.hcp-profile-heading h1,.home-greeting{font-size:26.25px;font-weight:500;color:var(--ink)}
.hcp-record-heading h1{font-size:37.5px;font-weight:400;color:var(--ink)}
h2,.hcp-section .section-head h2,.hcp-job-body .section-head h2{font-size:24px;font-weight:400;color:var(--ink)}
h3,.scope-category h3,.catalog-grid h3{font-size:16.875px;font-weight:600;color:var(--ink)}
p,label,dd,.customer-card-content p,.hcp-customer-side .customer-card-content p,.hcp-section>p,.record-note>p,.property-entry,.contact-definition dd,.visit-row,.hcp-activity,.pipeline-card,.employee-status-row,.employee-status-row b,.employee-appointment>span,.line-form-card p{font-size:14px!important;color:var(--ink)}
small,.muted,.breadcrumb,.record-heading-meta,.record-heading-meta a,.segment-context,.scope-empty,.catalog-caption,.invoice-meta,.annotation-help,.hcp-section>small,.scope-description small,.scope-totals>span:first-child,.record-note small,.attachment-gallery small,.attachment-gallery a,.catalog-grid small,.catalog-id,.property-contacts>p,.property-contacts small,.contact-definition dt,.visit-row p,.visit-row small,.hcp-activity small,.list-note,.active-filters,.hcp-pagination,.booking-grid small,.service-location-card,.service-location-card small,.billing-contact-card,.billing-contact-card small,.customer-card-content p small,.customer-card-footer,.section-muted,.file-viewer>p{font-size:13.125px!important;color:var(--secondary);line-height:1.6}
button,.btn,.text-button,.hcp-work-extras button,.scope-category button,.scope-category .btn,.record-note>button,.property-entry>button,.property-entry>.btn,.catalog-grid button,.line-view-toggle button{font-size:13.125px!important;min-height:36px;padding:6px 12px;font-weight:600;line-height:20px}
button,.btn{border-width:2px;border-color:var(--edge);color:var(--ink);background:var(--surface)}
button:hover,.btn:hover{background:var(--selected);border-color:#b35c19}
button:disabled{opacity:.58}
button.primary,.btn.primary,#sideCreate{background:#bd5911;border-color:#a94c0b;color:#fff}
.text-button{color:var(--accent)!important}
a{color:var(--accent)}
input:not([type=checkbox]),select,textarea,.scope-edit-row input,.scope-edit-row select,.scope-edit-row textarea,.record-tools select,.catalog-tools input,.catalog-tools select{font-size:13.125px!important;min-height:46px;border:2px solid var(--edge);background:var(--surface);color:var(--ink);line-height:1.45}
input::placeholder,textarea::placeholder{color:var(--secondary);opacity:1}
input[type=checkbox]{width:22px;height:22px}
:focus-visible{outline:3px solid #c16b16!important;outline-offset:3px}
.sidebar{width:248px;border-right:2px solid var(--edge);padding:18px 18px 0;background:var(--surface);color:var(--ink)}
.workspace{margin-left:248px}
.sidebar nav>a,.sidebar nav summary{font-size:13.125px;min-height:34px;height:auto;padding:6px 10px;font-weight:400;color:var(--ink)}
.sidebar nav>a.active,.hcp-subnav a.active{background:var(--selected);color:var(--accent);font-weight:600;box-shadow:inset 4px 0 #c36218}
.sidebar nav a:hover,.sidebar nav summary:hover{background:var(--soft)}
.sidebar nav hr,.sidebar-bottom{border-color:var(--divider);border-width:2px}
.hcp-subnav{border-left:2px solid var(--edge)}
.hcp-subnav a{font-size:13.125px;min-height:34px;height:auto;color:var(--secondary)}
.sidebar-bottom{background:var(--surface);min-height:128px}
.sidebar-bottom>.btn,.sidebar-bottom>small,.user-footer{font-size:15px!important;color:var(--ink)}
.footer-label,.brand small{font-size:11px;color:var(--secondary)}
.brand>span:last-child{font-size:12px;color:var(--ink)}
.brandmark{color:#fff}
header{min-height:64px;height:64px;background:var(--surface);border-bottom:2px solid var(--edge)}
.global-search input{min-height:40px;height:40px;background:var(--soft);padding-left:38px;border:2px solid var(--divider);font-size:14px!important}
#topTools{gap:10px}
#topTools .tool-icon{background:var(--surface);color:var(--secondary);min-height:44px;min-width:42px}
#topTools .theme-toggle{white-space:nowrap;font-size:15px!important;border:2px solid var(--edge);background:var(--soft);color:var(--ink);padding:8px 12px}
.local-chip{font-size:11px;color:var(--secondary);border:1px solid var(--edge)}
.pilot-banner{height:auto;min-height:30px;font-size:12px;color:var(--secondary);background:var(--surface);border-bottom:2px solid var(--divider)}
main{padding:26px 28px 65px}
.card,.metric,.hcp-list-card,.home-summary-card,.property,.door,.catalog-grid article,.pipeline-card,.line-form-card,.customer-summary-card{border:2px solid var(--edge);background:var(--surface);border-radius:8px;box-shadow:0 2px 5px #162b4010}
.hcp-section{margin-bottom:25px;overflow:hidden}
.hcp-section>.section-head,.hcp-section>h2,.customer-summary-card h2,.dialog-head{background:var(--section);border-bottom:2px solid var(--edge);padding:18px 20px;min-height:72px}
.hcp-section>h2{margin:0}
.hcp-section .section-head h2{margin:0}
.hcp-page-title{background:var(--canvas);border-bottom:2px solid var(--edge);margin-left:-28px;margin-right:-28px;padding-left:28px;padding-right:28px}
.hcp-job-layout{grid-template-columns:280px minmax(0,1fr);gap:26px}
.customer-name-row,.hcp-customer-side .customer-name-row{font-size:17px;font-weight:700}
.customer-name-row{flex-wrap:wrap}
.customer-name-row .btn{font-size:13.125px!important}
.billing-contact-card h3{font-size:16.875px;font-weight:600}
.service-location-card{background:var(--soft);border-color:var(--divider);height:108px}
.customer-card-footer{border-top:2px solid var(--divider)}
.map-side-link{font-size:16px;background:var(--section);color:var(--ink);border:2px solid var(--edge)}
.hcp-tabs{border-bottom:2px solid var(--edge);gap:24px;overflow:auto}
.hcp-tabs button{font-size:17px!important;min-height:52px;color:var(--secondary);font-weight:650}
.hcp-tabs button[aria-selected=true]{color:var(--accent);border-bottom:4px solid #c36218}
.segment-tabs{gap:12px;border-bottom:2px solid var(--edge);padding-bottom:14px}
.segment-tab-wrap{border:2px solid var(--edge);background:var(--surface);flex-basis:290px}
.segment-tab-wrap.selected{background:var(--selected);border-bottom:4px solid #c36218}
.segment-tab-wrap [role=tab]{font-size:14px!important;min-height:76px;padding:14px 38px 14px 16px;font-weight:650}
.segment-tab-wrap small{font-size:13.125px!important;color:var(--secondary)}
.segment-tab-wrap small span{color:var(--accent)}
.segment-more{min-height:40px!important;min-width:34px;font-size:24px!important;padding:4px!important}
.segment-add{width:46px;height:46px;min-width:46px;font-size:24px!important;padding:0}
.hcp-step{font-size:13.125px;font-weight:400;color:var(--accent)}
.hcp-step small,.hcp-step small i{font-size:13.125px!important;color:var(--secondary);max-width:155px}
.hcp-step button{width:40px;height:40px;min-height:40px;border-width:2px}
.hcp-step .ui-icon{width:24px;height:24px}
.hcp-workflow{gap:16px}
.hcp-work-extras{gap:12px;padding:12px 0}
.hcp-work-extras span{font-size:14px;color:var(--secondary)}
th,.hcp-table-scroll th{font-size:12px!important;font-weight:600;background:var(--section);color:var(--ink);border-bottom:2px solid var(--edge);padding:14px 13px!important}
td,.hcp-table-scroll td{font-size:14px!important;color:var(--ink);border-bottom:2px solid var(--divider);padding:17px 13px!important;line-height:1.55}
td small{font-size:13.125px!important;color:var(--secondary)}
tbody tr:hover{background:var(--soft)}
.hcp-badge,.pill{font-size:14px;line-height:1.5;font-weight:700;padding:4px 9px;border:1px solid currentColor}
.scope-category{background:var(--soft);border-top:2px solid var(--divider);border-bottom:2px solid var(--divider);padding:14px 20px}
.scope-description b,.line-description b{font-size:16px}
.scope-description img{width:64px;height:64px;background:white;border:1px solid var(--divider);border-radius:5px;padding:4px}
.scope-totals{border-top:2px solid var(--edge);background:var(--section);font-size:18px;padding:20px}
.scope-lock{font-size:13.125px!important;color:var(--secondary);background:var(--soft);border-top:1px solid var(--divider);padding:13px 20px}
.scope-edit-row{border-bottom:2px solid var(--divider)}
.scope-edit-row label{font-size:13.125px!important}
.scope-edit-row>strong{font-size:17px}
.scope-edit-row>small{font-size:14px;color:var(--secondary)}
.line-view-toggle{border:2px solid var(--edge)}
.line-view-toggle button.selected{background:var(--selected);color:var(--accent)}
.approved-door,.record-note,.visit-row,.hcp-activity,.property-entry,.employee-status-row{border-bottom:2px solid var(--divider)}
.item-metrics{font-size:14px;color:var(--secondary);border-top:2px solid var(--divider)}
.item-metrics b{font-size:18px;color:var(--ink)}
.hcp-section .money-strip{border-top:2px solid var(--divider);font-size:15px;gap:14px;padding:18px 20px 22px}
.money-strip>div{border:1px solid var(--divider);border-radius:6px;background:var(--soft);padding:12px;min-width:0;color:var(--secondary)}
.money-strip strong{font-size:24px;font-weight:400;color:var(--ink)}
.hcp-customer-summary{border:2px solid var(--edge);background:var(--surface)}
.hcp-customer-summary>span{font-size:14px;color:var(--secondary)}
.hcp-customer-summary b{font-size:21px;font-weight:700;color:var(--ink)}
.home-summary-card h3{font-size:20px}
.home-summary-card>p,.home-summary-card>.btn{font-size:16px}
.home-day-label{font-size:15px;background:var(--section);color:var(--secondary);border-bottom:2px solid var(--divider)}
.hcp-avatar{width:34px;height:34px;min-width:34px;font-size:13px;background:#a94d0d}
.attachment-gallery b,.attachment-gallery>p{font-size:15px}
.attachment-thumb,.no-catalog-photo{border:2px solid var(--divider);background:var(--soft)}
.catalog-grid img{background:white;border-radius:5px}
.pipeline-column{border-right:2px solid var(--divider);padding-right:16px}
.pipeline-card>b{font-size:18px}
.pipeline-card>p,.pipeline-card>small,.pipeline-column>small,.pipeline-status{font-size:14px;color:var(--secondary)}
.pipeline-status{border:2px solid var(--edge)}
dialog{background:var(--surface);color:var(--ink);border:2px solid var(--edge)}
.dialog-head{z-index:3}
.hcp-create-menu button{background:var(--surface);color:var(--ink)}
.notice,.warning{background:var(--soft);color:var(--ink);border-color:#c36218}
fieldset{border:2px solid var(--edge)}
#recordResults{background:var(--surface);color:var(--ink);border:2px solid var(--edge)}
#recordResults a{color:var(--ink);border-color:var(--divider)}
/* Scheduling: preserve appointment positioning while increasing label and grid contrast. */
body[data-screen=schedule] .dispatch-toolbar input,body[data-screen=schedule] .dispatch-toolbar select,body[data-screen=schedule] .dispatch-toolbar button{font-size:13.125px!important;min-height:44px}
.dispatch-toolbar label,.calendar-legend,.calendar-legend small,.map-privacy,.map-list>small,.location-row small{font-size:14px;color:var(--secondary)}
.time-calendar-scroll,.month-calendar,.dispatch-queue,.time-header,.time-header>div,.hour-labels,.week-column,.calendar-date{background-color:var(--surface);color:var(--ink);border-color:var(--edge)}
.dispatch-queue{border-left:2px solid var(--edge);font-size:16px}
.dispatch-queue h2{font-size:22px}
.dispatch-queue>p,.dispatch-queue .card,.dispatch-queue .card p,.dispatch-queue .card small{font-size:15px;color:var(--secondary)}
.time-header>div{font-size:16px;border-right:2px solid var(--edge)}
.time-header small,.hour-labels span,.time-corner{font-size:13px!important;color:var(--secondary)}
.month-cell{border-right:2px solid var(--divider);border-bottom:2px solid var(--divider)}
.month-weekday,.month-cell>button[data-dispatch=day]{font-size:15px;color:var(--ink)}
.dispatch-event,.dispatch-event strong,.dispatch-event.compact strong,body[data-screen=schedule] .month-cell>button.dispatch-event,body[data-screen=schedule] .month-cell>button.dispatch-event strong{font-size:13.125px!important;font-weight:650}
.dispatch-event b,.dispatch-event small{font-size:13px}
.month-calendar{grid-template-rows:44px repeat(var(--weeks,5),minmax(135px,1fr));height:auto;min-height:calc(100vh - 200px)}
.month-cell>button.dispatch-event{min-height:32px!important;padding:6px!important}
.agenda-row,.agenda-row>small,.location-row{font-size:16px;border-color:var(--divider)}
.map-list h2{font-size:24px}.map-list h3{font-size:20px}
.map-list>p,.map-list button,.map-list .btn{font-size:16px}
.hcp-list-search{height:48px;background:var(--surface);border:2px solid var(--edge)}
.hcp-list-search input{border:0;min-height:44px;height:44px;margin:0;background:transparent}
.active-filters span,.segmented,.segmented .selected{background:var(--soft);color:var(--secondary);border-color:var(--edge)}
tr:hover td{background:var(--soft)}
.report-nav button,.workflow-panel,.calendar-event{background:var(--surface);color:var(--ink);border:2px solid var(--edge)}
.report-nav button.selected{background:var(--selected);color:var(--accent);border-color:#c36218}
body[data-screen=schedule] .dispatch-toolbar{background:var(--surface);border-bottom:2px solid var(--edge);flex-wrap:wrap}
.dispatch-week{background:var(--surface);border:2px solid var(--edge)}
.employee-lane{border-right:2px solid var(--edge);background:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,var(--divider) 29px,var(--divider) 30px,transparent 30px,transparent 58px,var(--edge) 58px,var(--edge) 60px)}
.month-cell.outside-month{background:var(--soft);color:var(--secondary)}
/* Dark mode uses real surface colors; catalog/customer images and map tiles stay unchanged. */
:root[data-theme=dark]{--ink:#edf3fa;--secondary:#b8c7d7;--canvas:#111a25;--surface:#1b2838;--section:#26394e;--soft:#223246;--edge:#6c849d;--divider:#455e77;--accent:#ffb978;--selected:#493421;color-scheme:dark;background:var(--canvas)}
[data-theme=dark] .brand>span:last-child,[data-theme=dark] .brand small{color:var(--ink)}
[data-theme=dark] .brandmark{background:#14181d;color:#fff}
[data-theme=dark] main a:not(.btn),[data-theme=dark] .record-heading-meta .btn{color:var(--accent)}
[data-theme=dark] .sidebar nav>a.active:hover{background:var(--selected);color:var(--accent)}
[data-theme=dark] .sidebar .ui-icon,[data-theme=dark] .global-search::before{color:var(--secondary)}
[data-theme=dark] .hcp-create-menu button:hover,[data-theme=dark] #recordResults a:hover{background:var(--selected)}
[data-theme=dark] .outline-pill{background:var(--surface);color:var(--accent);border-color:#c88649}
[data-theme=dark] .hcp-step button{background:var(--surface);color:var(--accent);border-color:#c88649}
[data-theme=dark] .hcp-step.done button{background:#b95612;color:white}
[data-theme=dark] .hcp-badge,[data-theme=dark] .pill{background:#31465c;color:#e0ebf7}
[data-theme=dark] .hcp-badge.completed,[data-theme=dark] .hcp-badge.paid,[data-theme=dark] .pill.completed,[data-theme=dark] .pill.received{background:#214e43;color:#b5f2cf}
[data-theme=dark] .hcp-badge.paused,[data-theme=dark] .hcp-badge.partial,[data-theme=dark] .pill.paused,[data-theme=dark] .pill.needed{background:#5a4023;color:#ffe0ab}
[data-theme=dark] .hcp-badge.in_progress,[data-theme=dark] .pill.in_progress{background:#294a70;color:#c9e1ff}
[data-theme=dark] .hcp-badge.unpaid{background:#633c35;color:#ffdbd0}
[data-theme=dark] .calendar-main,[data-theme=dark] .time-grid,[data-theme=dark] .dispatch-layout,[data-theme=dark] .map-list{background:var(--surface);color:var(--ink)}
[data-theme=dark] .month-cell.outside{background:#162231}
[data-theme=dark] .month-cell.today{background:#3b3227}
[data-theme=dark] .dispatch-event,[data-theme=dark] body[data-screen=schedule] .month-cell>button.dispatch-event{background:color-mix(in srgb,var(--event-color) 25%,#172638)!important;color:#f2f6fc!important;border-color:var(--edge);border-left-color:var(--event-color)}
[data-theme=dark] .dispatch-event b,[data-theme=dark] .dispatch-event small{color:#d3dfed}
[data-theme=dark] #monthPickerLabel{background:var(--surface)!important;color:var(--ink)}
[data-theme=dark] .map-status,[data-theme=dark] #mapError{background:var(--surface);color:var(--ink);border-color:var(--edge)}
[data-theme=dark] .map-attribution{background:#fff;color:#1b2a38}
[data-theme=dark] #toast{border:2px solid var(--edge)}
@media(max-width:1200px){.sidebar{width:236px}.workspace{margin-left:236px}.hcp-job-layout{grid-template-columns:260px minmax(0,1fr);gap:20px}.hcp-workflow{gap:10px}.hcp-step{font-size:14px}.hcp-step small,.hcp-step small i{font-size:13px!important}.hcp-step button{width:40px;height:40px;min-height:40px}#topTools .local-chip{display:none}.record-tools{flex-wrap:wrap}}
@media(max-width:900px){.hcp-job-layout{grid-template-columns:1fr}.hcp-customer-side{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.hcp-customer-side .map-side-link{grid-column:1/-1}.hcp-workflow{overflow:auto}.record-tools{flex-wrap:wrap}#topTools{gap:4px}#topTools .tool-icon{display:none}header{padding:10px 16px}}
@media(max-width:650px){.sidebar{position:static;width:100%;padding:14px}.workspace{margin-left:0}.sidebar nav>a,.sidebar nav summary{font-size:16px}.sidebar-bottom{display:none}.hcp-customer-side{display:block}main{padding:20px 16px}.hcp-record-heading h1{font-size:28px}.hcp-page-title{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}.hcp-step{min-width:82px}.hcp-workflow{justify-content:start}.hcp-section .money-strip{grid-template-columns:1fr;display:grid}.segment-tab-wrap{flex-basis:260px}.global-search input{min-width:0}.theme-toggle{padding:8px!important}}
@media print{:root,:root[data-theme=dark]{--ink:#111;--secondary:#333;--canvas:#fff;--surface:#fff;--section:#eee;--soft:#fff;--edge:#555;--divider:#888;--accent:#222;--selected:#eee;color-scheme:light}[data-theme=dark] main a:not(.btn){color:#111!important}.card,.hcp-list-card,.metric{box-shadow:none}.theme-toggle{display:none!important}}

/* HCP measurements read from Home, Jobs and job detail on 2026-10-26.
   Same font stack, using locally available fonts; no runtime font service. */
body{font-weight:400}button,input,select,textarea{font-family:inherit}
.home-greeting{font-size:37.5px;font-weight:400;line-height:45px}
.hcp-record-heading h1{line-height:45px}
.hcp-tabs button{font-size:14px!important;line-height:17.5px;min-height:48px;font-weight:400}
.hcp-section .section-head h2,.hcp-section>h2{line-height:26.4px}
.hcp-job-body>.hcp-section:first-of-type .section-head h2{font-size:16.875px;font-weight:600;line-height:22.5px}
.hcp-section>.section-head,.hcp-section>h2{min-height:64px;padding:16px 18px}
.hcp-step button{padding:7px;min-width:40px}.hcp-step small,.hcp-step small i{font-size:13.125px!important;font-weight:400}
#sideCreate{min-height:40px;font-size:13.125px!important;padding:8px 12px}
.record-tools .primary{height:36px;min-height:36px;padding:6px 16px;font-size:13.125px!important}
.scope-category button,.scope-category .btn,.line-view-toggle button{font-size:14px!important;min-height:32px;padding:4px 10px}
input:not([type=checkbox]),select,textarea{font-size:14px!important;min-height:40px;font-weight:400}
.hcp-list-search{height:40px}.hcp-list-search input{height:36px;min-height:36px}
.hcp-list-card td{height:60px;padding:8px 10px!important;line-height:22px}
.hcp-list-card th{height:42px;padding:8px 10px!important;line-height:22.5px}
.hcp-badge,.pill{font-size:12px;font-weight:600}.customer-card-content p,.billing-contact-card p{font-size:15px!important}
.segment-tab-wrap{flex-basis:270px}.segment-tab-wrap [role=tab]{min-height:78px;font-size:14px!important;font-weight:600}
.segment-tab-wrap small{font-size:13.125px!important}.hcp-step{font-size:13.125px}
.brand>span:last-child{font-size:22px;font-weight:700;letter-spacing:-.5px;line-height:1.25}.brand small{font-size:11px;font-weight:400;letter-spacing:0}

/* Owner feedback: readable search surfaces and inline catalog suggestions. */
.global-search #recordResults{background:var(--surface);color:var(--ink);border:1px solid var(--edge)}
.global-search #recordResults a{color:var(--ink);border-color:var(--divider)}
.global-search #recordResults a small{color:var(--secondary)}
.global-search #recordResults a:hover,.global-search #recordResults a:focus-visible{background:var(--soft);color:var(--ink);outline:2px solid var(--orange);outline-offset:-2px}
.work-name-suggestions{background:var(--surface);border:1px solid var(--edge);border-radius:6px;max-height:270px;overflow:auto;margin:-4px 0 14px}
.work-name-suggestions[hidden]{display:none}
.work-name-suggestions button{display:flex;justify-content:space-between;gap:20px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--divider);border-radius:0;background:var(--surface);color:var(--ink);padding:12px}
.work-name-suggestions button:hover,.work-name-suggestions button:focus-visible{background:var(--soft);outline:2px solid var(--orange);outline-offset:-2px}
.work-name-suggestions small{display:block;color:var(--secondary);max-width:480px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.work-name-suggestions p{padding:12px}

.hcp-customer-side .card.draft-annotations{padding:18px}.draft-annotations>h3{margin-top:0}.draft-annotations p{overflow-wrap:anywhere}.draft-annotations .record-note{padding:12px 0}
