/* The map is a full-window workspace; the reference pages keep their own shell. */
body:has(.vb-shell) {
  margin: 0;
  background: #141a23;
}
body:has(.vb-shell) > header,
body:has(.vb-shell) .shell > aside,
body:has(.vb-shell) #main > .heading {
  display: none;
}
body:has(.vb-shell) .shell,
body:has(.vb-shell) #main,
body:has(.vb-shell) #view {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
body:has(.vb-shell) #feedback:empty { display: none; }
body:has(.vb-shell) #feedback:not(:empty) {
  position: fixed;
  bottom: .75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: max-content;
  max-width: calc(100% - 2rem);
  border: 1px solid #516679;
  border-radius: 5px;
  padding: .5rem .8rem;
  background: #263443;
  color: #f1f6fa;
  font-size: .82rem;
  box-shadow: 0 5px 22px #0006;
}
.vb-shell {
  --vb-ink: #ebf1f6;
  --vb-muted: #b1bfce;
  --vb-soft: #95a6b8;
  --vb-paper: #141a23;
  --vb-panel: #1e2733;
  --vb-card: #25313e;
  --vb-border: #364455;
  --vb-focus: #9dd6ff;
  --vb-green: #48c99b;
  --vb-amber: #f3b849;
  --vb-slate: #8194a8;
  --vb-cyan: #89c7da;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100dvh;
  min-height: 450px;
  width: 100%;
  overflow: hidden;
  background: var(--vb-paper);
  color: var(--vb-ink);
  font: 14px/1.4 Fixel, Arial, sans-serif;
  color-scheme: dark;
  text-align: left;
}
.vb-shell *, .vb-shell *::before, .vb-shell *::after { box-sizing: border-box; }
.vb-shell :focus-visible { outline: 2px solid var(--vb-focus); outline-offset: 3px; }
.vb-shell :where(button, input, summary, a) { font: inherit; }
.vb-shell :is(.vb-head, .vb-controls, .vb-inspector) svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.vb-shell .vb-head {
  display: grid;
  flex: none;
  grid-template-columns: minmax(216px, 1.2fr) minmax(176px, 1fr) minmax(220px, 1.1fr) auto;
  gap: clamp(16px, 2.7vw, 54px);
  align-items: center;
  padding: 18px clamp(16px, 2vw, 38px);
  background: var(--vb-panel);
  border-bottom: 1px solid var(--vb-border);
}
.vb-shell .vb-title {
  margin: 0 0 4px;
  padding: 0;
  color: var(--vb-ink);
  font: 700 clamp(19px, 1.42vw, 26px)/1.17 Fixel, Arial, sans-serif;
  letter-spacing: -.035em;
}
.vb-shell .vb-caption {
  display: block;
  color: var(--vb-muted);
  font-size: 12px;
  line-height: 1.35;
}
.vb-shell .vb-snapshot { font-size: 12px; }
.vb-shell code,
.vb-shell .vb-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.vb-shell .vb-snapshot code { color: #c4cfdb; font-size: .92em; }
.vb-shell .vb-metric-line { display: flex; justify-content: space-between; gap: 11px; align-items: baseline; }
.vb-shell .vb-metric-name { color: var(--vb-ink); font-size: 13px; font-weight: 700; }
.vb-shell .vb-value { white-space: nowrap; color: var(--vb-ink); font-size: 17px; line-height: 1.2; letter-spacing: -.05em; }
.vb-shell .vb-rail {
  display: flex;
  height: 6px;
  overflow: hidden;
  border: 1px solid #3d4c5d;
  border-radius: 9px;
  background: #283342;
}
.vb-shell .vb-metric .vb-rail { margin: 5px 0; }
.vb-tone-main, .vb-tone-live { --vb-tone: var(--vb-green); }
.vb-tone-test { --vb-tone: var(--vb-cyan); }
.vb-tone-local { --vb-tone: var(--vb-amber); }
.vb-tone-pending { --vb-tone: var(--vb-slate); }
.vb-fill { display: block; height: 100%; background: var(--vb-tone); }
.vb-shell .vb-actions { display: flex; gap: 7px; align-items: center; }
.vb-shell .vb-plain, .vb-shell .vb-icon, .vb-shell .vb-mobile-jump {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 35px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--vb-border);
  border-radius: 5px;
  background: #25313e;
  color: var(--vb-ink);
  cursor: pointer;
  line-height: 1;
  font-size: 13px;
  list-style: none;
}
.vb-shell .vb-plain::-webkit-details-marker { display: none; }
.vb-shell .vb-icon { width: 35px; padding: 0; }
.vb-shell .vb-icon:disabled { cursor: progress; opacity: .6; }
.vb-shell .vb-actions svg, .vb-shell .vb-mobile-jump svg, .vb-shell .vb-search svg,
.vb-shell .vb-eyebrow svg, .vb-shell .vb-card > svg {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: none;
}
.vb-shell .vb-pages { position: relative; }
.vb-shell .vb-menu {
  position: absolute;
  z-index: 6;
  right: 0;
  top: calc(100% + 6px);
  width: 205px;
  padding: 4px;
  border: 1px solid #4b5c70;
  border-radius: 6px;
  background: #202b38;
  box-shadow: 0 9px 28px #0007;
}
.vb-shell .vb-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px;
  border-radius: 3px;
  color: var(--vb-ink);
  text-decoration: none;
  font-size: 13px;
}
.vb-shell .vb-menu a svg { width: 14px; height: 14px; color: var(--vb-soft); }
.vb-shell :is(.vb-menu a, .vb-icon, .vb-plain, .vb-card, .vb-mobile-jump):hover { background: #304052; }
.vb-shell .vb-controls {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(16px, 2vw, 38px);
  border-bottom: 1px solid var(--vb-border);
  background: #1a222d;
}
.vb-shell .vb-filters { display: flex; align-items: center; gap: 3px; }
.vb-shell .vb-filter {
  appearance: none;
  display: block;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 4px;
  margin: 0;
  padding: 5px 11px;
  color: var(--vb-muted);
  font: 700 12px/1.4 Fixel, Arial, sans-serif;
  background: none;
}
.vb-shell .vb-filter:hover { color: white; background: #23303e; }
.vb-shell .vb-filter[aria-pressed="true"] { color: #f3f7fb; border-color: #405469; background: #2b3948; }
.vb-shell .vb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 275px;
  min-width: 90px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid #394858;
  border-radius: 5px;
  background: #161e28;
  color: var(--vb-muted);
}
.vb-shell .vb-search:focus-within { outline: 2px solid var(--vb-focus); outline-offset: 1px; }
.vb-shell .vb-search svg { width: 15px; height: 15px; }
.vb-shell .vb-search input {
  appearance: none; outline: 0; width: 100%; min-width: 0; height: 20px;
  padding: 0; margin: 0; border: 0; color: var(--vb-ink); background: none; font-size: 13px;
}
.vb-shell .vb-search input::placeholder { color: #adbac9; opacity: 1; }
.vb-shell .vb-mobile-jump { display: none; }
.vb-shell .vb-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(264px, 24vw, 404px);
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.vb-shell .vb-surface {
  position: relative;
  overflow: hidden;
  min-height: 0; min-width: 0;
  height: 100%;
  background-color: var(--vb-paper);
}
.vb-shell .vb-inspector {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #526376 #1e2733;
  scrollbar-width: thin;
  border: 0;
  border-left: 1px solid var(--vb-border);
  background: var(--vb-panel);
}
.vb-shell .vb-intro { padding: 22px 20px 18px; border-bottom: 1px solid var(--vb-border); }
.vb-shell .vb-eyebrow {
  display: flex; align-items: center; gap: 6px; margin: 0 0 11px;
  color: var(--vb-muted); font-size: 11px; line-height: 1.3; font-weight: 700; letter-spacing: .055em; text-transform: uppercase;
}
.vb-shell .vb-eyebrow svg { width: 15px; height: 15px; }
.vb-shell .vb-current-name { margin: 0; color: var(--vb-ink); font: 700 clamp(18px,1.5vw,24px)/1.2 Fixel, Arial, sans-serif; letter-spacing: -.025em; }
.vb-shell .vb-description, .vb-shell .vb-empty { margin: 7px 0 0; color: var(--vb-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.vb-shell .vb-summary { margin-top: 17px; }
.vb-shell .vb-summary .vb-caption { margin-top: 5px; font-size: 11px; }
.vb-shell .vb-groups { padding: 17px 15px 28px; }
.vb-shell .vb-status-group + .vb-status-group { margin-top: 18px; }
.vb-shell .vb-group-name {
  display: flex; gap: 7px; align-items: center; margin: 0 0 7px; color: var(--vb-muted);
  font: 700 11px/1.35 Fixel, Arial, sans-serif; letter-spacing: .045em; text-transform: uppercase;
}
.vb-shell .vb-group-name i { width: 7px; height: 7px; border-radius: 2px; background: var(--vb-tone); }
.vb-shell .vb-card {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; margin: 0 0 5px; padding: 10px 10px 10px 12px; border: 1px solid #384858;
  border-left: 3px solid var(--vb-tone); border-radius: 5px; background: var(--vb-card); color: var(--vb-ink); text-align: left;
}
.vb-shell .vb-card-body { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.vb-shell .vb-card-body strong { font: 700 14px/1.3 Fixel, Arial, sans-serif; }
.vb-shell .vb-card-body small { text-transform: none; letter-spacing: normal; color: var(--vb-muted); font-size: 11px; font-weight: 400; line-height: 1.4; }
.vb-shell .vb-card > svg { width: 13px; height: 13px; color: var(--vb-soft); }
.vb-shell .vb-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 1050px) {
  .vb-shell .vb-head { grid-template-columns: minmax(184px,1.1fr) minmax(145px,1fr) minmax(175px,1fr) auto; gap: 13px; padding: 13px 16px; }
  .vb-shell .vb-metric-name { font-size: 11px; }
  .vb-shell .vb-value { font-size: 14px; }
  .vb-shell .vb-caption { font-size: 11px; }
  .vb-shell .vb-stage { grid-template-columns: minmax(0,1fr) clamp(244px,28vw,290px); }
}
@media (max-width: 760px) {
  .vb-shell { height: auto; min-height: 100dvh; overflow: visible; }
  .vb-shell .vb-head { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; padding: 13px 14px 12px; }
  .vb-shell .vb-identity { grid-area: 1/1/2/3; padding-right: 113px; }
  .vb-shell .vb-actions { grid-area: 1/2/2/3; justify-self: end; }
  .vb-shell .vb-title { font-size: 18px; }
  .vb-shell .vb-stage { display: flex; flex-direction: column; }
  .vb-shell .vb-surface { min-height: 350px; height: 60vh; height: 60svh; max-height: 640px; }
  .vb-shell .vb-controls { flex-wrap: wrap; gap: 7px; padding: 8px 12px; }
  .vb-shell .vb-filters { flex: 0 0 100%; gap: 2px; }
  .vb-shell .vb-filter { padding: 6px 10px; }
  .vb-shell .vb-search { flex: 1; max-width: unset; }
  .vb-shell .vb-mobile-jump { display: inline-flex; height: 31px; font-size: 12px; }
  .vb-shell .vb-inspector { overflow: visible; border-left: 0; border-top: 1px solid var(--vb-border); }
  .vb-shell .vb-intro { padding: 18px 16px 16px; }
  .vb-shell .vb-groups { padding: 14px 16px 24px; }
  .vb-shell .vb-summary { max-width: 350px; }
  .vb-shell .vb-eyebrow { margin-bottom: 7px; }
}
@media (max-width: 390px) {
  .vb-shell .vb-head { gap: 11px; }
  .vb-shell .vb-metric-line { display: grid; gap: 1px; }
  .vb-shell .vb-metric-name { font-size: 10.5px; }
  .vb-shell .vb-head .vb-actions { gap: 4px; }
  .vb-shell .vb-actions .vb-plain { padding: 0 7px; }
}
