/* Invus UI Theme - Burger Singh HQ copy
   Source: standalone/css/invus-theme.css
   Font URLs are relative to this CSS file: ../fonts/
*/

/* 1) Fonts */
@font-face {
  font-family: "PP Museum";
  src: url("../fonts/PPMuseum-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Museum";
  src: url("../fonts/PPMuseum-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Museum";
  src: url("../fonts/PPMuseum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Museum";
  src: url("../fonts/PPMuseum-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "National 2";
  src: url("../fonts/national-2-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "National 2";
  src: url("../fonts/national-2-regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "National 2";
  src: url("../fonts/national-2-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "National 2";
  src: url("../fonts/national-2-medium-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* 2) Design tokens (raw) */
:root {
  --invus-font-heading: "PP Museum", "Segoe UI", system-ui, -apple-system, Arial, "Helvetica Neue", Helvetica, sans-serif;
  --invus-font-body: "National 2", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --invus-font-sans: var(--invus-font-body);
  --invus-font-icon: "Segoe UI Symbol";

  --invus-color-invus-navy: var(--color-header);
  --invus-color-light-navy: var(--color-accent);
  --invus-color-invus-cyan: var(--color-accent-fill);
  --invus-color-muted-cyan: var(--seq-3);
  --invus-color-light-cyan: var(--status-info-bg);
  --invus-color-champagne: var(--color-highlight);
  --invus-color-light-champagne: var(--color-surface-2);
  --invus-color-pure-white: var(--color-surface);
  --invus-color-grey: var(--color-text-muted);
  --invus-color-mid-grey: var(--color-border-strong);
  --invus-color-light-grey: var(--color-surface-2);
  --invus-color-black: var(--color-text);

  --invus-color-bg: var(--color-bg);
  --invus-color-surface: var(--color-surface);
  --invus-color-text: var(--color-text);
  --invus-color-text-muted: var(--color-text-secondary);
  --invus-color-border: var(--color-border);
  --invus-color-accent: var(--color-brand);
  --invus-color-link: var(--color-accent);
  --invus-color-link-hover: var(--color-accent-hover);
  --invus-color-focus: var(--focus-ring);
  --invus-color-primary: var(--color-brand);

  --invus-color-neutral-0: var(--invus-color-pure-white);
  --invus-color-neutral-200: var(--invus-color-border);

  /* 2026-09-01: every value below is the original design spec x0.75 -
     see the comment above html{} for why this replaced the CSS `zoom`
     attempt. This is a genuine layout-time size reduction (not a
     post-layout visual rescale), so containers sized by vh/vw/flex/grid
     still correctly fill the real viewport at Chrome's default 100%
     zoom - only the components THEMSELVES get more compact, matching
     what manually zooming out to ~75% already looked like. Original
     values kept alongside as comments for reference/future retuning. */
  --invus-font-size-100: 9px;    /* was 12px */
  --invus-font-size-200: 10.5px; /* was 14px */
  --invus-font-size-300: 12px;   /* was 16px */
  --invus-font-size-400: 13.5px; /* was 18px */
  --invus-font-size-500: 15px;   /* was 20px */
  --invus-font-size-600: 18px;   /* was 24px */
  --invus-font-size-700: 24px;   /* was 32px */
  --invus-font-size-800: 30px;   /* was 40px */

  --invus-line-height-tight: 1.2;
  --invus-line-height-normal: 1.5;
  --invus-line-height-loose: 1.7;

  --invus-space-1: 3px;  /* was 4px */
  --invus-space-2: 6px;  /* was 8px */
  --invus-space-3: 9px;  /* was 12px */
  --invus-space-4: 12px; /* was 16px */
  --invus-space-5: 18px; /* was 24px */
  --invus-space-6: 24px; /* was 32px */
  --invus-space-7: 36px; /* was 48px */
  --invus-space-8: 48px; /* was 64px */

  --invus-radius-sm: 3px; /* was 4px */
  --invus-radius-md: 6px; /* was 8px */
  --invus-radius-lg: 9px; /* was 12px */

  --invus-shadow-sm: var(--shadow-sm);
  --invus-shadow-md: var(--shadow-card);
  --invus-shadow-lg: var(--shadow-pop);

  --invus-btn-height: 30px;  /* was 40px */
  --invus-input-height: 30px; /* was 40px */
  --invus-container-max: 1200px; /* unchanged - this bounds max width, shrinking it would waste screen space rather than fix oversizing */
}

/* 3) Base + typography */
*,
*::before,
*::after { box-sizing: border-box; }

/* 2026-08-31: every page was rendering visibly oversized at Chrome's
   default 100% zoom - it only looked right manually zoomed out to
   ~67-75%. First attempt used CSS `zoom: 0.75` on <html> - REVERTED
   2026-09-01 after live testing showed it doesn't work in this codebase:
   several core layout containers use `min-height: 100vh`/`100vw`
   (app.css, invus-theme.css) and Chrome's non-standard `zoom` property
   does not rescale vh/vw consistently with the rest of the layout - the
   outer shell stayed pinned to the real (unzoomed) viewport size while
   the content inside visually shrank, leaving a dead margin on the
   right/bottom instead of the content filling the screen. See the
   `:root` token blocks below/in argus_theme.css instead - the actual
   fix is genuinely smaller font-size/spacing values, not a post-layout
   visual rescale. */
html { font-size: 100%; }

body {
  margin: 0;
  font-family: var(--invus-font-sans);
  font-size: var(--invus-font-size-300);
  line-height: var(--invus-line-height-normal);
  color: var(--invus-color-text);
  background: var(--invus-color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--invus-color-text);
  line-height: var(--invus-line-height-tight);
  margin: 0 0 var(--invus-space-3);
  font-family: var(--invus-font-heading);
  font-weight: 400;
}

h1 { font-size: var(--invus-font-size-800); }
h2 { font-size: var(--invus-font-size-700); }
h3 { font-size: var(--invus-font-size-600); }
h4 { font-size: var(--invus-font-size-500); }
h5 { font-size: var(--invus-font-size-400); }
h6 { font-size: var(--invus-font-size-300); }

p, ul, ol, dl {
  margin: 0 0 var(--invus-space-4);
  color: var(--invus-color-text);
}

small { font-size: var(--invus-font-size-200); }

strong, b {
  font-family: var(--invus-font-body);
  font-weight: 500;
}

a {
  color: var(--invus-color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--invus-color-link-hover); }

code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

/* 4) Layout helpers */
.container {
  width: min(100% - 2rem, var(--invus-container-max));
  margin-inline: auto;
}

.stack > * + * { margin-top: var(--invus-space-4); }
.inline { display: inline-flex; gap: var(--invus-space-3); align-items: center; }

.grid { display: grid; gap: var(--invus-space-5); }
.grid--12 { grid-template-columns: repeat(12, 1fr); }
.col-span-12 { grid-column: span 12; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }
@media (max-width: 900px) {
  .col-span-6, .col-span-4, .col-span-3 { grid-column: span 12; }
}

.section { margin-top: var(--invus-space-6); }
.text-muted { color: var(--invus-color-text-muted); }

/* 4) Forms */
input, select, textarea {
  font: inherit;
  color: var(--invus-color-text);
  background: var(--color-surface);
  border: 1px solid var(--invus-color-border);
  border-radius: var(--invus-radius-sm);
  padding: 0 var(--invus-space-3);
  height: var(--invus-input-height);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
input::placeholder, textarea::placeholder { color: var(--invus-color-text-muted); }

input:focus, select:focus, textarea:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

/* 5) Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--invus-radius-sm);
  height: var(--invus-btn-height);
  padding: 0 var(--invus-space-4);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--invus-space-2);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--focus-ring);
  outline: none;
}

.btn--primary {
  color: var(--color-on-brand);
  background: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--primary:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
}
.btn--primary:focus-visible {
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.btn--secondary {
  color: var(--invus-color-text);
  background: transparent;
  border: 1px solid transparent;
  border-color: var(--color-border-strong);
}
.btn--secondary:hover {
  background: var(--invus-color-surface);
  border-color: var(--color-accent);
}

.btn--header {
  color: var(--color-header-fg);
  background: transparent;
  border-color: var(--color-header-border);
}

.btn--header:hover,
.btn--header:focus-visible {
  background: var(--color-header-overlay);
  border-color: var(--color-header-fg);
  color: var(--color-header-fg);
}

.btn--switch {
  inline-size: 100%;
  height: 36px;
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}
.btn--switch[aria-pressed="true"] {
  color: var(--color-on-selected);
  border-color: var(--color-selected);
  background: var(--color-selected);
}

.segmented-control {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--invus-color-border);
  border-radius: var(--invus-radius-sm);
  background: var(--color-surface);
}

.segmented-control .btn,
.segmented-control button,
.segmented-control a {
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}

.segmented-control .btn + .btn,
.segmented-control button + button,
.segmented-control a + a {
  border-left: 1px solid var(--invus-color-border);
}

.segmented-control [aria-pressed="true"],
.segmented-control [aria-selected="true"],
.segmented-control .is-active,
.segmented-control .active {
  background: var(--color-selected);
  color: var(--color-on-selected);
}

.viewPagination {
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--color-surface-2);
  padding: 12px;
  border-bottom: 1px solid var(--invus-color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--ghost {
  color: var(--color-accent);
  background: transparent;
  border-color: transparent;
}
.btn--ghost:hover { background: var(--status-info-bg); }

/* 6) Cards */
.welcome-card {
  background: var(--color-surface);
  border: 1px solid var(--invus-color-border);
  border-radius: var(--invus-radius-md);
  box-shadow: var(--invus-shadow-sm);
  padding: var(--invus-space-5);
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--invus-font-size-300);
  line-height: var(--invus-line-height-tight);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--invus-color-border);
  border-radius: var(--invus-radius-md);
  box-shadow: var(--invus-shadow-sm);
  padding: var(--invus-space-5);
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--invus-space-4);
  flex-wrap: wrap;
  padding: var(--invus-space-4) var(--invus-space-5);
  border: 0;
  border-top: 3px solid var(--color-header-rule);
  border-radius: var(--invus-radius-lg);
  background: var(--color-header);
  color: var(--color-header-fg);
  box-shadow: var(--invus-shadow-sm);
}

.dashboard-header h1,
.dashboard-header h2,
.dashboard-header h3 {
  color: var(--color-header-fg);
}

.dashboard-header .text-muted,
.dashboard-header small,
.dashboard-header .eyebrow {
  color: var(--color-header-muted);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--invus-space-4);
  margin-bottom: var(--invus-space-3);
  flex-wrap: wrap;
}

.section-head h3,
.section-head h4,
.section-head p {
  margin: 0;
}

.section-head p {
  color: var(--invus-color-text-muted);
}

.empty-state {
  padding: var(--invus-space-4);
  border: 1px dashed var(--invus-color-border);
  border-radius: var(--invus-radius-md);
  background: var(--color-surface-2);
  color: var(--color-text-secondary);
  font-weight: 600;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-surface-2) 78%, var(--status-info-bg) 22%);
  animation: skeletonPulse 1.2s ease-in-out infinite;
}

.share-bar {
  display: grid;
  gap: var(--invus-space-1);
  margin: var(--invus-space-2) 0;
}

.share-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--invus-space-2);
  color: var(--color-text);
  font-size: var(--invus-font-size-200);
  font-weight: 700;
}

.share-bar__track {
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
}

.share-bar__track i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--chart-1);
}

.share-bar small {
  color: var(--color-text-secondary);
  font-size: var(--invus-font-size-100);
}

/* 7) Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--invus-font-size-200);
}
.table th, .table td {
  padding: var(--invus-space-3) var(--invus-space-4);
  border-bottom: 1px solid var(--invus-color-border);
  text-align: left;
}
.table thead th {
  color: var(--color-text-secondary);
  font-weight: 700;
  background: var(--color-surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table tbody tr:nth-child(even) { background: var(--color-surface-2); }

/* 8) Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--invus-color-border);
  background: var(--status-info-bg);
  color: var(--invus-color-text);
  font-weight: 600;
  font-size: var(--invus-font-size-200);
}
.badge--accent {
  background: var(--status-info-bg);
  border-color: var(--color-accent);
}

/* 9) Alerts */
.alert {
  border: 1px solid var(--invus-color-border);
  border-left: 4px solid var(--status-info);
  background: var(--status-info-bg);
  border-radius: var(--invus-radius-sm);
  padding: var(--invus-space-4);
}

/* 10) Icons */
.icon {
  font-family: var(--invus-font-icon);
  font-style: normal;
  font-weight: 400;
  display: inline-block;
  line-height: 1;
}

/* 11) Accessibility helpers */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* 12) Charts */
.chart-box {
  position: relative;
  height: 260px;
}
.chart-box--tall { height: 300px; }
.chart-box--full { height: 700px; }
.chart-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--invus-space-3); align-items: center; }
.toolbar .btn { height: 36px; }
.toolbar input[type="search"] { height: 36px; }
.toolbar select { height: 36px; }

/* Icon buttons */
.btn--icon,
.icon-action {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--invus-color-border);
  border-radius: var(--invus-radius-sm);
  background: var(--invus-color-pure-white);
  color: var(--invus-color-invus-navy);
}
.btn--icon svg,
.icon-action svg { width: 18px; height: 18px; }
.btn--icon:hover,
.icon-action:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-2);
}

/* Card header icons */
.card h3 { display: inline-flex; gap: 8px; align-items: center; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: var(--overlay-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}
.modal--open { display: flex; }
.modal__card {
  position: relative;
  background: var(--invus-color-surface) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  border: 1px solid var(--invus-color-border);
  border-radius: var(--invus-radius-md);
  box-shadow: var(--invus-shadow-lg);
  padding: var(--invus-space-5);
  width: min(520px, 100%);
  isolation: isolate;
  z-index: 10000;
}
.modal__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--invus-color-neutral-0);
  border-radius: inherit;
  z-index: 0;
}
.modal__card > * { position: relative; z-index: 1; }
.modal__card input[type="date"],
.modal__card input[type="text"],
.modal__card input[type="search"],
.modal__card select {
  background: var(--invus-color-neutral-0);
}
.modal__footer { display: flex; justify-content: flex-end; gap: var(--invus-space-3); margin-top: var(--invus-space-5); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (prefers-contrast: more) {
  :root { --invus-color-border: color-mix(in srgb, var(--invus-color-text) 25%, var(--invus-color-border)); }
  .btn--secondary { border-color: var(--invus-color-text); }
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--invus-color-neutral-200);
  border-top-color: var(--color-accent-fill);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.position-relative {
  position: relative;
}

/* Multi-Select Component */
.multi-select-container {
  position: relative;
  min-width: 200px;
  max-width: 400px;
}

.multi-select {
  border: 1px solid var(--invus-color-border);
  border-radius: var(--invus-radius-sm);
  padding: 8px 12px;
  min-height: 38px;
  max-height: 120px;
  overflow-y: auto;
  cursor: pointer;
  background: var(--color-surface);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
  transition: border-color 0.2s ease;
  word-wrap: break-word;
}

.multi-select:hover {
  background: var(--invus-color-surface);
  border-color: var(--color-accent);
}

.multi-select:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.multi-select-placeholder {
  color: var(--invus-color-text-muted);
  flex-shrink: 0;
}

.multi-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--invus-color-surface) !important;
  border: 1px solid var(--invus-color-border);
  border-radius: var(--invus-radius-sm);
  box-shadow: var(--invus-shadow-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.multi-select-option {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--invus-color-border);
  transition: background-color 0.2s ease;
  user-select: none;
}

.multi-select-option:hover {
  background-color: var(--color-surface-2) !important;
}

.multi-select-option.is-active {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
  background-color: var(--color-surface-2) !important;
}

.multi-select-option.selected {
  background-color: var(--color-selected) !important;
  color: var(--color-on-selected);
}

.multi-select-option.selected:hover {
  background-color: var(--color-brand-hover) !important;
  opacity: 0.9;
}

.multi-select-option:last-child {
  border-bottom: none;
}

.location-tag {
  background: var(--status-info-bg);
  color: var(--status-info-fg);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  word-wrap: break-word;
}

.location-tag .remove {
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.location-tag .remove:hover {
  opacity: 0.8;
}

#dateRange {
  font-size: 16px;
  font-weight: 300;
  font-family: var(--invus-font-body);
}

/* Sidebar layout (matches standalone kit) */
.layout--sidebar {
  inline-size: 100vw;
  block-size: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-w, 320px) 1fr;
  overflow: hidden;
  --invus-container-max: 100vw;
}
.layout--sidebar .sidebar__back {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1001;
  background: var(--color-brand);
  color: var(--color-on-brand);
}

.layout--sidebar .sidebar {
  padding-top: calc(12px + var(--invus-btn-height) + 24px);
}

.layout--sidebar.is-collapsed { grid-template-columns: 1fr; }
.layout--sidebar .sidebar {
  position: relative;
  background: var(--color-surface-2);
  border-inline-end: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  padding-top: calc(12px + var(--invus-btn-height) + 24px);
  padding-bottom: calc(12px + var(--invus-btn-height) + 24px);
}
.layout--sidebar .sidebar__body { overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; min-height: 0; padding-bottom: calc(12px + var(--invus-btn-height) + 24px); }
.layout--sidebar .sidebar__footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin-top: 0;
  z-index: 1;
}
.layout--sidebar .sidebar__footer .btn {
  inline-size: 100%;
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-color: var(--color-brand);
}
.layout--sidebar .content { overflow: auto; }
.sidebar__toggle, .sidebar__toggle--collapsed {
  inline-size: var(--invus-btn-height);
  block-size: var(--invus-btn-height);
  min-inline-size: var(--invus-btn-height);
  min-block-size: var(--invus-btn-height);
  width: var(--invus-btn-height);
  height: var(--invus-btn-height);
  min-width: var(--invus-btn-height);
  min-height: var(--invus-btn-height);
  background: var(--color-brand);
  color: var(--color-on-brand);
  padding: 0;
}
.layout--sidebar .sidebar__toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  z-index: 1001;
}

.layout--sidebar .sidebar__toggle:hover,
.layout--sidebar .sidebar__back:hover {
  background: var(--invus-color-surface);
  border-color: var(--color-accent);
  color: var(--invus-color-text);
}

.layout--sidebar.is-collapsed .sidebar { display: none; }
.sidebar__toggle--collapsed { display: none; }
.layout--sidebar.is-collapsed .sidebar__toggle--collapsed {
  display: inline-flex;
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1002;
}
@media (max-width: 900px) {
  .layout--sidebar { grid-template-columns: 1fr; }
  .layout--sidebar .sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: min(88vw, 360px);
    translate: -100% 0;
    transition: translate 160ms ease;
    z-index: 1000;
    box-shadow: var(--invus-shadow-md);
  }
  .layout--sidebar.is-collapsed .sidebar { display: none; }
}
