:root {
  color-scheme: light;
  --ink: #182f38;
  --muted: #70818a;
  --muted-dark: #526671;
  --navy: #142d35;
  --navy-deep: #10252c;
  --teal: #16866f;
  --teal-dark: #0c6d59;
  --teal-soft: #e8f5ef;
  --mint: #a7dec9;
  --amber: #dda346;
  --amber-soft: #fff4df;
  --red: #b34443;
  --red-soft: #fff1ef;
  --line: #e4e9ec;
  --surface: #ffffff;
  --canvas: #f5f7f9;
  --shadow: 0 3px 12px rgba(28, 48, 57, .025);
  --radius: 12px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--teal-dark); text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #79baa9; outline-offset: 3px; }
input, select, textarea { border: 1px solid #dbe2e7; border-radius: 7px; background: white; color: var(--ink); min-height: 38px; padding: 8px 11px; width: 100%; }
input::placeholder { color: #8b989f; }
input[type="checkbox"] { width: 15px; min-height: 15px; height: 15px; padding: 0; accent-color: var(--teal); flex-shrink: 0; }
input[type="date"] { font-size: 13px; min-width: 132px; }
select { padding-right: 28px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; letter-spacing: -.85px; line-height: 1.2; font-weight: 680; }
h2 { font-size: 17px; font-weight: 660; letter-spacing: -.25px; line-height: 1.35; }
h3 { font-size: 14px; font-weight: 650; }
svg { display: block; }
button svg, .nav-link svg, .signout-icon svg, .filter-heading svg, .search-input-wrap svg, .sidebar-note-icon svg, .kpi-icon svg, .method-note > svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 240px; z-index: 1000; background: white; color: var(--ink); border: 2px solid var(--teal); border-radius: 7px; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: var(--muted); }
.button, .layout-button, button.primary { min-height: 38px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); background: white; border: 1px solid #dae2e6; border-radius: 7px; font-size: 12px; line-height: 1.4; font-weight: 600; white-space: nowrap; transition: border-color .15s, background .15s; }
.button:hover:not(:disabled), .layout-button:hover { border-color: #b3c4cc; background: #f8fafb; }
.button-primary, button.primary { color: white; background: var(--navy); border-color: var(--navy); }
.button-primary:hover:not(:disabled), button.primary:hover { background: #23444e; border-color: #23444e; }
.button-primary svg { width: 16px; height: 16px; }
.button-quiet { background: transparent; }
.button-small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.button-small svg { width: 15px; height: 15px; }
.text-button { background: none; border: 0; padding: 4px 0; color: var(--teal-dark); font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--navy); text-decoration: underline; }
.icon-button, .pane-close { background: transparent; border: 1px solid transparent; border-radius: 6px; width: 30px; height: 30px; padding: 5px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-button:hover:not(:disabled), .pane-close:hover { color: var(--ink); border-color: var(--line); background: #f5f8f9; }
.pane-close { font-size: 22px; font-weight: 350; line-height: 1; width: 26px; height: 26px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Workspace shell */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 222px; background: var(--navy); color: #b8c9ce; padding: 31px 15px 0; display: flex; flex-direction: column; z-index: 50; }
.brand { display: flex; gap: 11px; align-items: center; color: #f5faf8; padding: 0 10px 35px; }
.brand-symbol { width: 33px; height: 37px; color: var(--mint); flex-shrink: 0; }
.brand-symbol svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-symbol svg path:first-child { fill: #a7dec920; }
.brand strong { font-size: 13px; letter-spacing: .9px; white-space: nowrap; }
.brand small { display: block; font-size: 10.5px; color: #9eb4bb; margin-top: 2px; letter-spacing: .15px; }
.customer-brand { padding-bottom: 20px; }
.customer-brand > span:last-child { min-width: 0; }
.customer-brand strong { display: block; white-space: normal; overflow-wrap: anywhere; font-size: 12px; letter-spacing: .2px; }
.customer-brand .brand-symbol { color: var(--tenant-accent, var(--mint)); }
.customer-view .nav-active-dot, .combined-view .nav-active-dot { background: var(--tenant-accent, #a5dbba); }
.customer-brand:has(.customer-logo) { flex-direction: column; align-items: flex-start; }
.customer-logo { display: block; max-width: 174px; width: auto; max-height: 58px; object-fit: contain; background: white; border-radius: 5px; padding: 5px; }
.customer-selector { margin: 0 9px 26px; }
.customer-selector label, .customer-selector-caption { display: block; color: #90aeb7; font-size: 9px; letter-spacing: .2px; margin-bottom: 7px; }
.customer-selector > strong { display: block; font-size: 11px; line-height: 1.5; font-weight: 550; color: #d8e5e8; }
.customer-selector-controls { display: flex; gap: 5px; }
.customer-selector select { min-width: 0; width: 100%; min-height: 34px; font-size: 10px; border-color: #4a656d; background: #29444d; color: #edf4f5; padding-left: 8px; padding-right: 18px; }
.customer-selector select option { background: white; color: var(--ink); }
.customer-selector button { border: 1px solid #5e8177; border-radius: 6px; background: #365e51; color: #edf8f2; font-size: 9px; padding: 6px 7px; }
.customer-selector button:hover { background: #477664; }
.customer-context-label { border: 1px solid #dce6e2; border-color: color-mix(in srgb, var(--tenant-accent, #16866f) 20%, white); border-radius: 4px; background: #eff5f1; background: color-mix(in srgb, var(--tenant-accent, #16866f) 7%, white); color: #5a7d6c; font-size: 10px; padding: 2px 7px; font-weight: 550; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combined-scope-panel { background: #eef4f6; border: 1px solid #d9e5e9; border-radius: 10px; padding: 17px 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; position: relative; z-index: 40; }
.combined-scope-panel h2 { font-size: 16px; }
.combined-scope-panel p { color: #758d97; font-size: 11px; line-height: 1.65; margin-top: 5px; }
.combined-customer-filter { width: 250px; flex-shrink: 0; }
.combined-customer-filter .filter-popover { left: auto; right: 0; }
.combined-view .customer-context-label { background: #eaf0f5; border-color: #cfdde6; color: #577b91; }
.combined-view .method-note strong { color: #527483; }
.customer-main { max-width: 1200px; }
.customer-main > section { margin-bottom: 28px; }
.customer-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.customer-card { padding: 21px; display: flex; flex-direction: column; align-items: flex-start; }
.customer-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 18px; }
.customer-monogram { width: 34px; height: 34px; border-radius: 8px; background: #eaf3ee; color: #3e8267; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.current-customer-badge { font-size: 9px; color: #648875; background: #f1f7f3; border: 1px solid #e0ebe4; padding: 3px 6px; border-radius: 4px; }
.customer-card h3 { font-size: 16px; overflow-wrap: anywhere; }
.customer-card p { color: var(--muted); font-size: 11px; margin-top: 7px; margin-bottom: 22px; line-height: 1.6; }
.customer-card form { margin-top: auto; }
.combined-workspace-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px; border-radius: 12px; border: 1px solid #cbdde5; background: #edf4f7; }
.combined-workspace-card h2 { margin: 8px 0; font-size: 20px; }
.combined-workspace-card p { font-size: 12px; line-height: 1.7; color: #708995; max-width: 650px; }
.import-customer-target { background: #edf6f0; border: 1px solid #d8e8df; border-radius: 8px; padding: 11px 15px; margin: 18px 0 22px; font-size: 12px; color: #527763; }
.import-customer-target strong { color: #2f684d; }
.request-source { color: #5c8296; background: #eff5f8; padding: 2px 6px; border-radius: 4px; }
.nav-heading { font-size: 9px; letter-spacing: 1.5px; font-weight: 650; padding: 0 13px; margin-bottom: 12px; color: #7c9ca6; }
.main-nav { display: flex; flex-direction: column; gap: 5px; margin-bottom: 31px; }
.nav-link { padding: 12px 13px; border-radius: 7px; display: flex; align-items: center; gap: 11px; font-size: 12px; color: #b5c7cd; min-height: 44px; }
.nav-link svg { width: 17px; height: 17px; color: #86a5af; }
.nav-link:hover { background: #ffffff08; color: white; }
.nav-link.is-active { background: #295045; color: #e3f6eb; font-weight: 600; }
.nav-link.is-active svg { color: var(--mint); }
.nav-active-dot { width: 5px; height: 5px; background: #a5dbba; border-radius: 100%; margin-left: auto; }
.sidebar-note { margin: auto 10px 24px; padding-top: 28px; font-size: 10px; line-height: 1.65; color: #87a3ad; }
.sidebar-note strong { display: block; font-weight: 500; font-size: 11px; color: #cadadf; margin: 9px 0 4px; }
.sidebar-note-icon { color: #8bbaa7; }
.sidebar-note-icon svg { width: 20px; height: 20px; }
.sidebar-account { display: flex; gap: 9px; padding: 17px 0 20px; border-top: 1px solid #ffffff12; align-items: center; }
.avatar { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #d7eddf; background: #37584f; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.account-info { min-width: 0; flex: 1; }
.account-info > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #dbe6e9; }
.account-info small { display: block; font-size: 9px; color: #87a2ac; margin-top: 2px; }
.sidebar-account form { margin: 0; }
.signout-icon { background: none; border: none; color: #90acb5; padding: 3px; }
.signout-icon:hover { color: white; }
.signout-icon svg { width: 16px; height: 16px; }
.workspace { margin-left: 222px; padding: 34px 32px 0; max-width: 2000px; }
.dashboard-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 23px; }
.header-eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.prototype-label { padding: 1px 7px; color: #768590; background: #eaf0f3; border: 1px solid #e0e8ec; border-radius: 4px; font-size: 9px; font-weight: 550; }
.page-description { color: var(--muted); font-size: 12px; margin-top: 9px; }
.header-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dataset-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 17px; font-size: 11px; }
.dataset-info { display: flex; gap: 9px; align-items: center; color: var(--muted); flex-wrap: wrap; }
.dataset-info strong { color: var(--muted-dark); font-weight: 550; }
.status-dot { width: 6px; height: 6px; background: #a5b7bf; border-radius: 50%; flex-shrink: 0; }
.status-dot.ready { background: #269779; box-shadow: 0 0 0 3px #26977915; }
.status-dot.warning { background: var(--amber); }
.dataset-separator { color: #c2cdd2; padding: 0 1px; }
.data-quality-button { display: inline-flex; gap: 5px; align-items: center; border: none; padding: 3px 0; background: transparent; font-size: 10px; color: #84734d; font-weight: 500; white-space: nowrap; }
.data-quality-button svg { width: 13px; height: 13px; }
.data-quality-button.no-issues { color: var(--teal); }
.data-quality-button:hover { text-decoration: underline; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid #e2d4b6; padding: 16px 19px; border-radius: 9px; background: var(--amber-soft); margin-bottom: 20px; font-size: 12px; }
.notice p { margin-top: 4px; }
.notice-error { background: var(--red-soft); border-color: #f1cfca; color: #923a35; }

/* Filters */
.filter-panel { padding: 18px 21px 20px; position: relative; z-index: 30; margin-bottom: 28px; }
.filter-heading-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.filter-panel.is-collapsed .filter-heading-row { margin-bottom: 0; }
.filter-heading { display: flex; gap: 8px; align-items: center; }
.filter-heading > svg { width: 17px; height: 17px; stroke-width: 1.7; color: #668089; }
.filter-heading h2 { font-size: 13px; }
.count-badge { display: inline-flex; justify-content: center; align-items: center; min-width: 19px; height: 19px; padding: 0 5px; background: var(--teal-soft); border-radius: 5px; color: var(--teal-dark); font-size: 10px; font-weight: 600; }
.filter-heading-actions { display: flex; gap: 17px; align-items: center; }
.filter-heading-actions .text-button { font-size: 10px; }
.filter-collapse { width: 24px; height: 24px; }
.filter-collapse svg { width: 14px; height: 14px; }
.filter-collapse[aria-expanded="false"] svg { transform: rotate(180deg); }
.live-toggle { display: flex; gap: 7px; align-items: center; font-size: 10px; color: var(--muted); cursor: pointer; position: relative; }
.live-toggle input { position: absolute; opacity: 0; width: 28px; height: 16px; left: 0; margin: 0; }
.toggle-track { width: 25px; height: 14px; background: #c5d0d6; border-radius: 10px; padding: 2px; transition: background .15s; }
.toggle-track::after { content: ""; display: block; background: white; width: 10px; height: 10px; border-radius: 100%; box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.live-toggle input:checked + .toggle-track { background: #2e997c; }
.live-toggle input:checked + .toggle-track::after { transform: translateX(11px); }
.live-toggle input:focus-visible + .toggle-track { outline: 3px solid #79baa9; outline-offset: 3px; }
.filter-primary-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: end; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: 10px; font-weight: 600; color: #6b7b83; }
.field input, .field select { height: 35px; min-height: 35px; padding-top: 7px; padding-bottom: 7px; font-size: 11px; }
.date-basis-field { flex: 0 0 130px; }
.date-fields { display: flex; gap: 8px; align-items: end; }
.date-fields .field { width: 133px; }
.date-arrow { font-size: 15px; color: #a3b0b7; padding-bottom: 7px; }
.date-reset { align-self: end; padding-bottom: 10px; font-size: 10px; margin-right: 5px; }
.date-quick-picks { display: flex; align-items: end; gap: 5px; flex-wrap: wrap; }
.date-quick-button { font: inherit; font-size: 11px; padding: 10px 9px; border: 1px solid #d9e1e4; border-radius: 6px; background: #fff; color: #42555d; cursor: pointer; white-space: nowrap; }
.date-quick-button:hover { border-color: #8099a0; }
.date-quick-button.is-selected { color: #fff; background: #17353a; border-color: #17353a; }
.date-quick-button:focus-visible { outline: 2px solid #428e94; outline-offset: 2px; }
.date-quick-picks .date-reset { padding: 10px 6px; margin: 0; }

.search-field { flex: 1; min-width: 210px; }
.search-input-wrap { display: flex; align-items: center; position: relative; }
.search-input-wrap svg { width: 14px; height: 14px; position: absolute; left: 11px; color: #94a4ad; pointer-events: none; }
.search-input-wrap input { padding-left: 32px; }
.outcome-field { flex: 0 0 150px; }
.dimension-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.filter-menu { position: relative; min-width: 0; }
.filter-menu-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; border: 1px solid #dfe6e9; border-radius: 7px; background: #fff; min-height: 52px; padding: 8px 10px; gap: 8px; text-align: left; }
.filter-menu-trigger:hover, .filter-menu-trigger[aria-expanded="true"] { border-color: #a1b8bc; background: #fcfdfd; }
.filter-menu-trigger.has-selection { background: #f5fbf8; border-color: #a1cdbc; }
.filter-menu-trigger > span { min-width: 0; }
.filter-menu-trigger small { display: block; font-size: 9px; color: #89969c; font-weight: 500; margin-bottom: 2px; }
.filter-menu-trigger strong { display: block; font-size: 11px; color: var(--muted-dark); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-menu-trigger.has-selection strong { color: var(--teal-dark); }
.filter-menu-trigger svg { width: 12px; height: 12px; color: #81959e; }
.filter-popover { position: absolute; left: 0; top: calc(100% + 7px); width: 305px; max-width: calc(100vw - 40px); border: 1px solid #d7e1e5; box-shadow: 0 10px 34px rgba(23, 48, 58, .14); border-radius: 10px; padding: 12px; background: white; z-index: 50; }
.filter-menu:nth-last-child(-n + 2) .filter-popover { left: auto; right: 0; }
.filter-popover input[type="search"] { font-size: 12px; min-height: 34px; }
.filter-popover-tools { display: flex; justify-content: space-between; align-items: center; padding: 9px 3px; font-size: 10px; color: var(--muted); }
.filter-popover-tools .text-button { font-size: 10px; }
.filter-options { max-height: 258px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.filter-option { display: flex; align-items: center; gap: 9px; padding: 7px 5px; cursor: pointer; border-radius: 5px; }
.filter-option:hover { background: #f4f8f7; }
.filter-option:has(input:checked) { background: #f1f9f4; }
.filter-option-label { font-size: 11px; overflow-wrap: anywhere; flex: 1; }
.filter-option-count { font-size: 9px; color: #99a6ac; font-variant-numeric: tabular-nums; }
.filter-option input { margin: 0; }
.filter-options-empty { padding: 16px 5px; font-size: 12px; color: var(--muted); }
.filter-footnote { color: #8d7544; font-size: 10px; margin-top: 12px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.filter-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 7px 4px 9px; background: #edf5f1; border: 1px solid #d9e8df; color: #416b5c; font-size: 10px; border-radius: 5px; max-width: 340px; }
.filter-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-chip button { border: none; background: none; padding: 0 2px; font-size: 14px; line-height: 1; color: #699380; }
.filter-chip button:hover { color: #1b4b39; }

/* Summary */
.summary-section { margin-bottom: 23px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-heading p { color: var(--muted); font-size: 10px; margin-top: 5px; }
.metric-picker { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); }
.metric-picker select { width: auto; min-width: 154px; font-size: 11px; min-height: 33px; padding: 6px 26px 6px 10px; color: var(--ink); font-weight: 550; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-card { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 17px 19px 17px; box-shadow: var(--shadow); min-width: 0; }
.kpi-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.kpi-heading h3 { font-size: 11px; font-weight: 550; color: #647681; }
.kpi-icon { width: 27px; height: 27px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #728c96; background: #f1f5f7; }
.kpi-icon svg { width: 15px; height: 15px; stroke-width: 1.6; }
.kpi-value { display: block; font-size: 33px; letter-spacing: -1.1px; font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1.1; }
.kpi-card > p { font-size: 10px; color: #84929a; margin-top: 10px; }
.kpi-fulfilled .kpi-icon { background: #e8f5ef; color: #3e9a78; }
.kpi-unfulfilled .kpi-icon { background: #fdf3e2; color: #c09241; }
.kpi-fulfilled .kpi-value { color: #217e65; }
.kpi-unfulfilled .kpi-value { color: #b28232; }
.kpi-rate { background: #f6fbf8; border-color: #dceae1; }
.kpi-rate .kpi-icon { background: #e4f1e8; color: #55936a; }
.scope-facts { display: flex; gap: 0; flex-wrap: wrap; padding: 13px 2px 0; color: #8b99a0; font-size: 10px; }
.scope-facts span { display: inline-flex; gap: 4px; align-items: center; }
.scope-facts span:not(:last-child)::after { content: "·"; color: #b3bfc5; padding: 0 12px; }
.scope-facts strong { color: #526b76; font-weight: 600; }

/* Charts */
.chart-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); gap: 20px; margin-bottom: 24px; }
.chart-grid.single-panel { grid-template-columns: minmax(0, 1fr); }
.chart-grid.no-panels { display: none; }
.chart-panel, .outcome-panel { padding: 20px 21px 15px; min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { font-size: 15px; }
.panel-heading p { font-size: 10px; color: var(--muted); margin-top: 5px; }
.panel-tools { display: flex; gap: 9px; align-items: center; }
.segmented-control { display: inline-flex; background: #f4f7f8; border: 1px solid #e8edef; border-radius: 6px; padding: 2px; }
.segmented-control button { min-width: 39px; padding: 4px 7px; border: none; background: none; font-size: 9px; color: #88969c; border-radius: 4px; }
.segmented-control button.is-selected { background: white; color: #425e67; box-shadow: 0 1px 3px #1c344b14; font-weight: 600; }
.chart-legend { display: flex; justify-content: flex-end; gap: 15px; font-size: 9px; color: #83939a; margin: 18px 0 4px; }
.chart-legend > span { display: flex; gap: 5px; align-items: center; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); flex-shrink: 0; }
.fulfilled-dot { background: #54a88b; }
.unfulfilled-dot { background: #e8bd72; }
.trend-chart { height: 188px; width: 100%; }
.trend-chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #a1aeb5; font-size: 12px; }
.chart-gridline { stroke: #edf1f3; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-axis-text { fill: #96a5ad; font-size: 10px; font-family: inherit; }
.chart-bar-fulfilled { fill: #67b397; }
.chart-bar-unfulfilled { fill: #eccb90; }
.trend-bar:hover .chart-bar-fulfilled, .trend-bar:focus .chart-bar-fulfilled { fill: #208a6d; }
.trend-bar:hover .chart-bar-unfulfilled, .trend-bar:focus .chart-bar-unfulfilled { fill: #d9a34f; }
.chart-caption { color: #a0adb3; font-size: 9px; margin-top: 8px; }
.status-overview { margin: 24px 0 19px; height: 9px; }
.status-overview svg { width: 100%; height: 9px; border-radius: 5px; overflow: hidden; }
.status-list { display: flex; flex-direction: column; gap: 12px; }
.status-row { display: flex; gap: 9px; align-items: center; }
.status-row .legend-dot { margin-top: 1px; }
.status-label { font-size: 11px; color: #637781; flex: 1; min-width: 0; }
.status-label small { font-size: 9px; color: #9aa6ac; margin-left: 5px; }
.status-value { color: #435e68; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-percent { font-size: 9px; color: #99a8ae; width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.status-fulfilled { fill: #67b397; background: #67b397; }
.status-demand-only { fill: #eccb90; background: #eccb90; }
.status-not-despatched { fill: #cda566; background: #cda566; }
.status-processing { fill: #a5b9c4; background: #a5b9c4; }
.status-other { fill: #c2cbd1; background: #c2cbd1; }
.outcome-note { font-size: 9px; line-height: 1.6; color: #9aa7ae; border-top: 1px solid #edf0f2; padding-top: 13px; margin-top: 18px; }

/* Breakdown */
.breakdown-panel { overflow: hidden; margin-bottom: 18px; }
.breakdown-heading { padding: 23px 23px 20px; align-items: center; }
.section-kicker { font-size: 8px; letter-spacing: 1.4px; font-weight: 650; color: #95a4ab; margin-bottom: 7px; }
.breakdown-heading h2 { font-size: 19px; }
.breakdown-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 23px; border-bottom: 1px solid var(--line); }
.group-tabs { display: flex; gap: 23px; }
.group-tabs button { background: transparent; border: none; border-bottom: 2px solid transparent; padding: 0 0 14px; font-size: 11px; color: #89979f; font-weight: 500; }
.group-tabs button:hover { color: var(--teal-dark); }
.group-tabs button.is-selected { border-bottom-color: var(--teal); color: var(--teal-dark); font-weight: 650; }
.sort-control { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #8b9aa1; padding-bottom: 11px; }
.sort-control select { width: auto; border: none; background: transparent; min-height: 25px; padding: 2px 19px 2px 4px; font-size: 10px; color: #5d7580; }
.drill-path { display: flex; align-items: center; gap: 17px; border-bottom: 1px solid var(--line); background: #f7faf9; padding: 11px 22px; }
.back-button { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: none; padding: 0; font-size: 10px; color: var(--teal-dark); white-space: nowrap; }
.back-button svg { width: 13px; height: 13px; }
#breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 10px; color: #688479; }
.breadcrumb-separator { color: #acbeb5; }
.breadcrumb-root { color: #97a59e; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.data-table th { padding: 12px 13px; color: #86969e; background: #fafcfd; font-weight: 500; font-size: 10px; border-bottom: 1px solid #eaf0f2; white-space: nowrap; }
.data-table td { padding: 14px 13px; border-bottom: 1px solid #edf1f3; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table th.numeric, .data-table td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown-table { table-layout: auto; min-width: 660px; }
.breakdown-table .rank-column { width: 36px; padding-left: 23px; padding-right: 4px; }
.breakdown-table td.rank-cell { color: #a6b3ba; font-size: 9px; padding-left: 23px; padding-right: 4px; }
.breakdown-table td:nth-child(2) { width: 35%; min-width: 200px; }
.breakdown-table td.numeric { font-size: 12px; color: #45616c; }
.breakdown-table td.demand-cell { font-weight: 650; color: #24414c; }
.breakdown-table td.fulfilled-cell { color: #548c75; }
.breakdown-table td.unfulfilled-cell { color: #b08b4b; }
.breakdown-table .rate-column { min-width: 138px; padding-left: 26px; }
.rate-cell { padding-left: 26px !important; min-width: 138px; }
.rate-display { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.rate-display svg { width: 66px; height: 6px; border-radius: 4px; overflow: hidden; }
.rate-background { fill: #f5e8d0; }
.rate-fill { fill: #7dbb9e; }
.rate-display > span { min-width: 36px; font-size: 10px; text-align: right; color: #5c7970; font-weight: 550; font-variant-numeric: tabular-nums; }
.rate-display.rate-low > span { color: #a48450; }
.row-action-column { width: 42px; padding-right: 20px !important; }
.group-row:hover { background: #f8fbfa; }
.group-link { display: block; background: none; padding: 0; border: 0; text-align: left; max-width: 100%; }
.group-name { font-size: 12px; color: #39545e; font-weight: 550; line-height: 1.4; display: block; }
.group-subtitle { display: block; font-size: 10px; color: #96a3ab; font-weight: 400; margin-top: 3px; line-height: 1.45; max-width: 350px; }
.group-link:hover .group-name { color: var(--teal-dark); text-decoration: underline; }
.row-drill { width: 25px; height: 25px; border: none; background: transparent; color: #a5b7bc; display: flex; align-items: center; justify-content: center; border-radius: 5px; }
.row-drill svg { width: 14px; height: 14px; }
.group-row:hover .row-drill { color: #46876d; background: #ebf4ee; }
.table-sort { background: none; border: none; padding: 0; font-size: inherit; color: inherit; display: inline-flex; align-items: center; gap: 5px; }
.table-sort.is-sorted { color: #527268; }
.table-sort.is-sorted::after { content: "↓"; font-size: 11px; }
.table-sort.is-sorted[data-direction="asc"]::after { content: "↑"; }
.table-state { text-align: center !important; padding: 55px 20px !important; color: #9aabb2; font-size: 12px; }
.table-state strong { display: block; font-size: 16px; font-weight: 550; color: #496570; margin-bottom: 7px; }
.table-state .button { margin-top: 15px; }
.table-state .loading-spinner { vertical-align: middle; margin-right: 9px; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 23px; border-top: 1px solid var(--line); color: #99a6ad; font-size: 10px; }
.pagination-controls { display: flex; align-items: center; gap: 10px; }
.pagination-controls > label { display: flex; align-items: center; gap: 6px; margin-right: 13px; }
.pagination-controls select { width: 51px; min-height: 28px; padding: 2px 16px 2px 6px; font-size: 10px; border-color: #e5ebee; }
.pagination-controls .icon-button { border-color: #e6ecee; width: 27px; height: 27px; }
.pagination-controls .icon-button svg { width: 13px; height: 13px; }
.table-footnote { padding: 11px 23px; background: #f7faf8; border-top: 1px solid #e9efeb; font-size: 10px; color: #84958b; }
.method-note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 3px; color: #97a6ae; }
.method-note > svg { width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; }
.method-note p { font-size: 9px; line-height: 1.75; flex: 1; }
.method-note strong { color: #748a95; font-weight: 550; }
.method-note .pane-close { margin-top: -5px; font-size: 18px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; padding: 23px 0 27px; border-top: 1px solid #e8edef; margin-top: 10px; color: #a7b3ba; font-size: 9px; }
.is-loading .kpi-value { opacity: .5; }
.is-loading .breakdown-table tbody { opacity: .55; }
.is-loading .trend-chart { opacity: .6; }
.loading-spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid #dce8e3; border-top-color: var(--teal); border-radius: 50%; animation: rotate .8s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Detail drawers */
dialog { color: var(--ink); background: white; padding: 0; border: 0; box-shadow: -10px 0 60px #112e3925; }
dialog::backdrop { background: rgba(14, 33, 40, .38); backdrop-filter: blur(2px); }
.side-dialog, .requests-dialog { width: 500px; max-width: 100vw; height: 100%; max-height: 100vh; inset: 0 0 0 auto; margin: 0; overflow-y: auto; }
.requests-dialog { width: 730px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 27px 28px 23px; position: sticky; top: 0; background: white; z-index: 2; }
.dialog-heading h2 { font-size: 23px; margin-top: 8px; }
.dialog-heading p { font-size: 11px; color: var(--muted); margin-top: 7px; }
.dialog-close { font-size: 24px; }
.dialog-body { padding: 25px 28px 32px; }
.dialog-intro { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 25px; }
.dialog-section-title { margin-top: 30px; }
.quality-check { padding: 13px 14px; margin-top: 10px; background: #f6f8f9; border: 1px solid #e8edf0; border-radius: 8px; }
.quality-check.warning { background: #fffbf3; border-color: #f0e5cc; }
.quality-check.error { background: #fff4f2; border-color: #f1dbd6; }
.quality-check.success { background: #f2faf5; border-color: #dcebe0; }
.quality-check > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; align-items: center; }
.quality-check strong { font-weight: 600; }
.quality-check p { color: #83929b; font-size: 11px; line-height: 1.65; margin-top: 5px; }
.quality-count { font-variant-numeric: tabular-nums; background: #00000005; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.source-file { padding: 13px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 15px; }
.source-file strong { font-size: 11px; font-weight: 550; }
.source-file span { color: #8a9aa2; font-size: 10px; }
.source-file small { display: block; margin-top: 2px; color: #b09055; font-size: 9px; }
.method-box { padding: 17px; border-radius: 9px; background: #f5f8f7; margin-top: 28px; }
.method-box h3 { color: #577367; font-size: 12px; }
.method-box ul { margin: 11px 0 0; padding-left: 18px; color: #8b9b93; font-size: 10px; line-height: 1.7; }
.method-box li + li { margin-top: 6px; }
.request-card { border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; overflow: hidden; }
.request-card-header { display: flex; justify-content: space-between; gap: 12px; padding: 15px 16px 0; align-items: center; }
.request-key { font-size: 12px; color: #4b6872; font-weight: 650; }
.request-status { border-radius: 4px; color: #a17e3e; background: #fcf3e1; padding: 3px 7px; font-size: 9px; font-weight: 550; }
.request-status.fulfilled { color: #438466; background: #edf7f1; }
.request-card-product { padding: 8px 16px 0; font-size: 11px; line-height: 1.6; color: #72858e; }
.request-card-product strong { color: #425e68; font-weight: 550; }
.request-card-meta { display: flex; gap: 11px; flex-wrap: wrap; padding: 10px 16px 14px; color: #9aa8af; font-size: 10px; }
.request-card details { border-top: 1px solid #edf1f3; }
.request-card summary { padding: 9px 16px; font-size: 10px; color: var(--teal-dark); cursor: pointer; background: #fcfdfd; }
.request-parts-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.request-parts-table th { font-size: 9px; font-weight: 500; color: #97a7ae; background: #f8fafb; }
.request-parts-table td, .request-parts-table th { padding: 8px 12px; text-align: left; border-top: 1px solid #eef2f3; }
.request-parts-table td:last-child, .request-parts-table th:last-child { text-align: right; }
.request-parts-table td { color: #6b818a; }
.request-parts-table .part-description { color: #98a8ae; display: block; font-size: 9px; margin-top: 2px; }
.request-parts-table-wrap { overflow-x: auto; }
.dialog-pagination { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; border-top: 1px solid var(--line); background: white; position: sticky; bottom: 0; font-size: 10px; color: #9aa8af; }
.toast { position: fixed; right: 28px; bottom: 25px; max-width: min(430px, calc(100vw - 40px)); background: var(--navy); color: #eff8f4; border: 1px solid #355754; border-radius: 10px; padding: 13px 18px; box-shadow: 0 7px 28px #102d332d; font-size: 12px; z-index: 100; }

/* Shared authentication and administration pages */
.auth-shell, .login-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(ellipse at 20% 20%, #e2eee7 0, transparent 52%), var(--canvas); }
.auth-card, .login-card { width: 100%; max-width: 460px; padding: 39px; background: white; border: 1px solid #dfe7e5; border-radius: 16px; box-shadow: 0 13px 60px #1c3b3310; }
.auth-card h1, .login-card h1 { font-size: 28px; margin-top: 14px; }
.auth-card p, .login-intro { color: var(--muted); font-size: 13px; margin: 15px 0 24px; line-height: 1.65; }
.form-field, .login-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; font-size: 12px; font-weight: 550; color: #6c8089; }
.form-field input, .login-field input { height: 43px; font-size: 13px; font-weight: 400; }
.auth-card .button, .login-button { width: 100%; min-height: 43px; font-size: 13px; }
.login-button { border: 1px solid var(--navy); border-radius: 7px; background: var(--navy); color: white; font-weight: 550; }
.login-error, .validation-summary-errors { color: var(--red); font-size: 12px; }
.validation-summary-errors ul { list-style: none; padding: 10px 13px; background: var(--red-soft); border: 1px solid #f1d8d4; border-radius: 6px; }
.field-validation-error { color: var(--red); font-size: 11px; font-weight: 400; }
.page-header { padding: 30px 40px; background: white; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.page-header h1 { font-size: 27px; margin-top: 7px; }
.page-header p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.account-actions form { margin: 0; }
.user-main, .admin-main { padding: 30px 40px; margin: 0 auto; max-width: 1600px; }
.user-card, .admin-panel { padding: 24px; margin-bottom: 22px; overflow-x: auto; }
.user-card > h2 { margin-bottom: 16px; }
.user-card .subtitle { font-size: 12px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.user-grid, .usage-filters { display: flex; gap: 18px; flex-wrap: wrap; align-items: end; margin-bottom: 15px; }
.user-grid > label, .usage-filters > label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--muted-dark); min-width: 180px; }
.user-grid .checkbox-label { flex-direction: row; align-items: center; padding-bottom: 10px; min-width: unset; }
.user-grid > button, .usage-filters > button, .user-actions > button { background: var(--navy); color: white; border: 0; border-radius: 6px; padding: 10px 13px; font-size: 12px; min-height: 38px; }
.user-message { padding: 12px 17px; background: var(--teal-soft); border: 1px solid #cee5d8; border-radius: 8px; margin-bottom: 20px; color: #458269; font-size: 12px; }
.user-error { color: var(--red); background: var(--red-soft); border-color: #f1d8d4; }
.user-table { border-collapse: collapse; width: 100%; font-size: 11px; }
.user-table td, .user-table th { border-bottom: 1px solid var(--line); padding: 11px 10px; text-align: left; }
.user-table th { font-size: 10px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.user-actions { display: flex; gap: 7px; align-items: center; }
.user-actions input { min-width: 145px; max-width: 180px; font-size: 10px; }
.user-actions > button { font-size: 10px; padding: 7px 9px; white-space: nowrap; }
.user-actions .user-delete-button { background: #faf1ef; color: #a65a50; border: 1px solid #ead8d4; }
.usage-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.usage-stat { padding: 21px; }
.usage-stat span { font-size: 12px; color: var(--muted); }
.usage-stat strong { display: block; font-size: 28px; margin-top: 10px; }
.usage-footnote { font-size: 11px; color: var(--muted); line-height: 1.7; }
.usage-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 15px; }
.usage-results-heading > span { font-size: 11px; color: var(--muted); }
.usage-table-wrap { overflow-x: auto; }
.usage-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-top: 20px; color: var(--muted); font-size: 11px; }
.usage-numeric { font-variant-numeric: tabular-nums; }
.auth-card .eyebrow { margin: 0; font-size: 10px; color: var(--muted); }
.mfa-secret { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; white-space: normal; background: #f2f6f4; border: 1px solid #dae7df; color: #376b52; padding: 14px 16px; border-radius: 8px; font-size: 13px; letter-spacing: .7px; line-height: 1.8; }
.mfa-recovery-list { list-style: none; padding: 14px 16px; margin: 15px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; background: #f6f8f9; border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: #5d7380; }
.mfa-recovery-list li { overflow-wrap: anywhere; }
.validation-summary-valid { display: none; }
.button.primary { color: white; background: var(--navy); border-color: var(--navy); }
.button.primary:hover:not(:disabled) { background: #23444e; border-color: #23444e; }
.button.danger { color: #a65a50; background: #faf1ef; border-color: #ead8d4; }
.notice.error { color: var(--red); background: var(--red-soft); border-color: #f1d8d4; }
.admin-main > .panel { padding: 24px; margin-bottom: 22px; }
.admin-main > .panel > h2 { margin-bottom: 16px; }
.admin-main .muted { font-size: 12px; line-height: 1.7; margin: 15px 0; }
.form-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: end; margin: 17px 0; }
.form-grid .form-field { margin: 0; flex: 1; min-width: 180px; }
.checkbox-field { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted-dark); }
.form-grid > .checkbox-field { padding: 10px 0; }
.table-actions { display: flex; gap: 8px; align-items: center; }
.table-actions input:not([type="checkbox"]):not([type="hidden"]) { min-width: 150px; max-width: 200px; min-height: 32px; font-size: 11px; }
.table-actions .button { min-height: 32px; padding: 6px 9px; font-size: 10px; }
.admin-main .data-table { min-width: 600px; }
.admin-main .data-table th { font-size: 10px; }
.admin-main .data-table td { font-size: 11px; }
.admin-main .pagination { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 18px; font-size: 11px; color: var(--muted); }

@media (min-width: 1700px) {
  .workspace { padding-left: 45px; padding-right: 45px; }
  .kpi-card { padding: 22px 24px; }
  .kpi-value { font-size: 37px; }
  .trend-chart { height: 220px; }
  .chart-panel, .outcome-panel { padding: 24px 26px 19px; }
}
@media (max-width: 1300px) {
  .workspace { padding: 27px 24px 0; }
  .sidebar { width: 208px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 208px; }
  h1 { font-size: 29px; }
  .header-actions .button { font-size: 10px; padding: 8px 10px; }
  .header-actions .button svg { width: 15px; height: 15px; }
  .search-field { min-width: 200px; }
  .outcome-field { flex-basis: 145px; }
  .filter-primary-row { gap: 11px; }
  .dimension-filters { gap: 8px; }
  .kpi-card { padding: 16px; }
  .kpi-value { font-size: 30px; }
  .kpi-grid { gap: 12px; }
  .chart-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 16px; }
  .chart-panel, .outcome-panel { padding: 18px 17px 14px; }
  .segmented-control button { min-width: 33px; padding-left: 5px; padding-right: 5px; }
  .group-tabs { gap: 18px; }
}
@media (max-width: 1120px) {
  .sidebar { width: 190px; }
  .workspace { margin-left: 190px; padding-left: 20px; padding-right: 20px; }
  .brand { padding-left: 4px; padding-right: 4px; gap: 8px; }
  .brand strong { font-size: 11px; }
  .brand small { font-size: 9px; }
  .brand-symbol { width: 28px; }
  .nav-link { padding-left: 11px; padding-right: 11px; font-size: 11px; }
  .dashboard-header { flex-wrap: wrap; gap: 16px; }
  .header-actions { justify-content: flex-start; }
  .dimension-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .filter-menu:nth-child(3) .filter-popover, .filter-menu:nth-child(6) .filter-popover { right: 0; left: auto; }
  .filter-menu:nth-child(4) .filter-popover { right: auto; left: 0; }
  .chart-grid { grid-template-columns: 1fr; }
  .outcome-panel { display: grid; grid-template-columns: 1fr 1.5fr; column-gap: 27px; align-items: center; }
  .outcome-panel .panel-heading { grid-row: 1; grid-column: 1; }
  .outcome-panel .status-overview { grid-row: 2; grid-column: 1; margin: 10px 0; }
  .outcome-panel .status-list { grid-row: 1 / 4; grid-column: 2; }
  .outcome-panel .outcome-note { grid-row: 3; grid-column: 1; border: 0; margin: 0; padding: 4px 0 0; }
  .group-tabs { gap: 14px; }
  .group-tabs button { font-size: 10px; }
  .breakdown-toolbar { padding-left: 19px; padding-right: 19px; }
}
@media (max-width: 900px) {
  .sidebar { position: static; width: auto; height: auto; padding: 16px 20px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { padding: 0; }
  .customer-selector { margin: 0; min-width: 190px; max-width: 320px; }
  .customer-selector label, .customer-selector-caption { font-size: 8px; margin-bottom: 4px; }
  .customer-brand:has(.customer-logo) { flex-direction: row; }
  .customer-logo { max-width: 100px; max-height: 36px; }
  .customer-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand strong { font-size: 12px; }
  .brand small { font-size: 9px; }
  .brand-symbol { width: 28px; height: 30px; }
  .sidebar .nav-heading, .sidebar-note { display: none; }
  .sidebar-account { padding: 0; border: 0; }
  .sidebar-account .avatar, .sidebar-account .account-info { display: none; }
  .main-nav { margin: 0; flex-direction: row; gap: 4px; }
  .nav-link { min-height: 35px; padding: 8px 10px; font-size: 10px; gap: 7px; }
  .nav-link svg { width: 15px; height: 15px; }
  .nav-active-dot { display: none; }
  .workspace { margin: 0; padding: 24px 22px 0; }
  .dashboard-header { flex-wrap: nowrap; }
  .skip-link { left: 20px; }
  .page-header { padding: 25px; flex-wrap: wrap; }
  .user-main, .admin-main { padding: 24px; }
}
@media (max-width: 700px) {
  .sidebar { gap: 10px; }
  .sidebar nav[aria-label="Administration"] { margin-left: auto; }
  .nav-link { padding: 7px 8px; }
  .nav-link svg { display: none; }
  .workspace { padding: 22px 16px 0; }
  .dashboard-header { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
  h1 { font-size: 28px; }
  .page-description { font-size: 11px; }
  .header-actions { margin-left: 0; }
  .header-eyebrow { flex-wrap: wrap; }
  .customer-context-label { max-width: 220px; }
  .combined-scope-panel { flex-direction: column; align-items: stretch; gap: 14px; padding: 15px; }
  .combined-customer-filter { width: 100%; }
  .combined-customer-filter .filter-popover { width: 100%; max-width: none; }
  .customer-card-grid { grid-template-columns: 1fr; }
  .combined-workspace-card { flex-direction: column; align-items: flex-start; }
  .dataset-strip { flex-wrap: wrap; gap: 6px; margin-top: 5px; }
  .dataset-info { font-size: 10px; gap: 7px; }
  .dataset-info #datasetMeta { display: none; }
  .dataset-separator { display: none; }
  .filter-panel { padding: 15px; }
  .filter-primary-row { gap: 12px; }
  .filter-heading-actions { gap: 12px; }
  .date-basis-field { flex-basis: 135px; }
  .date-fields { flex: 1; }
  .date-fields .field { width: auto; flex: 1; }
  .date-reset { margin-right: 0; }
  .search-field { order: 3; min-width: 100%; }
  .outcome-field { flex: 1; }
  .dimension-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-menu:nth-child(3) .filter-popover { left: 0; right: auto; }
  .filter-menu:nth-child(4) .filter-popover { left: auto; right: 0; }
  .filter-menu:nth-child(5) .filter-popover { left: 0; right: auto; }
  .filter-menu:nth-child(2) .filter-popover { left: auto; right: 0; }
  .filter-popover { width: 290px; }
  .section-heading { align-items: flex-end; }
  .section-heading h2 { font-size: 15px; }
  .metric-picker { align-items: flex-end; flex-direction: column; gap: 4px; }
  .metric-picker select { min-width: 140px; font-size: 10px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi-card { padding: 16px 18px; }
  .kpi-value { font-size: 30px; }
  .scope-facts { row-gap: 4px; }
  .scope-facts span:not(:last-child)::after { padding: 0 8px; }
  .outcome-panel { display: block; }
  .outcome-panel .status-overview { margin: 18px 0; }
  .outcome-panel .outcome-note { border-top: 1px solid #edf0f2; margin-top: 18px; padding-top: 13px; }
  .panel-heading { gap: 10px; }
  .panel-heading h2 { font-size: 14px; }
  .panel-tools { gap: 4px; }
  .segmented-control button { min-width: 29px; font-size: 8px; }
  .chart-legend { margin-top: 14px; }
  .breakdown-heading { padding: 20px 17px; }
  .breakdown-heading h2 { font-size: 18px; }
  .breakdown-heading .button { align-self: flex-start; font-size: 9px; }
  .breakdown-heading .button svg { display: none; }
  .breakdown-toolbar { flex-wrap: wrap; gap: 0; padding: 0 17px; }
  .group-tabs { gap: 21px; width: 100%; justify-content: space-between; }
  .group-tabs button { padding-bottom: 12px; font-size: 11px; }
  .sort-control { padding: 10px 0; margin-left: auto; }
  .drill-path { flex-wrap: wrap; gap: 8px; padding: 11px 17px; }
  .table-pagination { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .pagination-controls { margin-left: auto; }
  .table-footnote { padding: 12px 17px; }
  .workspace-footer { gap: 12px; font-size: 8px; }
  .method-note p { font-size: 9px; }
  .dialog-heading { padding: 24px 21px 20px; }
  .dialog-body { padding: 23px 21px; }
  .dialog-pagination { padding: 14px 21px; flex-wrap: wrap; gap: 12px; }
  .auth-card, .login-card { padding: 30px; }
  .mfa-recovery-list { grid-template-columns: 1fr; }
  .usage-metrics { grid-template-columns: 1fr; gap: 12px; }
  .usage-stat { display: flex; justify-content: space-between; align-items: center; }
  .usage-stat strong { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .filter-panel, .header-actions, .panel-tools, .pane-close, .data-quality-button, .table-pagination, .workspace-footer, .sort-control, .metric-picker, .row-drill, .method-note, .button, dialog, .toast { display: none !important; }
  .workspace { margin: 0; padding: 0; }
  body { background: white; font-size: 10px; }
  .dashboard-header { margin-bottom: 15px; }
  .chart-grid { grid-template-columns: 2fr 1fr; }
  .table-scroll { overflow: visible; }
  .panel, .kpi-card { box-shadow: none; break-inside: avoid; }
  .breakdown-panel { break-inside: auto; }
}

/* Request-frequency spike panel (optional until historical months are imported). */

.spike-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:1.25rem;margin-top:1rem}
.spike-group{min-width:0}
.spike-group h3{font-size:1rem;margin:0 0 .6rem}
.spike-item{display:flex;justify-content:space-between;align-items:center;gap:.85rem;width:100%;padding:.8rem .9rem;margin-bottom:.5rem;text-align:left;color:var(--text,#1e3b38);border:1px solid var(--border,#d6e0dc);border-radius:.6rem;background:var(--surface,#fff);cursor:pointer}
.spike-item:hover,.spike-item:focus-visible{border-color:var(--accent,#3a9178);outline-offset:2px}
.spike-name{min-width:0;font-weight:650;overflow-wrap:anywhere}
.spike-item small{display:block;font-size:.74rem;color:var(--muted,#687b78);font-weight:400;margin-top:.25rem}
.spike-stat{white-space:nowrap;text-align:right;font-weight:700}
@media(max-width:650px){.spike-item{display:block}.spike-stat{display:block;text-align:left;margin-top:.5rem}}
.matching-order-part{background:rgba(58,145,120,.08)}
.other-order-part{opacity:.75}


/* Two linked analysis approaches with common controls and authenticated datasets. */
.explore-mode-nav{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;margin:0 .35rem 1.15rem}
.explore-mode-link{display:block;text-align:center;font-size:.81rem;font-weight:700;border-radius:.55rem;padding:.7rem .3rem;text-decoration:none;color:inherit;border:1px solid var(--border,#bfd0c9)}
.explore-mode-link.selected{background:var(--accent,#3a9178);color:white;border-color:transparent}
.explore-mode-link:not(.selected):hover{border-color:var(--accent,#3a9178)}
[data-view=drilldown] #chartGrid{display:none}
[data-view=drilldown] .spike-panel{margin-top:0}
[data-view=search] #drillPath{display:none}

.insight-summary{display:flex;flex-wrap:wrap;gap:.9rem;margin:1rem 0}
.insight-stat{display:flex;flex-direction:column;gap:.15rem;padding:.65rem .9rem;border-radius:.5rem;background:var(--background,#f4f8f6)}
.insight-stat strong{font-size:1rem}
.insight-stat span{font-size:.8rem}
.insight-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:1.2rem;margin-top:.75rem}
.insight-group h3{font-size:.98rem;margin-bottom:.7rem}
.insight-result{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;width:100%;margin-bottom:.5rem;padding:.65rem .8rem;background:transparent;border:1px solid var(--border,#d6e0dc);border-radius:.5rem;text-align:left;color:inherit;cursor:pointer}
.insight-result:hover,.insight-result:focus-visible{border-color:var(--accent,#3a9178)}
.insight-result strong{font-size:.86rem}
.insight-result span{font-size:.77rem}
.insight-result small{display:block;font-size:.73rem;font-weight:400;color:var(--muted,#687b78);margin-top:.12rem}

/* Super Admin ALL: intentionally lightweight, tenant/factory-only. */
.combined-view #insightsPanel,.combined-view #spikePanel,.combined-view #scopeFacts,
.combined-view .search-field,.combined-view .outcome-field,.combined-view .date-basis-field,
.combined-view #viewRequests,.combined-view #requestsDialog,.combined-view .date-reset,
.combined-view #dateBasisNote {display:none!important}
.combined-view .explore-mode-nav{grid-template-columns:1fr}
.combined-view .group-link .group-name::after{content:"  ↗";font-size:.8em;opacity:.55}
.combined-view #breakdownSubtitle{max-width:68ch}
.combined-view .filter-primary-row{justify-content:flex-start}
