/* SuperViz page only. Loaded last, unlayered, so these rules beat the
   layered legacy sheets (including @layer screens) without !important.
   Every selector is scoped to body.route-superviz. Other routes are untouched.

   The shared dark-card rule in layout-review.css no longer lists .sv-card.
   That rule used !important, which an unlayered sheet cannot beat.

   Palette is the sidebar ramp. #2196F3 is the highlighted chart series.
   Weights are Satoshi 400 / 500 / 700. 700 is the page title. */

html body.route-superviz {
  --sv-canvas: #171818;
  --sv-page-bg: #1A1B1B;
  --sv-card-bg: #1F2121;
  --sv-raised: #252727;
  --sv-hover: #2B2D2D;
  --sv-border: #2F3232;
  --sv-border-strong: #3B3E3E;
  --sv-text: #ECEDEC;
  --sv-text-2: #A6ABAB;
  --sv-text-3: #7A7F7F;
  --sv-accent: #2196F3;
  --gl-floating-pill-h: 0px;
  --num-weight-kpi: 500;
  background: var(--sv-page-bg);
  color: var(--sv-text);
  overflow-x: hidden;
}

html body.route-superviz #main,
html body.route-superviz #main-content,
html body.route-superviz .main-content {
  background: var(--sv-page-bg);
  background-image: none;
  color: var(--sv-text);
  overflow-x: hidden;
  max-width: 100%;
}

/* The blue pill was the page switcher. The title below replaces it, and
   the empty topbar should not keep a band of space. */
html body.route-superviz header.topbar#topbar,
html body.route-superviz #gl-floating-pill {
  display: none;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

html body.route-superviz .sv-page {
  max-width: 100%;
  margin: 0;
  padding: 8px 24px 48px;
  background: transparent;
  color: var(--sv-text);
  font-size: 14px;
  font-weight: 400;
  overflow-x: hidden;
  --sv-card: var(--sv-card-bg);
  --sv-card-border: var(--sv-border);
  --sv-title: var(--sv-text);
  --sv-muted: var(--sv-text-3);
  --svx-card: var(--sv-card-bg);
  --svx-border: var(--sv-border);
  --svx-rule: var(--sv-border);
  --svx-text: var(--sv-text);
  --svx-muted: var(--sv-text-3);
  --ac-grid: #2F3232;
  --ac-surface: #1F2121;
  --ac-text: #ECEDEC;
  --ac-muted: #A6ABAB;
  --ac-font: "Satoshi", system-ui, sans-serif;
  --ac-font-size: 13px;
}

html body.route-superviz aside.sidebar#sidebar .sidebar-quick-item.active {
  background: var(--sv-hover);
  background-image: none;
  color: var(--sv-text);
  box-shadow: none;
}

html body.route-superviz aside.sidebar#sidebar .sidebar-quick-item.active .sqi-icon,
html body.route-superviz aside.sidebar#sidebar .sidebar-quick-item.active .sqi-label {
  background: transparent;
  background-image: none;
  color: var(--sv-text);
  font-weight: 500;
}

html body.route-superviz .footer-org-tier-badge {
  background: transparent;
  background-image: none;
  color: var(--sv-text-3);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

html body.route-superviz .sv-page .page-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 0;
  padding: 4px 0 12px;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

html body.route-superviz .sv-page .page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sv-text);
}

html body.route-superviz .sv-page .sh-page-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--sv-text-3);
}

html body.route-superviz .sv-page .page-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

html body.route-superviz .sv-page .btn,
html body.route-superviz .sv-page .btn-primary,
html body.route-superviz .sv-page .btn-ghost,
html body.route-superviz .sv-page .sv-more-btn,
html body.route-superviz .sv-page .de-button,
html body.route-superviz .sv-page .sv-refresh-cta {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--sv-border);
  background: var(--sv-card-bg);
  background-image: none;
  color: var(--sv-text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

html body.route-superviz .sv-page .btn-primary {
  background: var(--sv-raised);
  color: var(--sv-text);
}

html body.route-superviz .sv-page .btn:hover,
html body.route-superviz .sv-page .btn-primary:hover,
html body.route-superviz .sv-page .btn-ghost:hover:not([disabled]),
html body.route-superviz .sv-page .sv-more-btn:hover,
html body.route-superviz .sv-page .sv-refresh-cta:hover {
  background: var(--sv-hover);
  background-image: none;
  border-color: var(--sv-border);
  color: var(--sv-text);
  filter: none;
}

html body.route-superviz .sv-page .sh-more-btn,
html body.route-superviz .sv-page .sv-card-menu-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid var(--sv-border);
  background: transparent;
  background-image: none;
  color: var(--sv-text-2);
  box-shadow: none;
}

html body.route-superviz .sv-page .sh-more-menu {
  background: var(--sv-raised);
  background-image: none;
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  box-shadow: none;
}

html body.route-superviz .sv-page .sh-more-item {
  border-radius: 6px;
  background: transparent;
  color: var(--sv-text);
  font-size: 13px;
  font-weight: 400;
}

html body.route-superviz .sv-page .sh-more-item:hover,
html body.route-superviz .sv-page .sh-more-item.is-on {
  background: var(--sv-hover);
  color: var(--sv-text);
  font-weight: 500;
}

html body.route-superviz .sv-page .sh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 12px 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--sv-border);
  border-bottom: 1px solid var(--sv-border);
  background: transparent;
  background-image: none;
}

html body.route-superviz .sv-page .sh-toolbar > .search,
html body.route-superviz .sv-page .sh-toolbar > .select {
  min-width: 0;
  height: 32px;
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid var(--sv-border);
  background: var(--sv-raised);
  background-image: none;
  color: var(--sv-text);
  box-shadow: none;
}

html body.route-superviz .sv-page .sh-toolbar > .search {
  flex: 1 1 180px;
}

html body.route-superviz .sv-page .sh-toolbar > .search input,
html body.route-superviz .sv-page .sh-toolbar > .select select {
  font-size: 13px;
  font-weight: 400;
  color: var(--sv-text);
  background: transparent;
}

html body.route-superviz .sv-page .sh-toolbar > .select .sh-menu-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--sv-text-3);
  letter-spacing: 0;
  text-transform: none;
}

html body.route-superviz .sv-page .sh-toolbar > .btn-ghost,
html body.route-superviz .sv-page .sh-toolbar > .btn-ghost[disabled] {
  color: var(--sv-text-3);
  background: transparent;
  border-color: transparent;
}

html body.route-superviz .sv-page .sh-toolbar > .view-toggle {
  margin-left: auto;
  border: 1px solid var(--sv-border);
  border-radius: 6px;
  background: transparent;
  height: 32px;
}

html body.route-superviz .sv-page .sh-toolbar > .view-toggle button.active {
  background: var(--sv-hover);
  color: var(--sv-text);
}

/* Plain text tabs. The active one is primary text, not a blue pill. */
html body.route-superviz .sv-page .sv-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 20px;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid var(--sv-border);
  background: transparent;
  scrollbar-width: none;
}

html body.route-superviz .sv-page .sv-tabs::-webkit-scrollbar {
  display: none;
  height: 0;
}

html body.route-superviz .sv-page .sv-tab {
  flex: 0 0 auto;
  min-height: 40px;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  color: var(--sv-text-2);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

html body.route-superviz .sv-page .sv-tab:hover {
  background: transparent;
  color: var(--sv-text);
  border-color: transparent;
}

html body.route-superviz .sv-page .sv-tab[aria-selected="true"] {
  background: transparent;
  background-image: none;
  color: var(--sv-text);
  font-weight: 500;
  border: 0;
  box-shadow: none;
}

html body.route-superviz .sv-page .sv-section + .sv-section {
  margin-top: 32px;
}

html body.route-superviz .sv-page .sv-section-head {
  border: 0;
  background: transparent;
}

html body.route-superviz .sv-page .sv-section-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sv-text);
}

html body.route-superviz .sv-page .sv-section-blurb,
html body.route-superviz .sv-page .sv-fresh,
html body.route-superviz .sv-page .sv-card-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--sv-text-3);
}

html body.route-superviz .sv-page .sv-grid {
  max-width: 100%;
  overflow-x: hidden;
}

html body.route-superviz .sv-page .sv-card {
  min-width: 0;
  background: var(--sv-card-bg);
  background-image: none;
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  box-shadow: none;
}

html body.route-superviz .sv-page .sv-card:hover,
html body.route-superviz .sv-page .sv-card.sv-card-focus {
  border-color: var(--sv-border-strong);
  box-shadow: none;
  background-image: none;
}

html body.route-superviz .sv-page .sv-card-head .sv-card-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sv-text);
}

html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .sv-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--sv-text-3);
}

html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .sv-card-body {
  height: auto;
  min-height: 0;
  padding: 4px 20px 16px;
}

html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi {
  justify-content: flex-start;
  padding: 0;
  overflow: visible;
  background: transparent;
}

/* The card title is the muted label. The metric name repeats it. */
html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-label {
  display: none;
}

html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-value {
  margin-top: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--sv-text);
  font-variant-numeric: tabular-nums;
}

html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-comparison,
html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-comparison strong,
html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-comparison strong.ac-kpi-up,
html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-comparison strong.ac-kpi-down {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--sv-text-2);
  background: transparent;
  background-image: none;
}

html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-period,
html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-context {
  font-size: 12px;
  font-weight: 400;
  color: var(--sv-text-3);
}

html body.route-superviz .sv-page .sv-card[data-kind="chart"] .sv-card-body {
  min-height: 220px;
}

html body.route-superviz .sv-page .sh-table {
  font-size: 13px;
  font-weight: 400;
}

html body.route-superviz .sv-page .sh-table th {
  font-size: 12px;
  font-weight: 500;
  color: var(--sv-text-3);
  letter-spacing: 0.04em;
}

html body.route-superviz .sv-page .sh-num,
html body.route-superviz .sv-page .ac-kpi-value,
html body.route-superviz .sv-page .ac-kpi-comparison {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  html body.route-superviz .sv-page {
    padding: 8px 16px 32px;
  }

  html body.route-superviz .sv-page .page-head-actions,
  html body.route-superviz .sv-page .sh-toolbar > .search,
  html body.route-superviz .sv-page .sh-toolbar > .select {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
  }

  html body.route-superviz .sv-page .sv-grid,
  html body.route-superviz .sv-page .sv-grid[data-sv-curated],
  html body.route-superviz .sv-page .sv-grid[data-sv-curated]:not(.de-editing) {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: hidden;
  }

  html body.route-superviz .sv-page .sv-card,
  html body.route-superviz .sv-page .sv-grid[data-sv-curated] > .sv-card,
  html body.route-superviz .sv-page .sv-grid[data-sv-curated][data-kpis="2"] > .sv-card[data-kind="kpi"],
  html body.route-superviz .sv-page .sv-grid[data-sv-curated][data-kpis="3"] > .sv-card[data-kind="kpi"] {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
  }

  html body.route-superviz .sv-page .sv-card-body,
  html body.route-superviz .sv-page .sv-card[data-kind="chart"] .sv-card-body,
  html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .sv-card-body {
    min-height: 0;
    overflow-x: hidden;
  }

  html body.route-superviz .sv-page .sv-card[data-kind="chart"] .sv-card-body {
    height: 240px;
  }

  html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-solo) .sv-card-body {
    min-height: 148px;
    padding: 8px 14px 14px;
  }

  html body.route-superviz .sv-page .btn,
  html body.route-superviz .sv-page .sv-tab,
  html body.route-superviz .sv-page .sh-toolbar > .search,
  html body.route-superviz .sv-page .sh-toolbar > .select {
    min-height: 44px;
  }

  html body.route-superviz .sv-page .sv-table-host {
    overflow-x: auto;
    max-width: 100%;
  }
}

/* Chart axes need room the calm strip used to deny the sparkline. */
html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-period,
html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-comparison {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: 13px;
  line-height: 1.35;
}
html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-trend) .sv-card-body {
  height: auto;
  min-height: 360px;
}
html body.route-superviz .sv-page .sv-card[data-kind="kpi"] .ac-kpi-trend .ac-spark {
  display: block;
  flex: 1 1 188px;
  height: 188px;
  min-height: 168px;
  max-height: none;
  margin-top: 8px;
}
html body.route-superviz .sv-page .sv-card[data-kind="chart"] .sv-card-body {
  height: 300px;
  min-height: 280px;
}

/* A number with no plot fills the tile. The title and subtitle stay in the
   card head. The figure is centered in the body and sized from the card
   (cqw / cqh), so a long currency value grows with the tile instead of
   sitting at 28px in an empty panel. Trend cards that draw a line are
   unchanged: they do not carry .ac-kpi-solo. */
html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-solo) {
  min-height: 0;
}
html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-solo) .sv-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 168px;
  height: auto;
  container-type: size;
  padding: 8px 16px 16px;
}
html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-solo) .ac-kpi-solo {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-solo) .ac-kpi-value {
  margin: 0;
  max-width: 100%;
  font-size: clamp(32px, min(11cqw, 42cqh), 112px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  color: var(--sv-text);
}
html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-solo) .ac-kpi-comparison,
html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-solo) .ac-kpi-period,
html body.route-superviz .sv-page .sv-card[data-kind="kpi"]:has(.ac-kpi-solo) .ac-kpi-context {
  margin-top: 8px;
  max-width: 100%;
  font-size: clamp(12px, 2.8cqw, 15px);
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}
html body.route-superviz .sv-page .sh-axis-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid #2F3232;
  border-radius: 10px;
  background: #1F2121;
  color: var(--sv-text);
  box-shadow: none;
}
html body.route-superviz .sv-page .sh-axis-lead,
html body.route-superviz .sv-page .sh-axis-choice small {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sv-text-2);
}
html body.route-superviz .sv-page .sh-axis-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
  font-size: 13px;
}
html body.route-superviz .sv-page .sh-axis-choice strong {
  display: block;
  font-weight: 500;
  color: var(--sv-text);
}
html body.route-superviz .sv-page .sh-axis-choice input {
  accent-color: #2196F3;
  margin-top: 3px;
}
html body.route-superviz .sv-page .sh-axis-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
html body.route-superviz .sv-page .sh-axis-custom[hidden] { display: none; }
html body.route-superviz .sv-page .sh-axis-custom label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--sv-text-2);
}
html body.route-superviz .sv-page .sh-axis-custom input {
  height: 32px;
  border: 1px solid #2F3232;
  border-radius: 6px;
  background: #1F2121;
  color: var(--sv-text);
  font: 400 13px/1.2 "Satoshi", system-ui, sans-serif;
  padding: 0 8px;
}

/* Explore is mounted with class sv-page, so the unlayered page rule
   (background: transparent, padding) painted the editor onto the dashboard.
   These rules are unlayered and more specific to .ex-page, which is what
   puts a solid layer back on top of the sidebar and the chart grid. */
html body.route-superviz .ex-page {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #1F2121;
  background-image: none;
  color: var(--sv-text);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Satoshi", system-ui, sans-serif;
}
html body.route-superviz .ex-page .ex-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  border-bottom: 1px solid #2F3232;
  background: #1F2121;
  flex: 0 0 auto;
}
html body.route-superviz .ex-page .ex-topbar h1 {
  margin: 0;
  font: 500 16px/1.2 "Satoshi", system-ui, sans-serif;
  color: var(--sv-text);
  max-width: 240px;
}
html body.route-superviz .ex-page .ex-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(260px, 360px) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: #1F2121;
}
html body.route-superviz .ex-page .ex-source,
html body.route-superviz .ex-page .ex-controls,
html body.route-superviz .ex-page .ex-output {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #1F2121;
  background-image: none;
  color: var(--sv-text);
}
html body.route-superviz .ex-page .ex-source,
html body.route-superviz .ex-page .ex-controls {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2F3232;
}
html body.route-superviz .ex-page .ex-fields,
html body.route-superviz .ex-page .ex-control-scroll,
html body.route-superviz .ex-page .ex-output {
  overflow: auto;
}
html body.route-superviz .ex-page .ex-output {
  display: flex;
  flex-direction: column;
  border-right: 0;
}
html body.route-superviz .ex-page .ex-results {
  min-height: 180px;
  max-height: 42%;
  overflow: hidden;
  border-top: 1px solid #2F3232;
  background: #1F2121;
}
html body.route-superviz .ex-page .ex-panel-title,
html body.route-superviz .ex-page .ex-section > summary,
html body.route-superviz .ex-page .ex-control > span {
  font-size: 13px;
  color: var(--sv-text);
}
html body.route-superviz .ex-page .ex-section {
  border-bottom: 1px solid #2F3232;
}
html body.route-superviz .ex-page .ex-control input,
html body.route-superviz .ex-page .ex-control select,
html body.route-superviz .ex-page .ex-search {
  border: 1px solid #2F3232;
  border-radius: 6px;
  background: #1F2121;
  box-shadow: none;
}
@media (max-width: 820px) {
  html body.route-superviz .ex-page {
    padding: 0;
    overflow: hidden;
  }
  html body.route-superviz .ex-page .ex-layout {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  html body.route-superviz .ex-page .ex-source,
  html body.route-superviz .ex-page .ex-controls,
  html body.route-superviz .ex-page .ex-output {
    flex: none;
    width: 100%;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #2F3232;
    overflow: visible;
  }
  html body.route-superviz .ex-page .ex-source { max-height: 42vh; overflow: auto; }
  html body.route-superviz .ex-page .ex-controls { max-height: 58vh; overflow: auto; }
  html body.route-superviz .ex-page .ex-output { min-height: 70vh; overflow: hidden; }
  html body.route-superviz .ex-page .ex-topmeta { display: none; }
}

/* Map tab: one filter bar, a quiet caption, a radius-10 map, stat cards below. */
html body.route-superviz .sv-map-host {
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 1px solid #2F3232;
  border-radius: 10px;
  background: #1F2121;
  padding: 0;
}
html body.route-superviz .sv-map-host .phx-filters-btn {
  display: none;
}
html body.route-superviz .sv-map-host .phx-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #2F3232;
  background: #1F2121;
}
html body.route-superviz .sv-map-host .phx-chip {
  position: relative;
}
html body.route-superviz .sv-map-host .phx-chip > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #2F3232;
  border-radius: 999px;
  background: #1F2121;
  color: var(--sv-text);
  font: 500 13px/1.2 "Satoshi", system-ui, sans-serif;
  cursor: pointer;
  list-style: none;
}
html body.route-superviz .sv-map-host .phx-chip > summary::-webkit-details-marker { display: none; }
html body.route-superviz .sv-map-host .phx-chip-k { color: var(--sv-text-3); font-weight: 400; }
html body.route-superviz .sv-map-host .phx-chip[open] > summary {
  border-color: #2196F3;
}
html body.route-superviz .sv-map-host .phx-chip-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 280px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #2F3232;
  border-radius: 10px;
  background: #1F2121;
  box-shadow: none;
}
html body.route-superviz .sv-map-host .phx-chip-opt {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sv-text);
  font: 400 13px/1.3 "Satoshi", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
html body.route-superviz .sv-map-host .phx-chip-opt[aria-selected="true"] {
  background: #2196F3;
  color: #fff;
}
html body.route-superviz .sv-map-host .phx-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-left: auto;
  color: var(--sv-text);
  font: 400 13px/1.2 "Satoshi", system-ui, sans-serif;
  white-space: nowrap;
}
html body.route-superviz .sv-map-host .phx-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
html body.route-superviz .sv-map-host .phx-switch-ui {
  width: 36px;
  height: 20px;
  border: 1px solid #2F3232;
  border-radius: 999px;
  background: #252727;
  position: relative;
  flex: 0 0 auto;
}
html body.route-superviz .sv-map-host .phx-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sv-text-2);
}
html body.route-superviz .sv-map-host .phx-switch input:checked + .phx-switch-ui {
  background: #2196F3;
  border-color: #2196F3;
}
html body.route-superviz .sv-map-host .phx-switch input:checked + .phx-switch-ui::after {
  left: 18px;
  background: #fff;
}
html body.route-superviz .sv-map-host .phx-switch input:focus-visible + .phx-switch-ui {
  outline: 1px solid var(--sv-text);
  outline-offset: 2px;
}
html body.route-superviz .sv-map-host .phx-map-card {
  height: min(68vh, 680px);
  min-height: 420px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0 0 10px 10px;
  background: #1F2121;
  overflow: hidden;
  position: relative;
}
html body.route-superviz .sv-map-host .phx-caption-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  position: relative;
}
html body.route-superviz .sv-map-host .phx-caption {
  margin: 0;
  font: 400 13px/1.3 "Satoshi", system-ui, sans-serif;
  color: var(--sv-text-2);
}
html body.route-superviz .sv-map-host .phx-info {
  height: 24px;
  padding: 0 8px;
  border: 1px solid #2F3232;
  border-radius: 999px;
  background: transparent;
  color: var(--sv-text-2);
  font: 500 12px/1 "Satoshi", system-ui, sans-serif;
  cursor: pointer;
}
html body.route-superviz .sv-map-host .phx-info-pop {
  position: absolute;
  z-index: 5;
  top: 32px;
  left: 12px;
  width: min(320px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid #2F3232;
  border-radius: 10px;
  background: #1F2121;
}
html body.route-superviz .sv-map-host .phx-info-pop[hidden] { display: none; }
html body.route-superviz .sv-map-host .phx-info-pop p {
  display: flex;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--sv-text);
}
html body.route-superviz .sv-map-host .phx-info-pop span {
  flex: 0 0 72px;
  color: var(--sv-text-3);
}
html body.route-superviz .sv-map-host .phx-map-wrap {
  flex: 1 1 auto;
  min-height: 360px;
  height: auto;
  border-radius: 0;
}
html body.route-superviz .sv-map-host .mapboxgl-map {
  top: 0 !important;
  height: 100% !important;
}
html body.route-superviz .sv-map-host .phx-legend {
  position: absolute;
  right: 12px;
  bottom: 28px;
  z-index: 2;
  width: 180px;
  padding: 10px 12px;
  border: 1px solid #2F3232;
  border-radius: 10px;
  background: #1F2121;
  color: var(--sv-text);
  font: 400 12px/1.35 "Satoshi", system-ui, sans-serif;
}
html body.route-superviz .sv-map-host .phx-legend-title {
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
}
html body.route-superviz .sv-map-host .phx-legend-bar {
  height: 8px;
  border-radius: 4px;
  border: 1px solid #2F3232;
}
html body.route-superviz .sv-map-host .phx-legend-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--sv-text-2);
}
html body.route-superviz .sv-map-host .phx-legend-key {
  margin-top: 8px;
  color: var(--sv-text-3);
  font-size: 12px;
}
html body.route-superviz .sv-section[data-division="map"] .sv-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
html body.route-superviz .sv-section[data-division="map"] .sv-card {
  border: 1px solid #2F3232;
  border-radius: 10px;
  background: #1F2121;
  box-shadow: none;
}
@media (max-width: 820px) {
  html body.route-superviz .sv-map-host .phx-filters-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin: 10px 12px;
    padding: 0 12px;
    border: 1px solid #2F3232;
    border-radius: 999px;
    background: #1F2121;
    color: var(--sv-text);
    font: 500 13px/1 "Satoshi", system-ui, sans-serif;
  }
  html body.route-superviz .sv-map-host .phx-filter-bar {
    display: none;
    position: absolute;
    z-index: 6;
    inset: 48px 8px auto 8px;
    flex-direction: column;
    align-items: stretch;
    max-height: min(70vh, 520px);
    overflow: auto;
    border: 1px solid #2F3232;
    border-radius: 10px;
    box-shadow: none;
  }
  html body.route-superviz .sv-map-host.phx-filters-open .phx-filter-bar {
    display: flex;
  }
  html body.route-superviz .sv-map-host .phx-chip,
  html body.route-superviz .sv-map-host .phx-chip > summary,
  html body.route-superviz .sv-map-host .phx-switch {
    width: 100%;
    margin-left: 0;
    white-space: normal;
  }
  html body.route-superviz .sv-map-host .phx-chip-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
  }
  html body.route-superviz .sv-map-host .phx-map-card { height: 70vh; min-height: 360px; }
  html body.route-superviz .sv-section[data-division="map"] .sv-grid {
    grid-template-columns: 1fr;
  }
}

/* Rep scorecard group filter. Flat card chrome, 1px borders.
   The selected choice is the one blue accent in this block.
   --sv-border is #2F3232 and --sv-card-bg is #1F2121. */
html body.route-superviz .sv-page .sv-card[data-chart-id="sales_rep_table"] {
  overflow: visible;
}
html body.route-superviz .sv-page .sv-card[data-chart-id="sales_rep_table"] .sv-card-actions {
  margin-left: 8px;
}
html body.route-superviz .sv-page .sv-choice {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
  flex: 0 1 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
}
html body.route-superviz .sv-page .sv-choice-btn {
  appearance: none;
  margin: 0;
  border: 1px solid var(--sv-border);
  border-radius: 999px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--sv-text);
  font: 500 13px/1.2 Satoshi, system-ui, sans-serif;
  padding: 6px 12px;
  min-height: 32px;
  cursor: pointer;
}
html body.route-superviz .sv-page .sv-choice-btn[aria-pressed="true"] {
  background: #2196F3;
  border-color: var(--sv-accent);
  background-image: none;
  color: #fff;
}
html body.route-superviz .sv-page .sv-choice-btn:focus-visible {
  outline: 1px solid var(--sv-text);
  outline-offset: 2px;
}
html body.route-superviz .sv-page .sv-card-caption {
  margin: 2px 0 8px;
  padding: 0 16px;
  max-width: 72ch;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--sv-text-2);
  white-space: normal;
}

/* Range chip. Quiet pill; the menu is a flat 10px card. */
html body.route-superviz .sv-page .sv-range {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 0 16px 8px;
  margin-top: -2px;
}
html body.route-superviz .sv-page .sv-range-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 10px;
  min-height: 28px;
  border: 1px solid var(--sv-border);
  border-radius: 999px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--sv-text-3);
  font: 400 12px/1.2 Satoshi, system-ui, sans-serif;
  cursor: pointer;
}
html body.route-superviz .sv-page .sv-range-chip:focus-visible {
  outline: 1px solid var(--sv-text);
  outline-offset: 2px;
}
html body.route-superviz .sv-range-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 48px));
  padding: 6px;
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  background: var(--sv-card-bg);
  background-image: none;
  box-shadow: none;
  color: var(--sv-text);
}
html body.route-superviz .sv-range-pop[hidden],
html body.route-superviz .sv-range-custom[hidden],
html body.route-superviz .sv-range-error[hidden] {
  display: none;
}
html body.route-superviz .sv-range-opt {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--sv-text-2);
  font: 400 13px/1.3 Satoshi, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
html body.route-superviz .sv-range-opt.is-selected {
  color: var(--sv-text);
  font-weight: 500;
}
html body.route-superviz .sv-range-opt:hover,
html body.route-superviz .sv-range-opt:focus-visible {
  background: var(--sv-hover);
  background-image: none;
  outline: none;
}
html body.route-superviz .sv-range-custom {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 10px 10px;
  margin-top: 4px;
  border-top: 1px solid var(--sv-border);
}
html body.route-superviz .sv-range-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 120px;
  min-width: 0;
  color: var(--sv-text-3);
  font: 400 12px/1.2 Satoshi, system-ui, sans-serif;
}
html body.route-superviz .sv-range-field input {
  appearance: none;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--sv-border);
  border-radius: 6px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--sv-text);
  font: 400 13px/1.2 Satoshi, system-ui, sans-serif;
  color-scheme: dark;
}
html body.route-superviz .sv-range-apply {
  appearance: none;
  align-self: flex-start;
  margin: 0;
  padding: 6px 12px;
  min-height: 32px;
  border: 1px solid var(--sv-border);
  border-radius: 999px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--sv-text);
  font: 500 13px/1.2 Satoshi, system-ui, sans-serif;
  cursor: pointer;
}
html body.route-superviz .sv-range-error {
  flex: 1 1 100%;
  margin: 0;
  color: var(--sv-text-2);
  font-size: 12px;
  font-weight: 400;
}

/* Card tables share one renderer. The row-number column used a raised
   fill that read as a stripe on the flat card. Keep it the card color,
   with the same row height and a 1px divider. Detail views outside a
   card keep the shared rule. */
html body.route-superviz .sv-page .sv-card .ac-data-frame {
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  background-image: none;
  box-shadow: none;
}
html body.route-superviz .sv-page .sv-card .ac-table th,
html body.route-superviz .sv-page .sv-card .ac-table td {
  height: 36px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--sv-border);
  background-image: none;
  box-shadow: none;
}
html body.route-superviz .sv-page .sv-card .ac-table th {
  background: var(--sv-card-bg);
  color: var(--sv-text-3);
  font-size: 12px;
  font-weight: 500;
}
html body.route-superviz .sv-page .sv-card .ac-table td {
  font-size: 13px;
}
html body.route-superviz .sv-page .sv-card .ac-table .ac-index {
  width: 36px;
  min-width: 36px;
  background: transparent;
  background-image: none;
  border-right: 0;
  color: var(--sv-text-3);
  font-size: 12px;
  font-weight: 400;
  box-shadow: none;
}
html body.route-superviz .sv-page .sv-card .ac-table th.ac-index {
  background: var(--sv-card-bg);
}
html body.route-superviz .sv-page .sv-card .ac-table tbody tr:hover td.ac-index {
  background: var(--ac-row-hover, var(--sv-hover));
  background-image: none;
}
html body.route-superviz .sv-page .sv-card .ac-table tfoot td {
  background: var(--sv-card-bg);
  background-image: none;
  border-top: 1px solid var(--sv-border);
  color: var(--sv-text);
  font-weight: 500;
  box-shadow: none;
}

@media (max-width: 820px) {
  html body.route-superviz .sv-page .sv-card[data-chart-id="sales_rep_table"] .sv-card-head {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  html body.route-superviz .sv-page .sv-card[data-chart-id="sales_rep_table"] .sv-choice {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  html body.route-superviz .sv-page .sv-choice-btn,
  html body.route-superviz .sv-page .sv-range-chip,
  html body.route-superviz .sv-range-apply {
    min-height: 44px;
  }
  html body.route-superviz .sv-page .sv-range {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Dashboard builder. The unlayered .sv-page rule (transparent background,
   page padding) paints the editor onto the SuperViz page, the same way it
   used to paint Explore. These rules are unlayered and more specific, so
   the builder is its own opaque workspace. Closing removes the node and
   the page underneath is unchanged. */
html body.route-superviz .de-builder {
  --de-gap: 16px;
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--sv-page-bg, #1A1B1B);
  background-image: none;
  color: var(--sv-text);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
}
html body.route-superviz .de-builder > .de-head {
  position: static;
  top: auto;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-height: 56px;
  min-width: 0;
  gap: 12px;
  padding: 8px 16px;
  background: #1F2121;
  background-image: none;
  border-bottom: 1px solid #2F3232;
  box-shadow: none;
}
html body.route-superviz .de-builder > .de-head h1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 16px/1.2 "Satoshi", system-ui, sans-serif;
  color: var(--sv-text);
}
html body.route-superviz .de-builder .de-metadata,
html body.route-superviz .de-builder .de-status {
  font-size: 12px;
  font-weight: 400;
  color: var(--sv-text-3);
}
html body.route-superviz .de-builder .de-head-actions {
  flex-wrap: nowrap;
  gap: 8px;
}
html body.route-superviz .de-builder .de-button.de-primary {
  background: var(--sv-accent);
  border-color: var(--sv-accent);
  color: #fff;
}
html body.route-superviz .de-builder .de-button.de-primary:hover {
  background: var(--sv-accent);
  border-color: var(--sv-accent);
  color: #fff;
}
html body.route-superviz .de-builder > .de-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--sv-page-bg, #1A1B1B);
  background-image: none;
}
html body.route-superviz .de-builder .de-canvas {
  min-width: 0;
  min-height: 0;
  height: auto;
  max-width: 100%;
  overflow: auto;
  padding: 16px;
  background: var(--sv-page-bg, #1A1B1B);
  background-image: none;
}
html body.route-superviz .de-builder .de-children {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
html body.route-superviz .de-builder .de-flow-column {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
html body.route-superviz .de-builder .de-flow-row {
  flex-flow: row wrap;
  align-items: flex-start;
  gap: 16px;
}
html body.route-superviz .de-builder .de-node {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 0;
}
html body.route-superviz .de-builder .de-flow-column > .de-node {
  width: calc(100% * var(--de-span, 12) / 12);
  max-width: 100%;
}
html body.route-superviz .de-builder .de-flow-row > .de-node {
  flex: 0 0 calc((100% + 16px) * var(--de-span, 12) / 12 - 16px);
  width: calc((100% + 16px) * var(--de-span, 12) / 12 - 16px);
  max-width: 100%;
}
html body.route-superviz .de-builder .de-chart-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #1F2121;
  background-image: none;
  border: 1px solid #2F3232;
  border-radius: 10px;
  box-shadow: none;
}
html body.route-superviz .de-builder .de-chart-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
}
html body.route-superviz .de-builder .de-chart-head .de-chart-title {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--sv-text-2);
  font: 500 14px/1.3 "Satoshi", system-ui, sans-serif;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}
html body.route-superviz .de-builder .de-chart-head .de-chart-title:hover {
  color: var(--sv-text);
  background: transparent;
}
html body.route-superviz .de-builder .de-chart-body,
html body.route-superviz .de-builder .de-chart-body .ac-host,
html body.route-superviz .de-builder .ac-spark {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
html body.route-superviz .de-builder .de-chart-body {
  flex: 1 1 auto;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 12px 12px;
}
html body.route-superviz .de-builder .ac-host canvas {
  max-width: 100%;
}
html body.route-superviz .de-builder .ac-kpi {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-start;
  padding: 4px 8px 0;
}
html body.route-superviz .de-builder .ac-kpi-value {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--sv-text);
}
html body.route-superviz .de-builder .ac-kpi .ac-spark {
  flex: 1 1 auto;
  width: 100%;
  min-height: 140px;
  max-height: none;
  margin-top: 8px;
}
html body.route-superviz .de-builder .de-sidebar {
  position: relative;
  top: auto;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 16px 16px;
  background: #1F2121;
  background-image: none;
  border-left: 1px solid #2F3232;
  box-shadow: none;
}
html body.route-superviz .de-builder .de-sidebar-tabs {
  gap: 16px;
  min-height: 44px;
}
html body.route-superviz .de-builder .de-sidebar-tabs button {
  font: 500 13px/1.2 "Satoshi", system-ui, sans-serif;
  color: var(--sv-text-2);
}
html body.route-superviz .de-builder .de-sidebar-tabs button.de-active {
  color: var(--sv-accent);
  border-bottom-color: var(--sv-accent);
}
html body.route-superviz .de-builder .de-sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 0 16px;
}
html body.route-superviz .de-builder .de-inspector {
  background: #252727;
  background-image: none;
  border: 1px solid #2F3232;
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 16px;
  box-shadow: none;
}
html body.route-superviz .de-builder .de-inspector > header strong {
  font: 500 13px/1.3 "Satoshi", system-ui, sans-serif;
  color: var(--sv-text);
}
html body.route-superviz .de-builder .de-help,
html body.route-superviz .de-builder .de-library-group {
  font-size: 12px;
  line-height: 1.4;
  color: var(--sv-text-3);
}
html body.route-superviz .de-builder .de-size-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
html body.route-superviz .de-builder .de-size-fields input,
html body.route-superviz .de-builder .de-editor-label textarea,
html body.route-superviz .de-builder .de-editor-label select,
html body.route-superviz .de-builder .de-inline-label select,
html body.route-superviz .de-builder .de-insertion select,
html body.route-superviz .de-builder .de-library-filters input,
html body.route-superviz .de-builder .de-tab-fields input {
  width: 100%;
  min-width: 0;
  border: 1px solid #2F3232;
  border-radius: 6px;
  background: #1F2121;
  background-image: none;
  color: var(--sv-text);
  font: 400 13px/1.2 "Satoshi", system-ui, sans-serif;
  box-shadow: none;
}
html body.route-superviz .de-builder .de-insertion label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  white-space: normal;
}
html body.route-superviz .de-builder .de-insertion select {
  flex: 1 1 140px;
}
html body.route-superviz .de-builder .de-library-filters {
  grid-template-columns: minmax(0, 1fr);
}
html body.route-superviz .de-builder .de-library {
  gap: 12px;
}
html body.route-superviz .de-builder .de-library-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  background: #1F2121;
  background-image: none;
  border: 1px solid #2F3232;
  border-radius: 10px;
  box-shadow: none;
}
html body.route-superviz .de-builder .de-library-preview,
html body.route-superviz .de-builder .de-mini-chart {
  width: 72px;
  height: 56px;
}
html body.route-superviz .de-builder .de-library-info > strong,
html body.route-superviz .de-builder .de-library-info dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body.route-superviz .de-builder .de-inspector-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
html body.route-superviz .de-builder .de-header,
html body.route-superviz .de-builder .de-markdown,
html body.route-superviz .de-builder .de-divider {
  background: #1F2121;
  background-image: none;
  border: 1px solid #2F3232;
  border-radius: 10px;
  box-shadow: none;
}
html body.route-superviz .de-builder .de-text-body h2 { font-size: 20px; font-weight: 500; }
html body.route-superviz .de-builder .de-text-body h3 { font-size: 16px; font-weight: 500; }
html body.route-superviz .de-builder .de-text-body h4 { font-size: 14px; font-weight: 500; }
@media (max-width: 820px) {
  html body.route-superviz .de-builder {
    overflow: auto;
  }
  html body.route-superviz .de-builder > .de-head {
    flex-wrap: wrap;
    height: auto;
  }
  html body.route-superviz .de-builder .de-head-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  html body.route-superviz .de-builder > .de-shell {
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 0;
  }
  html body.route-superviz .de-builder .de-sidebar {
    order: -1;
    width: 100%;
    max-height: 46vh;
    border-left: 0;
    border-bottom: 1px solid #2F3232;
  }
  html body.route-superviz .de-builder .de-canvas {
    overflow: visible;
    min-height: 70vh;
    padding: 12px;
  }
  html body.route-superviz .de-builder .de-flow-row > .de-node,
  html body.route-superviz .de-builder .de-flow-column > .de-node {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }
  html body.route-superviz .de-builder .de-library-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
