:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #050505;
  --muted: #4d4d4d;
  --line: #000000;
  --shadow: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 300;
}

button {
  cursor: pointer;
}

button,
input,
textarea {
  font: inherit;
}

.customer-app {
  width: min(820px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.customer-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.customer-header p,
.customer-header h1,
.panel-header p,
.panel-header h2 {
  margin: 0;
}

.customer-header p,
.panel-header p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.customer-header h1 {
  margin-top: 3px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0;
}

.panel-header h2 {
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.back-link,
.text-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.back-link {
  width: 42px;
  height: 42px;
}

.back-link svg,
.text-button svg,
.primary-button svg {
  width: 18px;
  height: 18px;
}

.vehicle-card,
.panel,
.result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.vehicle-card,
.panel {
  padding: 14px;
}

.vehicle-card {
  display: grid;
  gap: 12px;
}

.vehicle-main,
.panel-header,
.estimate-line,
.estimate-total,
.message {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-main strong,
.vehicle-main span,
.message strong,
.message span {
  display: block;
}

.vehicle-main strong {
  font-size: 22px;
  font-weight: 400;
}

.vehicle-main span,
.message span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.status-pill,
#etaBadge,
#estimateStatus {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
}

.timeline li {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding-left: 30px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.timeline li.done::before,
.timeline li.current::before {
  background: #050505;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  width: 2px;
  height: calc(100% - 10px);
  background: #050505;
}

.timeline li:last-child::after {
  display: none;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  font-size: 13px;
  font-weight: 400;
}

.timeline span {
  color: var(--muted);
  font-size: 12px;
}

#estimateBox {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.estimate-line {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.estimate-line span,
.estimate-total span {
  color: var(--muted);
  font-size: 13px;
}

.estimate-line strong,
.estimate-total strong {
  font-weight: 400;
  white-space: nowrap;
}

.estimate-total {
  align-items: center;
  padding-top: 2px;
}

.estimate-total strong {
  font-size: 24px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.primary-button,
.text-button {
  padding: 0 13px;
}

.primary-button {
  background: #050505;
  color: #ffffff;
}

.message-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.message {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.message p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.result {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .customer-app {
    padding: 14px;
  }

  .customer-header h1 {
    font-size: 25px;
  }

  .vehicle-main,
  .panel-header,
  .message {
    display: grid;
  }

  .action-row {
    display: grid;
  }
}
