html body .bb-header-tools{display:flex;align-items:center;gap:0;flex:none;margin-left:auto}
html body .bb-header-tools .bb-header-icon{display:grid;place-items:center;flex:none;width:30px;min-width:30px;height:30px;min-height:30px;margin:0;padding:7px;border:0!important;border-radius:4px!important;background:transparent!important;color:var(--bb-brand-muted,#bfd6e3)!important;box-shadow:none;cursor:pointer}
html body .bb-header-tools .bb-header-icon svg{display:block;width:15px;height:15px}
html body .bb-header-tools .bb-header-icon:hover{background:#ffffff12!important;color:var(--bb-brand-foreground,#f2faff)!important}
html body .bb-header-tools .bb-header-icon[aria-pressed="true"]{color:var(--bb-brand-blue,#44c4ec)!important}
html body .bb-header-tools-account{justify-content:flex-end;margin-bottom:8px}
html body .bb-header-tools-account .bb-header-icon{color:var(--muted)!important}
html body .topbar .topbar-inner{display:flex!important;align-items:center;gap:10px;min-width:0}
html body .topbar .brand{margin-right:auto}
html body .topbar .app-menu{margin-left:0}
html body #app-menu-panel .bb-settings-menu{display:block;border-top:1px solid var(--border);margin:12px 0 0;padding:8px 0 0}
html body .bb-settings-menu>summary{display:flex;align-items:center;gap:12px;min-height:46px;cursor:pointer;list-style:none;padding:10px 12px;font-size:14px;font-weight:650;color:var(--focus,#167aaa)}
.bb-settings-menu>summary::-webkit-details-marker,.bb-settings-category>summary::-webkit-details-marker{display:none}
.bb-settings-menu>summary svg{width:19px;height:19px;flex:none}
.bb-settings-chevron{display:inline-block;margin-left:auto;transition:transform .15s;font-size:22px;line-height:1}
.bb-settings-menu[open]>summary .bb-settings-chevron,.bb-settings-category[open]>summary .bb-settings-chevron{transform:rotate(90deg)}
.bb-settings-submenu{display:grid;gap:2px;padding:0 4px 8px 31px}
html body .bb-settings-submenu :is(button,a){display:block;width:100%;margin:0;min-height:42px;padding:11px 12px;text-align:left;text-decoration:none;font-size:13px;line-height:1.35;border:0;background:transparent;color:var(--foreground);cursor:pointer}
html body .bb-settings-submenu :is(button,a):hover{background:var(--surface-secondary);color:var(--focus)}
html body .bb-settings-submenu [hidden]{display:none}
html body .bb-settings-title{font-size:26px;line-height:1.2;margin:0 0 20px}
html body .bb-settings-category{margin:0 0 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--foreground);scroll-margin-top:110px}
html body .bb-settings-category>summary{display:flex;align-items:center;gap:14px;min-height:62px;padding:16px 18px;font-size:16px;font-weight:650;cursor:pointer;list-style:none}
html body .bb-settings-category[open]>summary{border-bottom:1px solid var(--separator)}
html body .bb-settings-category-body{padding:18px}
html body .bb-settings-category-body>.bb-settings-card{border:0!important;margin:0 0 16px;box-shadow:none}
html body .bb-settings-category-body>.bb-settings-card>.panel-hd{display:none}
html body .bb-settings-category-body>.bb-settings-card>.bb-settings-body{padding:0}
html body .bb-settings-category-body>p{margin:0 0 16px;font-size:14px;color:var(--muted)}
html body .bb-settings-link{display:inline-flex;align-items:center;justify-content:center;margin:0 8px 8px 0;min-height:44px;padding:10px 14px;border:1px solid var(--border);border-radius:5px;background:var(--surface-secondary);color:var(--foreground);font-size:14px;font-weight:600;text-decoration:none;cursor:pointer}
html body .bb-settings-category[hidden]{display:none}
.bb-app-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;margin:26px 20px 0;padding:20px 0 110px;font-size:11px;color:var(--muted)}
.bb-app-footer a{color:inherit;text-decoration:none;padding:6px 0}
.bb-app-footer a:hover{text-decoration:underline}
.bb-quote-cost-details{margin:20px 0;color:var(--muted);font-size:13px}
.bb-quote-cost-details>summary{cursor:pointer;padding:10px 0}.bb-quote-cost-details>div{padding-top:10px}
.bb-client-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin:0 0 16px;min-width:0}.bb-client-actions>button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;flex:1 1 auto}
#client-delivery-note{font-size:13px;color:var(--warning);padding:12px;border:1px solid var(--border);border-radius:6px}
body[data-bb-view="customer"] #bb-page-head{margin-bottom:8px}
body[data-bb-view="customer"] #bb-page-sub:empty{display:none}
#view-customer .bb-client-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 8px}
#view-customer .bb-client-actions>button,#view-customer #client-ready-open{width:100%;min-height:44px}
#view-customer #client-ready-tools{min-width:0;margin:0;display:block}
#view-customer #client-ready-tools[hidden],#view-customer .client-copy-status[hidden],#view-customer #client-delivery-note[hidden]{display:none!important}
#view-customer #client-ready-status:empty{display:none}
#view-customer #client-delivery-note{display:inline-block;margin:0 0 10px;padding:6px 10px;border-color:var(--warning);border-radius:8px;line-height:1.4}
@media(max-width:600px){#view-customer .bb-client-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#view-customer #client-ready-tools{grid-column:1/-1}}
/* Dark blue dialog headers inherit light-surface ink from their dialogs in
   some themes. Keep the header's own ink tokens paired with its blue gradient. */
html body :is(.bb-cal-dialog-head,.bb-cat-dialog-head,.bb-jobber-head,.bb-order-head,.bb-tool-head,.bb-tools-head,.bb-cal-toolbar){--bb-brand-foreground:#f2faff;--bb-brand-muted:#c7dce9;--bb-brand-blue:#8bddf7;color:#f2faff!important}
html body :is(.bb-cal-dialog-head,.bb-cat-dialog-head,.bb-jobber-head,.bb-order-head,.bb-tool-head,.bb-tools-head) :is(p,small,span){color:#c7dce9!important}
html body .bb-cat-dialog-head #bb-cat-detail-kind{color:#c7dce9!important}
html body .bb-step-number{display:grid;place-items:center;width:21px;height:21px;border:1px solid currentColor;border-radius:50%;font-size:11px}
html body #bb-workflow [hidden]{display:none}
#view-customer #client-wording-details[hidden]{display:none}
@media(max-width:680px){
 html body .topbar .topbar-inner{gap:5px;padding:10px 12px}
 html body .topbar .bid-buddy-logo{width:38px;height:38px;flex-basis:38px}
 html body .topbar .brand{gap:7px;min-width:0}
 html body .topbar .bid-buddy-name{font-size:21px}
 html body .topbar .brand small{font-size:10px}
 html body .topbar .bb-header-tools{margin-left:0}
 html body .topbar :is(#hd-bell,.app-menu-toggle){width:38px;min-width:38px;height:40px;min-height:40px;padding:8px}
 html body .topbar .bb-desktop-links{display:none}
 html body .hdr-right{gap:3px}
 html body .hdr-right .bb-header-tools{margin:0}
 html body .hdr-right .assessment-home-back{display:none}
 html body .hdr-right .bb-header-icon{width:28px;min-width:28px;height:30px;min-height:30px;padding:6px}
 html body .bb-settings-category-body{padding:14px}
}
@media(max-width:360px){
 html body .topbar .topbar-inner{gap:3px}
 html body .topbar .bb-header-tools .bb-header-icon{width:28px;min-width:28px;padding:6px}
 html body .topbar .brand small{font-size:10px!important;letter-spacing:.02em!important}
}
@media(prefers-reduced-motion:reduce){.bb-settings-chevron{transition:none}}
@media print{.bb-header-tools,.bb-app-footer,.bb-client-actions,.bb-quote-cost-details{display:none!important}}

body:has(#view-settings:not(.hidden)) #bb-page-head{display:none!important}
#bb-page-head .bb-page-actions[hidden]{display:none}

/* Work navigation keeps the catalog with bids, while settings stay focused on preferences. */
html body #app-menu-panel .bb-work-menu{margin:0;border:0;padding:0}
html body .bb-work-menu>summary{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 12px;font-size:13px;font-weight:650;cursor:pointer;list-style:none;color:var(--foreground)}
.bb-work-menu>summary::-webkit-details-marker{display:none}
.bb-work-menu>summary svg{width:19px;height:19px;flex:none}
.bb-work-menu.is-current>summary{color:var(--focus);background:var(--surface-secondary)}
.bb-work-menu[open]>summary .bb-settings-chevron{transform:rotate(90deg)}
.bb-work-submenu{display:grid;gap:2px;padding:3px 0 6px 31px}
html body #app-menu-panel .bb-work-submenu .tab{min-height:44px;padding:10px 12px;gap:8px;font-size:12px;border:0;background:transparent;color:var(--foreground)}
html body #app-menu-panel .bb-work-submenu .tab:is(:hover,.active){background:var(--surface-secondary);color:var(--focus)}
/* A chevron belongs to a disclosure; direct destinations stay simple. */
html body .qs-navigation-items{display:grid;gap:3px}
html body .qs-navigation-items :is(.bb-work-menu,.bb-settings-menu){margin:0!important;border:0!important;padding:0!important;min-width:0}
html body .qs-navigation-items .bb-settings-menu>summary{font-size:13px;color:var(--foreground)}
html body .qs-navigation-items .bb-settings-menu.is-current>summary{color:var(--focus);background:var(--surface-secondary)}
html body #assessmentMenu .qs-navigation-heading{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 4px 7px;font-size:13px;font-weight:650;color:var(--muted);border-bottom:1px solid var(--separator);margin-bottom:7px}
html body #assessmentMenu .qs-menu-close{width:32px;min-width:32px;min-height:32px;margin-left:auto;padding:4px;text-align:center;font-size:24px;background:transparent;color:var(--foreground)}
html body #assessmentMenu .qs-navigation-items .tab{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:46px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--foreground);text-decoration:none;font-size:13px;font-weight:600;line-height:1.35;text-align:left}
html body #assessmentMenu .qs-navigation-items .tab svg{width:19px;height:19px;flex:none}
html body #assessmentMenu .qs-navigation-items .tab:is(:hover,.active){background:var(--surface-secondary);color:var(--focus)}
html body .qs-navigation-items .bb-work-submenu .tab{min-height:44px;font-size:12px}
html body .qs-navigation-items .bb-settings-submenu .tab{font-size:12px}
html body .qs-navigation-items :is(.tab,summary):focus-visible{outline:3px solid var(--accent,#3988ff);outline-offset:-2px}
html body .qs-navigation-items .bb-reorder-handle{display:grid;place-items:center;flex:0 0 44px;width:44px;min-width:44px;min-height:44px;margin:0;padding:0!important;font-size:21px;line-height:1;color:var(--muted);background:transparent;border:0;text-align:center}
html body .qs-navigation-heading .bb-reorder-toggle{flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;margin:0 0 0 auto;padding:0;text-align:center;font-size:18px;line-height:1;color:var(--muted);background:transparent;border:1px solid var(--border)}
html body .bb-action-menu{position:relative;flex:none}
html body .bb-action-menu>summary{display:grid;place-items:center;list-style:none;width:44px;min-height:44px;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--foreground);font-size:25px;line-height:1;cursor:pointer}
.bb-action-menu>summary::-webkit-details-marker{display:none}
html body .bb-action-submenu{position:absolute;top:calc(100% + 7px);right:0;display:grid;min-width:180px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 12px 32px #080e1b24;z-index:50}
html body #bb-page-head .bb-action-submenu button{display:block;width:100%;min-height:44px;margin:0;padding:10px 12px;border:0;text-align:left;white-space:nowrap;border-radius:7px;color:var(--foreground);background:transparent;font-size:12px;font-weight:600}
html body .bb-action-submenu button:hover{background:var(--surface-secondary)}
html body :is(.abtn,.bb-primary,.bb-secondary,.ops-button,.hd-cta,.summary-action,.foot-send,.foot-photo,.save-loc-btn){font-size:13px;font-weight:600;letter-spacing:0;min-height:44px}
/* An unanswered option should look tappable before the technician makes the first selection. */
html body.bb-assessment-app :is(.chip,.tech-chip,.reason-chip,.reason-sub-chip):not(.sel):not([aria-pressed="true"]):not(.native-choice-input:checked + span){border-width:2px;border-color:var(--focus,#167aaa)}
html body.bb-assessment-app .loc-btn:not(.active):not(.completed){border-width:2px;border-color:var(--focus,#167aaa)}
html body.bb-assessment-app :is(.chip,.tech-chip,.reason-chip,.reason-sub-chip,.loc-btn):focus-visible{outline:3px solid var(--accent,#3988ff);outline-offset:3px}
@media(max-width:600px){html body :is(.abtn,.bb-primary,.bb-secondary,.ops-button,.hd-cta,.foot-send,.foot-photo,.save-loc-btn){font-size:12px}.bb-action-submenu{right:auto;left:0}}
@media print{.bb-action-menu{display:none!important}}

/* The same opening-time warnings follow quotes through Home and the quote list. */
html body [data-quote-urgency="late"]{--quote-alert-bg:#fff3bd;--quote-alert-ink:#594000;--quote-alert-edge:#dcab16}
html body [data-quote-urgency="overdue"]{--quote-alert-bg:#ffe0dc;--quote-alert-ink:#8c211b;--quote-alert-edge:#ed8a7f}
html body [data-quote-urgency="contact"]{--quote-alert-bg:#fbefed;--quote-alert-ink:#783b35;--quote-alert-border:#e8cbc6;--quote-alert-edge:#bf665d}
html:is(.dark,[data-theme="dark"]) body [data-quote-urgency="contact"]{--quote-alert-bg:#30252b;--quote-alert-ink:#f2cbc7;--quote-alert-border:#60414a;--quote-alert-edge:#ce827a}
html body :is(.hd-alert,.qs-quote-card,.qs-priority-row):is([data-quote-urgency="late"],[data-quote-urgency="overdue"],[data-quote-urgency="contact"]){background:var(--quote-alert-bg)!important;color:var(--quote-alert-ink)!important;border-color:var(--quote-alert-border,var(--quote-alert-edge))!important;border-left:4px solid var(--quote-alert-edge)!important}
html body .qs-priority-row[data-quote-urgency]{padding-left:12px;padding-right:12px;border-radius:8px;margin-bottom:8px}
html body [data-quote-urgency] :is(.hd-alert-link,.hd-txt,.hd-txt b,.hd-txt>span,.qs-quote-heading h4,.qs-quote-address,.qs-quote-meta,.qs-quote-value,.qs-priority-copy h4,.qs-priority-copy p,.qs-card-warning){color:var(--quote-alert-ink,inherit)!important}
html body [data-quote-urgency] :is(.qs-status,.qs-age-label,.qs-priority-badge){color:var(--quote-alert-ink,inherit);background:transparent}
html body .hd-notice-work .hd-alert-link{padding-right:18px}
