/*
 * app.css — Franco's PPI inspection tool.
 *
 * Design intent: a workshop instrument, not a marketing page.
 * Dark charcoal chrome (top bar, bottom bar) frames white "paper" cards, because
 * the content becomes a printed report. Sunlight readability wins over subtlety:
 * no low-contrast greys on anything Franco has to read on a driveway.
 *
 * Signature move: the severity spine. Each item card carries a left stripe that
 * takes the colour of its rating, so scrolling a section reads as a colour-coded
 * strip of the vehicle's health at a glance.
 *
 * Colour + font values are FALLBACKS. form.js overwrites them at runtime from
 * report-schema.json (brand.colors / brand.fonts) so the engine re-skins per
 * mechanic with no CSS edit.
 */

:root {
  --fr-ink: #14171b;
  --fr-ink-2: #1c2127;
  --fr-ink-3: #262d35;
  --fr-green: #1db954;
  --fr-green-on-dark: #34d369;
  --fr-green-ink: #0c7a34;
  --fr-green-soft: #e8f8ee;
  --fr-body: #41474f;
  --fr-muted: #5b636c;
  --fr-muted-d: #aeb6bf;
  --fr-white: #fff;
  --fr-border: #e4e8e6;
  --fr-border-d: rgba(255, 255, 255, 0.14);
  --fr-bg-soft: #f5f7f6;

  --fr-font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fr-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fr-track: 0.14em;

  --fr-radius-sm: 10px;
  --fr-radius: 14px;
  --fr-radius-lg: 20px;
  --fr-radius-pill: 999px;

  --fr-shadow-sm: 0 2px 10px rgba(20, 23, 27, 0.06);
  --fr-shadow: 0 8px 26px rgba(20, 23, 27, 0.12);
  --fr-shadow-lg: 0 18px 48px rgba(20, 23, 27, 0.22);

  /* Chrome heights — used to pad the scroll area so nothing hides behind the bars. */
  --topbar-h: 56px;
  --bottombar-h: 72px;

  --tap: 52px; /* every interactive target clears the 44px floor with room to spare */
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  background: var(--fr-ink);
  /* Stop iOS auto-inflating type in landscape. */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fr-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fr-body);
  background: var(--fr-bg-soft);
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4, legend {
  font-family: var(--fr-font-head);
  color: var(--fr-ink);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- a11y primitives ---------- */

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--fr-green-on-dark);
  color: var(--fr-ink);
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 0 0 var(--fr-radius-sm) 0;
}
.skip:focus { left: 0; }

/* One focus treatment everywhere, always visible against both light and dark. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--fr-green);
  outline-offset: 2px;
  border-radius: 4px;
}
.rating-opt-input:focus-visible + .rating-opt,
.file-input:focus-visible + .btn-file {
  outline: 3px solid var(--fr-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  background: var(--fr-ink);
  border-bottom: 1px solid var(--fr-border-d);
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo { height: 26px; width: auto; display: block; flex: none; }

.topbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.progress-pill {
  font-family: var(--fr-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--fr-white);
  background: var(--fr-ink-3);
  border: 1px solid var(--fr-border-d);
  border-radius: var(--fr-radius-pill);
  padding: 5px 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.save-state {
  font-size: 12px;
  color: var(--fr-muted-d);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.save-state::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fr-muted-d);
  flex: none;
}
.save-state[data-state='saved']::before { background: var(--fr-green-on-dark); }
.save-state[data-state='saving']::before { background: #e0b64a; }
.save-state[data-state='error']::before { background: #ff7a70; }
.save-state[data-state='error'] { color: #ff9d95; }

/* ---------- step nav ---------- */

.steps {
  position: fixed;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  left: 0; right: 0;
  z-index: 39;
  background: var(--fr-ink-2);
  border-bottom: 1px solid var(--fr-border-d);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.steps::-webkit-scrollbar { display: none; }

.steps-inner {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  width: max-content;
  min-width: 100%;
}

.step-chip {
  appearance: none;
  border: 1px solid var(--fr-border-d);
  background: transparent;
  color: var(--fr-muted-d);
  font-family: var(--fr-font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 13px;
  min-height: 38px;
  border-radius: var(--fr-radius-pill);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.step-chip:hover { color: var(--fr-white); border-color: rgba(255, 255, 255, 0.3); }
.step-chip[aria-current='true'] {
  background: var(--fr-green);
  border-color: var(--fr-green);
  color: var(--fr-ink); /* 6.95:1 — white here would be 2.59:1 */
}
.step-chip .chip-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--fr-radius-pill);
  padding: 1px 6px;
}
.step-chip[data-complete='true']:not([aria-current='true']) { color: var(--fr-green-on-dark); }

/* ---------- layout ---------- */

.wrap {
  padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 54px);
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px) + 20px);
  min-height: 100dvh;
}
/* Resume screen and fallbacks have no step nav above them. */
.wrap.is-bare { padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 16px); }

.step-panel { padding: 16px 12px 8px; max-width: 720px; margin: 0 auto; }

.step-head { margin-bottom: 14px; }
.step-eyebrow {
  font-family: var(--fr-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--fr-track);
  text-transform: uppercase;
  color: var(--fr-green-ink);
  margin: 0 0 5px;
}
.step-title { font-size: 25px; font-weight: 700; }
.step-sub { margin: 6px 0 0; font-size: 14px; color: var(--fr-muted); }

/* ---------- cards ---------- */

.card {
  background: var(--fr-white);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
  padding: 16px 14px;
  margin-bottom: 12px;
  box-shadow: var(--fr-shadow-sm);
}

/* Step 1's group headings. These were 12px uppercase in a notch cut through the card
   border (a fieldset legend), which is the same treatment the section steps use for
   FIELD sub-labels like "NOTES" — so a card title on step 1 read one rank BELOW a card
   title on the other six steps. Now it is a plain heading inside the card, matching
   .item-label exactly, so every card on every step speaks one language.
   See form.js: the markup is div[role=group] + h2, not fieldset + legend. */
.card-legend {
  font-family: var(--fr-font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fr-ink);
  margin: 0 0 11px;   /* matches .item-head */
}

/* ---------- text fields ---------- */

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-family: var(--fr-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--fr-ink);
  margin-bottom: 6px;
}
.field-req { color: var(--fr-green-ink); font-weight: 700; }
.field-opt { color: var(--fr-muted); font-weight: 500; font-size: 12px; }

.input,
.textarea {
  width: 100%;
  font-family: var(--fr-font-body);
  font-size: 16px; /* 16px minimum or iOS zooms the viewport on focus */
  color: var(--fr-ink);
  background: var(--fr-white);
  border: 2px solid var(--fr-border);
  border-radius: var(--fr-radius-sm);
  padding: 12px 12px;
  min-height: var(--tap);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder,
.textarea::placeholder { color: #98a0a8; }
.input:hover, .textarea:hover { border-color: #ccd4d0; }
.input:focus, .textarea:focus {
  border-color: var(--fr-green);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.16);
  outline: none;
}
.input:focus-visible, .textarea:focus-visible { outline: none; }
.input[aria-invalid='true'] { border-color: #b3261e; }

.textarea {
  min-height: 62px;
  resize: vertical;
  line-height: 1.45;
}

/* Live echo under the vehicle fields: "2013 Volkswagen Tiguan Wagon".
   Cheap guard against the Make/Model swap that produced "Make: Imax". */
.vehicle-echo {
  margin-top: 12px;
  padding: 11px 12px;
  background: var(--fr-green-soft);
  border: 1px solid rgba(12, 122, 52, 0.22);
  border-radius: var(--fr-radius-sm);
  font-size: 14px;
  color: var(--fr-green-ink);
}
.vehicle-echo strong {
  font-family: var(--fr-font-head);
  display: block;
  font-size: 16px;
  margin-top: 2px;
  color: var(--fr-ink);
}
.vehicle-echo[hidden] { display: none; }

/* ---------- item card + severity spine ---------- */

.item {
  position: relative;
  background: var(--fr-white);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
  padding: 15px 14px 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--fr-shadow-sm);
  overflow: hidden;
  --spine: var(--fr-border);
}
.item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--spine);
  transition: background 0.2s ease;
}
.item[data-rated='true'] { border-color: #d5ddd8; }

.item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}
.item-label {
  font-family: var(--fr-font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--fr-ink);
  line-height: 1.3;
}
.item-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--fr-muted);
  font-variant-numeric: tabular-nums;
  flex: none;
  padding-top: 3px;
}

/* ---------- rating control ----------
   The single most-repeated interaction: 26 taps per report. Big, filled,
   unmistakable. Native radios underneath give arrow-key nav for free. */

.rating {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}
.rating[data-count='5'] { grid-template-columns: repeat(5, 1fr); }
.rating[data-count='3'] { grid-template-columns: repeat(3, 1fr); }
.rating[data-count='2'] { grid-template-columns: repeat(2, 1fr); }

.rating-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: var(--tap);
  padding: 6px 3px;
  border: 2px solid var(--fr-border);
  border-radius: var(--fr-radius-sm);
  background: var(--fr-white);
  color: var(--fr-ink);
  font-family: var(--fr-font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.rating-opt:active { transform: scale(0.96); }
@media (hover: hover) {
  .rating-opt:hover { border-color: var(--opt-color, var(--fr-ink)); }
}

/* Selected = solid fill in the schema's colour, white text.
   Every schema colour clears 4.5:1 against white text. */
.rating-opt-input:checked + .rating-opt {
  background: var(--opt-color);
  border-color: var(--opt-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 23, 27, 0.18);
}

.rating-hint {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: var(--fr-muted);
  line-height: 1.4;
}
.rating-hint strong { color: var(--fr-ink); font-weight: 700; }

/* ---------- notes: a first-class field, never merged into the rating ---------- */

.notes { margin-top: 12px; }
.notes-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--fr-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fr-muted);
  margin-bottom: 6px;
}
.notes-count { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.notes .textarea { min-height: 54px; font-size: 16px; }

/* ---------- photos ---------- */

.photos { margin-top: 12px; }
.photos-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid var(--fr-border);
  border-radius: var(--fr-radius-pill);
  background: var(--fr-white);
  color: var(--fr-ink);
  font-family: var(--fr-font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.btn-file:hover { border-color: var(--fr-green); background: var(--fr-green-soft); }
.btn-file svg { width: 17px; height: 17px; flex: none; }
.file-input:disabled + .btn-file { opacity: 0.45; cursor: not-allowed; }
.photo-count {
  font-size: 12px;
  color: var(--fr-muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.thumbs:empty { display: none; }

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--fr-radius-sm);
  overflow: hidden;
  border: 1px solid var(--fr-border);
  background: var(--fr-bg-soft);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 23, 27, 0.82);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.thumb-remove:hover { background: #b3261e; }
.thumb-bytes {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(20, 23, 27, 0.8));
  color: #fff;
  font-size: 10px;
  text-align: center;
  padding: 8px 2px 3px;
  font-variant-numeric: tabular-nums;
}
.thumb.is-error {
  border-color: #b3261e;
  background: #fdecea;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  font-size: 10px;
  color: #8c1d18;
  line-height: 1.25;
}

/* ---------- hero photo ---------- */

.hero-photo { margin-top: 4px; }
.hero-drop {
  position: relative;
  border: 2px dashed #ccd4d0;
  border-radius: var(--fr-radius);
  background: var(--fr-bg-soft);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}
.hero-drop p { margin: 0; font-size: 13px; color: var(--fr-muted); }
.hero-preview { position: relative; border-radius: var(--fr-radius); overflow: hidden; border: 1px solid var(--fr-border); }
.hero-preview img { width: 100%; display: block; max-height: 260px; object-fit: cover; }
.hero-preview .thumb-remove { width: 38px; height: 38px; top: 8px; right: 8px; font-size: 20px; }

/* ---------- buttons ---------- */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 20px;
  border-radius: var(--fr-radius-pill);
  border: 2px solid transparent;
  font-family: var(--fr-font-head);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Charcoal on green, matching the live site's .btn-primary. White on #1db954 is
   only 2.59:1 and fails AA; charcoal is 6.95:1 and is what the brand actually uses. */
.btn-primary { background: var(--fr-green); color: var(--fr-ink); }
.btn-primary:hover:not(:disabled) { background: #17a449; color: var(--fr-ink); }
.btn-ghost-d { background: transparent; color: var(--fr-white); border-color: var(--fr-border-d); }
.btn-ghost-d:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost { background: var(--fr-white); color: var(--fr-ink); border-color: var(--fr-border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--fr-ink); }
.btn-danger { background: transparent; color: #b3261e; border-color: #f0c4c0; }
.btn-danger:hover:not(:disabled) { background: #fdecea; border-color: #b3261e; }
.btn-block { width: 100%; }

/* ---------- bottom bar ---------- */

.bottombar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  background: var(--fr-ink);
  border-top: 1px solid var(--fr-border-d);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
}
.bottombar .btn { flex: 1; }
.bottombar .btn-next { flex: 1.6; }

/* ---------- resume screen ---------- */

.resume { padding: 20px 14px; max-width: 640px; margin: 0 auto; }
.draft-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--fr-white);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--fr-shadow-sm);
}
.draft-main { flex: 1; min-width: 0; }
.draft-title {
  font-family: var(--fr-font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--fr-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-meta { font-size: 12.5px; color: var(--fr-muted); margin-top: 3px; }
.draft-actions { display: flex; gap: 8px; flex: none; }
.draft-actions .btn { padding: 10px 14px; font-size: 13px; min-height: 44px; }

/* ---------- summary step ---------- */

.summary-stat {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.stat {
  flex: 1;
  min-width: 96px;
  background: var(--fr-white);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
  padding: 12px;
  text-align: center;
}
.stat-num {
  font-family: var(--fr-font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--fr-ink);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fr-muted);
  font-weight: 600;
  margin-top: 2px;
}

.notice {
  border-radius: var(--fr-radius);
  padding: 13px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 12px;
  border: 1px solid;
}
.notice-warn { background: #fdf4e3; border-color: #e6cf9a; color: #6b4c00; }
.notice-info { background: var(--fr-green-soft); border-color: rgba(12, 122, 52, 0.24); color: #0a5c28; }
.notice-error { background: #fdecea; border-color: #eeb4ae; color: #8c1d18; }
.notice strong { font-family: var(--fr-font-head); }
.notice ul { margin: 7px 0 0; padding-left: 18px; }
.notice li { margin-bottom: 3px; }
.notice a { color: inherit; }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 23, 27, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 560px) { .modal-backdrop { align-items: center; padding: 20px; } }

.modal {
  background: var(--fr-white);
  border-radius: var(--fr-radius-lg) var(--fr-radius-lg) 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 480px;
  max-height: 86dvh;
  overflow-y: auto;
  box-shadow: var(--fr-shadow-lg);
}
@media (min-width: 560px) { .modal { border-radius: var(--fr-radius-lg); padding-bottom: 20px; } }

.modal h2 { font-size: 20px; margin-bottom: 8px; }
.modal p { font-size: 14px; margin: 0 0 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 130px; }

/* ---------- spinner ---------- */

.spinner {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  flex: none;
}
.spinner-dark { border-color: rgba(20, 23, 27, 0.2); border-top-color: var(--fr-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.generating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--fr-white);
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius);
}
.generating p { margin: 0; font-size: 14px; }

/* ---------- fallback / no-js ---------- */

.fallback {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 18px;
  text-align: center;
}
.fallback h1 { font-size: 20px; margin-bottom: 8px; }
.fallback p { font-size: 14px; }
.no-js .js-only { display: none; }

/* ---------- desktop: this is a phone tool, so it just centres and calms down ---------- */

@media (min-width: 760px) {
  body { background: #eef2f0; }
  .step-panel, .resume { padding-left: 20px; padding-right: 20px; }
  .steps-inner { max-width: 760px; margin: 0 auto; }
  .bottombar { justify-content: center; }
  .bottombar .btn { flex: none; min-width: 150px; }
  .bottombar .btn-next { flex: none; min-width: 200px; }
  .rating-opt { font-size: 14px; }
  .item-label, .card-legend { font-size: 17px; }
}
