/* Navigation only. Do not set display/visibility on controls: existing permission
   gates, workspace selection and native details disclosure remain authoritative. */
#sidebar, #bpOpsModeShell, #bpTwNavigation, #bpw .bpw-nav {
  --bp-nav-icon-size: 28px;
  --bp-nav-icon-ink: var(--inn-on-brand-muted, #d1e5d7);
  --bp-nav-icon-surface: rgba(187, 220, 200, .1);
  --bp-nav-icon-border: rgba(187, 220, 200, .12);
  --bp-nav-active-ink: var(--inn-accent-ink, #835414);
  --bp-nav-active-surface: var(--inn-accent-soft, #fff0da);
}
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control,
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control :is(span, b, strong),
html body #sidebar :is(.navlabel, .bp-workspace-picker-label, .bp-sidebar-developer-label, .bp-workspace-select) {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control {
  align-items: center;
  gap: 10px !important;
  padding: 6px 10px !important;
  min-height: 40px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  border-radius: 9px !important;
  text-align: left;
}
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control > span:not(.bp-nav-icon) {
  min-width: 0;
  overflow-wrap: anywhere;
}
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control > .bp-nav-icon {
  display: inline-grid !important;
  box-sizing: border-box;
  position: relative;
  place-items: center;
  flex: 0 0 var(--bp-nav-icon-size);
  width: var(--bp-nav-icon-size) !important;
  height: var(--bp-nav-icon-size) !important;
  margin: 0 !important;
  padding: 0;
  border: 1px solid var(--bp-nav-icon-border);
  border-radius: 8px;
  background: var(--bp-nav-icon-surface);
  color: var(--bp-nav-icon-ink) !important;
  line-height: 1 !important;
  vertical-align: middle;
  pointer-events: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control > .bp-nav-icon > svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  flex: none;
  margin: 0 !important;
  color: inherit !important;
}
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control:hover > .bp-nav-icon {
  background: rgba(187, 220, 200, .17);
  border-color: rgba(187, 220, 200, .24);
  color: #fff !important;
}
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control:is(.on, .active, [aria-current="page"], [aria-pressed="true"]) > .bp-nav-icon {
  background: var(--bp-nav-active-surface);
  border-color: transparent;
  color: var(--bp-nav-active-ink) !important;
}
html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control:focus-visible {
  outline: 2px solid var(--inn-accent-light, #edc581) !important;
  outline-offset: 2px;
}
html body #sidebar #bpNavRecords > summary.bp-nav-control {
  justify-content: flex-start;
}
html body #sidebar #bpNavRecords > summary.bp-nav-control::after {
  margin-left: auto;
}
html body #sidebar .bp-management-logout.bp-nav-control > .bp-nav-icon {
  margin-inline-end: 10px !important;
}
/* Dynamic Developer entries previously carried their own compact boxed style. */
html body #sidebar #bpSidebarDeveloperTools [data-bp-nav-icon].bp-nav-control {
  width: 100% !important;
  margin: 2px 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
@media (max-width: 1024px), (pointer: coarse) {
  html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control {
    min-height: 44px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(#sidebar, #bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control > .bp-nav-icon { transition: none; }
}

/* The inner menus sit on light surfaces. Forcewa's desktop header inherits
   its own label color; its phone header uses the same light green treatment. */
html body #view-operationsmode #bpOpsModeShell,
html body #bpTasksWorkspace #bpTwNavigation {
  --bp-nav-icon-ink: #315f4a;
  --bp-nav-icon-surface: #edf4ef;
  --bp-nav-icon-border: #dce9df;
}
#bpw .bpw-nav {
  --bp-nav-icon-ink: currentColor;
  --bp-nav-icon-surface: rgba(112, 164, 132, .12);
  --bp-nav-icon-border: rgba(112, 164, 132, .19);
}
html body :is(#bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control:hover > .bp-nav-icon {
  background: #e2eee5;
  border-color: #ccdcd0;
  color: #245a45 !important;
}
html body :is(#bpOpsModeShell .bp-ops-nav, #bpTwNavigation, #bpw .bpw-nav) [data-bp-nav-icon].bp-nav-control:is(.on, .active, [aria-current="page"], [aria-pressed="true"]) > .bp-nav-icon {
  background: var(--bp-nav-active-surface);
  border-color: transparent;
  color: var(--bp-nav-active-ink) !important;
}
/* Retain Front Desk's original icon wrapper and its label/badge grid. */
html body #view-operationsmode #bpOpsModeShell .bp-ops-nav button.bp-nav-control[data-bp-nav-icon] {
  grid-template-columns: 28px minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 7px 8px !important;
  font-weight: 400 !important;
}
html body #view-operationsmode #bpOpsModeShell .bp-ops-nav button.bp-nav-control[data-bp-nav-icon] :is(span, b, strong),
html body #view-operationsmode #bpOpsModeShell .bp-ops-nav-group {
  font-weight: 400 !important;
}
html body #view-operationsmode #bpOpsModeShell .bp-ops-nav button.bp-nav-control[data-bp-nav-icon] > .bp-nav-icon {
  color: var(--bp-nav-icon-ink) !important;
}
html body #view-operationsmode #bpOpsModeShell .bp-ops-nav button.bp-nav-control[data-bp-nav-icon]:hover > .bp-nav-icon {
  color: #245a45 !important;
}
html body #view-operationsmode #bpOpsModeShell .bp-ops-nav button.bp-nav-control[data-bp-nav-icon].on > .bp-nav-icon {
  color: var(--bp-nav-active-ink) !important;
}
/* Section colors remain a corner marker; locks, counts and unread dots keep
   their existing nodes and space. Custom section names may wrap normally. */
html body #bpTasksWorkspace #bpTwNavigation .bp-tw-sec-tab.bp-nav-control {
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  column-gap: 8px !important;
}
html body #bpTasksWorkspace #bpTwNavigation .bp-nav-control > .bp-nav-icon > .bp-sec-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  outline: 2px solid #fcfdfc;
  margin: 0;
}
html body #bpTasksWorkspace #bpTwNavigation .bp-nav-control:is([data-sec-new], .bp-tw-hidden-sections, .bp-layout-entry, summary) > .bp-nav-icon {
  margin-inline-end: 8px !important;
}
html body #bpTasksWorkspace #bpTwNavigation :is(.bp-tw-nav-heading, .bp-tw-nav-totals > summary) { font-weight: 400 !important; }
html body #bpTasksWorkspace #bpTwNavigation .bp-nav-control { min-height: 44px !important; font-weight: 400 !important; }
html body #bpTasksWorkspace #bpTwNavigation .bp-nav-control :is(span, b, strong) { font-weight: 400 !important; }
/* The tabs keep the native horizontal scroller and access-controlled display.
   28px artwork fits both the compact schedule header and normal header. */
html body #bpw .bpw-nav .bp-nav-control {
  min-height: 44px !important;
  gap: 7px !important;
  padding: 0 9px !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
}
html body #bpw .bpw-nav { min-height: 44px !important; }
@media (min-width: 761px) and (max-width: 1540px) {
  html body #bpw:has([data-schedule-grid]) .bpw-h {
    height: 98px !important;
    min-height: 98px !important;
    grid-template-rows: 54px 44px !important;
  }
  html body #bpw:has([data-schedule-grid]) .bpw-nav,
  html body #bpw:has([data-schedule-grid]) .bpw-nav .bp-nav-control { height: 44px !important; }
}
@media (max-width: 820px) {
  html body #view-operationsmode #bpOpsModeShell .bp-ops-nav button.bp-nav-control[data-bp-nav-icon] {
    grid-template-columns: 28px auto auto !important;
  }
}
