/* GENERATED boss frontend bundle v1; DO NOT EDIT THIS FILE.
 * Regenerate: python3 tools/build_boss_frontend_bundle.py --write
 * Verify: python3 tools/build_boss_frontend_bundle.py --check
 * Sources are committed beside this generated artifact.
 * Ordered source manifest SHA256: fc611c0f0e316a361c743d541e6b77062c3caf5c03c360b9aade04b9cfaeed7b
 * Build tool SHA256: 35cdc65d32218a520082c67be38b98048cdd745fc34569529298516319af730d
 */

/* SOURCE frontend/boss-runtime/tabler-shell.base.css SHA256 b37ab6ac676e9cd8849af23fa9d521e51f4146b5b0289b07cb0cb3f2c1bba129 */
/*
 * Thin ERP adapter for the official @tabler/core 1.4.0 stylesheet.
 * Upstream identity and licenses: /vendor/tabler-1.4.0/SOURCE.md
 *
 * This file only resolves the existing owner-console shell/layout conflicts.
 * Cards, buttons, forms, tables, badges and alerts come from Tabler classes
 * applied in app.js; this adapter does not rebuild those components.
 */

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
  /* ERP semantic tokens. Tabler remains the only component runtime. */
  --boss-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --boss-space-1: 0.25rem;
  --boss-space-2: 0.5rem;
  --boss-space-3: 0.75rem;
  --boss-space-4: 1rem;
  --boss-space-6: 1.5rem;
  --boss-space-8: 2rem;
  --boss-radius-sm: 0.375rem;
  --boss-radius-md: 0.5rem;
  --boss-radius-lg: 0.5rem;
  --boss-radius-pill: 999px;
  --boss-surface-page: #f7f7f4;
  --boss-surface-default: #ffffff;
  --boss-surface-subtle: #fafaf8;
  --boss-surface-muted: #f1f4f6;
  --boss-surface-raised: #ffffff;
  --boss-surface-sidebar: #172a46;
  --boss-surface-sidebar-hover: rgba(255, 255, 255, 0.08);
  --boss-surface-sidebar-active: rgba(91, 155, 200, 0.22);
  --boss-surface-overlay: rgba(15, 23, 42, 0.52);
  --boss-text-primary: #1b2738;
  --boss-text-secondary: #586779;
  --boss-text-muted: #6f7d8d;
  --boss-icon-muted: #7f8b99;
  --boss-text-on-dark: #f7fafc;
  --boss-text-on-dark-muted: #bdc6d2;
  --boss-border-default: #e1e5e8;
  --boss-border-soft: #edf0f2;
  --boss-border-strong: #cbd3da;
  --boss-action-primary: #1f4e79;
  --boss-action-primary-hover: #173d61;
  --boss-action-primary-soft: #e6f1f8;
  --boss-action-secondary: #365873;
  --boss-action-disabled: #aab2bd;
  --boss-accent: #5b9bc8;
  --boss-focus-color: #245f8f;
  --boss-focus-ring: 0 0 0 3px rgba(36, 95, 143, 0.22);
  --boss-status-confirmed: #176b4d;
  --boss-status-confirmed-bg: #e9f6f0;
  --boss-status-pending: #8b5a00;
  --boss-status-pending-bg: #fff5d8;
  --boss-status-partial: #7a4a00;
  --boss-status-partial-bg: #fff0c2;
  --boss-status-unknown: #536173;
  --boss-status-unknown-bg: #eef2f5;
  --boss-status-error: #a22835;
  --boss-status-error-bg: #fcebed;
  --boss-status-info: #285a88;
  --boss-status-info-bg: #edf5fc;
  --boss-shadow-card: 0 1px 2px rgba(23, 42, 70, 0.025);
  --boss-shadow-card-hover: 0 2px 8px rgba(23, 42, 70, 0.07);
  --boss-shadow-inset: inset 0 0 0 1px rgba(16, 24, 40, 0.035);
  --boss-shadow-overlay: 0 24px 64px rgba(15, 23, 42, 0.2);

  /* Project the ERP tokens into Tabler instead of installing another theme. */
  --tblr-font-sans-serif: var(--boss-font-sans);
  --tblr-body-bg: var(--boss-surface-page);
  --tblr-bg-surface: var(--boss-surface-default);
  --tblr-bg-surface-secondary: var(--boss-surface-subtle);
  --tblr-body-color: var(--boss-text-primary);
  --tblr-secondary-color: var(--boss-text-secondary);
  --tblr-border-color: var(--boss-border-default);
  --tblr-primary: var(--boss-action-primary);
  --tblr-primary-rgb: 31, 78, 121;
  --tblr-card-bg: var(--boss-surface-default);
  --tblr-card-border-color: var(--boss-border-default);
  --tblr-card-border-radius: var(--boss-radius-md);
  --tblr-card-box-shadow: var(--boss-shadow-card);
  --tblr-border-radius-sm: var(--boss-radius-sm);
  --tblr-border-radius: var(--boss-radius-md);
  --tblr-border-radius-lg: var(--boss-radius-lg);
  --tblr-box-shadow-sm: var(--boss-shadow-card);
  --tblr-box-shadow: var(--boss-shadow-overlay);
  --tblr-page-padding: var(--boss-space-4);

  /* Versioned variables are compatibility aliases only. */
  --boss-v173-bg: var(--boss-surface-page);
  --boss-v173-paper: var(--boss-surface-default);
  --boss-v173-ink: var(--boss-text-primary);
  --boss-v173-muted: var(--boss-text-secondary);
  --boss-v173-line: var(--boss-border-default);
  --boss-v173-gold: var(--boss-status-pending);
  --boss-v173-danger: var(--boss-status-error);
  --boss-v173-system: var(--boss-action-primary);
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: clamp(12.25rem, 17vw, 14.5rem) minmax(0, 1fr);
  color-scheme: light;
  color: var(--boss-text-primary);
  background: var(--boss-surface-page);
  font-family: var(--boss-font-sans);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"]:not([hidden]) {
  display: grid;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
  --tblr-navbar-color: rgb(255 255 255 / 72%);
  --tblr-navbar-hover-color: #fff;
  --tblr-navbar-active-color: #fff;
  --tblr-navbar-active-bg: rgba(var(--tblr-primary-rgb), 0.34);
  position: sticky !important;
  inset: 0 auto auto 0;
  z-index: 30;
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  border: 0;
  border-right: var(--tblr-border-width) solid rgb(255 255 255 / 10%);
  color: var(--tblr-navbar-color);
  background: var(--tblr-gray-900);
  box-shadow: var(--tblr-box-shadow-sm);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand {
  width: 100%;
  min-height: 2.75rem;
  justify-content: flex-start;
  padding: 0 0.5rem;
  color: #fff;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand:hover,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand:focus {
  color: #fff;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav.navbar-collapse {
  display: flex !important;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-basis: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tools-trigger.nav-link {
  width: 100%;
  min-height: 2.5rem;
  justify-content: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--tblr-border-radius);
  color: var(--tblr-navbar-color);
  background: transparent;
  font-weight: var(--tblr-font-weight-medium);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link:hover,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link:focus-visible,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link.active,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tools-trigger.nav-link:hover,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tools-trigger.nav-link:focus-visible {
  color: var(--tblr-navbar-active-color);
  background: var(--tblr-navbar-active-bg);
  text-decoration: none;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link.active::before {
  display: none;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-identity {
  margin-top: auto;
  border-color: rgb(255 255 255 / 12%);
  color: #fff;
  background: rgb(255 255 255 / 6%);
  box-shadow: none;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-build.badge {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 0.375rem 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--tblr-font-size-h6);
  font-weight: var(--tblr-font-weight-medium);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-main.page-wrapper {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  margin: 0;
  padding: 0;
  background: var(--tblr-body-bg);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-width: 0;
  min-height: 4rem;
  height: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.625rem 1.25rem;
  border: 0;
  border-bottom: var(--tblr-border-width) solid var(--tblr-border-color);
  background: color-mix(in srgb, var(--tblr-bg-surface) 96%, transparent);
  box-shadow: var(--tblr-box-shadow-sm);
  backdrop-filter: blur(12px);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-title,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions {
  min-width: 0;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: var(--tblr-body-bg);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body > .boss-console-page.container-xl {
  width: 100%;
  margin-inline: auto;
  padding: var(--tblr-page-padding);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .card {
  color: var(--tblr-body-color);
  background: var(--tblr-card-bg);
  border-color: var(--tblr-card-border-color);
  border-radius: var(--tblr-card-border-radius);
  box-shadow: var(--tblr-card-box-shadow);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .card-header {
  border-color: var(--tblr-card-border-color);
  background: var(--tblr-card-cap-bg);
}
/* Remove the legacy dark-tier text inheritance on this one light card family. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-tier-grid > button.card { background: var(--tblr-card-bg); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-tier-grid > button.card :is(strong, b) { color: var(--tblr-body-color); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-tier-grid > button.card :is(em, p, small) { color: var(--tblr-secondary-color); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-tier-grid > button.card .boss-v153-tier-link { color: var(--tblr-primary); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root[data-boss-page-state="unknown"]::before {
  color: var(--tblr-warning-text-emphasis);
  background: var(--tblr-warning-bg-subtle);
  border-color: var(--tblr-warning-border-subtle);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root[data-boss-page-state="error"]::before {
  color: var(--tblr-danger-text-emphasis);
  background: var(--tblr-danger-bg-subtle);
  border-color: var(--tblr-danger-border-subtle);
}

/* Internal component shelf: layout-only adapter around official Tabler classes. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-master {
  display: grid;
  gap: 1.25rem;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-master-hero {
  margin: 0;
  padding: 0.25rem 0;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-master-section {
  min-width: 0;
  overflow: visible;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-token-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-color-token {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.125rem 0.625rem;
  min-width: 0;
  padding: 0.625rem;
  border: var(--tblr-border-width) solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  background: var(--tblr-bg-surface);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-color-token > span {
  grid-row: 1 / span 2;
  width: 2rem;
  height: 2rem;
  border-radius: var(--tblr-border-radius-sm);
  background: var(--boss-ui-swatch);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-color-token code {
  overflow: hidden;
  color: var(--tblr-secondary-color);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-specimen {
  height: 100%;
  padding: 1rem;
  border: var(--tblr-border-width) solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  background: var(--tblr-bg-surface-secondary);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-spacing,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-shape-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-spacing i {
  display: block;
  min-width: 0.25rem;
  height: 1.5rem;
  background: var(--tblr-primary);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-spacing i[data-size="4"] { width: 0.25rem; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-spacing i[data-size="8"] { width: 0.5rem; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-spacing i[data-size="16"] { width: 1rem; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-shape-row i {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border: var(--tblr-border-width) solid var(--tblr-border-color);
  background: var(--tblr-bg-surface);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-shape-row i[data-radius="sm"] { border-radius: var(--tblr-border-radius-sm); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-shape-row i[data-radius="md"] { border-radius: var(--tblr-border-radius); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-shape-row i[data-radius="lg"] { border-radius: var(--tblr-border-radius-lg); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-shape-row i[data-shadow="sm"] { box-shadow: var(--tblr-box-shadow-sm); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-shape-row i[data-shadow="md"] { box-shadow: var(--tblr-box-shadow); }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-demo-dropdown .dropdown-menu.show {
  display: block;
  position: absolute;
  inset: 100% auto auto 0;
  z-index: 15;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-demo-state {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 1rem;
  border: var(--tblr-border-width) dashed var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  text-align: center;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-demo-state small {
  color: var(--tblr-secondary-color);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-master .modal.show {
  position: fixed;
  z-index: 1060;
  display: block;
  overflow: auto;
  background: rgb(31 41 55 / 50%);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-master .offcanvas.show {
  z-index: 1065;
  visibility: visible;
  transform: none;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-master :is(.modal, .offcanvas)[hidden] {
  display: none !important;
}

@media (max-width: 1200px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-token-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
    grid-template-columns: 12.25rem minmax(0, 1fr);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-inline: 1rem;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
    grid-template-columns: minmax(0, 1fr);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
    position: relative !important;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body > .boss-console-page.container-xl {
    padding: calc(var(--tblr-page-padding) * 0.75);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ui-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final component corrections discovered in the live five-page review. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state {
  min-height: 22px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state > b {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: var(--boss-radius-pill);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state.is-confirmed > b,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state.is-zero > b {
  color: var(--boss-status-confirmed);
  background: var(--boss-status-confirmed-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state:is(.is-partial, .is-pending) > b {
  color: var(--boss-status-pending);
  background: var(--boss-status-pending-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state > small {
  color: var(--boss-text-muted);
  font-size: 10px;
  line-height: 15px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs.boss-saas-kpi-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs.boss-saas-kpi-grid > button {
  width: 100% !important;
  min-width: 0;
  margin: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v169-people-hero-copy .boss-saas-status-line {
  width: max-content;
  max-width: 100%;
  min-height: 0;
  display: block;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v169-capability-summary {
  width: max-content;
  max-width: 100%;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v169-capability-summary > summary {
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #cfe6de;
  border-radius: var(--boss-radius-pill);
  color: var(--boss-status-confirmed);
  background: var(--boss-status-confirmed-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch;
  gap: 8px !important;
  padding: 11px !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > form[data-boss-student-search-form] {
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > form[data-boss-student-search-form] > label {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 11px !important;
  border: 1px solid var(--boss-border-strong) !important;
  border-radius: 9px !important;
  color: var(--boss-icon-muted);
  background: #f9fbfb !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > form[data-boss-student-search-form] input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > :is(
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-v170-nickname-filters
) {
  width: 100%;
  min-width: 0;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--boss-border-soft);
  border-radius: 9px;
  background: var(--boss-surface-muted);
}

@media (max-width: 760px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs.boss-saas-kpi-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Keep the frozen 3 + 2 activity summary at the 1024 desktop breakpoint.
 * This intentionally follows the legacy max-width strip rule above so the
 * five-fact DOM is not expanded back into full-width compatibility cards. */
@media (min-width: 1024px) and (max-width: 1119.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-strip.boss-ops-activity-summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > .boss-ops-activity-summary-item {
    grid-column: span 2;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > .boss-ops-activity-summary-item:nth-child(n + 4) {
    grid-column: span 3;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-v153-person-head, .boss-people-table-head, .boss-people-table-row, .boss-ops-person-row) {
    grid-template-columns: minmax(230px, 1.35fr) minmax(140px, 0.75fr) minmax(170px, 0.85fr) minmax(200px, 1fr) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-v153-person-head, .boss-people-table-head, .boss-people-table-row, .boss-ops-person-row) > :is(:nth-child(3), :nth-child(4)) {
    display: none;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-v153-person-head, .boss-people-table-head) > :nth-child(6) {
    display: block;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-people-table-row, .boss-ops-person-row) > :nth-child(6) {
    display: flex;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(.boss-product-catalog-head, .boss-product-catalog-row, .boss-ops-product-row) {
    grid-template-columns: 72px minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(150px, 0.8fr) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(.boss-product-catalog-head, .boss-product-catalog-row, .boss-ops-product-row) > :is(:nth-child(3), :nth-child(5)) {
    display: none;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table .boss-product-catalog-head > :nth-child(6) {
    display: block;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(.boss-product-catalog-row, .boss-ops-product-row) > :nth-child(6) {
    display: flex;
  }
}

/* Final SaaS integration layer.
 * Keep these rules last: the blocks above include frozen compatibility styles
 * for older boss pages, while the five core pages now expose boss-saas-* hooks.
 * This tail prevents those older grid rules from flattening the new hierarchy. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-head {
  display: block !important;
  min-height: 0;
  padding: 16px 18px !important;
  border: 1px solid var(--boss-border-soft) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: var(--boss-shadow-card) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title status"
    "body status";
  align-items: center;
  gap: 3px 18px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > h2 {
  grid-area: title;
  margin: 0 !important;
  line-height: 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > h2 > .boss-console-page-title-link {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--boss-text-primary) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 20px !important;
  line-height: 27px !important;
  font-weight: 740 !important;
  letter-spacing: -0.025em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > h2 > .boss-console-page-title-link > svg {
  width: 16px;
  height: 16px;
  color: var(--boss-icon-muted);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > p {
  grid-area: body;
  margin: 0 !important;
  color: var(--boss-text-secondary);
  font-size: 12px;
  line-height: 18px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > .boss-saas-status-line {
  width: max-content;
  max-width: 320px;
  min-height: 42px;
  grid-area: status;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 8px;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid var(--boss-border-soft) !important;
  border-radius: 10px !important;
  background: var(--boss-surface-subtle) !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card {
  min-width: 0;
  min-height: 122px;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  padding: 13px 14px !important;
  overflow: hidden;
  text-align: left;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-saas-kpi-label {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-saas-kpi-value {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  overflow: hidden;
  color: var(--boss-text-primary);
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 23px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state {
  width: 100%;
  max-width: none;
  min-width: 0;
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: stretch !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  color: var(--boss-text-muted);
  text-align: left !important;
  white-space: normal;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-controls.boss-ops-activity-controls {
  min-height: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding: 10px !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-controls [data-boss-today-search-form] {
  min-height: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-controls [data-boss-today-search-form] > label {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 11px !important;
  border: 1px solid var(--boss-border-strong) !important;
  border-radius: 9px !important;
  color: var(--boss-icon-muted);
  background: #f9fbfb !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-controls [data-boss-today-search-form] > label > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-controls [data-boss-today-search-form] input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-controls .boss-v170-ledger-filters {
  min-width: 0;
  margin: 0;
}

@media (min-width: 1024px) and (max-width: 1119.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card {
    min-height: 112px;
    grid-column: span 2;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "body"
      "status";
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > .boss-saas-status-line {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
 * Mature SaaS presentation layer
 *
 * Tabler 1.4.0 remains the only component system. These rules only tune the
 * existing semantic classes and the stable boss-saas-* hooks used by the five
 * primary owner workflows. No business state is inferred in CSS.
 * ----------------------------------------------------------------------- */

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
  letter-spacing: -0.005em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-main.page-wrapper,
  .boss-console-page-root.page-body
) {
  background:
    radial-gradient(circle at 92% -10%, rgba(36, 180, 147, 0.055), transparent 30rem),
    var(--boss-surface-page);
}

/* Shell: calm navigation, one visual language for every top-bar action. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
  gap: 18px;
  padding: 18px 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 32%),
    var(--boss-surface-sidebar);
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.055);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand {
  min-height: 48px;
  gap: 11px;
  padding-inline: 4px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #b98731, #8f6727);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.2);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand > span svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand strong {
  font-size: 14px;
  line-height: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand em {
  display: block;
  color: rgba(225, 232, 240, 0.62);
  font-size: 11px;
  line-height: 16px;
  font-style: normal;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-nav-group.navbar-nav > .nav-link,
  .boss-management-tools-trigger.nav-link
) {
  min-height: 42px;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-nav-group.navbar-nav > .nav-link,
  .boss-management-tools-trigger.nav-link
) > svg:first-child {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link:hover {
  transform: translateX(1px);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link.active {
  background: linear-gradient(90deg, rgba(46, 196, 164, 0.2), rgba(46, 196, 164, 0.1));
  box-shadow: inset 3px 0 0 #39c7a6;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link > b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding-inline: 5px;
  border-radius: var(--boss-radius-pill);
  color: #fff;
  background: #d6465f;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--boss-surface-sidebar);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-identity {
  min-height: 54px;
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
  min-height: 62px;
  padding: 9px 22px;
  border-bottom-color: rgba(203, 212, 217, 0.72);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.025), 0 8px 24px rgba(16, 24, 40, 0.025);
  backdrop-filter: blur(16px) saturate(1.15);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-title-link.page-title {
  min-height: 36px;
  padding: 0;
  border: 0;
  color: var(--boss-text-primary);
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  line-height: 24px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-scope.badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #d8e3ea;
  border-radius: var(--boss-radius-pill);
  color: #3f6380;
  background: #f1f6fa !important;
  box-shadow: none;
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-scope.badge strong {
  color: #315570;
  font-weight: 700;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions :is(
  .btn,
  .boss-console-sync-status,
  .boss-console-quick,
  .boss-ai-top-entry,
  .boss-console-notify
) {
  min-height: 36px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sync-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #d8e3ea;
  color: #416780;
  background: #f3f7fa !important;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ai-top-entry.btn {
  border-color: #dacba7;
  color: #725625;
  background: #fffaf0;
  box-shadow: 0 1px 2px rgba(107, 78, 27, 0.06);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ai-top-entry.btn:hover {
  border-color: #cbb781;
  color: #5d451d;
  background: #fff6df;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-quick.btn {
  border-color: var(--boss-action-primary);
  color: #fff;
  background: var(--boss-action-primary);
  box-shadow: 0 3px 8px rgba(18, 77, 67, 0.16);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-color: var(--boss-border-default);
  color: var(--boss-text-secondary);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn > b {
  box-shadow: 0 0 0 2px #fff;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-range-tabs {
  padding: 3px;
  border: 1px solid var(--boss-border-soft);
  border-radius: 10px;
  background: var(--boss-surface-muted);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-range-tabs .btn {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  color: var(--boss-text-secondary);
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-range-tabs .btn.active {
  color: var(--boss-action-primary);
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}

/* The fixture warning is a context ribbon, not another content card. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-fixture-notice.alert {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 22px 0;
  padding: 9px 13px;
  border: 0;
  border-left: 3px solid #c99432;
  border-radius: 9px;
  color: #5f4b25;
  background: #fff8e7;
  box-shadow: 0 1px 2px rgba(94, 72, 30, 0.055);
  font-size: 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-fixture-notice.alert svg {
  width: 17px;
  height: 17px;
  color: #9a7028;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-fixture-notice.alert span {
  color: #806f50;
}

/* Page hierarchy: titles sit on the canvas; operating content sits in panels. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body > .boss-console-page.container-xl {
  padding: 20px 22px 32px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-page,
  .boss-saas-page
) {
  display: grid;
  gap: 16px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page-head,
  .boss-v153-hero,
  .boss-v169-people-hero,
  .boss-ops-page-hero,
  .boss-saas-hero
) {
  min-height: 0;
  margin: 0;
  padding: 3px 3px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page-head,
  .boss-v153-hero,
  .boss-v169-people-hero,
  .boss-ops-page-hero,
  .boss-saas-hero
) :is(h1, h2) {
  margin: 0;
  color: var(--boss-text-primary);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 32px;
  font-weight: 740;
  letter-spacing: -0.025em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page-head,
  .boss-v153-hero,
  .boss-v169-people-hero,
  .boss-ops-page-hero,
  .boss-saas-hero
) p {
  margin: 4px 0 0;
  color: var(--boss-text-secondary);
  font-size: 13px;
  line-height: 20px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page-head,
  .boss-v153-hero,
  .boss-v169-people-hero
) > span:first-child,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-head :is(.page-pretitle, .boss-console-eyebrow) {
  color: var(--boss-action-primary);
  font-size: 11px;
  line-height: 16px;
  font-weight: 750;
  letter-spacing: 0.055em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-page-status-line {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--boss-border-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-page-status-line .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36be89;
  box-shadow: 0 0 0 5px rgba(54, 190, 137, 0.11);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-page-status-line strong {
  display: block;
  color: var(--boss-text-primary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 680;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-page-status-line em {
  display: block;
  color: var(--boss-text-muted);
  font-size: 11px;
  line-height: 16px;
  font-style: normal;
}

/* Shared panels: subtle boundary, clear header, no nested white-box cascade. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel,
  .boss-ops-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board,
  .boss-product-catalog-table
) {
  border: 1px solid rgba(214, 222, 226, 0.92);
  border-radius: var(--boss-radius-lg);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board
) > :is(header, .boss-saas-panel-head) {
  min-height: 58px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--boss-border-soft);
  background: linear-gradient(180deg, #fff, #fcfdfd);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board
) > header h3 {
  margin: 1px 0 0;
  color: var(--boss-text-primary);
  font-size: 15px;
  line-height: 21px;
  font-weight: 720;
  letter-spacing: -0.012em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board
) > header div > span:first-child {
  color: var(--boss-action-primary);
  font-size: 10px;
  line-height: 15px;
  font-weight: 750;
  letter-spacing: 0.065em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board
) > header p {
  margin: 3px 0 0;
  color: var(--boss-text-muted);
  font-size: 12px;
  line-height: 18px;
}

/* KPI cards: compact, tonal and ranked rather than six identical boxes. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-kpi-grid,
  .boss-v153-metric-grid,
  .boss-product-catalog-summary,
  .boss-v153-conversion-summary
) {
  gap: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-kpi-card,
  .boss-v153-metric-card,
  .boss-ops-activity-summary-item,
  .boss-product-catalog-summary > article,
  .boss-v153-conversion-summary > article
) {
  --boss-metric-accent: #3d7da6;
  --boss-metric-soft: rgba(61, 125, 166, 0.075);
  position: relative;
  min-width: 0;
  min-height: 104px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(218, 225, 229, 0.88);
  border-radius: 12px;
  color: var(--boss-text-primary);
  background: linear-gradient(145deg, #fff 62%, var(--boss-metric-soft));
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035), 0 7px 20px rgba(16, 24, 40, 0.035);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-kpi-card,
  .boss-v153-metric-card,
  .boss-product-catalog-summary > article,
  .boss-v153-conversion-summary > article
)::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--boss-metric-accent);
  opacity: 0.78;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-metric-card.people, .boss-saas-kpi-card.is-people) {
  --boss-metric-accent: #4d7fbd;
  --boss-metric-soft: rgba(77, 127, 189, 0.075);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-metric-card.inventory, .boss-saas-kpi-card.is-inventory) {
  --boss-metric-accent: #319e87;
  --boss-metric-soft: rgba(49, 158, 135, 0.08);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-metric-card.sales, .boss-saas-kpi-card.is-sales) {
  --boss-metric-accent: #397ca8;
  --boss-metric-soft: rgba(57, 124, 168, 0.08);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-metric-card.profit, .boss-saas-kpi-card.is-profit) {
  --boss-metric-accent: #a3752e;
  --boss-metric-soft: rgba(163, 117, 46, 0.09);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button.boss-v153-metric-card,
  button.boss-saas-kpi-card
) {
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button.boss-v153-metric-card,
  button.boss-saas-kpi-card
):hover {
  border-color: color-mix(in srgb, var(--boss-metric-accent) 30%, var(--boss-border-default));
  box-shadow: var(--boss-shadow-card-hover);
  transform: translateY(-1px);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card {
  min-height: 112px;
  grid-template-rows: auto auto auto auto;
  gap: 4px;
  padding: 13px 14px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-metric-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--boss-text-secondary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 650;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-metric-head > svg {
  width: 17px;
  height: 17px;
  box-sizing: content-box;
  padding: 6px;
  border-radius: 8px;
  color: var(--boss-metric-accent);
  background: color-mix(in srgb, var(--boss-metric-accent) 10%, #fff);
  stroke-width: 1.8;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > strong,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-saas-kpi-card, .boss-product-catalog-summary > article) > strong {
  margin: 5px 0 1px;
  color: var(--boss-text-primary);
  font-size: clamp(24px, 2.2vw, 30px) !important;
  line-height: 32px !important;
  font-weight: 720;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > p {
  min-height: 0;
  margin: 0;
  color: var(--boss-text-muted);
  font-size: 11px;
  line-height: 16px;
  -webkit-line-clamp: 1 !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-metric-state {
  width: max-content;
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border: 0;
  border-radius: var(--boss-radius-pill);
  color: var(--boss-status-unknown);
  background: var(--boss-status-unknown-bg);
  font-size: 10px !important;
  line-height: 16px !important;
  font-weight: 650;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-metric-card.is-confirmed .boss-v153-metric-state {
  color: var(--boss-status-confirmed);
  background: var(--boss-status-confirmed-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-metric-card:is(.is-partial, .is-pending) .boss-v153-metric-state {
  color: var(--boss-status-pending);
  background: var(--boss-status-pending-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-metric-link {
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
  color: var(--boss-action-primary);
  font-size: 10px !important;
  line-height: 15px !important;
  font-weight: 650;
}

/* Today summary is one compact command strip, not five full-size cards. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item {
  min-height: 88px;
  padding: 12px 13px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item.is-confirmed {
  --boss-metric-accent: #2f8b70;
  --boss-metric-soft: rgba(47, 139, 112, 0.07);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item:is(.is-partial, .is-pending) {
  --boss-metric-accent: #ad7c2d;
  --boss-metric-soft: rgba(173, 124, 45, 0.08);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item > :is(strong, .boss-ops-activity-summary-value) {
  font-size: 24px;
  line-height: 28px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-kpi-label {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--boss-text-secondary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 650;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-kpi-label > svg {
  width: 17px;
  height: 17px;
  box-sizing: content-box;
  padding: 5px;
  border-radius: 8px;
  color: var(--boss-metric-accent);
  background: color-mix(in srgb, var(--boss-metric-accent) 10%, #fff);
  stroke-width: 1.8;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-kpi-value {
  display: block;
  margin: 6px 0 1px;
  color: var(--boss-text-primary);
  font-size: clamp(23px, 2.1vw, 29px);
  line-height: 31px;
  font-weight: 730;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-saas-kpi-card.is-active {
  border-color: color-mix(in srgb, var(--boss-metric-accent) 42%, var(--boss-border-default));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--boss-metric-accent) 12%, transparent), var(--boss-shadow-card);
}

/* Buttons and fields. Clickable cards keep their own visual treatment. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page button:not(.boss-v153-metric-card):not(.boss-saas-kpi-card):not(.boss-v153-person-identity):not(.boss-v153-tier-grid > button):not(.boss-conversion-queue-tabs > button),
  .boss-saas-primary-action,
  .boss-saas-secondary-action
) {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--boss-border-default);
  border-radius: 8px;
  color: var(--boss-text-secondary);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
  font-size: 12px;
  line-height: 18px;
  font-weight: 650;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page button:not(.boss-v153-metric-card):not(.boss-saas-kpi-card):not(.boss-v153-person-identity):not(.boss-v153-tier-grid > button):not(.boss-conversion-queue-tabs > button),
  .boss-saas-secondary-action
):not(:disabled):hover {
  border-color: #b8c5cb;
  color: var(--boss-text-primary);
  background: var(--boss-surface-subtle);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.07);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page button.primary,
  .boss-console-page .btn-primary,
  .boss-saas-primary-action
) {
  border-color: var(--boss-action-primary);
  color: #fff;
  background: linear-gradient(180deg, #17584d, var(--boss-action-primary));
  box-shadow: 0 3px 8px rgba(18, 77, 67, 0.15);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page button.primary,
  .boss-console-page .btn-primary,
  .boss-saas-primary-action
):not(:disabled):hover {
  border-color: var(--boss-action-primary-hover);
  color: #fff;
  background: var(--boss-action-primary-hover);
  box-shadow: 0 4px 12px rgba(18, 77, 67, 0.2);
  transform: translateY(-1px);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button:disabled {
  color: #9aa4af !important;
  border-color: #e2e7ea !important;
  background: #f4f6f7 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.82;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .form-control,
  .form-select
) {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--boss-border-strong);
  border-radius: 8px;
  color: var(--boss-text-primary);
  background: #fbfcfc;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, 0.02);
  font-size: 13px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .form-control,
  .form-select
):focus {
  border-color: #6aa797;
  background: #fff;
  box-shadow: var(--boss-focus-ring);
}

/* Filter bars use grouped controls instead of a row of unrelated boxes. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-filterbar,
  .boss-ops-filter-toolbar,
  .boss-v153-people-toolbar,
  .boss-v153-activity-controls,
  .boss-product-catalog-toolbar
) {
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(214, 222, 226, 0.9);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters,
  .boss-v170-nickname-filters,
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-conversion-queue-tabs,
  .boss-product-catalog-toolbar fieldset,
  .boss-ops-filter-primary,
  .boss-ops-filter-secondary
) {
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--boss-border-soft);
  border-radius: 10px;
  background: var(--boss-surface-muted);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters,
  .boss-v170-nickname-filters,
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-product-catalog-toolbar fieldset,
  .boss-ops-filter-primary,
  .boss-ops-filter-secondary
) > span:first-child {
  padding: 0 7px;
  color: var(--boss-text-muted);
  font-size: 11px;
  line-height: 30px;
  font-weight: 650;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters,
  .boss-v170-nickname-filters,
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-product-catalog-toolbar fieldset,
  .boss-ops-filter-primary,
  .boss-ops-filter-secondary
) > button {
  min-height: 32px !important;
  padding: 6px 9px !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: var(--boss-text-secondary) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11px !important;
  line-height: 18px;
  font-weight: 620;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters,
  .boss-v170-nickname-filters,
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-product-catalog-toolbar fieldset,
  .boss-ops-filter-primary,
  .boss-ops-filter-secondary
) > button.active {
  color: var(--boss-action-primary) !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-toolbar fieldset {
  padding: 4px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-toolbar legend {
  margin: 0;
  padding: 0 7px;
  color: var(--boss-text-muted);
  font-size: 10px;
  line-height: 22px;
  font-weight: 680;
}

/* Status language: compact pills with stable semantic color. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .badge,
  .boss-console-status,
  [class*="status-pill"],
  [class*="truth-chip"],
  .boss-v153-tier-pill
) {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--boss-status-unknown) 14%, transparent);
  border-radius: var(--boss-radius-pill);
  font-size: 10px;
  line-height: 14px;
  font-weight: 680;
  letter-spacing: 0;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-status.success,
  .boss-console-status.ready,
  .boss-console-status.confirmed,
  [class*="truth-chip"].confirmed
) {
  color: var(--boss-status-confirmed);
  border-color: rgba(23, 107, 77, 0.14);
  background: var(--boss-status-confirmed-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-status.warn,
  .boss-console-status.pending,
  .boss-console-status.partial,
  [class*="truth-chip"].pending,
  [class*="truth-chip"].partial
) {
  color: var(--boss-status-pending);
  border-color: rgba(139, 90, 0, 0.15);
  background: var(--boss-status-pending-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-status.danger,
  .boss-console-status.error,
  .boss-console-status.conflict,
  [class*="truth-chip"].error
) {
  color: var(--boss-status-error);
  border-color: rgba(162, 40, 53, 0.14);
  background: var(--boss-status-error-bg);
}

/* Data surfaces: neutral headers, row cadence and aligned factual numbers. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-table,
  .boss-saas-data-list,
  .boss-v153-person-table,
  .boss-product-catalog-table,
  .boss-activity-table
) {
  overflow: hidden;
  border-radius: var(--boss-radius-lg);
  background: #fff;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .table thead tr,
  .boss-v153-person-head,
  .boss-people-table-head,
  .boss-product-catalog-head,
  .boss-activity-table-head,
  .boss-saas-data-table [role="row"]:first-child
) {
  min-height: 42px;
  color: #697786;
  background: #f5f7f8;
  border-bottom: 1px solid var(--boss-border-default);
  font-size: 11px;
  line-height: 16px;
  font-weight: 680;
  letter-spacing: 0.015em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .table tbody tr,
  .boss-people-table-row,
  .boss-product-catalog-row,
  .boss-activity-table-row,
  .boss-home-stream-row,
  .boss-saas-data-table [role="row"]:not(:first-child),
  .boss-saas-data-list > article
) {
  border-bottom: 1px solid var(--boss-border-soft);
  background: #fff;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .table tbody tr,
  .boss-people-table-row,
  .boss-product-catalog-row,
  .boss-activity-table-row,
  .boss-home-stream-row,
  .boss-saas-data-table [role="row"]:not(:first-child),
  .boss-saas-data-list > article
):hover {
  background: #f6faf9;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-people-table-row.has-attention,
  .boss-activity-table-row.is-withdrawn,
  .boss-product-catalog-row.has-attention
) {
  box-shadow: inset 3px 0 0 #d2a044;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-activity-money,
  .boss-activity-quantity,
  .boss-people-result,
  .boss-product-catalog-demand,
  [data-boss-number]
) {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-table-row {
  min-height: 68px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-table-row :is(em, small),
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-people-table-row, .boss-product-catalog-row) :is(em, small) {
  color: var(--boss-text-muted);
  font-size: 11px;
  line-height: 16px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v170-ledger-type {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: var(--boss-radius-pill);
  color: #345f75;
  background: #edf5f8;
  font-size: 10px;
  line-height: 14px;
  font-weight: 680;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v170-ledger-type.purchase {
  color: #76551f;
  background: #fff5df;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v170-ledger-type.sale {
  color: #176b4d;
  background: #eaf6f0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-flow {
  display: grid;
  gap: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--boss-border-soft);
  background: #fff;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-row:last-child {
  border-bottom: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--boss-status-pending);
  background: var(--boss-status-pending-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-copy {
  min-width: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-copy :is(strong, em, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-copy strong {
  color: var(--boss-text-primary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 680;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-copy :is(em, small) {
  color: var(--boss-text-muted);
  font-size: 10px;
  line-height: 15px;
  font-style: normal;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: var(--boss-radius-pill);
  color: var(--boss-status-pending);
  background: var(--boss-status-pending-bg);
  font-size: 10px;
  line-height: 14px;
  font-weight: 680;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-badge.is-error {
  color: var(--boss-status-error);
  background: var(--boss-status-error-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-panel-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 13px;
  border-top: 1px solid var(--boss-border-soft);
  color: var(--boss-text-muted);
  background: #fafbfc;
  font-size: 11px;
}

/* People and conversion: make the decision path obvious without new data. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v169-people-hero > aside {
  min-width: 180px;
  padding: 10px 13px;
  border: 1px solid rgba(214, 222, 226, 0.92);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #edf6f3);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v169-people-hero > aside > strong {
  color: var(--boss-action-primary);
  font-size: 25px;
  line-height: 29px;
  font-weight: 740;
  letter-spacing: -0.03em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-tier-grid {
  gap: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-tier-grid > button.card {
  min-height: 94px;
  padding: 13px;
  border-color: rgba(214, 222, 226, 0.92);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f7faf9);
  box-shadow: var(--boss-shadow-card);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-tier-grid > button.card:hover {
  border-color: #b9cec7;
  box-shadow: var(--boss-shadow-card-hover);
  transform: translateY(-1px);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-conversion-queue-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-conversion-queue-tabs > button {
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--boss-border-default);
  border-radius: 12px;
  color: var(--boss-text-secondary);
  background: #fff;
  box-shadow: var(--boss-shadow-card);
  text-align: left;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-conversion-queue-tabs > button.active {
  border-color: rgba(18, 77, 67, 0.42);
  color: var(--boss-action-primary);
  background: linear-gradient(145deg, #fff, var(--boss-action-primary-soft));
  box-shadow: inset 3px 0 0 var(--boss-accent), var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-conversion-queue-tabs > button strong {
  margin-left: auto;
  color: var(--boss-text-primary);
  font-size: 20px;
  line-height: 24px;
  font-weight: 720;
}

/* Product catalogue: governance note and summaries are visually distinct. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-summary {
  gap: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-summary > article {
  min-height: 92px;
  padding: 12px 13px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-summary > article:nth-child(3n + 1) {
  --boss-metric-accent: #397ca8;
  --boss-metric-soft: rgba(57, 124, 168, 0.07);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-summary > article:nth-child(3n + 2) {
  --boss-metric-accent: #319e87;
  --boss-metric-soft: rgba(49, 158, 135, 0.075);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-summary > article:nth-child(3n) {
  --boss-metric-accent: #a3752e;
  --boss-metric-soft: rgba(163, 117, 46, 0.08);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-boundary {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid #cfe4dc;
  border-left: 3px solid #3b9f83;
  border-radius: 11px;
  color: #315f53;
  background: #f0f8f5;
  box-shadow: 0 1px 2px rgba(16, 74, 61, 0.03);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-boundary > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-boundary p {
  margin: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-boundary strong {
  display: block;
  color: #22594b;
  font-size: 12px;
  line-height: 18px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-boundary span {
  display: block;
  margin-top: 2px;
  color: #54776d;
  font-size: 11px;
  line-height: 17px;
}

/* Empty and unavailable states remain explicit but visually quiet. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-empty,
  .boss-console-empty,
  .boss-saas-empty,
  [class*="empty-state"],
  [class*="zero-state"]
) {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 20px;
  border: 1px dashed #cfd8dc;
  border-radius: 11px;
  color: var(--boss-text-secondary);
  background: #f8fafb;
  box-shadow: none;
  text-align: center;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-empty,
  .boss-console-empty,
  .boss-saas-empty,
  [class*="empty-state"],
  [class*="zero-state"]
) > svg {
  width: 20px;
  height: 20px;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 10px;
  color: #6e7d89;
  background: #edf1f3;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-people-command-unavailable,
  .boss-people-command-freshness,
  .boss-product-catalog-inline-state,
  .boss-saas-notice
) {
  border-radius: 11px;
  box-shadow: none;
}

/* Desktop-1024 is a first-class owner-console viewport. */
@media (min-width: 1024px) and (max-width: 1119.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
    padding-inline: 10px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand > span {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
    min-height: 58px;
    padding: 8px 16px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions {
    width: auto;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body > .boss-console-page.container-xl {
    padding: 18px 18px 28px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-fixture-notice.alert {
    margin-inline: 18px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card {
    min-height: 108px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
    .boss-home-operations-grid,
    .boss-v153-home-grid,
    .boss-ops-overview-layout,
    .boss-saas-primary-grid
  ) {
    grid-template-columns: minmax(0, 1.75fr) minmax(250px, 0.85fr);
    gap: 12px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-toolbar {
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
    gap: 8px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
    align-items: center;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions {
    width: 100%;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
    .boss-v153-metric-grid,
    .boss-product-catalog-summary,
    .boss-saas-kpi-grid
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Candidate search keeps the existing catalog write flow: evidence here is read-only until the owner rechecks it. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-actions .boss-product-candidate-static {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px;
  line-height: 1.35;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-row-actions {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 5px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-row-actions :is(button, .boss-people-membership-shortcut-state) {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 6px;
  font-size: 10px;
  line-height: 1.25;
}

body.boss-console-mode #modalRoot .boss-product-candidate-modal {
  width: min(920px, calc(100vw - 40px));
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
}

body.boss-console-mode #modalRoot .boss-product-candidate-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: #ffffff;
}

body.boss-console-mode #modalRoot .boss-product-candidate-image {
  display: grid;
  place-items: center;
  width: 124px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--boss-radius-sm);
  color: var(--boss-text-secondary);
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #modalRoot .boss-product-candidate-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.boss-console-mode #modalRoot .boss-product-candidate-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-copy > :is(strong, em, small, p) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.boss-console-mode #modalRoot .boss-product-candidate-copy > span {
  color: var(--boss-brand-blue);
  font-size: 11px;
  font-weight: 700;
}

body.boss-console-mode #modalRoot .boss-product-candidate-copy > em,
body.boss-console-mode #modalRoot .boss-product-candidate-copy > small {
  color: var(--boss-text-secondary);
  font-style: normal;
}

body.boss-console-mode #modalRoot :is(.boss-product-candidate-state, .boss-product-candidate-prefill-note) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-sm);
  color: var(--boss-text-secondary);
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #modalRoot .boss-product-candidate-state {
  flex-wrap: wrap;
}

body.boss-console-mode #modalRoot .boss-product-candidate-state > span {
  flex: 1 1 360px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-state.is-error {
  border-color: color-mix(in srgb, var(--boss-danger) 28%, var(--boss-border-default));
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-review {
  color-scheme: light;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--boss-border-default, #e1e5e8);
  border-radius: var(--boss-radius-md, 8px);
  color: var(--boss-text-primary, #1b2738);
  background: var(--boss-surface-subtle, #fafaf8);
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-review :is(h4, p) {
  margin: 0;
  overflow-wrap: anywhere;
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-review label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 8px 0;
  color: var(--boss-text-secondary, #586779);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-review input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--boss-action-primary, #1f4e79);
}

/* Modal lives outside #bossConsole: supply fallbacks for its scoped tokens. */
body.boss-console-mode #modalRoot :is([data-boss-candidate-image-review], [data-boss-candidate-image-use], [data-boss-candidate-image-cancel]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--boss-action-primary, #1f4e79);
  border-radius: var(--boss-radius-md, 8px);
  color: #fff;
  background: var(--boss-action-primary, #1f4e79);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

body.boss-console-mode #modalRoot [data-boss-candidate-image-cancel] {
  color: var(--boss-text-secondary, #586779);
  background: #fff;
  border-color: var(--boss-border-strong, #cbd3da);
}

body.boss-console-mode #modalRoot :is([data-boss-candidate-image-review], [data-boss-candidate-image-use], [data-boss-candidate-image-cancel]):focus-visible {
  outline: 3px solid var(--boss-focus-color, #245f8f);
  outline-offset: 3px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-options legend {
  float: none;
  width: auto;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-options .boss-product-candidate-sku-option {
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--boss-border-strong, #cbd3da);
  border-radius: var(--boss-radius-md, 8px);
  background: #fff;
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-option.is-selected {
  border-color: var(--boss-action-primary, #1f4e79);
  box-shadow: inset 0 0 0 1px var(--boss-action-primary, #1f4e79);
  background: var(--boss-action-primary-soft, #e6f1f8);
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-option input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--boss-action-primary, #1f4e79);
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-option strong {
  color: var(--boss-text-primary, #1b2738);
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-option small {
  font-size: 12px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-sku-option:focus-within {
  outline: 2px solid var(--boss-focus-color, #245f8f);
  outline-offset: 2px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-error {
  color: var(--boss-status-error, #a22835);
}

body.boss-console-mode #modalRoot .boss-product-candidate-capture-flow {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--boss-brand-blue) 22%, var(--boss-border-default));
  border-radius: var(--boss-radius-md);
  background: color-mix(in srgb, var(--boss-brand-blue) 4%, #fff);
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-head {
  display: grid;
  gap: 2px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-head > span {
  color: var(--boss-brand-blue);
  font-size: 11px;
  font-weight: 700;
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-head > small {
  color: var(--boss-text-secondary);
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 1px 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-sm);
  color: var(--boss-text-secondary);
  background: #fff;
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--boss-text-secondary);
  font-size: 12px;
  font-weight: 800;
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li > :is(strong, small) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li > small {
  font-size: 10px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li.is-complete,
body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li.is-active {
  border-color: color-mix(in srgb, var(--boss-brand-blue) 36%, var(--boss-border-default));
  color: var(--boss-text-primary);
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li.is-complete > span,
body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li.is-active > span {
  background: var(--boss-brand-blue);
}

body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps li.is-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--boss-brand-blue) 18%, transparent);
  background: color-mix(in srgb, var(--boss-brand-blue) 7%, #fff);
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-actions > :is(button, small) {
  min-width: 0;
}

body.boss-console-mode #modalRoot .boss-product-candidate-launch-status,
body.boss-console-mode #modalRoot .boss-product-candidate-helper-boundary,
body.boss-console-mode #modalRoot .boss-product-candidate-manual-fallback {
  grid-column: 1 / -1;
}

body.boss-console-mode #modalRoot .boss-product-candidate-helper-boundary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--boss-brand-blue) 14%, transparent);
  border-radius: var(--boss-radius-sm);
  color: var(--boss-text-secondary);
  background: color-mix(in srgb, var(--boss-brand-blue) 4%, #fff);
  line-height: 1.4;
}

body.boss-console-mode #modalRoot .boss-product-candidate-helper-boundary > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--boss-brand-blue);
}

body.boss-console-mode #modalRoot .boss-product-candidate-helper-boundary > span {
  display: grid;
  gap: 2px;
}

body.boss-console-mode #modalRoot .boss-product-candidate-helper-boundary :is(strong, em) {
  font-style: normal;
}

body.boss-console-mode #modalRoot .boss-product-candidate-launch-status {
  padding: 9px 11px;
  border-radius: var(--boss-radius-sm);
  color: var(--boss-text-secondary);
  background: var(--boss-surface-subtle);
  line-height: 1.45;
}

body.boss-console-mode #modalRoot .boss-product-candidate-manual-actions [data-boss-dewu-capture-next].is-next {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--boss-brand-blue) 12%, transparent);
}

body.boss-console-mode #modalRoot .boss-product-candidate-prefill-note span {
  display: grid;
  gap: 2px;
}

@media (max-width: 760px) {
  body.boss-console-mode #modalRoot .boss-product-candidate-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  body.boss-console-mode #modalRoot .boss-product-candidate-card > :last-child {
    grid-column: 1 / -1;
  }

  body.boss-console-mode #modalRoot .boss-product-candidate-image {
    width: 96px;
  }

  body.boss-console-mode #modalRoot .boss-product-candidate-flow-steps,
  body.boss-console-mode #modalRoot .boss-product-candidate-manual-actions {
    grid-template-columns: 1fr;
  }

  body.boss-console-mode #modalRoot .boss-product-candidate-launch-status,
  body.boss-console-mode #modalRoot .boss-product-candidate-helper-boundary,
  body.boss-console-mode #modalRoot .boss-product-candidate-manual-fallback {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .nav-link,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .card,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .btn {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
 * ERP visual tokens v2
 * Gentelella informs density only; no Gentelella selectors or assets are used.
 * ----------------------------------------------------------------------- */

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] *,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] *::before,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] *::after {
  box-sizing: border-box;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-metric-card > strong,
  .boss-v153-activity-strip > article > strong,
  .boss-product-catalog-summary > article > strong,
  .boss-console-kpi-card strong,
  .boss-purchase-kpis strong,
  .boss-inventory-kpis strong,
  .boss-sales-kpis strong,
  [class*="summary"] > article > strong,
  [class*="metric"] strong
) {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Shell */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
  --tblr-navbar-color: var(--boss-text-on-dark-muted);
  --tblr-navbar-hover-color: var(--boss-text-on-dark);
  --tblr-navbar-active-color: var(--boss-text-on-dark);
  --tblr-navbar-active-bg: var(--boss-surface-sidebar-active);
  gap: var(--boss-space-3);
  padding: var(--boss-space-4) var(--boss-space-3);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--boss-text-on-dark-muted);
  background: var(--boss-surface-sidebar);
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand {
  color: var(--boss-text-on-dark);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand :is(strong, em) {
  color: inherit;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-nav-group.navbar-nav > .nav-link,
  .boss-management-tools-trigger.nav-link
) {
  min-height: 44px;
  border-radius: var(--boss-radius-md);
  color: var(--boss-text-on-dark-muted);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-nav-group.navbar-nav > .nav-link:hover,
  .boss-management-tools-trigger.nav-link:hover
) {
  color: var(--boss-text-on-dark);
  background: var(--boss-surface-sidebar-hover);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link.active {
  color: var(--boss-text-on-dark);
  background: var(--boss-surface-sidebar-active);
  box-shadow: inset 3px 0 0 var(--boss-accent);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-identity {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--boss-radius-md);
  color: var(--boss-text-on-dark);
  background: rgba(255, 255, 255, 0.05);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-identity :is(strong, em) {
  color: inherit;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-identity em {
  color: var(--boss-text-on-dark-muted);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-build.badge {
  color: var(--boss-text-on-dark-muted);
  background: rgba(255, 255, 255, 0.06) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-main.page-wrapper, .boss-console-page-root.page-body) {
  background: var(--boss-surface-page);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
  min-height: 56px;
  gap: var(--boss-space-3);
  padding: var(--boss-space-2) var(--boss-space-4);
  border-bottom: 1px solid var(--boss-border-default);
  background: color-mix(in srgb, var(--boss-surface-default) 96%, transparent);
  box-shadow: 0 1px 2px rgba(30, 38, 51, 0.03);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body > .boss-console-page.container-xl {
  max-width: none;
  padding: var(--boss-space-4);
}

/* Components and legacy light-surface normalization */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.card, .boss-console-panel) {
  color: var(--boss-text-primary);
  border-color: var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.card-header, .boss-console-section-head, .boss-v153-panel > header, .boss-v170-ledger-board > header) {
  min-height: 44px;
  border-color: var(--boss-border-soft);
  background: var(--boss-surface-default);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page] :is(
  article[class*="-card"], section[class*="-card"], aside[class*="-card"], button[class*="-card"],
  article[class*="-panel"], section[class*="-panel"], aside[class*="-panel"],
  .boss-purchase-kpis > article, .boss-inventory-kpis > article, .boss-sales-kpis > article,
  .boss-membership-command-summary, .boss-v153-activity-strip > article,
  .boss-v153-conversion-summary > article, .boss-product-catalog-summary > article,
  .boss-staff-summary > article, .boss-ui-specimen
) {
  color: var(--boss-text-primary);
  border-color: var(--boss-border-default);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page] :is(
  article[class*="-card"], section[class*="-card"], aside[class*="-card"],
  article[class*="-panel"], section[class*="-panel"], aside[class*="-panel"],
  .boss-purchase-kpis > article, .boss-inventory-kpis > article, .boss-sales-kpis > article,
  .boss-v153-activity-strip > article, .boss-product-catalog-summary > article
) :is(h2, h3, h4, strong, b) {
  color: var(--boss-text-primary);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page] :is(
  article[class*="-card"], section[class*="-card"], aside[class*="-card"],
  article[class*="-panel"], section[class*="-panel"], aside[class*="-panel"],
  .boss-purchase-kpis > article, .boss-inventory-kpis > article, .boss-sales-kpis > article,
  .boss-v153-activity-strip > article, .boss-product-catalog-summary > article
) :is(p, small, em) {
  color: var(--boss-text-secondary);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-page-head, .boss-v153-hero, .boss-v169-people-hero) {
  min-height: 0;
  margin: 0 0 var(--boss-space-3);
  padding: var(--boss-space-3) var(--boss-space-4);
  border: 1px solid var(--boss-border-soft);
  border-radius: var(--boss-radius-md);
  color: var(--boss-text-primary);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-page-head, .boss-v153-hero, .boss-v169-people-hero) h2 {
  margin: var(--boss-space-1) 0;
  color: var(--boss-text-primary);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.25;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-page-head, .boss-v153-hero, .boss-v169-people-hero) p {
  max-width: 72rem;
  margin: 0;
  color: var(--boss-text-secondary);
  line-height: 1.5;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page button, .boss-console-topbar button, .boss-management-tools button,
  .boss-ai-quick-panel button, .boss-evidence-drawer button, .boss-console-drawer button
) {
  min-height: 40px;
  border-radius: var(--boss-radius-md);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.btn-icon, [aria-label^="关闭"], [data-close-modal]) {
  min-width: 44px;
  min-height: 44px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.btn-primary, button.primary) {
  border-color: var(--boss-action-primary);
  color: #fff;
  background: var(--boss-action-primary);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.btn-primary, button.primary):is(:hover, :active) {
  border-color: var(--boss-action-primary-hover);
  color: #fff;
  background: var(--boss-action-primary-hover);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--boss-focus-color);
  outline-offset: 2px;
  box-shadow: var(--boss-focus-ring);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .form-control, .form-select) {
  min-height: 40px;
  border-color: var(--boss-border-strong);
  color: var(--boss-text-primary);
  background: var(--boss-surface-default);
  font-size: 14px;
  line-height: 20px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(input, select, textarea)::placeholder {
  color: var(--boss-text-muted);
  opacity: 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.badge, .boss-console-status, [class*="status-pill"], [class*="truth-chip"]) {
  color: var(--boss-status-unknown);
  background: var(--boss-status-unknown-bg);
  border-color: color-mix(in srgb, var(--boss-status-unknown) 24%, transparent);
  font-weight: 600;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-status.success, .boss-console-status.ready) {
  color: var(--boss-status-confirmed);
  background: var(--boss-status-confirmed-bg);
  border-color: color-mix(in srgb, var(--boss-status-confirmed) 24%, transparent);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-status.warn, .boss-console-status.pending) {
  color: var(--boss-status-pending);
  background: var(--boss-status-pending-bg);
  border-color: color-mix(in srgb, var(--boss-status-pending) 28%, transparent);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-status.danger, .boss-console-status.error) {
  color: var(--boss-status-error);
  background: var(--boss-status-error-bg);
  border-color: color-mix(in srgb, var(--boss-status-error) 24%, transparent);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.table, [role="table"]) {
  color: var(--boss-text-primary);
  border-color: var(--boss-border-soft);
  background: var(--boss-surface-default);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.table thead tr, [role="table"] > [role="row"]:first-child, [class*="-head"][role="row"]) {
  min-height: 42px;
  color: var(--boss-text-secondary);
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.table tbody tr, [role="table"] [role="row"]:not([class*="-head"])) {
  min-height: 54px;
  border-color: var(--boss-border-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.table tbody tr, [role="table"] [role="row"]:not([class*="-head"])):hover {
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-empty, .boss-console-empty, [class*="empty-state"], [class*="zero-state"]) {
  min-height: 8rem;
  color: var(--boss-text-secondary);
  border-color: var(--boss-border-default);
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root[data-boss-page-state="unknown"]::before {
  color: var(--boss-status-unknown);
  background: var(--boss-status-unknown-bg);
  border-color: var(--boss-border-default);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root[data-boss-page-state="error"]::before {
  color: var(--boss-status-error);
  background: var(--boss-status-error-bg);
  border-color: color-mix(in srgb, var(--boss-status-error) 26%, transparent);
}

/* Overview: compact six-card command row and 8:4 operating area. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home {
  display: grid;
  gap: var(--boss-space-3);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-hero {
  min-height: 0;
  height: auto;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding-block: var(--boss-space-3);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--boss-space-2);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card {
  min-width: 0;
  min-height: 128px;
  grid-template-rows: auto auto auto minmax(35px, auto) auto;
  gap: var(--boss-space-1);
  padding: var(--boss-space-3);
  border-radius: var(--boss-radius-md);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home :is(.boss-v153-metric-head, .boss-v153-metric-state, .boss-v153-metric-link) {
  line-height: 16px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-head {
  font-size: 13px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-state {
  min-height: 24px;
  font-size: 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-link {
  min-height: 20px;
  font-size: 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > strong {
  display: block;
  margin: var(--boss-space-2) 0 var(--boss-space-1);
  color: var(--boss-text-primary);
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 32px !important;
  font-weight: 600;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > p {
  display: -webkit-box !important;
  min-height: 35px;
  overflow: hidden;
  margin: 0;
  color: var(--boss-text-secondary);
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-home-operations-grid, .boss-v153-home-grid, .boss-ops-overview-layout) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(272px, 1fr);
  gap: var(--boss-space-3);
  align-items: start;
}

/* Today activity */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity {
  display: grid;
  gap: var(--boss-space-3);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--boss-space-2);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-strip > article {
  min-width: 0;
  min-height: 108px;
  padding: var(--boss-space-3);
  border-radius: var(--boss-radius-md);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-strip > article > strong {
  display: block;
  margin-block: var(--boss-space-2);
  color: var(--boss-text-primary);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;
}

/* Structure-v2 five-fact summary. The legacy eight-card strip remains above
 * as a compatibility path until the Web structure commit is integrated. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--boss-space-2);
  align-items: stretch;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item {
  min-width: 0;
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: var(--boss-space-1) var(--boss-space-2);
  padding: 10px var(--boss-space-3);
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  color: var(--boss-text-primary);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item > :is(span:first-child, .boss-ops-activity-summary-label) {
  min-width: 0;
  overflow: hidden;
  color: var(--boss-text-secondary);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item > :is(strong, .boss-ops-activity-summary-value) {
  min-width: 0;
  grid-column: 1;
  color: var(--boss-text-primary);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 28px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item > :is(small, em, .boss-ops-activity-summary-meta, .boss-console-status) {
  min-width: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--boss-text-muted);
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item > .boss-console-status {
  max-width: 9rem;
  white-space: normal;
}

@media (min-width: 1120px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item {
    grid-column: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1119.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item {
    grid-column: span 2;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-item:nth-child(n + 4) {
    grid-column: span 3;
  }
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-activity-workspace, .boss-ops-activity-layout) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(272px, 1fr);
  gap: var(--boss-space-3);
  align-items: start;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v170-ledger-board {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-table {
  min-width: 0;
  overflow: hidden;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-activity-table-head, .boss-activity-table-row) {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(108px, 0.8fr) minmax(80px, 0.65fr) minmax(136px, 1fr) minmax(192px, 1.7fr) minmax(96px, 0.75fr) minmax(112px, 0.8fr) minmax(128px, 0.9fr) minmax(104px, 0.7fr) 56px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-table-row > [role="cell"] {
  min-width: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-table-row :is(strong, em, small) {
  overflow-wrap: anywhere;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-activity-money, .boss-activity-quantity) strong {
  white-space: nowrap;
}

/* Filters */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-filterbar, .boss-v153-people-toolbar, .boss-v153-activity-controls,
  .boss-purchase-workbar, .boss-inventory-filter-panel, .boss-sales-filter-panel,
  .boss-membership-decisionbar, .boss-product-catalog-toolbar, .boss-ops-filter-toolbar
) {
  min-width: 0;
  gap: var(--boss-space-2);
  padding: var(--boss-space-3);
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters, .boss-v170-nickname-filters, .boss-people-primary-filter,
  .boss-people-followup-filter, .boss-conversion-queue-tabs,
  .boss-product-catalog-toolbar fieldset, .boss-ops-filter-primary, .boss-ops-filter-secondary
) {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--boss-space-1);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(192px, 0.8fr) minmax(240px, 1fr) auto;
  align-items: end;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-toolbar fieldset {
  width: auto;
  border: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-toolbar legend {
  width: 100%;
  min-width: max-content;
  margin: 0 0 var(--boss-space-1);
  color: var(--boss-text-secondary);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters, .boss-v170-nickname-filters, .boss-people-primary-filter,
  .boss-people-followup-filter, .boss-product-catalog-toolbar fieldset
) > button {
  flex: 0 0 auto;
  min-height: 40px;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters, .boss-v170-nickname-filters, .boss-people-primary-filter,
  .boss-people-followup-filter, .boss-product-catalog-toolbar fieldset
) > button.active {
  border-color: color-mix(in srgb, var(--boss-action-primary) 30%, transparent);
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
  box-shadow: inset 0 -2px 0 var(--boss-accent);
}

/* Existing people/catalog ledgers, plus structure-v2 hooks. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-person-table, .boss-product-catalog-table, .boss-ops-table) {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(
  .boss-v153-person-head,
  .boss-people-table-head,
  .boss-people-table-row,
  .boss-ops-person-row
) {
  min-width: 1120px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(.boss-product-catalog-head, .boss-product-catalog-row, .boss-ops-product-row) {
  min-width: 1056px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-person-head,
  .boss-people-table-head,
  .boss-people-table-row,
  .boss-ops-person-row,
  .boss-product-catalog-head,
  .boss-product-catalog-row,
  .boss-ops-product-row
) > :first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--boss-surface-default);
  box-shadow: 1px 0 0 var(--boss-border-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-person-head, .boss-people-table-head, .boss-product-catalog-head) > :first-child {
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-head.boss-people-table-head {
  display: grid !important;
  width: 100%;
  min-height: 42px;
  gap: 9px;
  padding: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-people-table-row, .boss-ops-person-row) {
  gap: 9px;
  padding: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-people-table-row, .boss-ops-person-row, .boss-product-catalog-row, .boss-ops-product-row) > :last-child button {
  border-color: color-mix(in srgb, var(--boss-action-primary) 22%, var(--boss-border-default));
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
}

/* Drawers/modal visual layer only. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-drawer, .boss-management-tools, .boss-ai-quick-panel, .boss-evidence-drawer, .offcanvas) {
  color: var(--boss-text-primary);
  border-color: var(--boss-border-default);
  background: var(--boss-surface-raised);
  box-shadow: var(--boss-shadow-overlay);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-drawer-backdrop, .boss-shell-panel-backdrop, .modal.show) {
  background: var(--boss-surface-overlay);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-management-tools, .boss-ai-quick-panel, .boss-evidence-drawer) > header,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.modal-header, .modal-footer, .offcanvas-header) {
  min-height: 56px;
  border-color: var(--boss-border-soft);
  background: var(--boss-surface-default);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tool-open {
  border-color: var(--boss-border-soft);
  color: var(--boss-text-primary);
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tool-open:hover {
  border-color: color-mix(in srgb, var(--boss-action-primary) 28%, transparent);
  background: var(--boss-action-primary-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tools-personal {
  border-bottom-color: var(--boss-border-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tool-pin {
  border-color: var(--boss-border-soft);
  color: var(--boss-text-secondary);
  background: var(--boss-surface-default);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tool-pin:is(:hover, :focus-visible, .is-active) {
  border-color: color-mix(in srgb, var(--boss-status-pending) 42%, var(--boss-border-default));
  color: var(--boss-status-pending);
  background: var(--boss-status-pending-bg);
}

/* Structure-thread compatibility. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-ops-card, .boss-ops-panel) {
  color: var(--boss-text-primary);
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-value {
  color: var(--boss-text-primary);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1200px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-activity-workspace, .boss-ops-activity-layout) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
    align-items: center;
    padding-inline: var(--boss-space-2);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand {
    justify-content: center;
    padding-inline: 0;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
    .boss-console-brand.navbar-brand > div,
    .boss-console-nav-group.navbar-nav > .nav-link > span,
    .boss-management-tools-trigger.nav-link > span,
    .boss-management-tools-trigger.nav-link > svg:last-child,
    .boss-console-identity > div,
    .boss-console-identity > button,
    .boss-console-build.badge
  ) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-nav-group.navbar-nav > .nav-link, .boss-management-tools-trigger.nav-link) {
    min-width: 44px;
    width: 44px;
    justify-content: center;
    padding: var(--boss-space-2);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-identity {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: var(--boss-space-1);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
    flex-wrap: wrap;
    padding-inline: var(--boss-space-3);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-activity-table-head, .boss-activity-table-row) {
    grid-template-columns: minmax(104px, 0.8fr) minmax(80px, 0.65fr) minmax(128px, 1fr) minmax(192px, 1.65fr) minmax(112px, 0.85fr) minmax(112px, 0.85fr) 56px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-activity-table-head, .boss-activity-table-row) > :is(:nth-child(5), :nth-child(7)) {
    display: none;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(176px, 0.6fr);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-person-table, .boss-product-catalog-table) :is(
    .boss-v153-person-head,
    .boss-people-table-head,
    .boss-people-table-row,
    .boss-ops-person-row,
    .boss-product-catalog-head,
    .boss-product-catalog-row,
    .boss-ops-product-row
  ) {
    min-width: 0;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-v153-person-head, .boss-people-table-head, .boss-people-table-row, .boss-ops-person-row) {
    grid-template-columns: minmax(208px, 1.5fr) minmax(112px, 0.75fr) minmax(128px, 0.9fr) minmax(128px, 0.9fr) minmax(80px, 0.55fr) minmax(80px, 0.55fr) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-person-head, .boss-people-table-head, .boss-people-table-row, .boss-ops-person-row) > :is(:nth-child(3), :nth-child(6), :nth-child(7), :nth-child(9)) {
    display: none;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(.boss-product-catalog-head.boss-product-catalog-head-v173, .boss-product-catalog-row, .boss-ops-product-row) {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 72px minmax(192px, 1.4fr) minmax(128px, 0.8fr) minmax(128px, 0.8fr) minmax(128px, 0.8fr) minmax(112px, 0.7fr) !important;
    gap: 10px;
    padding: 10px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-product-catalog-head, .boss-product-catalog-row, .boss-ops-product-row) > :is(:nth-child(3), :nth-child(6)) {
    display: none;
  }
}

@media (max-width: 900px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-home-operations-grid, .boss-v153-home-grid, .boss-ops-overview-layout) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-v153-person-head, .boss-people-table-head, .boss-people-table-row, .boss-ops-person-row) {
    grid-template-columns: minmax(208px, 1.5fr) minmax(112px, 0.75fr) minmax(128px, 0.9fr) minmax(128px, 0.9fr) minmax(80px, 0.55fr) minmax(80px, 0.55fr) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-person-head, .boss-people-table-head, .boss-people-table-row, .boss-ops-person-row) > :is(:nth-child(3), :nth-child(6), :nth-child(7), :nth-child(9)) {
    display: none;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(.boss-product-catalog-head, .boss-product-catalog-row, .boss-ops-product-row) {
    grid-template-columns: 72px minmax(192px, 1.4fr) minmax(128px, 0.8fr) minmax(128px, 0.8fr) minmax(128px, 0.8fr) minmax(112px, 0.7fr) !important;
  }
}

@media (max-width: 760px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-hero {
    flex-direction: column;
    align-items: stretch;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand > div,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link > span,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tools-trigger.nav-link > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-console-nav-group.navbar-nav > .nav-link, .boss-management-tools-trigger.nav-link) {
    width: 100%;
    justify-content: flex-start;
    padding-inline: var(--boss-space-3);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body > .boss-console-page.container-xl {
    padding: var(--boss-space-3);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-v153-home .boss-v153-metric-grid, .boss-v153-activity-strip) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.nav-link, .card, .btn, button, .offcanvas, .modal) {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}

/* Integration correction: at the 1024 desktop checkpoint the compatibility
 * rules above hide two secondary columns. Collapse their tracks as well so
 * identity, state and the primary action use the full available width. */
@media (min-width: 1024px) and (max-width: 1119.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(
    .boss-v153-person-head.boss-people-table-head,
    .boss-people-table-row.boss-ops-person-row
  ) {
    grid-template-columns: minmax(230px, 1.35fr) minmax(140px, 0.75fr) minmax(170px, 0.85fr) minmax(210px, 1fr) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(
    .boss-product-catalog-head.boss-product-catalog-head-v173.boss-ops-product-head,
    .boss-product-catalog-row.boss-ops-product-row
  ) {
    grid-template-columns: 72px minmax(230px, 1.45fr) minmax(180px, 0.9fr) minmax(210px, 1fr) !important;
  }
}

/* Live-review overrides must remain the final declarations in this adapter. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state {
  min-height: 22px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state > b {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: var(--boss-radius-pill);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state.is-confirmed > b,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state.is-zero > b {
  color: var(--boss-status-confirmed);
  background: var(--boss-status-confirmed-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state:is(.is-partial, .is-pending) > b {
  color: var(--boss-status-pending);
  background: var(--boss-status-pending-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state > small {
  min-width: 0;
  overflow: hidden;
  color: var(--boss-text-muted);
  font-size: 10px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs.boss-saas-kpi-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs.boss-saas-kpi-grid > button {
  width: 100% !important;
  min-width: 0;
  margin: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v169-people-hero-copy .boss-saas-status-line {
  width: max-content;
  max-width: 100%;
  min-height: 0;
  display: block;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v169-capability-summary {
  width: max-content;
  max-width: 100%;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v169-capability-summary > summary {
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #cfe6de;
  border-radius: var(--boss-radius-pill);
  color: var(--boss-status-confirmed);
  background: var(--boss-status-confirmed-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch;
  gap: 8px !important;
  padding: 11px !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > form[data-boss-student-search-form] {
  min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > form[data-boss-student-search-form] > label {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 11px !important;
  border: 1px solid var(--boss-border-strong) !important;
  border-radius: 9px !important;
  color: var(--boss-icon-muted);
  background: #f9fbfb !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > form[data-boss-student-search-form] input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > :is(
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-v170-nickname-filters
) {
  width: 100%;
  min-width: 0;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--boss-border-soft);
  border-radius: 9px;
  background: var(--boss-surface-muted);
}

@media (max-width: 760px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs.boss-saas-kpi-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* --------------------------------------------------------------------------
 * Final deep-refinement layer
 *
 * This is the authoritative 1024 / 1280 / wide-screen density layer. Keep it
 * last: the preceding rules retain compatibility with older owner modules,
 * while these declarations resolve the primary five-page SaaS presentation.
 * ----------------------------------------------------------------------- */

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
  --boss-control-sm: 32px;
  --boss-control-md: 36px;
  --boss-control-lg: 40px;
  --boss-state-confirmed-fg: #176b4d;
  --boss-state-confirmed-bg: #e9f6f0;
  --boss-state-partial-fg: #825400;
  --boss-state-partial-bg: #fff2cc;
  --boss-state-pending-fg: #285f8f;
  --boss-state-pending-bg: #eaf3fb;
  --boss-state-unknown-fg: #526172;
  --boss-state-unknown-bg: #edf1f4;
  --boss-state-conflict-fg: #99420d;
  --boss-state-conflict-bg: #fff0e6;
  --boss-state-error-fg: #a22835;
  --boss-state-error-bg: #fcebed;
  --boss-state-unavailable-fg: #655876;
  --boss-state-unavailable-bg: #f2eff6;
}

/* Stable typography hooks from the five-page structure layer. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-saas-page-kicker, .boss-saas-section-kicker) {
  color: var(--boss-action-primary);
  font-size: 10px;
  line-height: 15px;
  font-weight: 760;
  letter-spacing: 0.065em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-title {
  margin: 0;
  color: var(--boss-text-primary);
  font-size: clamp(23px, 2vw, 27px);
  line-height: 33px;
  font-weight: 750;
  letter-spacing: -0.028em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-description {
  margin: 4px 0 0;
  color: var(--boss-text-secondary);
  font-size: 13px;
  line-height: 20px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-section-title {
  color: var(--boss-text-primary);
  font-size: 15px;
  line-height: 21px;
  font-weight: 720;
  letter-spacing: -0.012em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-section-meta {
  color: var(--boss-text-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
}

/* 32 / 36 / 40 control system. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-primary-action,
  .boss-saas-secondary-action,
  button.is-primary,
  button.is-secondary,
  button.is-danger
) {
  min-height: var(--boss-control-md);
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 670;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel-head,
  .boss-saas-panel-footer,
  .boss-product-catalog-pagination
) :is(.boss-saas-secondary-action, button:not(.boss-saas-primary-action)) {
  min-height: var(--boss-control-sm);
  padding-block: 5px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-filterbar,
  .boss-v170-ledger-filters,
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-v170-nickname-filters,
  .boss-product-catalog-toolbar fieldset
) > button {
  min-height: var(--boss-control-sm) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  form[data-boss-student-search-form],
  form[data-boss-today-search-form],
  form[data-boss-product-catalog-search-form]
) :is(input, select) {
  min-height: var(--boss-control-lg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .btn-icon,
  .boss-console-notify,
  .boss-console-settings
) {
  width: var(--boss-control-md);
  min-width: var(--boss-control-md);
  min-height: var(--boss-control-md);
  padding: 0;
  border-radius: 9px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .modal-header,
  .offcanvas-header,
  .boss-management-tools > header,
  .boss-evidence-drawer > header
) :is(.btn-icon, [aria-label^="关闭"]) {
  width: var(--boss-control-lg);
  min-width: var(--boss-control-lg);
  min-height: var(--boss-control-lg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-action-group {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-primary-action,
  button.is-primary
) {
  border-color: var(--boss-action-primary);
  color: #fff;
  background: linear-gradient(180deg, #17594d, var(--boss-action-primary));
  box-shadow: 0 3px 8px rgba(18, 77, 67, 0.16);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-secondary-action,
  button.is-secondary
) {
  border-color: var(--boss-border-default);
  color: var(--boss-text-secondary);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button.danger,
  button.is-danger,
  .boss-saas-primary-action.is-danger,
  .boss-saas-secondary-action.is-danger
) {
  border-color: #e8bdc2;
  color: #9f2734;
  background: #fff4f5;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-primary-action,
  button.is-primary
):not(:disabled):hover {
  border-color: var(--boss-action-primary-hover);
  color: #fff;
  background: var(--boss-action-primary-hover);
  box-shadow: 0 5px 14px rgba(18, 77, 67, 0.21);
  transform: translateY(-1px);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-secondary-action,
  button.is-secondary
):not(:disabled):hover {
  border-color: #b5c2c8;
  color: var(--boss-text-primary);
  background: #f7f9fa;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.07);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button.danger,
  button.is-danger,
  .boss-saas-primary-action.is-danger,
  .boss-saas-secondary-action.is-danger
):not(:disabled):hover {
  border-color: #d9949d;
  color: #861d29;
  background: #fdebed;
  box-shadow: 0 2px 6px rgba(162, 40, 53, 0.09);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button:disabled,
  button.is-disabled,
  [aria-disabled="true"]
) {
  color: #98a2ad !important;
  border-color: #e1e6e9 !important;
  background: #f3f5f6 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.86;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button,
  a,
  input,
  select,
  textarea,
  summary,
  [tabindex]
):focus-visible {
  outline: 2px solid #2b7769;
  outline-offset: 2px;
  box-shadow: var(--boss-focus-ring);
}

/* Semantic truth states: every non-confirmed state has a distinct hue. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-state-confirmed {
  --boss-local-state-fg: var(--boss-state-confirmed-fg);
  --boss-local-state-bg: var(--boss-state-confirmed-bg);
  --boss-local-state-border: rgba(23, 107, 77, 0.16);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-state-partial {
  --boss-local-state-fg: var(--boss-state-partial-fg);
  --boss-local-state-bg: var(--boss-state-partial-bg);
  --boss-local-state-border: rgba(130, 84, 0, 0.17);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-state-pending {
  --boss-local-state-fg: var(--boss-state-pending-fg);
  --boss-local-state-bg: var(--boss-state-pending-bg);
  --boss-local-state-border: rgba(40, 95, 143, 0.16);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-state-unknown {
  --boss-local-state-fg: var(--boss-state-unknown-fg);
  --boss-local-state-bg: var(--boss-state-unknown-bg);
  --boss-local-state-border: rgba(82, 97, 114, 0.15);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-state-conflict {
  --boss-local-state-fg: var(--boss-state-conflict-fg);
  --boss-local-state-bg: var(--boss-state-conflict-bg);
  --boss-local-state-border: rgba(153, 66, 13, 0.16);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-state-error {
  --boss-local-state-fg: var(--boss-state-error-fg);
  --boss-local-state-bg: var(--boss-state-error-bg);
  --boss-local-state-border: rgba(162, 40, 53, 0.16);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-state-unavailable {
  --boss-local-state-fg: var(--boss-state-unavailable-fg);
  --boss-local-state-bg: var(--boss-state-unavailable-bg);
  --boss-local-state-border: rgba(101, 88, 118, 0.16);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-status,
  .boss-saas-status-badge,
  .boss-v153-metric-state,
  [class*="status-pill"],
  [class*="truth-chip"]
)[class*="boss-saas-state-"] {
  color: var(--boss-local-state-fg);
  border-color: var(--boss-local-state-border);
  background: var(--boss-local-state-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-kpi-card[class*="boss-saas-state-"] {
  --boss-metric-accent: var(--boss-local-state-fg);
  --boss-metric-soft: color-mix(in srgb, var(--boss-local-state-bg) 78%, transparent);
}

/* Deliberately distinct surfaces: KPI / filter / table / status / priority. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-kpi-card {
  border-color: rgba(214, 222, 226, 0.76);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035), 0 8px 22px rgba(16, 24, 40, 0.04);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-panel {
  border-color: #dce3e6;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035), 0 11px 28px rgba(16, 24, 40, 0.038);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-filterbar {
  border-color: #e0e6e9;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.035);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-data-table {
  border: 0;
  border-radius: 0 0 var(--boss-radius-lg) var(--boss-radius-lg);
  background: #fff;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-flow {
  padding: 6px;
  background: #f6f8f9;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-row {
  margin-bottom: 5px;
  border: 1px solid #e5eaed;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-status-row:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid #e5eaed;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-priority-panel {
  border-color: #e7dec9;
  background: linear-gradient(155deg, #fff 72%, #fffaf0);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-priority-panel > header {
  background: linear-gradient(180deg, #fffdf8, #fffaf2);
}

/* Mature data-table cadence and semantic cell alignment. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-head,
  .boss-v153-person-head,
  .boss-product-catalog-head,
  .boss-activity-table-head
) {
  min-height: 40px;
  padding-block: 9px;
  border-bottom-color: #dfe5e8;
  color: #647381;
  background: #f3f6f7;
  font-size: 10px;
  line-height: 15px;
  font-weight: 720;
  letter-spacing: 0.025em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-row,
  .boss-people-table-row,
  .boss-product-catalog-row,
  .boss-activity-table-row
) {
  border-bottom-color: #e9edef;
  background: #fff;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-people-table-row,
  .boss-product-catalog-row
) {
  min-height: 72px;
  padding-block: 11px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-table-row {
  min-height: 62px;
  padding-block: 9px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-row,
  .boss-people-table-row,
  .boss-product-catalog-row,
  .boss-activity-table-row
):hover {
  background: #f5faf8;
  box-shadow: inset 3px 0 0 rgba(36, 180, 147, 0.42);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-row.has-attention,
  .boss-people-table-row.has-attention,
  .boss-product-catalog-row.has-attention,
  .boss-activity-table-row.is-withdrawn
) {
  background: #fffdf8;
  box-shadow: inset 3px 0 0 #d2a044;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-cell-time,
  .boss-saas-cell-metric,
  .boss-activity-time,
  .boss-activity-quantity,
  .boss-activity-money,
  .boss-people-result,
  .boss-product-catalog-current-demand
) {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-saas-cell-metric, .boss-activity-quantity, .boss-activity-money) {
  text-align: right;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-saas-cell-action, .boss-product-catalog-actions, .boss-activity-view) {
  justify-self: end;
  text-align: right;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-cell-person,
  .boss-saas-cell-event,
  .boss-saas-cell-object,
  .boss-saas-cell-status,
  .boss-saas-cell-evidence
) {
  min-width: 0;
}

/* People filters should read as compact groups, not full-width gray bands. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-people-toolbar > :is(
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-v170-nickname-filters
) {
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  background: #f0f4f5;
}

/* Conversion queue choices are primary decisions; window cards are facts. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs > .boss-saas-kpi-card {
  min-height: 92px;
  border-color: #d6dfe2;
  background: linear-gradient(145deg, #fff 68%, #f1f5f5);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.045);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs > .boss-saas-kpi-card.active {
  border-color: rgba(18, 77, 67, 0.46);
  background: linear-gradient(145deg, #fff 58%, #e7f3f0);
  box-shadow: inset 4px 0 0 var(--boss-accent), 0 5px 16px rgba(18, 77, 67, 0.08);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-v153-conversion-summary > .boss-saas-kpi-card {
  min-height: 86px;
  padding-block: 11px;
  border-color: #e1e7e9;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.035);
}

/* Business activity uses the full row; status and attention follow beneath. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-activity-workspace,
  .boss-ops-activity-layout,
  .boss-ops-activity-workspace
) {
  grid-template-columns: minmax(0, 1fr);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-side {
  min-width: 0;
  display: grid;
  gap: 12px;
}

/* The generic page head has four semantic children in DOM order. Place them
 * explicitly so the kicker can never fall into an anonymous grid row. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  grid-template-areas:
    "kicker status"
    "title status"
    "description status";
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 2px 18px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > .boss-saas-page-kicker {
  min-width: 0;
  grid-area: kicker;
  align-self: end;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > .boss-saas-page-title {
  min-width: 0;
  grid-area: title;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > .boss-saas-page-description {
  min-width: 0;
  grid-area: description;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > .boss-saas-status-line {
  width: max-content;
  max-width: min(320px, 34vw);
  grid-area: status;
  align-self: center;
  justify-self: end;
}

/* 1280-class windows: generous 3x2 KPIs and 3+2 activity facts. */
@media (max-width: 1599.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card {
    min-height: 138px;
    height: auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-rows: minmax(28px, auto) minmax(34px, auto) minmax(32px, auto);
    align-content: center;
    align-items: center;
    gap: 7px 12px;
    padding: 14px 15px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > .boss-v153-metric-head {
    min-width: 0;
    min-height: 28px;
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    gap: 8px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > .boss-v153-metric-state {
    width: max-content;
    max-width: 100%;
    min-height: 22px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    white-space: nowrap;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > strong {
    min-width: 0;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    align-self: center;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > p {
    display: block !important;
    min-width: 0;
    min-height: 0;
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    overflow: visible;
    color: var(--boss-text-muted);
    font-size: 11px;
    line-height: 16px;
    -webkit-line-clamp: unset !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > .boss-v153-metric-link {
    min-width: max-content;
    min-height: 0;
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    margin: 0;
    white-space: nowrap;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > .boss-ops-activity-summary-item {
    grid-column: span 2;
    min-height: 104px;
    height: auto;
    overflow: visible;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > .boss-ops-activity-summary-item:nth-child(n + 4) {
    grid-column: span 3;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 7px;
    overflow: visible;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-v153-metric-state > small {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-activity-table-head, .boss-activity-table-row) {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(104px, 0.76fr) minmax(82px, 0.58fr) minmax(132px, 0.95fr) minmax(190px, 1.55fr) minmax(118px, 0.82fr) minmax(116px, 0.8fr) minmax(82px, 0.5fr) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-activity-table-head, .boss-activity-table-row) > :is(:nth-child(5), :nth-child(7)) {
    display: none !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-table {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }
}

@media (min-width: 1120px) and (max-width: 1599.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  /* People: keep person, membership, recent behaviour, profit and action. */
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table {
    width: 100%;
    overflow-x: hidden;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(
    .boss-v153-person-head,
    .boss-people-table-head,
    .boss-people-table-row,
    .boss-ops-person-row
  ) {
    width: 100%;
    min-width: 0 !important;
    grid-template-columns: minmax(205px, 1.34fr) minmax(122px, 0.72fr) minmax(150px, 0.88fr) minmax(142px, 0.8fr) minmax(180px, 1.02fr) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(
    .boss-v153-person-head,
    .boss-people-table-head,
    .boss-people-table-row,
    .boss-ops-person-row
  ) > :nth-child(4) {
    display: none !important;
  }

  /* Catalogue: all six decision columns fit at 1280, including main action. */
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(
    .boss-product-catalog-head,
    .boss-product-catalog-row,
    .boss-ops-product-row
  ) {
    width: 100%;
    min-width: 0 !important;
    grid-template-columns: 64px minmax(190px, 1.35fr) minmax(128px, 0.76fr) minmax(132px, 0.78fr) minmax(128px, 0.74fr) minmax(142px, 0.88fr) !important;
    gap: 9px;
    padding-inline: 10px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-actions {
    min-width: 0;
    align-items: flex-end;
    gap: 5px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-actions button {
    max-width: 100%;
    min-height: var(--boss-control-sm);
    padding: 5px 8px;
    white-space: normal;
  }
}

@media (min-width: 1024px) and (max-width: 1119.98px) {
  /* At 1024 only the people business aggregate and catalogue raw-entry column
   * step out; recent behaviour, demand and primary actions remain visible. */
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(
    .boss-v153-person-head,
    .boss-people-table-head,
    .boss-people-table-row,
    .boss-ops-person-row
  ) {
    width: 100%;
    min-width: 0 !important;
    grid-template-columns: minmax(188px, 1.3fr) minmax(108px, 0.7fr) minmax(126px, 0.82fr) minmax(132px, 0.78fr) minmax(166px, 1fr) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(
    .boss-v153-person-head,
    .boss-people-table-head,
    .boss-people-table-row,
    .boss-ops-person-row
  ) > :nth-child(4) {
    display: none !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-v153-person-head, .boss-people-table-head) > :is(:nth-child(3), :nth-child(6)) {
    display: block !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-people-table-row, .boss-ops-person-row) > :nth-child(3) {
    display: grid !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-person-table :is(.boss-people-table-row, .boss-ops-person-row) > :nth-child(6) {
    display: flex !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(
    .boss-product-catalog-head,
    .boss-product-catalog-row,
    .boss-ops-product-row
  ) {
    width: 100%;
    min-width: 0 !important;
    grid-template-columns: 60px minmax(190px, 1.35fr) minmax(128px, 0.78fr) minmax(118px, 0.72fr) minmax(142px, 0.92fr) !important;
    gap: 8px;
    padding-inline: 9px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(
    .boss-product-catalog-head,
    .boss-product-catalog-row,
    .boss-ops-product-row
  ) > :nth-child(3) {
    display: none !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table .boss-product-catalog-head > :is(:nth-child(5), :nth-child(6)) {
    display: block !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(.boss-product-catalog-row, .boss-ops-product-row) > :nth-child(5) {
    display: grid !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-table :is(.boss-product-catalog-row, .boss-ops-product-row) > :nth-child(6) {
    display: flex !important;
  }
}

@media (min-width: 1600px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card {
    min-height: 152px;
    height: auto;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 13px 14px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > :is(strong, p) {
    min-height: 0;
    margin-block: 0;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-card > .boss-v153-metric-link {
    min-height: 0;
    margin-top: auto;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > .boss-ops-activity-summary-item {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-grid,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > .boss-ops-activity-summary-item,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > .boss-ops-activity-summary-item:nth-child(n + 4) {
    grid-column: auto;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-side {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "kicker"
      "title"
      "description"
      "status";
    gap: 3px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-heading > .boss-saas-status-line {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    justify-content: flex-start;
    margin-top: 7px !important;
  }
}

/* The current activity object is a two-column cell. Neutralize the legacy
 * named `media` grid area inherited from the retired ledger-row layout. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-object {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  grid-template-rows: minmax(40px, auto) !important;
  grid-template-areas: none !important;
  align-items: center;
  gap: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-object > .boss-v153-activity-media {
  width: 40px;
  height: 40px;
  min-width: 40px;
  grid-area: auto !important;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-object > .boss-v153-activity-media :is(img, .boss-v153-activity-cover-placeholder) {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-object > span:not(.boss-v153-activity-media) {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

/* People trust is the compact details pill itself, not a full-width hero card. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-saas-hero-trust {
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Product header must use the exact same tracks as its six-column data rows.
 * This direct-child selector intentionally outranks the legacy eight-track
 * `styles.css` rule, whose declaration is also marked important. */
@media (min-width: 1120px) and (max-width: 1599.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-table > .boss-product-catalog-head.boss-product-catalog-head-v173.boss-ops-product-head {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 64px minmax(190px, 1.35fr) minmax(128px, 0.76fr) minmax(132px, 0.78fr) minmax(128px, 0.74fr) minmax(142px, 0.88fr) !important;
    gap: 9px !important;
    padding-inline: 10px !important;
    box-sizing: border-box;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-table > .boss-product-catalog-head.boss-product-catalog-head-v173.boss-ops-product-head > :is(:nth-child(3), :nth-child(5), :nth-child(6)) {
    display: block !important;
  }
}

@media (min-width: 1024px) and (max-width: 1119.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-table > .boss-product-catalog-head.boss-product-catalog-head-v173.boss-ops-product-head {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 60px minmax(190px, 1.35fr) minmax(128px, 0.78fr) minmax(118px, 0.72fr) minmax(142px, 0.92fr) !important;
    gap: 8px !important;
    padding-inline: 9px !important;
    box-sizing: border-box;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-table > .boss-product-catalog-head.boss-product-catalog-head-v173.boss-ops-product-head > :nth-child(3) {
    display: none !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-table > .boss-product-catalog-head.boss-product-catalog-head-v173.boss-ops-product-head > :is(:nth-child(5), :nth-child(6)) {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
 * Final owner-console visual reinforcement — 2026-08-26
 *
 * A deliberately small, last-mile override layer for the five primary owner
 * workflows. Tabler 1.4.0 remains the only UI foundation; these rules only
 * strengthen hierarchy, density and semantic states on existing DOM hooks.
 * ----------------------------------------------------------------------- */

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
  --boss-surface-page: #f2f5f6;
  --boss-surface-subtle: #f7f9fa;
  --boss-surface-muted: #edf2f3;
  --boss-border-default: #d8e0e4;
  --boss-border-soft: #e8edef;
  --boss-border-strong: #c5d0d5;
  --boss-shadow-card: 0 1px 2px rgba(15, 31, 42, 0.04), 0 9px 24px rgba(15, 31, 42, 0.045);
  --boss-shadow-card-hover: 0 3px 7px rgba(15, 31, 42, 0.055), 0 17px 38px rgba(15, 31, 42, 0.09);
}

/* Shell and navigation: one quiet frame, one unmistakable current location. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
  gap: 16px;
  padding: 18px 12px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: #111c2a;
  box-shadow: inset -1px 0 rgba(5, 12, 22, 0.2);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-nav-group.navbar-nav > .nav-link,
  .boss-management-tools-trigger.nav-link
) {
  position: relative;
  min-height: 48px;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(225, 232, 240, 0.72);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 620;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-nav-group.navbar-nav > .nav-link,
  .boss-management-tools-trigger.nav-link
) > svg:first-child {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 6px;
  border-radius: 8px;
  color: rgba(219, 228, 236, 0.72);
  background: rgba(255, 255, 255, 0.035);
  stroke-width: 1.9;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link:hover,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tools-trigger.nav-link:hover {
  border-color: rgba(255, 255, 255, 0.07);
  color: #f8fbfc;
  background: rgba(255, 255, 255, 0.055);
  transform: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link.active {
  border-color: rgba(76, 211, 178, 0.22);
  color: #ffffff;
  background: rgba(45, 181, 150, 0.14);
  box-shadow: inset 3px 0 0 #43c6a7, 0 8px 20px rgba(4, 12, 23, 0.14);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link.active > svg:first-child {
  color: #74dcc2;
  background: rgba(63, 203, 169, 0.13);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-identity {
  min-height: 58px;
  padding: 8px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 8px 22px rgba(3, 10, 19, 0.12);
}

/* Top command bar: dense enough for daily use, still clearly grouped. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
  min-height: 64px;
  padding: 10px 20px;
  border-bottom-color: rgba(197, 208, 213, 0.82);
  background: rgba(255, 255, 255, 0.955);
  box-shadow: 0 1px 0 rgba(15, 31, 42, 0.035), 0 9px 25px rgba(15, 31, 42, 0.028);
  backdrop-filter: blur(18px) saturate(1.08);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-title {
  gap: 9px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-title-link.page-title {
  color: #14202d;
  font-size: 19px;
  line-height: 26px;
  font-weight: 760;
  letter-spacing: -0.028em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions {
  gap: 8px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions :is(
  .btn,
  .boss-console-sync-status,
  .boss-console-quick,
  .boss-ai-top-entry,
  .boss-console-notify
) {
  min-height: 38px;
  border-radius: 9px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-search {
  width: clamp(220px, 23vw, 330px);
  min-height: 40px;
  border: 1px solid var(--boss-border-strong);
  border-radius: 10px;
  color: var(--boss-icon-muted);
  background: #f8fafb;
  box-shadow: inset 0 1px 2px rgba(15, 31, 42, 0.025);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-search:focus-within {
  border-color: #6fa99b;
  background: #fff;
  box-shadow: var(--boss-focus-ring);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-search input {
  min-height: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sync-status {
  border-color: #d6e2e7;
  color: #34617b;
  background: #f0f6f9 !important;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ai-top-entry.btn {
  border-color: #ddcba3;
  color: #725625;
  background: #fff9ec;
  box-shadow: 0 2px 6px rgba(107, 78, 27, 0.065);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-quick.btn {
  box-shadow: 0 4px 11px rgba(18, 77, 67, 0.18);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn {
  position: relative;
  width: 38px;
  min-width: 38px;
  margin-right: 2px;
  padding: 0;
  overflow: visible;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn > b {
  position: absolute;
  top: -6px;
  right: -7px;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border-radius: var(--boss-radius-pill);
  color: #fff;
  background: #cf3f57;
  box-shadow: 0 0 0 3px #fff, 0 2px 5px rgba(116, 26, 42, 0.22);
  font-size: 9px;
  line-height: 1;
  font-weight: 760;
}

/* Canvas rhythm and page-level hierarchy. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body > .boss-console-page.container-xl {
  padding: 20px 22px 36px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(.boss-ops-page, .boss-saas-page) {
  gap: 15px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-hero.boss-saas-hero,
  .boss-console-page-head.boss-saas-page-head
) {
  padding: 16px 18px;
  border: 1px solid rgba(211, 221, 225, 0.94);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 31, 42, 0.035), 0 11px 28px rgba(15, 31, 42, 0.04);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-title {
  color: #131e2b;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 34px;
  font-weight: 780;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-page-description {
  color: #647180;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-section-head {
  min-height: 42px;
  padding: 2px 3px 0;
}

/* KPI hierarchy: clear label/icon rail, stable numerals and calmer surfaces. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-kpi-card,
  .boss-v153-metric-card,
  .boss-ops-activity-summary-item,
  .boss-product-catalog-summary > article,
  .boss-v153-conversion-summary > article
) {
  border-color: #d7e0e3;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-kpi-card,
  .boss-v153-metric-card,
  .boss-product-catalog-summary > article,
  .boss-v153-conversion-summary > article
)::before {
  width: 4px;
  opacity: 0.88;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-metric-head,
  .boss-saas-kpi-label
) > svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--boss-metric-accent) 13%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--boss-metric-accent) 9%, #fff);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-home .boss-v153-metric-card > strong,
  .boss-saas-kpi-value,
  .boss-product-catalog-summary > article > strong
) {
  color: #15202d;
  font-weight: 740;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-metric-state {
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.56);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-metric-state svg,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [class*="status-pill"] svg,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [class*="truth-chip"] svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-saas-kpi-card:hover,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-v153-metric-card:hover {
  border-color: color-mix(in srgb, var(--boss-metric-accent) 34%, #d4dde1);
  box-shadow: var(--boss-shadow-card-hover);
}

/* Panels and lists: stronger section frame without nested-card noise. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board,
  .boss-product-catalog-table
) {
  border-color: #d8e1e4;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board
) > :is(header, .boss-saas-panel-head) {
  min-height: 58px;
  padding: 12px 15px;
  border-bottom-color: #e6ebed;
  background: #fbfcfc;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-priority-panel {
  border-color: #e5d9bc;
  background: #fffefa;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-priority-panel > header {
  background: #fffaf0;
}

/* High-density business tables: compact header, readable row, aligned action. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-head,
  .boss-v153-person-head,
  .boss-people-table-head,
  .boss-product-catalog-head,
  .boss-activity-table-head,
  .boss-home-stream-head
) {
  min-height: 39px;
  padding-block: 8px;
  border-bottom-color: #dce4e7;
  color: #60707e;
  background: #f3f6f7;
  font-size: 11px;
  line-height: 15px;
  font-weight: 740;
  letter-spacing: 0.025em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-row,
  .boss-people-table-row,
  .boss-product-catalog-row,
  .boss-activity-table-row,
  .boss-home-stream-row
) {
  border-bottom-color: #e8edef;
  color: #25313e;
  background: #fff;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-people-table-row,
  .boss-product-catalog-row
) {
  min-height: 68px;
  padding-block: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-activity-table-row {
  min-height: 60px;
  padding-block: 8px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-row-actions,
  .boss-product-catalog-actions,
  .boss-activity-view,
  .boss-saas-cell-action
) :is(button, .btn) {
  width: auto;
  max-width: 132px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-row,
  .boss-people-table-row,
  .boss-product-catalog-row,
  .boss-activity-table-row,
  .boss-home-stream-row
):hover {
  background: #f5faf8;
  box-shadow: inset 3px 0 0 rgba(36, 180, 147, 0.4);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-cell-metric,
  .boss-activity-quantity,
  .boss-activity-money,
  .boss-people-result,
  .boss-product-catalog-current-demand
) {
  color: #263541;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* Buttons: consistent 32 / 36 / 40 system and real icon baselines. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-primary-action,
  .boss-saas-secondary-action,
  button.is-primary,
  button.is-secondary,
  button.is-danger
) {
  border-radius: 9px;
  font-weight: 680;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-primary-action,
  .boss-saas-secondary-action,
  button.is-primary,
  button.is-secondary,
  button.is-danger
) > svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.05;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-primary-action,
  button.is-primary
) {
  box-shadow: 0 4px 10px rgba(18, 77, 67, 0.17);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-secondary-action,
  button.is-secondary
) {
  border-color: #d5dee2;
  color: #435363;
  background: #fff;
}

/* Truth and freshness states stay semantic, but no longer look like debug UI. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-status,
  .boss-saas-status-badge,
  .boss-v153-metric-state,
  [class*="status-pill"],
  [class*="truth-chip"]
) {
  font-weight: 700;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-page-module-status {
  min-height: 42px;
  max-width: min(460px, 40vw);
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #d5e5df;
  border-radius: 10px;
  color: #315d50;
  background: #f4faf7;
  box-shadow: 0 1px 2px rgba(15, 31, 42, 0.025);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-page-module-status.is-error {
  border-color: #e9c9ce;
  color: #922b38;
  background: #fff7f8;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-page-module-status > button {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 7px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-notice {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--boss-local-state-border, #d9e1e5);
  border-radius: 11px;
  color: var(--boss-local-state-fg, var(--boss-text-secondary));
  background: color-mix(in srgb, var(--boss-local-state-bg, #f7f9fa) 78%, #fff);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-notice > svg {
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  padding: 9px;
  border-radius: 10px;
  background: var(--boss-local-state-bg, #edf2f4);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-notice :is(strong, p, em) {
  margin: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-notice strong {
  color: #26333f;
  font-size: 13px;
  line-height: 19px;
  font-weight: 730;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-notice p,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-notice em {
  margin-top: 2px;
  color: var(--boss-text-secondary);
  font-size: 12px;
  line-height: 18px;
}

/* Page failure/loading is an operational card, not a huge dashed placeholder. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-state {
  width: min(680px, calc(100% - 40px));
  min-height: 260px;
  margin: clamp(52px, 9vh, 92px) auto;
  padding: 34px 38px;
  border: 1px solid #d9e1e5;
  border-radius: 15px;
  color: var(--boss-text-secondary);
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 31, 42, 0.04), 0 22px 52px rgba(15, 31, 42, 0.075);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-state > svg {
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  padding: 13px;
  border-radius: 14px;
  color: #60717e;
  background: #edf2f4;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-state > strong {
  margin-top: 4px;
  color: #1b2834;
  font-size: 18px;
  line-height: 25px;
  font-weight: 760;
  letter-spacing: -0.018em;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-state > p {
  max-width: 480px;
  margin: 0;
  color: #697684;
  font-size: 13px;
  line-height: 20px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-error,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-access-denied {
  border-color: #ead0d4;
  background: #fffdfd;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-error > svg,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-access-denied > svg {
  color: var(--boss-state-error-fg);
  background: var(--boss-state-error-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-empty,
  .boss-saas-empty
):not(.boss-console-page-state) {
  min-height: 132px;
  padding: 24px;
  border-color: #d7e0e4;
  border-radius: 11px;
  background: #f8fafb;
}

/* Fixture and partial-result ribbons remain visible, but visually subordinate. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-fixture-notice.alert {
  min-height: 40px;
  margin: 10px 20px 0;
  padding: 8px 12px;
  border-left-width: 3px;
  border-radius: 9px;
  background: #fff9ea;
}

body.boss-console-mode .global-status {
  min-height: 32px;
  margin: 6px 20px 0;
  padding: 6px 12px;
  border: 1px solid #eadcae;
  border-left: 3px solid #c18a25;
  border-radius: 8px;
  color: #72551d;
  background: #fffaf0;
  box-shadow: none;
  font-size: 12px;
  line-height: 18px;
}

@media (min-width: 1120px) and (max-width: 1399.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
    padding-inline: 16px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions {
    gap: 6px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-search {
    width: clamp(200px, 19vw, 260px);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root.page-body > .boss-console-page.container-xl {
    padding-inline: 18px;
  }
}

@media (max-width: 1100px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
    padding-inline: 8px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
    .boss-console-nav-group.navbar-nav > .nav-link,
    .boss-management-tools-trigger.nav-link
  ) {
    width: 48px;
    min-width: 48px;
    padding: 8px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-search-wrap {
    min-width: min(260px, 46vw);
    flex: 1 1 260px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-search {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
    .boss-console-nav-group.navbar-nav > .nav-link,
    .boss-management-tools-trigger.nav-link
  ) {
    width: 48px !important;
    min-width: 48px;
    justify-content: center !important;
    padding: 8px !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
    .boss-console-nav-group.navbar-nav > .nav-link > span,
    .boss-management-tools-trigger.nav-link > span
  ) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
    .boss-v153-hero.boss-saas-hero,
    .boss-console-page-head.boss-saas-page-head
  ) {
    padding: 14px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-page-module-status {
    width: 100%;
    max-width: none;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-notice > button {
    width: 100%;
    grid-column: 1 / -1;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-state {
    width: calc(100% - 24px);
    min-height: 232px;
    margin: 34px auto;
    padding: 28px 20px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-fixture-notice.alert,
  body.boss-console-mode .global-status {
    margin-inline: 12px;
  }
}

@media (max-width: 560px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-metric-grid,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
 * Final blue SaaS skin — 2026-08-26
 *
 * Structure, ordering and data-state decisions remain owned by the Web layer.
 * This last skin layer intentionally uses stable shell / boss-ops / boss-saas
 * hooks only. It replaces the retired green treatment with one deep-blue,
 * light-blue and pale-blue relationship across every owner workflow.
 * ----------------------------------------------------------------------- */

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
  --boss-surface-page: #f7f7f4;
  --boss-surface-default: #ffffff;
  --boss-surface-subtle: #fafaf8;
  --boss-surface-muted: #f1f4f6;
  --boss-surface-sidebar: #172a46;
  --boss-surface-topbar: #f1f6fa;
  --boss-brand-blue: #1f4e79;
  --boss-brand-blue-hover: #173d61;
  --boss-brand-blue-light: #dcecf8;
  --boss-brand-blue-pale: #f1f6fa;
  --boss-text-primary: #1b2738;
  --boss-text-secondary: #586779;
  --boss-text-muted: #6f7d8d;
  --boss-icon-muted: #7f8b99;
  --boss-border-default: #e1e5e8;
  --boss-border-soft: #edf0f2;
  --boss-border-strong: #cbd3da;
  --boss-action-primary: var(--boss-brand-blue);
  --boss-action-primary-hover: var(--boss-brand-blue-hover);
  --boss-action-primary-soft: #e6f1f8;
  --boss-accent: #5b9bc8;
  --boss-focus-color: #245f8f;
  --boss-focus-ring: 0 0 0 3px rgba(36, 95, 143, 0.22);
  --boss-radius-sm: 6px;
  --boss-radius-md: 8px;
  --boss-radius-lg: 8px;
  --boss-shadow-card: 0 1px 2px rgba(23, 42, 70, 0.025);
  --boss-shadow-card-hover: 0 2px 8px rgba(23, 42, 70, 0.07);
  --boss-shadow-overlay: 0 18px 48px rgba(23, 42, 70, 0.16);
  --tblr-primary: var(--boss-brand-blue);
  --tblr-primary-rgb: 31, 78, 121;
  --tblr-body-bg: var(--boss-surface-page);
  --tblr-body-color: var(--boss-text-primary);
  --tblr-secondary-color: var(--boss-text-secondary);
  --tblr-border-color: var(--boss-border-default);
  --tblr-card-border-radius: var(--boss-radius-md);
  --tblr-card-box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-main.page-wrapper,
  .boss-console-page-root.page-body
) {
  background: var(--boss-surface-page) !important;
}

/* Shell: deep blue navigation, pale-blue command bar, no decorative gradient. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
  border-right: 1px solid rgba(220, 236, 248, 0.14);
  background: var(--boss-surface-sidebar);
  box-shadow: inset -1px 0 rgba(9, 24, 43, 0.18);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-brand.navbar-brand > span {
  border-color: rgba(220, 236, 248, 0.28);
  border-radius: var(--boss-radius-md);
  color: #ffffff;
  background: #244a70;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-nav-group.navbar-nav > .nav-link,
  .boss-management-tools-trigger.nav-link
) {
  border-radius: var(--boss-radius-md);
  color: rgba(237, 244, 250, 0.76);
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-nav-group.navbar-nav > .nav-link,
  .boss-management-tools-trigger.nav-link
) > svg:first-child {
  border-radius: var(--boss-radius-sm);
  color: rgba(220, 236, 248, 0.82);
  background: rgba(220, 236, 248, 0.07);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link:hover,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tools-trigger.nav-link:hover {
  border-color: rgba(220, 236, 248, 0.13);
  color: #ffffff;
  background: rgba(220, 236, 248, 0.09);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link.active {
  border-color: rgba(147, 197, 231, 0.32);
  color: #ffffff;
  background: rgba(91, 155, 200, 0.24);
  box-shadow: inset 3px 0 0 #9ac8e7;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-nav-group.navbar-nav > .nav-link.active > svg:first-child {
  color: #dcecf8;
  background: rgba(220, 236, 248, 0.14);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-identity {
  border-color: rgba(220, 236, 248, 0.14);
  border-radius: var(--boss-radius-md);
  background: rgba(220, 236, 248, 0.07);
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
  border-bottom-color: #d9e4ec;
  background: rgba(241, 246, 250, 0.96);
  box-shadow: 0 1px 2px rgba(23, 42, 70, 0.035);
  backdrop-filter: blur(14px) saturate(1.04);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-title-link.page-title {
  color: #182943;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-scope.badge,
  .boss-console-sync-status
) {
  border-color: #cbdce8;
  color: #315d7f;
  background: rgba(255, 255, 255, 0.66) !important;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-quick.btn {
  border-color: var(--boss-brand-blue);
  color: #ffffff;
  background: var(--boss-brand-blue);
  box-shadow: none;
}

/* Page hierarchy: headings live on the canvas, content lives on one surface. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-hero.boss-saas-hero,
  .boss-console-page-head.boss-saas-page-head,
  .boss-saas-page-head,
  .boss-ops-page-hero
) {
  padding: 4px 2px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-page-title,
  .boss-console-page-head h1,
  .boss-console-page-head h2
) {
  color: #18243a;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-page-kicker,
  .boss-saas-section-kicker,
  .boss-console-eyebrow,
  .page-pretitle
) {
  color: #356b94;
}

/* Surfaces: 8px geometry, restrained borders and near-invisible depth. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .card,
  .boss-saas-panel,
  .boss-ops-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board,
  .boss-product-catalog-table,
  .boss-saas-filterbar,
  .boss-v153-people-toolbar,
  .boss-v153-activity-controls,
  .boss-product-catalog-toolbar
) {
  border-color: var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-panel,
  .boss-v153-panel,
  .boss-v170-ledger-board
) > :is(header, .boss-saas-panel-head) {
  border-bottom-color: var(--boss-border-soft);
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-kpi-card,
  .boss-v153-metric-card,
  .boss-ops-activity-summary-item,
  .boss-product-catalog-summary > article,
  .boss-v153-conversion-summary > article
) {
  --boss-metric-accent: var(--boss-brand-blue);
  --boss-metric-soft: var(--boss-brand-blue-pale);
  border-color: var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-kpi-card,
  .boss-v153-metric-card,
  .boss-product-catalog-summary > article,
  .boss-v153-conversion-summary > article
)::before {
  display: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-metric-head,
  .boss-saas-kpi-label
) > svg,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-product-catalog-cover-placeholder,
  .boss-v153-activity-cover-placeholder
) {
  border-color: #d7e5ef;
  border-radius: var(--boss-radius-sm);
  color: #356b94;
  background: var(--boss-brand-blue-pale);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button.boss-saas-kpi-card,
  button.boss-v153-metric-card
):hover {
  border-color: #aac7dc;
  background: #fcfdfe;
  box-shadow: var(--boss-shadow-card-hover);
  transform: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button.boss-saas-kpi-card.is-active,
  .boss-ops-conversion .boss-conversion-queue-tabs > .boss-saas-kpi-card.active
) {
  border-color: #8fb9d6;
  background: var(--boss-brand-blue-pale);
  box-shadow: inset 3px 0 0 var(--boss-brand-blue);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-priority-panel,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-v153-conversion-summary > .boss-saas-kpi-card {
  border-color: var(--boss-border-default);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-saas-priority-panel > header,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs > .boss-saas-kpi-card {
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-saas-hero-stat {
  border-color: #d7e5ef;
  border-radius: var(--boss-radius-md);
  background: var(--boss-brand-blue-pale);
  box-shadow: none;
}

/* Controls: one 40px business control language and a visible blue focus ring. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page button:not(.boss-v153-metric-card):not(.boss-saas-kpi-card):not(.boss-v153-person-identity):not(.boss-v153-tier-grid > button):not(.boss-conversion-queue-tabs > button),
  .boss-saas-primary-action,
  .boss-saas-secondary-action
) {
  min-height: 40px;
  border-radius: var(--boss-radius-md);
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page button.primary,
  .boss-console-page .btn-primary,
  .boss-saas-primary-action,
  button.is-primary
) {
  border-color: var(--boss-brand-blue);
  color: #ffffff;
  background: var(--boss-brand-blue);
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-page button.primary,
  .boss-console-page .btn-primary,
  .boss-saas-primary-action,
  button.is-primary
):not(:disabled):hover {
  border-color: var(--boss-brand-blue-hover);
  color: #ffffff;
  background: var(--boss-brand-blue-hover);
  box-shadow: none;
  transform: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-secondary-action,
  button.is-secondary,
  .btn-outline-primary,
  .btn-outline-secondary
) {
  border-color: var(--boss-border-strong);
  color: #365873;
  background: #ffffff;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .form-control,
  .form-select,
  .boss-console-search
) {
  min-height: 40px;
  border-color: var(--boss-border-strong);
  border-radius: var(--boss-radius-md);
  color: var(--boss-text-primary);
  background: #ffffff;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .form-control,
  .form-select
):focus,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-search:focus-within {
  border-color: #709fbe;
  background: #ffffff;
  box-shadow: var(--boss-focus-ring);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  button,
  a,
  input,
  select,
  textarea,
  summary,
  [tabindex]
):focus-visible {
  outline: 2px solid var(--boss-focus-color);
  outline-offset: 2px;
  box-shadow: var(--boss-focus-ring);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters,
  .boss-v170-nickname-filters,
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-product-catalog-toolbar fieldset,
  .boss-ops-filter-primary,
  .boss-ops-filter-secondary,
  .boss-console-range-tabs
) {
  border-color: var(--boss-border-soft);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-muted);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v170-ledger-filters,
  .boss-v170-nickname-filters,
  .boss-people-primary-filter,
  .boss-people-followup-filter,
  .boss-product-catalog-toolbar fieldset,
  .boss-ops-filter-primary,
  .boss-ops-filter-secondary
) > button.active,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-range-tabs .btn.active {
  color: var(--boss-brand-blue) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(23, 42, 70, 0.04) !important;
}

/* Truth states: neutral UNKNOWN, explicit amber PARTIAL/PENDING and restrained error. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
  --boss-state-confirmed-fg: #27664f;
  --boss-state-confirmed-bg: #edf7f2;
  --boss-state-partial-fg: #7a5411;
  --boss-state-partial-bg: #fff4d8;
  --boss-state-pending-fg: #865a0b;
  --boss-state-pending-bg: #fff6e3;
  --boss-state-unknown-fg: #5e6b78;
  --boss-state-unknown-bg: #eff2f4;
  --boss-state-conflict-fg: #91501f;
  --boss-state-conflict-bg: #fff1e8;
  --boss-state-error-fg: #a23a45;
  --boss-state-error-bg: #fceff1;
  --boss-state-unavailable-fg: #5f6570;
  --boss-state-unavailable-bg: #f0f1f3;
  --boss-status-confirmed: var(--boss-state-confirmed-fg);
  --boss-status-confirmed-bg: var(--boss-state-confirmed-bg);
  --boss-status-pending: var(--boss-state-pending-fg);
  --boss-status-pending-bg: var(--boss-state-pending-bg);
  --boss-status-partial: var(--boss-state-partial-fg);
  --boss-status-partial-bg: var(--boss-state-partial-bg);
  --boss-status-unknown: var(--boss-state-unknown-fg);
  --boss-status-unknown-bg: var(--boss-state-unknown-bg);
  --boss-status-error: var(--boss-state-error-fg);
  --boss-status-error-bg: var(--boss-state-error-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .badge,
  .boss-console-status,
  .boss-saas-status-badge,
  .boss-v153-metric-state,
  [class*="status-pill"],
  [class*="truth-chip"]
) {
  border-radius: 999px;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-state-unknown,
  .boss-saas-state-unavailable,
  .is-unknown,
  .is-unavailable
) {
  --boss-metric-accent: var(--boss-state-unknown-fg);
  --boss-metric-soft: var(--boss-state-unknown-bg);
}

/* Tables and lists: stable scan lines, no green hover or heavy nested framing. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-table,
  .boss-v153-person-table,
  .boss-product-catalog-table,
  .boss-activity-table
) {
  border-radius: var(--boss-radius-md);
  background: #ffffff;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-head,
  .boss-v153-person-head,
  .boss-people-table-head,
  .boss-product-catalog-head,
  .boss-activity-table-head,
  .boss-home-stream-head
) {
  min-height: 42px;
  border-bottom-color: var(--boss-border-default);
  color: #647487;
  background: var(--boss-brand-blue-pale);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-activity-list > .boss-activity-table-head,
  .boss-ops-people-table-panel .boss-ops-person-head,
  .boss-ops-product-table > .boss-ops-product-head
) {
  border-bottom-color: var(--boss-border-default) !important;
  color: #647487 !important;
  background: var(--boss-brand-blue-pale) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-row,
  .boss-people-table-row,
  .boss-ops-person-row,
  .boss-product-catalog-row,
  .boss-ops-product-row,
  .boss-activity-table-row,
  .boss-ops-activity-row,
  .boss-home-stream-row
) {
  border-bottom-color: var(--boss-border-soft);
  color: var(--boss-text-primary);
  background: #ffffff;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-saas-data-row,
  .boss-people-table-row,
  .boss-ops-person-row,
  .boss-product-catalog-row,
  .boss-ops-product-row,
  .boss-activity-table-row,
  .boss-ops-activity-row,
  .boss-home-stream-row
):hover {
  background: #f4f8fb;
  box-shadow: inset 3px 0 0 #aacbe1;
}

/* Legacy follow-up cells set their own dark-theme text; a light row alone is not enough. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-conversion-row :is(
  .boss-v153-conversion-person strong, .boss-v153-conversion-reason strong,
  .boss-v153-conversion-reason b, .boss-v153-conversion-score strong,
  .boss-v153-contact-deadline strong
) {
  color: var(--boss-text-primary);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-home .boss-v153-conversion-row :is(
  .boss-v153-conversion-person em, .boss-v153-conversion-reason > span, .boss-v153-conversion-reason > em,
  .boss-v153-conversion-score > span, .boss-v153-conversion-score small,
  .boss-v153-contact-deadline span, .boss-v153-contact-deadline em,
  .boss-v153-contact-deadline time
) {
  color: var(--boss-text-secondary);
}

/* Inventory rows and nested cells must use the same light surface as their panel. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] {
  --v153-text: var(--boss-text-primary);
  --v153-text-soft: var(--boss-text-primary);
  --v153-muted: var(--boss-text-secondary);
  --v153-border: var(--boss-border-default);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] :is(
  .boss-inventory-scope, .boss-inventory-student-focus,
  .boss-inventory-student-focus-grid > article,
  .boss-inventory-student-focus-grid > article > div span,
  .boss-inventory-filter-panel, .boss-inventory-panel, .boss-inventory-table,
  .boss-inventory-panel > .boss-console-section-head,
  .boss-inventory-panel > .boss-console-pagination,
  .boss-inventory-actions summary,
  .boss-inventory-row, .boss-inventory-row > .boss-inventory-actions,
  .boss-inventory-empty, .boss-inventory-student-focus-empty
) {
  color: var(--boss-text-primary);
  border-color: var(--boss-border-default);
  background: var(--boss-surface-default);
}

/* Empty, loading and overlay surfaces remain factual and visually consistent. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-console-empty,
  .boss-saas-empty,
  .boss-product-catalog-modal-state
):not(.boss-console-page-state) {
  border-color: var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  color: var(--boss-text-secondary);
  background: var(--boss-surface-subtle);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-state {
  border-color: var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  color: var(--boss-text-secondary);
  background: #ffffff;
  box-shadow: var(--boss-shadow-card-hover);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-root > .boss-console-page-state > svg {
  border-radius: var(--boss-radius-md);
  color: #426b8b;
  background: var(--boss-brand-blue-pale);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .modal-content,
  .offcanvas,
  .modal-sheet,
  .boss-console-drawer,
  .boss-management-tools,
  .boss-ai-quick-panel,
  .boss-evidence-drawer
) {
  border-color: var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  color: var(--boss-text-primary);
  background: #ffffff;
  box-shadow: var(--boss-shadow-overlay);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .modal-header,
  .offcanvas-header,
  .modal-sheet > header,
  .boss-console-drawer > header,
  .boss-management-tools > header,
  .boss-ai-quick-panel > header,
  .boss-evidence-drawer > header
) {
  border-bottom-color: var(--boss-border-soft);
  background: var(--boss-brand-blue-pale);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .modal-footer,
  .modal-actions,
  .offcanvas-footer
) {
  border-top-color: var(--boss-border-soft);
  background: var(--boss-surface-subtle);
}

/* Keep the five primary workflows on exactly the same material system. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-home,
  .boss-ops-activity,
  .boss-ops-people,
  .boss-ops-conversion,
  .boss-ops-product-catalog
) :is(.boss-saas-panel, .boss-saas-kpi-card, .boss-saas-filterbar, .boss-saas-data-table) {
  --boss-metric-accent: var(--boss-brand-blue);
}

@media (max-width: 1100px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-sidebar.navbar-vertical {
    background: var(--boss-surface-sidebar);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-topbar.navbar {
    background: rgba(241, 246, 250, 0.98);
  }
}

/* Integration adapter: final information structure on the shared blue skin. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-surface {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item {
  display: grid;
  min-width: 0;
  min-height: 132px;
  align-content: start;
  gap: 6px;
  padding: 14px 15px;
  border: 0;
  border-right: 1px solid var(--boss-border-soft);
  border-radius: 0;
  color: var(--boss-text-primary);
  text-align: left;
  background: transparent;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item:last-child {
  border-right: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-metric-item[data-boss-actionable="true"] {
  cursor: pointer;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-metric-item[data-boss-actionable="true"]:hover {
  background: var(--boss-brand-blue-pale);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-label {
  overflow: hidden;
  color: var(--boss-text-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-value {
  overflow: hidden;
  color: var(--boss-text-primary);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-state {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  color: var(--boss-text-secondary);
  font-size: 11px;
  font-weight: 650;
  line-height: 17px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-state > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-note {
  display: -webkit-box;
  overflow: hidden;
  color: var(--boss-text-muted);
  font-size: 11px;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-section-heading {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--boss-border-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-section-heading :is(h3, em) {
  margin: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-section-heading h3 {
  color: var(--boss-text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-section-heading em {
  color: var(--boss-text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-pending-panel {
  overflow: hidden;
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-pending-panel > footer {
  padding: 10px 14px;
  border-top: 1px solid var(--boss-border-soft);
}

@media (max-width: 1180px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item {
    min-height: 126px;
    padding-inline: 12px;
  }
}

/* Product governance summary: one compact fact surface, never six floating cards. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary > .boss-ops-catalog-summary-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 62px;
  align-content: center;
  align-items: start;
  gap: 3px 6px;
  padding: 8px 10px;
  border: 0 !important;
  border-right: 1px solid var(--boss-border-soft);
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary > .boss-ops-catalog-summary-item:last-child {
  border-right: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary-item > :is(i, svg) {
  display: block;
  width: 18px;
  height: 18px;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 1px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary > .boss-ops-catalog-summary-item::before {
  display: none !important;
  content: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary-item > span {
  display: grid;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  gap: 2px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary-item > span > strong {
  overflow: hidden;
  color: var(--boss-text-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary-item > span > small {
  overflow: hidden;
  color: var(--boss-text-muted);
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary-item > b {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--boss-text-primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* The 232px desktop sidebar leaves a five-column activity canvas at 1360px+. */
@media (min-width: 1360px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > button.boss-ops-activity-summary-item.boss-saas-kpi-card,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > button.boss-ops-activity-summary-item.boss-saas-kpi-card:nth-child(n + 4) {
    height: 96px !important;
    min-height: 96px !important;
    grid-column: auto !important;
    gap: 2px !important;
    padding: 8px 12px !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-saas-kpi-label > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-saas-kpi-label > svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    box-sizing: border-box;
    padding: 5px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-saas-kpi-value {
    min-height: 24px;
    margin: 0 !important;
    overflow: visible;
    font-size: 18px !important;
    line-height: 22px !important;
    white-space: nowrap;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-saas-kpi-footer {
    width: 100%;
    min-width: 0;
    height: 22px;
    min-height: 22px;
    overflow: hidden;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-saas-kpi-footer > .boss-v153-metric-state {
    width: 100%;
    min-width: 0;
    height: 22px;
    min-height: 22px;
    padding: 0 !important;
    border: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] button.boss-ops-activity-summary-item.boss-saas-kpi-card > .boss-saas-kpi-footer > .boss-v153-metric-state > small {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Web 5450 semantic-state integration polish.
 * Interaction truth comes from the rendered element and data attributes:
 * buttons are actionable; zero/unknown/forbidden remain static status surfaces. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
  --boss-state-zero-fg: #425466;
  --boss-state-zero-bg: #f4f6f8;
  --boss-state-info-fg: #315f86;
  --boss-state-info-bg: #edf5fb;
  --boss-state-locked-fg: #566273;
  --boss-state-locked-bg: #f2f4f6;
  --boss-control-disabled-border: #cbd3dc;
  --boss-control-disabled-bg: #f3f5f7;
  --boss-control-disabled-fg: #657181;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-home,
  .boss-ops-activity,
  .boss-ops-people,
  .boss-ops-conversion,
  .boss-ops-product-catalog
) {
  color: var(--boss-text-primary);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-home,
  .boss-ops-activity,
  .boss-ops-people,
  .boss-ops-conversion,
  .boss-ops-product-catalog
) :is(button, input, select, textarea) {
  font: inherit;
}

/* Factual state surfaces are fully legible and never depend on opacity alone. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-tier-card,
  .boss-saas-filter-option,
  .boss-membership-quality-main,
  .boss-saas-state
)[data-boss-interaction-state="zero"] {
  border-color: #d6dce3 !important;
  color: var(--boss-state-zero-fg) !important;
  background: var(--boss-state-zero-bg) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-tier-card,
  .boss-saas-filter-option,
  .boss-membership-quality-main,
  .boss-saas-state
)[data-boss-interaction-state="unknown"] {
  border-color: #bad0e1 !important;
  color: var(--boss-state-info-fg) !important;
  background: var(--boss-state-info-bg) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-tier-card,
  .boss-saas-filter-option,
  .boss-membership-quality-main,
  .boss-saas-state
)[data-boss-interaction-state="forbidden"],
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-tier-card,
  .boss-saas-filter-option,
  .boss-membership-quality-main,
  .boss-saas-state
)[data-boss-interaction-state="restricted"],
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-v153-tier-card,
  .boss-saas-filter-option,
  .boss-membership-quality-main,
  .boss-saas-state
)[data-boss-interaction-state="locked"] {
  border-color: #cbd3dc !important;
  border-style: dashed !important;
  color: var(--boss-state-locked-fg) !important;
  background: var(--boss-state-locked-bg) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-home,
  .boss-ops-activity,
  .boss-ops-people,
  .boss-ops-conversion,
  .boss-ops-product-catalog
) button:disabled,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-home,
  .boss-ops-activity,
  .boss-ops-people,
  .boss-ops-conversion,
  .boss-ops-product-catalog
) button[aria-disabled="true"] {
  border-color: var(--boss-control-disabled-border) !important;
  border-style: dashed !important;
  color: var(--boss-control-disabled-fg) !important;
  background: var(--boss-control-disabled-bg) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  transform: none !important;
}

/* People: positive counts read as controls; confirmed zero and unavailable facts do not. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-grid {
  gap: 10px;
  margin-block: 10px 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card {
  min-height: 102px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 5px 9px;
  padding: 12px 13px;
  border: 1px solid var(--boss-border-default) !important;
  border-radius: var(--boss-radius-md) !important;
  color: var(--boss-text-primary);
  background: var(--boss-surface-default) !important;
  box-shadow: var(--boss-shadow-card) !important;
  text-align: left;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people button.boss-v153-tier-card {
  border-color: #a9c5dc !important;
  background: linear-gradient(180deg, #ffffff, #f4f9fd) !important;
  cursor: pointer;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people button.boss-v153-tier-card:hover {
  border-color: var(--boss-brand-blue) !important;
  background: var(--boss-brand-blue-pale) !important;
  box-shadow: 0 0 0 3px rgba(39, 89, 128, 0.09) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > .boss-v153-tier-code {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d8e5 !important;
  border-radius: 7px !important;
  color: #355f80 !important;
  background: #edf5fb !important;
  font-size: 12px;
  font-weight: 750;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > svg {
  display: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > div strong {
  color: var(--boss-text-primary) !important;
  font-size: 13px;
  line-height: 18px;
  font-weight: 720;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > div em,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > p {
  color: var(--boss-text-muted) !important;
  font-size: 11px;
  line-height: 16px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > p {
  display: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > b {
  align-self: center;
  color: var(--boss-text-primary) !important;
  font-size: 22px;
  line-height: 26px;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > .boss-v153-tier-link {
  min-width: 0;
  grid-column: 2 / -1;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--boss-text-secondary) !important;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > .boss-v153-tier-link > svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card[data-boss-interaction-state="zero"] > b::after {
  content: " · 已确认";
  color: var(--boss-text-muted);
  font-size: 10px;
  font-weight: 650;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card[data-boss-interaction-state="forbidden"] > .boss-v153-tier-code,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card[data-boss-interaction-state="restricted"] > .boss-v153-tier-code,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card[data-boss-interaction-state="locked"] > .boss-v153-tier-code {
  border-color: #cbd3dc !important;
  color: #5b6675 !important;
  background: #e9edf1 !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-membership-quality-entry {
  border-color: #cbd6df;
  border-radius: var(--boss-radius-md);
  color: var(--boss-state-info-fg);
  background: #f4f8fb;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-membership-quality-entry :is(strong, em, small, b) {
  opacity: 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-saas-filter-option[data-boss-interaction-state] {
  min-height: 36px;
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid;
  border-radius: 7px;
  line-height: 16px;
  white-space: normal;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-saas-filter-option[data-boss-interaction-state] > small {
  grid-column: 1 / -1;
  color: inherit;
  font-size: 10px;
  line-height: 14px;
}

/* KPI truth reads at a glance without turning the dashboard into a traffic light. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item.boss-saas-state-confirmed .boss-ops-metric-state {
  color: var(--boss-state-confirmed-fg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item:is(.boss-saas-state-partial, .boss-saas-state-pending) .boss-ops-metric-state {
  color: var(--boss-state-pending-fg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item:is(.boss-saas-state-unknown, .boss-saas-state-error) {
  background: #f8fafb;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item.boss-saas-state-partial {
  box-shadow: inset 0 -3px 0 #d49a30;
}

/* Compact operational summaries keep the first real list visible. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid > .boss-ops-activity-summary-item {
  min-height: 92px !important;
  height: 92px !important;
  display: grid !important;
  grid-template-rows: 28px 24px 18px !important;
  align-content: center !important;
  gap: 2px !important;
  padding: 8px 11px !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid .boss-saas-kpi-label {
  min-height: 28px !important;
  height: 28px !important;
  overflow: hidden;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid .boss-saas-kpi-label > svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 5px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid .boss-saas-kpi-value {
  min-height: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center;
  margin: 0 !important;
  font-size: 19px !important;
  line-height: 24px !important;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid .boss-saas-kpi-footer {
  min-width: 0;
  min-height: 18px;
  overflow: hidden;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid .boss-saas-kpi-footer > .boss-v153-metric-state {
  min-width: 0;
  height: 18px;
  min-height: 18px;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
  border: 0;
  padding: 0;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-activity-summary-grid .boss-saas-kpi-footer > .boss-v153-metric-state > small {
  min-width: 0;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Queue and product facts use the same compact surface rhythm. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs {
  gap: 8px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs > .boss-ops-compact-switch-item {
  min-height: 78px;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto 16px !important;
  grid-template-rows: auto !important;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs > .boss-ops-compact-switch-item > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs > .boss-ops-compact-switch-item > span > :is(strong, em) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs > .boss-ops-compact-switch-item > b {
  color: var(--boss-text-primary);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs > .boss-ops-compact-switch-item > svg:last-child {
  width: 16px;
  height: 16px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-v153-conversion-summary > .boss-ops-fact-item {
  min-height: 78px;
  padding: 10px 13px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import {
  border-color: #cfdae4;
  border-radius: var(--boss-radius-md);
  background: #fbfcfd;
  box-shadow: var(--boss-shadow-card);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-status {
  color: var(--boss-text-secondary);
  background: #f1f4f7;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  text-align: left;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-copy-code > span { overflow-wrap: anywhere; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-copy-code > svg { width: 13px; height: 13px; flex-shrink: 0; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-product-catalog-copy-code:is(:hover, :focus-visible) {
  border-color: var(--boss-border-soft);
  background: var(--boss-surface-muted);
  color: var(--boss-text-primary);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-management-tools-search-status {
  margin: 0 0 10px;
  color: var(--boss-text-secondary);
  font-size: 12px;
}

/* Catalog density: remove double section spacing and keep the existing filters in two rows. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog {
  gap: 10px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog > :is(
  .boss-console-page-head, .boss-product-catalog-summary, .boss-product-catalog-boundary,
  .boss-product-catalog-toolbar, .boss-product-catalog-view-state, .boss-product-catalog-table
) {
  margin: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog details.boss-product-catalog-boundary {
  display: block;
  min-height: 0;
  padding: 8px 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-boundary > summary {
  color: var(--boss-text-secondary);
  cursor: pointer;
  font-size: 12px;
  line-height: 24px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-boundary > summary > :is(strong, span) {
  display: inline;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-boundary > summary > span {
  margin-left: 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-boundary > p {
  margin-top: 8px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar {
  grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr) auto;
  gap: 8px 12px;
  padding: 10px 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar > .is-view { grid-column: 1; grid-row: 1; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar > label { grid-column: 2; grid-row: 1; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar > button { grid-column: 3; grid-row: 1; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar > .is-scope { grid-column: 1; grid-row: 2; }
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar > .is-missing { grid-column: 2 / -1; grid-row: 2; }

@media (max-width: 950px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar > fieldset { grid-column: 1 / -1; grid-row: auto; }
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar > label { grid-column: 1; grid-row: auto; }
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-toolbar > button { grid-column: 2; grid-row: auto; }
}

@media (min-width: 900px) and (max-width: 1180px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-surface {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item {
    min-height: 108px;
    padding: 10px 12px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--boss-border-soft);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-item:nth-child(3n) {
    border-right: 0;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-metric-note {
    -webkit-line-clamp: 1;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card {
    min-height: 96px;
    padding: 10px 11px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > div em,
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card > .boss-v153-tier-link {
    display: inline-flex !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-conversion-queue-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-v153-conversion-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary > .boss-ops-catalog-summary-item {
    min-height: 64px;
    border-bottom: 1px solid var(--boss-border-soft) !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary > .boss-ops-catalog-summary-item:nth-child(3n) {
    border-right: 0 !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-catalog-summary > .boss-ops-catalog-summary-item:nth-last-child(-n + 3) {
    border-bottom: 0 !important;
  }
}

/* Stage 2 closeout: preserve the stage-1 semantic DOM while making factual
 * states, real controls and dense desktop tables visually unambiguous. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] {
  --boss-stage2-static-zero-bg: #f5f7f8;
  --boss-stage2-static-zero-border: #d8dee3;
  --boss-stage2-static-info-bg: #f1f7fb;
  --boss-stage2-static-info-border: #c8dce9;
  --boss-stage2-static-locked-bg: #f5f7fa;
  --boss-stage2-static-locked-border: #c8d1dc;
}

/* Topbar controls share one 40px interaction rail; aria/title carries truth. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions :is(
  .boss-ai-top-entry,
  .boss-console-quick,
  .boss-console-notify
) {
  min-height: 40px;
  border-radius: 8px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-quick.btn {
  padding-inline: 12px;
  box-shadow: 0 2px 6px rgba(31, 78, 121, 0.16);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn {
  width: 40px;
  min-width: 40px;
  border-color: #ced7df;
  color: #496176;
  background: #fff;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn:hover {
  border-color: #94b8d1;
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn[aria-label^="待处理事项数量待核"] {
  border-color: #a9c9df;
  color: var(--boss-status-info);
  background: var(--boss-status-info-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn[aria-label^="当前没有待处理事项"] {
  border-color: #bfd8cf;
  color: var(--boss-status-confirmed);
  background: #f5faf8;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-notify.btn > b {
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  color: #fff;
  background: #a76a0a;
  box-shadow: 0 0 0 3px #fff, 0 2px 5px rgba(92, 59, 8, 0.18);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-toolbar-actions :is(button, input):focus-visible {
  outline: 2px solid var(--boss-focus-color) !important;
  outline-offset: 2px;
  box-shadow: var(--boss-focus-ring) !important;
}

/* People segmentation: controls look actionable; facts remain static cards. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card:not(button) {
  cursor: default;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people button.boss-v153-tier-card {
  border-color: #9ebfd6 !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(31, 78, 121, 0.04) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people button.boss-v153-tier-card:hover {
  border-color: var(--boss-action-primary) !important;
  background: #f3f8fb !important;
  box-shadow: 0 0 0 3px rgba(36, 95, 143, 0.1) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card[data-boss-interaction-state="zero"] {
  border-color: var(--boss-stage2-static-zero-border) !important;
  border-style: solid !important;
  color: #445363 !important;
  background: var(--boss-stage2-static-zero-bg) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card[data-boss-interaction-state="unknown"] {
  border-color: var(--boss-stage2-static-info-border) !important;
  border-style: solid !important;
  color: #315f86 !important;
  background: var(--boss-stage2-static-info-bg) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card:is(
  [data-boss-interaction-state="forbidden"],
  [data-boss-interaction-state="restricted"],
  [data-boss-interaction-state="locked"]
) {
  border-color: var(--boss-stage2-static-locked-border) !important;
  border-style: dashed !important;
  color: #506174 !important;
  background: var(--boss-stage2-static-locked-bg) !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-tier-card:is(
  [data-boss-interaction-state="forbidden"],
  [data-boss-interaction-state="restricted"],
  [data-boss-interaction-state="locked"]
) .boss-v153-tier-link {
  color: #52677b !important;
}

/* People ledger keeps the six semantic columns at the 1024 desktop gate. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people-table-panel {
  overflow: hidden;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people :is(
  .boss-people-table-head,
  .boss-people-table-row,
  .boss-ops-person-row
) {
  grid-template-columns: minmax(196px, 1.3fr) minmax(118px, 0.75fr) minmax(150px, 1fr) minmax(124px, 0.8fr) minmax(118px, 0.75fr) minmax(148px, 0.95fr) !important;
  align-items: center;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-people-table-row {
  min-height: 82px;
  padding-block: 9px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people :is(
  .boss-ops-person-membership,
  .boss-ops-person-recent,
  .boss-ops-person-business,
  .boss-ops-person-profit,
  .boss-ops-person-followup
) {
  min-width: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people :is(
  .boss-people-login-usage,
  .boss-people-recent-business,
  .boss-people-thirty-day,
  .boss-people-inventory,
  .boss-people-result,
  .boss-v153-person-relationship
) {
  display: grid;
  gap: 2px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people :is(
  .boss-people-table-row,
  .boss-ops-person-row
) :is(strong, em, small) {
  overflow-wrap: anywhere;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-people-result.boss-saas-state-unknown {
  padding: 7px 8px;
  border: 1px solid var(--boss-stage2-static-info-border);
  border-radius: 7px;
  color: #315f86;
  background: var(--boss-stage2-static-info-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-people-result.boss-saas-state-unavailable {
  padding: 7px 8px;
  border: 1px dashed var(--boss-stage2-static-locked-border);
  border-radius: 7px;
  color: #506174;
  background: var(--boss-stage2-static-locked-bg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-row-actions > .boss-saas-primary-action {
  width: 100%;
  max-width: none;
  min-height: 36px;
}

/* Light SaaS pagination replaces the legacy dark floating strip. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-console-pagination {
  min-height: 50px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--boss-border-soft);
  border-radius: 0 0 var(--boss-radius-md) var(--boss-radius-md);
  color: var(--boss-text-secondary);
  background: #fff;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-console-pagination > div {
  gap: 6px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-console-pagination button {
  min-height: 34px;
  padding-inline: 11px;
  border-color: #d5dde4;
  border-radius: 7px;
  color: #3e5367;
  background: #fff;
  font-weight: 680;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-console-pagination button:not(:disabled):hover {
  border-color: #8fb3cd;
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-console-pagination button:disabled {
  border-color: #e0e5e9;
  color: #7c8895;
  background: #f5f7f8;
  opacity: 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-console-pagination strong[aria-current="page"] {
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
  font-variant-numeric: tabular-nums;
}

/* Product batch maintenance is a secondary disclosure, not a competing hero. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e1e7;
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-subtle);
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  color: #40566b;
  background: #f8fafb;
  cursor: pointer;
  list-style: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import > summary::-webkit-details-marker {
  display: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import > summary > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 0 9px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import > summary > span > svg {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 7px;
  color: #4b6e89;
  background: #eaf1f6;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import > summary strong {
  color: #2a3d50;
  font-size: 12px;
  line-height: 17px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import > summary em {
  overflow: hidden;
  color: var(--boss-text-muted);
  font-size: 11px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import > summary > svg:last-child {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform 160ms ease;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import[open] {
  border-color: #c8d8e3;
  background: #fff;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import[open] > summary {
  border-bottom: 1px solid var(--boss-border-soft);
  background: #f4f7f9;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import[open] > summary > svg:last-child {
  transform: rotate(180deg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-body {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 12px 18px;
  padding: 14px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-actions {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #d7e0e6;
  border-radius: 7px;
  color: #4d6173;
  background: #f3f6f8;
  white-space: normal;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-boundary,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-online-progress,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-online-details,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-stats,
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-error {
  grid-column: 1 / -1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-status {
  min-height: 22px;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 6px;
  font-size: 10px;
  line-height: 15px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-actions {
  gap: 5px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-actions .boss-saas-action {
  min-height: 32px;
  padding: 5px 7px;
}

/* Shared final rhythm: explanation surfaces stay readable and non-interactive. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-home,
  .boss-ops-activity,
  .boss-ops-people,
  .boss-ops-conversion,
  .boss-ops-product-catalog
) .boss-saas-notice:not(:has(button)) {
  cursor: default;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] :is(
  .boss-ops-home,
  .boss-ops-activity,
  .boss-ops-conversion
) :is(.boss-saas-panel, .boss-saas-filterbar, .boss-saas-kpi-card) {
  border-radius: var(--boss-radius-md);
}

@media (min-width: 1024px) and (max-width: 1119.98px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-person-table :is(
    .boss-people-table-head.boss-ops-person-head,
    .boss-people-table-row.boss-ops-person-row
  ) {
    grid-template-columns: minmax(172px, 1.18fr) minmax(104px, 0.72fr) minmax(132px, 0.92fr) minmax(108px, 0.74fr) minmax(104px, 0.72fr) minmax(128px, 0.88fr) !important;
    gap: 7px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v153-person-table :is(
    .boss-people-table-head.boss-ops-person-head,
    .boss-people-table-row.boss-ops-person-row
  ) > :is(:nth-child(3), :nth-child(6)) {
    display: flex !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-people-table-row {
    min-height: 94px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v169-public-id {
    display: none;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-v169-person-copy small {
    -webkit-line-clamp: 2;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-body {
    grid-template-columns: minmax(0, 1fr);
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-console-page-product-catalog .boss-product-catalog-batch-import > summary > svg:last-child {
    transition: none;
  }
}

@media (min-width: 1024px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people .boss-people-table-head > :nth-child(4) {
    display: block !important;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-people :is(
    .boss-people-table-row,
    .boss-ops-person-row
  ) > :nth-child(4) {
    display: grid !important;
  }
}

/* Task workspace styles are owned by workspace-ui.css and shared tokens. */

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] :is(.boss-inventory-search > label, details.boss-commerce-advanced) {
  color: #36584a;
  background: #f4f7f6;
  border-color: #d8e3de;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] :is(.boss-commerce-advanced > summary, .boss-inventory-sort > span) {
  color: #36584a;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] .boss-inventory-search > button {
  color: #fff !important;
  background: #35694f !important;
  border-color: #35694f !important;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] details.boss-commerce-advanced {
  display: block;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] .boss-inventory-filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 12px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] .boss-inventory-filter-options > div > span {
  display: block;
  margin-bottom: 6px;
  color: #36584a;
  font-size: 11px;
  font-weight: 800;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] [data-boss-current-page="inventory"] .boss-commerce-advanced > summary::after {
  color: #36584a;
}

/* People lookup stays visible while the two differently scoped queues disclose details. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-disclosure {
  display: block;
  min-width: 0;
  border-top: 1px solid #d8e3de;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-disclosure > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-height: 44px;
  padding: 10px 2px;
  color: #244c3b;
  cursor: pointer;
  list-style: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-disclosure > summary > span {
  font-size: 14px;
  font-weight: 700;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-disclosure > summary > em {
  color: #52665b;
  font-size: 12px;
  font-style: normal;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-disclosure > summary > svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-disclosure[open] > summary > svg {
  transform: rotate(180deg);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-people-disclosure > summary:focus-visible {
  outline: 2px solid #35694f;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Conversion evidence needs room for growth, score and follow-up context. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row {
  grid-template-columns: 24px 28px minmax(140px, .85fr) minmax(240px, 1.4fr) minmax(176px, .85fr) 104px;
  grid-template-areas: "rank avatar person why evidence actions";
  gap: 12px;
  padding: 14px 16px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row > .boss-v153-rank {
  grid-area: rank;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row > .boss-console-initial {
  grid-area: avatar;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row > .boss-ops-conversion-person {
  grid-area: person;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row > .boss-ops-conversion-why {
  grid-area: why;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row > .boss-ops-conversion-evidence {
  grid-area: evidence;
  display: grid;
  gap: 4px;
  min-width: 0;
  opacity: 1;
  text-align: left;
  justify-items: start;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row > .boss-ops-conversion-evidence > :is(span, em, small) {
  color: var(--boss-saas-muted, #586779);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row > .boss-ops-conversion-action {
  grid-area: actions;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 1199px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row {
    grid-template-columns: 24px 28px minmax(110px, .8fr) minmax(180px, 1.2fr) minmax(176px, .9fr);
    grid-template-areas:
      "rank avatar person why evidence"
      ". . actions actions actions";
    align-items: start;
    gap: 10px 12px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row > .boss-ops-conversion-action {
    width: auto;
    justify-self: start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-v153-conversion-rule {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-v153-conversion-formula {
    justify-self: start;
  }

  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-ops-conversion .boss-ops-conversion-row {
    grid-template-columns: 24px 28px minmax(0, 1fr);
    grid-template-areas:
      "rank avatar person"
      ". . why"
      ". . evidence"
      ". . actions";
  }
}

@media (max-width: 700px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-controls [data-boss-today-search-form] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-v153-activity-controls [data-boss-today-search-form] > label {
    grid-column: 1 / -1;
  }
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-page-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-page-shortcuts > span {
  color: var(--tblr-secondary-color, #667382);
  font-size: 12px;
}

/* Membership rules use the current light-surface semantic colors. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-command-summary :is(h2, dd) {
  color: var(--boss-text-primary);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-command-summary :is(dt, p, .boss-membership-section-kicker) {
  color: var(--boss-text-secondary);
  font-size: 12px;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-command-summary dl > div {
  border-color: var(--boss-border-default);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-command-summary dd {
  font-size: 14px;
  font-weight: 700;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-priority-panel .boss-v153-rights-reference {
  color: var(--boss-text-secondary);
  background: var(--boss-surface-subtle);
  border-color: var(--boss-border-default);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-priority-panel .boss-v153-rights-reference > summary {
  color: var(--boss-text-primary);
  border-color: var(--boss-border-default);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-priority-panel .boss-v153-rights-reference > summary::after {
  content: "\5c55\5f00\89c4\5219";
  color: var(--boss-action-primary);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-priority-panel .boss-v153-rights-reference[open] > summary::after {
  content: "\6536\8d77\89c4\5219";
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-membership-queue-overview {
  margin: 12px 16px;
  color: var(--boss-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

/* Owner self-service account security; keeps the existing sidebar and modal. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-account-password {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  margin-top: 0.5rem;
  border: 1px solid rgba(220, 236, 248, 0.16);
  border-radius: 8px;
  color: #e6f0f8;
  background: rgba(220, 236, 248, 0.06);
  font-size: 13px;
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-account-password:hover {
  background: rgba(220, 236, 248, 0.14);
}
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-account-password:focus-visible {
  outline: 2px solid #9ac8e7;
  outline-offset: 2px;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal {
  --boss-dialog-text: #182943;
  --boss-dialog-text-soft: #24364d;
  --boss-dialog-muted: #617387;
  --boss-dialog-cyan: #315f85;
  --boss-dialog-border: #d6e0e9;
  --boss-dialog-border-strong: #c5d3df;
  --boss-dialog-surface-2: #eef4f9;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  color-scheme: light;
  color: #182943;
  background: #fff;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal > form[data-boss-password-change-form] {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal > .boss-context-modal-head {
  background: #f4f8fc;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal .boss-password-fields input {
  color: #182943;
  background: #fff;
  border-color: #c9d6e2;
  box-shadow: none;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal .boss-password-fields input:disabled {
  color: #617387;
  background: #edf2f6;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal .modal-actions {
  display: grid;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 14px 24px;
  background: #f4f8fc;
  box-shadow: none;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal .modal-actions button:not(.primary) {
  color: #314f6b;
  background: #fff;
  border-color: #c5d3df;
}
body.boss-console-mode #modalRoot .boss-password-fields {
  display: grid;
  gap: 16px;
  padding: 20px 24px;
}
body.boss-console-mode #modalRoot .boss-password-fields label {
  display: grid;
  gap: 7px;
  color: #24364d;
  font-size: 14px;
}
body.boss-console-mode #modalRoot .boss-password-fields input {
  min-height: 44px;
  width: 100%;
  border: 1px solid #c9d6e2;
  border-radius: 7px;
  padding: 10px 12px;
  color: #182943;
  background: #fff;
}
body.boss-console-mode #modalRoot .boss-password-fields small {
  color: #617387;
  line-height: 1.6;
}
body.boss-console-mode #modalRoot .boss-password-effect {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  color: #314f6b;
  background: #edf4fa;
  line-height: 1.6;
}
body.boss-console-mode #modalRoot .boss-password-effect svg {
  flex: 0 0 18px;
  margin-top: 3px;
}
body.boss-console-mode #modalRoot [data-boss-password-error] {
  margin: 0;
  color: #ad3434;
}
.boss-password-login-notice {
  padding: 12px 14px;
  border: 1px solid #bad8cb;
  border-radius: 8px;
  color: #20543d;
  background: #eff8f3;
  line-height: 1.6;
}
.boss-password-login-notice.is-error {
  color: #78591a;
  border-color: #e8d6aa;
  background: #fff8e8;
}
@media (max-width: 860px) {
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-account-password {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }
  body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-account-password span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal {
    width: 100%;
    max-height: 92dvh;
  }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal .boss-password-fields {
    padding: 18px 14px;
  }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-context-modal.boss-password-modal .modal-actions {
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  }
}

/* V228: learner group overview and durable group membership workspace. */
.boss-groups-page { --group-accent:#4263eb; --group-soft:#edf2ff; max-width:1500px; margin:0 auto; padding:30px 34px 42px; color:#233044; }
.boss-groups-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:28px; }
.boss-groups-kicker { display:block; color:#7b8697; font-size:12px; font-weight:600; letter-spacing:.08em; margin-bottom:9px; }
.boss-groups-heading h2 { font-size:29px; line-height:1.25; letter-spacing:-.7px; margin:0; font-weight:700; }
.boss-groups-heading h2>span { display:inline-block; vertical-align:middle; font-size:13px; letter-spacing:0; background:#edf2ff; color:#4263eb; padding:5px 10px; border-radius:8px; margin-left:12px; }
.boss-groups-heading p { font-size:14px; color:#7b8697; margin:10px 0 0; }
.boss-groups-actions { display:flex; gap:10px; flex-shrink:0; }
.boss-groups-page .btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid #dfe5ee; border-radius:9px; min-height:40px; padding:8px 14px; background:#fff; color:#46536a; font-size:13px; font-weight:600; box-shadow:0 1px 2px #162b4810; white-space:nowrap; }
.boss-groups-page .btn-primary { color:#fff; background:#4263eb; border-color:#4263eb; }
.boss-groups-page .btn:hover { filter:brightness(.97); }
.boss-groups-page button:disabled { opacity:.45; cursor:default; }
.boss-groups-page svg { width:17px; height:17px; flex-shrink:0; }
.boss-groups-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:24px 0; background:#fff; border:1px solid #e5eaf2; border-radius:14px; margin-bottom:32px; box-shadow:0 2px 6px #1d315504; }
.boss-groups-summary>div,.boss-groups-summary>button { padding:0 27px; text-align:left; background:none; border:none; border-right:1px solid #edf0f5; }
.boss-groups-summary>button { border-right:0; }
.boss-groups-summary>div>span,.boss-groups-summary>button>span { display:flex; gap:12px; color:#7b8697; font-size:13px; }
.boss-groups-summary strong { display:block; font-size:31px; font-weight:650; margin-top:9px; line-height:1.2; font-variant-numeric:tabular-nums; }
.boss-groups-summary small { font-weight:400; font-size:12px; color:#909aab; margin-left:8px; }
.boss-groups-summary>button strong { color:#c18434; }
.boss-groups-section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.boss-groups-section-title h3 { font-size:17px; margin:0; font-weight:650; }
.boss-groups-section-title h3 span { font-size:12px; background:#e9edf5; border-radius:6px; padding:3px 7px; margin-left:6px; color:#667389; }
.boss-groups-section-title>span { font-size:12px; color:#909aab; }
.boss-groups-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.boss-group-card { background:#fff; border:1px solid #e2e8f1; border-radius:14px; padding:22px; box-shadow:0 2px 7px #24385b05; transition:box-shadow .15s, transform .15s; }
.boss-group-card:hover { box-shadow:0 6px 20px #24385b0e; transform:translateY(-2px); border-color:#cbd5e6; }
.boss-group-card.is-purple { --group-accent:#8b5bd7; --group-soft:#f3edfc; }
.boss-group-card.is-green { --group-accent:#228a71; --group-soft:#e9f7f1; }
.boss-group-card.is-orange { --group-accent:#c28233; --group-soft:#fff5e7; }
.boss-group-card.is-pink { --group-accent:#c76791; --group-soft:#fcedf3; }
.boss-group-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.boss-group-folder { display:flex; align-items:center; justify-content:center; width:45px; height:45px; border-radius:12px; color:var(--group-accent); background:var(--group-soft); flex-shrink:0; }
.boss-group-folder svg { width:23px; height:23px; }
.boss-group-card-top>button { background:none; border:0; color:#929cad; padding:8px; border-radius:8px; }
.boss-group-card-top>button:hover { background:#f4f6fa; }
.boss-group-card-main { display:block; width:100%; border:0; background:none; text-align:left; padding:0; color:inherit; }
.boss-group-card-main h3 { font-size:19px; font-weight:650; margin:0 0 9px; }
.boss-group-card-main p { font-size:12px; line-height:1.6; color:#8a95a6; min-height:20px; margin-bottom:25px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.boss-group-card-bottom { display:flex; justify-content:space-between; align-items:center; border-top:1px solid #eef1f6; padding-top:17px; }
.boss-group-card-bottom>span:first-child { color:#8a95a6; font-size:12px; }
.boss-group-card-bottom strong { color:#2a3649; font-size:24px; font-weight:600; padding-right:6px; font-variant-numeric:tabular-nums; }
.boss-group-enter { display:flex; align-items:center; gap:8px; color:var(--group-accent); font-weight:600; font-size:12px; }
.boss-group-create-card { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:240px; gap:13px; border:1px dashed #cbd5e4; border-radius:14px; background:#f8fafd; color:#78869c; }
.boss-group-create-card>span { display:grid; place-items:center; height:42px; width:42px; background:#eaf0f8; border-radius:50%; }
.boss-group-create-card strong { font-size:14px; font-weight:600; }
.boss-group-create-card small { font-size:12px; color:#99a3b2; }
.boss-groups-unassigned { margin-top:24px; padding:21px 24px; display:flex; align-items:center; gap:16px; background:#fff; border:1px solid #e5eaf2; border-radius:13px; }
.boss-groups-unassigned .boss-group-folder { background:#f4f1ea; color:#ae8a52; }
.boss-groups-unassigned>div { flex:1; }
.boss-groups-unassigned h3 { font-size:14px; margin:0 0 6px; }
.boss-groups-unassigned h3 span { font-size:12px; color:#a28148; margin-left:8px; font-weight:500; }
.boss-groups-unassigned p { color:#8a95a6; font-size:12px; margin:0; }
.boss-groups-footnote { margin-top:20px; display:flex; align-items:center; gap:7px; color:#939cac; font-size:11px; }
.boss-groups-footnote button { margin-left:auto; border:0; color:#7686a2; background:none; }
.boss-groups-breadcrumb { display:flex; align-items:center; gap:12px; color:#8a95a6; font-size:12px; margin-bottom:22px; }
.boss-groups-breadcrumb button { display:flex; align-items:center; gap:6px; border:0; background:none; color:#667a9a; padding:0; }
.boss-groups-list-panel { background:#fff; border:1px solid #e3e8f1; border-radius:13px; overflow:hidden; }
.boss-groups-list-toolbar { display:flex; align-items:center; justify-content:space-between; padding:20px 23px; gap:18px; }
.boss-groups-list-toolbar form { display:flex; align-items:center; gap:10px; min-width:320px; width:52%; }
.boss-groups-list-toolbar form>svg { color:#8a95a6; }
.boss-groups-list-toolbar input { width:100%; font-size:13px; height:38px; border-radius:8px; border:1px solid #e0e5ed; padding:9px 12px; }
.boss-groups-list-toolbar>span { color:#8590a1; font-size:12px; }
.boss-group-bulk { display:flex; align-items:center; min-height:56px; gap:17px; padding:10px 24px; background:#fafbfe; border-top:1px solid #eef1f6; border-bottom:1px solid #e7edf5; font-size:12px; color:#7e8a9c; }
.boss-group-bulk.has-selection { background:#f0f4ff; }
.boss-group-bulk label { display:flex; align-items:center; gap:9px; margin:0; white-space:nowrap; }
.boss-group-bulk select { width:170px; padding:7px; height:36px; border:1px solid #dce3ef; border-radius:8px; font-size:12px; }
.boss-group-bulk-hint { margin-left:auto; color:#a0a9b8; }
.boss-groups-table-wrap { overflow:auto; }
.boss-groups-table { width:100%; border-collapse:collapse; text-align:left; min-width:760px; }
.boss-groups-table th { font-size:11px; font-weight:500; color:#8c98a9; padding:13px 18px; background:#fff; border-bottom:1px solid #eef1f6; }
.boss-groups-table td { padding:15px 18px; border-bottom:1px solid #f0f3f7; font-size:12px; color:#758198; white-space:nowrap; }
.boss-groups-table td:first-child,.boss-groups-table th:first-child { width:44px; padding-left:24px; padding-right:0; }
.boss-groups-table tr.is-selected td { background:#f8faff; }
.boss-groups-table tr:hover td { background:#fafbfe; }
.boss-group-person { display:flex; gap:12px; align-items:center; background:none; border:0; text-align:left; padding:0; color:#29354a; }
.boss-group-avatar { display:grid; place-items:center; background:#edf1f8; color:#7082a0; border-radius:11px; width:37px; height:37px; font-size:15px; flex-shrink:0; }
.boss-group-person strong { display:block; font-size:13px; font-weight:600; margin-bottom:4px; }
.boss-group-person small { color:#98a1b0; font-size:11px; }
.boss-group-label { display:inline-block; padding:4px 9px; border-radius:6px; background:#f0f3fc; color:#657bac; font-size:11px; }
.boss-group-label.is-empty { background:#f5f3ec; color:#ad9566; }
.boss-group-detail { display:flex; align-items:center; gap:6px; padding:4px 0; color:#5d77b4; font-size:12px; background:none; border:0; }
.boss-groups-pagination { display:flex; align-items:center; justify-content:space-between; padding:16px 23px; color:#9aa3b1; font-size:12px; }
.boss-groups-pagination>div { display:flex; gap:8px; }
.boss-groups-editor { display:grid; grid-template-columns:1fr 1.6fr .8fr; align-items:end; gap:16px; padding:25px; border:1px solid #d8e3fc; border-radius:13px; background:#fff; margin-bottom:25px; box-shadow:0 4px 16px #4866a109; }
.boss-groups-editor>div:first-child { grid-column:1/-1; }
.boss-groups-editor h3 { font-size:17px; margin:0 0 4px; }
.boss-groups-editor label { display:flex; flex-direction:column; gap:9px; color:#6e7c93; font-size:12px; }
.boss-groups-editor input,.boss-groups-editor select { height:41px; border:1px solid #dce3ef; padding:8px 10px; border-radius:8px; font-size:13px; }
.boss-groups-editor-actions { display:flex; gap:9px; grid-column:1/-1; }
.boss-groups-notice,.boss-groups-error { display:flex; align-items:center; gap:12px; border-radius:9px; background:#ecf8f2; color:#31836b; padding:13px 18px; margin-bottom:20px; font-size:13px; }
.boss-groups-error { background:#fff3ef; color:#bc654d; justify-content:space-between; }
.boss-groups-loading,.boss-groups-empty { display:flex; align-items:center; justify-content:center; padding:60px 20px; gap:12px; color:#8a95a6; }
.boss-groups-empty { flex-direction:column; }
.boss-groups-empty strong { font-size:16px; color:#6e7c92; }
.boss-groups-empty p { font-size:13px; margin:0; }
.boss-groups-page input[type=checkbox] { accent-color:#4263eb; width:15px; height:15px; cursor:pointer; }
.boss-groups-page button:focus-visible,.boss-groups-page input:focus-visible,.boss-groups-page select:focus-visible { outline:3px solid #b9ccff; outline-offset:3px; }
@media (max-width:1100px) { .boss-groups-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .boss-groups-page { padding:25px 22px; } }
@media (max-width:700px) { .boss-groups-heading { align-items:flex-start; flex-direction:column; } .boss-groups-heading h2 { font-size:24px; } .boss-groups-summary { grid-template-columns:1fr 1fr; gap:22px 0; } .boss-groups-summary>div:nth-child(2) { border-right:0; } .boss-groups-grid { grid-template-columns:1fr; } .boss-groups-list-toolbar,.boss-group-bulk { flex-wrap:wrap; } .boss-groups-list-toolbar form { min-width:0; width:100%; } .boss-groups-editor { grid-template-columns:1fr; } .boss-groups-unassigned { flex-wrap:wrap; } .boss-groups-footnote { align-items:flex-start; flex-wrap:wrap; } }

/* SOURCE public/boss-service-outcomes.css SHA256 d9c3dd9a3c4ff8dd7edc1f6d8237ef8f9f9f97ff250a3683917773acb8ccf044 */
.boss-service-workspace-tabs{display:flex;gap:6px;margin:0 0 20px;padding:5px;background:#eaf0f5;border:1px solid #dce4ec;border-radius:12px;width:fit-content}
.boss-service-workspace-tabs button{display:flex;gap:8px;align-items:center;border:0;border-radius:8px;background:transparent;color:#526779;padding:10px 20px;font-weight:650}
.boss-service-workspace-tabs button.active{background:#fff;color:#194d76;box-shadow:0 1px 4px #213e5814}
.boss-service-workspace-tabs svg{width:18px;height:18px}
.boss-outcome-fixture{display:flex;flex-wrap:wrap;gap:6px 12px;padding:12px 16px;margin-bottom:16px;background:#fff9e9;color:#806629;border:1px solid #efe1b9;border-radius:8px;font-size:12px;line-height:1.6}
.boss-outcome-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.boss-outcome-summary>div{display:grid;gap:7px;padding:18px 20px;border:1px solid #dde5ec;background:#fff;border-radius:12px}
.boss-outcome-summary span{font-weight:600;color:#526579}.boss-outcome-summary strong{font-size:30px;line-height:1.2;color:#223c54;font-variant-numeric:tabular-nums}
.boss-outcome-summary small{color:#728294;font-size:12px}.boss-outcome-summary .is-overdue{border-top:3px solid #ca7157}.boss-outcome-summary .is-issue{border-top:3px solid #c49b42}
.boss-outcome-filter-panel,.boss-outcome-list-panel{margin-bottom:18px}
.boss-outcome-search{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px 20px;align-items:end}
.boss-outcome-search label{display:grid;gap:6px;min-width:0;margin:0;color:#475c70;font-size:13px;font-weight:600}
.boss-outcome-query{grid-column:span 2}.boss-outcome-search input,.boss-outcome-search select{min-height:40px;width:100%}.boss-outcome-search>button{min-height:40px;display:flex;gap:7px;align-items:center;justify-content:center}.boss-outcome-search>button svg{width:16px;height:16px}
.boss-outcome-table-scroll{overflow-x:auto}.boss-outcome-table{border-collapse:collapse;width:100%;font-size:13px;min-width:750px;text-align:left}.boss-outcome-table th{font-weight:600;color:#607184;background:#f5f8fa;border-block:1px solid #e2e9ef;padding:13px 16px;white-space:nowrap}.boss-outcome-table td{padding:16px;border-bottom:1px solid #e8edf2;vertical-align:middle;color:#344d63}.boss-outcome-table th:first-child,.boss-outcome-table td:first-child{padding-left:20px;width:31%}.boss-outcome-table th:last-child,.boss-outcome-table td:last-child{padding-right:20px;width:130px}.boss-outcome-table td>strong,.boss-outcome-table td>span,.boss-outcome-table td>small{display:block;line-height:1.55}.boss-outcome-table td>span{margin-top:4px;color:#62768a}.boss-outcome-table td>small{margin-top:4px;font-size:11px;color:#8190a0}.boss-outcome-table tbody tr:hover{background:#f7fafc}.boss-outcome-table tbody tr.is-overdue td:first-child{box-shadow:inset 3px 0 #c97860}.boss-outcome-table button{display:inline-flex;gap:5px;align-items:center;white-space:nowrap;padding:8px 10px;background:#edf4fa;border:1px solid #d7e5f1;color:#265d86;border-radius:7px;font-weight:600}.boss-outcome-table button svg{width:14px;height:14px}.boss-outcome-table td .boss-outcome-due.is-overdue{color:#ae4d35}.boss-outcome-table td .boss-outcome-due.is-today{color:#266889}.boss-outcome-table td .boss-outcome-renewal{color:#307962}.boss-outcome-table td .boss-outcome-linkage{color:#9a7330;font-size:12px}
.boss-outcome-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 20px;color:#718397;gap:10px}.boss-outcome-empty>svg{width:34px;height:34px;color:#7695ac}.boss-outcome-empty h3{font-size:16px;color:#385268;margin:2px 0}.boss-outcome-empty p{margin:0 0 6px}.boss-outcome-footnote,.boss-outcome-notice{font-size:12px;color:#6e8193;line-height:1.7}.boss-outcome-notice{padding:0 20px 12px}.boss-outcome-page .boss-console-section-head>span{font-size:12px;color:#6e8193}.boss-service-workspace-tabs button:focus-visible,.boss-outcome-page button:focus-visible{outline:3px solid #71a9d3;outline-offset:3px}
@media(max-width:900px){.boss-outcome-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.boss-outcome-search{grid-template-columns:repeat(2,minmax(0,1fr))}.boss-outcome-query{grid-column:span 2}}
@media(max-width:560px){.boss-service-workspace-tabs{width:100%}.boss-service-workspace-tabs button{flex:1;justify-content:center;padding:10px 8px}.boss-outcome-summary>div{padding:14px}.boss-outcome-summary strong{font-size:25px}.boss-outcome-search{padding:14px;gap:10px}.boss-outcome-search>button{grid-column:span 2}.boss-outcome-page .boss-console-section-head{align-items:flex-start;gap:10px}.boss-outcome-summary small{font-size:11px}}

.boss-outcome-page .boss-console-page-title-link>span{font:inherit;color:inherit;letter-spacing:normal}.boss-outcome-page .boss-console-page-title-link{font-size:22px;font-weight:700;color:#233e55}.boss-service-workspace-tabs{margin:14px 18px 0}

/* Match the established people-list pagination in this results workspace. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-outcome-page .boss-console-pagination {
  min-height: 50px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--boss-border-soft);
  border-radius: 0 0 var(--boss-radius-md) var(--boss-radius-md);
  color: var(--boss-text-secondary);
  background: #fff;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-outcome-page .boss-console-pagination > div {
  gap: 6px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-outcome-page .boss-console-pagination button {
  min-height: 34px;
  padding-inline: 11px;
  border-color: #d5dde4;
  border-radius: 7px;
  color: #3e5367;
  background: #fff;
  font-weight: 680;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-outcome-page .boss-console-pagination button:not(:disabled):hover {
  border-color: #8fb3cd;
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-outcome-page .boss-console-pagination button:disabled {
  border-color: #e0e5e9;
  color: #7c8895;
  background: #f5f7f8;
  opacity: 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-outcome-page .boss-console-pagination strong[aria-current="page"] {
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
  font-variant-numeric: tabular-nums;
}

/* SOURCE public/boss-followup-results.css SHA256 60f76b452b126961ed93f7b045717fc10f3353753868f1456fe7d9406b811ca5 */
.boss-people-workspace-tabs{display:flex;gap:6px;width:fit-content;margin:14px 18px 0;padding:5px;border:1px solid #dce4ec;border-radius:12px;background:#eaf0f5}
.boss-people-workspace-tabs button{display:flex;align-items:center;gap:8px;padding:10px 20px;border:0;border-radius:8px;background:transparent;color:#526779;font-weight:650}
.boss-people-workspace-tabs button.active{background:#fff;color:#194d76;box-shadow:0 1px 4px #213e5814}
.boss-people-workspace-tabs svg{width:18px;height:18px}
.boss-followup-results-page .boss-console-page-title-link{font-size:22px;font-weight:700;color:#233e55}
.boss-followup-results-page .boss-console-page-title-link>span{font:inherit;color:inherit;letter-spacing:normal}
.boss-followup-fixture{display:flex;flex-wrap:wrap;gap:6px 12px;padding:12px 16px;margin-bottom:16px;background:#fff9e9;color:#806629;border:1px solid #efe1b9;border-radius:8px;font-size:12px;line-height:1.6}
.boss-followup-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
.boss-followup-summary>div{display:grid;gap:4px;padding:12px 18px;border:1px solid #dde5ec;border-radius:12px;background:#fff}
.boss-followup-summary span{font-weight:600;color:#526579}
.boss-followup-summary strong{font-size:26px;line-height:1.2;color:#223c54;font-variant-numeric:tabular-nums}
.boss-followup-summary small{color:#728294;font-size:12px;line-height:1.5}
.boss-followup-summary .is-overdue{border-top:3px solid #ca7157}
.boss-followup-summary .is-review{border-top:3px solid #c49b42}
.boss-followup-filter-panel,.boss-followup-list-panel{margin-bottom:12px}
.boss-followup-results-page .boss-console-section-head{padding-top:10px;padding-bottom:10px}
.boss-followup-filter-form{display:grid;grid-template-columns:minmax(180px,1.7fr) repeat(3,minmax(135px,1fr)) auto;align-items:end;gap:12px;padding:12px 20px}
.boss-followup-filter-form label{display:grid;min-width:0;gap:6px;margin:0;color:#475c70;font-size:13px;font-weight:600}
.boss-followup-filter-form input,.boss-followup-filter-form select{min-height:40px;width:100%}
.boss-followup-filter-form>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;white-space:nowrap}
.boss-followup-filter-form>button svg{width:16px;height:16px}
.boss-followup-table-scroll{overflow-x:auto}
.boss-followup-table{border-collapse:collapse;width:100%;min-width:1010px;font-size:13px;text-align:left}
.boss-followup-table th{padding:13px 15px;border-block:1px solid #e2e9ef;background:#f5f8fa;color:#607184;font-weight:600;white-space:nowrap}
.boss-followup-table td{padding:16px 15px;border-bottom:1px solid #e8edf2;vertical-align:top;color:#344d63}
.boss-followup-table th:first-child,.boss-followup-table td:first-child{padding-left:20px;width:15%}
.boss-followup-table th:last-child,.boss-followup-table td:last-child{padding-right:20px;width:145px}
.boss-followup-table th:nth-child(2){width:19%}.boss-followup-table th:nth-child(4){width:12%}.boss-followup-table th:nth-child(5){width:17%}
.boss-followup-table td>strong,.boss-followup-table td>span,.boss-followup-table td>small{display:block;line-height:1.6}
.boss-followup-table td>span{margin-top:4px;color:#62768a}.boss-followup-table td>small{margin-top:4px;color:#7e8d9d;font-size:11px}
.boss-followup-table tbody tr:hover{background:#f7fafc}.boss-followup-table tr.is-overdue td:first-child{box-shadow:inset 3px 0 #c97860}
.boss-followup-table .boss-followup-next{max-width:360px;overflow-wrap:anywhere;white-space:pre-wrap}
.boss-followup-table .boss-followup-result.is-review,.boss-followup-table .boss-followup-review{color:#96722e}
.boss-followup-table .boss-followup-schedule.is-overdue{color:#ae4d35}.boss-followup-table .boss-followup-schedule.is-today{color:#266889}
.boss-followup-table .boss-followup-schedule.is-paused{color:#78828c}.boss-followup-table .boss-followup-schedule.is-future{color:#477565}
.boss-followup-actions{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.boss-followup-actions button{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid #d7e5f1;border-radius:7px;background:#edf4fa;color:#265d86;font-weight:600;white-space:nowrap}
.boss-followup-actions button.secondary{background:#fff;border-color:#e0e6ec;color:#5e7285;font-weight:500}
.boss-followup-actions button svg{width:14px;height:14px}.boss-followup-actions>span{font-size:11px;line-height:1.5}.boss-followup-readonly{color:#7b8a99}
.boss-followup-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:40px 20px;text-align:center;color:#718397}
.boss-followup-empty>svg{width:34px;height:34px;color:#7695ac}.boss-followup-empty h3{margin:2px 0;color:#385268;font-size:16px}.boss-followup-empty p{margin:0 0 6px}
.boss-followup-footnote,.boss-followup-notice{font-size:12px;color:#6e8193;line-height:1.7}.boss-followup-notice{padding:0 20px 12px}
.boss-followup-results-page .boss-console-section-head>span{color:#6e8193;font-size:12px;line-height:1.5}
.boss-quick-followup-modal .boss-followup-continuation-note{display:grid;gap:7px;margin:12px 20px;padding:14px 16px;border:1px solid #6386a34d;border-radius:10px;background:#648db312;font-size:13px;line-height:1.7}
.boss-quick-followup-modal .boss-followup-continuation-note strong{color:inherit;font-size:14px}
.boss-quick-followup-modal .boss-followup-continuation-note p{margin:0;color:inherit}
.boss-quick-followup-modal .boss-followup-continuation-note button{justify-self:start;min-height:44px;margin-top:3px;padding:0 15px;border:1px solid rgba(63,124,255,.82);border-radius:10px;color:#fff;background:linear-gradient(135deg,#326cf3,#6847ef);font:inherit;font-size:13px;font-weight:720;cursor:pointer}
.boss-quick-followup-modal .boss-followup-continuation-note button:disabled{opacity:.5;cursor:not-allowed}
.boss-people-workspace-tabs button:focus-visible,.boss-followup-results-page button:focus-visible,.boss-followup-table-scroll:focus-visible{outline:3px solid #71a9d3;outline-offset:3px}
@media(max-width:1200px){.boss-followup-filter-form{grid-template-columns:repeat(4,minmax(0,1fr))}.boss-followup-query{grid-column:span 2}.boss-followup-filter-form>button{grid-column:span 2}}
@media(max-width:900px){.boss-followup-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.boss-followup-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.boss-followup-query{grid-column:span 2}.boss-followup-filter-form>button{grid-column:auto}}
@media(max-width:560px){.boss-people-workspace-tabs{width:auto}.boss-people-workspace-tabs button{flex:1;justify-content:center;padding:10px 8px}.boss-followup-summary>div{padding:14px}.boss-followup-summary strong{font-size:25px}.boss-followup-summary small{font-size:11px}.boss-followup-filter-form{padding:14px;gap:10px}.boss-followup-results-page .boss-console-section-head{align-items:flex-start;gap:10px;flex-wrap:wrap}}

/* Match the established people-list pagination in this results workspace. */
body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-followup-results-page .boss-console-pagination {
  min-height: 50px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--boss-border-soft);
  border-radius: 0 0 var(--boss-radius-md) var(--boss-radius-md);
  color: var(--boss-text-secondary);
  background: #fff;
  box-shadow: none;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-followup-results-page .boss-console-pagination > div {
  gap: 6px;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-followup-results-page .boss-console-pagination button {
  min-height: 34px;
  padding-inline: 11px;
  border-color: #d5dde4;
  border-radius: 7px;
  color: #3e5367;
  background: #fff;
  font-weight: 680;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-followup-results-page .boss-console-pagination button:not(:disabled):hover {
  border-color: #8fb3cd;
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-followup-results-page .boss-console-pagination button:disabled {
  border-color: #e0e5e9;
  color: #7c8895;
  background: #f5f7f8;
  opacity: 1;
}

body.boss-console-mode #bossConsole[data-boss-skin="tabler-1.4.0"] .boss-followup-results-page .boss-console-pagination strong[aria-current="page"] {
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--boss-action-primary);
  background: var(--boss-action-primary-soft);
  font-variant-numeric: tabular-nums;
}

/* SOURCE public/boss-product-catalog-csv-preflight.css SHA256 6c979a6ebf8fb546d0f746aaee9a12318864fc7cbbe428334dffd472836575f8 */
.boss-csv-preflight { --csv-border: var(--tblr-border-color, #dbe3ee); --csv-muted: var(--tblr-secondary, #64748b); margin: 16px 0; border: 1px solid var(--csv-border); border-radius: 14px; background: var(--tblr-bg-surface, #fff); color: var(--tblr-body-color, #182433); overflow: hidden; }
.boss-csv-preflight [hidden] { display: none !important; }
.boss-csv-preflight-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.boss-csv-preflight-intro-copy strong { font-size: 15px; font-weight: 700; }
.boss-csv-preflight-intro-copy p { margin: 4px 0 0; color: var(--csv-muted); font-size: 13px; line-height: 1.5; }
.boss-csv-preflight button { min-height: 36px; border: 1px solid var(--csv-border); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.boss-csv-preflight-launch, .boss-csv-preflight-resume { background: var(--tblr-primary, #206bc4); color: #fff; border-color: transparent !important; }
.boss-csv-preflight-secondary { background: var(--tblr-bg-surface, #fff); color: inherit; }
.boss-csv-preflight button:disabled { opacity: .5; cursor: not-allowed; }
.boss-csv-preflight :is(button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid #3986e8; outline-offset: 3px; }
.boss-csv-preflight-panel { border-top: 1px solid var(--csv-border); padding: 18px 20px; }
.boss-csv-preflight-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.boss-csv-preflight-file { flex: 1 1 300px; display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 13px; font-weight: 600; }
.boss-csv-preflight-file input { max-width: 100%; min-width: 0; font: inherit; font-weight: 400; }
.boss-csv-preflight-file input::file-selector-button { border: 1px solid var(--csv-border); border-radius: 6px; background: var(--tblr-bg-surface, #fff); color: inherit; padding: 7px 10px; margin-right: 8px; font: inherit; cursor: pointer; }
.boss-csv-preflight-boundary, .boss-csv-preflight-visible-count { color: var(--csv-muted); font-size: 12px; line-height: 1.65; margin: 12px 0; }
.boss-csv-preflight-status { font-size: 13px; line-height: 1.6; margin: 12px 0 0; }
.boss-csv-preflight-report:not(:empty) { margin-top: 16px; }
.boss-csv-preflight-source { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--csv-muted); }
.boss-csv-preflight-source strong { font-size: 13px; color: var(--tblr-body-color, #182433); overflow-wrap: anywhere; }
.boss-csv-preflight-fingerprint { flex-basis: 100%; }
.boss-csv-preflight-fingerprint summary { cursor: pointer; }
.boss-csv-preflight-fingerprint code { display: block; margin-top: 6px; white-space: normal; overflow-wrap: anywhere; }
.boss-csv-preflight-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--csv-border); border-radius: 10px; margin: 16px 0; overflow: hidden; }
.boss-csv-preflight-counts > div { padding: 12px 14px; border-right: 1px solid var(--csv-border); }
.boss-csv-preflight-counts > div:last-child { border-right: 0; }
.boss-csv-preflight-counts span { display: block; color: var(--csv-muted); font-size: 12px; }
.boss-csv-preflight-counts strong { display: block; margin-top: 4px; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.boss-csv-preflight-file-errors { padding: 12px 16px 12px 32px; margin: 12px 0; border: 1px solid #e9c5b6; border-radius: 8px; color: #8d361d; background: #fff5ef; font-size: 13px; line-height: 1.6; }
.boss-csv-preflight-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; }
.boss-csv-preflight-filter select { border: 1px solid var(--csv-border); border-radius: 6px; padding: 7px 10px; font: inherit; color: inherit; background: var(--tblr-bg-surface, #fff); }
.boss-csv-preflight-table-scroll { overflow: auto; border: 1px solid var(--csv-border); border-radius: 8px; margin-bottom: 12px; }
.boss-csv-preflight-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 630px; }
.boss-csv-preflight-table caption { padding: 10px 12px; color: var(--csv-muted); text-align: left; caption-side: top; font-size: 12px; }
.boss-csv-preflight-table :is(th, td) { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--csv-border); }
.boss-csv-preflight-table th { background: var(--tblr-bg-surface-secondary, #f5f7fa); color: var(--csv-muted); font-weight: 600; white-space: nowrap; }
.boss-csv-preflight-table tbody tr:last-child td { border-bottom: 0; }
.boss-csv-preflight-identity { min-width: 190px; max-width: 340px; overflow-wrap: anywhere; }
.boss-csv-preflight-identity > :is(strong, span) { display: block; white-space: pre-wrap; }
.boss-csv-preflight-identity > strong { font-size: 13px; }
.boss-csv-preflight-identity > span { margin-top: 4px; color: var(--csv-muted); }
.boss-csv-preflight-reason { min-width: 170px; max-width: 400px; line-height: 1.6; }
.boss-csv-preflight-reason .is-ready { color: #17603a; font-weight: 600; }
.boss-csv-preflight-reason .is-blocked { color: #984421; font-weight: 600; }
.boss-csv-preflight-reason p { margin: 4px 0 0; color: var(--csv-muted); }
.boss-csv-preflight-original { margin-top: 8px; font-size: 11px; }
.boss-csv-preflight-original summary { color: var(--csv-muted); cursor: pointer; }
.boss-csv-preflight-original dl { display: grid; grid-template-columns: 76px minmax(100px, 1fr); gap: 5px 8px; margin: 10px 0 0; }
.boss-csv-preflight-original dt { color: var(--csv-muted); font-weight: 400; }
.boss-csv-preflight-original dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .boss-csv-preflight-intro { align-items: flex-start; flex-direction: column; padding: 16px; } .boss-csv-preflight-panel { padding: 16px; } .boss-csv-preflight-launch { width: 100%; } .boss-csv-preflight-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .boss-csv-preflight-counts > div { border-bottom: 1px solid var(--csv-border); } .boss-csv-preflight-counts > div:nth-child(2) { border-right: 0; } .boss-csv-preflight-counts > div:nth-child(n+3) { border-bottom: 0; } .boss-csv-preflight-file { flex-direction: column; align-items: flex-start; } }

.boss-csv-preflight-export { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--csv-border); border-radius: 8px; background: var(--tblr-bg-surface-secondary, #f5f7fa); }
.boss-csv-preflight-download { flex: 0 0 auto; }
.boss-csv-preflight-export-notice { flex: 1 1 280px; min-width: 0; margin: 0; color: var(--csv-muted); font-size: 12px; line-height: 1.65; }
.boss-csv-preflight-draft-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--csv-border); border-bottom: 1px solid var(--csv-border); padding: 12px 0; margin: 0 0 14px; }
.boss-csv-preflight-draft-info, .boss-csv-preflight-draft-hint { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.6; }
.boss-csv-preflight-draft-hint { color: var(--csv-muted); }
.boss-csv-preflight-draft-file { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.boss-csv-preflight-draft-file input { font: inherit; max-width: 230px; }
.boss-csv-preflight-draft-preview { flex-basis: 100%; min-width: 0; font-size: 12px; line-height: 1.6; }
.boss-csv-preflight-draft-preview summary { cursor: pointer; }
.boss-csv-preflight-draft-preview ul { max-height: 180px; overflow: auto; padding-left: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.boss-csv-preflight-coordinate { display: block; color: var(--csv-muted); line-height: 1.6; min-width: 100px; }
.boss-csv-preflight-query-actions { min-width: 210px; max-width: 300px; }
.boss-csv-preflight-query-editor { margin-top: 10px; font-size: 12px; line-height: 1.6; }
.boss-csv-preflight-query-editor summary { cursor: pointer; color: var(--tblr-primary, #206bc4); }
.boss-csv-preflight-query-editor label, .boss-csv-preflight-query-editor label span { display: block; margin-top: 8px; }
.boss-csv-preflight-query-input { box-sizing: border-box; width: 100%; min-width: 140px; border: 1px solid var(--csv-border); border-radius: 6px; background: var(--tblr-bg-surface, #fff); color: inherit; padding: 8px; font: inherit; resize: vertical; white-space: pre-wrap; }
.boss-csv-preflight-query-editor p { color: var(--csv-muted); margin: 6px 0; }
.boss-csv-preflight-reason .boss-csv-preflight-query-value { color: var(--tblr-body-color, #182433); white-space: pre-wrap; overflow-wrap: anywhere; }

/* SOURCE frontend/boss-runtime/design-tokens.css SHA256 a2b93a34610167f0eafcc94870c3b5c9ab8fbac4295a4804abbd7e66cb8add46 */
/* Shoes Ledger / Figma constitution v1.3.0.
 * Source: docs/design-system/tokens.source.json
 * Literal spacing uses --sl-space-N; legacy --boss-space-N multipliers stay intact. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] {
  --sl-number-0: 0px;
  --sl-number-1: 1px;
  --sl-number-2: 2px;
  --sl-number-4: 4px;
  --sl-number-8: 8px;
  --sl-number-12: 12px;
  --sl-number-14: 14px;
  --sl-number-16: 16px;
  --sl-number-18: 18px;
  --sl-number-20: 20px;
  --sl-number-22: 22px;
  --sl-number-24: 24px;
  --sl-number-28: 28px;
  --sl-number-32: 32px;
  --sl-number-36: 36px;
  --sl-number-40: 40px;
  --sl-number-44: 44px;
  --sl-number-48: 48px;
  --sl-number-64: 64px;
  --sl-number-72: 72px;
  --sl-number-112: 112px;
  --sl-number-224: 224px;
  --sl-number-240: 240px;
  --sl-number-280: 280px;
  --sl-number-320: 320px;
  --sl-number-999: 999px;
  --sl-number-1680: 1680px;
  --sl-palette-navy: #182c44;
  --sl-palette-primary: #4263eb;
  --sl-palette-primary-hover: #3b5bdb;
  --sl-palette-primary-pressed: #364fc7;
  --sl-palette-page: #f5f7fb;
  --sl-palette-subtle: #f8fafc;
  --sl-palette-white: #ffffff;
  --sl-palette-ink: #182433;
  --sl-palette-secondary: #526178;
  --sl-palette-muted: #626f86;
  --sl-palette-border: #e6eaf1;
  --sl-palette-border-strong: #cbd3e0;
  --sl-palette-selected: #eef2ff;
  --sl-palette-nav-selected: #eef2ff;
  --sl-palette-nav-text: #526178;
  --sl-palette-success: #176b4d;
  --sl-palette-success-bg: #edf7f1;
  --sl-palette-warning: #855400;
  --sl-palette-warning-bg: #fff5dd;
  --sl-palette-danger: #a22835;
  --sl-palette-danger-bg: #fff0f1;
  --sl-palette-info: #285f8f;
  --sl-palette-info-bg: #edf4fb;
  --sl-palette-disabled: #e8edf2;
  --sl-palette-focus: #4263eb;
  --sl-palette-gold: #ad7b2b;
  --sl-palette-gold-bg: #fcf6e8;
  --boss-surface-page: var(--sl-palette-page);
  --boss-surface-default: var(--sl-palette-white);
  --boss-surface-subtle: var(--sl-palette-subtle);
  --boss-surface-sidebar: var(--sl-palette-white);
  --boss-nav-selected-bg: var(--sl-palette-nav-selected);
  --boss-nav-text: var(--sl-palette-nav-text);
  --boss-text-primary: var(--sl-palette-ink);
  --boss-text-secondary: var(--sl-palette-secondary);
  --boss-text-muted: var(--sl-palette-muted);
  --boss-text-inverse: var(--sl-palette-white);
  --boss-action-primary: var(--sl-palette-primary);
  --boss-action-hover: var(--sl-palette-primary-hover);
  --boss-action-pressed: var(--sl-palette-primary-pressed);
  --boss-action-selected: var(--sl-palette-selected);
  --boss-border-default: var(--sl-palette-border);
  --boss-border-input: var(--sl-palette-border-strong);
  --boss-focus: var(--sl-palette-focus);
  --boss-disabled-bg: var(--sl-palette-disabled);
  --boss-state-success-fg: var(--sl-palette-success);
  --boss-state-success-bg: var(--sl-palette-success-bg);
  --boss-state-warning-fg: var(--sl-palette-warning);
  --boss-state-warning-bg: var(--sl-palette-warning-bg);
  --boss-state-danger-fg: var(--sl-palette-danger);
  --boss-state-danger-bg: var(--sl-palette-danger-bg);
  --boss-state-pending-fg: var(--sl-palette-info);
  --boss-state-pending-bg: var(--sl-palette-info-bg);
  --boss-brand-accent: var(--sl-palette-gold);
  --boss-brand-tint: var(--sl-palette-gold-bg);
  --sl-space-0: 0px;
  --sl-space-4: 4px;
  --sl-space-8: 8px;
  --sl-space-12: 12px;
  --sl-space-16: 16px;
  --sl-space-24: 24px;
  --sl-space-32: 32px;
  --sl-space-48: 48px;
  --sl-space-64: 64px;
  --boss-radius-none: 0px;
  --boss-radius-control: 8px;
  --boss-radius-card: 12px;
  --boss-radius-pill: 999px;
  --boss-size-control-compact: 32px;
  --boss-size-control-default: 40px;
  --boss-size-control-touch: 48px;
  --boss-size-nav-width: 224px;
  --boss-size-nav-collapsed: 72px;
  --boss-size-topbar-height: 64px;
  --boss-size-table-row: 48px;
  --boss-size-table-person: 72px;
  --boss-size-table-product: 112px;
  --boss-size-table-header: 44px;
  --boss-size-search-min: 240px;
  --boss-size-search-default: 280px;
  --boss-size-search-max: 320px;
  --boss-size-content-max: 1680px;
  --boss-size-icon-default: 16px;
  --boss-size-icon-navigation: 20px;
  --boss-size-border: 1px;
  --boss-size-focus: 2px;
  --boss-type-page-size: 24px;
  --boss-type-page-line: 32px;
  --boss-type-section-size: 16px;
  --boss-type-section-line: 24px;
  --boss-type-body-size: 14px;
  --boss-type-body-line: 22px;
  --boss-type-label-size: 14px;
  --boss-type-label-line: 22px;
  --boss-type-caption-size: 12px;
  --boss-type-caption-line: 18px;
  --boss-type-metric-size: 28px;
  --boss-type-metric-line: 36px;
  --boss-type-doc-title-size: 48px;
  --boss-type-doc-title-line: 64px;
  --boss-type-doc-heading-size: 32px;
  --boss-type-doc-heading-line: 44px;
  --boss-type-doc-lead-size: 18px;
  --boss-type-doc-lead-line: 28px;
}

/* SOURCE frontend/boss-runtime/light-polish.css SHA256 92142b09cd3c2f78e80634aefc7dd18f5a08edeea2d260b320e72d5e30c2d9fd */
/* V237: Tabler 1.4.0 light enterprise components.
 * Adapted from upstream navbar, cards, table and avatar composition (MIT).
 * Provenance: docs/design-system/OPEN_SOURCE_UI.md. Existing event and permission contracts are retained.
 * This file replaces the earlier light-polish theme; it is not another runtime theme. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] { --tblr-primary:var(--boss-action-primary)!important;--tblr-primary-rgb:66,99,235!important;--tblr-body-color:var(--boss-text-primary)!important;--tblr-border-color:var(--boss-border-default)!important;--tblr-body-bg:var(--boss-surface-page)!important;--boss-elevation:0 2px 8px #18243305,0 1px 2px #18243303!important;font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-brand-logo { display:block!important;width:100%!important;height:100%!important;object-fit:contain!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand.navbar-brand { align-items:center!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand.navbar-brand > .boss-brand-mark { display:block!important;padding:0!important;border:0!important;overflow:hidden!important;background:#fff!important;box-shadow:0 1px 4px #1824330a!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand > div { min-width:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand strong { color:var(--boss-text-primary)!important;line-height:26px!important;font-weight:700!important;letter-spacing:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand em { color:var(--boss-text-muted)!important;font-style:normal!important;font-weight:400!important;letter-spacing:0!important;margin-top:2px!important;line-height:18px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-nav-caption { padding:0 12px!important;margin:0!important;color:var(--boss-text-muted)!important;font-size:12px!important;line-height:18px!important;font-weight:500!important;letter-spacing:.05em!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link { position:relative!important;transition:background 150ms,color 150ms!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link > span { font-weight:500!important;letter-spacing:0!important;color:inherit!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link:hover { background:var(--boss-surface-subtle)!important;color:var(--boss-text-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link.active > span { font-weight:600!important;color:var(--boss-action-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link > svg { color:inherit!important;stroke-width:1.7!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-trigger { font-size:13px!important;font-weight:500!important;gap:10px!important;min-height:44px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-trigger > svg { width:18px!important;height:18px!important;padding:0!important;background:none!important;stroke-width:1.7!important;color:var(--boss-text-muted)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity { background:var(--boss-surface-subtle)!important;border:1px solid var(--boss-border-default)!important;border-radius:12px!important;box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity .boss-console-avatar { background:var(--boss-action-selected)!important;color:var(--boss-action-primary)!important;border:0!important;border-radius:10px!important;font-weight:600!important;box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity strong { color:var(--boss-text-primary)!important;font-size:14px!important;font-weight:600!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity em { color:var(--boss-text-muted)!important;font-size:12px!important;font-style:normal!important;margin-top:2px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity button { width:30px!important;height:32px!important;padding:6px!important;border:0!important;background:transparent!important;color:var(--boss-text-muted)!important;box-shadow:none!important;border-radius:8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity button:hover { background:var(--boss-action-selected)!important;color:var(--boss-action-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity button svg,body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-account-password svg { width:16px!important;height:16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-account-password { font-size:12px!important;box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-title-link.page-title { color:var(--boss-text-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-scope { color:var(--boss-text-secondary)!important;gap:4px!important;font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-scope :is(svg,span,strong) { color:var(--boss-text-secondary)!important;font-weight:500!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search kbd { background:#fff!important;color:var(--boss-text-muted)!important;border:1px solid var(--boss-border-default)!important;border-radius:4px!important;box-shadow:0 1px 1px #18243305!important;font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-quick { background:var(--boss-action-primary)!important;border-color:var(--boss-action-primary)!important;color:#fff!important;box-shadow:0 2px 3px #4263eb16!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-page-heading { grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"title status" "description description"!important;gap:8px 16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-page-title { margin:0!important;font-size:24px!important;line-height:32px!important;font-weight:700!important;letter-spacing:-.02em!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-console-page-title-link { padding:0!important;margin:0!important;min-height:32px!important;color:var(--boss-text-primary)!important;font-size:inherit!important;font-weight:inherit!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-console-page-title-link > span { color:inherit!important;font-size:inherit!important;font-weight:inherit!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-console-page-title-link svg { width:16px!important;height:16px!important;color:#94a0b3!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-status-line { grid-area:status!important;min-height:0!important;padding:0!important;align-self:center!important;background:transparent!important;border:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-page-stat { padding:6px 10px!important;border:1px solid var(--boss-border-default)!important;border-radius:8px!important;background:#fff!important;font-size:12px!important;font-weight:500!important;color:var(--boss-text-secondary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-page-description { color:var(--boss-text-muted)!important;font-size:14px!important;line-height:22px!important;font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-data-row,.boss-home-stream-row,.boss-product-catalog-row,.boss-people-table-row,.boss-ops-conversion-row) :is(em,small) { font-style:normal!important;font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-console-panel,.boss-saas-panel,.boss-v153-panel,.boss-v170-ledger-board,.boss-v169-people-table,.boss-product-catalog-table-wrap) { border-color:var(--boss-border-default)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--boss-elevation)!important;overflow:hidden!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-panel-head,.boss-console-section-head,.boss-v153-panel > header) { padding:16px 20px!important;border-bottom:1px solid var(--boss-border-default)!important;background:#fff!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-action,.btn) { border-radius:8px!important;font-weight:500!important;transition:background 150ms,border-color 150ms!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-primary-action,.btn-primary,button.primary) { background:var(--boss-action-primary)!important;border-color:var(--boss-action-primary)!important;color:#fff!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-primary-action,.btn-primary,button.primary):hover { background:var(--boss-action-hover)!important;border-color:var(--boss-action-hover)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-action svg { width:16px!important;height:16px!important;flex:0 0 16px!important;stroke-width:1.8!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot table { color:var(--boss-text-primary)!important;font-size:14px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot table thead th { background:var(--boss-surface-subtle)!important;color:var(--boss-text-muted)!important;font-size:12px!important;font-weight:500!important;letter-spacing:0!important;line-height:18px!important;padding:12px 16px!important;border-bottom:1px solid var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot table tbody td { padding:16px!important;border-bottom:1px solid var(--boss-border-default)!important;font-weight:400!important;vertical-align:middle!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot table tbody tr:hover { background:#f8faff!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot table :is(td,th) { font-variant-numeric:tabular-nums!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-home-stream-head,.boss-home-stream-row) { grid-template-columns:112px minmax(110px,1fr) minmax(130px,1.4fr) 88px 80px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-home-stream-row > button { width:80px!important;padding:8px!important;white-space:nowrap!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-metric-heading { display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-metric-icon.avatar { display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 32px!important;width:32px!important;height:32px!important;border-radius:8px!important;background:var(--boss-action-selected)!important;color:var(--boss-action-primary)!important;border:0!important;box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-metric-icon > svg { width:18px!important;height:18px!important;stroke-width:1.7!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-metric-item.profit .boss-metric-icon { background:var(--boss-state-success-bg)!important;color:var(--boss-state-success-fg)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-person { display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-avatar.avatar { display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;font-size:14px!important;font-weight:600!important;border-radius:10px!important;background:var(--boss-action-selected)!important;color:var(--boss-action-primary)!important;box-shadow:none!important;border:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-person-info { min-width:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group > summary:hover { background:#f8faff!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group:last-child { border-bottom:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group[open] > summary { background:var(--boss-action-selected)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-summary-action b { font-variant-numeric:tabular-nums!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-expand-label { font-size:12px!important;font-weight:500!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity-summary-grid .boss-saas-kpi-value { height:auto!important;overflow:visible!important;white-space:normal!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-catalog-summary-item > span > small { white-space:normal!important;overflow:visible!important;line-height:18px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(button,input,select,a,summary):focus-visible { outline:2px solid var(--boss-focus)!important;outline-offset:3px!important; }
/* Legacy commerce surfaces have route-local dark values. Map those exact
 * surfaces to the same light tokens without flattening semantic badges. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is([data-boss-current-page="purchases"],[data-boss-current-page="inventory"],[data-boss-current-page="sales"]) {
  --boss-commerce-panel:var(--boss-surface-default)!important;
  --boss-commerce-panel-soft:var(--boss-surface-subtle)!important;
  --v153-text:var(--boss-text-primary)!important;--v153-text-soft:var(--boss-text-secondary)!important;
  --v153-muted:var(--boss-text-muted)!important;--v153-border:var(--boss-border-default)!important;color-scheme:light;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(
  .boss-purchase-workbar,.boss-purchase-filters,.boss-purchase-result-head,.boss-purchase-card,
  .boss-inventory-scope,.boss-inventory-student-focus,.boss-inventory-student-focus-grid > article,
  .boss-inventory-filter-panel,.boss-inventory-panel,.boss-inventory-row,.boss-inventory-table,
  .boss-sales-scope,.boss-sales-filter-panel,.boss-sales-panel,.boss-sales-row,.boss-sales-table,
  .boss-inventory-empty,.boss-inventory-student-focus-empty,.boss-sales-empty,.boss-commerce-zero-state
) { background:var(--boss-surface-default)!important;color:var(--boss-text-primary)!important;border-color:var(--boss-border-default)!important;box-shadow:var(--boss-elevation)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(
  .boss-purchase-card > footer,.boss-console-pagination,.boss-inventory-head,.boss-sales-head,
  .boss-inventory-more summary,.boss-inventory-row > .boss-inventory-actions,.boss-sales-row > .boss-sales-actions,
  .boss-inventory-student-focus-grid > article > div span
) { background:var(--boss-surface-subtle)!important;color:var(--boss-text-secondary)!important;border-color:var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(
  .boss-purchase-workbar form,.boss-inventory-search > label,.boss-sales-search > label,
  .boss-partner-list-tools label,.boss-registration-search > label:first-child
) { background:var(--boss-surface-default)!important;color:var(--boss-text-muted)!important;border-color:var(--boss-border-input)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(
  .boss-purchase-workbar form,.boss-inventory-search > label,.boss-sales-search > label,
  .boss-partner-list-tools label,.boss-registration-search > label:first-child
) input { border:0!important;box-shadow:none!important;background:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-purchase-kpis,.boss-inventory-kpis,.boss-sales-kpis) :is(span,em) { color:var(--boss-text-muted)!important;font-weight:400!important;font-style:normal!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-purchase-workbar,.boss-purchase-filters,.boss-purchase-result-head,.boss-purchase-card,.boss-inventory-filter-panel,.boss-inventory-panel,.boss-sales-filter-panel,.boss-sales-panel,.boss-console-pagination) :is(p,em,small,label > span) { color:var(--boss-text-secondary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(
  .boss-purchase-workbar button,.boss-purchase-card > footer button,.boss-inventory-search > button,.boss-sales-search > button,
  .boss-inventory-filter-head button,.boss-sales-filter-head button,.boss-inventory-actions button,.boss-sales-actions button,
  .boss-inventory-student-focus button,.boss-console-pagination button
) { background:var(--boss-surface-default)!important;color:var(--boss-text-secondary)!important;border-color:var(--boss-border-input)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-purchase-workbar form button,.boss-inventory-search > button,.boss-sales-search > button,.boss-inventory-student-focus button.primary) { background:var(--boss-action-primary)!important;color:#fff!important;border-color:var(--boss-action-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-purchase-filters,.boss-inventory-filter-groups,.boss-sales-filter-groups) .boss-console-filter-segment button { background:var(--boss-surface-subtle)!important;color:var(--boss-text-secondary)!important;border-color:var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-purchase-filters,.boss-inventory-filter-groups,.boss-sales-filter-groups) .boss-console-filter-segment button.active { background:var(--boss-action-selected)!important;color:var(--boss-action-primary)!important;border-color:var(--boss-action-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-purchase-card > footer button,.boss-inventory-actions button).is-quality { background:var(--boss-state-warning-bg)!important;color:var(--boss-state-warning-fg)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-inventory-actions button.is-task { background:var(--boss-action-selected)!important;color:var(--boss-action-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-commerce-advanced > summary { color:var(--boss-text-secondary)!important;font-weight:500!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-commerce-advanced > summary::after { color:var(--boss-action-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-purchase-workbar,.boss-purchase-filters,.boss-purchase-list) { margin-top:16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-partner-workbench-page {
  --w3-ink:var(--boss-text-primary)!important;--w3-muted:var(--boss-text-muted)!important;
  --w3-line:var(--boss-border-default)!important;--w3-soft:var(--boss-surface-subtle)!important;--w3-paper:var(--boss-surface-default)!important;
  --w3-brand:var(--boss-action-primary)!important;--w3-brand-strong:var(--boss-action-pressed)!important;--w3-brand-soft:var(--boss-action-selected)!important;
  --w3-amber:var(--boss-state-warning-fg)!important;--w3-amber-soft:var(--boss-state-warning-bg)!important;
  --w3-danger:var(--boss-state-danger-fg)!important;--w3-danger-soft:var(--boss-state-danger-bg)!important;color-scheme:light;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(
  .boss-partner-workbench-strip,.boss-partner-workbench-rail,.boss-partner-workbench-main,
  .boss-partner-workbench-person-row,.boss-partner-workbench-metrics > :is(article,button),
  .boss-partner-workbench-operating > article,.boss-partner-workbench-evidence article,.boss-partner-workbench-governance > div
) { background:var(--boss-surface-default)!important;color:var(--boss-text-primary)!important;border-color:var(--boss-border-default)!important;box-shadow:var(--boss-elevation)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(
  .boss-partner-workbench-rail .boss-partner-list-tools :is(input,select,button),.boss-partner-workbench-rail > footer button,
  .boss-partner-workbench-list-empty button,.boss-partner-workbench-governance > summary,.boss-partner-workbench-governance button,
  .boss-partner-workbench-mobile-switch,.boss-partner-workbench-mobile-close
) { background:var(--boss-surface-default)!important;color:var(--boss-text-secondary)!important;border-color:var(--boss-border-input)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-partner-workbench-groups,.boss-partner-workbench-attention,.boss-partner-workbench-decision.neutral) { background:var(--boss-surface-subtle)!important;color:var(--boss-text-secondary)!important;border-color:var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-partner-workbench-groups button,.boss-partner-workbench-subtabs button) { background:transparent!important;color:var(--boss-text-secondary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-partner-workbench-person-row.active,.boss-partner-workbench-groups button.active,.boss-partner-workbench-subtabs button.active) { background:var(--boss-action-selected)!important;color:var(--boss-action-primary)!important;border-color:var(--boss-action-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-partner-workbench-list-avatar,.boss-partner-workbench-avatar) { background:var(--boss-action-selected)!important;color:var(--boss-action-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-partner-workbench-decision,.boss-partner-workbench-evidence article.is-pending) { background:var(--boss-state-warning-bg)!important;border-color:var(--boss-state-warning-fg)!important;color:var(--boss-state-warning-fg)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-partner-workbench-decision.danger { background:var(--boss-state-danger-bg)!important;border-color:var(--boss-state-danger-fg)!important;color:var(--boss-state-danger-fg)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-partner-workbench-decision.clear,.boss-partner-workbench-evidence article.is-clear,.boss-partner-workbench-metrics > .profit) { background:var(--boss-state-success-bg)!important;border-color:var(--boss-state-success-fg)!important;color:var(--boss-state-success-fg)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-partner-workbench-page .boss-partner-workbench-decision.neutral { background:var(--boss-surface-subtle)!important;color:var(--boss-text-secondary)!important;border-color:var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-financial-contract-freeze { background:var(--boss-state-warning-bg)!important;border-color:var(--boss-border-default)!important;color:var(--boss-text-secondary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-inventory-row,.boss-sales-row) > [data-label="学员 / 平台"] > strong { min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important; }

/* V238 student profile drawer. The drawer is a direct child of #bossConsole,
 * not #bossPageRoot. Own the legacy V153/V169 surface here with shared tokens.
 * Flex accounts for the optional deep-link notice; only the pane scrolls. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer {
  --v153-bg:var(--boss-surface-page);--v153-bg-soft:var(--boss-surface-default);
  --v153-surface:var(--boss-surface-default);--v153-surface-2:var(--boss-surface-subtle);--v153-surface-3:var(--boss-surface-subtle);
  --v153-text:var(--boss-text-primary);--v153-text-soft:var(--boss-text-secondary);--v153-muted:var(--boss-text-muted);
  --v153-border:var(--boss-border-default);--v153-border-strong:var(--boss-border-input);
  --v153-cyan:var(--boss-action-primary);--v153-blue:var(--boss-action-primary);
  --v153-success:var(--boss-state-success-fg);--v153-warning:var(--boss-state-warning-fg);--v153-danger:var(--boss-state-danger-fg);
  width:min(960px,calc(100vw - 48px));max-width:100vw;height:100dvh;
  flex-direction:column;overflow:hidden;border:0;border-left:1px solid var(--boss-border-default);border-radius:0;
  color:var(--boss-text-primary);background:var(--boss-surface-default);color-scheme:light;
  box-shadow:-12px 0 40px #18243314;font-size:14px;line-height:22px;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer:not([hidden]) { display:flex; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer[hidden] { display:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossDrawerBackdrop { background:#18243366;backdrop-filter:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > header {
  position:relative;top:auto;flex:0 0 auto;display:grid;grid-template-columns:44px 48px minmax(0,1fr);
  gap:12px;min-width:0;min-height:96px;padding:16px 24px;border-bottom:1px solid var(--boss-border-default);
  background:var(--boss-surface-default);backdrop-filter:none;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-profile-header { grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-identity { grid-template-columns:48px minmax(0,1fr);align-items:start;gap:12px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-identity > div { min-width:0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > header .boss-console-avatar {
  width:48px;height:48px;flex:0 0 48px;border:0;border-radius:12px;background:var(--boss-action-selected);
  color:var(--boss-action-primary);box-shadow:none;font-size:18px;font-weight:600;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > header h2,body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-title h2 {
  display:block;max-width:100%;margin:0;overflow:visible;color:var(--boss-text-primary);
  font-size:20px;line-height:28px;font-weight:650;letter-spacing:0;white-space:normal;
  overflow-wrap:anywhere;word-break:normal;-webkit-line-clamp:unset;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-title { align-items:center;gap:6px 8px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-title h2 { flex:0 1 auto; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > header p { color:var(--boss-text-secondary);font-size:12px;line-height:18px;font-weight:400;overflow-wrap:anywhere; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-primary-meta { gap:4px 12px;margin:8px 0 0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-primary-meta > span {
  min-height:18px;border:0;border-radius:0;padding:0;background:transparent;
  color:var(--boss-text-secondary);font-size:12px;line-height:18px;font-weight:400;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer p.boss-v169-profile-secondary-meta { display:block;color:var(--boss-text-muted);font-size:12px;line-height:18px;margin:6px 0 0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-tier-badge,.boss-student-profile-state) {
  min-height:24px;max-width:100%;padding:3px 8px;border:1px solid var(--boss-border-default);border-radius:6px;
  background:var(--boss-surface-subtle);color:var(--boss-text-secondary);font-size:12px;line-height:18px;font-weight:500;white-space:normal;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-tier-badge.is-free { color:var(--boss-state-pending-fg);background:var(--boss-state-pending-bg);border-color:var(--boss-state-pending-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-tier-badge.is-paid { color:var(--boss-action-primary);background:var(--boss-action-selected);border-color:var(--boss-action-selected); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-tier-badge.is-restricted { color:var(--boss-text-secondary);background:var(--boss-surface-subtle);border-color:var(--boss-border-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-header-actions { display:flex;flex-wrap:wrap;gap:8px;max-width:250px;justify-content:flex-end; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(button,input,select,textarea) { font:inherit;color:var(--boss-text-primary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer button {
  min-height:40px;border:1px solid var(--boss-border-input);border-radius:8px;padding:8px 12px;
  background:var(--boss-surface-default);color:var(--boss-text-secondary);box-shadow:none;
  font-size:13px;line-height:20px;font-weight:500;letter-spacing:0;white-space:normal;
  transition:background 150ms,border-color 150ms;color-scheme:light;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer button:hover { background:var(--boss-surface-subtle);border-color:var(--boss-border-input);color:var(--boss-text-primary);box-shadow:none;transform:none;filter:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer button:active { transform:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer button:disabled { color:var(--boss-text-muted);background:var(--boss-disabled-bg);cursor:not-allowed; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(button,summary,input,select,textarea):focus-visible { outline:2px solid var(--boss-focus)!important;outline-offset:2px!important;box-shadow:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(button.primary,button.is-primary,.boss-student-drawer-state > button) { background:var(--boss-action-primary);border-color:var(--boss-action-primary);color:#fff;box-shadow:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(button.primary,button.is-primary,.boss-student-drawer-state > button):hover { background:var(--boss-action-hover);border-color:var(--boss-action-hover);color:#fff; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-header-actions button { width:auto;min-width:44px;min-height:44px;padding:10px 12px;border-radius:8px;font-weight:500; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-header-actions button:first-child { min-width:44px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer [data-action="boss-close-drawer"] { width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:11px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer button svg { width:16px;height:16px;flex:0 0 16px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-deep-link-intent {
  flex:0 0 auto;margin:12px 24px 0;padding:10px 12px;gap:10px;border:1px solid var(--boss-border-default);
  border-radius:8px;background:var(--boss-surface-subtle);color:var(--boss-text-secondary);box-shadow:none;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-deep-link-intent strong { color:var(--boss-text-secondary);font-size:12px;line-height:18px;font-weight:500; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-deep-link-intent em { color:var(--boss-text-muted);font-size:12px;line-height:18px;font-style:normal; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-tabs {
  position:relative;top:auto;z-index:1;flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  min-height:52px;margin:0;padding:0 24px;gap:8px;border-bottom:1px solid var(--boss-border-default);background:var(--boss-surface-default);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-tabs button {
  min-width:0;min-height:52px;height:auto;margin:0;padding:14px 8px;border:0;border-bottom:2px solid transparent;
  border-radius:0;background:transparent;color:var(--boss-text-secondary);font-size:14px;line-height:22px;font-weight:500;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-tabs button:hover { color:var(--boss-action-primary);background:var(--boss-surface-subtle); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-tabs button.active { color:var(--boss-action-primary);border-bottom-color:var(--boss-action-primary);background:transparent;font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-pane {
  flex:1 1 auto;min-height:0;min-width:0;margin:0;padding:24px;overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:var(--boss-border-input) transparent;background:var(--boss-surface-page);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > section { padding:20px 0;border-color:var(--boss-border-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > section:first-child { margin-top:0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-workbook-pane > section > h3,.boss-student-profile-more h3,.boss-student-ledger-head h3) { margin:0 0 12px;color:var(--boss-text-primary);font-size:16px;line-height:24px;font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-ledger-head h3 { margin:0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-console-muted,.boss-student-task-truncated,.boss-delivery-readonly,.boss-delivery-review-wait) { color:var(--boss-text-muted);font-size:13px;line-height:20px;font-weight:400; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-kpis,.boss-student-workbook-metrics.is-primary,.boss-student-service-summary) { grid-template-columns:repeat(4,minmax(0,1fr));gap:12px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > .boss-student-profile-kpis { padding:0 0 24px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(button.boss-student-profile-kpi,.boss-student-workbook-metrics.is-primary > div,.boss-student-service-summary > div) {
  min-height:116px;padding:16px;border:1px solid var(--boss-border-default);border-radius:12px;background:var(--boss-surface-default);box-shadow:none;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer button.boss-student-profile-kpi:is(.is-profit,.is-secondary) { background:var(--boss-surface-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer button.boss-student-profile-kpi:hover { background:var(--boss-surface-default);border-color:var(--boss-action-primary);box-shadow:none;transform:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-kpis strong,.boss-student-workbook-metrics.is-primary strong,.boss-student-service-summary strong) {
  color:var(--boss-text-primary);font-size:24px;line-height:32px;font-weight:650;white-space:normal;overflow-wrap:anywhere;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-kpis span,.boss-student-profile-kpis em,.boss-student-workbook-metrics span,.boss-student-workbook-metrics em,.boss-student-service-summary span) { color:var(--boss-text-secondary);font-size:12px;line-height:18px;font-weight:400;font-style:normal; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer button.boss-student-profile-kpi > span svg { color:var(--boss-text-muted); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > .boss-v169-profile-attention {
  padding:14px 16px;margin:0 0 20px;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);
  border:1px solid var(--boss-border-default);border-radius:10px;background:var(--boss-surface-default);box-shadow:none;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-attention.has-alerts { background:var(--boss-state-warning-bg);border-color:var(--boss-state-warning-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-attention.is-clear { background:var(--boss-state-success-bg);border-color:var(--boss-state-success-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-attention strong { color:var(--boss-text-primary);font-size:14px;line-height:22px;font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-attention em { color:var(--boss-text-secondary);font-size:12px;line-height:18px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-attention > div:last-child > :is(span,button) { min-height:32px;padding:6px 9px;border-color:var(--boss-border-input);background:var(--boss-surface-default);color:var(--boss-text-secondary);font-size:12px;line-height:18px;font-weight:500; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-attention > div:last-child > button:hover { transform:none;filter:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > .boss-student-profile-command {
  margin:0 0 20px;padding:20px;gap:20px;grid-template-columns:minmax(0,1fr) 244px;
  border:1px solid var(--boss-border-default);border-radius:12px;background:var(--boss-surface-default);box-shadow:none;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-command-copy > span { color:var(--boss-text-muted);font-size:12px;line-height:18px;font-weight:500;letter-spacing:0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-command-copy > strong { color:var(--boss-text-primary);font-size:20px;line-height:28px;font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-command-copy > p { color:var(--boss-text-secondary);font-size:14px;line-height:22px;font-weight:400; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-command-facts > span,.boss-student-profile-command-copy li,.boss-student-profile-command-counts button) { background:var(--boss-surface-subtle);border-color:var(--boss-border-default);color:var(--boss-text-secondary);box-shadow:none;font-weight:400; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-command-facts em { color:var(--boss-text-muted);font-size:12px;line-height:18px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-command-facts b { color:var(--boss-text-primary);font-size:13px;line-height:20px;font-weight:500;white-space:normal;overflow-wrap:anywhere; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-quick-actions button { min-height:44px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-quick-actions [data-boss-student-tab="ledger"] { grid-column:1 / -1;min-height:44px;font-size:14px;line-height:22px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > .boss-student-profile-context { padding:0;border:0;gap:16px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-context > article,.boss-student-profile-more,.boss-student-ledger-breakdown,.boss-student-identity-facts > div,.boss-student-diagnosis,.boss-student-membership-summary,.boss-student-operation-summary,.boss-student-membership-card,.boss-student-followup-task-row,.boss-student-commerce-record) {
  border:1px solid var(--boss-border-default);border-radius:12px;background:var(--boss-surface-default);color:var(--boss-text-primary);box-shadow:none;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-context > article { padding:20px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-context header span { color:var(--boss-text-primary);font-size:14px;line-height:22px;font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-context header em,.boss-student-profile-context dt,.boss-student-profile-context > article > p) { color:var(--boss-text-muted);font-size:12px;line-height:18px;font-weight:400; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-context dd { color:var(--boss-text-secondary);font-size:13px;line-height:20px;font-weight:400; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-context dl > div,.boss-student-profile-context > article > p,.boss-student-profile-more-body,.boss-student-profile-more-body > section) { border-color:var(--boss-border-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-more > summary,.boss-student-ledger-breakdown > summary) { min-height:56px;padding:12px 16px;color:var(--boss-text-primary);font-size:14px;line-height:22px;font-weight:500; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-more > summary em,.boss-student-ledger-breakdown > summary em) { color:var(--boss-text-muted);font-size:12px;line-height:18px;font-weight:400; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-identity-facts strong,.boss-student-membership-summary strong,.boss-student-operation-summary strong,.boss-student-diagnosis strong,.boss-student-ledger-breakdown article strong) { color:var(--boss-text-primary);font-weight:600;overflow-wrap:anywhere; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-identity-facts span,.boss-student-identity-facts em,.boss-student-membership-summary span,.boss-student-membership-summary em,.boss-student-operation-summary span,.boss-student-operation-summary em,.boss-student-operation-summary p,.boss-student-diagnosis p,.boss-student-diagnosis span,.boss-student-ledger-breakdown article span,.boss-student-ledger-breakdown article em) { color:var(--boss-text-muted);font-size:12px;line-height:18px;font-weight:400; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-growth-main > strong,.boss-v169-milestones > span,.boss-v169-location-grid > span,.boss-student-sale-equation span) { border-color:var(--boss-border-default);background:var(--boss-surface-subtle);color:var(--boss-text-primary);box-shadow:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-growth-main > strong { color:var(--boss-action-primary);background:var(--boss-action-selected);border:0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-growth-main b,.boss-v169-milestones > span b,.boss-v169-location-grid strong) { color:var(--boss-text-primary);font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-growth-main em,.boss-v169-milestones > span em,.boss-v169-milestones > span svg,.boss-v169-location-grid em) { color:var(--boss-text-muted);font-size:12px;line-height:18px;white-space:normal;overflow-wrap:anywhere; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-milestones > span.done { background:var(--boss-state-success-bg);border-color:var(--boss-state-success-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-milestones > span.done :is(svg,em) { color:var(--boss-state-success-fg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-growth-card,.boss-student-commerce-trend) progress { background:var(--boss-border-default);accent-color:var(--boss-action-primary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-growth-card,.boss-student-commerce-trend) progress::-webkit-progress-bar { background:var(--boss-border-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-growth-card,.boss-student-commerce-trend) progress::-webkit-progress-value { background:var(--boss-action-primary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-ledger-range { padding:16px!important;border:1px solid var(--boss-border-default);border-radius:12px;background:var(--boss-surface-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-ledger-range nav { background:var(--boss-surface-subtle);border-color:var(--boss-border-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-ledger-range nav button.active { background:var(--boss-action-selected);color:var(--boss-action-primary);border-color:var(--boss-action-primary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(input,select,textarea) { min-height:40px;padding:8px 12px;border:1px solid var(--boss-border-input);border-radius:8px;background:var(--boss-surface-default);color:var(--boss-text-primary);box-shadow:none;line-height:22px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-ledger-definition,.boss-v169-truth-empty,.boss-student-service-empty) { padding:14px;border:1px solid var(--boss-border-default);border-radius:8px;background:var(--boss-surface-subtle);color:var(--boss-text-secondary);font-size:13px;line-height:20px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-ledger-definition { border-left:3px solid var(--boss-border-input); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-ledger-breakdown article { background:var(--boss-surface-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-console-drawer-activity,.boss-console-drawer-task,.boss-student-service-row,.boss-student-ledger-row,.boss-student-commerce-record > header,.boss-student-commerce-record > footer) { border-color:var(--boss-border-default);background:transparent; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-console-drawer-activity strong,.boss-console-drawer-task strong,.boss-student-service-row strong,.boss-student-ledger-row b,.boss-student-service-empty strong,.boss-student-followup-task-row strong,.boss-student-service-section-head strong) { color:var(--boss-text-primary);font-size:14px;line-height:22px;font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-console-drawer-activity span,.boss-console-drawer-activity em,.boss-console-drawer-activity p,.boss-console-drawer-task p,.boss-student-service-row span,.boss-student-service-row em,.boss-student-ledger-row em,.boss-student-service-empty p,.boss-student-followup-task-row p,.boss-student-followup-task-row > div > span,.boss-student-followup-task-facts span,.boss-student-service-section-head span) { color:var(--boss-text-muted);font-size:12px;line-height:18px;font-weight:400; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-service-section-head { margin:0;padding:16px 0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-service-empty > svg { color:var(--boss-text-muted);background:var(--boss-surface-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-action-receipt { border-color:var(--boss-state-success-bg);background:var(--boss-state-success-bg);box-shadow:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-action-receipt strong { color:var(--boss-text-primary);font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-action-receipt p { color:var(--boss-text-secondary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-drawer-state { flex:1 1 auto;min-height:0;padding:32px;color:var(--boss-text-secondary);background:var(--boss-surface-page); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-drawer-state > strong { color:var(--boss-text-primary);font-size:16px;line-height:24px;font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-drawer-state > :is(i,svg) { width:32px;height:32px;color:var(--boss-action-primary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-drawer-state.is-error > :is(i,svg) { color:var(--boss-state-danger-fg); }
/* Semantic status remains distinct from neutral chrome. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(strong.success,em.success) { color:var(--boss-state-success-fg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(strong.danger,em.danger) { color:var(--boss-state-danger-fg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(strong.pending,em.pending) { color:var(--boss-state-warning-fg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer strong.neutral { color:var(--boss-text-primary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-profile-attention > div:last-child > .warning,.boss-v169-location-grid > span.pending,.boss-student-ledger-pending,.boss-student-profit-pending,.boss-student-sale-equation span.is-pending) { color:var(--boss-state-warning-fg);border-color:var(--boss-state-warning-bg);background:var(--boss-state-warning-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-ledger-pending strong,.boss-student-profit-pending strong,.boss-student-ledger-pending p,.boss-student-profit-pending span,.boss-v169-location-grid > span.pending strong) { color:var(--boss-state-warning-fg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-attention > div:last-child > .danger { color:var(--boss-state-danger-fg);border-color:var(--boss-state-danger-bg);background:var(--boss-state-danger-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-v169-profile-attention > div:last-child > .success,.boss-student-service-status.completed) { color:var(--boss-state-success-fg);border-color:var(--boss-state-success-bg);background:var(--boss-state-success-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-service-status.pending_review { color:var(--boss-state-warning-fg);background:var(--boss-state-warning-bg);border-color:var(--boss-state-warning-bg); }

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-service-status.blocked,.boss-student-service-summary > div.is-blocked) { color:var(--boss-state-danger-fg);background:var(--boss-state-danger-bg);border-color:var(--boss-state-danger-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-service-summary > div.is-blocked strong { color:var(--boss-state-danger-fg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-private-memory-summary > div,.boss-student-membership-facts > div,.boss-console-drawer-metrics.compact > div) { border-color:var(--boss-border-default);background:var(--boss-surface-subtle);color:var(--boss-text-primary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-private-memory-summary span,.boss-student-membership-facts span,.boss-console-drawer-metrics.compact span) { color:var(--boss-text-muted);font-size:12px;line-height:18px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-private-memory-summary p { color:var(--boss-text-secondary);font-size:13px;line-height:20px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-membership-facts strong,.boss-console-drawer-metrics.compact strong) { color:var(--boss-text-primary);font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-task-truncated { border-color:var(--boss-border-default);background:var(--boss-surface-subtle); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-followup-task-row.pending_review { border-color:var(--boss-state-warning-bg);background:var(--boss-state-warning-bg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-service-actions button,.boss-student-membership-actions button,.boss-student-followup-task-actions button,.boss-student-ledger-custom button) { min-height:40px;border-radius:8px;background:var(--boss-surface-default);border-color:var(--boss-border-input);color:var(--boss-text-secondary);box-shadow:none;font-weight:500; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-service-actions button.primary,.boss-student-membership-actions button.primary,.boss-student-followup-task-actions button.primary) { background:var(--boss-action-primary);border-color:var(--boss-action-primary);color:#fff;box-shadow:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-service-actions button.primary,.boss-student-membership-actions button.primary,.boss-student-followup-task-actions button.primary):hover { background:var(--boss-action-hover);border-color:var(--boss-action-hover);color:#fff; }
@media (max-width:1200px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-kpis,.boss-student-workbook-metrics.is-primary) { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer { width:100vw;height:100dvh;border-left:0; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > header { padding:16px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-profile-header { grid-template-columns:minmax(0,1fr);gap:12px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-identity { grid-template-columns:40px minmax(0,1fr);gap:10px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-identity > .boss-console-avatar { width:40px;height:40px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-title h2 { font-size:18px;line-height:26px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-header-actions { width:100%;max-width:none;justify-content:flex-end; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-header-actions button span { display:inline; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-primary-meta > span:nth-child(3) { display:inline-flex; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-deep-link-intent { margin:8px 16px 0; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-tabs { padding:0 12px;gap:0; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-tabs button { padding:12px 4px;font-size:13px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-pane { padding:16px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > .boss-v169-profile-attention { grid-template-columns:minmax(0,1fr);gap:12px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-v169-profile-attention > div:last-child { justify-content:flex-start; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > .boss-student-profile-command { grid-template-columns:minmax(0,1fr);padding:16px;gap:16px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-workbook-pane > .boss-student-profile-context { grid-template-columns:minmax(0,1fr); }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-service-summary,.boss-student-ledger-breakdown > div) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer :is(.boss-student-profile-more > summary,.boss-student-ledger-breakdown > summary) { grid-template-columns:minmax(0,1fr);gap:4px; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer .boss-student-profile-kpis strong { font-size:22px;line-height:30px; }
}
@media (max-height:650px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer:not([hidden]) { overflow-y:auto; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossStudentDrawer > .boss-student-workbook-pane { flex:0 0 auto;overflow-y:visible; }
}

@media (min-width:1024px) and (max-width:1279px) { body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-nav-caption { display:none!important; } }
@media (max-width:767px) { body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-page-heading { grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"title" "status" "description"!important; } body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-status-line { justify-self:start!important; } }
@media (prefers-reduced-motion:reduce) { body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(button,.nav-link) { transition:none!important; } }

/* SOURCE frontend/boss-runtime/workspace-ui.css SHA256 97bc5f0d191359656950ca82aba379a2cc34d2fea722b1012b0968171d03cc07 */
/* V234: Figma constitution v1.0 shared workspace components.
 * No data, permissions, or business-state rules belong in this stylesheet.
 * References: Tabler vertical navigation; Ant Design Pro workplace/table-list. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] {
  grid-template-columns:var(--boss-size-nav-width,224px) minmax(0,1fr)!important;
  color:var(--boss-text-primary,#20314a);
  background:var(--boss-surface-page,#f4f6f9);
  font-size:var(--boss-type-body-size,14px); line-height:var(--boss-type-body-line,22px);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-sidebar.navbar-vertical {
  padding:24px 16px 16px!important; gap:16px!important; background:var(--boss-surface-sidebar)!important; border-right:1px solid var(--boss-border-default)!important; box-shadow:none!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand.navbar-brand { padding:0 4px 20px!important; gap:10px!important; border-bottom:1px solid var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand.navbar-brand > .boss-brand-mark { width:40px!important; height:40px!important; flex-basis:40px!important; border-radius:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand strong { font-size:19px!important; letter-spacing:.035em!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand em { font-size:12px!important; letter-spacing:.035em!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav.navbar-collapse { justify-content:flex-start!important; gap:24px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary { gap:6px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link {
  display:flex!important; flex-direction:row!important; align-items:center!important; justify-content:flex-start!important;
  min-height:44px!important; height:auto!important; padding:10px 12px!important; gap:12px!important; color:var(--boss-nav-text)!important; background:transparent!important;
  border:1px solid transparent!important; border-radius:9px!important; text-align:left!important; font-size:14px!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link > svg {
  width:20px!important; height:20px!important; padding:0!important; flex:0 0 20px!important; background:none!important; border:0!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link > span { flex:1; white-space:nowrap; font-size:14px!important; text-align:left!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link.active { background:var(--boss-nav-selected-bg)!important; color:var(--boss-action-primary)!important; border-color:transparent!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossConversionBadge { position:static!important; min-width:22px!important; padding:2px 5px!important; font-size:11px!important; margin-left:auto!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-trigger { margin-top:8px!important; border-top:1px solid var(--boss-border-default)!important; border-radius:0!important; padding:20px 12px 12px!important; color:var(--boss-text-secondary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity { margin-top:auto!important; padding:11px 9px!important; gap:8px!important; grid-template-columns:34px minmax(0,1fr) 26px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity .boss-console-avatar { width:34px!important; height:34px!important; font-size:16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-account-password { min-height:40px!important; background:transparent!important; border-color:var(--boss-border-default)!important; color:var(--boss-text-secondary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-topbar.navbar { min-height:var(--boss-size-topbar-height,64px)!important; height:auto!important; padding:11px 24px!important; gap:16px!important; align-items:center!important; background:var(--boss-surface-default,#fff)!important; border-bottom:1px solid var(--boss-border-default)!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-title { gap:10px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-title-link.page-title { font-size:16px!important; font-weight:600!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-scope { border:0!important; background:var(--boss-surface-subtle)!important; font-size:12px!important; line-height:18px!important; padding:5px 7px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions { min-width:0!important; flex:0 1 auto!important; margin-left:auto!important; gap:8px!important; align-items:center!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-sync-status { border:0!important; background:none!important; padding:4px!important; color:#67798e!important; font-size:12px!important; font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search-wrap { flex:0 1 var(--boss-size-search-default,280px)!important; width:var(--boss-size-search-default,280px)!important; min-width:var(--boss-size-search-min,240px)!important; max-width:var(--boss-size-search-max,320px)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search-wrap:not([hidden]) { display:block!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search { display:flex!important; align-items:center!important; gap:8px!important; width:100%!important; height:var(--boss-size-control-default,40px)!important; min-height:var(--boss-size-control-default,40px)!important; padding:0 12px!important; box-sizing:border-box!important; border-radius:var(--boss-radius-control,8px)!important; background:var(--boss-surface-subtle)!important; border:1px solid var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search input.form-control { flex:1 1 auto!important; width:0!important; min-width:0!important; height:100%!important; min-height:0!important; padding:0!important; margin:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; background:transparent!important; color:var(--boss-text-primary,#20314a)!important; font-size:var(--boss-type-body-size,14px)!important; line-height:var(--boss-type-body-line,22px)!important; font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search > svg { width:16px!important; height:16px!important; flex:0 0 16px!important; margin:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search kbd { flex:0 0 auto!important; margin:0!important; padding:0 4px!important; font-size:12px!important; line-height:18px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search:focus-within { border-color:var(--boss-focus,#2467a4)!important; outline:2px solid var(--boss-focus,#2467a4)!important; outline-offset:2px!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search input:focus-visible { outline:none!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-ai-top-entry { background:#fff!important; border-color:var(--boss-border-default)!important; color:var(--boss-text-secondary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot { min-width:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot > .boss-console-page { max-width:1680px!important; width:100%!important; margin:0 auto!important; padding:24px!important; box-sizing:border-box; }
/* V235: module navigation shares the page grid and remains one scrollable row. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot > .boss-module-navigation {
  display:flex!important; align-items:center!important; flex-wrap:nowrap!important; gap:var(--sl-space-4,4px)!important;
  width:calc(100% - var(--sl-space-24,24px) - var(--sl-space-24,24px))!important;
  max-width:calc(var(--boss-size-content-max,1680px) - var(--sl-space-24,24px) - var(--sl-space-24,24px))!important;
  min-width:0!important; margin:var(--sl-space-16,16px) auto 0!important; padding:0!important;
  overflow-x:auto!important; overscroll-behavior-x:contain; box-sizing:border-box!important;
  border:0!important; border-bottom:1px solid var(--boss-border-default)!important;
  border-radius:0!important; background:transparent!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-module-navigation-item {
  display:inline-flex!important; flex:0 0 auto!important; align-items:center!important; justify-content:center!important;
  min-height:var(--boss-size-control-default,40px)!important; margin:0!important; padding:var(--sl-space-8,8px) var(--sl-space-16,16px)!important;
  border:0!important; border-bottom:2px solid transparent!important; border-radius:0!important;
  background:transparent!important; color:var(--boss-text-secondary,#53647a)!important; box-shadow:none!important;
  font-size:var(--boss-type-label-size,14px)!important; line-height:var(--boss-type-label-line,22px)!important;
  font-weight:500!important; white-space:nowrap!important; box-sizing:border-box!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-module-navigation-item:hover {
  background:var(--boss-surface-subtle,#fafbfd)!important; color:var(--boss-action-primary,#315d83)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-module-navigation-item[aria-current="page"] {
  background:transparent!important; color:var(--boss-action-primary)!important; font-weight:600!important;
  border-color:var(--boss-action-primary)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-module-navigation-item[hidden] { display:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot > .boss-module-navigation + .boss-service-workspace-tabs {
  margin:var(--sl-space-16,16px) var(--sl-space-24,24px) 0!important;
  max-width:calc(100% - var(--sl-space-24,24px) - var(--sl-space-24,24px))!important; box-sizing:border-box!important;
}
@media (max-width:1023px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot > .boss-module-navigation {
    width:calc(100% - var(--sl-space-16,16px) - var(--sl-space-16,16px))!important; margin-top:var(--sl-space-16,16px)!important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot > .boss-module-navigation + .boss-service-workspace-tabs {
    margin-inline:var(--sl-space-16,16px)!important; max-width:calc(100% - var(--sl-space-16,16px) - var(--sl-space-16,16px))!important;
  }
}
@media (max-width:767px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-module-navigation-item {
    min-height:var(--boss-size-control-touch,48px)!important; padding-inline:12px!important;
  }
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-page-heading { gap:6px 16px!important; margin-bottom:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-page-title { font-size:var(--boss-type-page-size,24px)!important; line-height:var(--boss-type-page-line,32px)!important; letter-spacing:0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-page-description { font-size:var(--boss-type-body-size,14px)!important; line-height:var(--boss-type-body-line,22px)!important; margin:8px 0 0!important; color:var(--boss-text-muted,#5f7085)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-action { min-height:var(--boss-size-control-default,40px)!important; padding:8px 12px!important; font-size:var(--boss-type-body-size,14px)!important; line-height:var(--boss-type-body-line,22px)!important; border-radius:var(--boss-radius-control,8px)!important; box-sizing:border-box!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-action.is-primary { background:var(--boss-action-primary)!important; border-color:var(--boss-action-primary)!important; color:#fff!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-data-head { background:#f7f9fc!important; color:#63758b!important; font-size:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-data-row:hover { background:#f8fbfe!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-people-table-head,.boss-product-catalog-head) { min-height:44px!important; padding:12px 16px!important; font-size:12px!important; line-height:18px!important; box-sizing:border-box!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-table-row { min-height:72px!important; padding:16px!important; line-height:22px!important; box-sizing:border-box!important; }
/* Shared controls: one height, one border and one text baseline across modules. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions :is(.btn,.boss-console-quick),
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-filterbar,.boss-purchase-workbar,.boss-inventory-search,.boss-sales-search,.boss-partner-list-tools) button {
  display:inline-flex!important; align-items:center!important; justify-content:center!important; gap:8px!important;
  min-height:var(--boss-size-control-default,40px)!important; padding:8px 12px!important; box-sizing:border-box!important;
  border-radius:var(--boss-radius-control,8px)!important; font-size:var(--boss-type-body-size,14px)!important;
  line-height:var(--boss-type-body-line,22px)!important; font-weight:500!important; white-space:nowrap!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions .btn-icon { width:40px!important; height:40px!important; padding:0!important; flex:0 0 40px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-console-toolbar-actions,.boss-saas-filterbar,.boss-inventory-search,.boss-sales-search,.boss-partner-list-tools) button > svg { width:16px!important; height:16px!important; flex:0 0 16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-filterbar,.boss-purchase-workbar,.boss-inventory-filter-panel,.boss-sales-filter-panel) { border-radius:var(--boss-radius-card,12px)!important; padding:16px!important; gap:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-filterbar .boss-saas-filter-option[data-boss-interaction-state] {
  display:inline-grid!important; grid-template-columns:auto auto auto!important; gap:4px 8px!important; white-space:normal!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-filterbar .boss-saas-filter-option[data-boss-interaction-state] > small { grid-column:1/-1!important; font-size:12px!important; line-height:18px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form.boss-saas-filter-search { display:flex!important; align-items:center!important; flex-wrap:wrap!important; gap:8px!important; min-height:0!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form.boss-saas-filter-search > label { flex:1 1 280px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-management-tools-search, #bossPageRoot form.boss-saas-filter-search > label, #bossPageRoot .boss-inventory-search > label:has(> input), #bossPageRoot .boss-sales-search > label:has(> input), #bossPageRoot .boss-partner-list-tools > label) {
  display:flex!important; align-items:center!important; gap:8px!important; min-width:0!important;
  height:var(--boss-size-control-default,40px)!important; min-height:var(--boss-size-control-default,40px)!important;
  padding:0 12px!important; margin-block:0!important; box-sizing:border-box!important;
  border:1px solid var(--boss-border-input,#8292a6)!important; border-radius:var(--boss-radius-control,8px)!important;
  background:var(--boss-surface-default,#fff)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-management-tools-search, #bossPageRoot form.boss-saas-filter-search > label, #bossPageRoot .boss-inventory-search > label, #bossPageRoot .boss-sales-search > label, #bossPageRoot .boss-partner-list-tools > label) > input {
  flex:1 1 auto!important; width:0!important; min-width:0!important; height:100%!important; min-height:0!important;
  margin:0!important; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important;
  box-shadow:none!important; font-size:var(--boss-type-body-size,14px)!important; line-height:var(--boss-type-body-line,22px)!important;
  color:var(--boss-text-primary,#20314a)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-management-tools-search, #bossPageRoot form.boss-saas-filter-search > label, #bossPageRoot .boss-inventory-search > label, #bossPageRoot .boss-sales-search > label, #bossPageRoot .boss-partner-list-tools > label) > svg { width:16px!important; height:16px!important; flex:0 0 16px!important; color:var(--boss-text-muted,#5f7085)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-management-tools-search, #bossPageRoot form.boss-saas-filter-search > label, #bossPageRoot .boss-inventory-search > label, #bossPageRoot .boss-sales-search > label, #bossPageRoot .boss-partner-list-tools > label):focus-within { outline:2px solid var(--boss-focus,#2467a4)!important; outline-offset:2px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-management-tools-search, #bossPageRoot form.boss-saas-filter-search > label, #bossPageRoot .boss-inventory-search > label, #bossPageRoot .boss-sales-search > label, #bossPageRoot .boss-partner-list-tools > label) > input:focus-visible { outline:none!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(label.boss-saas-filter-search,.boss-task-search-field,.boss-quality-search-field) > span:has(> input) { display:flex!important; align-items:center!important; gap:8px!important; min-height:40px!important; padding:0!important; border:0!important; background:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(label.boss-saas-filter-search,.boss-task-search-field,.boss-quality-search-field) > span > input,
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-filterbar,.boss-purchase-workbar,.boss-inventory-search,.boss-sales-search,.boss-partner-list-tools) select {
  min-width:0!important; height:40px!important; min-height:40px!important; padding:0 12px!important; box-sizing:border-box!important;
  border:1px solid var(--boss-border-input,#8292a6)!important; border-radius:8px!important; background:var(--boss-surface-default,#fff)!important;
  font-size:14px!important; line-height:22px!important; color:var(--boss-text-primary,#20314a)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] input::placeholder { color:var(--boss-text-muted,#5f7085)!important; opacity:1!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-empty,.boss-console-empty) { min-height:160px!important; padding:24px!important; box-sizing:border-box!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions .btn[hidden],
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-filterbar button[hidden] { display:none!important; }
/* V248: membership search reserves one grid cell for its icon and input. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-membership-search > span:last-child {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important; align-items:center!important; min-width:0!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-membership-search > span:last-child > :is(i[data-lucide],svg) {
  grid-area:1/1!important; position:static!important; align-self:center!important; justify-self:start!important; z-index:1;
  width:16px!important; height:16px!important; margin:0 0 0 12px!important; color:var(--boss-text-muted,#5f7085)!important; pointer-events:none;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-membership-search > span:last-child > input {
  grid-area:1/1!important; width:100%!important; min-width:0!important; padding:0 12px 0 40px!important; box-sizing:border-box!important;
}
/* The group search has sibling icon/input/button nodes; share an input cell without moving the text. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form[data-boss-group-search] {
  display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; align-items:center!important; gap:8px!important;
  min-width:0!important; padding:0!important; border:0!important; background:transparent!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form[data-boss-group-search] > svg {
  grid-area:1/1!important; align-self:center!important; justify-self:start!important; z-index:1;
  width:16px!important; height:16px!important; margin:0 0 0 12px!important; color:var(--boss-text-muted,#5f7085)!important; pointer-events:none;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form[data-boss-group-search] > input {
  grid-area:1/1!important; width:100%!important; min-width:0!important; height:40px!important; min-height:40px!important;
  margin:0!important; padding:0 12px 0 40px!important; box-sizing:border-box!important; border:1px solid var(--boss-border-input,#8292a6)!important;
  border-radius:8px!important; background:var(--boss-surface-default,#fff)!important; color:var(--boss-text-primary,#20314a)!important;
  font-size:14px!important; line-height:22px!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form[data-boss-group-search] > button {
  grid-area:1/2!important; display:inline-flex!important; align-items:center!important; justify-content:center!important;
  min-height:40px!important; padding:8px 12px!important; box-sizing:border-box!important; border-radius:8px!important;
  font-size:14px!important; line-height:22px!important; white-space:nowrap!important;
}
/* Groups: spend the vertical space on names and members, not duplicate create cards. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-page { --group-accent:var(--boss-action-primary); --group-soft:#edf3f9; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-heading { margin-bottom:20px!important; gap:20px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-heading h2 { font-size:var(--boss-type-page-size,24px)!important; line-height:var(--boss-type-page-line,32px)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-kicker { margin-bottom:6px!important; color:#63758b!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-heading p { margin-top:8px!important; font-size:14px!important; color:var(--boss-text-muted,#5f7085)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-summary { padding:18px 0!important; margin-bottom:24px!important; border-radius:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-summary > :is(div,button) { padding:0 22px!important; border:0!important; border-right:1px solid #e7edf3!important; border-radius:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-summary > :last-child { border-right:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-summary strong { font-size:var(--boss-type-metric-size,28px)!important; line-height:var(--boss-type-metric-line,36px)!important; margin-top:8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-grid { grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important; gap:16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-card { padding:18px 20px!important; border-radius:12px!important; border-top:3px solid var(--group-accent)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-card-top { margin-bottom:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-folder { width:36px!important; height:36px!important; border-radius:10px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-card-main { padding:0!important; border:0!important; border-radius:0!important; background:none!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-card-main h3 { font-size:18px!important; margin-bottom:6px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-card-main p { font-size:var(--boss-type-body-size,14px)!important; color:#63758b!important; white-space:normal!important; margin-bottom:18px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-card-bottom { padding-top:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-enter { font-size:var(--boss-type-body-size,14px)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-unassigned { margin-top:16px!important; padding:16px 20px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-footnote { align-items:flex-start!important; line-height:1.7!important; font-size:12px!important; color:#64758b!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-table th { background:#f6f8fb!important; padding:12px 16px!important; font-size:12px!important; color:#607189!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-table td { padding:14px 16px!important; font-size:14px!important; color:#42556e!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-person { padding:0!important; border:0!important; background:none!important; box-shadow:none!important; text-align:left!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-person strong { font-size:14px!important; color:var(--boss-text-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-person small { font-size:12px!important; color:#687a90!important; max-width:260px; overflow-wrap:anywhere; white-space:normal; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-group-detail { padding:8px 10px!important; color:var(--boss-action-primary)!important; border:1px solid #dbe5ef!important; background:#f5f9fd!important; font-size:var(--boss-type-body-size,14px)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-page .btn-primary { color:#fff!important; background:var(--boss-action-primary)!important; border-color:var(--boss-action-primary)!important; }
/* Catalog: compact filters and one direct primary action, secondary tools in a disclosure. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-catalog-summary { gap:0!important; padding:4px!important; border-radius:12px!important; background:#fff!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-catalog-summary-item { border:0!important; border-right:1px solid #edf0f5!important; border-radius:0!important; background:transparent!important; padding:14px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-catalog-summary-item:last-child { border-right:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-toolbar { padding:16px!important; gap:12px 16px!important; border-radius:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-saas-filter-tabs { padding:3px!important; background:#f3f6fa!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-view-context { padding:12px 14px!important; gap:12px!important; background:#fff!important; border-color:var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-view-actions { gap:8px!important; flex-wrap:wrap!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-table { overflow-x:auto!important; border:1px solid var(--boss-border-default)!important; border-radius:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-product-catalog-head,.boss-product-catalog-row) { grid-template-columns:64px minmax(185px,1.5fr) minmax(135px,1fr) minmax(140px,1fr) 116px 150px!important; gap:16px!important; min-width:930px!important; padding:16px!important; box-sizing:border-box; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-row { min-height:var(--boss-size-table-product,112px)!important; align-items:center!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-cover { width:56px!important; height:56px!important; border-radius:9px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-standard > strong { font-size:14px!important; line-height:1.65!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-entered em { font-size:12px!important; line-height:1.6!important; color:#697a8d!important; white-space:normal!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-statuses { gap:5px!important; background:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-actions { display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:7px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-actions > .boss-product-candidate-search-action { background:#eaf2fa!important; border-color:#cbddee!important; color:#244e72!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-catalog-row-more { position:relative; font-size:12px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-catalog-row-more summary { cursor:pointer; padding:6px 10px; color:#62748a; text-align:center; border-radius:6px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-catalog-row-more[open] { background:#f4f7fb; padding:5px; border-radius:8px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-catalog-row-more .boss-saas-action { width:100%; margin-top:5px; }
/* Keep the actual product list above worklist continuation and compact routine controls. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-product-catalog { gap:14px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-product-catalog .boss-saas-page-heading { min-height:0!important; padding:0!important; margin:0 0 6px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-product-catalog .boss-product-catalog-toolbar fieldset { display:flex!important; align-items:center!important; flex-wrap:wrap!important; gap:4px!important; padding:5px!important; min-height:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-product-catalog .boss-product-catalog-toolbar legend { float:left; width:auto!important; margin:0 10px 0 4px!important; padding:0!important; font-size:12px!important; line-height:34px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-product-catalog .boss-product-catalog-toolbar .boss-saas-filter-option { min-height:40px!important; padding:8px 12px!important; font-size:14px!important; line-height:22px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-view-state { padding:10px 14px!important; gap:10px!important; background:#fff!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-product-catalog .boss-ops-section-heading { padding:12px 0 0!important; min-height:36px!important; margin:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-own-library { padding:16px!important; margin:0!important; gap:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-own-library .boss-product-catalog-batch-stats { gap:8px!important; margin:10px 0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-own-library .boss-product-catalog-batch-stats > span { padding:10px!important; min-height:44px!important; }
/* Tools are a searchable directory with purpose text, not a wall of equal buttons. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools { width:min(760px,calc(100vw - 32px))!important; padding:24px!important; background:#f7f9fc!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools > header { padding:0 0 18px!important; border-bottom:1px solid var(--boss-border-default)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools h2 { font-size:24px!important; margin:5px 0 0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-search { margin:16px 0 8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossManagementTools .boss-management-tools-search-status { margin:8px 0 12px!important; font-size:12px!important; color:#62748a!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups { display:grid!important; grid-template-columns:1fr 1fr!important; gap:22px!important; padding-top:14px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups > section { min-width:0; margin:0!important; padding:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups > section > div { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups > section:first-child { grid-column:1/-1; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups > section:first-child > div { display:grid!important; grid-template-columns:1fr 1fr!important; gap:8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups h3 { margin:0 0 10px!important; color:#344c66!important; font-size:var(--boss-type-body-size,14px)!important; font-weight:650!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-item { position:relative; grid-template-columns:minmax(0,1fr)!important; background:#fff!important; border:1px solid #e1e7ef!important; border-radius:9px!important; margin:0 0 7px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-open { display:flex!important; align-items:center!important; gap:10px!important; min-height:62px!important; padding:12px 42px 12px 12px!important; border:0!important; background:transparent!important; text-align:left!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-open > svg:first-child { width:18px!important; height:18px!important; color:var(--boss-action-primary)!important; flex-shrink:0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-open > svg:last-child { display:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-copy { min-width:0; display:flex; flex-direction:column; gap:4px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-copy strong { font-size:14px; font-weight:600; color:#263b53; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-copy small { font-size:12px; line-height:1.5; color:#687b90; white-space:normal; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-pin { position:absolute!important; right:7px!important; top:16px!important; width:30px!important; height:30px!important; border:0!important; background:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(button,input,select,a,summary):focus-visible { outline:2px solid var(--boss-focus,#2467a4)!important; outline-offset:3px!important; }
@media (min-width:1024px) and (max-width:1279px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] { grid-template-columns:72px minmax(0,1fr)!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-sidebar.navbar-vertical { padding:16px 8px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand.navbar-brand { padding:0 0 16px!important; justify-content:center!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand > div { display:none!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link { flex-direction:row!important; justify-content:center!important; min-height:48px!important; height:48px!important; padding:12px!important; gap:0!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link > span { display:none!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossConversionBadge { position:absolute!important; top:0!important; right:0!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity { display:flex!important; flex-wrap:wrap!important; padding:8px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity > div { display:none!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-trigger { display:flex!important; flex-direction:row!important; justify-content:center!important; width:48px!important; min-height:48px!important; height:48px!important; padding:12px!important; gap:0!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-trigger > span,
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-trigger > svg:last-child,
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-account-password > span { display:none!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-account-password { width:48px!important; min-height:48px!important; padding:12px!important; justify-content:center!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-topbar.navbar { flex-wrap:wrap!important; gap:8px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions { flex-wrap:wrap!important; }
}
/* Drawer controls are exposed only when the existing navigation becomes a drawer. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-mobile-nav-toggle,.boss-mobile-nav-close,.boss-mobile-nav-backdrop) { display:none!important; }
@media (max-width:1023px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] { grid-template-columns:minmax(0,1fr)!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-sidebar.navbar-vertical {
    position:fixed!important; inset:0 auto 0 0!important; width:224px!important; max-width:calc(100vw - 48px)!important;
    height:100dvh!important; min-height:0!important; max-height:100dvh!important; padding:16px!important; box-sizing:border-box!important;
    display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:12px!important;
    transform:translateX(-100%); visibility:hidden; z-index:1200!important; overflow:hidden!important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"].boss-shell-navigation-open .boss-console-sidebar.navbar-vertical { transform:translateX(0); visibility:visible; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-main { grid-column:1!important; min-width:0!important; margin-left:0!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand.navbar-brand { display:flex!important; flex:0 0 auto!important; width:100%!important; min-height:56px!important; padding:0 0 12px!important; justify-content:flex-start!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-brand > div { display:block!important; position:static!important; width:auto!important; height:auto!important; min-width:0!important; overflow:visible!important; clip:auto!important; clip-path:none!important; opacity:1!important; transform:none!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPrimaryNavigation .boss-console-nav.navbar-collapse {
    display:flex!important; flex-direction:column!important; flex:1 1 auto!important; width:100%!important; min-height:0!important; min-width:0!important;
    align-items:stretch!important; justify-content:flex-start!important; gap:12px!important; margin:0!important; padding:0!important; overflow:auto!important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPrimaryNavigation .boss-console-nav-group.navbar-nav { display:flex!important; flex-direction:column!important; flex:0 0 auto!important; width:100%!important; gap:4px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPrimaryNavigation :is(.boss-console-nav-primary > .nav-link,.boss-management-tools-trigger) {
    display:flex!important; flex-direction:row!important; flex:0 0 auto!important; justify-content:flex-start!important;
    min-height:48px!important; height:48px!important; width:100%!important; min-width:0!important; padding:12px!important; gap:12px!important; box-sizing:border-box!important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPrimaryNavigation :is(.boss-console-nav-primary > .nav-link,.boss-management-tools-trigger) > span {
    display:block!important; flex:1 1 auto!important; position:static!important; min-height:0!important; width:auto!important; max-width:none!important; height:auto!important;
    padding:0!important; margin:0!important; border:0!important; opacity:1!important; clip:auto!important; clip-path:none!important; transform:none!important;
    color:inherit!important; background:transparent!important; box-shadow:none!important; pointer-events:auto!important;
    font-size:14px!important; line-height:22px!important; text-align:left!important; white-space:normal!important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPrimaryNavigation :is(.boss-console-nav-primary > .nav-link,.boss-console-nav-group,.boss-management-tools-trigger)[hidden] { display:none!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossConversionBadge { position:static!important; margin-left:auto!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity { display:grid!important; flex:0 0 auto!important; position:static!important; width:100%!important; min-width:0!important; min-height:64px!important; margin:0!important; grid-template-columns:38px minmax(0,1fr) 30px!important; padding:12px!important; gap:8px!important; place-items:center stretch!important; box-sizing:border-box!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-identity > div { display:block!important; min-width:0!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPrimaryNavigation .boss-console-identity > button { display:inline-flex!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPrimaryNavigation .boss-account-password { flex:0 0 auto!important; width:100%!important; margin:0!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPrimaryNavigation .boss-console-settings { display:none!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-trigger { display:flex!important; flex-direction:row!important; width:100%!important; padding:16px 12px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-topbar.navbar { display:grid!important; grid-template-columns:40px minmax(0,1fr)!important; grid-template-rows:auto auto!important; padding:8px 16px!important; gap:8px!important; align-items:center!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-title { grid-area:1/2!important; display:flex!important; flex-direction:column!important; align-items:flex-start!important; justify-content:center!important; width:auto!important; min-width:0!important; gap:0!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-title-link.page-title { min-height:24px!important; line-height:24px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-scope.badge { min-height:18px!important; height:auto!important; padding:0!important; background:transparent!important; line-height:18px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions { grid-area:2/1/3/-1!important; display:flex!important; width:100%!important; flex-wrap:wrap!important; justify-content:flex-start!important; gap:8px!important; margin:0!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions .boss-console-sync-status { flex:1 1 64px!important; width:auto!important; min-width:0!important; max-width:90px!important; min-height:0!important; padding:0!important; font-size:12px!important; line-height:18px!important; white-space:normal!important; text-align:left!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions :is(.btn,.boss-console-quick) { padding-inline:8px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-search-wrap { order:-1; flex:1 1 100%!important; width:100%!important; min-width:0!important; max-width:none!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-mobile-nav-toggle,.boss-mobile-nav-close) {
    display:inline-flex!important; align-items:center!important; justify-content:center!important; flex:0 0 40px!important;
    width:40px!important; height:40px!important; padding:0!important; border:1px solid var(--boss-border-input,#8292a6)!important;
    border-radius:8px!important; background:var(--boss-surface-default,#fff)!important; color:var(--boss-text-primary,#20314a)!important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-mobile-nav-toggle { grid-area:1/1!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-mobile-nav-close { align-self:flex-end!important; color:var(--boss-nav-text,#c4d2e1)!important; background:transparent!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"].boss-shell-navigation-open .boss-mobile-nav-backdrop { display:block!important; position:fixed!important; inset:0!important; background:#182c4466!important; z-index:1199!important; }
  body.boss-mobile-navigation-open { overflow:hidden!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot > .boss-console-page { padding:16px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-grid { grid-template-columns:1fr!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-heading { align-items:flex-start!important; flex-direction:column!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools { padding:16px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups { grid-template-columns:1fr!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups > section:first-child > div { grid-template-columns:1fr!important; }
}
/* Undo the legacy visually-hidden sidebar labels only where the rail/drawer uses them. */
@media (max-width:1279px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-console-nav-group.navbar-nav > .nav-link > span,.boss-management-tools-trigger.nav-link > span,.boss-console-identity > div,.boss-console-identity > button) {
    position:static!important; width:auto!important; height:auto!important; overflow:visible!important; clip:auto!important; clip-path:none!important; white-space:normal!important;
  }
}
@media (max-width:767px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-topbar.navbar { grid-template-columns:48px minmax(0,1fr)!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form[data-boss-group-search] > :is(input,button) { height:48px!important; min-height:48px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form.boss-saas-filter-search > label { flex-basis:100%!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-mobile-nav-toggle,.boss-mobile-nav-close),
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions .btn-icon { width:48px!important; height:48px!important; flex-basis:48px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-filterbar input,.boss-saas-filterbar select) { min-height:48px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot form.boss-saas-filter-search > label > input { min-height:0!important; }

  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-groups-summary,.boss-product-catalog-toolbar) { grid-template-columns:minmax(0,1fr)!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-groups-summary > :is(div,button) { border-right:0!important; padding:12px 16px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] :is(.boss-console-search,.boss-mobile-nav-toggle,.boss-mobile-nav-close),
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-toolbar-actions :is(.btn,.boss-console-quick),
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-saas-action,.boss-saas-filterbar button,.boss-saas-filter-search > label) { min-height:48px!important; }
}
@media (prefers-reduced-motion:reduce) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-group-card { transition:none!important; transform:none!important; }
}

/* V236 task workspace: two views, one summary column and explicit filter submit.
 * This replaces the task-only green shell block in tabler-shell.base.css. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace {
  display:flex!important; flex-direction:column!important; gap:var(--sl-space-16,16px)!important;
  color:var(--boss-text-primary,#20314a)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(button:not([data-boss-current-page-root]),input:not([type="checkbox"]),select,summary) {
  box-sizing:border-box!important; min-height:var(--boss-size-control-default,40px)!important;
  font-size:var(--boss-type-body-size,14px)!important; line-height:var(--boss-type-body-line,22px)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(button:not([data-boss-current-page-root]),input:not([type="checkbox"]),select) {
  color:var(--boss-text-primary,#20314a)!important; border:1px solid var(--boss-border-input,#8292a6)!important;
  background:var(--boss-surface-default,#fff)!important; border-radius:var(--boss-radius-control,8px)!important;
  padding:8px 12px!important; font-weight:500!important; max-width:100%; box-shadow:none!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace button:not([data-boss-current-page-root]) {
  display:inline-flex!important; align-items:center!important; justify-content:center!important; gap:var(--sl-space-8,8px)!important;
  white-space:normal!important; overflow-wrap:anywhere;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace button:disabled { opacity:.5; cursor:default; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(button,summary,input,select):focus-visible {
  outline:2px solid var(--boss-focus,#2467a4)!important; outline-offset:2px!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(button.primary,.boss-task-create-button) {
  color:var(--boss-text-inverse,#fff)!important; background:var(--boss-action-primary,#315d83)!important; border-color:var(--boss-action-primary,#315d83)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace button > svg { width:16px!important; height:16px!important; flex:0 0 16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-viewbar,.boss-task-views,.boss-task-search-row) {
  display:flex!important; align-items:center!important; gap:var(--sl-space-8,8px)!important; min-width:0!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-viewbar { flex-wrap:wrap!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-views {
  padding:var(--sl-space-4,4px)!important; background:var(--boss-surface-default,#fff)!important;
  border:1px solid var(--boss-border-default,#dfe5ee)!important; border-radius:var(--boss-radius-card,12px)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-views > button { min-width:88px; border-color:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-views > button,.boss-task-review-entry)[aria-pressed="true"] {
  background:var(--boss-action-selected,#eaf2f8)!important; color:var(--boss-action-primary,#315d83)!important; border-color:var(--boss-border-default,#dfe5ee)!important; font-weight:650!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-create-button { margin-left:auto!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-filterbar {
  display:block!important; margin:0!important; padding:var(--sl-space-16,16px)!important; border:1px solid var(--boss-border-default,#dfe5ee)!important;
  border-radius:var(--boss-radius-card,12px)!important; background:var(--boss-surface-default,#fff)!important; box-shadow:none!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-search-field { display:block!important; flex:1 1 auto!important; min-width:0!important; margin:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-search-field input { display:block!important; width:100%!important; height:40px!important; min-width:0!important; margin:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-search-row > button { flex:0 0 auto; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-visually-hidden {
  position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-more-filters,.boss-task-reading-details,.boss-task-explanation) { min-width:0!important; margin:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-more-filters,.boss-task-reading-details,.boss-task-explanation) > summary {
  display:flex!important; align-items:center!important; width:fit-content!important; max-width:100%!important; cursor:pointer!important;
  color:var(--boss-action-primary,#315d83)!important; font-weight:500!important; padding:8px 0!important; overflow-wrap:anywhere;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-more-filters,.boss-task-reading-details,.boss-task-explanation) > summary::after { content:"＋"; margin-left:8px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-more-filters,.boss-task-reading-details,.boss-task-explanation)[open] > summary::after { content:"−"; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-filter-fields {
  display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; align-items:end!important; gap:var(--sl-space-12,12px)!important; padding-top:var(--sl-space-8,8px)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-filter-fields > label { display:grid!important; gap:4px!important; min-width:0!important; font-size:14px!important; line-height:22px!important; font-weight:500!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-filter-fields select { width:100%!important; min-width:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-filter-context { margin-top:var(--sl-space-8,8px)!important; gap:var(--sl-space-8,8px)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-filter-context button { background:var(--boss-action-selected,#eaf2f8)!important; color:var(--boss-action-primary,#315d83)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-task-board {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:0!important; padding:0!important; margin:0!important; min-width:0!important; border:1px solid var(--boss-border-default)!important; border-radius:var(--boss-radius-card)!important; background:var(--boss-surface-default)!important; overflow:hidden!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group {
  min-width:0!important; border:0!important; border-bottom:1px solid var(--boss-border-default)!important; border-radius:0!important;
  background:var(--boss-surface-default,#fff)!important; overflow:hidden!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group > summary {
  display:grid!important; grid-template-columns:minmax(180px,1.1fr) minmax(160px,2fr) minmax(140px,1fr) 132px!important;
  align-items:center!important; gap:var(--sl-space-16,16px)!important; min-height:84px!important;
  padding:var(--sl-space-16,16px)!important; background:var(--boss-surface-default,#fff)!important; color:var(--boss-text-primary,#20314a)!important;
  border:0!important; cursor:pointer!important; list-style:none!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace summary::-webkit-details-marker { display:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group > summary > span { min-width:0!important; overflow-wrap:anywhere; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-person-info,.boss-task-deadline,.boss-task-summary-action) { display:grid!important; gap:4px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-person em,.boss-task-deadline small,.boss-task-summary-action b) { color:var(--boss-text-secondary,#53647a)!important; font-size:12px!important; line-height:18px!important; font-style:normal!important; font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-person strong,.boss-task-deadline strong) { font-size:14px!important; line-height:22px!important; font-weight:600!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-person strong,.boss-task-reason) { display:-webkit-box!important; -webkit-box-orient:vertical!important; -webkit-line-clamp:2!important; overflow:hidden!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-deadline.overdue strong { color:var(--boss-state-danger-fg,#a22835)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-expand-label { display:flex!important; align-items:center!important; gap:4px!important; color:var(--boss-action-primary,#315d83)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-expand-label svg { width:16px!important; height:16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group[open] .boss-task-expand-label svg { transform:rotate(180deg); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-original-items { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:var(--sl-space-12,12px)!important; padding:var(--sl-space-12,12px)!important; background:var(--boss-surface-subtle,#fafbfd)!important; border-top:1px solid var(--boss-border-default,#dfe5ee)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-task-detail { display:grid!important; gap:8px!important; padding:16px!important; min-width:0!important; color:var(--boss-text-primary,#20314a)!important; background:var(--boss-surface-default,#fff)!important; border:1px solid var(--boss-border-default,#dfe5ee)!important; border-radius:var(--boss-radius-control,8px)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-task-detail :is(h4,p,span) { overflow-wrap:anywhere; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-task-detail header { flex-wrap:wrap!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-task-detail header h4 { color:var(--boss-text-primary,#20314a)!important; font-size:16px!important; line-height:24px!important; font-weight:600!important; white-space:normal!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-console-task-meta,.boss-task-time-trace,.boss-console-task-note,.boss-console-task-detail header p,.boss-task-batch-note) { color:var(--boss-text-secondary,#53647a)!important; font-size:12px!important; line-height:18px!important; font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-guidance p,.boss-task-explanation p) { background:var(--boss-surface-subtle,#fafbfd)!important; border-color:var(--boss-border-default,#dfe5ee)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-guidance span,.boss-task-explanation span) { color:var(--boss-text-primary,#20314a)!important; font-size:14px!important; line-height:22px!important; font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-guidance b,.boss-task-explanation b) { color:var(--boss-text-secondary,#53647a)!important; font-size:12px!important; line-height:18px!important; font-weight:600!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-task-detail footer { display:flex!important; flex-wrap:wrap!important; gap:8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-list-footer { display:grid!important; gap:8px!important; min-width:0!important; border-top:1px solid var(--boss-border-default,#dfe5ee)!important; padding-top:8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-control-summary,.boss-task-control-kpis,.boss-task-workload-list,.boss-task-batch-load) { display:flex!important; flex-wrap:wrap!important; gap:8px 16px!important; margin:0!important; padding:0!important; color:var(--boss-text-secondary,#53647a)!important; background:transparent!important; border:0!important; font-size:12px!important; line-height:18px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-batch-note { flex:1 1 100%!important; margin:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-page-head { min-height:0!important; padding:0!important; margin:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-page-title-link { min-height:32px!important; margin:0!important; padding:0!important; border:0!important; background:transparent!important; color:var(--boss-text-primary,#20314a)!important; box-shadow:none!important; font-size:var(--boss-type-page-size,24px)!important; line-height:var(--boss-type-page-line,32px)!important; font-weight:650!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-pagination { display:flex!important; flex-wrap:wrap!important; align-items:center!important; justify-content:space-between!important; gap:8px 16px!important; min-height:0!important; margin:0!important; padding:12px 0!important; border:0!important; border-top:1px solid var(--boss-border-default,#dfe5ee)!important; background:transparent!important; color:var(--boss-text-secondary,#53647a)!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-console-pagination :is(p,strong) { margin:0!important; color:var(--boss-text-secondary,#53647a)!important; font-size:14px!important; line-height:22px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-person-group,.boss-task-person-group > summary,.boss-console-task-board,.boss-console-task-detail) { box-shadow:none!important; }
@media (max-width:1199px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group > summary { grid-template-columns:minmax(100px,1fr) minmax(120px,1.6fr) minmax(112px,1fr) 112px!important; gap:12px!important; padding:12px!important; }
}
@media (max-width:767px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(button:not([data-boss-current-page-root]),input:not([type="checkbox"]),select,summary) { min-height:var(--boss-size-control-touch,48px)!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-search-field input { height:48px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-search-row { display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-search-field { grid-column:1/-1!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-filter-fields { grid-template-columns:minmax(0,1fr)!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-person-group > summary { grid-template-columns:minmax(0,1fr) auto!important; gap:8px 12px!important; padding:16px!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-reason { grid-column:1/-1!important; grid-row:2!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-deadline { grid-column:1!important; grid-row:3!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace .boss-task-summary-action { grid-column:2!important; grid-row:3!important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-task-workspace :is(.boss-task-guidance,.boss-task-explanation > div) { grid-template-columns:minmax(0,1fr)!important; }
}

/* V238 people workspace: first-screen list, progressive filters, quiet row actions. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace { gap:16px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-people-hero { display:flex!important; flex-direction:row!important; align-items:center!important; justify-content:space-between!important; flex-wrap:wrap!important; gap:12px!important; padding:0!important; margin:0!important; min-height:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-people-hero-copy { display:flex!important; align-items:center!important; flex-wrap:wrap!important; gap:12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-people-hero h2 { margin:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-page-status-line { margin:0!important; padding:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-capability-summary { position:relative; padding:0!important; margin:0!important; border:0!important; background:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-capability-summary summary { display:flex; align-items:center; gap:6px; min-height:32px; cursor:pointer; font-size:12px; line-height:18px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-capability-list { display:flex!important; flex-wrap:wrap!important; gap:8px!important; padding:8px 0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-hero-stat { display:flex!important; flex-wrap:wrap!important; align-items:baseline!important; gap:4px!important; width:auto!important; min-width:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; color:var(--boss-text-muted)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-hero-stat :is(span,strong,em) { margin:0!important; font-size:14px!important; line-height:22px!important; font-style:normal!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-hero-stat strong { font-weight:650!important; color:var(--boss-text-primary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-hero-stat p { flex-basis:100%; margin:0!important; font-size:12px!important; line-height:18px!important; font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v153-people-toolbar { display:flex!important; flex-direction:row!important; flex-wrap:wrap!important; align-items:center!important; gap:10px 16px!important; padding:16px!important; border:1px solid var(--boss-border-default)!important; border-radius:12px!important; background:var(--boss-surface-default)!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-search { flex:1 0 100%!important; display:flex!important; gap:8px!important; margin:0!important; padding:0!important; min-height:40px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-search > label { flex:1!important; min-width:120px!important; height:40px!important; padding:0 12px!important; gap:8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-search input { height:100%!important; padding:0!important; font-size:14px!important; line-height:22px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-group { display:flex!important; flex-wrap:wrap!important; align-items:center!important; gap:4px!important; min-height:0!important; padding:0!important; margin:0!important; border:0!important; border-radius:0!important; background:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-label { font-size:12px!important; font-weight:500!important; color:var(--boss-text-muted)!important; margin-right:8px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-option { min-height:32px!important; height:auto!important; padding:4px 10px!important; border:1px solid transparent!important; border-radius:6px!important; background:transparent!important; font-size:14px!important; line-height:22px!important; font-weight:400!important; color:var(--boss-text-secondary)!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-option:is(.active,.is-active) { color:var(--boss-action-primary)!important; background:var(--boss-nav-selected-bg)!important; font-weight:600!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-more-filters { flex:1; min-width:150px; margin:0!important; border:0!important; background:transparent!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-more-filters > summary { display:flex; align-items:center; justify-content:flex-end; gap:6px; width:fit-content; margin-left:auto; min-height:32px; cursor:pointer; color:var(--boss-text-secondary); font-size:14px; line-height:22px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-more-filters[open] { flex-basis:100%; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-more-filter-content { display:grid; gap:14px; padding-top:14px; margin-top:8px; border-top:1px solid var(--boss-border-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace :is(.boss-people-more-filters,.boss-people-supporting-tools) summary::-webkit-details-marker { display:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace :is(.boss-people-more-filters,.boss-people-supporting-tools) summary > svg { width:16px; height:16px; flex:0 0 16px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-supporting-tools { border:1px solid var(--boss-border-default); border-radius:12px; background:var(--boss-surface-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-supporting-tools > summary { display:flex; align-items:center; gap:10px; padding:16px; min-height:52px; cursor:pointer; box-sizing:border-box; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-supporting-tools > summary strong { font-size:14px; font-weight:600; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-supporting-tools > summary span { flex:1; color:var(--boss-text-muted); font-size:12px; line-height:18px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-supporting-content { display:grid; gap:16px; padding:0 16px 16px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-people-table-panel > .boss-saas-panel-head { display:flex!important; flex-wrap:wrap!important; align-items:center!important; justify-content:space-between!important; min-height:52px!important; padding:12px 16px!important; gap:4px 12px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-people-table-panel .boss-saas-section-kicker { display:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-people-table-panel .boss-saas-section-title { font-size:16px!important; line-height:24px!important; margin:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v153-person-table { overflow-x:auto!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace :is(.boss-people-table-head,.boss-people-table-row) { grid-template-columns:minmax(210px,1.45fr) minmax(110px,.7fr) minmax(150px,1fr) minmax(120px,.75fr) minmax(118px,.8fr) minmax(190px,1.2fr)!important; gap:16px!important; min-width:1010px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-table-row { padding:12px 16px!important; min-height:108px!important; align-items:start!important; border-radius:0!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-identity { display:flex!important; align-items:flex-start!important; gap:10px!important; min-height:0!important; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; text-align:left!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-identity .boss-console-initial { width:32px!important; height:32px!important; flex:0 0 32px!important; border-radius:8px!important; font-size:14px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-person-copy { gap:4px!important; min-width:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-person-title { display:flex!important; flex-wrap:wrap!important; gap:4px 6px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-person-title strong { font-size:14px!important; line-height:22px!important; font-weight:600!important; overflow-wrap:anywhere!important; white-space:normal!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-public-id { font-size:11px!important; font-weight:400!important; line-height:18px!important; background:transparent!important; color:var(--boss-text-muted)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v169-person-copy :is(em,small) { font-size:12px!important; line-height:18px!important; font-weight:400!important; color:var(--boss-text-muted)!important; white-space:normal!important; overflow-wrap:anywhere!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-table-row :is(.boss-people-growth strong,.boss-people-login-usage strong,.boss-people-recent-business strong,.boss-people-thirty-day strong,.boss-people-inventory strong,.boss-v153-person-relationship strong) { font-size:12px!important; line-height:18px!important; font-weight:400!important; color:var(--boss-text-secondary)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-table-row :is(em,small) { font-size:12px!important; line-height:18px!important; font-style:normal!important; font-weight:400!important; white-space:normal!important; overflow-wrap:anywhere!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-profit { text-align:left!important; align-items:flex-start!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-profit > strong { font-size:14px!important; line-height:22px!important; font-weight:600!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-actions { display:flex!important; flex-direction:row!important; flex-wrap:wrap!important; align-items:center!important; justify-content:flex-start!important; gap:6px!important; margin-top:6px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-actions .boss-saas-action { min-height:32px!important; height:auto!important; padding:4px 8px!important; font-size:12px!important; line-height:20px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-actions .boss-saas-action.is-primary { background:var(--boss-nav-selected-bg)!important; border-color:transparent!important; color:var(--boss-action-primary)!important; font-weight:500!important; }
@media(max-width:767px) {
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-search { flex-wrap:wrap!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-filter-search > label { flex-basis:100%!important; height:48px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace :is(.boss-saas-filter-option,.boss-people-more-filters > summary) { min-height:44px!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-supporting-tools > summary { flex-wrap:wrap; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-supporting-tools > summary span { flex-basis:100%; }
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-followup { width:100%!important; max-width:none!important; justify-self:stretch!important; text-align:left!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-v153-person-relationship { border:0!important; padding:0!important; text-align:left!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-actions .boss-saas-action { width:auto!important; min-width:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-people-table-panel .boss-saas-section-meta { min-height:0!important; height:auto!important; padding:0!important; border:0!important; background:transparent!important; font-size:12px!important; line-height:18px!important; font-weight:400!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-hero-stat { max-width:450px!important; text-align:right!important; justify-content:flex-end!important; }
@media(max-width:767px) { body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-saas-hero-stat { text-align:left!important; justify-content:flex-start!important; } }

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-table-row > [role="cell"] { grid-area:auto!important; min-width:0!important; max-width:none!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-business { text-align:left!important; justify-items:start!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-business :is(strong,span) { white-space:normal!important; overflow-wrap:anywhere!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-head > :is(.boss-saas-cell-metric,.boss-saas-cell-action) { text-align:left!important; }

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-more { position:relative; font-size:12px; line-height:20px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-more > summary { display:flex; align-items:center; gap:4px; min-height:32px; padding:4px 6px; box-sizing:border-box; cursor:pointer; color:var(--boss-text-muted); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-more > summary::-webkit-details-marker { display:none; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-more > summary > svg { width:12px; height:12px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-more[open] { flex-basis:100%; padding:4px 0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-more[open] > div { padding-top:4px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-ops-person-head > [role="columnheader"] { text-align:left!important; justify-self:start!important; }

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-table-row > :is(.boss-ops-person-recent,.boss-ops-person-business,.boss-ops-person-membership,.boss-ops-person-followup) { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:4px!important; }
@media(min-width:768px) and (max-width:1279px) {
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace :is(.boss-people-table-head,.boss-people-table-row) > :last-child { position:sticky!important; right:0; z-index:2; border-left:1px solid var(--boss-border-default)!important; background:var(--boss-surface-default)!important; padding-left:10px!important; box-shadow:-10px 0 10px var(--boss-surface-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-table-head > :last-child { background:var(--boss-surface-subtle)!important; box-shadow:-10px 0 10px var(--boss-surface-subtle); }
}

/* The legacy compact-list rule hides non-primary buttons; a disclosed action must remain visible. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-people-workspace .boss-people-row-more[open] .boss-saas-action { display:inline-flex!important; }

/* The task tool jump leaves room for the sticky application header. */
body.boss-console-mode #bossConsole #bossTaskReadingTools { scroll-margin-top:160px; }

/* V242: common work and guidance use the existing shared workspace tokens. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-workspace-guide-trigger { display:flex; align-items:center; gap:12px; min-height:40px; padding:8px 12px; color:var(--boss-text-secondary); border:0; background:transparent; text-align:left; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-workspace-guide-trigger svg { width:20px; height:20px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-workspace-guide-trigger:hover { color:var(--boss-action-primary); background:var(--boss-surface-subtle); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work { padding:16px; border:1px solid var(--boss-border-default); border-radius:var(--boss-radius-card,12px); background:var(--boss-surface-default); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work h3 { margin:0; font-size:16px; line-height:24px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work p { margin:2px 0 0; color:var(--boss-text-muted); font-size:12px; line-height:18px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:8px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-list button { display:flex; align-items:center; gap:12px; min-width:0; padding:12px; border:1px solid var(--boss-border-default); border-radius:8px; background:var(--boss-surface-subtle); color:var(--boss-text-primary); text-align:left; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-list button:hover { border-color:var(--boss-action-primary); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-list button > span:nth-child(2) { flex:1; min-width:0; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-list strong { display:block; font-size:14px; line-height:22px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-list small { display:block; margin-top:2px; font-size:12px; line-height:18px; color:var(--boss-text-muted); }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-list svg { width:16px; height:16px; flex:0 0 16px; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-icon { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:8px; background:var(--boss-state-selected-bg,#eef2ff); color:var(--boss-action-primary); }
body.boss-console-mode #modalRoot > .modal-sheet.boss-workspace-guide { max-width:640px!important; width:calc(100% - 32px)!important; background:var(--boss-surface-default,#fff)!important; color:var(--boss-text-primary,#182433)!important; border:1px solid var(--boss-border-default,#e6eaf1)!important; }
body.boss-console-mode .boss-workspace-guide-body { display:grid; gap:8px; padding:20px; }
body.boss-console-mode .boss-workspace-guide-body > button { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--boss-border-default,#e6eaf1); border-radius:8px; background:#fff; color:var(--boss-text-primary,#182433); text-align:left; }
body.boss-console-mode .boss-workspace-guide-body > button > span { flex:1; min-width:0; }
body.boss-console-mode .boss-workspace-guide-body svg { width:20px; height:20px; flex:0 0 20px; color:var(--boss-action-primary,#4263eb); }
body.boss-console-mode .boss-workspace-guide-body strong { display:block; font-size:14px; line-height:22px; }
body.boss-console-mode .boss-workspace-guide-body small, body.boss-console-mode .boss-workspace-guide-body p { display:block; margin:4px 0 0; color:var(--boss-text-muted,#626f86); font-size:14px; line-height:22px; }
body.boss-console-mode .boss-workspace-guide-body aside { margin-top:8px; padding:12px; border-radius:8px; background:var(--boss-surface-subtle,#f8fafc); }
@media (max-width:600px) { body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work header { align-items:flex-start; } body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-home-common-work-list { grid-template-columns:1fr; } }

body.boss-console-mode #modalRoot .boss-workspace-guide .boss-context-modal-head { background:#fff!important; border-color:var(--boss-border-default,#e6eaf1)!important; }
body.boss-console-mode #modalRoot .boss-workspace-guide .boss-context-modal-head span { color:var(--boss-action-primary,#4263eb)!important; }
body.boss-console-mode #modalRoot .boss-workspace-guide :is(h3,strong) { color:var(--boss-text-primary,#182433)!important; }
body.boss-console-mode #modalRoot .boss-workspace-guide :is(p,small) { color:var(--boss-text-muted,#626f86)!important; }
body.boss-console-mode #modalRoot .boss-workspace-guide .boss-context-modal-head > button, body.boss-console-mode #modalRoot .boss-workspace-guide .modal-actions > button { color:var(--boss-text-secondary,#526178)!important; background:#fff!important; border-color:var(--boss-border-strong,#cbd3e0)!important; }
body.boss-console-mode #modalRoot > .boss-workspace-guide > .modal-actions { display:flex!important; justify-content:flex-end!important; background:var(--boss-surface-subtle,#f8fafc)!important; border-color:var(--boss-border-default,#e6eaf1)!important; }
body.boss-console-mode #modalRoot .boss-workspace-guide .modal-actions > button { flex:0 0 auto!important; min-width:96px!important; }

body.boss-console-mode #modalRoot > .boss-workspace-guide::after { display:none!important; }
body.boss-console-mode #modalRoot > .boss-workspace-guide { box-shadow:0 16px 48px rgb(24 36 51 / 18%)!important; }

/* V248: delivery student picker uses the current enterprise dialog material.
 * modalRoot sits outside bossConsole, so token fallbacks match the shared
 * Figma palette rather than inheriting the old membership dialog theme. */
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker {
  --boss-dialog-text:var(--boss-text-primary,#182433); --boss-dialog-text-soft:var(--boss-text-secondary,#526178);
  --boss-dialog-muted:var(--boss-text-muted,#626f86); --boss-dialog-border:var(--boss-border-default,#e6eaf1);
  --boss-dialog-border-strong:var(--boss-border-input,#cbd3e0); --boss-dialog-surface-2:var(--boss-surface-subtle,#f8fafc);
  width:min(760px,calc(100vw - 32px))!important; max-width:760px!important; min-width:0!important;
  height:auto!important; min-height:0!important; max-height:calc(100dvh - 32px)!important;
  display:grid!important; grid-template-rows:auto auto auto minmax(0,1fr) auto!important; gap:0!important;
  padding:0!important; overflow:hidden!important; box-sizing:border-box!important; color-scheme:light;
  color:var(--boss-text-primary,#182433)!important; background:var(--boss-surface-default,#fff)!important;
  border:1px solid var(--boss-border-default,#e6eaf1)!important; border-radius:12px!important;
  box-shadow:0 16px 48px rgb(24 36 51 / 18%)!important; font-size:14px!important; line-height:22px!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker::before,
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker::after { display:none!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .boss-delivery-student-picker-head {
  display:flex!important; align-items:flex-start!important; justify-content:space-between!important; gap:16px!important;
  padding:20px 24px!important; background:var(--boss-surface-subtle,#f8fafc)!important; border-bottom:1px solid var(--boss-border-default,#e6eaf1)!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-head > div { min-width:0!important; gap:4px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-head span { color:var(--boss-action-primary,#4263eb)!important; font-size:12px!important; line-height:18px!important; font-weight:600!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-head h3 { margin:0!important; color:var(--boss-text-primary,#182433)!important; font-size:20px!important; line-height:28px!important; font-weight:600!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-head p { margin:0!important; color:var(--boss-text-secondary,#526178)!important; font-size:14px!important; line-height:22px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-head > button {
  display:grid!important; place-items:center!important; flex:0 0 40px!important; width:40px!important; height:40px!important;
  min-height:40px!important; margin:0!important; padding:0!important; border:1px solid var(--boss-border-input,#cbd3e0)!important;
  border-radius:8px!important; color:var(--boss-text-secondary,#526178)!important; background:#fff!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-head > button > :is(i,svg) { width:20px!important; height:20px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > form.boss-delivery-student-picker-search {
  display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; align-items:center!important; gap:8px!important;
  width:auto!important; min-width:0!important; margin:16px 24px 12px!important; padding:0!important;
  border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; outline:none!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-search > :is(i,svg) {
  grid-area:1/1!important; position:static!important; align-self:center!important; justify-self:start!important; z-index:1;
  width:16px!important; height:16px!important; margin:0 0 0 12px!important; color:var(--boss-text-muted,#626f86)!important; pointer-events:none;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-search > input {
  grid-area:1/1!important; width:100%!important; min-width:0!important; height:40px!important; min-height:40px!important;
  margin:0!important; padding:0 12px 0 40px!important; box-sizing:border-box!important;
  border:1px solid var(--boss-border-input,#cbd3e0)!important; border-radius:8px!important;
  color:var(--boss-text-primary,#182433)!important; background:#fff!important; box-shadow:none!important;
  font-size:14px!important; line-height:22px!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-search > input::placeholder { color:var(--boss-text-muted,#626f86)!important; opacity:1!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-search > button,
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-empty > button {
  width:auto!important; min-height:40px!important; margin:0!important; padding:8px 16px!important; box-sizing:border-box!important;
  border:1px solid var(--boss-action-primary,#4263eb)!important; border-radius:8px!important; background:var(--boss-action-primary,#4263eb)!important;
  color:#fff!important; font-size:14px!important; line-height:22px!important; font-weight:600!important; white-space:nowrap!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-search > button { grid-area:1/2!important; align-self:stretch!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-search > button:hover:not(:disabled),
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-empty > button:hover:not(:disabled) { background:var(--boss-action-hover,#3b5bdb)!important; border-color:var(--boss-action-hover,#3b5bdb)!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker button:disabled { opacity:1!important; color:var(--boss-text-secondary,#526178)!important; background:var(--boss-disabled-bg,#e8edf2)!important; border-color:var(--boss-border-input,#cbd3e0)!important; cursor:not-allowed; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker :is(button,input):focus-visible { outline:2px solid var(--boss-focus,#4263eb)!important; outline-offset:2px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .boss-delivery-student-picker-status {
  display:flex!important; align-items:center!important; justify-content:space-between!important; flex-wrap:wrap!important; gap:4px 16px!important;
  padding:0 24px 12px!important; color:var(--boss-text-secondary,#526178)!important; background:#fff!important;
  font-size:12px!important; line-height:18px!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-status em { color:var(--boss-text-muted,#626f86)!important; font-style:normal!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .boss-delivery-student-picker-results {
  min-height:180px!important; min-width:0!important; overflow-y:auto!important; overflow-x:hidden!important;
  background:#fff!important; border-top:1px solid var(--boss-border-default,#e6eaf1)!important; border-bottom:0!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row {
  display:grid!important; grid-template-columns:36px minmax(0,1fr) minmax(136px,.75fr) 20px!important; align-items:center!important; gap:12px!important;
  width:100%!important; min-width:0!important; margin:0!important; padding:12px 24px!important; box-sizing:border-box!important;
  border:0!important; border-bottom:1px solid var(--boss-border-default,#e6eaf1)!important; border-radius:0!important;
  color:var(--boss-text-primary,#182433)!important; background:#fff!important; text-align:left!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row:hover,
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row:focus-visible { background:var(--boss-action-selected,#eef2ff)!important; outline-offset:-2px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row > .boss-console-initial { width:36px!important; height:36px!important; font-size:14px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row strong { color:var(--boss-text-primary,#182433)!important; font-size:14px!important; line-height:22px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row b { color:var(--boss-text-secondary,#526178)!important; font-size:13px!important; line-height:20px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row em { color:var(--boss-text-muted,#626f86)!important; font-size:12px!important; line-height:18px!important; font-style:normal!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row > :is(i,svg) { width:16px!important; height:16px!important; color:var(--boss-text-secondary,#526178)!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-empty { min-height:180px!important; padding:24px!important; gap:8px!important; background:#fff!important; color:var(--boss-text-secondary,#526178)!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-empty > :is(i,svg) { width:32px!important; height:32px!important; color:var(--boss-action-primary,#4263eb)!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-empty strong { color:var(--boss-text-primary,#182433)!important; font-size:16px!important; line-height:24px!important; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-empty span { font-size:14px!important; line-height:22px!important; overflow-wrap:anywhere; }
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .modal-actions {
  display:flex!important; justify-content:flex-end!important; flex-wrap:wrap!important; gap:8px!important; margin:0!important; padding:16px 24px!important;
  background:var(--boss-surface-subtle,#f8fafc)!important; border-top:1px solid var(--boss-border-default,#e6eaf1)!important; box-shadow:none!important;
}
body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .modal-actions > button {
  flex:0 0 auto!important; width:auto!important; min-width:96px!important; min-height:40px!important; margin:0!important; padding:8px 16px!important;
  color:var(--boss-text-primary,#182433)!important; background:#fff!important; border:1px solid var(--boss-border-input,#cbd3e0)!important;
  border-radius:8px!important; font-size:14px!important; line-height:22px!important; font-weight:500!important;
}
@media (max-width:600px) {
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker { width:calc(100vw - 24px)!important; max-height:calc(100dvh - 24px)!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .boss-delivery-student-picker-head { padding:16px!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > form.boss-delivery-student-picker-search { margin:12px 16px!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .boss-delivery-student-picker-status { padding:0 16px 12px!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row { grid-template-columns:36px minmax(0,1fr) 20px!important; padding:12px 16px!important; gap:4px 12px!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row > span:first-child { grid-area:1/1/3/2!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row > span:nth-child(2) { grid-area:1/2!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row > span:nth-child(3) { grid-area:2/2!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-row > :is(i,svg) { grid-area:1/3/3/4!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .modal-actions { padding:12px 16px!important; }
}
@media (max-width:480px) {
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > form.boss-delivery-student-picker-search { grid-template-columns:minmax(0,1fr)!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-search > input { height:48px!important; min-height:48px!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-search > button { grid-area:2/1!important; width:100%!important; min-height:48px!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker .boss-delivery-student-picker-head > button { width:48px!important; height:48px!important; min-height:48px!important; flex-basis:48px!important; }
  body.boss-console-mode #modalRoot > .modal-sheet.boss-delivery-student-picker > .modal-actions > button { min-height:48px!important; }
}

/* SOURCE frontend/boss-runtime/supervision-pages.css SHA256 67b22db4ac40f4c8f6c5b44017d6d72389c212a223b79baa402648787ae0ae12 */
/* Owner supervision pages: overview, activity and conversion.
 * Preserve every metric, evidence field, permission and factual state.
 * Loaded after light-polish.css by the canonical bundle builder. */

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-home, .boss-ops-activity, .boss-ops-conversion) {
  --supervision-border: var(--boss-border-default, #dfe5ee);
  --supervision-muted: var(--boss-text-muted, #5f7085);
  gap: 24px !important;
  color: var(--boss-text-primary);
  font-size: 14px;
  line-height: 1.6;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-home, .boss-ops-activity, .boss-ops-conversion) :is(.boss-ops-section-heading, .boss-saas-panel-head) {
  min-height: 60px !important;
  gap: 12px !important;
  padding: 16px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--supervision-border) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-home, .boss-ops-activity, .boss-ops-conversion) :is(.boss-ops-section-heading h3, .boss-saas-section-title) {
  margin: 0 !important;
  color: var(--boss-text-primary) !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: var(--boss-type-section-line, 24px) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-home, .boss-ops-activity, .boss-ops-conversion) :is(.boss-ops-section-heading em, .boss-saas-panel-head p, .boss-saas-section-meta) {
  font-size: 12px !important;
  font-style: normal !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  color: var(--supervision-muted) !important;
}

/* Overview: six distinct facts, followed immediately by the operating ledger. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-header h2 {
  margin: 0 !important;
  font-size: var(--boss-type-page-size, 24px) !important;
  line-height: var(--boss-type-page-line, 32px) !important;
  font-weight: 650 !important;
  color: var(--boss-text-primary) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-header aside {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-header aside > div {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 12px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-header aside :is(strong, em) {
  margin: 0 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  color: var(--supervision-muted) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-metrics {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0 !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-item {
  display: grid !important;
  grid-template-rows: auto auto auto 1fr !important;
  align-content: start !important;
  gap: 6px !important;
  min-height: 152px !important;
  padding: 16px !important;
  border: 0 !important;
  border-right: 1px solid var(--supervision-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home button.boss-ops-metric-item[data-boss-actionable="true"]:hover {
  border-color: #bcc8f8 !important;
  background: #f8faff !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-label {
  color: var(--boss-text-secondary) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: var(--boss-type-body-line, 22px) !important;
  white-space: normal !important;
  overflow: visible !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-value {
  font-size: var(--boss-type-metric-size, 28px) !important;
  line-height: var(--boss-type-metric-line, 36px) !important;
  font-weight: 600 !important;
  color: var(--boss-text-primary) !important;
  letter-spacing: -.035em;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  overflow: visible !important;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-value small {
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home :is(.boss-ops-metric-state, .boss-ops-metric-note) {
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  white-space: normal !important;
  overflow: visible !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-note {
  display: block !important;
  font-weight: 400 !important;
  color: var(--supervision-muted) !important;
  -webkit-line-clamp: unset !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home :is(.boss-ops-home-feed, .boss-ops-pending-panel, .boss-ops-home-followup) {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home :is(.boss-home-stream-head, .boss-home-stream-row) {
  grid-template-columns: 88px minmax(112px, .95fr) minmax(144px, 1.4fr) 88px 104px !important;
  gap: 12px !important;
  padding: 16px !important;
  min-width: 0 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-head {
  padding-block: 12px !important;
  background: #f7f9fc !important;
  color: var(--supervision-muted) !important;
  font-size: 12px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row {
  border-bottom: 1px solid #edf1f5 !important;
  align-items: start !important;
  background: #fff !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row :is(strong, time) {
  font-size: 14px !important;
  line-height: var(--boss-type-body-line, 22px) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  color: var(--boss-text-primary) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row :is(em, small) {
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  font-style: normal !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  color: var(--supervision-muted) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row > button {
  width: 100% !important;
  min-width: 104px !important;
  min-height: var(--boss-size-control-default, 40px) !important;
  padding: 8px !important;
  font-size: var(--boss-type-body-size, 14px) !important;
  line-height: var(--boss-type-body-line, 22px) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-pending-panel .boss-saas-alert-list {
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-pending-panel .boss-saas-alert-action {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) 16px !important;
  align-items: start !important;
  gap: 12px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  text-align: left !important;
  border-radius: 8px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-saas-alert-action strong {
  font-size: 14px !important;
  line-height: var(--boss-type-body-line, 22px) !important;
  white-space: normal !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-saas-alert-action :is(em, small) {
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  font-style: normal !important;
  white-space: normal !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-pending-panel > footer {
  padding: 16px !important;
}

/* Activity: make the business ledger the primary reading surface. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-activity, .boss-ops-conversion) > .boss-saas-page-head {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-activity, .boss-ops-conversion) .boss-saas-page-heading {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-areas: "title status" "description status" !important;
  grid-template-rows: auto auto !important;
  align-content: start !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid > .boss-saas-kpi-card {
  display: grid !important;
  grid-template-rows: 22px minmax(72px, 1fr) auto !important;
  align-content: start !important;
  gap: 8px !important;
  min-height: 144px !important;
  height: auto !important;
  padding: 12px 16px !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: var(--boss-radius-card, 12px) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid :is(.boss-saas-kpi-label, .boss-saas-kpi-footer, .boss-v153-metric-state, .boss-v153-metric-state small) {
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  flex-wrap: wrap !important;

}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid .boss-saas-kpi-label {
  line-height: 22px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  gap: 8px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid .boss-saas-kpi-label > svg {
  width: 20px !important;
  height: 20px !important;
  flex-basis: 20px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid .boss-saas-kpi-value {
  height: auto !important;
  overflow: visible !important;
  white-space: normal !important;
  display: block !important;
  min-height: 72px !important;
  align-self: start !important;
  color: var(--boss-text-primary) !important;
  font-size: var(--boss-type-metric-size, 28px) !important;
  line-height: var(--boss-type-metric-line, 36px) !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid :is(.boss-saas-kpi-footer, .boss-v153-metric-state, .boss-v153-metric-state small) {
  line-height: 18px !important;
  font-size: 12px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-controls {
  gap: 12px !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-controls button {
  font-size: 14px !important;
  min-height: var(--boss-size-control-default, 40px) !important;
}

/* Filters are actions; coverage is a read-only status row beneath them. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-v170-ledger-filters {
  display:flex!important; flex-wrap:wrap!important; align-items:center!important;
  gap:8px!important; margin:0!important; padding:0!important; background:transparent!important; border:0!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-v170-ledger-capabilities {
  display:flex!important; flex-wrap:wrap!important; flex:1 1 100%!important; width:100%!important; justify-content:flex-start!important; align-items:center!important; font-size:12px!important; line-height:18px!important;
  gap:8px!important; margin:4px 0 0!important; padding:12px 0 0!important; border-top:1px solid var(--supervision-border)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-v153-capability {
  display:inline-flex!important; align-items:center!important; justify-content:flex-start!important; flex:0 0 auto!important;
  min-height:26px!important; max-width:100%!important; width:auto!important; gap:8px!important; padding:3px 8px!important;
  border:1px solid var(--supervision-border)!important; border-radius:8px!important; background:var(--boss-surface-subtle,#fafbfd)!important;
  white-space:normal!important; box-sizing:border-box!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-v153-capability :is(b,em) {
  display:inline!important; margin:0!important; padding:0!important; font-size:12px!important; line-height:18px!important;
  font-style:normal!important; font-weight:500!important; color:var(--boss-text-secondary,#53647a)!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-v153-capability.is-ready em { color:var(--boss-state-success-fg,#176b4d)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-v153-capability:is(.is-partial,.is-restricted) em { color:var(--boss-state-warning-fg,#855400)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid .boss-saas-kpi-footer > .boss-v153-metric-state {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important; grid-template-rows:24px minmax(36px,auto)!important; align-items:start!important; justify-content:start!important;
  width:auto!important; min-height:64px!important; height:auto!important; gap:4px!important; padding:0!important;
  background:transparent!important; border:0!important; border-radius:0!important; overflow:visible!important; white-space:normal!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid .boss-v153-metric-state > b {
  justify-self:start!important; width:fit-content!important; max-width:100%!important; padding:2px 8px!important;
  font-size:12px!important; line-height:18px!important; border-radius:8px!important; box-sizing:border-box!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid .boss-v153-metric-state > small {
  min-height:36px!important; margin:0!important; font-size:12px!important; line-height:18px!important;
  color:var(--boss-text-muted,#5f7085)!important; white-space:normal!important; overflow:visible!important;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity :is(.boss-ops-activity-business, .boss-ops-activity-status, .boss-ops-activity-attention) {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-table {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  overscroll-behavior-inline: contain;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity :is(.boss-activity-table-head, .boss-activity-table-row) {
  display: grid !important;
  grid-template-columns: 92px 76px 138px minmax(200px, 1.8fr) 96px 112px 136px 132px 80px !important;
  gap: 12px !important;
  min-width: 1200px !important;
  padding: 16px !important;
  align-items: start !important;
  box-sizing: border-box !important;
}

/* Earlier breakpoints hide quantity and source evidence. Keep them reachable. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity :is(.boss-activity-table-head, .boss-activity-table-row) > :is(:nth-child(5), :nth-child(7)) {
  display: block !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-table-head {
  padding-block: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--supervision-muted) !important;
  background: #f7f9fc !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-table-row {
  min-height: 100px !important;
  border-bottom: 1px solid #edf1f5 !important;
  background: #fff !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-table-row > [role="cell"] {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-table-row [role="cell"] :is(strong, em, small) {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-state > .boss-v153-metric-state {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-state .boss-v153-metric-state > :is(b, small) {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-table-row strong {
  font-size: 14px !important;
  font-weight: 550 !important;
  line-height: var(--boss-type-body-line, 22px) !important;
  color: var(--boss-text-primary) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-activity-table-row :is(em, small, .boss-v170-ledger-type) {
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  font-style: normal !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-side {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity :is(.boss-saas-status-row, .boss-v153-attention-card) {
  padding: 16px !important;
  gap: 12px !important;
  border-bottom: 1px solid #edf1f5 !important;
  border-radius: 0 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity :is(.boss-saas-status-copy strong, .boss-v153-attention-card strong, .boss-v153-attention-card p) {
  font-size: 14px !important;
  line-height: var(--boss-type-body-line, 22px) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity :is(.boss-saas-status-copy em, .boss-saas-status-copy small, .boss-v153-attention-card em, .boss-v153-attention-card small) {
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  font-style: normal !important;
}

/* Conversion: compare queues first, then read each person's actual evidence. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-rule {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px 24px !important;
  flex-wrap: wrap !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 12px 16px !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-rule > span {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-rule strong {
  font-size: 14px !important;
  line-height: var(--boss-type-body-line, 22px) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-rule :is(em, summary, p, b) {
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  font-style: normal !important;
  white-space: normal !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-queues {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-compact-switch-item {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) auto 16px !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 96px !important;
  padding: 16px !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  text-align: left !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-compact-switch-item:is(.active, .is-active) {
  border-color: #8dacc5 !important;
  background: #f0f6fb !important;
  box-shadow: inset 3px 0 #315d83 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-compact-switch-item > span {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  text-align: left !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-compact-switch-item > span > :is(strong, em) {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  align-self: flex-start !important;
  text-align: left !important;
  white-space: normal !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-compact-switch-item strong {
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: var(--boss-type-section-line, 24px) !important;
  color: var(--boss-text-primary) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-compact-switch-item em {
  display: block !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  font-style: normal !important;
  color: var(--supervision-muted) !important;
  white-space: normal !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-compact-switch-item > b {
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
  color: #315d83 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-v153-conversion-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 12px 16px !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

/* The adapter adds .card (flex-direction:column) to these articles. An explicit
 * two-row grid keeps the three sibling fields independent of that old rule. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-v153-conversion-summary > .boss-ops-fact-item {
  display: grid !important;
  grid-template-columns: max-content max-content minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  grid-template-areas: "label label label" "value unit ." !important;
  align-content: start !important;
  align-items: baseline !important;
  justify-content: start !important;
  gap: 6px 4px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 16px !important;
  background: transparent !important;
  border: 0 !important;
  border-right: 1px solid var(--supervision-border) !important;
  border-radius: 0 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-fact-item:last-child {
  border-right: 0 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-v153-conversion-summary > .boss-ops-fact-item > span {
  grid-area: label !important;
  display: block !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  justify-self: stretch !important;
  white-space: normal !important;
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  color: var(--supervision-muted) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-v153-conversion-summary > .boss-ops-fact-item > strong {
  grid-area: value !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  justify-self: start !important;
  font-size: 22px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  color: var(--boss-text-primary) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-v153-conversion-summary > .boss-ops-fact-item > em {
  grid-area: unit !important;
  display: block !important;
  width: auto !important;
  justify-self: start !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  font-style: normal !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-list {
  padding: 0 !important;
  border: 1px solid var(--supervision-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-list > .boss-saas-data-list {
  gap: 0 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-row {
  display: grid !important;
  grid-template-columns: 24px 36px minmax(136px, .85fr) minmax(220px, 1.45fr) minmax(180px, 1fr) 120px !important;
  grid-template-areas: "rank avatar person why evidence actions" !important;
  align-items: start !important;
  gap: 16px !important;
  padding: 24px 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e9eef4 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-row > .boss-console-initial {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-row :is(strong, .boss-v153-rank) {
  font-size: 14px !important;
  line-height: var(--boss-type-body-line, 22px) !important;
  font-weight: 600 !important;
  color: var(--boss-text-primary) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-row :is(em, small, .boss-ops-conversion-evidence > span) {
  display: block !important;
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
  font-style: normal !important;
  color: var(--supervision-muted) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-why > span {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
  margin: 8px 0 !important;
  font-size: 12px !important;
  line-height: var(--boss-type-caption-line, 18px) !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-evidence {
  gap: 4px !important;
  padding: 12px !important;
  border: 1px solid #e4ebf2 !important;
  border-radius: 8px !important;
  background: #f7f9fc !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-action {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  align-items: stretch !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-action button {
  min-height: var(--boss-size-control-default, 40px) !important;
  font-size: 14px !important;
  padding: 8px 10px !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-action button[data-boss-quick-followup] {
  color: #fff !important;
  border: 1px solid #315d83 !important;
  background: #315d83 !important;
  box-shadow: 0 1px 2px #20314a12 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-action button[data-boss-quick-followup]:hover:not(:disabled) {
  border-color: #264e71 !important;
  background: #264e71 !important;
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-action button[data-boss-student] {
  color: #315d83 !important;
  border: 1px solid #cbd9e5 !important;
  background: #fff !important;
  box-shadow: none !important;
}

@media (max-width: 1359px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-item {
    min-height: 144px !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-row {
    grid-template-columns: 24px 36px minmax(120px, .8fr) minmax(190px, 1.3fr) minmax(180px, 1fr) !important;
    grid-template-areas: "rank avatar person why evidence" ". . actions actions actions" !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-action {
    width: auto !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-self: start !important;
  }
}

@media (max-width: 1199px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-side {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* The expanded sidebar also needs these card rows before the phone breakpoint. */
@media (max-width: 1000px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row {
    grid-template-columns: 88px minmax(0, 1fr) 104px !important;
    grid-template-areas: "time person action" "time object object" "time metric metric" !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row > .boss-saas-cell-time { grid-area: time !important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row > .boss-saas-cell-person { grid-area: person !important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row > .boss-saas-cell-object { grid-area: object !important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row > .boss-saas-cell-metric { grid-area: metric !important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-row > .boss-saas-cell-action { grid-area: action !important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-home-stream-head {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 16px !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-row {
    grid-template-columns: 24px 36px minmax(0, 1fr) !important;
    grid-template-areas: "rank avatar person" ". why why" ". evidence evidence" ". actions actions" !important;
    gap: 12px !important;
    padding: 16px !important;
  }
}

@media (max-width: 767px) {
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-home, .boss-ops-activity, .boss-ops-conversion) {
    gap: 16px !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-header {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-home-metrics,
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-activity .boss-ops-activity-summary-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-conversion-queues {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-v153-conversion-summary {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px 0 !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-conversion .boss-ops-fact-item:nth-child(2) { border-right: 0 !important; }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-activity, .boss-ops-conversion) .boss-saas-page-heading {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "title" "description" "status" !important;
    grid-template-rows: auto auto auto !important;
  }
  body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-ops-activity, .boss-ops-conversion) .boss-saas-page-heading > .boss-saas-status-line {
    justify-self: start !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    flex-wrap: wrap !important;
  }
}

body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot :is(.boss-product-catalog-head, .boss-product-catalog-row) > :nth-child(3),
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-product-catalog-head > :nth-child(6) {
  display: block !important;
}

/* Respect the runtime permission and disclosure contract after display:flex
 * overrides. These elements receive `hidden` from existing JS checks. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-primary > .nav-link[hidden],
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-console-nav-group.navbar-nav[hidden],
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-open[hidden],
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tool-item[hidden],
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-personal[hidden],
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] .boss-management-tools-groups [data-boss-tool-group][hidden],
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossManagementTools[hidden] {
  display: none !important;
  }

/* Shared metric surface keeps six facts distinct without six floating containers. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-item:last-child { border-right:0!important; }
@media(max-width:1359px) {
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-item:nth-child(3n) { border-right:0!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-item:nth-child(-n+3) { border-bottom:1px solid var(--supervision-border)!important; }
}
@media(max-width:767px) {
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-item { border-right:0!important; border-bottom:1px solid var(--supervision-border)!important; }
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] #bossPageRoot .boss-ops-home .boss-ops-metric-item:last-child { border-bottom:0!important; }
}

/* V246: membership sections use the same light card hierarchy as the workspace. */
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-v153-rights-action-first {
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-v153-rights-action-first > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--boss-border-default);
  background: var(--boss-surface-subtle);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] :is(.boss-v153-rights-action-first, .boss-entitlement-control) > header h2 {
  margin: 0;
  color: var(--boss-text-primary);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-v153-rights-action-first > header :is(span, em) {
  color: var(--boss-text-secondary);
  font-size: 12px;
  line-height: 18px;
  font-style: normal;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-membership-priority-copy > strong {
  color: var(--boss-text-primary);
  font-size: 14px;
  font-weight: 600;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] :is(.boss-membership-priority-copy, .boss-membership-priority-meta) > em {
  color: var(--boss-text-secondary);
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-control {
  margin: 0 0 16px;
  border-color: var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-default);
  box-shadow: var(--boss-shadow-card);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-control > header {
  padding: 16px 16px 0;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-control > header :is(span, p) {
  color: var(--boss-text-secondary);
  letter-spacing: normal;
  font-weight: 400;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-plan-grid {
  padding: 0 16px;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-plan-grid > article {
  border-color: var(--boss-border-default);
  border-radius: var(--boss-radius-md);
  background: var(--boss-surface-subtle);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-plan-grid > article :is(li, strong) {
  color: var(--boss-text-primary);
  font-weight: 600;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-plan-grid > article :is(span, em, footer) {
  color: var(--boss-text-secondary);
  font-weight: 400;
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-plan-grid > article footer {
  border-color: var(--boss-border-default);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-lifecycle {
  border-color: var(--boss-border-default);
  background: var(--boss-border-default);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-lifecycle > span {
  color: var(--boss-text-secondary);
  background: var(--boss-surface-subtle);
}
body.boss-console-mode #bossConsole[data-boss-ui="light-polish"] [data-boss-current-page="memberships"] .boss-entitlement-lifecycle > span > :is(strong, b) {
  color: var(--boss-text-primary);
  font-weight: 600;
}
