/* RoadwiseFleet Fleet Manager — application shell styles (board task #32).
 *
 * Same palette and typography as the pilot surfaces so the product reads as one
 * thing. Layout targets the two widths the acceptance criteria name — 375px
 * (a dispatcher's phone) and 1440px (the office screen): the side navigation
 * collapses to a scrollable strip under 900px and the login card is a single
 * column at every width.
 *
 * No external font or CDN: the pilot host has no outbound dependency and a
 * cheap Android WebView must render this offline.
 */
:root {
  --navy-950: oklch(0.20 0.04 258);
  --navy-900: oklch(0.25 0.04 258);
  --bg: oklch(0.985 0.003 250);
  --surface: oklch(1 0 0);
  --ink: oklch(0.24 0.05 258);
  --muted: oklch(0.48 0.02 255);
  --border: oklch(0.90 0.006 255);
  --accent: oklch(0.80 0.165 82);
  --accent-deep: oklch(0.47 0.130 62);
  --danger: oklch(0.55 0.19 27);
  --on-dark: oklch(0.985 0.002 250);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-card: 0 1px 2px oklch(0.2 0.04 258 / .05), 0 10px 30px oklch(0.2 0.04 258 / .06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

[hidden] { display: none !important; }

/* Visible focus everywhere — the login screen must be usable from the keyboard. */
:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--navy-950);
  padding: 10px 14px;
  z-index: 10;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- login --- */
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 28px 24px 24px;
}
.login-card h1 { font-family: var(--font-display); font-size: 26px; margin: 14px 0 6px; }
.login-card .lead { color: var(--muted); margin: 0 0 20px; font-size: 14px; }

.brand-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tag {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.topbar .tag, .topbar .brand { color: var(--on-dark); }
.topbar .tag { color: var(--accent); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.field input:focus { border-color: var(--accent-deep); }

button { font: inherit; cursor: pointer; }
button.primary {
  width: 100%;
  background: var(--accent);
  color: var(--navy-950);
  border: 1px solid var(--accent-deep);
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 700;
  letter-spacing: .02em;
}
button.primary[disabled] { opacity: .6; cursor: progress; }
button.ghost {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--on-dark);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 14px;
}
/* The login card's secondary action (board task #94): "Register" has to read as
 * the equal of the primary "Sign in" button, not as a 12px helper link. Same
 * box metrics as `button.primary` (padding, border, weight, radius) on a
 * quieter surface, so the primary stays the lead action and the two still look
 * like the same-sized pair of choices. */
.login-card a.secondary {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.login-card a.secondary:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.helper { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.alert {
  background: oklch(0.96 0.03 27);
  border: 1px solid var(--danger);
  color: oklch(0.35 0.14 27);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 14px;
}
.noscript { padding: 24px; }

/* ------------------------------------------------------------ app shell --- */
.topbar {
  background: var(--navy-950);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
}
.topbar .spacer { flex: 1 1 auto; }
.topbar .who { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.topbar .who strong { font-weight: 600; }
.role-badge {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.lang-slot { display: flex; align-items: center; font-size: 12px; }
.lang-slot label.lang { display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark); }
select.lang-switcher {
  font: inherit;
  font-size: 13px;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid var(--navy-950);
  background: var(--on-dark);
  color: var(--ink);
}

.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 62px);
}
.sidenav {
  background: var(--navy-900);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidenav .nav-item {
  display: block;
  color: var(--on-dark);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.sidenav .nav-item:hover { background: oklch(0.32 0.04 258); }
.sidenav .nav-item.is-active {
  background: oklch(0.30 0.05 258);
  border-left-color: var(--accent);
  font-weight: 600;
}
.content { padding: 22px 20px 40px; max-width: 1100px; }
.content h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 8px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.panel .lead { color: var(--muted); margin: 0 0 12px; }
.panel .task-note {
  display: inline-block;
  background: oklch(0.96 0.05 82);
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  letter-spacing: .04em;
}
.empty-state {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
}
.empty-state .title { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin: 0 0 6px; }

/* ------------------------------------------- trips list & detail (F3) --- */
.crumbs { margin: 0 0 6px; font-size: 13px; }
.crumbs a { color: var(--accent-deep); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 14px;
}
.filters .field { margin: 0; flex: 1 1 150px; min-width: 130px; }
.filters .field-grow { flex: 2 1 220px; }
.filters select,
.filters input {
  width: 100%;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

/* ------------------------------------------------ dispatch form (F4) ---
 * Board task #35: the create-trip form. Same card look as the other panels;
 * selects get the input treatment so the form reads as one control set. The
 * form is one column at every width (no fixed width that could break 375px).
 */
.dispatch-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  max-width: 36rem;
}
.field select,
.field input[readonly] {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.filters-actions { display: flex; gap: 8px; align-items: center; }
.filters-actions button.primary { width: auto; padding: 9px 16px; }
.filters-actions button.ghost,
.table-actions button.ghost {
  color: var(--ink);
  border-color: var(--border);
}
.table-actions { display: flex; justify-content: flex-end; margin: 0 0 8px; }

table.trips-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
table.trips-table th,
table.trips-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.trips-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
}
table.trips-table tr.clickable { cursor: pointer; }
table.trips-table tr.clickable:hover { background: oklch(0.98 0.003 250); }

.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  text-transform: uppercase;
}
.status.s-DELIVERED,
.status.s-POD_UPLOADED,
.status.s-INVOICED,
.status.s-SETTLED { color: var(--accent-deep); border-color: var(--accent-deep); }
.status.s-CANCELLED { color: var(--danger); border-color: var(--danger); }

.muted { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); font-size: 13px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 20px 0 8px;
  color: var(--navy-900);
}
.kv {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 14px;
  margin: 6px 0;
}
.kv dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
  padding-top: 3px;
}
.kv dd { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 18px; border-left: 2px solid var(--border); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.tl-what { font-weight: 600; }
.tl-when { font-size: 12px; color: var(--muted); }
.pnl { font-family: var(--font-display); font-size: 24px; margin: 0; }
.pnl.pos { color: oklch(0.45 0.13 158); }
.pnl.neg { color: var(--danger); }

/* ------------------------------------------- dashboard home (F2) ---
 * The KPI strip is three taps into the trips list; the alerts strip is one
 * row per entity that needs attention; the activity feed is today's status
 * events, newest first. All content comes from GET /api/dashboard. */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 6px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
}
a.kpi:hover { border-color: var(--accent-deep); }
.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.kpi-value { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.kpi-value.is-empty { color: var(--muted); font-size: 22px; }
.kpi-note { font-size: 12px; color: var(--muted); }

.alert-strip { display: flex; flex-direction: column; gap: 6px; }
.alert-row {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.alert-row.sev-high { border-left-color: var(--danger); }
.alert-row.sev-medium { border-left-color: var(--accent-deep); }
a.alert-row:hover { border-color: var(--accent-deep); }
.alert-kind { font-weight: 600; font-size: 14px; }

ul.activity { list-style: none; margin: 0; padding: 0; }
ul.activity li { border-bottom: 1px solid var(--border); }
ul.activity li:last-child { border-bottom: 0; }
ul.activity a, ul.activity li > span { display: block; padding: 9px 2px; color: inherit; text-decoration: none; }
.act-what { font-weight: 600; font-size: 14px; }
.act-when { display: block; font-size: 12px; color: var(--muted); }
.primary-link { color: var(--accent-deep); font-weight: 600; }

@media (max-width: 700px) {
  .kpi-strip { grid-template-columns: minmax(0, 1fr); }
}

.field select:focus { border-color: var(--accent-deep); }
.field input[readonly] { background: var(--bg); color: var(--muted); }
.field-error {
  color: oklch(0.42 0.16 27);
  font-size: 13px;
  margin: 6px 0 0;
}
.alert.success {
  background: oklch(0.96 0.05 150);
  border-color: oklch(0.55 0.12 150);
  color: oklch(0.33 0.09 150);
}
.dispatch-form .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.dispatch-form .form-actions .helper { margin: 0; }
.dispatch-form button.primary { width: auto; padding: 11px 18px; }

/* ------------------------------------------------ assign driver (F5) ---
 * Board task #36: the trip-detail driver control reuses the dispatch form's
 * card look. The reassignment timeline entry is marked so a same-status event
 * does not read as a lifecycle move.
 */
.assign-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  max-width: 36rem;
}
.assign-form .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.assign-form .form-actions .helper { margin: 0; }
.assign-form button.primary { width: auto; padding: 11px 18px; }
.timeline li.tl-reassign::before { border-color: var(--accent-deep); }
.timeline li.tl-reassign .tl-what { color: var(--accent-deep); }

/* 375px: one column, navigation becomes a horizontal strip. */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidenav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    gap: 6px;
    border-bottom: 1px solid var(--navy-950);
  }
  .sidenav .nav-item { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .sidenav .nav-item.is-active { border-bottom-color: var(--accent); }
  .content { padding: 16px 14px 32px; }
  .topbar { gap: 10px; }
  .topbar .who { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .login-card { padding: 22px 16px 18px; }
  .login-card h1 { font-size: 22px; }
}

/* Narrow screens: the filter bar stacks and a wide trips table scrolls
   horizontally rather than pushing the layout wider than the viewport. */
@media (max-width: 700px) {
  .filters .field,
  .filters .field-grow { flex: 1 1 100%; }
  table.trips-table { display: block; overflow-x: auto; }
}

/* ------------------------------------------------ documents (F6) ---
 * Board task #37: the trip-detail documents panel and the Documents
 * workspace. Reuses the dispatch/assign card look; the checklist is a
 * simple list, and the document table scrolls rather than widening the page.
 */
.doc-gate {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.doc-gate.ok {
  border-color: oklch(0.55 0.12 150);
  background: oklch(0.96 0.05 150);
  color: oklch(0.33 0.09 150);
}
.doc-gate.missing {
  border-color: oklch(0.8 0.12 70);
  background: oklch(0.97 0.05 85);
  color: oklch(0.4 0.09 70);
}
.doc-subtitle {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
  margin: 18px 0 8px;
}
.doc-checklist {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}
.doc-check-label { font-weight: 600; }
.doc-check-badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.doc-check-state { margin-left: auto; color: var(--muted); }
.doc-check-state.present { color: oklch(0.33 0.09 150); }
.doc-table-wrap { overflow-x: auto; }
.doc-actions { white-space: nowrap; }
.doc-actions button { margin-right: 6px; padding: 6px 10px; }
.doc-upload {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  max-width: 36rem;
}
.doc-upload .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.doc-upload button.primary { width: auto; padding: 11px 18px; }
.doc-status { font-size: 13px; font-weight: 600; }

/* Driver client (board task #38, FAv1-F7a). */
.driver-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.driver-tab {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.driver-tab.active { border-color: var(--accent, #2f6fed); font-weight: 600; }
.driver-card { max-width: 40rem; }
.driver-meta { display: grid; grid-template-columns: 8rem 1fr; gap: 4px 12px; margin: 12px 0; }
.driver-meta dt { color: var(--muted, #667085); }
.driver-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.driver-action { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.driver-action[disabled] { opacity: 0.55; cursor: not-allowed; }
.gate-note { font-size: 13px; color: var(--muted, #667085); }
.driver-capture input[type="file"] { padding: 8px 0; }
.driver-capture button.primary { width: auto; padding: 11px 18px; }
.driver-queue { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sync-chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.sync-chip.sync-offline, .sync-chip.sync-error { border-color: var(--danger, #b42318); color: var(--danger, #b42318); }
.sync-chip.sync-synced { border-color: var(--success, #067647); color: var(--success, #067647); }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; }
.checklist li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.checklist li.done .check { color: var(--success, #067647); }
.checklist .req { font-size: 12px; color: var(--muted, #667085); }
.checklist .docstate { float: right; font-size: 13px; color: var(--muted, #667085); }
.alert.success { border-color: var(--success, #067647); color: var(--success, #067647); }
.track-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  max-width: 46rem;
}
.track-state { margin: 0 0 10px; font-weight: 600; }
.track-state.active { color: oklch(0.33 0.09 150); }
.track-state.none { color: var(--muted); }
.track-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.track-link-row input.track-url {
  flex: 1 1 22rem;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.track-body .form-actions,
.track-result .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.track-body button.primary,
.track-result button.primary { width: auto; padding: 11px 18px; }
.track-state-cell { white-space: nowrap; }
.track-state-cell.active { color: oklch(0.33 0.09 150); }
.track-actions { white-space: nowrap; }
.track-actions button { padding: 6px 10px; }
.track-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin: 0 0 16px;
}

/* ------------------------------------------------ accessibility (board task #70) ---
 * Touch targets: every interactive control is >=44px when the pointer is
 * coarse (WCAG 2.5.8). The desktop layout keeps its compact sizing.
 */
@media (pointer: coarse) {
  button { min-height: 44px; }
  .filters select,
  .filters input,
  .field select,
  .field input,
  .field input[readonly] { min-height: 44px; }
  .sidenav .nav-item { min-height: 44px; display: flex; align-items: center; }
  .doc-actions button,
  .track-actions button { min-height: 44px; min-width: 44px; }
  .driver-tab,
  .driver-action { min-height: 44px; }
  select.lang-switcher { min-height: 44px; }
  a.kpi,
  a.alert-row { min-height: 44px; }
  .cell-open { min-height: 44px; }
}

/* Honor the OS reduced-motion setting (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* A table row's primary action rendered as a button so keyboard users can
   reach it (WCAG 2.1.1); styled to read as the plain route text it replaced. */
.cell-open {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}
.cell-open:hover { color: var(--accent-deep); }

/* Sampled review prompts (board task #98). */
.review-prompt { margin: 0 0 16px; }
.review-prompt .stars { display: flex; gap: 8px; margin: 8px 0 12px; }
.review-prompt .star {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.review-prompt .star.is-selected { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.review-prompt textarea { width: 100%; margin-bottom: 12px; }
.review-prompt .review-msg { margin-top: 8px; }

/* Account-type choice on signup (board task #111). */
fieldset.field { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 0; }
fieldset.field legend { padding: 0 6px; font-weight: 600; }
.choice { display: flex; gap: 8px; align-items: flex-start; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.choice:hover { background: var(--surface); }
.choice input { margin-top: 3px; flex: none; }
.choice span { font-weight: 600; }
.choice small { display: block; color: #6b7280; font-weight: 400; }

/* Live tracking panel (board task #107, AND1-A5). */
.live-state { font-weight: 600; margin: 8px 0; }
.live-state.live { color: var(--accent-deep); }
.live-state.not_started, .live-state.completed, .live-state.cancelled { color: var(--muted); }
.live-milestones { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 12px; }
.live-milestones .lm {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}
.live-milestones .lm.done { border-color: var(--accent); color: var(--text); }
.live-milestones .lm.current { border-color: var(--accent-deep); background: var(--accent-deep); color: #fff; }
.live-position { font-variant-numeric: tabular-nums; margin: 4px 0 12px; }
.live-eta { margin: 0 0 8px; }
