/* ═══════════════════════════════════════════════════════════
   Station Styles — Institutional Grade
   Dense, purposeful, no wasted space. Every element earns its place.
   ═══════════════════════════════════════════════════════════ */

/* ── Station header ─────────────────────────────────────── */
.wb-station-label {
  font-size: 10px; font-weight: 800; color: var(--teal);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 2px;
}
.wb-station-title {
  font-size: clamp(16px, 2vw, 20px); font-weight: 700; color: var(--navy);
  line-height: 1.2; margin-bottom: 2px;
}
.wb-station-desc {
  font-size: 12px; color: var(--slate); margin-bottom: 12px;
  line-height: 1.5; max-width: 600px;
}

/* ── Summary bar ── */
.wb-summary-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--wb-summary-bg, #1a3050);
  border-radius: var(--radius-md);
  padding: 0 16px; height: 40px;
  margin-bottom: 20px;
}
.wb-summary-primary {
  font-size: 14px; font-weight: 700; color: white;
  font-family: var(--font-mono); line-height: 1.15;
}
.wb-summary-label {
  font-size: 10px; font-weight: 600; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-right: 8px;
}
.wb-summary-stats {
  display: flex; align-items: center; gap: 12px;
}
.wb-summary-stat {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
  font-size: 11px; color: rgba(255,255,255,0.85);
  font-family: var(--font-mono); line-height: 1.15;
}
.wb-summary-stat-label {
  font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.wb-summary-empty {
  font-size: 11px; color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ── Empty/gated states ─────────────────────────────────── */
.wb-station-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 240px; text-align: center; padding: 48px 32px;
}
.wb-station-empty-title {
  font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.wb-station-empty-desc {
  font-size: 13px; color: var(--slate); max-width: 420px;
  line-height: 1.6; margin-bottom: 20px;
}

/* ── Form layouts ───────────────────────────────────────── */
.wb-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
.wb-form-grid-full { grid-column: 1 / -1; }

.wb-field { margin-bottom: 0; }
.wb-field-label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--wb-text-secondary, #64748B); margin-bottom: 5px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.wb-field-hint {
  font-size: 10px; color: var(--slate-light);
  font-weight: 400; margin-left: 4px;
}
.wb-field-helper {
  font-size: 12px; font-weight: 400; color: var(--wb-text-secondary, #64748B);
  line-height: 1.4; margin-top: 4px;
}

.wb-mono {
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

/* ── Option cards (single/multi select) ─────────────────── */
.wb-select-grid {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.wb-select-card {
  flex: 1; min-width: 120px;
  padding: 10px 14px; border-radius: 5px;
  border: 2px solid var(--wb-input-border, #CBD5E1);
  background: var(--surface);
  cursor: pointer; transition: all 0.15s;
  text-align: left; position: relative;
}
.wb-select-card:hover {
  border-color: var(--navy); background: #FAFBFC;
  transform: scale(1.01);
}
.wb-select-card--active {
  border-color: var(--navy); background: var(--navy);
  color: white;
}
.wb-select-card--active::after {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}
.wb-select-card--active .wb-select-card-label { color: white; }
.wb-select-card--active .wb-select-card-hint { color: rgba(255,255,255,0.7); }
.wb-select-card-label {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 2px;
}
.wb-select-card-hint {
  font-size: 10px; color: var(--slate); line-height: 1.4;
}

/* Context modifier cards */
.wb-select-card--amber.wb-select-card--active {
  border-color: #D97706; background: #FFFBEB; color: #92400E;
}
.wb-select-card--amber.wb-select-card--active .wb-select-card-label { color: #92400E; }
.wb-select-card--red.wb-select-card--active {
  border-color: var(--red); background: #FEF2F2; color: #991B1B;
}
.wb-select-card--red.wb-select-card--active .wb-select-card-label { color: #991B1B; }

/* ── Action cards (entry choices) ───────────────────────── */
.wb-action-card {
  padding: 18px 20px; border-radius: 6px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  background: var(--surface);
  cursor: pointer; transition: all 0.12s;
  text-align: left; width: 100%;
}
.wb-action-card:hover {
  box-shadow: 0 2px 8px rgba(11,26,46,0.06);
  border-left-color: var(--navy);
}
.wb-action-card-badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 3px;
  margin-bottom: 8px;
}
.wb-action-card-title {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 4px;
}
.wb-action-card-desc {
  font-size: 12px; color: var(--slate); line-height: 1.5;
}

/* ── Data tables ── */
.wb-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.wb-table th {
  text-align: left; padding: 8px 12px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--wb-text-secondary, #64748B);
  background: var(--wb-card-header-bg, #F8FAFC);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wb-table th.wb-th--numeric { text-align: right; }
.wb-table td {
  padding: 8px 12px; border-bottom: 1px solid #F1F5F9;
  vertical-align: top; line-height: 1.5;
  min-height: 40px;
}
.wb-table td.wb-td--numeric {
  text-align: right; font-family: var(--font-mono);
  font-size: 12px; line-height: 1.15;
}
.wb-table tr:hover td { background: var(--wb-card-header-bg, #F8FAFC); transition: background 0.1s; }

/* Table container with scroll fade */
.wb-table-wrap {
  overflow-x: auto; position: relative;
}
.wb-table-wrap::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0;
  width: 24px; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--surface));
  opacity: 0; transition: opacity 0.2s;
}
.wb-table-wrap--scrollable::after { opacity: 1; }

/* ── Criterion badges ───────────────────────────────────── */
.wb-criterion {
  display: inline-block; padding: 2px 7px;
  border-radius: 3px; font-size: 9px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wb-criterion--relevance { background: #DBEAFE; color: #1E40AF; }
.wb-criterion--coherence { background: #E0E7FF; color: #3730A3; }
.wb-criterion--effectiveness { background: #D1FAE5; color: #065F46; }
.wb-criterion--efficiency { background: #FEF3C7; color: #92400E; }
.wb-criterion--impact { background: #FCE7F3; color: #9D174D; }
.wb-criterion--sustainability { background: #CCFBF1; color: #115E59; }

/* ── Score display ──────────────────────────────────────── */
.wb-score {
  display: flex; align-items: baseline; gap: 8px;
}
.wb-score-number {
  font-size: 42px; font-weight: 800; line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.wb-score-label {
  font-size: 12px; color: var(--slate);
}
.wb-score-band {
  display: inline-block; padding: 3px 10px;
  border-radius: 4px; font-size: 11px; font-weight: 700;
}
.wb-score-band--green { background: #D1FAE5; color: #065F46; }
.wb-score-band--amber { background: #FEF3C7; color: #92400E; }
.wb-score-band--red { background: #FEE2E2; color: #991B1B; }

/* ── Dimension bars ── */
.wb-dimension {
  display: flex; align-items: center; gap: 12px;
  padding: 0; height: 44px;
  border-bottom: 1px solid #F1F5F9;
}
.wb-dimension:last-child { border-bottom: none; }
.wb-dimension-label {
  width: 160px; font-size: 11px; font-weight: 600;
  color: var(--wb-text-secondary, #64748B);
  text-transform: uppercase; letter-spacing: 0.08em;
  flex-shrink: 0;
}
.wb-dimension-bar {
  flex: 1; height: 8px; background: #E2E8F0;
  border-radius: 4px; overflow: hidden;
  min-width: 120px;
}
.wb-dimension-fill {
  height: 100%; border-radius: 4px;
  transition: width 0.4s ease;
}
.wb-dimension-fill--fast { transition-duration: 0.15s; }
.wb-dimension-score {
  width: 56px; text-align: right;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.wb-dimension-score--green { color: var(--green); }
.wb-dimension-score--amber { color: var(--amber); }
.wb-dimension-score--red { color: var(--red); }

/* Override badge */
.wb-override-badge {
  display: inline-block; padding: 2px 6px;
  border-radius: 3px; font-size: 11px;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber); background: rgba(245,158,11,0.12);
  margin-left: 8px;
}

/* Original score (strikethrough) */
.wb-dimension-original {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 400;
  color: var(--wb-text-secondary, #64748B);
  text-decoration: line-through;
  margin-right: 6px;
}

/* Composite score card */
.wb-composite-card {
  background: var(--navy); border-radius: var(--radius-md);
  padding: 16px 20px; display: flex;
  align-items: center; gap: 16px;
  margin-bottom: 16px; height: 80px;
}
.wb-composite-score {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 700;
  color: white; line-height: 1.15;
}
.wb-composite-label {
  font-size: 12px; color: var(--teal);
  font-weight: 500;
}
.wb-composite-band {
  margin-left: auto;
}

/* ── Section card system ── */
.wb-sec {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--wb-card-accent, var(--teal));
  margin-bottom: 16px;
}
.wb-sec--warning { border-left-color: var(--wb-card-accent-warning, var(--amber)); }
.wb-sec--complete { border-left-color: var(--wb-card-accent-complete, var(--green)); }
.wb-sec--neutral { border-left-color: var(--border); }

.wb-sec-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: var(--wb-card-header-bg, #F8FAFC);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.wb-sec-title {
  font-size: 14px; font-weight: 600; color: var(--wb-text-heading, #0F172A);
  margin: 0;
}
.wb-sec-badge {
  font-size: 11px; font-weight: 600; color: var(--wb-text-secondary, #64748B);
}
.wb-sec-chevron {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  color: var(--wb-text-secondary); font-size: 12px;
  transition: all 0.15s;
}
.wb-sec-chevron:hover { background: rgba(0,0,0,0.04); }

.wb-sec-body { padding: 20px; }
.wb-sec-body--table { padding: 12px; }
.wb-sec-body--scoring { padding: 16px; }
.wb-sec-body--empty {
  padding: 32px 20px; text-align: center;
}
.wb-sec-empty-text {
  font-size: 12px; color: var(--wb-text-secondary, #64748B);
  margin-bottom: 12px;
}

/* Content max-widths (left-aligned) */
.wb-sec-body .wb-form-grid { max-width: 800px; }
.wb-sec-body .wb-prose { max-width: 640px; }

/* ── Section cards (report builder) ─────────────────────── */
.wb-section-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; margin-bottom: 4px;
  border: 1px solid var(--border);
  border-radius: 5px; transition: all 0.12s;
}
.wb-section-card:hover { background: #FAFBFC; }
.wb-section-card--editing {
  background: #FAFBFC;
  border-color: var(--teal);
}
.wb-section-card--finding {
  border-left: 3px solid var(--teal);
}

/* ── Slide cards (deck generator) ───────────────────────── */
.wb-slide {
  border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  margin-bottom: 8px;
}
.wb-slide-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: #F8FAFC;
}
.wb-slide-title {
  font-size: 12px; font-weight: 600; color: var(--text);
}
.wb-slide-num {
  font-size: 10px; color: var(--slate); font-weight: 500;
}
.wb-slide-body {
  padding: 12px 14px;
}
.wb-slide-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.wb-slide-field-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--slate); margin-bottom: 2px;
}
.wb-slide-field-value {
  font-size: 13px; font-weight: 500; color: var(--text);
}

/* ── Navigation bar ─────────────────────────────────────── */
.wb-station-nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 0; margin-top: 24px;
  border-top: 1px solid var(--border);
}
.wb-station-nav-pos {
  font-size: 11px; color: var(--slate); font-weight: 500;
}

/* ── Coverage matrix ────────────────────────────────────── */
.wb-coverage-gap {
  background: #FFFBEB; border-left: 3px solid var(--amber);
}

/* ── Calculator overlay ────────────────────────────────── */
.wb-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.wb-overlay-panel {
  width: 90vw; max-width: 1100px; height: 85vh;
  background: var(--surface); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.wb-overlay-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: #F8FAFC;
}
.wb-overlay-header-title {
  margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.wb-overlay-header-actions {
  display: flex; gap: 0.75rem;
}
.wb-overlay-body {
  flex: 1; overflow: hidden;
}

/* ── Station icon ──────────────────────────────────────── */
.wb-station-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); display: flex;
  align-items: center; justify-content: center;
  color: var(--teal); font-size: 14px; font-weight: 800;
  letter-spacing: 0.03em; flex-shrink: 0;
}

/* ── Design card ───────────────────────────────────────── */
.wb-design-card {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.wb-design-card-title {
  margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--text);
}
.wb-design-card-header {
  display: flex; align-items: center; gap: 0.75rem;
}
.wb-design-card-link {
  font-size: 12px; color: var(--teal); text-decoration: none;
  font-weight: 500; white-space: nowrap; cursor: pointer;
}
.wb-design-card-link:hover { text-decoration: underline; }

/* ── Parameter grid ────────────────────────────────────── */
.wb-param-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.wb-param-card {
  padding: 1rem; background: var(--bg);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.wb-param-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--slate); margin-bottom: 4px;
}
.wb-param-value {
  font-size: 15px; font-weight: 600; color: var(--text);
}
.wb-param-value--highlight {
  font-size: 1.5rem; color: var(--teal);
}

/* ── Toolbar ───────────────────────────────────────────── */
.wb-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.wb-toolbar-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.wb-toolbar-spacer { flex: 1; }

/* ── Button active state ───────────────────────────────── */
.wb-btn--active { background: var(--navy); color: white; border-color: var(--navy); }

/* ── Table container ───────────────────────────────────── */
.wb-table-container { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }

/* ── Matrix table row states ── */
.wb-table tr.wb-table-row { cursor: pointer; border-left: 3px solid transparent; transition: background 0.1s; }
.wb-table tr.wb-table-row--selected {
  border-left-color: var(--teal); background: #F0FDFA !important;
}
.wb-table tr.wb-table-row:not(.wb-table-row--selected):hover { background: var(--wb-card-header-bg, #F8FAFC); }

/* ── Table cell sizing helpers ─────────────────────────── */
.wb-td--num { font-size: 11px; color: var(--slate); }
.wb-td--text { font-size: 12px; line-height: 1.4; }
.wb-td--meta { font-size: 10px; color: var(--slate); }
.wb-td--badges { font-size: 10px; }

/* ── Phase review card ─────────────────────────────────── */
.wb-review-card {
  padding: 24px; margin: 16px 0;
}
.wb-review-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
}
.wb-review-header-check {
  color: var(--green-dark); font-size: 20px;
}
.wb-review-header-title {
  font-size: 14px; font-weight: 600;
  color: var(--text); margin: 0;
}
.wb-review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 20px;
}
.wb-review-label {
  font-size: 9px; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.wb-review-value {
  font-size: 12px; font-weight: 600; color: var(--text);
}
.wb-review-add-link {
  font-size: 12px; color: var(--teal-dark);
  cursor: pointer; text-decoration: none;
}
.wb-review-actions {
  display: flex; justify-content: space-between; margin-top: 16px;
}

/* ── Guidance signal variant (amber) ───────────────────── */
.wb-guidance--signal {
  background: var(--amber-warm); border: 1px solid var(--amber-border);
  border-radius: var(--radius-md); padding: 12px 16px;
  margin-bottom: 16px;
}
.wb-guidance--signal-title {
  font-size: 10px; font-weight: 700; color: var(--amber-dark);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.wb-guidance--signal-text {
  font-size: 12px; color: var(--amber-text);
  margin: 4px 0; line-height: 1.5;
}

/* ── Guidance neutral variant (design context) ────────── */
.wb-guidance--neutral {
  background: #F8FAFC; border-color: var(--border);
  color: var(--slate);
}
.wb-guidance--neutral .wb-guidance-text { color: var(--slate); }
.wb-guidance--neutral strong { color: var(--text); }

/* ── Station 6 table helpers ──────────────────────────── */
.wb-table--analysis { font-size: 0.9rem; }
.wb-table--analysis th.wb-th--eq { width: 55px; }
.wb-table--analysis th.wb-th--criterion { width: 70px; }
.wb-table--analysis th.wb-th--question { max-width: 240px; }
.wb-table--analysis th.wb-th--software { width: 160px; }
.wb-table--analysis th.wb-th--notes { width: 140px; }
.wb-table--analysis td.wb-td--center { text-align: center; }
.wb-table--analysis td.wb-td--center-bold { text-align: center; font-weight: 600; }
.wb-table--analysis td.wb-td--question { max-width: 240px; font-size: 0.82rem; line-height: 1.4; }

/* ── Station 6 action bar ─────────────────────────────── */
.wb-action-bar {
  display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap;
}

/* ── Question grid (Station 3) ─────────────────────────── */
.wb-question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

/* ── Question cards (Station 3) ────────────────────────── */
.wb-question-card {
  border-left: 4px solid var(--border);
  padding: 12px 16px;
  margin-bottom: 8px;
}
.wb-question-card--filled {
  border-left-color: var(--green-dark);
}
.wb-question-card--empty {
  border-left-color: var(--amber);
}
.wb-question-card--editing {
  border-left-color: var(--blue);
}

.wb-question-card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.wb-question-card-header--editing {
  margin-bottom: 8px;
}

.wb-question-card-title {
  font-size: 12px; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.wb-question-card-title--editing {
  color: var(--blue); font-weight: 600;
}

.wb-question-card-value {
  font-size: 14px; font-weight: 600; color: var(--text);
}

.wb-question-card-hint {
  font-size: 13px; font-style: italic; color: var(--amber-dark);
}

/* ── Option cards in editing mode (Station 3) ──────────── */
.wb-select-card--active .wb-option-label {
  color: var(--blue);
}
.wb-option-label {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.wb-option-desc {
  font-size: 12px; color: var(--slate); margin-top: 2px;
}

/* ── Design result cards (Station 3) ───────────────────── */
.wb-design-result {
  padding: 16px; margin-bottom: 12px;
  border-left: 4px solid var(--slate-light);
}
.wb-design-result--top {
  border-left-color: var(--blue);
}

.wb-design-result-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}

.wb-design-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--slate); color: #fff;
  font-size: 12px; font-weight: 700;
}
.wb-design-rank--top {
  background: var(--navy);
}

.wb-design-result-name {
  font-size: 15px; font-weight: 600; color: var(--text);
}

.wb-design-result-score {
  font-size: 13px; color: var(--slate);
}

.wb-design-result-rationale {
  font-size: 13px; color: var(--slate); margin-top: 4px;
}

.wb-design-results-title {
  font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 12px;
}

/* ── Canvas overlay (Station 3) ────────────────────────── */
.wb-canvas-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000; background: var(--surface);
  display: flex; flex-direction: column;
}
.wb-canvas-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg); flex-shrink: 0;
}
.wb-canvas-header-title {
  font-size: 16px; font-weight: 600; color: var(--text);
}
.wb-canvas-header-actions {
  display: flex; gap: 10px;
}
.wb-canvas-iframe {
  flex: 1; border: none; width: 100%;
}

/* ── Export menu ───────────────────────────────────────── */
.wb-export-menu {
  position: absolute; right: 0; top: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 4px; z-index: 50; min-width: 160px;
}
.wb-export-menu-item {
  display: block; width: 100%; text-align: left;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .wb-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .wb-select-grid { flex-direction: column; }
  .wb-dimension-label { width: 100px; font-size: 11px; }
  .wb-review-grid { grid-template-columns: 1fr; }
  .wb-question-grid { grid-template-columns: 1fr; }
  .wb-sec-header { padding: 10px 14px; }
  .wb-sec-body { padding: 14px; }
  .wb-sec-body--table { padding: 8px; }
  .wb-summary-bar { flex-direction: column; height: auto; padding: 8px 12px; gap: 4px; }
  .wb-summary-stats { flex-wrap: wrap; }
}
