/* Vucoris HQ — redesign design system (scoped under .vhq).
   Warm-white surfaces, near-black text, one restrained ink accent, functional
   status colors. Two families: Inter (UI) + JetBrains Mono (references). */

.vhq {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --surface-3: #efeee9;
  --text: #1a1a19;
  --muted: #6b6a66;
  --faint: #9b9a95;
  --border: #e7e5df;
  --border-strong: #d8d5cd;

  --accent: #2b4bf2;
  --accent-weak: #eaeeff;
  --accent-text: #1c34c4;

  /* Run Vucoris = navy. Customer Delivery = teal. Used to make the two
     navigation dimensions distinct — always paired with text labels/icons,
     never colour alone. */
  --navy: #23306e;
  --navy-weak: #eaecf7;
  --navy-text: #1e2a63;
  --navy-border: #cdd3ec;
  --teal: #0e7c86;
  --teal-weak: #e4f3f3;
  --teal-band: #f1f8f8;
  --teal-text: #0a5c64;
  --teal-border: #cfe6e6;

  --ok: #1f7a4d;
  --ok-weak: #e7f4ec;
  --warn: #b6791f;
  --warn-weak: #fbf1dd;
  --danger: #c0392b;
  --danger-weak: #fbeae7;
  --neutral: #6b6a66;
  --neutral-weak: #efeee9;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 25, 0.04), 0 1px 3px rgba(26, 26, 25, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 25, 0.08);
  --shadow-pop: 0 12px 40px rgba(26, 26, 25, 0.16);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.vhq *,
.vhq *::before,
.vhq *::after {
  box-sizing: border-box;
}

.vhq button {
  font-family: inherit;
  cursor: pointer;
}

/* ------------------------------------------------------------------ layout */
.vhq-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.vhq-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.vhq-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.vhq-canvas {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 32px 64px;
}

.vhq-canvas-narrow {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* --------------------------------------------------------------- context bar */
.vhq-contextbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.vhq-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding-right: 6px;
}
.vhq-brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.vhq-brand small {
  color: var(--faint);
  font-weight: 500;
  font-size: 11px;
  border-left: 1px solid var(--border);
  padding-left: 9px;
  margin-left: 3px;
}

.vhq-areaswitch {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  padding: 3px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.vhq-areaswitch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.vhq-areaswitch button:hover {
  color: var(--text);
}
.vhq-areaswitch button[aria-current="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.vhq-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  transition: border-color 0.12s, background 0.12s;
}
.vhq-search:hover {
  border-color: var(--border-strong);
}
.vhq-search kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--faint);
}

.vhq-ctx-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.vhq-user {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.vhq-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.vhq-demo-chip {
  font-size: 11px;
  font-weight: 550;
  color: var(--warn);
  background: var(--warn-weak);
  border: 1px solid #f0dcae;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- area nav */
.vhq-nav {
  width: 236px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width 0.16s ease;
}
.vhq-nav-collapsed {
  width: 0;
  border-right: none;
  overflow: hidden;
}
.vhq-nav-head {
  padding: 16px 18px 10px;
}
.vhq-nav-head h1 {
  font-size: 15px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.01em;
}
.vhq-nav-head p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--faint);
}
.vhq-nav-group {
  padding: 6px 10px;
}
.vhq-nav-group h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin: 10px 8px 6px;
}
.vhq-nav button {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background 0.1s, color 0.1s;
}
.vhq-nav button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.vhq-nav button[aria-current="true"] {
  background: var(--accent-weak);
  color: var(--accent-text);
  font-weight: 600;
}
.vhq-nav button .vhq-nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}
.vhq-nav button[aria-current="true"] .vhq-nav-count {
  color: var(--accent-text);
}
.vhq-nav-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
}

.vhq-savedviews {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 10px;
}

/* --------------------------------------------------------------- tab strip */
.vhq-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 40px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
  overflow-x: auto;
  flex-shrink: 0;
}
.vhq-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  max-width: 220px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
  white-space: nowrap;
  position: relative;
}
.vhq-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.vhq-tab:hover {
  color: var(--text);
}
.vhq-tab[aria-current="true"] {
  background: var(--bg);
  color: var(--text);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.vhq-tab[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--accent);
}
.vhq-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vhq-tab-close {
  border: none;
  background: transparent;
  color: var(--faint);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}
.vhq-tab-close:hover {
  background: var(--surface-3);
  color: var(--text);
}

/* --------------------------------------------------------------- activity panel */
.vhq-activity {
  width: 316px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.16s ease;
}
.vhq-activity-collapsed {
  width: 44px;
}
.vhq-activity-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.vhq-activity-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.vhq-activity-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}
.vhq-activity-list {
  overflow-y: auto;
  padding: 8px 10px;
}
.vhq-activity-item {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.vhq-activity-item:hover {
  background: var(--surface-2);
  border-color: var(--border);
  cursor: pointer;
}
.vhq-activity-item .vhq-act-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 550;
}
.vhq-activity-item .vhq-act-meta {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 3px;
  font-family: var(--font-mono);
}

/* ----------------------------------------------------------------- headings */
.vhq-page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.vhq-page-head h2 {
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 0;
}
.vhq-page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 62ch;
}
.vhq-page-head-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.vhq-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin: 26px 0 12px;
}

/* ------------------------------------------------------------------ buttons */
.vhq-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.vhq-btn:hover {
  background: var(--surface-2);
}
.vhq-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.vhq-btn-primary:hover {
  background: #2340dd;
}
.vhq-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.vhq-btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}
.vhq-btn-danger {
  border-color: #eabbb4;
  color: var(--danger);
  background: var(--surface);
}
.vhq-btn-danger:hover {
  background: var(--danger-weak);
}
.vhq-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.vhq-btn-sm {
  padding: 4px 9px;
  font-size: 12px;
}

/* --------------------------------------------------------------- cards/grid */
.vhq-grid {
  display: grid;
  gap: 14px;
}
.vhq-grid-2 { grid-template-columns: repeat(2, 1fr); }
.vhq-grid-3 { grid-template-columns: repeat(3, 1fr); }
.vhq-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .vhq-grid-3, .vhq-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.vhq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.vhq-card-pad-lg { padding: 20px; }
.vhq-card-hover {
  transition: border-color 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.vhq-card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.vhq-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vhq-stat .vhq-stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.vhq-stat .vhq-stat-value {
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.02em;
}
.vhq-stat .vhq-stat-sub {
  font-size: 11.5px;
  color: var(--faint);
}

/* ------------------------------------------------------------------ badges */
.vhq-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.vhq-badge-ok { color: var(--ok); background: var(--ok-weak); border-color: #c3e3d0; }
.vhq-badge-warn { color: var(--warn); background: var(--warn-weak); border-color: #f0dcae; }
.vhq-badge-danger { color: var(--danger); background: var(--danger-weak); border-color: #eabbb4; }
.vhq-badge-neutral { color: var(--neutral); background: var(--neutral-weak); border-color: var(--border); }
.vhq-badge-accent { color: var(--accent-text); background: var(--accent-weak); border-color: #c7d1fb; }

.vhq-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.vhq-dot-ok { background: var(--ok); }
.vhq-dot-warn { background: var(--warn); }
.vhq-dot-danger { background: var(--danger); }
.vhq-dot-neutral { background: var(--neutral); }
.vhq-dot-accent { background: var(--accent); }
.vhq-dot-pulse { box-shadow: 0 0 0 0 rgba(43, 75, 242, 0.5); animation: vhq-pulse 1.8s infinite; }
@keyframes vhq-pulse {
  70% { box-shadow: 0 0 0 6px rgba(43, 75, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 75, 242, 0); }
}

.vhq-mono { font-family: var(--font-mono); font-size: 0.92em; }
.vhq-muted { color: var(--muted); }
.vhq-faint { color: var(--faint); }

/* ------------------------------------------------------------------- tables */
.vhq-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.vhq-input {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}
.vhq-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.vhq-input-search { flex: 1; max-width: 340px; }
.vhq-select {
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}

.vhq-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.vhq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.vhq-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}
.vhq-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.vhq-table tbody tr:last-child td { border-bottom: none; }
.vhq-table tbody tr {
  cursor: pointer;
  transition: background 0.08s;
}
.vhq-table tbody tr:hover { background: var(--surface-2); }
.vhq-table .vhq-cell-strong { font-weight: 600; }

.vhq-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------- detail view */
.vhq-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1000px) {
  .vhq-detail { grid-template-columns: 1fr; }
}
.vhq-detail-side .vhq-card { margin-bottom: 14px; }

.vhq-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  font-size: 13px;
}
.vhq-kv dt { color: var(--muted); }
.vhq-kv dd { margin: 0; font-weight: 500; }

.vhq-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  padding: 4px 0;
  margin-bottom: 12px;
}
.vhq-back:hover { color: var(--text); }

/* ------------------------------------------------------------------- steps */
.vhq-steps { display: flex; flex-direction: column; gap: 0; }
.vhq-step {
  display: flex;
  gap: 12px;
  padding: 0 0 16px;
  position: relative;
}
.vhq-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: 0;
  width: 1.5px;
  background: var(--border);
}
.vhq-step-marker {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  flex-shrink: 0;
  margin-top: 1px;
  z-index: 1;
}
.vhq-step-done .vhq-step-marker { background: var(--ok); border-color: var(--ok); }
.vhq-step-active .vhq-step-marker { background: var(--accent); border-color: var(--accent); }
.vhq-step-blocked .vhq-step-marker { background: var(--danger); border-color: var(--danger); }
.vhq-step-label { font-size: 13.5px; font-weight: 550; }
.vhq-step-detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* --------------------------------------------------------------- progress */
.vhq-progress {
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.vhq-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.vhq-progress-bar.is-warn { background: var(--warn); }
.vhq-progress-bar.is-danger { background: var(--danger); }

/* -------------------------------------------------------------------- meter */
.vhq-meter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.vhq-meter {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.vhq-meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* ------------------------------------------------------------------- states */
.vhq-empty,
.vhq-errorstate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  gap: 8px;
}
.vhq-empty h3,
.vhq-errorstate h3 { margin: 0; font-size: 15px; font-weight: 600; }
.vhq-empty p,
.vhq-errorstate p { margin: 0; color: var(--muted); font-size: 13px; max-width: 46ch; }
.vhq-state-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  margin-bottom: 4px;
}
.vhq-errorstate .vhq-state-icon { background: var(--danger-weak); color: var(--danger); }
.vhq-perm .vhq-state-icon { background: var(--warn-weak); color: var(--warn); }

.vhq-skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: vhq-shimmer 1.4s ease infinite;
  border-radius: 5px;
}
@keyframes vhq-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ---------------------------------------------------------------- integration */
.vhq-conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
}

/* ------------------------------------------------------------------- banner */
.vhq-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.vhq-banner-warn { background: var(--warn-weak); border-color: #f0dcae; color: #8a5b12; }
.vhq-banner-accent { background: var(--accent-weak); border-color: #c7d1fb; color: var(--accent-text); }
.vhq-banner-danger { background: var(--danger-weak); border-color: #eabbb4; color: #922017; }

/* ------------------------------------------------------------------- modal */
.vhq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 25, 0.32);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  z-index: 60;
}
.vhq-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  width: 100%;
  max-width: 560px;
  max-height: 74vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vhq-modal-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.vhq-modal-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.vhq-modal-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.vhq-modal-body { padding: 16px 18px; overflow-y: auto; }
.vhq-modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: var(--surface-2);
}

.vhq-field { margin-bottom: 14px; }
.vhq-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
}
.vhq-field input,
.vhq-field select,
.vhq-field textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}
.vhq-field textarea { resize: vertical; min-height: 72px; }
.vhq-field input:focus,
.vhq-field select:focus,
.vhq-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.vhq-field small { color: var(--faint); font-size: 11.5px; }

/* --------------------------------------------------------------- command palette */
.vhq-cmd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  width: 100%;
  max-width: 620px;
  overflow: hidden;
}
.vhq-cmd-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.vhq-cmd-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}
.vhq-cmd-results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.vhq-cmd-group-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 10px 10px 4px;
}
.vhq-cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
}
.vhq-cmd-item[aria-selected="true"] { background: var(--accent-weak); }
.vhq-cmd-item .vhq-cmd-type {
  margin-left: auto;
  font-size: 11px;
  color: var(--faint);
  font-family: var(--font-mono);
}
.vhq-cmd-item .vhq-cmd-scope {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.vhq-cmd-foot {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--faint);
  display: flex;
  gap: 16px;
}
.vhq-cmd-foot kbd {
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
}

/* --------------------------------------------------------------- misc utils */
.vhq-row { display: flex; align-items: center; gap: 10px; }
.vhq-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vhq-col { display: flex; flex-direction: column; gap: 10px; }
.vhq-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.vhq-gap-sm { gap: 6px; }
.vhq-mt { margin-top: 14px; }
.vhq-mt-lg { margin-top: 24px; }
.vhq-tag {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  font-family: var(--font-mono);
}
.vhq-divider { height: 1px; background: var(--border); margin: 16px 0; border: none; }

.vhq-list-plain { list-style: none; margin: 0; padding: 0; }
.vhq-list-plain li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.vhq-list-plain li:last-child { border-bottom: none; }

.vhq-chatline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.vhq-chatline.is-internal { background: var(--warn-weak); border-color: #f0dcae; }
.vhq-chatline.is-agent { background: var(--accent-weak); border-color: #c7d1fb; }
.vhq-chatline .vhq-chat-meta { font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }

.vhq-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .vhq-diff { grid-template-columns: 1fr; } }
.vhq-diff-col { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.vhq-diff-col > header {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vhq-diff-col .vhq-diff-body { padding: 12px; font-size: 13px; }
.vhq-diff-add { background: var(--ok-weak); color: #17603b; padding: 1px 4px; border-radius: 3px; }
.vhq-diff-del { background: var(--danger-weak); color: #922017; padding: 1px 4px; border-radius: 3px; text-decoration: line-through; }

.vhq-preview-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.vhq-preview-frame > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.vhq-preview-frame .vhq-dots { display: flex; gap: 5px; }
.vhq-preview-frame .vhq-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }

.vhq-scrolly { overflow-y: auto; }

/* ============================================================================
 * WORK-IN-MOTION: operations header, saved views, segmented control
 * ========================================================================= */
.vhq-ops-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.vhq-ops-head h2 {
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 0;
}
.vhq-ops-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}
.vhq-ops-scope .vhq-dot { width: 6px; height: 6px; }
.vhq-ops-spacer { flex: 1; }

.vhq-seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.vhq-seg button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  padding: 5px 12px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vhq-seg button[aria-current="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* saved-view chips */
.vhq-views {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.vhq-view-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.vhq-view-chip:hover { color: var(--text); background: var(--surface-2); }
.vhq-view-chip[aria-current="true"] {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-weak);
}
.vhq-view-chip .vhq-view-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}
.vhq-view-chip[aria-current="true"] .vhq-view-count { color: var(--accent-text); }

/* the RED chip — prominent only when a person is actually required */
.vhq-view-chip.is-red {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--surface);
}
.vhq-view-chip.is-red .vhq-view-count { color: #fff; background: var(--danger); border-radius: 999px; padding: 0 6px; }
.vhq-view-chip.is-red[aria-current="true"] { background: var(--danger-weak); }
.vhq-view-chip.is-red.is-quiet { border-color: var(--border-strong); color: var(--muted); }
.vhq-view-chip.is-red.is-quiet .vhq-view-count { background: var(--surface-3); color: var(--muted); }

/* ---------------------------------------------------------------- board */
.vhq-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 1fr);
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.vhq-board-col {
  display: flex;
  flex-direction: column;
  min-height: 120px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.vhq-board-col > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.vhq-board-col > header .vhq-col-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}
.vhq-board-col .vhq-stage-mark {
  width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong);
}
.vhq-board-col.stage-ready .vhq-stage-mark { background: var(--neutral); }
.vhq-board-col.stage-preparing .vhq-stage-mark { background: var(--warn); }
.vhq-board-col.stage-running .vhq-stage-mark { background: var(--accent); }
.vhq-board-col.stage-verify .vhq-stage-mark { background: #7a5cf0; }
.vhq-board-col.stage-delivered .vhq-stage-mark { background: var(--ok); }
.vhq-board-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  min-height: 40px;
}
.vhq-board-empty {
  font-size: 12px;
  color: var(--faint);
  padding: 12px;
  text-align: center;
}

/* work card */
.vhq-wcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vhq-wcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.vhq-wcard.is-red { border-color: var(--danger); box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.14); }
.vhq-wcard.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vhq-wcard-title { font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.vhq-wcard-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.vhq-wcard-action {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vhq-wcard-action .vhq-mini-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.vhq-wcard-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--faint);
  font-family: var(--font-mono);
}
.vhq-wcard-foot .vhq-cost {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
}
.vhq-cost-bar { width: 34px; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.vhq-cost-bar > span { display: block; height: 100%; background: var(--accent); }
.vhq-red-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  color: var(--danger);
  background: var(--danger-weak);
  border: 1px solid #eabbb4;
  padding: 1px 7px;
  border-radius: 999px;
}
.vhq-scope-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}
.vhq-scope-chip.is-customer { background: var(--accent-weak); border-color: #c7d1fb; color: var(--accent-text); }

/* ---------------------------------------------------------------- inspector drawer */
.vhq-inspector-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 25, 0.18);
  z-index: 50;
}
.vhq-inspector {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 460px;
  max-width: 92vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  z-index: 51;
  display: flex;
  flex-direction: column;
  animation: vhq-slide-in 0.16s ease;
}
@keyframes vhq-slide-in { from { transform: translateX(24px); opacity: 0.4; } to { transform: translateX(0); opacity: 1; } }
.vhq-inspector-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.vhq-inspector-head h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.vhq-inspector-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.vhq-inspector-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.vhq-inspector-foot {
  border-top: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  gap: 8px;
  background: var(--surface-2);
}
.vhq-inspector-close {
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.vhq-inspector-close:hover { background: var(--surface-2); color: var(--text); }

/* red block inside inspector / cards */
.vhq-redblock {
  border: 1px solid var(--danger);
  background: var(--danger-weak);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}
.vhq-redblock h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #922017;
  display: flex;
  align-items: center;
  gap: 7px;
}
.vhq-redblock dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; margin: 0; font-size: 12.5px; }
.vhq-redblock dt { color: #a35349; font-weight: 600; }
.vhq-redblock dd { margin: 0; color: #4a2621; }
.vhq-redblock .vhq-red-actions { margin-top: 12px; display: flex; gap: 8px; }

.vhq-insp-section { margin: 0 0 18px; }
.vhq-insp-section > .vhq-faint { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; display: block; }

/* ---------------------------------------------------------------- mini board (customer active work) */
.vhq-miniboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 900px) { .vhq-miniboard { grid-template-columns: repeat(2, 1fr); } }
.vhq-minicol { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; min-height: 60px; }
.vhq-minicol > header { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.vhq-minicol .vhq-mini-item { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 7px 8px; font-size: 11.5px; margin-bottom: 6px; cursor: default; }
.vhq-minicol .vhq-mini-item.is-red { border-color: var(--danger); }
.vhq-minicol .vhq-mini-item:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- tabs (customer command space) */
.vhq-subtabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  overflow-x: auto;
}
.vhq-subtabs button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 13px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vhq-subtabs button:hover { color: var(--text); }
.vhq-subtabs button[aria-current="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.vhq-subtabs .vhq-subtab-count { margin-left: 6px; font-family: var(--font-mono); font-size: 10.5px; }
.vhq-subtabs button.is-red[data-count]:not([data-count="0"]) { color: var(--danger); }
.vhq-subtabs button.is-red[data-count]:not([data-count="0"])[aria-current="true"] { border-bottom-color: var(--danger); }

/* ---------------------------------------------------------------- service queues */
.vhq-queues {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: start;
}
@media (max-width: 1100px) { .vhq-queues { grid-template-columns: repeat(2, 1fr); } }
.vhq-queue { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.vhq-queue > header {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 11px; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.vhq-queue.is-red > header { color: var(--danger); }
.vhq-queue > header .vhq-col-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.vhq-queue-list { padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.vhq-qcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 10px; cursor: pointer; }
.vhq-qcard:hover { border-color: var(--border-strong); }
.vhq-qcard.is-red { border-color: var(--danger); }
.vhq-qcard .vhq-qcard-subj { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.vhq-qcard .vhq-qcard-meta { font-size: 11px; color: var(--faint); margin-top: 4px; }

/* ---------------------------------------------------------------- capability rows */
.vhq-cap {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.vhq-cap:last-child { border-bottom: none; }
.vhq-cap .vhq-cap-ver { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.vhq-cap .vhq-cap-runs { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- metric strip */
.vhq-metricstrip {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.vhq-metric { display: flex; flex-direction: column; gap: 2px; }
.vhq-metric .vhq-metric-value { font-size: 20px; font-weight: 680; letter-spacing: -0.02em; }
.vhq-metric .vhq-metric-label { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.vhq-metric.is-red .vhq-metric-value { color: var(--danger); }

/* studio two-pane */
.vhq-studio-split { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
@media (max-width: 960px) { .vhq-studio-split { grid-template-columns: 1fr; } }
.vhq-sitelist { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.vhq-sitelist button {
  width: 100%; text-align: left; border: none; background: transparent;
  padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; color: var(--text);
  display: flex; flex-direction: column; gap: 2px;
}
.vhq-sitelist button:last-child { border-bottom: none; }
.vhq-sitelist button:hover { background: var(--surface-2); }
.vhq-sitelist button[aria-current="true"] { background: var(--accent-weak); color: var(--accent-text); }
.vhq-sitelist button small { font-size: 11px; color: var(--faint); font-family: var(--font-mono); }
.vhq-sitelist button[aria-current="true"] small { color: var(--accent-text); }

/* ============================================================================
 * TWO NAVIGATION DIMENSIONS
 * Top = Customer Delivery (teal). Left = Run Vucoris (navy).
 * ========================================================================= */

/* ---- shared dimension label ---- */
.vhq-dim-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.vhq-dim-teal { color: var(--teal-text); }
.vhq-dim-navy { color: var(--navy-text); }

/* ---- top bar (two rows) ---- */
.vhq-topbar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.vhq-utilrow {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 16px;
}

/* Customer Delivery band — taller and visually distinct (teal). */
.vhq-deliverybar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 58px;
  padding: 0 16px;
  background: var(--teal-band);
  border-top: 1px solid var(--teal-border);
}
.vhq-delivery-tabs {
  display: flex;
  gap: 2px;
  height: 40px;
}
.vhq-delivery-tabs button {
  border: none;
  background: transparent;
  color: var(--teal-text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 0 14px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  opacity: 0.72;
  border-bottom: 2px solid transparent;
  transition: opacity 0.12s, background 0.12s;
}
.vhq-delivery-tabs button:hover { opacity: 1; background: var(--teal-weak); }
.vhq-delivery-tabs button[aria-current="true"] {
  opacity: 1;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--teal);
}
.vhq-delivery-tabs .vhq-nav-icon { width: 17px; height: 17px; }
.vhq-delivery-hint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--teal-text);
  opacity: 0.7;
}

/* ---- search launcher with intent menu ---- */
.vhq-search-wrap { position: relative; flex: 1; max-width: 520px; display: flex; }
.vhq-search-wrap .vhq-search { flex: 1; max-width: none; border-radius: var(--radius) 0 0 var(--radius); }
.vhq-search-caret {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
  color: var(--muted);
}
.vhq-search-caret:hover { border-color: var(--border-strong); color: var(--text); }
.vhq-search-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 6px;
  z-index: 60;
}
.vhq-search-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  text-align: left;
  color: var(--text);
}
.vhq-search-menu button:hover { background: var(--surface-2); }
.vhq-search-menu-label { display: flex; flex-direction: column; font-size: 13px; font-weight: 550; }
.vhq-search-menu-label small { font-weight: 400; font-size: 11.5px; color: var(--faint); }

/* ---- left Run Vucoris navigation (navy, expandable) ---- */
.vhq-runnav {
  width: 244px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.vhq-runnav-collapsed { width: 0; border-right: none; overflow: hidden; }
.vhq-runnav-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--navy);
}
.vhq-runnav-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--faint); }
.vhq-runnav-sections { padding: 6px; }
.vhq-runsec { border-radius: var(--radius-sm); }
.vhq-runsec-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: left;
}
.vhq-runsec-head:hover { background: var(--surface-2); }
.vhq-runsec.is-active > .vhq-runsec-head { color: var(--navy-text); }
.vhq-runsec-head .vhq-nav-icon { width: 16px; height: 16px; color: var(--navy); }
.vhq-runsec-caret {
  margin-left: auto;
  width: 15px;
  height: 15px;
  transition: transform 0.14s ease;
  color: var(--faint);
}
.vhq-runsec.is-open .vhq-runsec-caret { transform: rotate(180deg); }
.vhq-runsec-items { padding: 2px 0 6px 0; }
.vhq-runsec-items button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px 6px 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  border-radius: var(--radius-sm);
}
.vhq-runsec-items button:hover { background: var(--surface-2); color: var(--text); }
.vhq-runsec-items button[aria-current="true"] {
  background: var(--navy-weak);
  color: var(--navy-text);
  font-weight: 650;
  box-shadow: inset 2px 0 0 var(--navy);
}
.vhq-runsec-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--danger);
  border-radius: 999px;
  padding: 0 6px;
  min-width: 18px;
  text-align: center;
}
.vhq-runsec-ext { width: 13px; height: 13px; margin-left: auto; color: var(--faint); }
.vhq-runsec-ext + .vhq-runsec-count { margin-left: 6px; }

/* ---- scope indicator ---- */
.vhq-scopebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 20px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.vhq-scopebar-delivery { background: var(--teal-band); }
.vhq-scopebar-run { background: var(--surface-2); }
.vhq-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
}
.vhq-scope-pill .vhq-nav-icon { width: 13px; height: 13px; }
.vhq-scope-pill.is-teal { background: var(--teal-weak); color: var(--teal-text); border: 1px solid var(--teal-border); }
.vhq-scope-pill.is-navy { background: var(--navy-weak); color: var(--navy-text); border: 1px solid var(--navy-border); }
.vhq-crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.vhq-crumb-sep { width: 13px; height: 13px; color: var(--faint); }

/* ---- property switcher (Sites & Apps) ---- */
.vhq-property-switcher {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  width: fit-content;
  margin-bottom: 16px;
}
.vhq-property-switcher button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.vhq-property-switcher button:hover { color: var(--text); }
.vhq-property-switcher button[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---- Growth Lab ---- */
.vhq-growth-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.vhq-growth-sections button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: 999px;
}
.vhq-growth-sections button:hover { background: var(--surface-2); color: var(--text); }
.vhq-growth-sections button[aria-current="true"] { background: var(--accent-weak); color: var(--accent-text); font-weight: 650; }

.vhq-board-6 { grid-template-columns: repeat(6, minmax(160px, 1fr)); }
.vhq-board-6 .exp-idea .vhq-stage-mark { background: var(--faint); }
.vhq-board-6 .exp-design .vhq-stage-mark { background: var(--neutral); }
.vhq-board-6 .exp-running .vhq-stage-mark { background: var(--warn); }
.vhq-board-6 .exp-measuring .vhq-stage-mark { background: var(--accent); }
.vhq-board-6 .exp-adopted .vhq-stage-mark { background: var(--ok); }
.vhq-board-6 .exp-stopped .vhq-stage-mark { background: var(--danger); }

.vhq-exp-stages { display: flex; flex-wrap: wrap; gap: 6px; }
.vhq-exp-stage {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  color: var(--faint);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.vhq-exp-stage .vhq-exp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.vhq-exp-stage.is-done { color: var(--ok); border-color: var(--ok-weak); }
.vhq-exp-stage.is-done .vhq-exp-dot { background: var(--ok); }
.vhq-exp-stage.is-active { color: var(--accent-text); border-color: var(--accent); background: var(--accent-weak); }
.vhq-exp-stage.is-active .vhq-exp-dot { background: var(--accent); }

/* Slightly tighter delivery band on narrow screens */
@media (max-width: 900px) {
  .vhq-delivery-hint { display: none; }
  .vhq-delivery-tabs button { padding: 0 10px; font-size: 12.5px; }
}

/* ============================================================================
 * AUTONOMOUS ENGINE — Control Tower, system state, pipeline, jobs, traces
 * ========================================================================= */

.vhq-tower { max-width: 1280px; margin: 0 auto; width: 100%; }

/* ---- system state bar ---- */
.vhq-statebar {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.vhq-autonomy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 18px 4px 6px;
  border-right: 1px solid var(--border);
}
.vhq-autonomy > div { display: flex; flex-direction: column; }
.vhq-autonomy-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.vhq-autonomy strong { font-size: 15px; }
.vhq-autonomy-pulse { width: 12px; height: 12px; border-radius: 50%; position: relative; }
.vhq-autonomy-ok .vhq-autonomy-pulse { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-weak); }
.vhq-autonomy-warn .vhq-autonomy-pulse { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-weak); }
.vhq-autonomy-danger .vhq-autonomy-pulse { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-weak); }
.vhq-autonomy-ok .vhq-autonomy-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--ok); animation: vhq-ping 2.4s ease-out infinite;
}
@keyframes vhq-ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

.vhq-statebar-cells { display: flex; flex: 1; flex-wrap: wrap; gap: 10px; }
.vhq-statecell {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 96px; flex: 1;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.vhq-statecell-value { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.vhq-statecell-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.vhq-statecell.is-danger .vhq-statecell-value { color: var(--danger); }
.vhq-statecell.is-warn .vhq-statecell-value { color: var(--warn); }

/* ---- live pipeline ---- */
.vhq-tower-flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 18px;
}
.vhq-pipeline { display: flex; align-items: center; overflow-x: auto; padding-bottom: 4px; }
.vhq-pipeline-stage { display: flex; align-items: center; flex: 1; min-width: 90px; }
.vhq-pipeline-node {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 12px; border-radius: var(--radius); background: var(--navy-weak);
  min-width: 78px;
}
.vhq-pipeline-count { font-size: 19px; font-weight: 700; color: var(--navy-text); font-variant-numeric: tabular-nums; }
.vhq-pipeline-label { font-size: 11px; font-weight: 600; color: var(--navy-text); text-transform: uppercase; letter-spacing: 0.04em; }
.vhq-pipeline-link { flex: 1; height: 3px; background: var(--border); border-radius: 3px; position: relative; overflow: hidden; margin: 0 4px; }
.vhq-pipeline-flow {
  position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--navy), transparent);
  animation: vhq-flow 2.2s linear infinite;
}
@keyframes vhq-flow { 0% { left: -40%; } 100% { left: 100%; } }

/* ---- two-column tower body ---- */
.vhq-tower-main { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .vhq-tower-main { grid-template-columns: 1fr; } }

/* ---- operating lanes ---- */
.vhq-lanes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .vhq-lanes { grid-template-columns: 1fr; } }
.vhq-lane {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  background: var(--surface); cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s;
}
.vhq-lane:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.vhq-lane.has-exceptions { border-left: 3px solid var(--warn); }
.vhq-lane-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.vhq-lane-head .vhq-nav-icon { color: var(--teal); width: 17px; height: 17px; }
.vhq-lane-primary { font-size: 28px; font-weight: 700; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
.vhq-lane-primary span { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 6px; }
.vhq-lane-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.vhq-lane-stats > div { display: flex; justify-content: space-between; font-size: 11.5px; }
.vhq-lane-stats dt { color: var(--faint); }
.vhq-lane-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.vhq-lane-stats .is-red dd { color: var(--danger); }

/* ---- Manage the Red rail ---- */
.vhq-red-rail {
  position: sticky; top: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); padding: 14px;
}
.vhq-red-rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vhq-red-rail-title { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: 13.5px; }
.vhq-red-rail-title .vhq-nav-icon { color: var(--danger); }
.vhq-red-rail-count {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  min-width: 24px; text-align: center; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
.vhq-red-rail-count.is-red { background: var(--danger); color: #fff; }
.vhq-red-item {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline;
  padding: 9px 10px; border: 1px solid var(--border); border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm); cursor: pointer; background: var(--surface);
}
.vhq-red-item:hover { background: var(--danger-weak); }
.vhq-red-item-kind {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--danger); grid-row: 1;
}
.vhq-red-item-label { font-size: 12.5px; font-weight: 600; grid-column: 2; grid-row: 1; }
.vhq-red-item-sub { font-size: 11px; color: var(--faint); grid-column: 2; grid-row: 2; }

/* ---- job cards (customer Today) ---- */
.vhq-jobgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.vhq-jobcard {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  background: var(--surface); cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s;
}
.vhq-jobcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.vhq-jobcard.is-red { border-left: 3px solid var(--danger); }
.vhq-jobcard-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.vhq-jobcard-title { font-weight: 650; font-size: 13.5px; }
.vhq-jobcard-why { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.vhq-jobcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vhq-jobtag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted); background: var(--surface-2);
  border-radius: 999px; padding: 3px 9px;
}
.vhq-jobtag .vhq-nav-icon { width: 12px; height: 12px; }
.vhq-jobcard-foot { display: flex; align-items: center; gap: 12px; font-size: 11.5px; flex-wrap: wrap; }
.vhq-jobcard-dest { color: var(--teal-text); font-weight: 550; }
.vhq-jobcard-foot .vhq-cost { margin-left: auto; }
.vhq-cost { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.vhq-cost-bar { width: 42px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.vhq-cost-bar > span { display: block; height: 100%; }

/* ---- job flow strip ---- */
.vhq-jobflow { display: flex; gap: 4px; margin: 10px 0 2px; }
.vhq-jobflow-step {
  flex: 1; text-align: center; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 2px; border-radius: 4px; background: var(--surface-2); color: var(--faint);
  border-bottom: 2px solid transparent;
}
.vhq-jobflow-step.is-done { color: var(--ok); border-bottom-color: var(--ok); }
.vhq-jobflow-step.is-active { color: var(--teal-text); background: var(--teal-weak); border-bottom-color: var(--teal); font-weight: 650; }

/* ---- customer engine header ---- */
.vhq-engine-header {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--teal-band); margin-bottom: 18px;
}
.vhq-engine-header-cells { display: flex; flex-wrap: wrap; gap: 18px; }
.vhq-engine-header-cells > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.vhq-engine-header-cells .vhq-faint { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.vhq-engine-header-cells strong { font-size: 14px; }
.vhq-engine-header-cells .is-red strong { color: var(--danger); }
.vhq-engine-header-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }

/* ---- work-run inspector internals ---- */
.vhq-run-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vhq-run-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; margin-bottom: 16px; }
.vhq-run-grid > div { display: flex; flex-direction: column; gap: 3px; }
.vhq-run-grid .vhq-faint { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.vhq-insp-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin: 18px 0 8px; }
.vhq-insp-p { font-size: 13px; line-height: 1.5; margin: 0; }
.vhq-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.vhq-chip { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.vhq-chip.is-cap { background: var(--navy-weak); color: var(--navy-text); font-weight: 600; }

/* ---- execution trace ---- */
.vhq-trace { list-style: none; margin: 0; padding: 0; }
.vhq-trace-step { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.vhq-trace-step:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--border);
}
.vhq-trace-mark {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--muted); z-index: 1;
}
.vhq-trace-mark .vhq-nav-icon { width: 15px; height: 15px; }
.vhq-trace-step.kind-verify .vhq-trace-mark { background: var(--ok-weak); border-color: var(--ok); color: var(--ok); }
.vhq-trace-step.kind-deliver .vhq-trace-mark { background: var(--teal-weak); border-color: var(--teal); color: var(--teal-text); }
.vhq-trace-step.kind-exception .vhq-trace-mark { background: var(--danger-weak); border-color: var(--danger); color: var(--danger); }
.vhq-trace-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.vhq-trace-step p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.vhq-trace-tight .vhq-trace-step { padding-bottom: 10px; }

/* ---- operating plan ---- */
.vhq-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.vhq-plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.vhq-plan-list li { font-size: 12.5px; padding-left: 16px; position: relative; line-height: 1.4; }
.vhq-plan-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---- autonomy engine loop ---- */
.vhq-loop { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.vhq-loop-item { display: flex; align-items: center; }
.vhq-loop-card {
  width: 150px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.vhq-loop-card:hover { border-color: var(--border-strong); }
.vhq-loop-card.is-active { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy-weak); }
.vhq-loop-label { font-weight: 650; font-size: 12.5px; color: var(--navy-text); }
.vhq-loop-blurb { font-size: 10.5px; color: var(--muted); line-height: 1.35; min-height: 42px; }
.vhq-loop-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; margin: 0; }
.vhq-loop-stats > div { display: flex; justify-content: space-between; font-size: 10px; }
.vhq-loop-stats dt { color: var(--faint); }
.vhq-loop-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.vhq-loop-stats .is-red dd { color: var(--danger); }
.vhq-loop-cap { height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.vhq-loop-cap span { display: block; height: 100%; background: var(--navy); }
.vhq-loop-arrow { color: var(--border-strong); padding: 0 1px; }
.vhq-loop-arrow .vhq-nav-icon { width: 15px; height: 15px; }
.vhq-engine-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .vhq-engine-cols { grid-template-columns: 1fr; } }
.vhq-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .vhq-panel-grid { grid-template-columns: 1fr; } }

/* ---- agent fleet ---- */
.vhq-fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vhq-cap-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 13px;
  background: var(--surface); cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s;
}
.vhq-cap-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.vhq-cap-card.has-int { border-left: 3px solid var(--danger); }
.vhq-cap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vhq-cap-name { font-weight: 650; font-size: 13px; }
.vhq-cap-primary { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.vhq-cap-bars { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.vhq-cap-bars > div { display: grid; grid-template-columns: 48px 1fr 34px; gap: 8px; align-items: center; font-size: 10.5px; }
.vhq-cap-bars .vhq-faint { text-transform: uppercase; letter-spacing: 0.04em; }
.vhq-cap-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vhq-meter-sm { height: 5px; }

/* ---- evaluations ---- */
.vhq-eval-metrics { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.vhq-eval-metrics > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.vhq-eval-metrics .vhq-faint { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.vhq-eval-metrics .is-red { color: var(--danger); }
.vhq-eval-metrics .is-ok { color: var(--ok); }
.vhq-eval-rollout { min-width: 130px; }
.vhq-eval-rollout .vhq-meter-sm { margin: 3px 0; }

@media (prefers-reduced-motion: reduce) {
  .vhq-autonomy-ok .vhq-autonomy-pulse::after { animation: none; }
  .vhq-pipeline-flow { display: none; }
}

/* ============================================================================
 * SIMPLIFICATION PASS — one shell, scope-driven nav, simple Control Tower
 * ========================================================================= */

/* ---- global header extras ---- */
.vhq-ctx-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.vhq-launcher-wrap { position: relative; }
.vhq-launcher-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.vhq-launcher-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.vhq-launcher-btn .vhq-nav-icon { width: 18px; height: 18px; }
.vhq-launcher-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 12px; z-index: 70;
}
.vhq-launcher-note { margin: 2px 4px 10px; font-size: 11px; color: var(--faint); }
.vhq-launcher-group + .vhq-launcher-group { margin-top: 12px; }
.vhq-launcher-heading { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding: 0 4px; }
.vhq-launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.vhq-launcher-app {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 10px 4px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: 11px;
}
.vhq-launcher-app:hover { background: var(--surface-2); }
.vhq-launcher-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); }
.vhq-launcher-icon .vhq-nav-icon { width: 18px; height: 18px; color: var(--muted); }

/* ---- left navigation (scope-driven, single menu) ---- */
.vhq-nav {
  width: 250px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto;
}
.vhq-nav-collapsed { width: 0; border-right: none; overflow: hidden; }

.vhq-scopeselect { display: flex; gap: 4px; padding: 12px 10px 4px; }
.vhq-scopeopt {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--muted); cursor: pointer; font-size: 11.5px; font-weight: 600;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.vhq-scopeopt .vhq-nav-icon { width: 18px; height: 18px; }
.vhq-scopeopt-label { line-height: 1.1; text-align: center; }
.vhq-scopeopt:hover { border-color: var(--border-strong); color: var(--text); }
.vhq-scopeopt-run.is-active { border-color: var(--navy); background: var(--navy-weak); color: var(--navy-text); }
.vhq-scopeopt-delivery.is-active { border-color: var(--teal); background: var(--teal-weak); color: var(--teal-text); }
.vhq-nav-tagline { margin: 8px 14px 6px; font-size: 11.5px; color: var(--faint); }

.vhq-nav-items { padding: 4px 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.vhq-navlink {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 10px;
  border: none; background: transparent; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 550; cursor: pointer; text-align: left;
}
.vhq-navlink .vhq-nav-icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.vhq-navlink:hover { background: var(--surface-2); }
.vhq-navlink.is-active { background: var(--navy-weak); color: var(--navy-text); font-weight: 650; }
.vhq-navlink.is-active .vhq-nav-icon { color: var(--navy); }
.vhq-nav .vhq-scopeopt-delivery.is-active ~ * .vhq-navlink.is-active,
.vhq-nav-delivery .vhq-navlink.is-active { background: var(--teal-weak); color: var(--teal-text); }
.vhq-navlink-count {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px;
  background: var(--danger); color: #fff;
}

.vhq-navgroup { border-radius: var(--radius-sm); }
.vhq-navgroup-head {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 10px;
  border: none; background: transparent; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 550; cursor: pointer;
}
.vhq-navgroup-head .vhq-nav-icon { width: 18px; height: 18px; color: var(--muted); }
.vhq-navgroup-head:hover { background: var(--surface-2); }
.vhq-navgroup.is-active > .vhq-navgroup-head { color: var(--navy-text); }
.vhq-navgroup-caret { margin-left: auto; width: 15px; height: 15px; color: var(--faint); transition: transform 0.15s; }
.vhq-navgroup.is-open .vhq-navgroup-caret { transform: rotate(180deg); }
.vhq-navgroup-items { padding: 2px 0 6px; display: flex; flex-direction: column; }
.vhq-navgroup-items button {
  width: 100%; display: flex; align-items: center; padding: 8px 10px 8px 38px;
  border: none; background: transparent; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 13px; cursor: pointer; text-align: left;
}
.vhq-navgroup-items button:hover { background: var(--surface-2); color: var(--text); }
.vhq-navgroup-items button[aria-current="true"] { background: var(--navy-weak); color: var(--navy-text); font-weight: 650; }
.vhq-navgroup-items .vhq-runsec-ext { width: 13px; height: 13px; margin-left: auto; color: var(--faint); }

/* ---- slim breadcrumb ---- */
.vhq-breadcrumb {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  height: 34px; padding: 0 20px; font-size: 12px; color: var(--faint);
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.vhq-breadcrumb .vhq-crumb { display: inline-flex; align-items: center; gap: 4px; }
.vhq-breadcrumb .vhq-crumb:last-child { color: var(--text); font-weight: 550; }
.vhq-breadcrumb .vhq-crumb-sep { width: 13px; height: 13px; color: var(--border-strong); }

/* ---- buttons: large + danger variants ---- */
.vhq-btn-lg { height: 42px; padding: 0 18px; font-size: 14px; }
.vhq-btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.vhq-btn-danger:hover { filter: brightness(0.95); }
.vhq-link-btn { border: none; background: transparent; color: var(--navy-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.vhq-link-btn:hover { text-decoration: underline; }
.vhq-icon-btn { border: none; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; }
.vhq-icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---- Control Tower (simple) ---- */
.vhq-tower { max-width: 1100px; margin: 0 auto; width: 100%; padding-top: 6px; }
.vhq-tower-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.vhq-tower-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); }
.vhq-tower-statement { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.vhq-tower-statement.has-red { color: var(--danger); }
.vhq-tower-sub { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 620px; }
.vhq-tower-hero-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 220px; }
.vhq-tower-hero-actions .vhq-btn { justify-content: center; }

.vhq-tower-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.vhq-tower-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 860px) { .vhq-tower-primary, .vhq-tower-secondary { grid-template-columns: 1fr; } }

.vhq-tower-section { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 16px; }
.vhq-tower-section.tone-red { border-color: var(--danger); }
.vhq-tower-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vhq-tower-section-head h2 { margin: 0; font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.vhq-tower-section-count { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.vhq-tower-section-count.is-red { background: var(--danger); color: #fff; }
.vhq-tower-section-body { display: flex; flex-direction: column; gap: 4px; }
.vhq-tower-empty { margin: 6px 0; font-size: 13.5px; color: var(--faint); }

.vhq-tower-row {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline;
  padding: 10px; border: none; border-radius: var(--radius-sm); background: transparent;
  cursor: pointer; text-align: left; width: 100%;
}
.vhq-tower-row:hover { background: var(--surface-2); }
.vhq-tower-row.is-red:hover { background: var(--danger-weak); }
.vhq-tower-row-kind { grid-row: 1; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); align-self: center; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); }
.vhq-tower-row-kind.is-red { color: var(--danger); background: var(--danger-weak); }
.vhq-tower-row-label { grid-row: 1; grid-column: 2; font-size: 14px; font-weight: 600; }
.vhq-tower-row-sub { grid-row: 2; grid-column: 2; font-size: 12.5px; color: var(--faint); }

.vhq-tower-mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.vhq-tower-mini-row:last-child { border-bottom: none; }
.vhq-tower-mini-label { font-weight: 550; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vhq-tower-mini-meta { font-size: 12px; color: var(--faint); flex-shrink: 0; }
.vhq-tower-mini-when { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.vhq-tower-mini-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-weak); color: var(--ok); flex-shrink: 0; }
.vhq-tower-mini-check .vhq-nav-icon { width: 13px; height: 13px; }

.vhq-tower-health {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 13px; font-weight: 550; cursor: pointer;
}
.vhq-tower-health:hover { border-color: var(--border-strong); color: var(--text); }
.vhq-tower-health.has-issue { border-color: var(--warn); color: var(--warn); background: var(--warn-weak); }
.vhq-health-dot { width: 9px; height: 9px; border-radius: 50%; }
.vhq-health-dot.is-ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-weak); }
.vhq-health-dot.is-issue { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-weak); }
.vhq-tower-health-caret { width: 14px; height: 14px; }

/* ---- Work hub: saved views ---- */
.vhq-savedviews { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.vhq-savedview {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.vhq-savedview:hover { border-color: var(--border-strong); color: var(--text); }
.vhq-savedview.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.vhq-savedview-count { font-family: var(--font-mono); font-size: 11px; font-weight: 700; opacity: 0.8; }
.vhq-savedview.has-red:not(.is-active) { border-color: var(--danger); color: var(--danger); }
.vhq-table tr.is-selected { background: var(--navy-weak); }

/* ---- Vucoris Website ---- */
.vhq-site-prod {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); margin-bottom: 8px;
}
.vhq-compose { margin: 12px 0 4px; border-color: var(--navy); }
.vhq-compose textarea { width: 100%; resize: vertical; }

.vhq-change-row {
  width: 100%; text-align: left; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 14px 16px; cursor: pointer; display: block;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.vhq-change-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.vhq-change-row.is-red { border-left: 3px solid var(--danger); }
.vhq-change-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.vhq-change-title { font-size: 14.5px; font-weight: 650; }

.vhq-pipe { display: flex; align-items: flex-start; }
.vhq-pipe-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.vhq-pipe-step:not(:last-child)::after {
  content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: var(--border);
}
.vhq-pipe-step.is-done:not(:last-child)::after { background: var(--ok); }
.vhq-pipe-node {
  position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.vhq-pipe-node .vhq-nav-icon { width: 14px; height: 14px; }
.vhq-pipe-step.is-done .vhq-pipe-node { background: var(--ok-weak); border-color: var(--ok); color: var(--ok); }
.vhq-pipe-step.is-active .vhq-pipe-node { background: var(--navy); border-color: var(--navy); color: #fff; }
.vhq-pipe-label { font-size: 10.5px; color: var(--faint); text-align: center; }
.vhq-pipe-step.is-active .vhq-pipe-label { color: var(--navy-text); font-weight: 650; }

.vhq-preview-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--navy-text); font-family: var(--font-mono); text-decoration: none; }
.vhq-preview-link:hover { text-decoration: underline; }
.vhq-preview-link .vhq-nav-icon { width: 15px; height: 15px; }
.vhq-testlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vhq-testlist li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.vhq-test-state { margin-left: auto; font-size: 11.5px; font-weight: 600; }
.vhq-test-state.ok { color: var(--ok); }
.vhq-test-state.fail { color: var(--danger); }

/* ============================================================================
 * HQ redesign correction — dual navigation, role selector, live pipeline,
 * agent detail, and AI console.
 * ========================================================================= */

/* ---- Run Vucoris left nav head (navy) ---- */
.vhq-nav-run { border-right: 1px solid var(--border); }
.vhq-nav-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--navy);
}
.vhq-nav-scopetag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy-text);
}
.vhq-nav-head .vhq-nav-tagline { margin: 4px 0 0; }
.vhq-navlink.is-active { background: var(--navy-weak); color: var(--navy-text); box-shadow: inset 2px 0 0 var(--navy); }
.vhq-nav-run .vhq-nav-icon { color: var(--navy); }

/* ---- Customer Delivery band scope tag ---- */
.vhq-delivery-scopetag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-text);
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid var(--teal-border);
}
.vhq-delivery-scopetag .vhq-nav-icon { width: 15px; height: 15px; }

/* ---- Role selector ---- */
.vhq-rolemenu-wrap { position: relative; }
.vhq-user { border: 1px solid transparent; background: transparent; border-radius: var(--radius); padding: 4px 8px 4px 4px; }
.vhq-user:hover { border-color: var(--border); background: var(--surface-2); }
.vhq-user-id { display: flex; flex-direction: column; line-height: 1.15; text-align: left; font-weight: 600; }
.vhq-user-id small { font-weight: 500; font-size: 11px; color: var(--faint); }
.vhq-user-caret { width: 14px; height: 14px; color: var(--faint); }
.vhq-avatar-sm { width: 24px; height: 24px; font-size: 10.5px; background: var(--navy); }
.vhq-rolemenu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 288px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 6px; z-index: 60;
}
.vhq-rolemenu-note { margin: 4px 8px 8px; font-size: 11px; color: var(--faint); }
.vhq-rolemenu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: none; background: transparent; border-radius: var(--radius-sm); text-align: left; color: var(--text);
}
.vhq-rolemenu button:hover { background: var(--surface-2); }
.vhq-rolemenu button.is-active { background: var(--navy-weak); }
.vhq-rolemenu button .vhq-nav-icon { margin-left: auto; width: 16px; height: 16px; color: var(--navy); }
.vhq-rolemenu-label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; }
.vhq-rolemenu-label small { font-weight: 400; font-size: 11px; color: var(--faint); }

/* ---- Control Tower operating strip ---- */
.vhq-tower { max-width: 1360px; }
.vhq-tower-hero { margin-bottom: 18px; }
.vhq-opstrip {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.vhq-opstrip-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; white-space: nowrap; }
.vhq-opstrip-metrics { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.vhq-opmetric { display: flex; flex-direction: column; gap: 2px; }
.vhq-opmetric-value { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; font-family: var(--font-mono); }
.vhq-opmetric-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.vhq-opmetric.tone-accent .vhq-opmetric-value { color: var(--accent-text); }
.vhq-opmetric.tone-warn .vhq-opmetric-value { color: var(--warn); }
.vhq-opmetric.tone-danger .vhq-opmetric-value { color: var(--danger); }
.vhq-opmetric.tone-ok .vhq-opmetric-value { color: var(--ok); }

.vhq-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31,122,77,0.5); animation: vhq-pulse 2.4s ease-out infinite; }
@keyframes vhq-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,122,77,0.45); } 70% { box-shadow: 0 0 0 6px rgba(31,122,77,0); } 100% { box-shadow: 0 0 0 0 rgba(31,122,77,0); } }
@media (prefers-reduced-motion: reduce) { .vhq-live-dot { animation: none; } }

/* ---- filters + layout ---- */
.vhq-tower-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.vhq-filterchips { display: flex; gap: 6px; flex-wrap: wrap; }
.vhq-filterchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 12.5px; font-weight: 550; color: var(--muted);
}
.vhq-filterchip:hover { border-color: var(--border-strong); color: var(--text); }
.vhq-filterchip.is-active { background: var(--text); color: var(--surface); border-color: var(--text); }
.vhq-filterchip.has-red:not(.is-active) { border-color: var(--danger); color: var(--danger); }
.vhq-filterchip-count { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; background: var(--danger); color: #fff; border-radius: 999px; padding: 0 6px; min-width: 17px; text-align: center; }
.vhq-filterchip.is-active .vhq-filterchip-count { background: rgba(255,255,255,0.25); }

/* ---- five-stage pipeline board ---- */
.vhq-pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.vhq-pipe-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); min-height: 120px; display: flex; flex-direction: column; }
.vhq-pipe-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px 12px 8px; border-bottom: 1px solid var(--border); }
.vhq-pipe-mark { width: 8px; height: 8px; border-radius: 2px; background: var(--navy); }
.vhq-pipe-col.stage-intake .vhq-pipe-mark { background: var(--neutral); }
.vhq-pipe-col.stage-planned .vhq-pipe-mark { background: var(--accent); }
.vhq-pipe-col.stage-running .vhq-pipe-mark { background: var(--teal); }
.vhq-pipe-col.stage-verifying .vhq-pipe-mark { background: var(--warn); }
.vhq-pipe-col.stage-delivered .vhq-pipe-mark { background: var(--ok); }
.vhq-pipe-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.vhq-pipe-count { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; }
.vhq-pipe-blurb { grid-column: 1 / -1; font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.vhq-pipe-list { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.vhq-pipe-empty { text-align: center; color: var(--faint); font-size: 12px; padding: 10px 0; }

.vhq-pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; }
.vhq-pcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.vhq-pcard.is-selected { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.vhq-pcard.is-red { border-left: 3px solid var(--danger); }
.vhq-pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.vhq-pcard-cust { font-size: 11px; font-weight: 700; color: var(--teal-text); text-transform: uppercase; letter-spacing: 0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vhq-pcard-cust.is-internal { color: var(--navy-text); }
.vhq-pcard-title { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.vhq-pcard-cap { font-size: 11px; color: var(--muted); font-weight: 550; margin-bottom: 4px; }
.vhq-pcard-action { font-size: 12px; color: var(--muted); line-height: 1.4; }
.vhq-pcard-int { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--danger-weak); display: flex; flex-direction: column; gap: 3px; }
.vhq-pcard-assignee { font-size: 11.5px; font-weight: 600; color: var(--danger); }
.vhq-pcard-foot { margin-top: 7px; font-size: 11px; color: var(--faint); }

.vhq-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral); flex-shrink: 0; }
.vhq-status-dot.is-running { background: var(--teal); }
.vhq-status-dot.is-verifying { background: var(--warn); }
.vhq-status-dot.is-delivered { background: var(--ok); }
.vhq-status-dot.is-queued { background: var(--neutral); }
.vhq-status-dot.is-blocked { background: var(--danger); }
.vhq-pipe-status { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Agent capability full page ---- */
.vhq-agent-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin: 12px 0 18px; }
.vhq-agent-hero h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }
.vhq-agent-hero p { margin: 0; max-width: 560px; }
.vhq-agent-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.vhq-agent-metric { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.vhq-agent-metric-value { font-size: 20px; font-weight: 700; font-family: var(--font-mono); letter-spacing: -0.01em; }
.vhq-agent-metric .vhq-faint { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.vhq-agent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.vhq-agent-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.vhq-agent-block h3 { margin: 0 0 12px; font-size: 13px; font-weight: 650; }
.vhq-agent-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.vhq-agent-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.vhq-agent-row:last-child { border-bottom: none; }
.vhq-agent-row-main { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; flex: 1; min-width: 0; }
.vhq-agent-row-main small { font-weight: 400; font-size: 11.5px; color: var(--faint); }
.vhq-kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; }
@media (max-width: 900px) { .vhq-agent-grid { grid-template-columns: 1fr; } .vhq-agent-metrics { grid-template-columns: repeat(2, 1fr); } }

/* ---- Customer Delivery · AI console ---- */
.vhq-ai { max-width: 900px; margin: 0 auto; width: 100%; }
.vhq-ai-head { margin-bottom: 18px; }
.vhq-ai-head h1 { margin: 12px 0 6px; font-size: 26px; letter-spacing: -0.01em; }
.vhq-ai-head p { margin: 0; max-width: 620px; }
.vhq-ai-composer { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--surface); border: 1px solid var(--teal-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.vhq-ai-composer-icon { color: var(--teal); width: 18px; height: 18px; }
.vhq-ai-input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--text); outline: none; }
.vhq-ai-suggest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.vhq-ai-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.vhq-ai-card:hover { border-color: var(--teal-border); background: var(--teal-band); }
.vhq-ai-card-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--teal-weak); color: var(--teal-text); flex-shrink: 0; }
.vhq-ai-card-icon .vhq-nav-icon { width: 16px; height: 16px; }
.vhq-ai-card-label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; }
.vhq-ai-card-label small { font-weight: 400; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.vhq-ai-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.vhq-ai-recent { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.vhq-ai-recent-main { display: flex; flex-direction: column; font-size: 13px; font-weight: 550; }
.vhq-ai-recent-main small { font-weight: 400; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.vhq-ai-jump { display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-weight: 550; color: var(--text); text-align: left; }
.vhq-ai-jump:hover { border-color: var(--teal-border); background: var(--teal-band); }
.vhq-ai-jump .vhq-nav-icon { color: var(--teal); width: 16px; height: 16px; }
@media (max-width: 820px) { .vhq-ai-suggest { grid-template-columns: 1fr; } .vhq-ai-cols { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .vhq-pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .vhq-pipeline { grid-template-columns: 1fr; } .vhq-agent-metrics { grid-template-columns: 1fr; } }

/* ============================================================ Customer Intelligence */
.vhq-badge-teal { background: var(--teal-weak); color: var(--teal-text); border: 1px solid var(--teal-border); }

/* compact table density for large directories */
.vhq-table-compact th, .vhq-table-compact td { padding: 8px 12px; font-size: 12.5px; }
.vhq-table-compact tbody tr { cursor: pointer; }

/* scrollable subtabs for the 10-tab customer record */
.vhq-subtabs-scroll { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.vhq-subtabs-scroll button { white-space: nowrap; }

/* evidence-state pills */
.vhq-ev { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 8px 2px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.vhq-ev-abbr { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 4px; background: var(--surface-3); color: var(--text); line-height: 1.4; }
.vhq-ev-sm { padding: 2px 4px; }
.vhq-ev-sm .vhq-ev-abbr { margin: 0; }
.vhq-ev-verified { background: var(--ok-weak); border-color: #bfe2cd; color: var(--ok); }
.vhq-ev-verified .vhq-ev-abbr { background: var(--ok); color: #fff; }
.vhq-ev-customer { background: var(--teal-weak); border-color: var(--teal-border); color: var(--teal-text); }
.vhq-ev-customer .vhq-ev-abbr { background: var(--teal); color: #fff; }
.vhq-ev-external { background: var(--accent-weak, #e8eefc); border-color: #cdd9f5; color: var(--accent); }
.vhq-ev-external .vhq-ev-abbr { background: var(--accent); color: #fff; }
.vhq-ev-inference, .vhq-ev-hypothesis, .vhq-ev-unknown { background: var(--surface-2); border-color: var(--border); color: var(--muted); }
.vhq-ev-inference .vhq-ev-abbr, .vhq-ev-hypothesis .vhq-ev-abbr, .vhq-ev-unknown .vhq-ev-abbr { background: var(--surface-3); color: var(--muted); }
.vhq-ev-conflicting { background: var(--danger-weak); border-color: #f0c7c7; color: var(--danger); }
.vhq-ev-conflicting .vhq-ev-abbr { background: var(--danger); color: #fff; }
.vhq-ev-stale { background: var(--warn-weak); border-color: #f0dcae; color: #8a5b12; }
.vhq-ev-stale .vhq-ev-abbr { background: var(--warn); color: #4a3208; }

/* differentiation status cells */
.vhq-diff { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 550; }
.vhq-diff-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; flex: none; }
.vhq-diff-verified-advantage .vhq-diff-mark { background: var(--ok); color: #fff; }
.vhq-diff-verified-advantage { color: var(--ok); }
.vhq-diff-possible-advantage .vhq-diff-mark { background: var(--accent); color: #fff; }
.vhq-diff-possible-advantage { color: var(--accent); }
.vhq-diff-parity .vhq-diff-mark { background: var(--surface-3); color: var(--muted); }
.vhq-diff-disadvantage .vhq-diff-mark { background: var(--danger); color: #fff; }
.vhq-diff-disadvantage { color: var(--danger); }
.vhq-diff-unknown .vhq-diff-mark { background: var(--surface-3); color: var(--faint); }
.vhq-diff-unknown { color: var(--faint); }
.vhq-diff-evidence-required .vhq-diff-mark { background: var(--warn); color: #4a3208; }
.vhq-diff-evidence-required { color: #8a5b12; }

/* comparison matrix */
.vhq-matrix th, .vhq-matrix td { text-align: left; }
.vhq-matrix .vhq-matrix-own { background: var(--teal-band); }
.vhq-matrix thead .vhq-matrix-own { color: var(--teal-text); font-weight: 700; }
.vhq-matrix .vhq-diff-label { display: none; }
@media (min-width: 1000px) { .vhq-matrix .vhq-diff-label { display: inline; } }

/* knowledge health meter */
.vhq-khealth { display: inline-flex; align-items: center; gap: 8px; }
.vhq-khealth-bar { width: 54px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.vhq-khealth-bar > span { display: block; height: 100%; border-radius: 3px; }
.vhq-khealth-ok > span { background: var(--ok); }
.vhq-khealth-warn > span { background: var(--warn); }
.vhq-khealth-danger > span { background: var(--danger); }
.vhq-khealth-val { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* intelligence grids & cards */
.vhq-intel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.vhq-intel-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .vhq-intel-grid, .vhq-intel-grid-2 { grid-template-columns: 1fr; } }

.vhq-quickactions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.vhq-kv > span { color: var(--muted); }

/* fact lines */
.vhq-factline { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 4px; background: none; border: none; border-bottom: 1px solid var(--border); cursor: pointer; color: var(--text); }
.vhq-factline:last-child { border-bottom: none; }
.vhq-factline:hover { background: var(--surface-2); }
.vhq-factline-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.vhq-factline-label { font-size: 12.5px; font-weight: 600; }
.vhq-factline-value { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vhq-factline-meta { display: flex; align-items: center; gap: 6px; flex: none; color: var(--faint); }
.vhq-factline-conf { font-family: var(--font-mono); font-size: 11px; }
.vhq-factline-meta .vhq-nav-icon { width: 14px; height: 14px; }

/* tight lists */
.vhq-tightlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vhq-tightlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.vhq-tightlist li:last-child { border-bottom: none; }
.vhq-tightlist-plain li { display: list-item; }
.vhq-tightlist-plain { list-style: disc; padding-left: 18px; }
.vhq-tightlist-plain li { padding: 4px 0; border-bottom: none; line-height: 1.5; }

/* coverage strip */
.vhq-cov-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.vhq-cov { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
@media (max-width: 720px) { .vhq-cov-strip { grid-template-columns: repeat(2, 1fr); } }

/* chips container */
.vhq-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* link button */
.vhq-linkbtn { background: none; border: none; padding: 0; color: var(--teal-text); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vhq-linkbtn:hover { text-decoration: underline; }

/* inspector helpers */
.vhq-insp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.vhq-timeline { list-style: none; margin: 0; padding: 0; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.vhq-timeline li { line-height: 1.4; }
.vhq-banner-ok { background: var(--ok-weak); border-color: #bfe2cd; color: var(--ok); }
.vhq-red-flag { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--danger-weak); color: var(--danger); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }

/* ============================================================ HQ control-plane nav & areas */
/* Sectioned left navigation */
.vhq-navsection { display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
.vhq-navsection + .vhq-navsection { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.vhq-navsection-heading { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 4px 10px; }

/* Locked / not-authorized panels */
.vhq-locked { text-align: center; max-width: 480px; margin: 48px auto; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.vhq-locked > .vhq-nav-icon { width: 28px; height: 28px; color: var(--muted); margin-bottom: 8px; }
.vhq-locked h3 { margin: 0 0 8px; font-size: 16px; }
.vhq-locked p { margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 52ch; }

/* Card that acts as a button */
.vhq-card-link { text-align: left; cursor: pointer; font: inherit; color: inherit; display: block; width: 100%; }
.vhq-card-link:hover { border-color: var(--teal-border); background: var(--surface-2); }

/* Gated subtab (Customer Intelligence entry) */
.vhq-subtab-gated { display: inline-flex; align-items: center; gap: 6px; color: var(--warn) !important; }
.vhq-subtab-gated .vhq-nav-icon { width: 14px; height: 14px; }

/* Pipeline / release strip */
.vhq-pipestrip { display: flex; flex-wrap: wrap; gap: 8px; }
.vhq-pipestage { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12.5px; cursor: pointer; color: var(--text); }
.vhq-pipestage:hover { background: var(--surface-2); }
.vhq-pipestage.is-active { border-color: var(--teal-border); background: var(--teal-weak); color: var(--teal-text); }
.vhq-pipestage.is-done { border-color: #bfe2cd; background: var(--ok-weak); color: var(--ok); }
.vhq-pipestage-i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-family: var(--font-mono); font-size: 10px; font-weight: 700; flex: none; }
.vhq-pipestage.is-active .vhq-pipestage-i { background: var(--teal); color: #fff; }
.vhq-pipestage.is-done .vhq-pipestage-i { background: var(--ok); color: #fff; }
.vhq-pipestage-label { font-weight: 550; }
.vhq-pipestage-count { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.vhq-pipestrip-sm .vhq-pipestage { padding: 6px 9px; font-size: 11.5px; cursor: default; }

/* ============================================================ Operating layer (Engine Room, Run Room, Scorecard, Today) */
.vhq-page-h1 { font-size: 22px; font-weight: 700; margin: 2px 0 0; letter-spacing: -0.01em; }
.vhq-gap-md { gap: 14px; }
.vhq-live-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.vhq-eyebrow-sm { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.vhq-seg-sm button { padding: 4px 10px; font-size: 11.5px; }

/* Autonomy Scorecard */
.vhq-scorecard { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; margin-bottom: 16px; }
.vhq-scorecard-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vhq-scorecard-head strong { font-size: 13px; }
.vhq-scorecard-head .vhq-faint { font-size: 12px; }
.vhq-scorecard-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.vhq-scorecell { display: flex; flex-direction: column; gap: 3px; padding-right: 12px; border-right: 1px solid var(--border); }
.vhq-scorecell:last-child { border-right: none; }
.vhq-scorecell-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vhq-scorecell.tone-ok .vhq-scorecell-value { color: var(--ok); }
.vhq-scorecell-label { font-size: 11px; color: var(--muted); line-height: 1.3; }
@media (max-width: 900px) { .vhq-scorecard-grid { grid-template-columns: repeat(3, 1fr); } .vhq-scorecell { border-right: none; } }
@media (max-width: 520px) { .vhq-scorecard-grid { grid-template-columns: repeat(2, 1fr); } }

/* Engine Room metrics */
.vhq-metric-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.vhq-engmetric { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.vhq-engmetric-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; }
.vhq-engmetric-label { font-size: 11.5px; color: var(--muted); }
.vhq-engmetric.tone-accent .vhq-engmetric-value { color: var(--accent); }
.vhq-engmetric.tone-danger .vhq-engmetric-value { color: var(--danger); }
@media (max-width: 900px) { .vhq-metric-row { grid-template-columns: repeat(2, 1fr); } }

/* Engine Room / Run Room 2-column layout */
.vhq-enginegrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .vhq-enginegrid { grid-template-columns: 1fr; } }

/* Live run list */
.vhq-runlist { display: flex; flex-direction: column; }
.vhq-runrow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px; gap: 12px; align-items: center; text-align: left; width: 100%; background: none; border: none; border-top: 1px solid var(--border); padding: 12px 4px; cursor: pointer; color: var(--text); }
.vhq-runrow:first-child { border-top: none; }
.vhq-runrow:hover { background: var(--surface-2); }
.vhq-runrow-title { font-size: 13.5px; font-weight: 600; }
.vhq-runrow-sub { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.vhq-runrow-action { font-size: 12px; color: var(--muted); }
.vhq-runrow-progress { display: flex; flex-direction: column; gap: 5px; }
.vhq-runbar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.vhq-runbar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.vhq-runrow-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 720px) { .vhq-runrow { grid-template-columns: 1fr; } .vhq-runrow-progress, .vhq-runrow-meta { align-items: flex-start; } }

/* Run Room fact strip */
.vhq-runfacts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.vhq-runfact { display: flex; flex-direction: column; gap: 3px; }
.vhq-runfact-value { font-size: 14px; font-weight: 650; }
.vhq-runfact-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.vhq-runfact-note { font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .vhq-runfacts { grid-template-columns: repeat(2, 1fr); } }

/* Handoffs */
.vhq-handoffs { display: flex; flex-wrap: wrap; gap: 6px; }
.vhq-handoff { position: relative; flex: 1 1 0; min-width: 140px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.vhq-handoff.is-done { border-color: #bfe2cd; background: var(--ok-weak); }
.vhq-handoff.is-active { border-color: var(--teal-border); background: var(--teal-weak); box-shadow: 0 0 0 1px var(--teal-border); }
.vhq-handoff.is-pending { opacity: 0.6; }
.vhq-handoff-name { font-size: 12.5px; font-weight: 650; }
.vhq-handoff-detail { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.vhq-handoff-arrow { position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 14px; z-index: 1; }
@media (max-width: 720px) { .vhq-handoff-arrow { display: none; } }

/* Event stream */
.vhq-eventstream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vhq-event { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); align-items: start; }
.vhq-event:first-child { border-top: none; }
.vhq-event-mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.vhq-event.kind-verify .vhq-event-mark { background: var(--ok-weak); color: var(--ok); }
.vhq-event.kind-deliver .vhq-event-mark { background: var(--teal-weak); color: var(--teal-text); }
.vhq-event.kind-exception .vhq-event-mark { background: var(--danger-weak); color: var(--danger); }
.vhq-event-mark .vhq-nav-icon { width: 14px; height: 14px; }
.vhq-event-head { display: flex; align-items: baseline; gap: 8px; }
.vhq-event-head strong { font-size: 13px; }
.vhq-event-body p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.vhq-event-outcome { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; padding-top: 2px; }

/* Customer Today */
.vhq-today { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .vhq-today { grid-template-columns: 1fr; } }
.vhq-worklist { display: flex; flex-direction: column; margin-top: 8px; }
.vhq-workrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; border-top: 1px solid var(--border); padding: 11px 4px; cursor: pointer; color: var(--text); }
.vhq-workrow:first-child { border-top: none; }
.vhq-workrow:hover { background: var(--surface-2); }
.vhq-workrow-main { flex: 1; min-width: 0; }
.vhq-workrow-title { font-size: 13.5px; font-weight: 600; }
.vhq-today-perf { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vhq-today-perf > div { display: flex; flex-direction: column; gap: 2px; }
.vhq-today-perf-v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vhq-today-perf .vhq-faint { font-size: 11px; }

/* Capability detail — success & verification history bars */
.vhq-histbars { display: flex; align-items: flex-end; gap: 8px; height: 92px; }
.vhq-histbar { display: flex; align-items: flex-end; gap: 3px; flex: 1; position: relative; height: 100%; }
.vhq-histbar-track { position: relative; flex: 1; height: 72px; background: var(--surface-2); border-radius: 3px; display: flex; align-items: flex-end; overflow: hidden; }
.vhq-histbar-fill { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.vhq-histbar-fill.is-success { background: var(--ok); }
.vhq-histbar-fill.is-verify { background: var(--accent); }
.vhq-histbar-label { position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.vhq-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.vhq-swatch.is-success { background: var(--ok); }
.vhq-swatch.is-verify { background: var(--accent); }

/* Monthly report — living report view */
.vhq-report { max-width: 860px; }
.vhq-report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 20px; }
@media (max-width: 720px) { .vhq-report-metrics { grid-template-columns: 1fr 1fr; } }
.vhq-report-metric { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.vhq-report-metric-v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; display: block; }
.vhq-report-metric-l { font-size: 11.5px; color: var(--muted); }
.vhq-report-metric-d { font-size: 11px; color: var(--ok); }
.vhq-report-section { border-top: 1px solid var(--border); padding: 16px 0; }
.vhq-report-section h3 { margin: 0 0 6px; font-size: 15px; }
.vhq-report-section p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.vhq-report-section ul { margin: 0; padding-left: 18px; }
.vhq-report-section li { font-size: 13px; line-height: 1.6; }
.vhq-report-workflow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.vhq-report-step { display: flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.vhq-report-step.is-done { background: var(--ok-weak, #e6f2ea); color: var(--ok); border-color: transparent; }
.vhq-report-step.is-active { background: var(--accent-weak, #e8ecfe); color: var(--accent); border-color: transparent; font-weight: 600; }
@media print {
  .vhq-sidebar, .vhq-context-bar, .vhq-tabstrip, .vhq-activity-panel, .vhq-area-nav, .vhq-backlink, .vhq-report-noprint { display: none !important; }
  .vhq-report { max-width: none; }
}
