:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --text: #172026;
  --muted: #65717a;
  --line: #dce3e7;
  --primary: #116b5f;
  --primary-dark: #0d5148;
  --secondary: #365f91;
  --dark: #202833;
  --danger: #b42318;
  --danger-dark: #8f1d15;
  --ok: #16834a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 20px 14px 28px;
}

.footer {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0 14px 18px;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 14px;
}

.brand,
.label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #b8d7cf;
  border-radius: 999px;
  background: #eef8f4;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.intro {
  margin-top: 28px;
}

.intro h1 {
  margin: 8px 0 12px;
  font-size: 30px;
}

.intro p,
.result p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b9c5cc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(17, 107, 95, 0.16);
}

.input-error {
  border-color: var(--danger);
}

.file {
  padding: 11px 10px;
}

.actions,
.stack {
  display: grid;
  gap: 10px;
}

.actions {
  margin-bottom: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--primary);
}

.button-secondary {
  background: var(--secondary);
}

.button-dark {
  background: var(--dark);
}

.button-danger {
  background: var(--danger);
}

.button-disabled,
.button:disabled {
  background: #aeb8bf;
  color: #f8fafb;
  cursor: not-allowed;
  opacity: 1;
}

.button:active {
  transform: translateY(1px);
}

.result {
  margin-top: 28px;
}

.result-mark {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.result-ok .result-mark {
  color: var(--ok);
}

.result-error .result-mark {
  color: var(--danger);
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.field-grid,
.action-grid {
  display: grid;
  gap: 10px;
}

.subpanel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfb;
}

.subpanel p {
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-transform: none;
}

.checkline input {
  margin-top: 2px;
}

.suggestions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #b8d7cf;
  border-radius: 8px;
  background: #eef8f4;
  color: var(--primary-dark);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

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

.details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.details dd {
  margin: 0 0 6px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .shell {
    padding-top: 34px;
  }

  .field-grid,
  .action-grid {
    grid-template-columns: 1fr 1fr;
  }
}
