/* ============================================================================
 * Easy RFP — Handoff v5 design system (vanilla CSS extracted from JSX)
 * Sprint 19.1 — Apr 29 2026
 *
 * Tokens (light + dark via [data-theme="dark"]) + components:
 * .h5-eyebrow, .h5-card, .h5-pill, .h5-btn, .h5-delta, .h5-sparkline,
 * .h5-stat-card, .h5-quick-action, .h5-kpi-enhanced, .h5-page-header,
 * .h5-score-ring, .h5-funnel
 * ============================================================================ */

:root {
  /* Brand */
  --h5-purple:      #7C3AED;
  --h5-purple-dark: #5B21B6;
  --h5-purple-light:#A78BFA;
  --h5-pink:        #EC4899;
  --h5-indigo:      #1E1B4B;
  /* Status */
  --h5-teal:        #2ECDA7;
  --h5-amber:       #F59E0B;
  --h5-red:         #EF4444;
  /* Surfaces */
  --h5-surface:     #FFFFFF;
  --h5-app-bg:      #FAFAFF;
  --h5-cream:       #FAFAFF;
  /* Borders */
  --h5-border:      #E8E5F5;
  --h5-border-soft: #F0EEF8;
  /* Text */
  --h5-text:        #1E1B4B;
  --h5-body:        #374151;
  --h5-muted:       #6B7280;
  --h5-light:       #9CA3AF;
  /* Gradients */
  --h5-grad:        linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --h5-grad-soft:   linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(236,72,153,0.08) 100%);
  /* Fonts */
  --h5-font-sans:   -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter var", "Inter", system-ui, sans-serif;
  --h5-font-mono:   'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --h5-purple:      #A78BFA;
  --h5-purple-dark: #7C3AED;
  --h5-pink:        #F472B6;
  --h5-indigo:      #E5E7FF;
  --h5-teal:        #34D8B0;
  --h5-amber:       #FBBF24;
  --h5-red:         #F87171;
  --h5-surface:     #1A1B36;
  --h5-app-bg:      #0E0F26;
  --h5-cream:       #252748;
  --h5-border:      #2D2F58;
  --h5-border-soft: #23254A;
  --h5-text:        #F1F2FF;
  --h5-body:        #CDCFEC;
  --h5-muted:       #8A8DB8;
  --h5-light:       #5C5F88;
  --h5-grad:        linear-gradient(135deg, #A78BFA 0%, #F472B6 100%);
  --h5-grad-soft:   linear-gradient(135deg, rgba(167,139,250,0.18) 0%, rgba(244,114,182,0.14) 100%);
}

/* ============================================================================ */
/* PRIMITIVES                                                                   */
/* ============================================================================ */

.h5-eyebrow {
  font-family: var(--h5-font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--h5-muted);
  margin-bottom: 6px;
  display: block;
}

.h5-card {
  background: var(--h5-surface);
  border: 1px solid var(--h5-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(30,27,75,.04);
  transition: box-shadow .15s ease;
}
.h5-card.elevated { box-shadow: 0 4px 12px rgba(30,27,75,.06); }
.h5-card.compact  { padding: 16px; }

.h5-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: var(--h5-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.h5-pill.purple { background: rgba(124,58,237,0.1); color: var(--h5-purple); }
.h5-pill.pink   { background: rgba(236,72,153,0.1); color: var(--h5-pink); }
.h5-pill.teal   { background: rgba(46,205,167,0.1); color: var(--h5-teal); }
.h5-pill.amber  { background: rgba(245,158,11,0.1); color: var(--h5-amber); }
.h5-pill.red    { background: rgba(239,68,68,0.1);  color: var(--h5-red); }
.h5-pill.gray   { background: var(--h5-cream); color: var(--h5-muted); }

.h5-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--h5-font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--h5-border);
  background: var(--h5-surface);
  color: var(--h5-text);
  transition: transform .12s ease, box-shadow .12s ease;
  min-height: 40px;
}
.h5-btn.primary {
  background: var(--h5-grad);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(124,58,237,.25);
}
.h5-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124,58,237,.35); }
.h5-btn.ghost  { background: transparent; }
.h5-btn:focus-visible { outline: 3px solid var(--h5-purple); outline-offset: 2px; }

.h5-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--h5-font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}
.h5-delta.up   { background: rgba(46,205,167,0.1); color: #0F8765; }
.h5-delta.down { background: rgba(239,68,68,0.1); color: #B91C1C; }
.h5-delta.flat { background: var(--h5-cream); color: var(--h5-muted); }

.h5-sparkline {
  height: 32px;
  display: inline-block;
}

/* ============================================================================ */
/* COMPOSITES                                                                   */
/* ============================================================================ */

/* Quick Actions row (Dashboard) */
.h5-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .h5-quick-actions { grid-template-columns: 1fr; }
}
.h5-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--h5-surface);
  border: 1px solid var(--h5-border);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: inherit;
  min-height: 64px;
}
.h5-quick-action:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,27,75,.08); }
.h5-quick-action.primary {
  background: var(--h5-grad);
  border: none;
  box-shadow: 0 4px 14px rgba(124,58,237,.25);
}
.h5-quick-action.primary:hover { box-shadow: 0 6px 18px rgba(124,58,237,.35); }
.h5-quick-action .qa-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
  background: var(--h5-cream);
  color: var(--h5-purple);
}
.h5-quick-action.primary .qa-icon { background: rgba(255,255,255,0.18); color: #fff; }
.h5-quick-action.pink .qa-icon    { background: rgba(236,72,153,0.10); color: var(--h5-pink); }
.h5-quick-action .qa-body { flex: 1; min-width: 0; }
.h5-quick-action .qa-label {
  font-size: 14px; font-weight: 700; line-height: 1.2;
  color: var(--h5-text);
}
.h5-quick-action.primary .qa-label { color: #fff; }
.h5-quick-action .qa-sub {
  font-size: 11px; font-family: var(--h5-font-mono); font-weight: 500;
  color: var(--h5-muted); margin-top: 3px; letter-spacing: 0.04em;
}
.h5-quick-action.primary .qa-sub { color: rgba(255,255,255,0.75); }
.h5-quick-action .qa-arrow {
  font-size: 16px; color: var(--h5-light); font-weight: 400;
}
.h5-quick-action.primary .qa-arrow { color: rgba(255,255,255,0.7); }

/* Enhanced KPI card (Dashboard) */
.h5-kpi-enhanced { padding: 20px; }
.h5-kpi-enhanced .kpi-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 10px;
  gap: 12px;
}
.h5-kpi-enhanced .kpi-value {
  font-family: var(--h5-font-sans);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--h5-text);
}
.h5-kpi-enhanced .kpi-delta {
  margin-top: 8px;
  display: flex; align-items: center; gap: 6px;
}
.h5-kpi-enhanced .kpi-period {
  font-family: var(--h5-font-mono);
  font-size: 10px;
  color: var(--h5-light);
  letter-spacing: 0.05em;
}
.h5-kpi-enhanced .kpi-baseline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--h5-border-soft);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--h5-muted);
}
.h5-kpi-enhanced .kpi-baseline-val {
  font-family: var(--h5-font-mono);
  font-weight: 600;
  color: var(--h5-body);
}

/* Stat card (compact KPI) */
.h5-stat-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.h5-stat-card .stat-value {
  font-family: var(--h5-font-mono);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--h5-text);
  line-height: 1;
}
.h5-stat-card .stat-sub {
  font-size: 12px;
  color: var(--h5-muted);
  font-family: var(--h5-font-mono);
}

/* Page Header */
.h5-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.h5-page-header h1 {
  font-family: var(--h5-font-sans);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--h5-text);
  line-height: 1.15;
}
.h5-page-header .h5-page-sub {
  font-size: 14px;
  color: var(--h5-muted);
  margin-top: 4px;
}

/* Score Ring (proposals) */
.h5-score-ring {
  display: inline-block;
  width: 56px; height: 56px;
  position: relative;
}
.h5-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.h5-score-ring .ring-bg { stroke: var(--h5-border); }
.h5-score-ring .ring-fg { stroke: var(--h5-purple); transition: stroke-dashoffset .4s ease; }
.h5-score-ring .ring-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--h5-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--h5-text);
  font-variant-numeric: tabular-nums;
}

/* Funnel (Reports) */
.h5-funnel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
  margin-top: 14px;
}
@media (max-width: 768px) {
  .h5-funnel { grid-template-columns: 1fr; gap: 6px; }
  .h5-funnel-step::after { display: none !important; }
}
.h5-funnel-step {
  padding: 14px 16px;
  position: relative;
  background: var(--h5-cream);
}
.h5-funnel-step.s1 { background: #EDE9FE; }
.h5-funnel-step.s2 { background: #F3E8FF; }
.h5-funnel-step.s3 { background: #FAE8FF; }
.h5-funnel-step.s4 { background: #FBCFE8; color: var(--h5-text); }
.h5-funnel-step.s5 { background: var(--h5-grad); color: #fff; }
.h5-funnel-step .step-lbl {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.h5-funnel-step .step-val {
  font-family: var(--h5-font-mono);
  font-size: 24px; font-weight: 800;
  line-height: 1; margin-top: 4px;
}
.h5-funnel-step .step-pct {
  font-family: var(--h5-font-mono);
  font-size: 11px; margin-top: 4px;
  opacity: 0.85;
}

/* Theme toggle */
.h5-theme-toggle {
  position: fixed;
  bottom: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--h5-surface);
  border: 1px solid var(--h5-border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* ============================================================================ */
/* Sprint 19.2 — Apply v5 tokens to existing app.js classes (no JS changes)     */
/* ============================================================================ */

/* Eyebrow polish on existing labels */
.kpi-label,
.section-title,
.page-title-mini {
  font-family: var(--h5-font-mono);
}

/* KPI values use Apple SF Pro with tabular-nums (Apple-bar — not separate mono font) */
.kpi-value,
.kpi-delta,
.metric-num {
  font-family: var(--h5-font-sans);
  font-feature-settings: 'tnum' on, 'ss01', 'ss02';
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* KPI grid — match v5 spacing */
.kpi-grid .kpi {
  border-radius: 14px;
  border-color: var(--h5-border);
  transition: box-shadow .15s ease;
}
.kpi-grid .kpi:hover { box-shadow: 0 4px 12px rgba(30,27,75,.06); }

/* Page heads — apply v5 h1 weight + letter-spacing */
.page-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Buttons — already gradient. Add .btn-primary subtle hover lift */
.btn-primary { transition: transform .12s ease, box-shadow .12s ease; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124,58,237,.35);
}

/* Sidebar — soften border in dark mode */
[data-theme="dark"] .sidebar { background: var(--h5-surface); border-color: var(--h5-border); }
[data-theme="dark"] .topbar  { background: var(--h5-surface); border-color: var(--h5-border); }
[data-theme="dark"] body     { background: var(--h5-app-bg); color: var(--h5-text); }
[data-theme="dark"] .card,
[data-theme="dark"] .kpi-grid .kpi { background: var(--h5-surface); border-color: var(--h5-border); color: var(--h5-text); }
[data-theme="dark"] .kpi-label,
[data-theme="dark"] .page-sub { color: var(--h5-muted); }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: var(--h5-cream);
  color: var(--h5-text);
  border-color: var(--h5-border);
}
[data-theme="dark"] .btn { color: var(--h5-text); border-color: var(--h5-border); background: var(--h5-cream); }
[data-theme="dark"] .btn-primary { background: var(--h5-grad); color: #fff; }
[data-theme="dark"] .sb-link { color: var(--h5-body); }
[data-theme="dark"] .sb-link.active,
[data-theme="dark"] .sb-link:hover { background: var(--h5-cream); color: var(--h5-text); }

/* Chrome scrollbar dark mode */
[data-theme="dark"] ::-webkit-scrollbar { background: var(--h5-app-bg); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--h5-border); border-radius: 6px; }

/* ============================================================================ */
/* Sprint 19.3 — My RFPs + Wizard polish (page-2 + page-3)                       */
/* ============================================================================ */

/* RFP list cards */
.rfp-card,
.rfp-list-item,
.list-row {
  border-radius: 12px;
  border-color: var(--h5-border);
  transition: box-shadow .15s ease, transform .12s ease;
}
.rfp-card:hover,
.rfp-list-item:hover {
  box-shadow: 0 4px 12px rgba(30,27,75,.08);
  transform: translateY(-1px);
}

/* Status badges — match h5-pill tones */
.status-badge,
.rfp-status,
.badge {
  font-family: var(--h5-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
}
.status-badge.draft,    .badge.draft    { background: var(--h5-cream); color: var(--h5-muted); }
.status-badge.open,     .badge.open,
.status-badge.active,   .badge.active   { background: rgba(46,205,167,0.1); color: #0F8765; }
.status-badge.closed,   .badge.closed   { background: var(--h5-cream); color: var(--h5-muted); }
.status-badge.warning,  .badge.warning  { background: rgba(245,158,11,0.1); color: #B45309; }
.status-badge.error,    .badge.error    { background: rgba(239,68,68,0.1); color: #B91C1C; }

/* Wizard step indicator (4 steps) */
.wiz-steps,
.wizard-steps {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  align-items: center;
}
.wiz-step,
.wizard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}
.wiz-step .step-num,
.wizard-step .step-num {
  font-family: var(--h5-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--h5-muted);
  letter-spacing: 0.06em;
}
.wiz-step.active .step-num,
.wizard-step.active .step-num { color: var(--h5-purple); }
.wiz-step.done .step-num,
.wizard-step.done .step-num { color: var(--h5-teal); }
.wiz-step .step-bar,
.wizard-step .step-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--h5-border-soft);
  overflow: hidden;
  position: relative;
}
.wiz-step.active .step-bar,
.wizard-step.active .step-bar { background: var(--h5-grad); }
.wiz-step.done .step-bar,
.wizard-step.done .step-bar { background: var(--h5-teal); }
.wiz-step .step-label,
.wizard-step .step-label {
  font-size: 12px;
  color: var(--h5-body);
  font-weight: 500;
}

/* Form input polish */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="tel"],
input[type="url"],
select,
textarea {
  border-radius: 10px;
  border: 1px solid var(--h5-border);
  background: var(--h5-surface);
  color: var(--h5-text);
  font-family: var(--h5-font-sans);
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--h5-purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
  outline: none;
}

/* Hotel picker chips */
.hotel-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--h5-cream);
  color: var(--h5-text);
  border: 1px solid var(--h5-border);
  font-size: 12px;
  font-weight: 500;
  transition: background .12s ease;
}
.hotel-chip:hover,
.tag-chip:hover { background: var(--h5-grad-soft); border-color: var(--h5-purple-light); }
.hotel-chip.active,
.tag-chip.active { background: var(--h5-grad); color: #fff; border-color: transparent; }

/* ============================================================================ */
/* Sprint 19.4 — Proposals + Compare polish (page-4 + page-5)                    */
/* ============================================================================ */

/* Proposal cards with score */
.proposal-card,
.compare-row {
  border-radius: 14px;
  border: 1px solid var(--h5-border);
  background: var(--h5-surface);
  transition: box-shadow .15s ease;
}
.proposal-card:hover,
.compare-row:hover { box-shadow: 0 4px 12px rgba(30,27,75,.06); }

/* Winner highlight */
.proposal-card.winner,
.compare-row.winner {
  background: linear-gradient(135deg, rgba(124,58,237,0.04), rgba(236,72,153,0.04));
  border-color: var(--h5-purple);
  box-shadow: 0 4px 16px rgba(124,58,237,.12);
}
.proposal-card.shortlisted,
.compare-row.shortlisted {
  border-color: var(--h5-teal);
}

/* Score display in compare */
.score-num {
  font-family: var(--h5-font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--h5-purple);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* "Why this hotel?" tooltip card */
.why-card {
  background: var(--h5-grad-soft);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--h5-body);
}
.why-card .why-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.why-card .why-signal:last-child { margin-bottom: 0; }
.why-card .signal-icon { color: var(--h5-purple); font-size: 14px; }

/* ============================================================================ */
/* Sprint 19.5 — Hotel DB + Reports polish (page-6 + page-7)                     */
/* ============================================================================ */

/* Hotel DB filter chips (top of /app/hotels) */
.filter-chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--h5-surface);
  color: var(--h5-body);
  border: 1px solid var(--h5-border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s ease;
  min-height: 40px;
}
.filter-chip:hover { border-color: var(--h5-purple-light); background: var(--h5-grad-soft); }
.filter-chip.active { background: var(--h5-grad); color: #fff; border-color: transparent; }
.filter-chip .chip-count {
  font-family: var(--h5-font-mono);
  font-size: 11px;
  background: rgba(0,0,0,.08);
  padding: 1px 7px;
  border-radius: 8px;
}
.filter-chip.active .chip-count { background: rgba(255,255,255,.2); }

/* Completeness bar (Hotel DB) */
.completeness-bar {
  display: inline-block;
  width: 80px;
  height: 8px;
  background: var(--h5-cream);
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
  margin-left: 8px;
}
.completeness-bar > span {
  display: block;
  height: 100%;
  background: var(--h5-grad);
  border-radius: 4px;
  transition: width .3s ease;
}
.completeness-bar.low > span    { background: var(--h5-amber); }
.completeness-bar.medium > span { background: linear-gradient(90deg, var(--h5-amber), var(--h5-purple)); }
.completeness-bar.high > span   { background: var(--h5-teal); }

/* Reports KPI strip alignment */
.report-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .report-kpi-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .report-kpi-strip { grid-template-columns: 1fr; }
}

/* Section divider with eyebrow */
.section-h {
  margin-top: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--h5-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-h h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--h5-text);
}

/* =========================================================================
   v55.75 Sprint 281 — P0 FIX: Wizard Step 3 (Budget & needs) styles
   These classes were emitted by app.js but had NO CSS — pills rendered as
   plain text and need rows stacked. Discovered live during persona QA walk.
   ========================================================================= */

/* Budget pills */
.budget-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
.bpill {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-5, #E5E7EB);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 100ms ease;
  user-select: none;
}
.bpill:hover {
  border-color: var(--indigo, #7C3AED);
  background: rgba(124, 58, 237, 0.03);
}
.bpill:active { transform: translateY(1px); }
.bpill.active {
  border-color: var(--indigo, #7C3AED);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.bpill-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-1, #0F172A);
  letter-spacing: -0.005em;
}
.bpill.active .bpill-title { color: var(--indigo, #7C3AED); }
.bpill-range {
  font-size: 11px;
  color: var(--muted, #6B7280);
}

/* Needs grid */
.needs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 6px;
}
@media (min-width: 720px) {
  .needs-grid { grid-template-columns: 1fr 1fr; }
}
.need-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--ink-5, #E5E7EB);
  border-radius: 10px;
  background: #fff;
  transition: border-color 140ms ease, background 140ms ease;
}
.need-row:hover { border-color: rgba(124, 58, 237, 0.25); }
.need-row.req {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.04);
}
.need-row.nice {
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.03);
}
.need-label {
  font-size: 13px;
  color: var(--ink-1, #0F172A);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

/* Priority buttons NO / NICE / MUST */
.need-pri {
  display: inline-flex;
  border: 1px solid var(--ink-5, #E5E7EB);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.pri-btn {
  appearance: none;
  border: 0;
  background: #fff;
  color: var(--muted, #6B7280);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  border-right: 1px solid var(--ink-5, #E5E7EB);
}
.pri-btn:last-child { border-right: 0; }
.pri-btn:hover { background: #F8FAFC; color: var(--ink-1, #0F172A); }
.pri-btn.sel[data-pri="0"] {
  background: #F1F5F9;
  color: var(--ink-2, #334155);
}
.pri-btn.sel[data-pri="nice"] {
  background: #EC4899;
  color: #fff;
}
.pri-btn.sel[data-pri="must"] {
  background: #7C3AED;
  color: #fff;
}

/* Step intro paragraph */
.step-intro {
  font-size: 14px;
  color: var(--ink-2, #334155);
  margin: 0 0 16px;
  line-height: 1.55;
}
.step-intro strong { color: var(--ink-1, #0F172A); }

/* Date pair */
.date-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .date-pair { grid-template-columns: 1fr; }
}
.nights-hint {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted, #6B7280);
  margin-top: 4px;
}
.nights-hint strong { color: var(--indigo, #7C3AED); }

/* Field row */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Date flex pills (Sprint 280) — match the inline styles' affordance */
.date-flex-pill {
  font-family: inherit;
  appearance: none;
  transition: border-color 140ms ease, background 140ms ease, transform 80ms ease;
}
.date-flex-pill:hover {
  border-color: var(--indigo, #7C3AED) !important;
}
.date-flex-pill:active { transform: translateY(1px); }


/* ============================
 * v56.0 Sprint 337 — Mobile responsive polish
 * Covers: sidebar drawer, modal full-screen, wizard, hotel cards stacking
 * ============================ */
@media (max-width: 768px) {
  /* Sidebar → drawer */
  .sb {
    position: fixed; inset: 0 auto 0 0;
    width: 84vw; max-width: 320px;
    z-index: 9990;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 8px 0 32px rgba(15,23,42,.18);
  }
  body.sidebar-open .sb { transform: translateX(0); }
  body.sidebar-open::after {
    content: '';
    position: fixed; inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 9989;
  }
  /* Hamburger button */
  .mobile-hamburger {
    position: fixed;
    top: 14px; left: 14px;
    width: 44px; height: 44px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    z-index: 9988;
    display: flex !important;
    align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,23,42,.06);
  }
  .mobile-hamburger svg { width: 20px; height: 20px; color: #1E1B4B; }
  /* Push main content right of hamburger */
  main { padding-left: 16px !important; padding-top: 64px !important; }
  /* Modal full-screen on mobile */
  .modal-card {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  /* Wizard steps scroll horizontally */
  .wsteps {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .wstep { flex-shrink: 0; }
  /* Hotel card stack */
  .hcard { flex-direction: column !important; }
  .hcard-photo { width: 100% !important; height: 160px !important; flex-shrink: 0 !important; }
  /* Modal hero photo shorter on mobile */
  .modal-card img[alt][loading="lazy"] { max-height: 200px !important; }
  /* Touch targets */
  button, a.btn, .btn { min-height: 44px !important; }
  /* Tables → horizontal scroll wrapper */
  .compare-table, table.t {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 480px) {
  /* Even tighter for phones */
  .page-head h1 { font-size: 22px !important; line-height: 1.2; }
  .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .h5-card { padding: 16px !important; }
  /* Wizard step indicator collapse to "X of Y" */
  .wsteps .wstep-label { display: none; }
}
