/* Location-verified reporting flow — the Report button, the two-tap panel, and
   the site-wide pending banner.

   Built from the site's own tokens (base.css :root) and control metrics, so this
   reads as part of the app rather than a bolted-on widget: 3px radii, 34px
   controls, 13px body / 11px uppercase labels, warm neutrals, --accent orange.
   The vehicle chips deliberately reuse the .wait-btn shape, since they do the
   same job in the same form. */

/* ── Pending banner ─────────────────────────────────────────────────────── */
/* The [hidden] rule must sit with the display rule and win: an id selector
   setting `display: flex` beats the UA stylesheet's `[hidden] { display: none }`,
   which left an empty coloured strip under the navbar whenever nothing was
   pending (i.e. almost always). */
#report-banner[hidden] { display: none; }

#report-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: var(--med-bg);
  border-bottom: 1px solid #e8d9a0;
  color: var(--med-text);
  font-size: 13px;
}

.report-banner-text { font-weight: 600; }

.report-banner-action {
  font-weight: 700;
  color: var(--med-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.report-banner-action:hover { color: #5c4503; }

/* ── Metric explainer ───────────────────────────────────────────────────── */
/* Matches .submit-tagline, minus the padding — it always sits inside a form
   that already supplies it. Keep it that way: giving this its own horizontal
   padding makes it break out of the card on one page and double up on the other. */
.report-metric-help {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 10px;
}

/* ── Flow panel ─────────────────────────────────────────────────────────── */
/* Wraps to its own full-width line inside the .submit-fields /
   .dashboard-submit-fields flex row that holds the Report button. */
[data-report-panel],
[data-report-status] { flex: 0 0 100%; }

[data-report-panel][hidden],
[data-report-status][hidden] { display: none; }

.report-step {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-step-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
}

/* Sub-label under the step title — the vehicle question is a detail of
   "start your timer", not a heading in its own right. */
.report-step-prompt {
  font-size: 13px;
  color: var(--text-2);
  margin-top: -4px;
}

.report-elapsed {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.report-vehicles { display: flex; flex-wrap: wrap; gap: 8px; }

.report-vehicle {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.report-vehicle:hover { border-color: var(--border-strong); color: var(--text); }
.report-vehicle.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.report-vehicle.is-selected:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.report-action { align-self: flex-start; }

.report-cancel {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.report-cancel:hover { color: var(--text-2); }

/* Advisory, not an error — the tap still works while this shows. */
.report-warning {
  padding: 8px 10px;
  background: var(--med-bg);
  border-left: 2px solid #d9b23a;
  color: var(--med-text);
  font-size: 12px;
  line-height: 1.5;
  border-radius: 2px;
}

.report-nudge {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

.report-result {
  font-size: 18px;
  font-weight: 800;
  color: var(--low-text);
  line-height: 1.2;
}

.report-thanks { font-size: 13px; color: var(--text-2); }

/* ── Status line ────────────────────────────────────────────────────────── */
.report-status {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.report-status-error { color: var(--high-text); }
.report-status-ok    { color: var(--low-text); }
.report-status-info  { color: var(--text-2); }

.report-typed-intro {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 10px;
}

/* ── Trust badges ───────────────────────────────────────────────────────── */
.report-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: var(--low-bg);
  color: var(--low-text);
}
.report-trust-badge.is-verified { background: var(--surface-2); color: var(--text-2); }

@media (max-width: 600px) {
  #report-banner {
    gap: 3px;
    padding: 8px 14px;
    font-size: 12.5px;
    flex-direction: column;
    text-align: center;
  }

  .report-step { padding: 11px 12px; gap: 9px; }
  .report-elapsed { font-size: 20px; }
  .report-vehicles { gap: 6px; }
  .report-vehicle { flex: 1 1 auto; min-width: 68px; padding: 0 10px; }
  .report-action { align-self: stretch; width: 100%; }
  .report-result { font-size: 16px; }
}
