/* ==========================================================
   Bongo Performance Studio — light dashboard theme
   (follows the Knoct Figma pattern: sidebar nav, white cards,
   green primary, navy secondary, zebra tables, round icons)

   Plain CSS on purpose: the Tailwind CDN only compiles
   <style type="text/tailwindcss">, so @apply in a linked
   stylesheet is never processed.
   Component classes avoid setting width/margin so Tailwind
   utilities can size them in the markup.
   ========================================================== */

:root {
  --bp-brand: #22b35e;
  --bp-brand-600: #1c9c50;
  --bp-brand-700: #167d41;
  --bp-brand-50: #eaf7ef;
  --bp-navy: #2d3748;
  --bp-navy-700: #1f2733;
  --bp-ink: #2d3748;
  --bp-ink-2: #4a5568;
  --bp-muted: #718096;
  --bp-faint: #a0aec0;
  --bp-line: #e7eaee;
  --bp-line-strong: #d9dee4;
  --bp-canvas: #f7f8fa;
  --bp-hover: #eef0f3;
  --bp-cyan: #22c3e6;
  --bp-amber: #fbbd4a;
  --bp-red: #f43f5e;
  --bp-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 3px 10px rgba(16, 24, 40, 0.06);
  --bp-sidebar-w: 248px;
  --bp-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html,
body {
  background: #ffffff;
  color: var(--bp-ink-2);
}

/* Toggled from JS on buttons, cards and modals that also carry a display rule. */
.hidden {
  display: none !important;
}

/* ---------- App shell ---------- */
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--bp-sidebar-w);
  background: var(--bp-canvas);
  z-index: 40;
  overflow-y: auto;
  padding: 28px 16px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.app-main {
  margin-left: var(--bp-sidebar-w);
  min-height: 100vh;
  transition: margin-left 0.2s ease;
}
body.sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
}
body.sidebar-collapsed .app-main {
  margin-left: 0;
}
.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 35;
}
@media (max-width: 1023px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  }
  .app-main {
    margin-left: 0;
  }
  body.sidebar-open .app-sidebar {
    transform: none;
  }
  body.sidebar-open .sidebar-scrim {
    display: block;
  }
}

.brand-word {
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #1f2733;
}
.brand-word b {
  color: var(--bp-brand);
  font-weight: 400;
}
.brand-tag {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--bp-brand);
}

/* ---------- Sidebar navigation ---------- */
.nav-item,
.nav-sub {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-ink);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s;
}
.nav-item > span,
.nav-sub > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item {
  gap: 12px;
  padding: 10px 12px;
}
.nav-sub {
  gap: 10px;
  padding: 9px 10px 9px 18px;
}
.nav-item:hover,
.nav-sub:hover {
  background: var(--bp-hover);
}
.nav-item.active,
.nav-sub.active {
  background: #e8eaee;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--bp-ink-2);
  flex-shrink: 0;
}
.nav-item.active svg {
  color: var(--bp-brand);
}
.nav-sub::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid var(--bp-ink-2);
  flex-shrink: 0;
}
.nav-sub.active::before {
  background: var(--bp-brand);
  border-color: var(--bp-brand);
}
.nav-group > summary {
  list-style: none;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-chevron {
  margin-left: auto;
  transition: transform 0.15s;
}
.nav-group[open] .nav-chevron {
  transform: rotate(180deg);
}
.nav-subs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 6px;
}
.nav-badge {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  background: #e3e7ec;
  color: var(--bp-ink-2);
  white-space: nowrap;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bp-line);
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-ink);
  cursor: pointer;
  transition: background-color 0.15s;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--bp-hover);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  background: #f4f5f7;
  color: var(--bp-faint);
  min-width: 0;
}
.topbar-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.topbar-search input {
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
  width: 100%;
  font-family: var(--bp-mono);
  font-size: 13px;
  color: var(--bp-ink);
}
.topbar-divider {
  width: 1px;
  height: 28px;
  background: var(--bp-line);
}
.env-pill {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--bp-line);
  background: #fff;
}
.env-pill select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-ink);
  cursor: pointer;
  padding-right: 6px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  background: #eef0f3;
  color: var(--bp-muted);
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}
.status-pill.is-ok {
  background: #e6f6ec;
  color: var(--bp-brand-700);
}
.status-pill.is-warn {
  background: #fef4e2;
  color: #a35f08;
}
.status-pill.is-down {
  background: #fdecee;
  color: #c8203f;
}

/* Docs link: a pill like the environment switcher */
.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--bp-line);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-ink);
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.topbar-btn:hover {
  background: var(--bp-brand-50);
  border-color: #a9e1bf;
  color: var(--bp-brand-700);
}
.topbar-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
@media (max-width: 639px) {
  .topbar-btn {
    padding: 0 10px;
  }
  .topbar-btn span {
    display: none;
  }
}

/* ---------- Page ---------- */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}
@media (min-width: 1024px) {
  .page {
    padding: 32px 36px 48px;
  }
}
.page-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400;
  color: #3d4a5c;
}
.page-subtitle {
  margin-top: 6px;
  font-size: 18px;
  color: var(--bp-muted);
}
.section-title {
  font-size: 19px;
  font-weight: 500;
  color: var(--bp-ink);
}
.section-desc {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bp-muted);
  max-width: 46rem;
}
.section-desc strong {
  color: var(--bp-ink);
  font-weight: 500;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  box-shadow: var(--bp-shadow);
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bp-line);
}
.card-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--bp-ink);
}
.card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--bp-muted);
}
.well {
  background: var(--bp-canvas);
  border: 1px solid var(--bp-line);
  border-radius: 6px;
}

/* KPI / stat cards (value + label + colored sub-line) */
.kpi {
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  box-shadow: var(--bp-shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-value {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--bp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--bp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-sub svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.stat-tile {
  background: var(--bp-canvas);
  border-radius: 6px;
  padding: 14px 16px;
  min-width: 0;
}
.stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bp-muted);
}
.stat-value {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--bp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Round icons (Figma notification/expenditure lists) */
.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.icon-circle svg {
  width: 20px;
  height: 20px;
}
.icon-circle.sm {
  width: 32px;
  height: 32px;
}
.icon-circle.sm svg {
  width: 16px;
  height: 16px;
}
.ic-green { background: var(--bp-brand); }
.ic-amber { background: var(--bp-amber); }
.ic-cyan { background: var(--bp-cyan); }
.ic-red { background: var(--bp-red); }
.ic-navy { background: var(--bp-navy); }
.ic-purple { background: #8b5cf6; }
.ic-blue { background: #3b82f6; }
.ic-gray { background: #b5bec9; }

/* Ring gauge (Active / Inactive Users cards) */
.gauge {
  position: relative;
  width: 116px;
  height: 116px;
  flex-shrink: 0;
}
.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge-track {
  fill: none;
  stroke: #eef0f3;
  stroke-width: 7;
}
.gauge-bar {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gauge-value {
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  color: var(--bp-ink);
}
.gauge-value small {
  font-size: 13px;
  margin-left: 1px;
  vertical-align: super;
}
.gauge-caption {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--bp-ink-2);
}

/* Legend list (Figma "Expenditure" rows) */
.legend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--bp-ink-2);
}
.legend-list li strong {
  margin-left: auto;
  font-weight: 500;
  color: var(--bp-ink);
  white-space: nowrap;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.bar-track {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef0f3;
}
.bar-track > div {
  height: 100%;
  transition: width 0.5s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--bp-brand);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--bp-brand-600);
}
.btn-dark {
  background: var(--bp-navy);
  color: #fff;
}
.btn-dark:hover:not(:disabled) {
  background: var(--bp-navy-700);
}
.btn-outline {
  background: #fff;
  border-color: var(--bp-line-strong);
  color: var(--bp-ink);
}
.btn-outline:hover:not(:disabled) {
  background: var(--bp-canvas);
}
.btn-soft {
  background: #f4f5f7;
  border-color: #eceef1;
  color: var(--bp-ink);
}
.btn-soft:hover:not(:disabled) {
  background: #eceef1;
}
.btn-soft svg {
  color: var(--bp-ink-2);
}
.btn-danger {
  background: #ef4444;
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #dc2626;
}
.btn-danger-soft {
  background: #fff;
  border-color: #fbcfd6;
  color: #d61f45;
}
.btn-danger-soft:hover:not(:disabled) {
  background: #fff1f3;
}
.btn-tag {
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.link {
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover {
  color: var(--bp-brand-600);
}
.link-btn {
  font-size: 14px;
  color: var(--bp-ink);
  cursor: pointer;
}
.link-btn:hover {
  color: var(--bp-brand-600);
}

/* ---------- Form fields ---------- */
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-ink);
}
.field-hint {
  margin-top: 5px;
  font-size: 12px;
  color: var(--bp-faint);
}
.input,
.select,
.textarea {
  background: #fff;
  border: 1px solid var(--bp-line-strong);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--bp-ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--bp-faint);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--bp-brand);
  box-shadow: 0 0 0 3px rgba(34, 179, 94, 0.15);
}
.input-well {
  background: #f4f5f7;
  border-color: transparent;
}
.select {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.mono {
  font-family: var(--bp-mono);
}
.search-field {
  position: relative;
}
.search-field > svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--bp-faint);
  pointer-events: none;
}
.search-field > .input {
  padding-left: 36px;
}
/* Range sliders: light track + green thumb (Chrome darkens the native track under accent-color) */
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #e6e9ed;
  outline: none;
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--bp-brand);
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.3);
}
input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--bp-brand);
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.3);
}
input[type='range']:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(34, 179, 94, 0.25);
}
.value-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bp-brand-50);
  color: var(--bp-brand-700);
  font-family: var(--bp-mono);
  font-size: 12px;
  font-weight: 500;
}
.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11px;
  color: var(--bp-faint);
}

/* Selectable option cards (load test scenario radios) */
.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.option-card:hover {
  border-color: var(--bp-line-strong);
}
.option-card:has(input:checked) {
  border-color: var(--bp-brand);
  background: var(--bp-brand-50);
}
.option-card input {
  accent-color: var(--bp-brand);
}
.option-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-ink);
}
.option-desc {
  font-size: 12.5px;
  color: var(--bp-muted);
}

/* Count preset pills on collection cards */
.preset-pill {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--bp-line-strong);
  background: #fff;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--bp-ink-2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.preset-pill:hover {
  border-color: var(--bp-brand);
  color: var(--bp-brand-600);
}
.preset-pill.active {
  background: var(--bp-brand-50);
  border-color: var(--bp-brand);
  color: var(--bp-brand-700);
}

/* ---------- Chips & badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  background: #e3f1fb;
  color: #1f5f8b;
}
.chip-green { background: #e6f6ec; color: var(--bp-brand-700); }
.chip-red { background: #fdecee; color: #c8203f; }
.chip-amber { background: #fef4e2; color: #a35f08; }
.chip-gray { background: #eef0f3; color: var(--bp-ink-2); }
.chip-purple { background: #f1ecfd; color: #6d3fc6; }
.chip-cyan { background: #e2f7fb; color: #0e7490; }
.count-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bp-red);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
}
.tab {
  display: inline-block;
  padding: 12px 2px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover {
  color: var(--bp-ink);
}
.tab.active {
  color: var(--bp-ink);
  border-bottom-color: var(--bp-brand);
}
.tab svg {
  width: 16px;
  height: 16px;
}
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  background: #f1f3f5;
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.seg-btn:hover {
  color: var(--bp-ink);
}
.seg-btn.active {
  background: #fff;
  color: var(--bp-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

/* ---------- Tables (Figma zebra rows) ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  background: #fff;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
.table thead th {
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--bp-line);
  font-size: 13px;
  font-weight: 500;
  color: var(--bp-ink);
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 14px;
  color: var(--bp-ink-2);
  vertical-align: middle;
}
.table tbody tr:nth-child(even) td {
  background: var(--bp-canvas);
}
.table tbody tr:hover td {
  background: #f1f3f6;
}

/* ---------- Console / code panes ---------- */
.console {
  background: var(--bp-canvas);
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--bp-mono);
  font-size: 12px;
  color: var(--bp-ink-2);
  overflow-y: auto;
}
.code-editor {
  width: 100%;
  background: var(--bp-canvas);
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--bp-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--bp-ink);
  outline: none;
  resize: none;
}
.code-editor:focus {
  border-color: var(--bp-brand);
}
.console::-webkit-scrollbar,
.code-editor::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.console::-webkit-scrollbar-track,
.code-editor::-webkit-scrollbar-track {
  background: transparent;
}
.console::-webkit-scrollbar-thumb,
.code-editor::-webkit-scrollbar-thumb {
  background: #d5dae0;
  border-radius: 999px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bp-brand);
  box-shadow: 0 0 0 4px rgba(34, 179, 94, 0.18);
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #eef0f3;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--bp-brand);
  transition: width 0.3s ease;
}

/* Connected Collections map (Cytoscape canvas on a dotted grid) */
.graph-canvas {
  position: relative;
  height: clamp(520px, 72vh, 760px);
  background-color: #fbfcfd;
  background-image: radial-gradient(#dfe3e8 1px, transparent 1px);
  background-size: 18px 18px;
}
@media (max-width: 767px) {
  .graph-canvas {
    height: 460px;
  }
}
.graph-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--bp-muted);
}
.legend-line {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}
.legend-dash {
  display: inline-block;
  width: 18px;
  border-top: 2px dashed #e9a23b;
}

/* Upload drop zone */
.dropzone {
  border: 2px dashed var(--bp-line-strong);
  border-radius: 6px;
  background: var(--bp-canvas);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone:hover {
  border-color: var(--bp-brand);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
}

/* ---------- Print: Executive Report only ---------- */
@media print {
  .app-sidebar,
  .sidebar-scrim,
  .topbar,
  .tab-btn,
  button,
  #screenCloudTesting,
  #cleanConfirmModal,
  #consoleLog,
  .no-print {
    display: none !important;
  }
  .app-main {
    margin-left: 0 !important;
  }
  body,
  main,
  .page {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #tabReport,
  #executiveReportPaper {
    display: block !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  #executiveReportPaper * {
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
  }
}
