/* UX-NAV-001 v1.1. Semantic extensions of the accepted OlegOS tokens.
   Existing brand, palette and component geometry remain the foundation. */
:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-6:24px;
  --control-height:44px;
}
body, button, input, textarea, select {font-family:var(--font-family);}
button, input, select, textarea {max-width:100%;}
button, select, input:not([type="checkbox"]):not([type="radio"]) {min-height:var(--control-height);}
button:focus-visible, a:focus-visible, summary:focus-visible {outline:3px solid var(--input-focus);outline-offset:3px;}
.company-nav-section summary {cursor:pointer;min-height:44px;display:flex;align-items:center;}
.company-team-chat {display:grid;grid-template-columns:minmax(200px,28%) minmax(0,1fr);gap:var(--space-4);min-width:0;}
.team-chat-sidebar,.team-chat-thread {min-width:0;border:1px solid var(--line);border-radius:var(--radius-control);padding:var(--space-4);background:var(--surface-raised);}
.team-chat-sidebar {display:grid;gap:var(--space-3);align-content:start;}
.team-chat-list {display:grid;gap:var(--space-2);max-height:65vh;overflow:auto;}
.team-chat-conversation {width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;}
.team-chat-conversation[aria-current="true"] {border-color:var(--input-focus);background:var(--sapphire-50);color:var(--text);}
.team-chat-thread {display:flex;flex-direction:column;gap:var(--space-3);height:clamp(320px,calc(100dvh - 240px),800px);min-height:320px;}
.team-chat-thread h2 {margin:0;font-size:1.25rem;line-height:1.3;}
.team-chat-timeline {flex:1;overflow:auto;overscroll-behavior:contain;min-height:0;display:flex;flex-direction:column;gap:var(--space-3);}
.team-chat-message {align-self:flex-start;max-width:90%;padding:var(--space-3);border-radius:var(--radius-control);background:var(--surface-muted);overflow-wrap:anywhere;}
.team-chat-message.own {align-self:flex-end;background:var(--sapphire-50);}
.team-chat-message p {white-space:pre-wrap;margin:var(--space-2) 0;}
.team-chat-message time {font-size:.8rem;color:var(--text-muted);}
/* Team chat uses the shared text composer (.olegos-text-composer, Owner 2026-11-19): text box, Send, status line. */
.team-chat-composer {padding-bottom:env(safe-area-inset-bottom,0px);}
.team-chat-composer .olegos-text-composer-input {min-height:60px;}
.team-chat-delivery {font-size:.875rem;color:var(--text-muted);}
.company-team-chat .team-chat-back {display:none;}
.team-chat-history {display:flex;gap:8px;flex-wrap:wrap;}
.team-chat-unread-badge {margin-left:auto;min-width:24px;border-radius:20px;padding:2px 6px;background:var(--sapphire-600);color:white;text-align:center;font-size:.8rem;}
/* Customer SMS ("Messages") and new-Job ("Jobs") menu badges, distinct from Team Chat. */
.menu-unread-badge {margin-left:auto;min-width:24px;border-radius:20px;padding:2px 6px;background:var(--sapphire-600);color:white;text-align:center;font-size:.8rem;}
.menu-unread-badge[hidden] {display:none;}
.job-notification-feed {display:grid;gap:4px;margin:2px 0 8px 36px;}
.job-notification-entry {min-height:44px;padding:6px 10px;border:1px solid var(--border-subtle,rgba(0,0,0,.12));border-radius:10px;background:transparent;color:inherit;text-align:left;font:inherit;font-size:.85rem;cursor:pointer;overflow-wrap:anywhere;}
.job-notification-mark-all {justify-self:start;min-height:36px;font-size:.8rem;}
.message-diagnostics {margin-top:var(--space-3);font-size:.85rem;color:var(--text-muted);}
.message-diagnostics summary {min-height:44px;cursor:pointer;}
#messages-action.settings-row .messages-badge {position:static;min-width:24px;flex:none;}
#news-player,#global-news-playback,.news-action-play,.news-play-all,#news-detail-play {display:none!important;}
/* Home is the application launcher; the optional dock belongs to other views. */
html.home-active .primary-nav-dock,html.home-active .mobile-bottom-surface {display:none!important;}
html.employee-mode .primary-nav {grid-template-columns:repeat(3,minmax(0,1fr));}
.company-finance-mobile-selector {display:none;}
.company-calls-unavailable {padding:var(--space-3)!important;min-height:0!important;}
.company-calls-unavailable h2 {font-size:1rem;margin:0 0 var(--space-2);}
.company-calls-unavailable p {margin:var(--space-2) 0;}
.company-assigned-day-canvas {position:relative;height:clamp(320px,62dvh,760px);min-width:0;}
.company-assigned-day-canvas .maplibregl-canvas {max-width:none;max-height:none;}
.company-finance-report-catalog {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:var(--space-3);}
.company-finance-report-catalog details {padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-control);min-width:0;}
.company-finance-report-catalog summary {cursor:pointer;font-weight:600;}
@media(max-width:719px) {
 .company-executive-header-launcher {position:relative;flex:none;width:44px;height:44px;box-shadow:none;}
 .company-executive-header-launcher:is([data-state="error"],[data-state="action_proposed"],[data-state="unavailable"])::after {content:"";position:absolute;right:1px;top:1px;width:10px;height:10px;border:2px solid var(--surface-raised);border-radius:50%;background:var(--warning);}
 .company-executive-header-launcher[data-state="unavailable"]::after {background:var(--text-muted);}
 html.company-canonical-active .company-executive-controls[data-state="error"] .company-executive-compact-status {display:none;}
 body:has(.company-dialer-layer) .company-executive-header-launcher,
 body:has(.company-call-screen-layer:not([hidden])) .company-executive-header-launcher {display:none;}
 .company-team-chat {display:block;}
 .team-chat-thread {display:none;}
 .company-team-chat.thread-open .team-chat-sidebar {display:none;}
 .company-chat-page {--team-chat-bottom:0px;}
 html.company-canonical-active .company-chat-page {--team-chat-bottom:96px;}
 .company-team-chat.thread-open .team-chat-thread {display:flex;height:calc(var(--visual-viewport-height,100dvh) - 210px - var(--team-chat-bottom));min-height:220px;}
 .company-team-chat .team-chat-back {display:block;align-self:flex-start;}
 .team-chat-thread {padding:12px;gap:8px;}
 .team-chat-composer {position:relative;flex-shrink:0;}
 .company-finance-mobile-selector {display:block;width:100%;margin-bottom:var(--space-3);}
 .company-finance-tabs {display:none!important;}
 html.company-canonical-active .primary-nav-dock,
 html.company-canonical-active .mobile-bottom-surface {display:none!important;}
 html.company-canonical-active:not(.keyboard-open) .company-bottom-nav-dock {display:block!important;}
 html.company-canonical-active.keyboard-open .company-bottom-nav-dock {display:none!important;}
 html.company-canonical-active .company-product-workspace {padding-bottom:calc(92px + var(--safe-bottom));}
 html.keyboard-open .company-chat-page {--team-chat-bottom:0px;}
 html.keyboard-open .company-team-chat.thread-open .team-chat-thread {height:calc(var(--visual-viewport-height,100dvh) - 210px);min-height:180px;}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;}}

.company-finance-more-totals {margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:var(--radius-control);}
.company-finance-more-totals summary {min-height:44px;cursor:pointer;font-weight:600;}
.company-finance-more-totals .company-finance-cards {margin-top:12px;}
.company-finance-card-collected strong,.company-finance-card-margin strong {color:var(--success);}
.company-finance-card-overdue strong {color:var(--danger);}
.company-finance-card-outstanding strong {color:var(--warning);}

/* UX-NAV v1.3 compact Company chooser; business labels only. */
.company-local-heading {padding-bottom:4px;}
.company-selector-controls {margin:0 0 8px;}
.company-selector-controls .company-switcher {display:block;padding:0;}
.company-selector-controls label,.company-selector-controls select {width:100%;min-width:0;}
.company-selector-controls select {height:44px;padding:8px;font-weight:600;}
.company-switcher-status:empty {display:none;}

/* v1.4 §5.4: Home, language, Light / Dark, the assistant microphone and Team
   Chat are one round header button, modeled on Home: same size, border, icon
   weight and hover / focus / active / disabled states in Light and Dark. */
.topbar-actions :is(.header-round-button, .company-executive-header-launcher) {position:relative;display:inline-grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface-raised);color:var(--text);box-shadow:none;font:inherit;line-height:1;cursor:pointer;backdrop-filter:none;-webkit-backdrop-filter:none;transition:background-color .15s ease,border-color .15s ease,transform .1s ease;}
.topbar-actions :is(.header-round-button, .company-executive-header-launcher) svg {width:22px;height:22px;}
.topbar-actions :is(.header-round-button, .company-executive-header-launcher):hover:not(:disabled) {border-color:var(--primary);background:var(--surface-muted);color:var(--primary-text);}
.topbar-actions :is(.header-round-button, .company-executive-header-launcher):focus-visible {outline:2px solid var(--primary);outline-offset:2px;}
.topbar-actions :is(.header-round-button, .company-executive-header-launcher):active:not(:disabled) {transform:scale(.94);background:var(--surface-muted);}
.topbar-actions :is(.header-round-button, .company-executive-header-launcher):disabled {opacity:.45;cursor:not-allowed;}
.topbar-actions :is(.header-round-button, .company-executive-header-launcher)[hidden] {display:none!important;}
.topbar > .global-navigation-toggle {display:inline-grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface-raised);color:var(--text);box-shadow:none;}
.topbar > .global-navigation-toggle svg {width:22px;height:22px;}
.interface-language-code {font-size:.82rem;font-weight:750;letter-spacing:.02em;}
#appearance-cycle .appearance-icon {display:none;}
#appearance-cycle:not([data-appearance="light"]):not([data-appearance="dark"]) .appearance-icon-system,
#appearance-cycle[data-appearance="light"] .appearance-icon-light,
#appearance-cycle[data-appearance="dark"] .appearance-icon-dark {display:block;}
/* The voice state stays visible on the header microphone (its own data-state). */
.topbar-actions .company-executive-header-launcher[data-state="listening"] {border-color:var(--danger);background:var(--danger);color:#fff;}
@media(max-width:719px) {.topbar-actions{gap:4px;}}

/* v1.3: shared header utilities, one scoped assistant and Company chat. */
.topbar {flex-wrap:wrap;}
.topbar-actions {display:flex;gap:4px;align-items:center;max-width:100%;}
#header-team-chat {position:relative;}
#header-team-chat .team-chat-unread-badge {position:absolute;top:-2px;right:-2px;margin:0;min-width:18px;padding:1px 4px;font-size:.65rem;}
.assistant-context {flex-basis:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;color:var(--text-muted);}
.assistant-context:empty {display:none;}
/* The logo is a button (Home): no button chrome, the same lockup. */
button.brand-lockup {margin:0;padding:0;border:0;border-radius:14px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;box-shadow:none;}
button.brand-lockup:focus-visible {outline:2px solid var(--primary);outline-offset:3px;}
button.brand-lockup.is-home {cursor:default;}
.company-executive-header-launcher {position:relative!important;inset:auto!important;flex:none;width:44px;height:44px;box-shadow:none;}
.olegos-overflow-trigger {flex:none;width:44px;min-height:44px;font-size:1.5rem;}
.olegos-action-sheet-items {display:grid;gap:4px;}
@media (min-width:720px) {
 .company-sheet-layer.olegos-anchored-actions {background:transparent;align-items:start;justify-content:start;}
 .olegos-anchored-actions .olegos-sheet {position:fixed;left:var(--action-left,8px);top:var(--action-top,8px);width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;box-shadow:var(--shadow-panel,0 8px 28px #0003);}
 .olegos-anchored-actions .olegos-sheet h2 {font-size:var(--fs-13);color:var(--text-muted);}
}
.olegos-action-sheet-items button {justify-content:flex-start;text-align:left;min-height:48px;white-space:normal;}
@media(max-width:719px) {
 /* One compact row (Owner 2026-10-30): menu · logo (= Home) · actions. The
    buttons look 40px but keep a 44px touch target; nothing wraps or scrolls. */
 .topbar {display:flex;flex-wrap:nowrap;align-items:center;gap:4px;}
 .topbar .brand-lockup {flex:1 1 auto;min-width:0;overflow:hidden;gap:6px;}
 .topbar .brand-lockup > div {min-width:0;}
 .topbar .brand-lockup .wordmark {overflow:hidden;text-overflow:ellipsis;}
 .topbar .topbar-actions {flex:0 0 auto;margin-left:auto;justify-content:flex-end;flex-wrap:nowrap;gap:2px;}
 .topbar .assistant-context {display:none;}
 .topbar-actions :is(.header-round-button, .company-executive-header-launcher) {width:40px;height:40px;min-width:40px;min-height:40px;}
 .topbar-actions :is(.header-round-button, .company-executive-header-launcher)::after {content:"";position:absolute;inset:-2px;border-radius:50%;}
 .topbar-actions :is(.header-round-button, .company-executive-header-launcher) svg {width:20px;height:20px;}
 .topbar > .global-navigation-toggle {width:40px;height:40px;min-width:40px;min-height:40px;}
 .topbar > .global-navigation-toggle svg {width:20px;height:20px;}
 .topbar .brand-symbol {width:34px;height:34px;border-radius:11px;box-shadow:none;}
 .olegos-action-sheet {align-self:end;width:100%;max-height:80dvh;overflow:auto;border-radius:20px 20px 0 0;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));}
 .company-sheet-layer:has(.olegos-action-sheet) {padding:0;align-items:end;}
}

.company-call-history {padding:12px!important;}
.company-call-history-list {display:grid;gap:8px;}
.company-call-date {font-size:.85rem;font-weight:600;color:var(--text-muted);margin:12px 0 2px;}
.company-call-history-item {display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface-raised);min-width:0;}
.company-call-history-item .company-call-history-row {flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:0;background:transparent;padding:12px;text-align:left;}
.company-call-history-row strong,.company-call-history-row small {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-call-history-item .olegos-overflow-trigger {margin-right:4px;}
.company-call-history-controls {display:flex;flex-wrap:wrap;gap:8px;}
.company-call-history-controls input {flex:1;min-width:120px;}
.company-call-history-detail h3 {scroll-margin-block-start:calc(var(--topbar-height,96px) + 72px);}

.company-job-list-controls {display:flex;flex-wrap:wrap;gap:8px;align-items:start;}
.company-job-list-controls input[type=search] {min-width:140px;flex:1;}
.company-job-calendar {min-width:100px;}
.company-job-calendar summary {min-height:44px;padding:10px;border:1px solid var(--line);border-radius:var(--radius-control);cursor:pointer;}
.company-job-calendar input {margin-top:8px;}
.company-job-date-list {display:grid;gap:8px;}
.company-job-month {margin:16px 0 0;color:var(--text-muted);font-size:.9rem;text-transform:capitalize;}
.company-job-timeline-row {display:flex;gap:6px;align-items:flex-start;min-width:0;}
.company-job-day {flex:0 0 42px;color:var(--text-muted);font-size:.8rem;padding-top:12px;}
.company-job-timeline-open {flex:1;min-width:0;display:grid;gap:4px;text-align:left;background:var(--surface-raised);color:var(--text);padding:12px;border:1px solid var(--line);border-left:3px solid var(--primary);border-radius:var(--radius-control);}
.company-job-timeline-open>* {min-width:0;overflow-wrap:anywhere;}
.company-job-timeline-heading {display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.company-job-timeline-row>.olegos-overflow-trigger {align-self:center;}
.company-job-tab-panel[hidden] {display:none!important;}
.company-job-detail-tabs {position:relative;background:var(--surface);margin:0 0 12px;}
@media(max-width:719px) {
 .company-job-list {padding:12px!important;}
 .company-job-list-controls {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;align-items:start;}
 .company-job-list-controls .company-job-calendar {grid-column:1;min-width:0;}
 .company-job-list-controls>button:not(.company-job-list-refresh) {grid-column:2/4;min-width:0;}
 .company-job-list-controls>select {grid-column:1/-1;min-width:0;width:100%;}
 .company-job-list-controls input[type=search] {grid-column:1/3;min-width:0!important;width:100%;}
 .company-job-list-controls .company-job-list-refresh {grid-column:3;width:44px;min-width:44px;padding:6px;font-size:1.4rem;}
 .company-job-calendar summary {padding:10px 4px;font-size:.85rem;}
 .company-intake-page[data-section="jobs"] .company-intake-tabs {display:none;}
 .company-intake-page[data-section="jobs"] .company-intake-project-context {margin:0;font-size:.75rem;}
 .company-job-registry {display:flex;flex-direction:column;gap:8px;}
 .company-job-registry .company-job-creation-gate {order:3;margin:0;}
 .company-job-registry .company-job-list {border:0;box-shadow:none;background:transparent;padding:0!important;}
 .company-job-list>.company-card-heading {display:none;}
 .company-job-list-controls {gap:6px;}
 .company-job-list-controls .company-job-calendar {grid-column:1;}
 .company-job-list-controls>button:not(.company-job-list-refresh) {grid-column:2;}
 .company-job-list-controls>select {grid-column:1/3;}
 .company-job-list-controls>.company-job-list-refresh {grid-column:3;grid-row:1;}
 .company-job-list-controls input[type=search] {grid-column:1/-1;}
 .company-job-month {margin-top:8px;}
}
.company-customer-messages {display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);gap:16px;min-width:0;}
.customer-message-sidebar,.customer-message-thread {min-width:0;display:flex;flex-direction:column;gap:10px;}
.customer-message-list {display:flex;flex-direction:column;gap:6px;max-height:65vh;overflow:auto;}
.customer-message-conversation {display:grid;text-align:start;white-space:normal;}
.customer-message-conversation small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.customer-message-history {display:flex;flex-direction:column;gap:10px;min-height:160px;max-height:55vh;overflow:auto;overscroll-behavior:contain;}
.customer-message {padding:10px 14px;border-radius:14px;background:var(--surface-raised);border:1px solid var(--line);max-width:88%;overflow-wrap:anywhere;}
.customer-message p {margin:0 0 6px;white-space:pre-wrap;}
.customer-message.is-outgoing {align-self:flex-end;}
.customer-message time,.customer-message-delivery {display:block;font-size:.8rem;color:var(--text-muted);}
.customer-message-back {display:none;}
.company-template-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.company-template-controls textarea,.company-template-controls details,.company-template-controls p {grid-column:1/-1;min-width:0;}
.company-template-controls textarea {width:100%;resize:vertical;}
.company-template-preview {padding:12px;border-radius:var(--radius-control);background:var(--surface-muted);overflow-wrap:anywhere;}
@media(max-width:719px){
 .company-customer-messages{display:block;}
 .company-customer-messages.has-thread .customer-message-sidebar{display:none;}
 .customer-message-back{display:block;align-self:flex-start;}
 .customer-message-history{max-height:45dvh;}
}

/* The Job uses the existing scoped route-plan map, never a decorative pin. */
.company-job-location-map {margin:0 0 12px;min-width:0;overflow:hidden;border-radius:var(--radius-card,12px);}
.company-job-location-map .company-assigned-day-canvas {height:220px;min-height:180px;}
.company-job-location-map .company-state-surface {padding:12px;margin:0;}
.company-job-location-map>.company-empty-copy {margin:0;padding:8px;overflow-wrap:anywhere;}
.company-job-location-map:empty {display:none;}
.company-job-location-map {position:relative;margin:0;}
.company-job-map-expand {position:absolute;top:8px;right:8px;z-index:2;width:44px;min-width:44px;min-height:44px;padding:0;font-size:1.2rem;background:var(--surface);}
.company-job-map-overlay {position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;gap:8px;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));background:var(--surface);}
.company-job-map-close {align-self:flex-end;min-height:44px;}
.company-job-map-full {flex:1;min-height:0;border-radius:var(--radius-card,12px);}
.company-job-map-full .company-assigned-day-canvas {height:100%;min-height:240px;}
/* Job card: one header bar, then compact sequential rows (Workiz-style). */
.company-job-header {display:flex;align-items:center;gap:4px;min-width:0;margin:0 0 8px;}
.company-job-header .company-job-back {flex:none;width:44px;min-width:44px;min-height:44px;padding:0;margin:0;font-size:1.3rem;border:0;background:transparent;}
.company-job-title-group {flex:1;display:flex;align-items:center;gap:4px;min-width:0;}
.company-job-title {margin:0;font-size:var(--type-section,1.15rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.company-job-copy {flex:none;width:36px;min-width:36px;min-height:36px;padding:0;border:0;background:transparent;color:var(--text-muted);}
.company-job-header .olegos-overflow-trigger {margin-left:auto;}
.company-job-header .company-job-record-actions {display:flex;flex-wrap:wrap;gap:6px;}
.company-job-summary {padding:0;overflow:hidden;}
.company-job-rows {display:flex;flex-direction:column;}
.company-job-row {display:flex;align-items:center;gap:8px;min-width:0;padding:0 12px;border-bottom:1px solid var(--line);}
.company-job-row:last-child {border-bottom:0;}
.company-job-row-main {flex:1;display:flex;align-items:center;gap:8px;min-width:0;min-height:56px;padding:10px 0;margin:0;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;text-align:start;text-decoration:none;cursor:default;}
button.company-job-row-main,a.company-job-row-main {cursor:pointer;}
.company-job-row-text {flex:1;display:flex;flex-direction:column;gap:2px;min-width:0;}
.company-job-row-label {font-size:.78rem;color:var(--text-muted);}
.company-job-row-value {min-width:0;overflow-wrap:anywhere;}
.company-job-row-hint {font-size:.85rem;color:var(--primary);}
.company-job-row-chevron {flex:none;color:var(--text-muted);font-size:1.3rem;line-height:1;}
.company-job-row[data-row="address"] .company-job-row-value {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-job-row[data-row="description"] .company-job-row-value {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-line;}
.company-job-row[data-row="description"][data-expanded="true"] .company-job-row-value {display:block;-webkit-line-clamp:unset;}
.company-job-round-action {flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;border-radius:999px;font-size:.85rem;text-decoration:none;}
.company-job-rows>.company-job-location-map {border-radius:0;}
.company-job-rows>.company-job-location-map {border-bottom:1px solid var(--line);}
.company-job-rows>.company-job-location-map .company-assigned-day-canvas {height:160px;min-height:140px;}
.company-job-primary-action {display:block;width:calc(100% - 24px);margin:12px;}
.company-job-summary>.company-source-lineage {margin:0 12px 12px;}
/* Timeline: filter chips, search, newest-first items, sticky note composer. */
.company-job-timeline {display:flex;flex-direction:column;gap:8px;min-width:0;}
.company-job-timeline-filters {display:flex;gap:6px;overflow-x:auto;padding:2px 0;}
.company-job-timeline-chip {flex:none;min-height:36px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface-raised);color:var(--text);font:inherit;}
.company-job-timeline-chip[aria-pressed="true"] {border-color:var(--primary);background:var(--primary-soft);color:var(--text);}
.company-job-timeline-search {width:100%;min-height:44px;}
.company-job-timeline-items {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;}
.company-job-timeline-item {padding:10px 2px;border-bottom:1px solid var(--line);min-width:0;}
.company-job-timeline-item[hidden] {display:none;}
.company-job-timeline-meta {display:flex;align-items:baseline;gap:8px;min-width:0;}
.company-job-timeline-actor {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-job-timeline-time {flex:none;margin-left:auto;font-size:.8rem;color:var(--text-muted);text-align:end;}
.company-job-timeline-sentence,.company-job-timeline-detail {margin:4px 0 0;overflow-wrap:anywhere;}
.company-job-timeline-detail {color:var(--text-muted);white-space:pre-line;}
.company-job-timeline-signature {display:block;max-width:220px;max-height:90px;margin-top:6px;background:#fff;border:1px solid var(--line,#ddd);border-radius:8px;object-fit:contain;}
.company-job-timeline-empty[hidden] {display:none;}
.company-job-timeline-composer {position:sticky;bottom:0;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;padding:8px 0 max(8px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);}
.company-job-timeline-composer textarea {width:100%;min-height:44px;resize:vertical;}
.company-job-timeline-composer .company-form-status {grid-column:1/-1;margin:0;}
.company-job-timeline-composer .company-form-status:empty {display:none;}
.company-job-message-draft {display:grid;gap:12px;min-width:0;}
.company-job-message-draft textarea {width:100%;min-width:0;}
.company-job-calendar[open] {flex-basis:100%;}
.company-job-month-picker {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;}
.company-job-month-picker>span {text-align:center;min-width:0;}
.company-job-calendar-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;}
.company-job-calendar-day {position:relative;min-height:44px;min-width:0;border:1px solid transparent;background:var(--surface-raised);color:var(--text);border-radius:var(--radius-control);padding:6px 0;}
.company-job-calendar-day[aria-pressed=true] {border-color:var(--primary);background:var(--primary-soft);}
.company-job-calendar-marker {position:absolute;inset:auto 0 0;text-align:center;color:var(--primary);font-size:1rem;line-height:12px;}
@media(max-width:719px){.company-job-list-controls .company-job-calendar[open]{grid-column:1/-1;}}

/* Own compensation is a record stack, never the horizontal list/action row. */
.company-my-earnings-records{display:grid;gap:var(--space-3,12px);min-width:0}
.company-earnings-record{display:grid;gap:var(--space-2,8px);min-width:0;padding:var(--space-3,12px);border:1px solid var(--line);border-radius:var(--radius-control);overflow-wrap:anywhere}
.company-earnings-record p{margin:0}

/* A disclosure's chevron is decoration, not a second WebKit AX button.
   Keep the native summary's full accessible label and 44px target. */
html.company-canonical-active .company-page summary:not(:has(> *))::before{
 content:"";width:7px;height:7px;flex:0 0 7px;border-top:1.5px solid currentColor;
 border-right:1.5px solid currentColor;transform:rotate(45deg);
}
html.company-canonical-active .company-page details[open] > summary:not(:has(> *))::before{transform:rotate(135deg)}
/* Calls search keeps a readable row when translated filter labels are long. */
@media (max-width: 719px) {
  html.company-canonical-active .company-page .company-call-history-controls {display:grid;grid-template-columns:minmax(0,1fr) auto;}
  html.company-canonical-active .company-page .company-call-history-controls input {grid-column:1 / -1;width:100%;min-width:0;}
  html.company-canonical-active .company-page .company-call-history-controls select {width:100%;min-width:0;}
}
.company-worker-sms-contact > summary { min-height:44px; padding:10px 0; cursor:pointer; }
.company-worker-sms-form { display:grid; gap:12px; min-width:0; }
.company-worker-sms-field { display:grid; gap:6px; min-width:0; }
.company-worker-sms-field > :is(input:not([type=checkbox]),select) { width:100%; min-width:0; min-height:44px; box-sizing:border-box; font:inherit; }
.company-worker-sms-field:has(input[type=checkbox]) { grid-template-columns:minmax(0,1fr) 44px; align-items:center; }
.company-worker-sms-field > input[type=checkbox] { width:44px; height:44px; margin:0; }
.company-worker-sms-form > button { justify-self:start; min-height:44px; }

/* Job Finance tab (Workiz-style): summary card on a light surface, then
   full-width collapsible rows with a chevron and a "+" for the add flow. */
.company-job-money-summary { display:grid; gap:var(--space-2); padding:var(--space-4); border-radius:var(--radius-control); background:var(--surface-muted); min-width:0; }
.company-job-money-client { margin:0; font-size:1.1rem; font-weight:700; overflow-wrap:anywhere; }
.company-job-money-figures { display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-4); align-items:baseline; }
.company-job-money-figures p { margin:0; }
.company-job-money-total { font-weight:600; }
.company-job-money-summary .company-job-money-balance { padding:0; background:none; font-weight:600; }
.company-job-money-summary .company-job-money-balance-due { color:var(--warning); }
.company-job-money-summary .company-job-money-balance-clear { color:var(--success); }
.company-job-money-summary-actions { display:flex; flex-wrap:wrap; gap:var(--space-2); }
.company-job-money-primary { flex:1 1 100%; }
.company-job-money-section { gap:0; border-top:1px solid var(--line); min-width:0; }
.company-job-money-section-head { flex-wrap:nowrap; min-height:var(--control-height); }
.company-job-money-section-title { flex:1 1 auto; min-width:0; margin:0; font-size:1rem; }
.company-job-money-toggle { display:flex; align-items:center; gap:var(--space-2); width:100%; padding:var(--space-2) 0; border:0; background:none; color:var(--text); font:inherit; font-weight:600; text-align:left; cursor:pointer; }
.company-job-money-chevron { display:inline-block; width:1em; color:var(--text-muted); transition:transform .15s ease; }
.company-job-money-section.is-open .company-job-money-chevron { transform:rotate(90deg); }
.company-job-money-add { flex:0 0 auto; min-width:var(--control-height); padding:0; font-size:1.3rem; line-height:1; }
.company-job-money-section-body { display:grid; gap:var(--space-2); padding-bottom:var(--space-3); min-width:0; }
.company-job-money-section-body[hidden] { display:none; }
.company-job-money-items { display:grid; gap:var(--space-2); }
.company-job-money-item { display:grid; grid-template-columns:40px minmax(0,1fr) auto auto; align-items:center; gap:var(--space-3); padding:var(--space-2) 0; border-bottom:1px solid var(--line); }
.company-job-money-thumb { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; background:var(--surface-muted); color:var(--text-muted); font-weight:700; }
.company-job-money-item-text { display:grid; gap:2px; min-width:0; }
.company-job-money-item-source { justify-self:start; font-size:.78rem; font-weight:600; color:var(--accent, #1f5fbf); background:color-mix(in srgb, var(--accent, #1f5fbf) 10%, transparent); border-radius:999px; padding:1px 8px; }
.company-job-money-replace-list { margin:6px 0 10px; padding-left:18px; }
.company-job-money-item-name { font-weight:600; overflow-wrap:anywhere; }
.company-job-money-item-price { white-space:nowrap; }
.company-job-money-item-more { min-width:var(--control-height); padding:0; font-size:1.2rem; }
.company-job-money-totals { display:grid; gap:var(--space-1); padding:var(--space-3); border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface); }
.company-job-money-total-row { display:flex; justify-content:space-between; gap:var(--space-3); }
.company-job-money-total-row.is-total { padding-top:var(--space-2); border-top:1px solid var(--line); }
.company-job-money-section-body :is(.company-job-money-payments-list, .company-job-money-time-list, .company-job-money-refunds) { display:grid; gap:var(--space-2); margin:0; padding:0; list-style:none; }
.company-job-money-payments-list > .company-job-money-payment, .company-job-money-time-list > .company-job-money-time-entry { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:var(--space-3); padding:var(--space-2) 0; border-bottom:1px solid var(--line); }
.company-job-money-time-list > .company-job-money-time-entry { grid-template-columns:minmax(0,1fr) auto; }
.company-job-money-method-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--surface-muted); color:var(--text-muted); font-weight:700; }
.company-job-money-payment-main { display:grid; gap:2px; min-width:0; }
.company-job-money-payment-side { display:grid; justify-items:end; gap:var(--space-1); }
.company-job-money-payment-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:var(--space-2); }
.company-job-money-collect { display:grid; gap:var(--space-1); }
.company-job-money-doc-title { justify-content:space-between; }
.company-job-money-doc-meta { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); }
.company-send-recipient-line { margin:0; display:grid; gap:2px; overflow-wrap:anywhere; }
.company-send-new-address:empty, .company-send-hint:empty { display:none; }
@media (max-width:520px) {
  .company-job-money-item { grid-template-columns:32px minmax(0,1fr) auto auto; gap:var(--space-2); }
  .company-job-money-thumb { width:32px; height:32px; }
}
/* Branded estimates (0240): Workiz estimate screen, ⋮ sheet, preview pages,
   Company logo card and the Company mark in the Workspace menu. */
.company-estimate-wz-bar { display:flex; align-items:center; gap:var(--space-2); min-height:var(--control-height); }
.company-estimate-wz-back, .company-estimate-wz-more { flex:0 0 auto; min-width:var(--control-height); min-height:var(--control-height); padding:0; border:0; background:none; color:var(--text); font-size:1.5rem; line-height:1; cursor:pointer; }
.company-estimate-wz-titles { flex:1 1 auto; min-width:0; display:grid; gap:2px; }
.company-estimate-wz-title { margin:0; font-size:1.15rem; overflow-wrap:anywhere; }
.company-estimate-wz-titles p { margin:0; }
.company-estimate-wz-status { display:flex; align-items:center; gap:var(--space-2); width:100%; min-height:var(--control-height); padding:var(--space-2) var(--space-3); border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface); color:var(--text); font:inherit; text-align:left; cursor:pointer; }
.company-estimate-wz-status strong { flex:1 1 auto; }
.company-estimate-wz-dot { width:10px; height:10px; border-radius:50%; background:var(--text-muted); }
.company-estimate-wz-status.is-info .company-estimate-wz-dot { background:var(--sapphire-500); }
.company-estimate-wz-status.is-success .company-estimate-wz-dot { background:var(--success); }
.company-estimate-wz-status.is-danger .company-estimate-wz-dot { background:var(--danger); }
.company-estimate-wz-chevron { color:var(--text-muted); font-size:1.2rem; }
.company-estimate-wz-pill { justify-self:start; padding:1px 8px; border-radius:999px; background:var(--surface-muted); color:var(--text-muted); font-size:.7rem; font-weight:700; letter-spacing:.04em; }
.company-estimate-wz-facts { margin-top:var(--space-2); }
.company-estimate-wz-bottom { position:sticky; bottom:0; z-index:2; display:flex; gap:var(--space-2); padding:var(--space-3) 0 calc(var(--space-3) + var(--safe-bottom, 0px)); background:var(--surface); border-top:1px solid var(--line); }
.company-estimate-wz-bottom:empty { display:none; }
.company-estimate-wz-bottom .company-button { flex:1 1 0; min-width:0; }
.company-estimate-wz-menu-list { display:grid; gap:0; }
.company-estimate-wz-menu-item { min-height:var(--control-height); padding:var(--space-3) var(--space-2); border:0; border-bottom:1px solid var(--line); background:none; color:var(--text); font:inherit; text-align:left; cursor:pointer; }
.company-estimate-wz-menu-item.is-cancel { color:var(--text-muted); border-bottom:0; text-align:center; }
.company-estimate-wz-menu-item.is-danger { color:var(--danger); }
.company-estimate-wz-menu-item.is-disabled { opacity:.5; cursor:not-allowed; border-bottom:0; }
.company-estimate-wz-menu-note { margin:0; padding:0 var(--space-2) var(--space-3); border-bottom:1px solid var(--line); }
.company-button.company-button-danger { background:var(--danger); border-color:var(--danger); color:#fff; }
.company-document-preview-pages { display:grid; gap:var(--space-3); max-height:70vh; overflow:auto; padding:var(--space-2); background:var(--surface-muted); border-radius:var(--radius-control); }
.company-document-preview-page { display:block; width:100%; height:auto; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.18); }
.company-logo-preview { display:grid; justify-items:start; gap:var(--space-1); }
.company-logo-preview-image { max-width:min(240px, 100%); max-height:96px; width:auto; height:auto; object-fit:contain; background:#fff; border:1px solid var(--line); border-radius:var(--radius-control); padding:var(--space-2); }
.company-document-terms-input { min-height:10rem; }
.company-switcher label { display:flex; align-items:center; gap:var(--space-2); }
.company-switcher-mark { flex:0 0 auto; display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:var(--surface-muted); color:var(--text-muted); font-weight:700; font-size:.85rem; overflow:hidden; }
.company-switcher-mark.has-logo { background:#fff; }
.company-switcher-logo { width:100%; height:100%; object-fit:contain; }
.company-switcher select { min-width:0; flex:1 1 auto; }

/* Workspace Today, side-menu header and Help (Owner directive 2026-10-26). */
.company-local-heading {min-height:44px;padding:6px 6px 10px;}
.company-local-identity {display:flex;align-items:center;gap:8px;min-width:0;}
.company-sidebar-logo {flex:0 0 auto;width:24px;height:24px;border-radius:6px;overflow:hidden;}
.company-sidebar-logo[hidden],.company-sidebar-logo:empty {display:none;}
.company-sidebar-logo img {display:block;width:100%;height:100%;object-fit:contain;}
/* The Company logo fits its slot whole (a round or wide logo is never
   cropped by the 28px switcher mark inside the 32px menu slot). */
.company-sidebar-logo {width:32px;height:32px;border-radius:8px;}
.company-sidebar-logo .company-switcher-mark {width:100%;height:100%;border-radius:inherit;}
.company-sidebar-logo .company-switcher-mark.has-logo {background:transparent;}
.company-local-title {display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:750;}
.company-local-role {color:var(--text-muted);font-weight:600;}
.company-local-role::before {content:" · ";}
.company-home-return {margin:8px 0;}
.company-selector-controls[hidden] {display:none;}
.company-selector-controls select {height:36px;padding:4px 8px;font-size:13px;}
.company-help-glyph {font-size:13px;font-weight:800;}
.company-help-link {margin-top:6px;}
.company-logout-link {margin-top:6px;}
.company-logout-link .company-nav-label {color:var(--danger, #b42318);}
.company-account-deletion-link {margin-top:6px;text-decoration:none;}
.company-nav-copy {display:grid;gap:1px;min-width:0;}
.company-nav-hint {color:var(--text-muted);font-size:11px;line-height:1.25;}
/* One compact title: the side menu already names Company · Role on desktop. */
.company-heading-title {display:flex;align-items:center;gap:8px;min-width:0;}
.company-heading-title h1 {min-width:0;}
.company-context-line {margin:0;color:var(--text-muted);font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media (min-width:1080px) {html.company-canonical-active .company-context-line {display:none;}}
.company-section-help {flex:0 0 auto;display:inline-grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface-raised);color:var(--text-muted);font:italic 700 14px/1 Georgia,"Times New Roman",serif;cursor:pointer;}
.company-section-help:hover,.company-section-help:focus-visible {color:var(--sapphire-600);border-color:var(--sapphire-400);}
@media (pointer:coarse) {.company-section-help {position:relative;}.company-section-help::after {content:"";position:absolute;inset:-8px;}}
.company-help-sheet p {margin:0;}
.company-help-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:4px;}
.company-help-page {display:grid;gap:12px;max-width:820px;}
.company-help-lede {margin:0;color:var(--text-muted);}
.company-help-section {display:grid;gap:4px;}
.company-help-section h2 {margin:0 0 4px;font-size:var(--fs-17,1.06rem);}
.company-help-faq {border-top:1px solid var(--line);padding:8px 0;}
.company-help-faq summary {cursor:pointer;font-weight:700;min-height:28px;}
.company-help-faq p {margin:6px 0 0;color:var(--text-muted);}
.company-help-setup-item {border-top:1px solid var(--line);padding:8px 0;}
.company-help-setup-item summary {cursor:pointer;font-weight:700;min-height:28px;}
.company-help-setup-path {margin:6px 0 0;font-weight:600;}
.company-help-setup-steps {margin:6px 0 8px;padding-left:20px;color:var(--text-muted);}
/* Today: the day's visits first, attention beside them on wide screens. */
.company-today-main,.company-today-side {display:grid;gap:12px;min-width:0;align-content:start;}
.company-today-side:not(:has(> :not([hidden]))) {display:none;}
html.company-canonical-active .company-product-shell .company-today-layout {grid-template-columns:minmax(0,1fr);}
@media (min-width:900px) {
  html.company-canonical-active .company-product-shell .company-today-layout:has(> .company-today-side > :not([hidden])) {grid-template-columns:minmax(0,1.55fr) minmax(280px,.85fr);align-items:start;}
}
html.company-canonical-active .company-product-shell .company-today-layout > * {grid-column:auto;grid-row:auto;}
html.company-canonical-active .company-product-shell .company-today-layout > .company-today-work-line,
html.company-canonical-active .company-product-shell .company-today-layout > .company-performance-card {grid-column:1 / -1;}
.company-today-side .company-attention-card {grid-row:auto;}
.company-today-day {margin:8px 0 2px;color:var(--text-muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;}
.company-today-visit {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"time status" "title avatar" "ref avatar" "address avatar";align-items:center;gap:2px 10px;width:100%;margin:6px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);color:var(--text);text-align:left;font:inherit;cursor:pointer;}
.company-today-visit:hover,.company-today-visit:focus-visible {border-color:var(--sapphire-400);}
html.company-canonical-active .company-product-workspace .company-today-visit {padding:10px 12px;border-radius:12px;}
.company-today-visit > .company-today-visit-time {grid-area:time;font-size:15px;font-weight:800;}
.company-today-visit > .company-source-state {grid-area:status;justify-self:end;}
.company-today-visit > .company-today-item-title {grid-area:title;grid-column:auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.company-today-visit-service {color:var(--text-muted);}
.company-today-visit > .company-today-visit-ref {grid-area:ref;color:var(--text-muted);font-size:11px;font-weight:750;letter-spacing:.04em;}
.company-today-visit > .company-today-visit-address {grid-area:address;display:flex;align-items:center;gap:4px;min-width:0;color:var(--text-muted);font-size:13px;}
.company-today-visit-address > span {min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.company-schedule-avatar {position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:color-mix(in srgb, var(--sapphire-50) 85%, var(--surface-raised));color:var(--sapphire-600);font-size:.7rem;font-weight:800;}
.company-schedule-avatar.is-unassigned {border:1px dashed var(--line-strong, var(--line));background:transparent;color:var(--text-muted);}
.company-today-visit-address .company-schedule-icon {flex:0 0 auto;width:14px;height:14px;}
.company-today-visit > .company-today-visit-avatar {position:static;grid-area:avatar;align-self:end;justify-self:end;}
.company-today-work-line {display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:4px 2px;color:var(--text-muted);font-size:13px;}
.company-today-work-line[hidden] {display:none;}
.company-today-work-fact {font-weight:650;}
.olegos-today-money-quiet {padding-block:10px;}
.olegos-today-money-quiet .company-card-heading-row {margin:0;border:0;padding:0;}

/* ==========================================================================
   Bottom sheet (shell.ui.bottomSheet) and the Workiz-pattern Job card
   (Owner feedback 2026-10-27): compact rows, one bottom sheet per edit.
   ========================================================================== */
.company-sheet-layer.olegos-bsheet-layer {display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:0;background:rgba(3,13,28,.42);}
.olegos-bsheet {position:relative;display:flex;flex-direction:column;width:100%;max-width:640px;max-height:min(88dvh,calc(100dvh - 24px));overflow:hidden;border-radius:20px 20px 0 0;background:var(--surface-raised);color:var(--text);box-shadow:0 -12px 40px rgba(5,20,43,.22);transform:translateY(24px);opacity:.6;transition:transform .2s ease,opacity .2s ease;outline:none;}
.olegos-bsheet-layer.is-open .olegos-bsheet {transform:none;opacity:1;}
.olegos-bsheet-full .olegos-bsheet {height:calc(100dvh - max(32px,env(safe-area-inset-top,0px) + 12px));max-height:none;}
.olegos-bsheet-screen .olegos-bsheet {height:100dvh;max-height:none;max-width:none;border-radius:0;padding-top:env(safe-area-inset-top,0px);}
.olegos-bsheet-handle {flex:none;width:44px;height:5px;margin:8px auto 4px;border-radius:999px;background:var(--line);touch-action:none;}
.olegos-bsheet-handle::after {content:"";display:block;height:28px;margin-top:-12px;}
.olegos-bsheet-header {flex:none;display:flex;align-items:center;gap:var(--space-2);min-height:44px;padding:4px var(--space-4) 0;touch-action:none;}
.olegos-bsheet-title {flex:1;margin:0;font-size:1.15rem;font-weight:700;line-height:1.2;}
.olegos-bsheet-body {flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--space-2) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch;}
.olegos-bsheet-footer {flex:none;display:flex;gap:var(--space-2);padding:var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface-raised);}
.olegos-bsheet-footer[hidden] {display:none;}
.olegos-bsheet-footer:not([hidden]) ~ .olegos-bsheet-body, .olegos-bsheet-body:has(+ .olegos-bsheet-footer:not([hidden])) {padding-bottom:var(--space-3);}
.olegos-bsheet-footer > .company-button {flex:1 1 0;min-width:0;}
.olegos-bsheet-screen .olegos-bsheet-body {padding:0 var(--space-4);}
@media (min-width:720px) {
  .company-sheet-layer.olegos-bsheet-layer {justify-content:center;padding:24px;}
  .olegos-bsheet {max-width:560px;border-radius:20px;max-height:min(80dvh,760px);}
  .olegos-bsheet-full .olegos-bsheet {height:min(80dvh,760px);}
  .olegos-bsheet-screen .olegos-bsheet {max-width:760px;height:calc(100dvh - 48px);border-radius:20px;padding-top:0;}
}
@media (prefers-reduced-motion:reduce) {.olegos-bsheet {transition:none;transform:none;opacity:1;}}

/* Job card header and tabs: back chevron + "Job #3541" in the accent, an
   underlined tab row (Workiz), OlegOS colours. */
.company-job-detail {display:flex;flex-direction:column;min-width:0;}
.company-job-detail .company-job-header {gap:2px;margin:0;padding:0 0 4px;}
.company-job-detail .company-job-header .company-job-back {color:var(--primary-text);}
.company-job-detail .company-job-back .company-job-icon {width:24px;height:24px;}
.company-job-detail .company-job-title {flex:1;color:var(--primary-text);font-size:1.3rem;font-weight:750;}
.company-job-header-send {flex:none;width:44px;min-width:44px;min-height:44px;padding:0;border:0!important;background:transparent!important;color:var(--primary-text)!important;}
.company-job-header-send .company-job-icon {width:24px;height:24px;}
.company-job-detail .company-job-header .olegos-overflow-trigger {margin-left:0;}
html.company-canonical-active .company-job-detail .olegos-tabs.company-job-detail-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;justify-self:stretch;width:100%;margin:0 0 4px;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;}
html.company-canonical-active .company-job-detail .company-job-detail-tabs .olegos-tab {min-height:44px;border-radius:0;background:transparent;color:var(--text-muted);box-shadow:none;}
html.company-canonical-active .company-job-detail .company-job-detail-tabs .olegos-tab:is([aria-selected="true"]) {background:transparent;color:var(--text);box-shadow:inset 0 -3px 0 var(--primary);}
/* Round actions: Start · ETA · Pay · Add note · Attach. */
.company-job-actions-row {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:12px 0 4px;}
.company-job-action {display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;min-height:auto;padding:4px 0;border:0;background:transparent;color:var(--text);font:inherit;font-size:.82rem;cursor:pointer;}
.company-job-action-icon {display:grid;place-items:center;width:52px;height:52px;border:1.5px solid var(--line);border-radius:50%;background:var(--surface-raised);color:var(--text);}
.company-job-action .company-job-icon {width:24px;height:24px;}
.company-job-action:not(:disabled):hover .company-job-action-icon {border-color:var(--primary);color:var(--primary-text);}
.company-job-action:disabled {opacity:.45;cursor:not-allowed;}
.company-job-action-label {max-width:100%;text-align:center;line-height:1.15;overflow-wrap:anywhere;}
.company-job-actions-status:empty {display:none;}
.company-job-actions-status {margin:4px 0;}
/* Rows: a small bold label, the value below, a chevron, a thin divider. */
.company-job-details-tab .company-job-rows {display:flex;flex-direction:column;margin:4px 0 0;}
.company-job-details-tab .company-job-row {display:block;padding:12px 0;border-bottom:1px solid var(--line);}
.company-job-details-tab .company-job-row[hidden] {display:none;}
.company-job-row-head {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 4px;}
.company-job-details-tab .company-job-row-label {font-size:.85rem;font-weight:700;color:var(--text);}
.company-job-row-link {min-height:auto!important;padding:0;border:0;background:transparent;color:var(--primary-text);font:inherit;font-size:.85rem;font-weight:650;cursor:pointer;}
.company-job-row-line {display:flex;align-items:center;gap:8px;min-width:0;}
.company-job-details-tab .company-job-row-main {flex:1;display:flex;align-items:center;gap:10px;min-width:0;min-height:36px;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:1rem;text-align:start;}
.company-job-row-icon {flex:none;display:grid;place-items:center;width:24px;color:var(--text-muted);}
.company-job-row-icon .company-job-icon {width:22px;height:22px;}
.company-job-details-tab .company-job-row-value {flex:1;min-width:0;overflow-wrap:anywhere;}
.company-job-details-tab .company-job-row[data-row="description"] .company-job-row-value {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-line;}
.company-job-details-tab .company-job-row[data-row="address"] .company-job-row-value {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-job-row-count {flex:none;color:var(--text-muted);font-size:.9rem;}
.company-job-details-tab .company-job-row-chevron {flex:none;display:grid;place-items:center;color:var(--text-muted);}
.company-job-row-chevron .company-job-icon {width:20px;height:20px;}
.company-job-details-tab .company-job-round-action {flex:none;display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1.5px solid var(--line);border-radius:50%;background:var(--surface-raised);color:var(--text);}
.company-job-round-action .company-job-icon {width:20px;height:20px;}
.company-job-details-tab .company-job-location-map {margin:8px 0 4px;border-radius:12px;}
.company-job-details-tab .company-job-location-map .company-assigned-day-canvas {height:150px;min-height:130px;}
.company-job-work-holder[hidden] {display:none;}
.company-job-icon {display:block;width:20px;height:20px;}
/* Sheets of the Job card. */
.company-job-sheet .olegos-bsheet-body {display:flex;flex-direction:column;gap:12px;}
.company-job-sheet-text {margin:0;white-space:pre-line;overflow-wrap:anywhere;font-size:1rem;}
.company-job-sheet-hint {margin:0;color:var(--text-muted);font-size:.88rem;overflow-wrap:anywhere;}
.company-job-note-sheet {display:grid;gap:8px;}
.company-job-note-sheet textarea {width:100%;min-height:120px;resize:vertical;}
.company-job-sheet-bar {display:flex;justify-content:flex-end;}
.company-job-sheet-status:empty {display:none;}
.company-job-sheet-status {margin:0;}
.company-job-sheet-list {display:flex;flex-direction:column;}
/* Job "Text the client" sheet (Owner 2026-11-09): never wider than the
   phone; a long link wraps inside its bubble instead of pushing the sheet
   sideways. Stable at 320-430px. */
.company-job-sheet .olegos-bsheet-body {overflow-x:hidden;}
.company-job-sheet textarea {box-sizing:border-box;max-width:100%;}
.company-job-sms-sheet .olegos-bsheet-body > * {min-width:0;max-width:100%;}
.company-job-sms-sheet p, .company-job-sms-sheet label, .company-job-sms-sheet span {overflow-wrap:anywhere;word-break:break-word;}
.company-job-sms-to, .company-sms-consent-line {margin:0;}
.company-sms-consent, .company-sms-consent-actions {display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;}
.company-job-sms-purpose {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;}
.company-job-sms-purpose .company-job-eta-kind {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-job-sms-sheet .company-job-eta-message-field {min-width:0;}
.company-job-sms-message {display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;resize:vertical;overflow-wrap:anywhere;}
/* One text composer (Owner 2026-11-19, text-composer.js) in the Job, lead and Messages sheets:
   ready texts as ONE horizontally scrolling strip (every chip whole, swipe for more), the text box
   right below it, then Send and its note. In a bottom sheet it is the footer: always at the bottom,
   the thread scrolls above it. Stable at 320-430px and on desktop, light and dark. */
.olegos-text-composer {display:flex;flex-direction:column;gap:8px;min-width:0;width:100%;box-sizing:border-box;}
.olegos-text-composer > * {flex:none;min-width:0;max-width:100%;margin:0;}
.olegos-text-composer[hidden], .olegos-text-composer > [hidden] {display:none;}
.olegos-text-composer-input {display:block;box-sizing:border-box;width:100%;min-height:76px;resize:vertical;overflow-wrap:anywhere;}
.olegos-text-composer-send {width:100%;min-height:44px;}
@media (min-width:720px) {.olegos-text-composer-send {align-self:flex-end;width:auto;min-width:140px;}}
.olegos-text-composer-note:empty {display:none;}
.olegos-text-composer .company-job-sheet-hint {margin:0;}
.olegos-bsheet-footer > .olegos-text-composer {flex:1 1 auto;}
.olegos-bsheet-footer:has(> .olegos-text-composer) {max-height:min(60dvh,420px);overflow-y:auto;overscroll-behavior:contain;}
/* ETA "On my way" (index.js) uses the composer layout as its footer: the message, Reset, the e-mail subject,
   Send and the status line. */
.company-job-eta-composer .company-job-eta-message {min-height:120px;}
.company-job-eta-composer .company-job-eta-reset {align-self:flex-start;}
.company-job-eta-subject[hidden] {display:none;}
.olegos-text-composer .company-job-eta-subject {color:var(--text-muted);overflow-wrap:anywhere;}
.company-job-message-composer .olegos-text-composer-input[hidden] {display:none;}
/* One e-mail composer (Owner 2026-11-19, email-composer.js): the Inbox mail-client form (workspace.css
   .company-mail-compose) for the Inbox, "Email" on the client card and the estimate / invoice Send sheet. */
.olegos-email-composer {box-sizing:border-box;max-width:100%;}
.olegos-email-composer.company-send-preview {padding:0;gap:0;}
.olegos-email-composer .company-mail-compose-status {margin:0;padding:0 var(--sp-12) var(--sp-12);}
.olegos-email-composer .company-mail-compose-status:empty {display:none;}
.olegos-email-composer > .company-send-recipient-line, .olegos-email-composer > .company-send-results,
.olegos-email-composer > .company-finance-field, .olegos-email-composer > .company-send-no-recipient {margin:0 var(--sp-12) var(--sp-12);}
.olegos-email-composer > .company-send-recipient-line {margin-top:var(--sp-4);}
.olegos-email-composer .company-mail-compose-subject-line {padding:12px 0;color:var(--text);}
.olegos-email-composer .company-mail-compose-row > .company-mail-compose-from-address {padding:12px 0;}
.olegos-email-composer .company-send-text {margin:0;}
.olegos-email-composer .company-mail-compose-address:disabled {opacity:1;color:var(--text);-webkit-text-fill-color:var(--text);}
.olegos-email-composer[data-state="sending"] .company-mail-compose-send {opacity:.6;}
@media (max-width:480px) {.olegos-email-composer .company-mail-compose-status {padding:0 var(--sp-8) var(--sp-8);}}
/* One "Call" / "Have Emma call" (Owner 2026-11-19, call-actions.js): phone icon + "Call" first, then
   Emma, the state lines under the row; the same in Leads, the client card, Messages and the Job. */
.olegos-call-actions, .olegos-call-actions-row {display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0;}
.olegos-call-actions {flex-direction:column;align-items:stretch;}
.company-button.olegos-call-button, .company-button.olegos-call-emma {white-space:nowrap;}
.olegos-call-icon {flex:none;width:18px;height:18px;}
.olegos-call-state-line {display:block;color:var(--text-muted);overflow-wrap:anywhere;}
.customer-message-sender-links {display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
/* Ready texts (Owner 2026-11-18, Workiz-style): one horizontally scrolling row of short chips above the text box. */
.company-quick-texts {display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 0 4px;max-width:100%;min-height:42px;white-space:nowrap;flex:none;}
.company-quick-texts::-webkit-scrollbar {display:none;}
.company-quick-texts > button {flex:0 0 auto;width:auto;white-space:nowrap;min-height:36px;padding:6px 14px;border-radius:999px;}
.company-quick-texts > button.company-quick-texts-language {opacity:.75;}
.company-job-sms-history-title {margin:4px 0 0;font-size:1rem;}
.company-job-sms-history {display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;min-width:0;}
.company-job-sms-history[hidden], .company-job-sms-history-title[hidden] {display:none;}
.company-job-sms-item {display:grid;gap:2px;box-sizing:border-box;max-width:88%;min-width:0;padding:8px 12px;border-radius:14px;
  background:var(--surface-raised);border:1px solid var(--line);align-self:flex-end;}
.company-job-sms-item.is-inbound {align-self:flex-start;background:var(--surface-muted);}
.company-job-sms-item-state {font-size:.78rem;color:var(--text-muted);}
.company-job-sms-item.is-inbound .company-job-sms-item-state {color:var(--sapphire-600);font-weight:600;}
.company-job-sms-item-body {white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;min-width:0;}
.company-job-round-action.company-job-sms {position:relative;}
.company-job-sms-reply-badge {position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:9px;
  background:var(--danger);color:#fff;font-size:.72rem;font-weight:700;line-height:18px;text-align:center;}
.company-job-sheet-item {display:flex;align-items:center;min-height:52px;padding:0 2px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:1rem;text-align:start;text-decoration:none;cursor:pointer;}
.company-job-sheet-item:last-child {border-bottom:0;}
.company-job-status-list {display:flex;flex-direction:column;}
.company-job-status-group {margin:0;padding:14px 2px 10px;border-bottom:1px solid var(--line);font-size:1rem;font-weight:700;}
.company-job-status-option {display:flex;align-items:center;gap:12px;min-height:52px;padding:0 2px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;font-size:1rem;text-align:start;cursor:pointer;}
.company-job-status-option.is-nested {padding-left:28px;}
.company-job-status-option:disabled, .company-job-status-option[aria-disabled="true"] {color:var(--text-muted);cursor:default;opacity:.7;}
.company-job-status-name {flex:1;min-width:0;}
.company-job-radio {flex:none;width:22px;height:22px;border:1.5px solid var(--text-muted);border-radius:50%;}
.company-job-status-option[aria-checked="true"] .company-job-radio {border:7px solid var(--primary);}
.company-job-completion-form {display:grid;gap:10px;padding-top:8px;}
.company-job-completion-form[hidden] {display:none;}
.company-job-sheet-search {width:100%;}
.company-job-reschedule-form {display:grid;gap:14px;}
.company-job-reschedule-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.company-job-reschedule-field {display:grid;gap:4px;min-width:0;font-size:.85rem;color:var(--text-muted);}
.company-job-reschedule-field input {width:100%;min-width:0;color:var(--text);}
.company-job-reschedule-field input[readonly] {background:var(--surface-muted);}
.company-job-push {display:flex;align-items:center;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--line);}
.company-job-push-hint {flex:1;min-width:0;color:var(--text-muted);font-size:.85rem;}
.company-job-push-label {font-size:.95rem;}
.company-job-push-button {width:44px;min-width:44px;padding:0;font-size:1.3rem;background:var(--sapphire-50)!important;color:var(--primary-text)!important;border-color:transparent!important;}
.company-job-postpone {display:grid;gap:4px;margin:0;padding:0;border:0;}
.company-job-postpone legend {display:flex;align-items:center;gap:8px;margin:0 0 4px;padding:0;font-weight:700;}
.company-job-postpone legend .company-job-icon {width:22px;height:22px;}
.company-job-postpone-option {display:flex;align-items:center;gap:12px;min-height:44px;cursor:pointer;}
.company-job-postpone-option input {width:22px;height:22px;min-height:auto;margin:0;accent-color:var(--primary);}
.company-job-work-sheet .olegos-work-section, .company-job-work-sheet .company-card {box-shadow:none;}
.company-job-map-screen .olegos-bsheet-body {display:flex;flex-direction:column;gap:8px;padding:12px;}
.company-job-map-screen .company-job-map-close {align-self:flex-end;}
/* Timeline: chips and search on one compact band. */
.company-job-timeline-tools {display:grid;gap:8px;margin:8px 0 0;}
@media (min-width:720px) {.company-job-timeline-tools {grid-template-columns:auto minmax(0,1fr);align-items:center;}}
.company-job-timeline-extras {margin-top:12px;}
@media (min-width:1080px) {
  .company-job-detail {max-width:760px;}
}
html.company-canonical-active .company-job-detail .company-job-header .company-job-back {width:40px;min-width:40px;border:0;background:transparent;box-shadow:none;}
html.company-canonical-active .company-job-details-tab .company-job-round-action {display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1.5px solid var(--line);border-radius:50%;background:var(--surface-raised);color:var(--text);}
html.company-canonical-active .company-job-round-action .company-job-icon {width:20px!important;height:20px!important;}
/* Job Finance tab (Workiz): no outer frame, a grey summary card with
   Total / Balance rows and one big button, one-line sections with a thin +. */
.company-job-finance-tab .company-job-money {padding:12px 0 0;border:0;border-radius:0;background:transparent;gap:0;}
.company-job-finance-tab .company-job-money-summary {margin:0 0 16px;padding:16px;border-radius:12px;background:var(--surface-muted);}
.company-job-finance-tab .company-job-money-client {padding-bottom:10px;border-bottom:1px solid var(--line);}
.company-job-finance-tab .company-job-money-figures {display:grid;gap:4px;}
.company-job-finance-tab .company-job-money-figures > p {display:flex;justify-content:space-between;gap:12px;font-weight:500;color:var(--text);}
.company-job-finance-tab .company-job-money-summary .company-job-money-balance-due .company-job-money-figure-value {color:var(--warning);font-weight:700;}
.company-job-finance-tab .company-job-money-summary .company-job-money-balance-clear {color:var(--text);}
.company-job-finance-tab .company-job-money-summary-actions {display:grid;gap:8px;margin-top:6px;}
.company-job-money-summary-links {display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;}
.company-job-money-link {min-height:36px!important;padding:0;border:0;background:transparent;color:var(--primary-text);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer;}
html.company-canonical-active .company-job-finance-tab .company-job-money-section {border-top:0;border-bottom:1px solid var(--line);}
html.company-canonical-active .company-job-finance-tab .company-job-money-section:first-of-type {border-top:1px solid var(--line);}
.company-job-finance-tab .company-job-money-section-head {min-height:56px;}
.company-job-finance-tab .company-job-money-section-name {font-weight:700;font-size:1.02rem;}
.company-job-finance-tab .company-job-money-chevron {font-size:1.3rem;}
html.company-canonical-active .company-job-finance-tab .company-job-money-add {width:44px;min-width:44px;border:0;background:transparent;box-shadow:none;color:var(--text);font-size:1.6rem;font-weight:300;}
.company-job-money-doc-row {display:flex;align-items:center;gap:4px;border-top:1px solid var(--line);}
.company-job-money-doc-row:first-child {border-top:0;}
.company-job-money-doc-open {flex:1;display:grid;gap:6px;min-width:0;padding:12px 0;border:0;background:transparent;color:var(--text);font:inherit;text-align:start;cursor:pointer;}
.company-job-money-doc-line {display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;}
.company-job-money-doc-line > :first-child {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html.company-canonical-active .company-job-money-row-more {width:40px;min-width:40px;border:0;background:transparent;box-shadow:none;font-size:1.2rem;}
.company-job-money-payment .company-job-money-row-more {grid-column:auto;}
.company-job-money-sheet .olegos-bsheet-body {display:grid;gap:12px;align-content:start;}
.company-job-money-sheet .company-finance-form {display:grid;gap:10px;}
.company-job-money-sheet.company-document-screen .olegos-bsheet-body {padding:0 16px;}
.company-job-money-menu .is-danger {color:var(--danger);}
/* Estimate screen (own screen): items, totals, the fixed bottom bar. */
.company-document-screen .company-document-view {display:grid;gap:12px;padding:0;border:0;background:transparent;}
.company-document-view.is-compact .company-estimate-wz-bar {position:sticky;top:0;z-index:2;background:var(--surface-raised);margin:0 -16px;padding:4px 8px;border-bottom:1px solid var(--line);}
.company-document-view.is-compact .company-estimate-wz-title {color:var(--primary-text);}
.company-document-view.is-compact .company-estimate-wz-bottom {margin:0 -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--surface-raised);}
.company-estimate-wz-details {border-top:1px solid var(--line);padding:4px 0;}
.company-estimate-wz-details > summary {min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--text-muted);font-weight:600;}
.company-estimate-wz-details[open] > summary {color:var(--text);}
.company-estimate-wz-details > * + * {margin-top:8px;}
.company-document-view.is-compact .company-finance-status:empty, .company-document-view.is-compact .company-document-form-host:empty {display:none;}
html.company-canonical-active :is(.company-job-finance-tab, .company-document-screen) :is(.company-job-money-item-more, .company-job-money-add) {width:40px;min-width:40px;border:0;background:transparent;box-shadow:none;color:var(--text);}
html.company-canonical-active .company-document-screen .company-job-money-add {font-size:1.6rem;font-weight:300;}
html.company-canonical-active .company-job-finance-tab .company-job-money-row-more {width:40px;min-width:40px;border:0;background:transparent;box-shadow:none;color:var(--text);}
.company-job-money-sheet .olegos-bsheet-body > .company-finance-form {padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
/* Schedule week columns (pre-#652 layout kept): a narrow day column stacks
   the time over the customer name instead of wrapping the name one letter
   per line. Layout fix only; nothing else on Schedule changes. */
.company-schedule-board[data-period="week"] .company-schedule-item {grid-template-columns:minmax(0,1fr);}
.company-schedule-board[data-period="week"] .company-schedule-item :is(time, strong) {grid-column:1;align-self:start;}
.company-job-action-label {overflow-wrap:normal;word-break:normal;hyphens:manual;}
@media (max-width:420px) {.company-job-action-label {font-size:.74rem;}.company-job-actions-row {gap:0;}}
/* Description: lightweight markdown shown as text nodes. */
.company-job-rich-text {white-space:pre-line;overflow-wrap:anywhere;}
.company-job-rich-text s {color:var(--text-muted);}
.company-job-description-editor {display:grid;gap:8px;}
.company-job-description-editor textarea {width:100%;min-height:160px;resize:vertical;}
.company-job-format-bar {display:flex;align-items:center;gap:4px;}
html.company-canonical-active .company-job-format {width:44px;min-width:44px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--text-muted);font-size:1.1rem;}
.company-job-format.is-bold {font-weight:800;}
.company-job-format.is-italic {font-style:italic;font-family:Georgia,"Times New Roman",serif;}
.company-job-format.is-strike {text-decoration:line-through;}
.company-job-format-bar .company-job-sheet-save {margin-left:auto;}
.company-job-sheet-header-action {min-height:44px;padding:0 4px;border:0;background:transparent;color:var(--primary-text);font:inherit;font-weight:700;cursor:pointer;}
.company-job-type-new {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}
.company-job-type-new[hidden] {display:none;}
/* Mobile: an open Job card owns the top of the screen (Workiz). The global
   app bar and the page heading step aside; "‹" and the dock still lead back. */
@media (max-width:1079px) {
  html.company-canonical-active body:has(.company-job-detail) .topbar {display:none;}
  html.company-canonical-active main:has(.company-job-detail) .company-page-heading {display:none;}
  html.company-canonical-active .company-job-detail .company-job-header {position:sticky;top:0;z-index:6;margin:0 calc(-1 * var(--page-gutter, 16px));
    padding:calc(env(safe-area-inset-top,0px) + 6px) 8px 6px;background:var(--surface-raised);border-bottom:1px solid var(--line);}
  html.company-canonical-active .company-job-detail .olegos-tabs.company-job-detail-tabs {position:sticky;top:calc(env(safe-area-inset-top,0px) + 56px);z-index:5;
    margin:0 calc(-1 * var(--page-gutter, 16px)) 4px;width:auto;background:var(--surface-raised);}
}
@media (max-width:1079px) {
  html.company-canonical-active .company-page:has(.company-job-detail) {padding-top:0;}
  html.company-canonical-active .company-job-detail .olegos-tabs.company-job-detail-tabs {width:calc(100% + 2 * var(--page-gutter, 16px));max-width:none;}
}
html.company-canonical-active .company-job-detail {gap:0;}
html.company-canonical-active .company-job-detail .company-job-tab-panel {padding-top:4px;}
/* The Timeline note composer stays above the floating bottom dock. */
@media (max-width:1079px) {
  .has-company-bottom-nav .company-job-timeline-composer {bottom:calc(88px + env(safe-area-inset-bottom,0px));}
}
html.keyboard-open .has-company-bottom-nav .company-job-timeline-composer {bottom:0;}
/* v1.4 §10.8 Job card: the service-location map above the round actions,
   with the readable address (and Google Maps directions) always visible. */
.company-job-details-tab .company-job-location {margin:8px 0 4px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface-raised);}
.company-job-details-tab .company-job-location[hidden] {display:none;}
.company-job-details-tab .company-job-location .company-job-location-map {position:relative;margin:0;border-radius:0;}
.company-job-details-tab .company-job-location .company-assigned-day-canvas {height:160px;min-height:140px;border-radius:0;}
.company-job-location-map .company-state {min-height:0;padding:12px;}
.company-job-location .maplibregl-ctrl.maplibregl-ctrl-attrib {max-width:75%;margin:0!important;padding:0 4px!important;background:color-mix(in srgb, var(--surface-raised) 80%, transparent)!important;font-size:9px!important;line-height:1.3!important;}
.company-job-location .maplibregl-ctrl-attrib-button {display:none;}
.company-job-map-placeholder {position:relative;display:grid;place-items:center;align-content:center;gap:6px;width:100%;height:160px;min-height:140px;margin:0;padding:0;border:0;border-radius:0;cursor:pointer;color:var(--primary-text);
  background:linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(0deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0/28px 28px, var(--surface-muted);}
.company-job-map-placeholder-pin {display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--surface-raised);box-shadow:0 4px 14px rgba(5,20,43,.18);}
.company-job-map-placeholder-pin .company-job-icon {width:26px;height:26px;}
.company-job-map-placeholder-caption {padding:2px 8px;border-radius:999px;background:var(--surface-raised);color:var(--text-muted);font-size:.78rem;}
.company-job-map-placeholder:focus-visible {outline:2px solid var(--primary);outline-offset:-2px;}
.company-job-location-map .company-job-map-expand {position:absolute;top:8px;right:8px;z-index:2;width:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;}
.company-job-location-address {display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 12px;border-top:1px solid var(--line);color:var(--text);text-decoration:none;}
.company-job-location-address:focus-visible {outline:2px solid var(--primary);outline-offset:-2px;}
.company-job-location-text {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;}
.company-job-location-go {flex:none;display:inline-flex;align-items:center;gap:4px;color:var(--primary-text);font-size:.85rem;font-weight:700;}
.company-job-location-go .company-job-icon {width:18px;height:18px;}
.company-job-address-warning {margin:0;padding:10px 12px;border-top:1px solid var(--line);background:color-mix(in srgb, var(--warning) 14%, var(--surface-raised));color:var(--text);font-size:.9rem;font-weight:600;line-height:1.35;}
/* ETA screen (Workiz "On my way" / "Late") in OlegOS tokens. */
.company-job-eta-screen .olegos-bsheet-header {gap:4px;padding-left:4px;border-bottom:1px solid var(--line);}
.company-job-eta-screen .olegos-bsheet-title {color:var(--primary-text);}
.company-job-eta-screen .company-button.company-job-eta-back {width:44px;min-width:44px;min-height:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--primary-text)!important;}
.company-job-eta-back .company-job-icon {width:24px;height:24px;}
.company-job-eta-screen .olegos-bsheet-body {padding-top:12px;padding-bottom:12px;gap:12px;}
.company-job-eta-segment {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--surface-muted);}
.company-job-eta-kind {min-height:44px;border:0;border-radius:999px;background:transparent;color:var(--text-muted);font:inherit;font-weight:600;cursor:pointer;}
.company-job-eta-kind[aria-checked="true"] {background:var(--surface-raised);color:var(--primary-text);box-shadow:0 1px 4px rgba(5,20,43,.12);}
.company-job-eta-minutes-label {margin:0;font-size:.95rem;}
.company-job-eta-chips {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.company-job-eta-chip {min-width:56px;min-height:44px;padding:0 14px;border:1px solid var(--text-muted);border-radius:8px;background:var(--surface-raised);color:var(--text);font:inherit;cursor:pointer;}
.company-job-eta-chip[aria-checked="true"] {border-color:var(--primary);background:var(--primary);color:var(--on-primary);}
.company-job-eta-custom {width:110px;min-height:44px;}
.company-job-eta-custom[hidden] {display:none;}
.company-job-eta-language, .company-job-eta-message-field {display:grid;gap:4px;font-size:.85rem;color:var(--text-muted);}
.company-job-eta-language select {max-width:220px;color:var(--text);}
.company-job-eta-message {width:100%;min-height:150px;resize:vertical;color:var(--text);font-size:1rem;line-height:1.45;}
.company-job-eta-reset {align-self:flex-start;}
.company-job-eta-reset[hidden] {display:none;}
.company-job-eta-channels {display:grid;gap:4px;margin:0;padding:0;border:0;}
.company-job-eta-channels legend {margin:0 0 4px;padding:0;font-weight:700;}
.company-job-eta-channel-list {display:flex;flex-direction:column;}
.company-job-eta-channel {display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 2px;border-bottom:1px solid var(--line);color:var(--text);}
.company-job-eta-channel:last-child {border-bottom:0;}
.company-job-eta-channel[aria-disabled="true"] {color:var(--text-muted);}
.company-job-eta-channel[aria-disabled="true"] .company-job-radio {border-style:dashed;opacity:.6;}
.company-job-eta-channel .company-job-radio.is-on {border:7px solid var(--primary);}
.company-job-eta-channel-text {display:grid;gap:2px;min-width:0;}
.company-job-eta-channel-text small {color:var(--text-muted);font-size:.82rem;overflow-wrap:anywhere;}
.company-job-eta-channel[aria-disabled="true"] strong {color:var(--text-muted);}
.company-job-eta-send:disabled {opacity:.45;}
.company-job-eta-phone {display:grid;gap:8px;padding-top:8px;border-top:1px solid var(--line);}
.company-job-eta-phone[hidden] {display:none;}
.company-job-eta-phone h3 {margin:0;font-size:.95rem;}
.company-job-eta-phone-links {display:flex;flex-wrap:wrap;gap:8px;}
.company-job-eta-phone-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;}
.company-customer-message-body {display:block;white-space:pre-line;color:var(--text-muted);font-size:.85rem;overflow-wrap:anywhere;}
/* Attach sheet: Open camera / Choose from gallery / Choose a file. */
.company-job-attach-option {gap:14px;}
.company-job-attach-option .company-job-row-icon {color:var(--primary-text);}
.company-job-attach-option:disabled {opacity:.5;cursor:progress;}
.company-job-attach-input {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0;opacity:0;}
.olegos-evidence-files {display:grid;gap:4px;margin-top:8px;}
.olegos-evidence-file {display:flex;align-items:center;min-height:44px;padding:0 4px;border-bottom:1px solid var(--line);color:var(--primary-text);overflow-wrap:anywhere;}
/* Call / message actions carry their icons (Client record, call detail). */
.company-button.company-button-with-icon {display:inline-flex;align-items:center;justify-content:center;gap:6px;}
.company-button-with-icon .company-job-icon {flex:none;width:18px;height:18px;}
/* Sheets stay above the on-screen keyboard: the layer ends where the visible
   viewport ends, so the field and its Save / Send are never covered. */
html.keyboard-open .company-sheet-layer.olegos-bsheet-layer {bottom:var(--keyboard-inset,0px);height:auto;max-height:var(--visual-viewport-height,100dvh);}
html.keyboard-open .olegos-bsheet {max-height:calc(var(--visual-viewport-height,100dvh) - 8px);}
html.keyboard-open .olegos-bsheet-full .olegos-bsheet, html.keyboard-open .olegos-bsheet-screen .olegos-bsheet {height:var(--visual-viewport-height,100dvh);}
html.keyboard-open .olegos-bsheet-body, html.keyboard-open .olegos-bsheet-footer {padding-bottom:12px;}
.olegos-bsheet-body :is(input, select, textarea, button, a) {scroll-margin-bottom:16px;}
/* FIAM Collect payment screen (Owner task 5, Workiz "Collect payment" in OlegOS tokens). */
.company-collect {display:grid;gap:var(--space-3);padding-bottom:calc(var(--space-4) + var(--safe-bottom, 0px));}
.company-collect-bar {display:flex;align-items:center;gap:var(--space-2);min-height:48px;}
.company-collect-nav {width:40px;min-width:40px;border:0;background:transparent;box-shadow:none;font-size:1.5rem;color:var(--text);}
.company-collect-title {margin:0;font-size:1.2rem;}
.company-collect-ref {margin:0;}
.company-collect-banner {display:flex;align-items:center;gap:var(--space-3);padding:var(--space-3);border-radius:var(--radius-control);background:color-mix(in srgb, var(--success) 12%, var(--surface));color:var(--text);}
.company-collect-banner-icon {display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--success);color:#fff;font-weight:700;}
.company-collect-due {display:grid;gap:var(--space-1);}
.company-collect-figure {display:flex;align-items:baseline;gap:2px;margin:0;}
.company-collect-amount {font-size:2.2rem;font-weight:500;}
.company-collect-total {color:var(--text-muted);font-size:1.1rem;}
.company-collect-edit {justify-self:end;margin-top:-44px;border:0;background:transparent;box-shadow:none;color:var(--primary);font-weight:600;}
.company-collect-cards {display:grid;gap:var(--space-2);margin-top:var(--space-2);}
.company-collect-cards .company-button, .company-collect-cards button {width:100%;min-height:52px;border-radius:999px;}
.company-collect .company-collect-cards button[disabled], .company-collect .company-collect-cards .company-collect-tap[disabled] {opacity:1;background:var(--surface-muted);border-color:var(--line);color:var(--text-muted);cursor:not-allowed;box-shadow:none;}
/* Tap to Pay on iPhone (Apple 3.1-3.3, 3.9.1, 5.5): SF Symbol icon rendered by the app, progress, awareness screen. */
.company-collect-tap-icon {width:22px;height:22px;margin-right:8px;vertical-align:-5px;}
.company-collect-cards .company-collect-tap[disabled] .company-collect-tap-icon {opacity:.45;}
.company-collect-tap-progress {display:grid;gap:4px;}
.company-collect-tap-progress[hidden] {display:none;}
.company-collect-tap-progress-bar {width:100%;height:8px;accent-color:var(--primary);}
.company-tap-awareness {position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom));background:var(--surface);}
.company-tap-awareness-panel {display:grid;gap:var(--space-3);width:min(100%,420px);text-align:center;}
.company-tap-awareness-panel .company-collect-tap-icon {justify-self:center;width:56px;height:56px;margin:0;}
.company-tap-awareness-title {margin:0;font-size:1.6rem;}
.company-tap-awareness-actions {display:grid;gap:var(--space-2);}
.company-tap-awareness-actions button {width:100%;min-height:48px;}
.company-tap-settings-actions {display:flex;flex-wrap:wrap;gap:var(--space-2);}
.company-tap-settings .company-card-heading {display:flex;align-items:center;}
.company-tap-settings-web-terms {display:grid;gap:var(--space-2);margin-top:var(--space-3);}
.company-tap-settings-relink-row {display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:48px;padding:var(--space-2) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--text);cursor:pointer;}
.company-tap-settings-relink-row[hidden] {display:none;}
.company-tap-settings-relink-label {flex:1 1 auto;min-width:0;font-weight:500;line-height:1.3;}
/* A drawn checkbox: the native one rendered as a black square in the dark WebView scheme. */
.company-tap-settings-relink-row input[type="checkbox"].company-tap-settings-relink {-webkit-appearance:none;appearance:none;flex:0 0 auto;
  display:grid;place-items:center;width:24px;height:24px;min-height:0;margin:0;padding:0;border:2px solid var(--line-strong,var(--text-muted));
  border-radius:7px;background:var(--surface-raised,var(--surface));cursor:pointer;}
.company-tap-settings-relink-row input[type="checkbox"].company-tap-settings-relink:checked {border-color:var(--primary);
  background:var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;}
.company-tap-settings-relink-row input[type="checkbox"].company-tap-settings-relink:focus-visible {outline:2px solid var(--input-focus,var(--primary));outline-offset:2px;}
.company-collect-reason, .company-collect-method-reason {color:var(--text-muted);font-size:.82rem;line-height:1.3;}
.company-collect-divider {display:flex;align-items:center;gap:var(--space-3);margin:var(--space-3) 0 0;color:var(--text-muted);font-size:.85rem;letter-spacing:.04em;text-transform:uppercase;}
.company-collect-divider::before, .company-collect-divider::after {content:"";flex:1;border-top:1px solid var(--line);}
.company-collect-methods {display:grid;}
.company-collect-method {display:grid;grid-template-columns:32px minmax(0,1fr) 20px;align-items:center;gap:var(--space-3);min-height:56px;padding:var(--space-2) 0;border:0;border-bottom:1px solid var(--line);background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;}
.company-collect-method.is-disabled {cursor:not-allowed;}
.company-collect-method.is-disabled .company-collect-method-label, .company-collect-method.is-disabled .company-collect-method-icon {opacity:.55;}
.company-collect-method-icon {display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--surface-muted);color:var(--text-muted);font-weight:700;}
.company-collect-method-text {display:grid;gap:2px;min-width:0;}
.company-collect-method-label {font-size:1.02rem;}
.company-collect-chevron {color:var(--text-muted);font-size:1.4rem;}
.company-collect-readiness {border:1px solid var(--line);border-radius:var(--radius-control);padding:var(--space-2) var(--space-3);background:var(--surface-raised);}
.company-collect-readiness > summary {min-height:40px;display:flex;align-items:center;cursor:pointer;font-weight:600;}
.company-collect-readiness-head {display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin:var(--space-2) 0;}
.company-collect-readiness-list {display:grid;gap:var(--space-2);margin:0;padding:0;list-style:none;}
.company-collect-readiness-list > li {display:grid;gap:2px;padding-bottom:var(--space-2);border-bottom:1px solid var(--line);}
.company-collect-readiness-row {display:flex;justify-content:space-between;gap:var(--space-2);align-items:center;}
.company-collect-big {margin:var(--space-4) 0 var(--space-2);text-align:center;font-size:2.4rem;font-weight:700;}
.company-collect-note {margin:0;padding:var(--space-2) var(--space-3);border-radius:var(--radius-control);background:color-mix(in srgb, var(--warning) 14%, var(--surface));}
.company-collect-form {display:grid;gap:var(--space-3);}
.company-collect-form input[type="date"], .company-collect-form input[type="text"] {width:100%;min-height:var(--control-height);}
.company-collect-photos {display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3);}
.company-collect-photo {position:relative;display:grid;justify-items:center;gap:var(--space-1);padding:var(--space-3);border:2px dashed var(--line);border-radius:var(--radius-control);background:var(--surface-muted);cursor:pointer;text-align:center;}
.company-collect-photo.is-set {border-style:solid;border-color:var(--success);}
.company-collect-photo-input {position:absolute;inset:0;opacity:0;cursor:pointer;}
.company-collect-photo-preview {display:grid;place-items:center;width:100%;aspect-ratio:16/9;border-radius:8px;background:var(--surface) center/cover no-repeat;color:var(--text-muted);font-size:2rem;}
.company-collect-photo-caption {font-weight:600;}
.company-collect-photo-state {color:var(--text-muted);}
.company-collect-submit {width:100%;min-height:52px;border-radius:999px;}
.company-collect-submit[disabled] {opacity:.55;cursor:not-allowed;}
.company-collect-card-host {display:grid;gap:var(--space-3);}
.company-job-money-check-photos {display:flex;gap:var(--space-2);flex-wrap:wrap;}
/* Estimate screen details (0247, Workiz 07/08). */
.company-estimate-wz-party {display:grid;gap:4px;padding:var(--space-3);border-radius:var(--radius-control);background:var(--surface-muted);}
.company-estimate-wz-party-name {color:var(--primary);}
.company-estimate-wz-party-address {margin:0;color:var(--text);}
.company-estimate-wz-party-job {justify-self:start;padding:var(--space-2) 0 0;border:0;border-top:1px solid var(--line);background:none;color:var(--primary);font:inherit;font-weight:600;cursor:pointer;width:100%;text-align:left;}
.company-estimate-wz-payment-list {display:grid;gap:var(--space-2);margin:0;padding:0;list-style:none;}
.company-estimate-wz-payment {display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:var(--space-2);align-items:center;padding-bottom:var(--space-2);border-bottom:1px solid var(--line);}
.company-estimate-wz-payment > small {grid-column:1 / -1;}
.company-estimate-wz-signature {margin:0;display:grid;gap:4px;}
.company-estimate-wz-signature-image {max-width:100%;max-height:120px;background:#fff;border:1px solid var(--line);border-radius:8px;}
.company-estimate-wz-signature-pad {width:100%;height:auto;aspect-ratio:8/3;background:#fff;border:1px solid var(--line);border-radius:var(--radius-control);touch-action:none;}
.company-estimate-wz-attachment-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:var(--space-2);}
.company-estimate-wz-attachment {position:relative;display:grid;gap:4px;font-size:.85rem;}
.company-estimate-wz-attachment-thumb {width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid var(--line);}
.company-estimate-wz-attachment-remove {position:absolute;top:4px;right:4px;}
.company-document-tax-all, .company-document-deposit {display:grid;grid-template-columns:1fr auto;gap:var(--space-2);align-items:end;}
.company-document-deposit {grid-template-columns:1fr 1fr;}
.company-job-money-add svg {width:22px;height:22px;display:block;margin:auto;}
/* ---- Dispatch board (UX-NAV v1.4 §10.9): technicians in rows, time across,
   one color per technician (with initials and name), status as icon + text. */
.company-board-page {--tech-l:40%;--tech-tint:14%;--board-label:200px;}
html[data-theme="dark"] .company-board-page {--tech-l:66%;--tech-tint:22%;}
@media (prefers-color-scheme:dark) {html[data-theme="system"] .company-board-page {--tech-l:66%;--tech-tint:22%;}}
.company-board-page :is(.company-board-row,.company-board-visit,.company-board-avatar,.company-board-mobile-group,.company-board-mobile-visit,.company-board-ghost,.company-board-pin,.company-board-marker,.company-dayg-visit,.company-dayg-col,.company-dayg-tech,.company-schedule-list-row) {
  --tech:hsl(var(--tech-hue,215) 62% var(--tech-l));}
.company-board-page .is-unassigned,.company-board-pin.is-unassigned {--tech:var(--text-muted);}
.company-board-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 10px;}
.company-board-date-nav,.company-board-tools,.company-board-zoom {display:flex;flex-wrap:wrap;align-items:center;gap:6px;}
.company-board-tools {margin-left:auto;}
.company-board-toolbar .company-button {min-height:40px;}
.company-board-icon-button {min-width:40px;padding:0 10px;font-size:1.15rem;line-height:1;}
.company-board-date {position:relative;display:inline-flex;align-items:center;min-height:40px;padding:0 10px;border:1px solid var(--line);border-radius:12px;cursor:pointer;}
.company-board-date-input {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;}
.company-board-range-tabs {width:auto;}
.company-board-toast {display:flex;align-items:center;gap:10px;position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:70;width:max-content;max-width:calc(100vw - 32px);
  padding:6px 8px 6px 14px;border-radius:14px;background:var(--surface-raised);border:1px solid var(--line);box-shadow:var(--shadow);font-weight:600;}
.company-board-toast[hidden] {display:none;}
.company-board-toast.is-warning {border-color:color-mix(in srgb,var(--warning) 55%,var(--line));}
.company-board-undo {min-height:36px;}
.company-board-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;}
.company-board-layout.has-queue {grid-template-columns:240px minmax(0,1fr);}
.company-board-layout.has-map {grid-template-columns:minmax(0,1fr) minmax(320px,34%);}
.company-board-layout.has-queue.has-map {grid-template-columns:220px minmax(0,1fr) minmax(300px,32%);}
.company-board-layout.has-expanded-map {grid-template-columns:minmax(0,1fr) minmax(360px,52%);}
.company-board-layout.has-queue.has-expanded-map {grid-template-columns:220px minmax(0,1fr) minmax(360px,50%);}
.company-board-layout>[hidden] {display:none;}
.company-board-queue {display:grid;gap:10px;max-height:calc(100dvh - 210px);overflow:auto;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface-raised);}
.company-board-queue-heading {margin:0;font-size:.95rem;}
.company-board-queue-group {display:grid;gap:6px;}
.company-board-queue-group h4 {margin:0;font-size:.78rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;}
.company-board-queue-item {display:grid;gap:2px;width:100%;min-height:44px;padding:8px 10px;text-align:left;border:1px dashed var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;}
button.company-board-queue-item {cursor:pointer;}
.company-board-queue-item small {color:var(--text-muted);}
.company-board-queue-item.is-unscheduled {grid-template-columns:minmax(0,1fr) auto;align-items:center;border-style:solid;}
.company-board-queue-item.is-unscheduled small {grid-column:1;}
.company-board-queue-item.is-unscheduled .company-button {grid-column:2;grid-row:1 / span 2;}
.company-board {min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--surface-raised);overflow:hidden;}
.company-board-note {margin:0;padding:8px 12px;color:var(--text-muted);border-bottom:1px solid var(--line);}
.company-board-scroller {position:relative;overflow:auto;max-height:calc(100dvh - 210px);overscroll-behavior:contain;}
.company-board-scroller:focus-visible {outline:2px solid var(--input-focus);outline-offset:-2px;}
.company-board-grid {display:grid;grid-template-columns:var(--board-label) var(--board-width);width:max-content;min-width:100%;}
.company-board-header,.company-board-row {display:contents;}
.company-board-corner,.company-board-tech {position:sticky;left:0;z-index:3;background:var(--surface-raised);border-right:1px solid var(--line);border-bottom:1px solid var(--line);}
.company-board-corner {top:0;z-index:5;display:grid;align-content:center;gap:2px;padding:6px 12px;min-height:38px;}
.company-board-corner small {color:var(--text-muted);}
.company-board-hours {position:sticky;top:0;z-index:4;height:38px;background:var(--surface-raised);border-bottom:1px solid var(--line);}
.company-board-hour-label {position:absolute;left:var(--x);top:0;bottom:0;padding:10px 6px 0;border-left:1px solid var(--line);font-size:.75rem;font-variant-numeric:tabular-nums;color:var(--text-muted);}
.company-board-tech {display:flex;align-items:center;gap:10px;padding:6px 10px;min-height:var(--board-row-height,64px);box-shadow:inset 4px 0 0 var(--tech);}
.company-board-tech-text {display:grid;min-width:0;}
.company-board-tech-text strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;}
.company-board-tech-text small {color:var(--text-muted);font-size:.74rem;font-variant-numeric:tabular-nums;}
.company-board-tech-off {color:var(--warning)!important;font-weight:700;}
.company-board-avatar {flex:0 0 auto;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--tech);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.02em;}
html[data-theme="dark"] .company-board-avatar {color:#07101e;}
@media (prefers-color-scheme:dark) {html[data-theme="system"] .company-board-avatar {color:#07101e;}}
.company-board-avatar.is-unassigned {background:transparent;border:1.5px dashed var(--text-muted);color:var(--text-muted);}
.company-board-track {position:relative;min-height:var(--board-row-height,64px);border-bottom:1px solid var(--line);cursor:copy;
  background-image:linear-gradient(to right,var(--line) 1px,transparent 1px),linear-gradient(to right,color-mix(in srgb,var(--line) 45%,transparent) 1px,transparent 1px);
  background-size:var(--board-hour) 100%,var(--board-quarter) 100%;}
.company-board-row.is-unassigned .company-board-track {background-color:color-mix(in srgb,var(--surface-muted) 55%,transparent);}
.company-board-track.is-day-off {background-color:color-mix(in srgb,var(--surface-muted) 70%,transparent);}
.company-board-shift {position:absolute;top:0;bottom:0;left:var(--x);width:var(--w);background:color-mix(in srgb,var(--tech) 6%,transparent);}
.company-board-visit {position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);display:grid;align-content:start;gap:1px;overflow:hidden;
  padding:4px 8px 4px 10px;text-align:left;border:1px solid color-mix(in srgb,var(--tech) 45%,var(--line));border-left:5px solid var(--tech);border-radius:8px;
  background:color-mix(in srgb,var(--tech) var(--tech-tint),var(--surface-raised));color:var(--text);font:inherit;font-size:.74rem;line-height:1.3;cursor:grab;touch-action:none;user-select:none;}
.company-board-visit>* {min-height:0;}
.company-board-visit:focus-visible {outline:3px solid var(--input-focus);outline-offset:1px;z-index:2;}
.company-board-visit.is-selected,.company-board-visit.is-hovered {box-shadow:0 0 0 2px var(--tech),var(--shadow);z-index:2;}
.company-board-visit.is-drag-source {opacity:.45;}
.company-board-visit.is-pending {cursor:progress;border-style:dashed;}
.company-board-visit.is-closed {opacity:.62;}
.company-board-visit.has-overlap {border-color:var(--danger);}
.company-board-visit.is-unassigned {border-left-style:dashed;}
.company-board-visit-top {display:flex;gap:6px;align-items:baseline;white-space:nowrap;overflow:hidden;padding-right:12px;}
.company-board-visit-top time {overflow:hidden;text-overflow:ellipsis;}
.company-board-visit-top time {color:var(--text-muted);font-variant-numeric:tabular-nums;}
.company-board-visit-client {font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-board-visit-detail {color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-board-status-chip {display:inline-flex;align-items:center;gap:4px;width:max-content;max-width:100%;font-size:.7rem;font-weight:700;color:var(--text-muted);white-space:nowrap;}
.company-board-status-chip .company-schedule-icon {width:12px;height:12px;flex:0 0 auto;}
.company-board-status-chip:is(.is-en_route,.is-arrived,.is-working) {color:var(--sapphire-600);}
.company-board-status-chip.is-completed {color:var(--success);}
.company-board-status-chip:is(.is-blocked,.is-cancelled) {color:var(--danger);}
.company-board-visit-flag {position:absolute;right:4px;top:3px;display:inline-flex;color:var(--danger);}
.company-board-visit-flag .company-schedule-icon {width:13px;height:13px;}
.company-board-visit-team {position:absolute;right:6px;bottom:4px;font-size:.66rem;font-weight:800;color:var(--text-muted);}
.company-board-visit-saving {position:absolute;right:8px;bottom:4px;font-size:.68rem;font-weight:700;color:var(--text-muted);}
.company-board-resize {position:absolute;top:0;right:0;bottom:0;width:10px;cursor:ew-resize;}
.company-board-resize::after {content:"";position:absolute;top:30%;bottom:30%;right:3px;width:2px;border-radius:2px;background:color-mix(in srgb,var(--tech) 60%,transparent);}
.company-board-grid.is-compact .company-board-visit :is(.company-board-visit-detail,.company-board-status-chip) {display:none;}
.company-board-grid.is-compact .company-board-visit {display:flex;gap:6px;align-items:center;padding-top:2px;}
.company-board-ghost {position:absolute;left:var(--x);top:var(--y);width:var(--w);height:30px;z-index:10;pointer-events:none;display:grid;place-items:center;
  border:2px dashed var(--tech);border-radius:8px;background:color-mix(in srgb,var(--tech) 22%,transparent);font-size:.75rem;font-weight:800;font-variant-numeric:tabular-nums;color:var(--text);}
.company-board-empty {grid-column:1 / -1;margin:0;padding:24px;color:var(--text-muted);}
.company-board-map-panel {position:sticky;top:8px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:6px;height:calc(100dvh - 210px);min-height:420px;
  padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--surface-raised);}
.company-board-map-header {display:flex;flex-wrap:wrap;align-items:center;gap:6px;}
.company-board-map-header strong {margin-right:auto;}
.company-board-map-canvas-host {min-height:0;border-radius:12px;overflow:hidden;}
.company-board-page .company-board-map-canvas {height:100%;min-height:260px;border:0;border-radius:12px;}
.company-board-map-note {margin:0;font-size:.74rem;color:var(--text-muted);}
.company-board-map-legend {display:flex;flex-wrap:wrap;gap:6px 12px;font-size:.74rem;max-height:96px;overflow:auto;}
.company-board-legend-item {display:inline-flex;align-items:center;gap:6px;}
.company-board-legend-item .company-board-avatar {width:22px;height:22px;font-size:.58rem;}
.company-board-legend-missing {color:var(--text-muted);}
html .company-board-page .company-board-pin {min-height:0;}
.company-board-pin {display:grid;place-items:center;min-width:28px;height:28px;padding:0 6px;border:2px solid #fff;border-radius:14px 14px 14px 3px;
  background:var(--tech);color:#fff;font:800 .72rem/1 system-ui,sans-serif;box-shadow:0 2px 6px rgba(0,0,0,.35);cursor:pointer;transform:rotate(0);}
.company-board-pin.is-unassigned {background:#7a8799;}
.company-board-pin:is(.is-selected,.is-hovered) {outline:3px solid var(--input-focus);outline-offset:1px;z-index:3;transform:scale(1.15);}
.company-board-pin:focus-visible {outline:3px solid var(--input-focus);}
.company-map-self-marker {display:block;width:18px;height:18px;border-radius:50%;background:#147df5;border:3px solid #fff;box-shadow:0 0 0 6px rgba(20,125,245,.25);}
.company-board-sheet-facts {display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0 0 12px;}
.company-board-sheet-facts dt {color:var(--text-muted);font-size:.82rem;}
.company-board-sheet-facts dd {margin:0;}
.company-board-sheet-actions {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.company-board-sheet-actions .company-button {min-height:44px;}
.company-board-sheet-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.company-board-sheet-field {display:grid;gap:4px;font-size:.82rem;color:var(--text-muted);}
.company-board-sheet-field :is(input,select) {min-height:44px;}
.company-board-sheet-feedback,.company-board-sheet-form .company-button-primary {grid-column:1 / -1;}
.company-board-sheet-feedback {margin:0;min-height:1.2em;}
.company-board-sheet-feedback.is-conflict {color:var(--danger);font-weight:600;}
.company-board-sheet-form .company-button-primary {min-height:48px;}
.company-board-filter-bulk {display:flex;gap:8px;margin-bottom:10px;}
.company-board-filter-list {display:grid;gap:4px;}
.company-board-filter-item {display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px;cursor:pointer;}
.company-board-filter-item input {width:20px;height:20px;}
.company-board-mobile {display:none;}
/* Phone: the same records as a list grouped by technician; editing uses the
   bottom sheet (no dragging); the map opens full-screen. */
@media (max-width:600px) {
  .company-board-page .company-board-layout {display:block;}
  html.company-canonical-active .company-board-page :is(.company-board,.company-board-queue,.company-board-density,.company-board-zoom,.company-board-queue-toggle) {display:none;}
  .company-board-toast {bottom:calc(104px + env(safe-area-inset-bottom,0px));}
  .company-board-tools {margin-left:0;width:100%;}
  .company-board-tools .company-board-new {margin-left:auto;}
  .company-board-toolbar .company-button {min-height:44px;}
  .company-board-icon-button {min-width:44px;}
  .company-board-mobile {display:grid;gap:14px;}
  .company-board-mobile-group {display:grid;gap:8px;}
  .company-board-mobile-heading {display:flex;align-items:center;gap:10px;margin:0;font-size:.95rem;}
  .company-board-mobile-heading small {margin-left:auto;color:var(--text-muted);font-weight:600;font-size:.78rem;}
  .company-board-mobile-visit {display:grid;gap:3px;width:100%;min-height:64px;padding:10px 12px 10px 14px;text-align:left;font:inherit;color:var(--text);
    border:1px solid var(--line);border-left:5px solid var(--tech);border-radius:12px;background:color-mix(in srgb,var(--tech) 8%,var(--surface-raised));cursor:pointer;}
  .company-board-mobile-visit.is-unassigned {border-left-style:dashed;}
  .company-board-mobile-visit .company-board-visit-top time {color:var(--text);font-weight:700;}
  .company-board-map-panel:not([hidden]) {position:fixed;inset:0;z-index:60;height:auto;min-height:0;border-radius:0;border:0;
    padding:calc(env(safe-area-inset-top,0px) + 8px) 10px calc(env(safe-area-inset-bottom,0px) + 10px);}
  html .company-board-page .company-board-map-panel .company-button {min-height:44px;}
  html.company-canonical-active .company-board-page .company-board-map-expand {display:none;}
  .company-board-sheet-form {grid-template-columns:minmax(0,1fr);}
}
@media (min-width:601px) {html.company-canonical-active .company-board-page .company-board-map-close {display:none;}}

/* ---- Schedule screen (Owner 2026-10-30) --------------------
   Its own compact header (Back · ‹ date › · Today · technicians · options),
   Day / List / Map over the same day, a week strip, a vertical time grid on
   the phone, the map inline, and the floating "+". The platform bar and the
   page heading step aside on a phone, as for the Job card. */
.company-schedule-screen {gap:8px;}
.company-schedule-screen > [hidden] {display:none!important;}
.company-schedule-head {display:grid;gap:6px;position:relative;}
.company-schedule-head-row {display:flex;align-items:center;gap:4px;min-width:0;}
/* Back stands apart (a plain arrow and a divider); ‹ date › is one pill; the
   tools are compact icons. Each control keeps a 44px touch target. */
html.company-canonical-active .company-schedule-back {position:relative;flex:none;display:grid;place-items:center;width:36px;min-width:36px;height:40px;min-height:40px;margin:0 6px 0 -6px;padding:0;
  border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--primary-text);cursor:pointer;}
html.company-canonical-active .company-schedule-back::before {content:"";position:absolute;inset:-2px -4px;}
html.company-canonical-active .company-schedule-head-row .company-schedule-back::after {content:"";position:absolute;right:-4px;top:8px;bottom:8px;width:1px;background:var(--line);}
.company-schedule-stepper {flex:1 1 auto;display:flex;align-items:stretch;min-width:0;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);overflow:hidden;}
html.company-canonical-active .company-schedule-step {position:relative;flex:none;display:grid;place-items:center;width:34px;min-width:34px;min-height:0;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);cursor:pointer;}
.company-schedule-step .company-schedule-icon {width:18px;height:18px;}
.company-schedule-step:active {background:var(--surface-muted);}
.company-schedule-head-tools {flex:none;display:flex;align-items:center;gap:0;}
html.company-canonical-active .company-schedule-tool {position:relative;display:grid;place-items:center;grid-auto-flow:column;gap:2px;width:auto;min-width:38px;height:40px;min-height:40px;padding:0 6px;
  border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;font-weight:700;cursor:pointer;}
html.company-canonical-active .company-schedule-tool:active {background:var(--surface-muted);}
html.company-canonical-active .company-schedule-tool:focus-visible,html.company-canonical-active :is(.company-schedule-step,.company-schedule-back):focus-visible {outline:2px solid var(--primary);outline-offset:-2px;}
.company-schedule-back .company-schedule-icon {width:24px;height:24px;}
.company-schedule-head-row .company-board-icon-button {min-width:36px;padding:0 6px;}
.company-schedule-date-pick {position:relative;flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-width:0;padding:0 4px;border-inline:1px solid var(--line);font-weight:750;cursor:pointer;}
.company-schedule-date-pick .company-schedule-window {white-space:nowrap;font-size:.98rem;font-variant-numeric:tabular-nums;}
.company-schedule-date-pick .company-schedule-icon {flex:none;width:16px;height:16px;color:var(--text-muted);}
.company-schedule-today {flex:none;}
.company-schedule-today .company-schedule-icon {width:18px;height:18px;}
.company-schedule-techs .company-schedule-icon,.company-schedule-options .company-schedule-icon {width:20px;height:20px;}
.company-schedule-techs-count {font-size:.7rem;font-weight:800;font-variant-numeric:tabular-nums;}
.company-schedule-techs-count:empty {display:none;}
.company-schedule-techs.is-filtered {color:var(--primary-text);background:var(--surface-muted);}
.company-schedule-mode-tabs {width:100%;}
.company-schedule-week {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;}
.company-schedule-week-day {display:grid;justify-items:center;gap:0;min-height:44px;padding:3px 0;border:0;border-radius:12px;background:transparent;color:var(--text);font:inherit;cursor:pointer;}
.company-schedule-week-day small {font-size:.68rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;}
.company-schedule-week-day b {display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:.95rem;font-weight:750;font-variant-numeric:tabular-nums;}
.company-schedule-week-day.is-today b {box-shadow:inset 0 0 0 1.5px var(--primary);color:var(--primary-text);}
.company-schedule-week-day.is-selected b {background:var(--primary);color:#fff;box-shadow:none;}
.company-schedule-week-day:focus-visible {outline:2px solid var(--primary);outline-offset:1px;}
/* A thin progress line while another day or section loads. */
.company-schedule-head.is-loading::after,.company-product-workspace.is-loading::before {content:"";position:absolute;left:0;right:0;top:0;height:3px;border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--primary),transparent);background-size:40% 100%;animation:company-progress 1s linear infinite;}
.company-schedule-head.is-loading::after {top:auto;bottom:-4px;}
html.company-canonical-active .company-product-workspace {position:relative;}
.company-product-workspace.is-loading > .company-page {opacity:.72;transition:opacity .15s ease .1s;}
@keyframes company-progress {from {background-position:-40% 0;} to {background-position:140% 0;}}
@media (prefers-reduced-motion:reduce) {.company-schedule-head.is-loading::after,.company-product-workspace.is-loading::before {animation:none;background:var(--primary);}}
.company-schedule-screen .company-truncation-note[hidden] {display:none;}
/* View options sheet. */
.company-schedule-options-group {display:grid;gap:6px;margin:0 0 14px;}
.company-schedule-options-group h3 {margin:0;font-size:.78rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;}
.company-schedule-options-row {display:flex;flex-wrap:wrap;gap:6px;}
.company-schedule-options-row .company-button {min-height:44px;}
/* List view: one compact row per visit. */
.company-schedule-screen .company-schedule-list {display:grid;gap:8px;}
.company-schedule-screen .company-schedule-list[hidden] {display:none;}
.company-schedule-list-count {margin:0;color:var(--text-muted);font-size:.8rem;}
html.company-canonical-active .company-schedule-list-row {display:grid;gap:1px;width:100%;min-height:0;padding:7px 10px 7px 12px;text-align:left;font:inherit;color:var(--text);
  border:1px solid var(--line);border-left:5px solid var(--tech);border-radius:12px;background:color-mix(in srgb,var(--tech) 8%,var(--surface-raised));cursor:pointer;}
.company-schedule-list-row.is-unassigned {border-left-style:dashed;}
.company-schedule-list-row.has-overlap {border-color:color-mix(in srgb,var(--danger) 55%,var(--line));border-left-color:var(--tech);}
.company-schedule-list-top {display:flex;justify-content:space-between;gap:8px;font-variant-numeric:tabular-nums;}
.company-schedule-list-top time {font-weight:750;white-space:nowrap;}
.company-schedule-list-row .company-board-visit-client {font-size:.95rem;}
.company-schedule-list-service,.company-schedule-list-address {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;color:var(--text-muted);}
.company-schedule-list-address {color:var(--text);}
.company-schedule-list-address::before {content:"⌖ ";color:var(--text-muted);}
.company-schedule-list-foot {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px;}
.company-schedule-screen .company-schedule-list {gap:6px;}
.company-schedule-list-tech {display:inline-flex;align-items:center;gap:6px;font-size:.78rem;color:var(--text-muted);}
.company-schedule-list-tech .company-board-avatar {width:20px;height:20px;font-size:.56rem;}
/* Map view: inline, the legend and the "without a map point" list below. */
/* z-index:auto: the phone overlay rule's z-index 60 would otherwise still lift
   this grid item above the fixed bottom navigation (Owner 2026-10-31 #6). */
.company-schedule-screen .company-board-map-panel {position:static;z-index:auto;grid-template-rows:auto minmax(0,1fr) auto auto auto;height:auto;min-height:0;}
.company-schedule-screen .company-board-map-panel[hidden] {display:none;}
/* Owner 2026-10-31: the height is measured on the device (top of the map to
   the top of the bottom navigation, boardSizeMap); the clamp is only the
   first-paint fallback. */
.company-schedule-screen .company-board-map-canvas-host {height:var(--board-map-height,clamp(320px,calc(100dvh - 330px),720px));}
.company-schedule-screen .company-board-map-canvas-host .company-state {min-height:0;}
.company-board-map-missing {display:grid;gap:4px;min-width:0;}
.company-board-map-missing[hidden] {display:none;}
.company-board-map-missing h3 {margin:4px 0 0;font-size:.85rem;}
.company-board-map-missing .company-empty-copy {margin:0;font-size:.78rem;}
/* Owner review 2026-11-06: "1 visit isn't on the map: address not found" under the map. */
.company-board-map-missing-title {margin:0;font-size:.82rem;font-weight:600;color:var(--text);}
.company-board-map-missing-list {display:grid;gap:2px;max-height:30dvh;overflow-y:auto;min-width:0;}
html .company-board-page .company-board-map-missing-item,
.company-board-map-missing-item {display:flex;align-items:baseline;gap:8px;width:100%;min-width:0;min-height:44px;padding:6px 4px;
  border:0;border-top:1px solid var(--line);border-radius:0;background:none;color:var(--text);font:inherit;font-size:.85rem;text-align:left;cursor:pointer;}
.company-board-map-missing-item time {flex:0 0 auto;font-variant-numeric:tabular-nums;color:var(--text-muted);}
.company-board-map-missing-item strong {flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;}
.company-board-map-missing-item small {flex:0 0 auto;color:var(--text-muted);}
.company-board-visit-note {color:var(--text-muted);font-size:.7rem;font-style:italic;}
.company-today-visit-note {font-style:italic;}
.company-board-marker {position:relative;display:grid;place-items:center;}
.company-board-marker-label {position:absolute;left:calc(100% + 3px);top:2px;padding:1px 6px;border-radius:8px;background:color-mix(in srgb,var(--surface-raised) 92%,transparent);color:var(--text);
  font:700 .66rem/1.3 system-ui,sans-serif;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.25);pointer-events:none;}
.company-board-marker.is-unassigned .company-board-marker-label {color:var(--text-muted);}
.company-board-marker.has-overlap .company-board-pin {box-shadow:0 0 0 2px var(--danger),0 2px 6px rgba(0,0,0,.35);}
.company-board-marker.is-selected .company-board-pin,.company-board-marker.is-hovered .company-board-pin {outline:3px solid var(--input-focus);outline-offset:1px;transform:scale(1.15);}
.company-board-marker.is-selected {z-index:3;}
/* The floating "+" above the dock (Schedule and Jobs). */
html.company-canonical-active .company-fab-add {position:fixed;z-index:34;right:max(16px,env(safe-area-inset-right,0px));bottom:var(--company-fab-bottom,24px);
  display:grid;place-items:center;width:var(--company-fab-size,52px);height:var(--company-fab-size,52px);min-width:0;min-height:0;padding:0;border:0;border-radius:50%;
  background:var(--primary);color:#fff;box-shadow:0 10px 26px rgba(5,20,43,.28);cursor:pointer;}
html.company-canonical-active .company-fab-add .company-schedule-icon {width:26px;height:26px;stroke-width:2.2;}
html.company-canonical-active .company-fab-add:active {transform:scale(.95);}
html.company-canonical-active .company-fab-add:focus-visible {outline:3px solid var(--input-focus);outline-offset:2px;}
html.company-canonical-active.field-focused .company-fab-add,html.company-canonical-active.keyboard-open .company-fab-add,
html.company-canonical-active:has(.company-sheet-layer) .company-fab-add {display:none;}
html.company-canonical-active:has(.company-fab-add) {--company-reserve-h:max(var(--company-dock-h),calc(var(--company-fab-bottom) + var(--company-fab-size)));}
/* Day on the phone: the vertical time grid. */
.company-dayg-host {display:none;}
.company-dayg-host[hidden] {display:none!important;}
.company-dayg {position:relative;border:1px solid var(--line);border-radius:16px;background:var(--surface-raised);overflow:hidden;}
.company-dayg-scroller {position:relative;width:100%;max-width:100%;max-height:calc(100dvh - var(--company-dock-h,0px) - 236px);min-height:320px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
/* Owner 2026-11-05: the day grid scrolls in ONE container. Its page-grid
   ancestors may not grow to the columns' width (a grid item's automatic
   minimum width once widened the whole page, so a swipe moved the page:
   names flew up and the hour labels were cut off). The technician row sticks
   to the top, the hour column and its corner stick to the left. */
.company-schedule-screen :is(.company-board-layout,.company-dayg-host,.company-dayg) {min-width:0;max-width:100%;}
.company-dayg-corner {position:sticky;left:0;z-index:2;align-self:stretch;background:var(--surface-raised);border-right:1px solid var(--line);}
.company-dayg-head {position:sticky;top:0;z-index:4;display:grid;grid-template-columns:44px repeat(var(--dayg-columns,1),minmax(0,1fr));min-width:100%;background:var(--surface-raised);border-bottom:1px solid var(--line);}
/* Head and body share one width: 44px of hours plus 104px or more per column. */
.company-dayg.has-columns :is(.company-dayg-head,.company-dayg-body) {min-width:calc(44px + var(--dayg-columns,1) * 104px);}
.company-dayg.has-columns .company-dayg-head {grid-template-columns:44px repeat(var(--dayg-columns,1),minmax(104px,1fr));}
.company-dayg-tech {display:flex;align-items:center;gap:6px;min-width:0;padding:6px 6px 6px 8px;box-shadow:inset 0 -3px 0 var(--tech);}
.company-dayg-tech-text {display:grid;min-width:0;}
.company-dayg-tech-text strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;}
.company-dayg-tech-text small {color:var(--text-muted);font-size:.7rem;}
.company-dayg-tech .company-board-avatar {width:26px;height:26px;font-size:.62rem;}
.company-dayg-body {position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);height:calc(var(--dayg-height) + 14px);}
.company-dayg-hours,.company-dayg-cols {margin-top:10px;}
.company-dayg-hours {position:sticky;left:0;z-index:3;background:var(--surface-raised);border-right:1px solid var(--line);}
.company-dayg-hour {position:absolute;top:var(--y);right:4px;transform:translateY(-50%);font-size:.7rem;font-variant-numeric:tabular-nums;color:var(--text-muted);background:var(--surface-raised);padding:0 2px;}
.company-dayg-hours::before {content:"";position:absolute;inset:0;background-image:linear-gradient(to bottom,var(--line) 1px,transparent 1px);background-size:100% var(--dayg-hour);}
.company-dayg-cols {display:grid;grid-template-columns:repeat(var(--dayg-columns,1),minmax(0,1fr));}
.company-dayg.has-columns .company-dayg-cols {grid-template-columns:repeat(var(--dayg-columns,1),minmax(104px,1fr));}
.company-dayg-col {position:relative;min-width:0;border-right:1px solid var(--line);cursor:copy;touch-action:pan-y pan-x;
  background-image:linear-gradient(to bottom,var(--line) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in srgb,var(--line) 45%,transparent) 1px,transparent 1px);
  background-size:100% var(--dayg-hour),100% calc(var(--dayg-hour) / 2);}
.company-dayg-col.is-unassigned {background-color:color-mix(in srgb,var(--surface-muted) 55%,transparent);}
.company-dayg-col.is-day-off {background-color:color-mix(in srgb,var(--surface-muted) 70%,transparent);}
.company-dayg-shift {position:absolute;left:0;right:0;top:var(--y);height:var(--h);background:color-mix(in srgb,var(--tech) 6%,transparent);pointer-events:none;}
.company-dayg-now {position:absolute;left:44px;right:0;top:calc(var(--y) + 10px);height:0;border-top:2px solid var(--danger);pointer-events:none;z-index:2;}
.company-dayg-now::before {content:"";position:absolute;left:-5px;top:-5px;width:8px;height:8px;border-radius:50%;background:var(--danger);}
html.company-canonical-active .company-dayg-visit {position:absolute;top:var(--y);height:var(--h);left:calc(2px + (100% - 4px) * var(--lane,0) / var(--lanes,1));width:calc((100% - 4px) / var(--lanes,1) - 2px);
  display:grid;align-content:start;gap:1px;overflow:hidden;min-height:0;padding:4px 6px 4px 8px;text-align:left;border:1px solid color-mix(in srgb,var(--tech) 45%,var(--line));border-left:4px solid var(--tech);border-radius:8px;
  background:color-mix(in srgb,var(--tech) var(--tech-tint),var(--surface-raised));color:var(--text);font:inherit;font-size:.72rem;line-height:1.3;cursor:pointer;}
.company-dayg-visit > * {min-height:0;}
.company-dayg-visit .company-board-visit-top {padding-right:0;}
.company-dayg-visit.is-selected {box-shadow:0 0 0 2px var(--tech),var(--shadow);z-index:2;}
.company-dayg-visit.is-pending {border-style:dashed;}
.company-dayg-visit.is-closed {opacity:.62;}
.company-dayg-visit.has-overlap {border-color:var(--danger);}
.company-dayg-visit.is-unassigned {border-left-style:dashed;}
.company-dayg-visit:focus-visible {outline:3px solid var(--input-focus);outline-offset:1px;z-index:2;}
.company-board-sheet-heading {margin:4px 0 8px;font-size:.95rem;}
@media (max-width:1079px) {
  html.company-canonical-active body:has(.company-schedule-screen) .topbar {display:none;}
  html.company-canonical-active main:has(.company-schedule-screen) .company-page-heading {display:none;}
  html.company-canonical-active .company-page.company-schedule-screen {padding-top:0;}
  html.company-canonical-active .company-schedule-head {position:sticky;top:0;z-index:6;margin:0 calc(-1 * var(--page-gutter,16px));
    padding:calc(env(safe-area-inset-top,0px) + 6px) var(--page-gutter,16px) 6px;background:var(--surface-raised);border-bottom:1px solid var(--line);}
}
@media (max-width:600px) {
  html.company-canonical-active .company-schedule-screen .company-board-layout {display:block;}
  html.company-canonical-active .company-schedule-screen .company-board-layout[hidden] {display:none;}
  html.company-canonical-active .company-schedule-screen :is(.company-board,.company-board-queue) {display:none;}
  html.company-canonical-active .company-schedule-screen .company-dayg-host {display:block;}
  html.company-canonical-active .company-schedule-screen .company-board-toast {bottom:calc(var(--company-dock-h,88px) + 70px);}
  .company-schedule-screen .company-board-map-canvas-host {height:var(--board-map-height,calc(100dvh - var(--company-dock-h,88px) - 250px));min-height:260px;}
  .company-schedule-head-row .company-schedule-today span {display:none;}
}
@media (min-width:601px) {
  .company-schedule-screen .company-board-layout.has-queue {grid-template-columns:240px minmax(0,1fr);}
  html.company-canonical-active .company-schedule-screen .company-board-mobile.company-schedule-list:not([hidden]) {display:grid;}
}

/* Day grid blocks: the time is never shortened; description may be. */
/* A column of lines that never overlap: a short block clips its lower
   lines; the start–end time is the first line and is never shortened. */
html.company-canonical-active .company-dayg-visit {display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;}
.company-dayg-visit > * {flex:none;}
.company-dayg-visit-top {display:flex;align-items:baseline;gap:4px;min-width:0;font-variant-numeric:tabular-nums;}
.company-dayg-visit-top time {flex:none;font-size:.74rem;font-weight:750;white-space:nowrap;color:var(--text);}
.company-dayg-visit-top strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:.7rem;font-weight:700;}
.company-dayg-visit .company-board-status-chip {margin-top:1px;}
.company-dayg-visit .company-board-visit-client,.company-dayg-visit .company-board-visit-detail {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* Visit sheet: the Reschedule form opens from its button. */
.company-board-sheet-form[hidden] {display:none;}
.company-board-reschedule {min-height:44px;}
/* Visit booking from the calendar: its own compact screen. */
.company-visit-booking {display:grid;gap:8px;padding:0;border:0;background:transparent;box-shadow:none;}
.company-visit-booking-head {display:flex;align-items:center;gap:6px;}
.company-visit-booking-head h2 {margin:0;font-size:1.2rem;}
.company-visit-booking-summary {margin:0;padding:8px 10px;border-radius:10px;background:var(--surface-muted);font-weight:700;font-variant-numeric:tabular-nums;}
.company-visit-booking .company-appointment-form {grid-template-columns:minmax(0,1fr);gap:10px;}
.company-visit-booking-time {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) minmax(0,1fr);gap:8px;}
html.company-canonical-active .company-visit-booking .company-visit-booking-link {justify-self:start;width:auto;min-height:40px;border:0;background:transparent;color:var(--primary-text);padding:0;box-shadow:none;font-weight:700;}
.company-intake-page:has(.company-visit-booking) > :not(:has(.company-visit-booking)) {display:none;}
.company-appointment-registry:has(.company-visit-booking) > :not(:has(.company-visit-booking)):not(.company-visit-booking) {display:none;}
@media (max-width:1079px) {
  html.company-canonical-active body:has(.company-visit-booking) .topbar {display:none;}
  html.company-canonical-active .company-page:has(.company-visit-booking) {padding-top:calc(env(safe-area-inset-top,0px) + 6px);}
}
@media (max-width:420px) {.company-visit-booking-time {grid-template-columns:minmax(0,1fr) minmax(0,1fr);} .company-visit-booking-time > :first-child {grid-column:1 / -1;}}

/* ---- Jobs screen (Owner 2026-10-30) ---------------------------------------
   Own compact header (Back · Jobs · jobs without a visit · filters), month
   stepper and search, then one compact row per Job: a narrow when-column
   (date, time, status) and the main column (number and client, service,
   address on its own line, technician). Chrome steps aside on a phone. */
.company-jobs-screen {display:grid;gap:8px;min-width:0;}
.company-jobs-head {display:flex;align-items:center;gap:4px;min-height:44px;}
.company-jobs-title {flex:1 1 auto;min-width:0;margin:0;font-size:1.25rem;font-weight:780;letter-spacing:-.01em;}
.company-jobs-head .company-schedule-tool {position:relative;}
.company-schedule-tool .company-schedule-icon {width:22px;height:22px;}
.company-jobs-badge {position:absolute;top:2px;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--primary);color:#fff;
  font-size:.66rem;font-weight:800;line-height:17px;text-align:center;font-variant-numeric:tabular-nums;}
.company-jobs-badge.is-dot {min-width:9px;width:9px;height:9px;padding:0;top:8px;right:6px;}
.company-jobs-badge[hidden] {display:none;}
.company-jobs-bar {display:grid;grid-template-columns:minmax(0,1fr);gap:6px;}
@media (min-width:720px) {.company-jobs-bar {grid-template-columns:minmax(220px,320px) minmax(0,1fr);}}
.company-jobs-month {flex:none;}
.company-jobs-month-label {flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-width:0;border-inline:1px solid var(--line);font-size:.98rem;font-weight:750;white-space:nowrap;}
html.company-canonical-active .company-jobs-search {width:100%;min-height:40px;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);font:inherit;}
.company-jobs-attention {display:flex;flex-wrap:wrap;gap:6px;}
.company-jobs-attention[hidden],.company-jobs-attention-item[hidden] {display:none;}
html.company-canonical-active .company-jobs-attention-item {display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--warning);border-radius:16px;
  background:color-mix(in srgb,var(--warning) 12%,var(--surface-raised));color:var(--text);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;}
.company-jobs-chips {display:flex;flex-wrap:wrap;gap:6px;}
.company-jobs-chips[hidden] {display:none;}
html.company-canonical-active .company-jobs-chip {display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid var(--primary);border-radius:16px;
  background:color-mix(in srgb,var(--primary) 10%,var(--surface-raised));color:var(--primary-text);font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;}
.company-jobs-chip.is-reset {border-color:var(--line);background:transparent;color:var(--text-muted);}
.company-jobs-chip-x {font-size:1rem;line-height:1;}
.company-jobs-list {display:grid;gap:6px;}
.company-jobs-row {display:flex;align-items:stretch;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);overflow:hidden;}
html.company-canonical-active .company-jobs-row-open {flex:1 1 auto;display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;min-width:0;min-height:0;margin:0;padding:8px 10px;
  border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;box-shadow:none;}
.company-jobs-row-open:active {background:var(--surface-muted);}
.company-jobs-row-open:focus-visible {outline:2px solid var(--primary);outline-offset:-2px;}
.company-jobs-when {display:grid;align-content:start;gap:1px;padding-right:8px;border-right:1px solid var(--line);font-variant-numeric:tabular-nums;}
.company-jobs-when strong {font-size:.92rem;font-weight:780;}
.company-jobs-time {font-size:.76rem;color:var(--text-muted);white-space:nowrap;}
.company-jobs-status {font-size:.76rem;font-weight:650;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-jobs-status:is(.is-en_route,.is-arrived,.is-working) {color:var(--sapphire-600);}
.company-jobs-status.is-completed {color:var(--success);}
.company-jobs-status:is(.is-blocked,.is-cancelled) {color:var(--danger);}
.company-jobs-main {display:grid;gap:1px;min-width:0;}
.company-jobs-row-title {display:flex;align-items:baseline;gap:6px;min-width:0;}
.company-jobs-row-title strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;font-weight:780;}
.company-jobs-visits {flex:none;padding:0 6px;border-radius:8px;background:var(--surface-muted);color:var(--text-muted);font-size:.7rem;font-weight:700;}
.company-jobs-service,.company-jobs-address {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;}
.company-jobs-service {color:var(--text);}
.company-jobs-address {color:var(--text-muted);}
.company-jobs-address::before {content:"⌖ ";}
.company-jobs-tech {display:inline-flex;align-items:center;gap:6px;min-width:0;font-size:.76rem;color:var(--text-muted);}
.company-jobs-tech .company-board-avatar {width:18px;height:18px;font-size:.52rem;background:var(--primary);color:#fff;}
.company-jobs-tech.is-none {color:var(--warning);font-weight:650;}
.company-jobs-tech.is-reserved {color:var(--text-muted);font-style:italic;font-weight:650;}
.company-jobs-book {flex:none;align-self:center;margin-right:4px;color:var(--primary-text);}
.company-jobs-note {margin:0;font-size:.78rem;color:var(--text-muted);}
.company-jobs-note[hidden] {display:none;}
.company-jobs-empty {padding:18px 4px;text-align:center;}
.company-jobs-hint {margin:0 0 8px;font-size:.82rem;}
.company-jobs-filter-check {display:flex;align-items:center;gap:10px;min-height:44px;font-weight:650;}
.company-jobs-filter-check input {width:20px;height:20px;}
.company-jobs-filter-sheet .company-board-sheet-field {margin-bottom:10px;}
.company-jobs-unscheduled-sheet .company-unscheduled-work {margin-top:14px;}
.company-jobs-retry {justify-self:center;min-height:44px;}
.company-jobs-registry {display:grid;gap:8px;}
.company-intake-page:has(.company-jobs-screen) > :not(:has(.company-jobs-screen)):not(.company-intake-project-picker):not(.company-jobs-retry) {display:none;}
@media (max-width:1079px) {
  html.company-canonical-active body:has(.company-jobs-screen) .topbar {display:none;}
  html.company-canonical-active .company-page:has(.company-jobs-screen) {padding-top:0;}
  html.company-canonical-active .company-jobs-head {position:sticky;top:0;z-index:6;margin:0 calc(-1 * var(--page-gutter,16px));
    padding:calc(env(safe-area-inset-top,0px) + 6px) var(--page-gutter,16px) 4px;background:var(--surface-raised);border-bottom:1px solid var(--line);}
}

/* ---- Work screens (Owner 2026-10-30 §1) -----------------------------------
   Every work section opens as its own screen: one compact title row (menu at
   the top level, Back inside), icon tools on the right, the section's own
   tabs and filters below. The platform bar, the page heading and the old
   section strip step aside; the sidebar and the bottom dock stay. */
.company-work-screen {display:grid;gap:8px;min-width:0;}
.company-work-head {display:flex;align-items:center;gap:4px;min-height:44px;}
.company-work-title {flex:1 1 auto;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.25rem;font-weight:780;letter-spacing:-.01em;}
.company-work-head .company-schedule-tool {position:relative;}
.company-work-head .company-schedule-tool[aria-pressed="true"] {background:var(--surface-muted);color:var(--primary-text);}
.company-clients-import-label {font-size:.85rem;font-weight:650;white-space:nowrap;}
@media (max-width:420px) {.company-clients-import-label {display:none;}}
.company-work-menu .company-schedule-icon {width:24px;height:24px;}
.company-intake-page:has(.company-work-screen) > :not(.company-work-screen):not(:has(.company-work-screen)):not(.company-intake-project-picker):not(.company-jobs-retry):not(.company-intake-change-project) {display:none;}
.company-page:has(.company-work-screen) > .company-page-heading {display:none;}
.company-intake-page:has(.company-work-screen) > .company-intake-change-project {justify-self:start;min-height:36px;}
@media (min-width:1080px) {
  html.company-canonical-active .company-work-menu {display:none;}
  html.company-canonical-active .company-work-head .company-work-back + .company-work-title {margin-left:4px;}
}
@media (max-width:1079px) {
  html.company-canonical-active body:has(.company-work-screen) .topbar {display:none;}
  html.company-canonical-active .company-page:has(.company-work-screen) {padding-top:0;}
  html.company-canonical-active .company-work-head {position:sticky;top:0;z-index:6;margin:0 calc(-1 * var(--page-gutter,16px));
    padding:calc(env(safe-area-inset-top,0px) + 6px) var(--page-gutter,16px) 4px;background:var(--surface-raised);border-bottom:1px solid var(--line);}
}

/* ---- Calls (Owner 2026-10-30 §2) */
html.company-canonical-active .company-calls-tabs {display:flex;width:100%;}
html.company-canonical-active .company-calls-tabs .olegos-tab {flex:1 1 auto;justify-content:center;padding-inline:8px;font-size:.9rem;white-space:nowrap;}
html.company-canonical-active .company-calls-status {display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:6px 10px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface-raised);color:var(--text-muted);font:inherit;font-size:.82rem;text-align:left;cursor:pointer;box-shadow:none;}
.company-calls-status .company-schedule-icon {flex:none;width:16px;height:16px;margin-left:auto;}
.company-calls-status-text {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-calls-status-dot {flex:none;width:8px;height:8px;border-radius:50%;background:var(--text-muted);}
.company-calls-status[data-tone="ok"] .company-calls-status-dot {background:var(--success);}
.company-calls-status[data-tone="error"] {border-color:var(--danger);color:var(--danger);}
.company-calls-status[data-tone="error"] .company-calls-status-dot {background:var(--danger);}
.company-calls-status-sheet .olegos-bsheet-body {display:grid;gap:12px;}
.company-calls-status-copy {margin:0;font-weight:650;}
.company-calls-status-sheet .company-calls-answering {margin:0;}
.company-call-history.is-compact {padding:0!important;border:0;background:transparent;box-shadow:none;display:grid;gap:6px;}
.company-call-history.is-compact .company-call-history-controls {display:block;}
.company-call-history.is-compact .company-call-history-controls[hidden],.company-call-history.is-compact [hidden] {display:none;}
.company-call-history.is-compact .company-call-history-search {width:100%;min-height:40px;border-radius:12px;}
.company-call-history.is-compact .company-call-history-list {gap:6px;}
.company-call-history.is-compact .company-call-date {justify-self:center;margin:10px 0 2px;padding:2px 12px;border-radius:10px;background:var(--surface-muted);font-size:.8rem;font-weight:650;color:var(--text-muted);}
.company-call-history.is-compact .company-call-history-item {flex-wrap:nowrap;border-radius:12px;}
html.company-canonical-active .company-call-history.is-compact .company-call-row-compact {flex:1 1 auto;flex-direction:row;align-items:center;gap:12px;min-height:56px;padding:8px 6px 8px 12px;}
.company-call-kind {flex:none;display:grid;place-items:center;width:28px;height:28px;color:var(--success);}
.company-call-kind .company-schedule-icon {width:22px;height:22px;}
.company-call-kind.is-out {color:var(--sapphire-600,var(--primary-text));}
.company-call-kind.is-missed {color:var(--danger);}
.company-call-kind.is-voicemail {color:var(--text);}
.company-call-main {display:grid;gap:2px;min-width:0;}
.company-call-main strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.98rem;font-weight:750;}
.company-call-main small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:.82rem;}
.company-call-history.is-compact .company-call-history-item .olegos-overflow-trigger {flex:none;align-self:center;}
.company-call-quick {flex:none;align-self:center;display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--text-muted);cursor:pointer;}
.company-call-quick .company-schedule-icon {width:20px;height:20px;}
.company-call-quick.is-playing {color:var(--primary-text);background:var(--surface-muted);}
.company-call-quick:focus-visible {outline:2px solid var(--primary-text);outline-offset:1px;}
@media (max-width:400px) {.company-call-quick {width:32px;height:32px;min-height:32px;}}
.company-call-history.is-compact .company-form-status {margin:0;font-size:.82rem;color:var(--text-muted);}
.company-call-detail-sheet .company-call-history-card {border:0;padding:0;box-shadow:none;background:transparent;}
/* Dialer: Back and "Call using <number>" on top, search, the number, the
   keypad and one round handset. */
.company-dialer-header {justify-content:flex-start;}
html.company-canonical-active .company-dialer-close {flex:none;display:grid;place-items:center;width:40px;min-width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--primary-text);box-shadow:none;}
.company-dialer-glyph {width:24px;height:24px;}
.company-dialer-header .company-dialer-from {flex:1 1 auto;display:flex;align-items:center;gap:6px;min-width:0;font-size:1rem;font-weight:750;color:var(--text);}
.company-dialer-header .company-dialer-from span {flex:none;}
html.company-canonical-active .company-dialer-header .company-dialer-from select {flex:1 1 auto;width:auto;min-width:0;min-height:40px;padding:0 6px;border:0;background-color:transparent;color:var(--primary-text);font:inherit;font-weight:750;box-shadow:none;}
.company-dialer-footer {display:flex;justify-content:center;border-top:0;}
html.company-canonical-active .company-dialer-call {display:grid;place-items:center;width:64px;min-width:64px;height:64px;min-height:64px;padding:0;border-radius:50%;border:0;background:var(--success);color:#fff;}
html.company-canonical-active .company-dialer-call:disabled {opacity:.4;}
.company-dialer-call .company-dialer-glyph {width:28px;height:28px;}
.company-dialer-number {border:0;background:transparent;}
.company-calls-status-in:not(:empty)::before {content:" · ";}
/* A work screen's floating action and the Quasar button never share a spot:
   the action keeps the corner, Quasar sits above it. */
html.company-canonical-active:has(.company-fab-add) .company-executive-controls {bottom:calc(var(--company-fab-bottom) + var(--company-fab-size) + 12px);}
html.company-canonical-active:has(.company-fab-add):has(.company-product-shell > .company-executive-controls) {
  --company-reserve-h:max(var(--company-dock-h),calc(var(--company-fab-bottom) + 2 * var(--company-fab-size) + 12px));}
html.company-canonical-active:has(.company-fab-add[disabled]) .company-fab-add[disabled] {opacity:.55;}
.company-work-screen {grid-template-columns:minmax(0,1fr);}
html.company-canonical-active .company-call-history.is-compact .company-call-row-compact {display:flex;justify-content:flex-start;color:var(--text);text-align:left;border:0;}
.company-call-history.is-compact .company-call-main strong {color:var(--text);}
.company-call-kind .company-schedule-icon {color:inherit;}
html.company-canonical-active .company-call-kind.is-in svg {color:var(--success);}
html.company-canonical-active .company-call-kind.is-out svg {color:var(--sapphire-600,var(--primary-text));}
html.company-canonical-active .company-call-kind.is-missed svg {color:var(--danger);}
html.company-canonical-active .company-call-kind.is-voicemail svg {color:var(--text);}

/* ---- Leads, Clients, Inbox, Messages as work screens (Owner 2026-10-30 §3) */
.company-work-screen > [hidden] {display:none!important;}
.company-leads-stage-chip {justify-self:start;padding:1px 8px;border-radius:9px;background:var(--surface-muted);color:var(--text);font-size:.74rem;font-weight:700;white-space:nowrap;}
.company-leads-stage-chip.is-new {background:color-mix(in srgb,var(--primary) 14%,var(--surface-raised));color:var(--primary-text);}
.company-leads-stage-chip.is-qualified {background:color-mix(in srgb,var(--warning) 18%,var(--surface-raised));}
.company-leads-stage-chip.is-booked {background:color-mix(in srgb,var(--success) 16%,var(--surface-raised));}
.company-leads-stage-chip.is-won {background:var(--success);color:#fff;}
.company-leads-stage-chip.is-lost {color:var(--text-muted);}
.company-leads-urgent {font-size:.72rem;font-weight:750;color:var(--danger);}
.company-leads-intent {white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.company-leads-next {font-size:.76rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-leads-next.is-overdue {color:var(--danger);font-weight:650;}
.company-leads-next.is-today {color:var(--warning-text,var(--warning));font-weight:650;}
/* Leads: Close / Reopen on the row, Select -> Close selected (Owner 2026-11-18); phone width first. */
.company-leads-search-row {display:flex;align-items:center;gap:8px;min-width:0;}
.company-leads-search-row > .company-jobs-search {flex:1 1 auto;min-width:0;}
.company-leads-select {flex:0 0 auto;min-height:40px;}
.company-leads-select-bar {display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-muted);}
.company-leads-select-count {flex:1 1 auto;min-width:0;font-weight:700;}
.company-leads-row .company-leads-row-action {flex:0 0 auto;align-self:center;margin:0 8px 0 0;min-height:36px;padding:0 12px;font-size:.82rem;}
.company-leads-row .company-leads-tick {flex:0 0 auto;align-self:center;width:22px;height:22px;margin:0 0 0 10px;}
.company-leads-row.is-selected {border-color:var(--primary);}
.company-leads-close-reasons {display:grid;gap:10px;min-width:0;}
.company-leads-close-reason-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;}
.company-leads-close-reason {min-height:44px;white-space:normal;}
.company-leads-close-other {display:grid;gap:8px;}
.company-leads-close-other input {width:100%;min-width:0;box-sizing:border-box;}
.company-leads-close-failures {margin:0;padding-left:18px;color:var(--danger);font-size:.86rem;}
.company-leads-close-failures[hidden], .company-leads-close-other[hidden], .company-leads-select-bar[hidden] {display:none!important;}
html.company-canonical-active .company-clients-row-open {grid-template-columns:36px minmax(0,1fr);align-items:center;}
.company-clients-avatar {width:36px;height:36px;font-size:.78rem;}
.company-leads-create-sheet .company-leads-create,.company-clients-create-sheet .company-customer-form-card {border:0;box-shadow:none;padding:0;background:transparent;}
/* Inbox: one row per conversation, its actions behind "⋮". */
.company-inbox-actions.is-compact {display:grid;gap:6px;padding:0!important;border:0;background:transparent;box-shadow:none;}
.company-inbox-actions.is-compact .company-inbox-item {display:flex;align-items:center;gap:4px;min-width:0;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised);}
html.company-canonical-active .company-inbox-actions.is-compact .company-inbox-item-open {flex:1 1 auto;display:grid;gap:2px;min-width:0;min-height:56px;padding:8px 12px;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;box-shadow:none;cursor:pointer;}
.company-inbox-actions.is-compact .company-inbox-item > strong,.company-inbox-actions.is-compact .company-inbox-item > small {padding-inline:12px;}
.company-inbox-actions.is-compact :is(strong,small,.company-inbox-preview) {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.company-inbox-actions.is-compact .company-inbox-preview {margin:0;color:var(--text-muted);font-size:.82rem;}
.company-inbox-actions.is-compact .olegos-overflow-trigger {flex:none;}
.company-inbox-screen:has(.company-inbox-actions.is-compact) .company-intake-list {display:none;}
.company-messages-screen .customer-messages-mount {min-width:0;}
/* Initials on a filled circle stay white in both themes (the dark-theme rule
   for board avatars made them dark on blue). */
html .company-jobs-row .company-jobs-tech .company-board-avatar,html .company-clients-row .company-clients-avatar {background:var(--primary);color:#fff;}
.company-board-avatar {background:var(--tech,var(--primary));}
.company-clients-contact::before {content:none!important;}
/* Customer Messages inside the work screen: search and refresh on one row,
   conversation rows with name, preview and unread count. */
.company-messages-screen .customer-message-sidebar {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;}
.company-messages-screen .customer-message-sidebar > * {grid-column:1 / -1;}
.company-messages-screen .customer-message-sidebar > input[type="search"] {grid-column:1;min-height:40px;}
html.company-canonical-active .company-messages-screen .customer-message-sidebar > input[type="search"] + .company-button {grid-column:2;width:auto;min-height:40px;padding-inline:12px;}
html.company-canonical-active .company-messages-screen .customer-message-conversation {display:grid;grid-template-columns:minmax(0,1fr) auto;justify-items:start;align-items:center;gap:2px 8px;min-height:56px;text-align:start;}
.company-messages-screen .customer-message-conversation > :is(strong,small) {grid-column:1;max-width:100%;}
.company-messages-screen .customer-message-conversation > .olegos-badge {grid-column:2;grid-row:1 / span 2;}

/* ---- Company Settings: group list, one group per page (Owner 2026-10-30 §7) */
.company-settings-layout {display:grid;gap:12px;min-width:0;}
.company-settings-index {display:grid;align-content:start;border:1px solid var(--line);border-radius:14px;background:var(--surface-raised);overflow:hidden;}
html.company-canonical-active .company-settings-row {display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:60px;margin:0;padding:10px 12px;
  border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;text-align:left;box-shadow:none;cursor:pointer;}
html.company-canonical-active .company-settings-row:last-child {border-bottom:0;}
html.company-canonical-active .company-settings-row[aria-current="page"] {background:color-mix(in srgb,var(--primary) 10%,var(--surface-raised));}
.company-settings-row:focus-visible {outline:2px solid var(--primary);outline-offset:-2px;}
.company-settings-row > .company-schedule-icon {width:18px;height:18px;color:var(--text-muted);}
.company-settings-row-icon {display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-muted);color:var(--primary-text);}
.company-settings-row-icon .company-schedule-icon {width:20px;height:20px;}
.company-settings-row-text {display:grid;gap:2px;min-width:0;}
.company-settings-row-text strong {font-size:.95rem;font-weight:720;}
.company-settings-row-text small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:.78rem;}
.company-settings-panel {display:grid;gap:12px;min-width:0;}
.company-settings-panel > .company-settings-group[hidden] {display:none!important;}
html.company-canonical-active .company-settings-panel > .company-settings-group.is-selected {padding:0;border:0;background:transparent;box-shadow:none;}
.company-settings-panel > .company-settings-group.is-selected > summary {display:none;}
.company-settings-choose {padding:24px;text-align:center;}
@media (max-width:1079px) {
  .company-settings-screen.has-group .company-settings-index {display:none;}
  .company-settings-screen:not(.has-group) .company-settings-panel {display:none;}
}
@media (min-width:1080px) {
  .company-settings-layout {grid-template-columns:minmax(260px,320px) minmax(0,1fr);align-items:start;}
  .company-settings-index {position:sticky;top:16px;}
}
/* Reports (Owner 2026-11-18): the Company Settings list -> detail layout, reports grouped by category. */
.company-reports-index-heading {margin:0;padding:10px 12px 6px;border-bottom:1px solid var(--line);color:var(--text-muted);font-size:.72rem;font-weight:720;letter-spacing:.04em;text-transform:uppercase;background:var(--surface-muted);}
.company-reports-report {display:grid;gap:12px;min-width:0;}
.company-reports-controls {display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0;}
.company-reports-period, .company-reports-filters, .company-reports-dates {display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0;}
.company-reports-dates[hidden] {display:none;}
.company-reports-search {flex:1 1 180px;min-width:0;}
.company-reports-controls select, .company-reports-controls input {max-width:100%;}
.company-reports-table-wrap {overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;}
.company-reports-table th .company-reports-sort {all:unset;cursor:pointer;font:inherit;font-weight:700;white-space:nowrap;}
.company-reports-table th .company-reports-sort:focus-visible {outline:2px solid var(--primary);outline-offset:2px;}
.company-reports-row-link {cursor:pointer;}
.company-reports-row-link:hover, .company-reports-row-link:focus-visible {background:color-mix(in srgb,var(--primary) 8%,transparent);outline:none;}
.company-reports-more {display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.company-reports-totals .company-finance-card small {white-space:normal;}
@media (max-width:640px) {
  .company-reports-controls > *, .company-reports-period, .company-reports-filters {flex:1 1 100%;}
  .company-reports-filters select, .company-reports-period select {flex:1 1 140px;}
  .company-reports-export {width:100%;}
}
/* Visits in Schedule: Day / Week, days as headings in a week. */
.company-schedule-visits-span {display:inline-flex;justify-self:start;gap:2px;padding:2px;border:1px solid var(--line);border-radius:10px;background:var(--surface-raised);}
html.company-canonical-active .company-schedule-span {min-height:32px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:var(--text-muted);font:inherit;font-weight:700;box-shadow:none;cursor:pointer;}
html.company-canonical-active .company-schedule-span.is-active {background:var(--primary);color:#fff;}
.company-schedule-list-day {margin:8px 0 0;font-size:.85rem;font-weight:750;color:var(--text-muted);}
/* One name and colour per repair status: Jobs, the Job card and filters. */
.company-repair-status {font-weight:700;}
.company-repair-status.is-submitted {color:var(--text);}
.company-repair-status:is(.is-waiting,.is-done_pending_approval) {color:var(--warning-text,var(--warning));}
.company-repair-status:is(.is-unpaid_invoice,.is-blocked_earlier) {color:var(--danger);}
.company-repair-status:is(.is-parts_ordered,.is-parts_delivered) {color:var(--sapphire-600,var(--primary-text));}
.company-repair-status.is-done {color:var(--success);}
.company-repair-status.is-cancelled {color:var(--text-muted);}
.company-jobs-status.company-repair-status {white-space:normal;line-height:1.2;}
.company-jobs-visit-state {font-size:.7rem;color:var(--text-muted);}
.company-job-visit-progress {display:grid;gap:8px;margin-top:12px;}
.company-job-visit-steps {display:flex;flex-wrap:wrap;gap:6px;}
.company-job-visit-step.is-current {border-color:var(--primary);color:var(--primary-text);}
.company-job-visit-finish {display:grid;gap:8px;}
.company-job-visit-list {display:grid;gap:8px;margin:0;padding:0;list-style:none;}
.company-job-visit {display:grid;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;}
.company-job-visit.is-current {border-color:var(--primary);}
.company-job-visit-state {font-size:.8rem;color:var(--text-muted);}
/* A full-page form: Back before the title; the form's own heading steps aside. */
.company-form-page .olegos-bsheet-header {flex-direction:row-reverse;justify-content:flex-end;}
.company-form-page :is(.company-leads-create,.company-customer-form-card) > :is(.company-card-heading,h2) {display:none;}
/* Technicians of one visit. */
.company-job-technician-list {display:grid;gap:8px;margin:0 0 12px;padding:0;list-style:none;}
.company-job-technician {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;}
.company-job-technician.is-lead {display:grid;gap:2px;}
.company-job-technician small {color:var(--text-muted);}
.company-job-technician-add {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}

/* Finish submitted choice with a next visit (0255). */
.company-job-next-visit-finish{display:flex;align-items:center;gap:10px;min-height:44px;flex-basis:100%}
.company-job-next-visit-finish input{width:20px;height:20px;flex:none;margin:0}
/* Owner 2026-10-31 (item 12): document line items are compact cards and the
   Price Book catalog opens first; a phone never shows a seven-field grid. */
.company-document-lines .company-document-line.company-document-line-card {
  display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0;align-items:stretch;
  border:1px solid var(--line);border-radius:12px;background:var(--surface-raised,var(--surface));min-width:0;
}
.company-document-line-card[data-invalid="true"] {border-color:color-mix(in srgb,var(--warning,#c2410c) 60%,var(--line));}
.company-document-line-summary {
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title total" "meta total";
  gap:2px 12px;align-items:center;width:100%;min-height:52px;padding:10px 12px;
  border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;
}
.company-document-line-summary:disabled {cursor:default;opacity:1;}
.company-document-line-title {grid-area:title;min-width:0;overflow-wrap:anywhere;}
.company-document-line-meta {grid-area:meta;min-width:0;color:var(--text-muted);font-size:.85rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.company-document-line-card .company-document-line-total {grid-area:total;font-variant-numeric:tabular-nums;white-space:nowrap;}
.company-document-line-edit {padding:0 12px 12px;display:grid;gap:10px;min-width:0;}
.company-document-line-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;min-width:0;}
.company-document-line-fields > label:first-child {grid-column:1 / -1;}
.company-document-line-fields input,.company-document-line-fields select {width:100%;min-width:0;box-sizing:border-box;min-height:44px;font-size:max(16px,1rem);}
.company-document-line-actions {display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;}
.company-document-lines-list {display:grid;gap:8px;min-width:0;}
.company-document-lines-controls {display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.company-document-catalog {
  display:grid;gap:10px;margin-top:8px;padding:12px;min-width:0;
  border:1px solid var(--line);border-radius:14px;background:var(--surface-raised,var(--surface));
}
/* Owner 2026-11-02: the Price book picker as in Workiz - × close, title,
   "+ Add new" on the right, a search field, rows of thumbnail, name and the
   price under it; full screen on a phone. */
.company-document-catalog-head {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;}
.company-document-catalog-title {margin:0;font-size:1.15rem;font-weight:700;min-width:0;overflow-wrap:anywhere;}
.company-document-catalog-close {min-width:44px;min-height:44px;border:0;background:none;color:var(--text);font-size:1.7rem;line-height:1;padding:0;cursor:pointer;}
.company-document-catalog-manual {min-height:44px;border:0;background:none;color:var(--accent,#0a66d8);font-weight:600;font-size:1rem;padding:0 4px;white-space:nowrap;cursor:pointer;}
.company-document-catalog input[type="search"] {width:100%;min-width:0;box-sizing:border-box;min-height:48px;font-size:max(16px,1rem);border:1px solid var(--line);border-radius:10px;padding:0 14px;}
.company-document-catalog .company-document-book-results {display:grid;gap:0;max-height:min(60dvh,560px);overflow-y:auto;min-width:0;}
.company-document-catalog .company-document-book-result,
html.company-canonical-active :is(.company-product-workspace, .company-sheet-layer, .company-schedule-sheet) .company-document-catalog .company-document-book-result.company-button {
  /* Owner review 2026-11-06: the generic button rule centred the row (inline-flex,
     justify-content/text-align center), so the avatar moved row to row. A fixed grid:
     avatar at the left edge, the name flexing and wrapping left, the price right. */
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:"thumb name price" "thumb meta price";
  justify-content:stretch;justify-items:stretch;column-gap:12px;row-gap:2px;align-items:center;
  width:100%;min-width:0;min-height:68px;text-align:left;
  padding:10px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;color:var(--text);
  font-weight:400;line-height:1.3;cursor:pointer;
}
.company-document-book-thumb {grid-area:thumb;align-self:center;justify-self:start;display:grid;place-items:center;width:48px;height:48px;border-radius:10px;
  background:var(--surface-muted);color:var(--text-muted);font-weight:700;font-size:1.1rem;}
.company-document-book-name {grid-area:name;align-self:end;min-width:0;text-align:left;overflow-wrap:anywhere;font-size:1.02rem;font-weight:400;}
.company-document-book-price {grid-area:price;align-self:center;justify-self:end;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;}
.company-document-book-meta {grid-area:meta;align-self:start;min-width:0;text-align:left;color:var(--text-muted);font-size:.85rem;}
.company-document-book-meta:empty {display:none;}
.company-document-book-result:has(.company-document-book-meta:empty) .company-document-book-name {grid-row:1 / span 2;align-self:center;}
@media (max-width:719px) {
  .company-document-catalog:not([hidden]) {
    position:fixed;inset:0;z-index:1100;margin:0;border:0;border-radius:0;
    display:grid;grid-template-rows:auto auto minmax(0,1fr);align-content:start;
    padding:calc(12px + env(safe-area-inset-top,0px)) 16px calc(12px + env(safe-area-inset-bottom,0px));
    background:var(--surface,#fff);
  }
  .company-document-catalog .company-document-book-results {max-height:none;overflow-y:auto;}
}

/* Recall (Owner 2026-10-31): the original job's facts as compact label/value rows. */
.company-new-job-recall-facts { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0.25rem 0 0.5rem; }
.company-new-job-recall-facts dt { color: var(--muted, #64748b); font-size: 0.9em; }
.company-new-job-recall-facts dd { margin: 0; overflow-wrap: anywhere; }
.company-new-job-recall-time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem; }
.company-new-job-recall-time[data-selected="true"] { outline: 2px solid var(--accent, #0a66d8); }

/* Owner 2026-11-03: the header name in the website's OlegOS lettering (the site's own wordmark,
   cut to a transparent image per theme). The text stays for screen readers and as the fallback. */
.topbar .brand-lockup .wordmark {
  display: inline-block;
  width: 7.1em;
  height: 1.12em;
  color: transparent;
  background: url("olegos-wordmark-light.png") left center / contain no-repeat;
}
html[data-theme="dark"] .topbar .brand-lockup .wordmark {
  background-image: url("olegos-wordmark-dark.png");
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .topbar .brand-lockup .wordmark,
  html:not([data-theme]) .topbar .brand-lockup .wordmark {
    background-image: url("olegos-wordmark-dark.png");
  }
}

/* Owner review 2026-11-06: on a phone the wordmark sat on the text baseline of its
   block wrapper (an inline-block plus the line's descender space), so it looked
   shifted up next to the round logo. The wrapper is a centred flex row and the
   wordmark a block with line-height 1, so both share one vertical centre. */
.topbar .brand-lockup {align-items:center;}
@media (max-width:719px) {
  .topbar .brand-lockup > div {display:flex;align-items:center;align-self:stretch;min-width:0;line-height:1;}
  .topbar .brand-lockup .wordmark {display:block;flex:0 1 auto;min-width:0;line-height:1;margin:0;background-position:left center;}
}

/* Platform search (Owner 2026-11-09): a command palette over the page on a
   computer, a full-screen sheet on a phone (430px and narrower). */
.platform-search-layer {position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-start;justify-content:center;padding:min(12vh,96px) 16px 16px;}
.platform-search-layer[hidden] {display:none!important;}
.platform-search-backdrop {position:absolute;inset:0;background:rgba(8,16,32,.38);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);}
.platform-search-dialog {position:relative;display:flex;flex-direction:column;width:min(640px,100%);max-height:min(72vh,640px);border:1px solid var(--line);border-radius:18px;background:var(--surface-raised);color:var(--text);box-shadow:var(--shadow);overflow:hidden;}
.platform-search-bar {display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--line);}
.platform-search-icon {display:inline-grid;place-items:center;flex:none;color:var(--text-muted);}
.platform-search-icon svg {width:20px;height:20px;}
.platform-search-input, .platform-search-input:focus, .platform-search-input:focus-visible {flex:1 1 auto;min-width:0;min-height:44px;margin:0;padding:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:var(--text);font:inherit;font-size:1.05rem;}
.platform-search-input::-webkit-search-cancel-button {display:none;}
.platform-search-close {flex:none;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-muted);color:var(--text-muted);font:inherit;font-size:.85rem;cursor:pointer;}
.platform-search-results {flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:6px 8px 10px;}
.platform-search-group {display:grid;gap:2px;margin-top:6px;}
.platform-search-group-title {margin:8px 10px 4px;color:var(--text-muted);font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;}
.platform-search-option {display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin:0;padding:8px 10px;border:0;border-radius:12px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;box-shadow:none;}
.platform-search-option[aria-selected="true"] {background:var(--sapphire-50);}
.platform-search-option-text {display:grid;flex:1 1 auto;gap:2px;min-width:0;}
.platform-search-option-text strong {font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.platform-search-option-text small {color:var(--text-muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.platform-search-option-go {flex:none;color:var(--text-muted);font-size:1.2rem;}
.platform-search-note, .platform-search-empty {margin:10px;color:var(--text-muted);font-size:.9rem;}
.platform-search-hint {margin:0;padding:8px 16px;border-top:1px solid var(--line);color:var(--text-muted);font-size:.75rem;}
.platform-search-target {scroll-margin-top:84px;outline:2px solid var(--sapphire-500);outline-offset:4px;border-radius:12px;transition:outline-color .6s ease;}
@media (max-width:430px) {
 .platform-search-layer {padding:0;}
 .platform-search-dialog {width:100%;height:100dvh;max-height:none;border:0;border-radius:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);}
 .platform-search-hint {display:none;}
 .platform-search-input {font-size:16px;}
 .platform-search-option-text small {white-space:normal;}
}

/* List auto-refresh (Owner 2026-11-11, modules/company/list-auto-refresh.js):
   the header "Updated hh:mm" hint, the Refresh button while it reads, and a
   short highlight plus a small dot on rows that appeared on a refresh. */
.company-list-updated {align-self:center;font-size:12px;line-height:1.2;color:var(--text-muted);white-space:nowrap;margin-right:2px;}
.company-list-updated.is-failed {color:var(--danger,#b42318);}
.company-list-updated[hidden] {display:none;}
.company-list-refresh.is-refreshing svg {animation:company-list-refresh-spin .8s linear infinite;}
@keyframes company-list-refresh-spin {to {transform:rotate(360deg);}}
.company-list-refresh-bar {display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0 0 8px;}
.company-list-new-dot {display:inline-block;flex:none;width:8px;height:8px;margin-left:6px;border-radius:50%;background:var(--primary,#2563eb);vertical-align:middle;}
.is-list-new-flash.company-jobs-row, .is-list-new-flash.company-leads-row, .is-list-new-flash.company-leads-card {animation:company-list-new-flash 2.4s ease-out 1;}
@keyframes company-list-new-flash {from {background-color:color-mix(in srgb, var(--primary,#2563eb) 16%, transparent);}}
@media (max-width:420px) {.company-list-updated {display:none;}}
@media (prefers-reduced-motion:reduce) {
 .company-list-refresh.is-refreshing svg, .is-list-new-flash.company-jobs-row, .is-list-new-flash.company-leads-row, .is-list-new-flash.company-leads-card {animation:none;}
}
/* Client card at 320-430px (Owner 2026-11-19): its one column never grows to the widest child
   (the auto column made the header, numbers and tabs 672px wide on a 390px iPhone). */
.company-client-card {grid-template-columns:minmax(0,1fr);}
.company-client-card > * {min-width:0;max-width:100%;box-sizing:border-box;}
/* Inbox header on a phone: "Check for new mail" wraps inside its half instead of being cut off. */
@media (max-width:719px) {
  .company-mail-tools.has-compose > button {white-space:normal;height:auto;line-height:1.2;overflow-wrap:anywhere;}
}
/* A text in a thread (Owner 2026-11-19): when it went and "Automatic" / who sent it, under its body. */
.olegos-text-meta {display:flex;flex-wrap:wrap;gap:0 6px;font-size:.75rem;color:var(--text-muted);min-width:0;}
.olegos-text-meta[hidden] {display:none;}
.olegos-text-meta > time, .olegos-text-meta > span {font-size:inherit;line-height:1.35;color:inherit;}
.olegos-text-meta-who:not(:first-child)::before {content:"·";margin-right:6px;}
.olegos-text-meta-who.is-automatic {font-weight:600;}
.customer-message .olegos-text-meta-who {display:block;color:var(--text-muted);}
