:root {
  color-scheme: light;
  --bg: #eef3f6;
  --panel: #ffffff;
  --ink: #15212c;
  --muted: #64717e;
  --line: #d8e2ea;
  --teal: #247b7b;
  --green: #2f855a;
  --amber: #b7791f;
  --blue: #2f6fba;
  --violet: #6b46c1;
  --red: #c53030;
  --shadow: 0 18px 40px rgba(20, 32, 43, 0.08);
  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);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.mechanic-app {
  width: min(520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.back-link,
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.back-link svg,
.icon-button svg,
.save-button svg,
.status-button svg {
  width: 19px;
  height: 19px;
}

.mechanic-header p,
.mechanic-header h1 {
  margin: 0;
}

.mechanic-header p {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mechanic-header h1 {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

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

.scan-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 102px;
  padding: 16px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scan-box strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  line-height: 1;
}

.plate-search,
.status-panel,
.note-panel {
  padding: 14px;
}

.plate-search label,
.note-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

input {
  min-height: 42px;
  padding: 0 12px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

textarea {
  display: block;
  resize: vertical;
  min-height: 104px;
  padding: 12px;
  line-height: 1.4;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(36, 123, 123, 0.22);
  border-color: var(--teal);
}

.vehicle-card {
  display: grid;
  gap: 11px;
  padding: 14px;
}

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

.vehicle-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-title strong {
  font-size: 18px;
}

.vehicle-title span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.current-state {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eafafa;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.section-title {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.status-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.status-button span {
  overflow-wrap: anywhere;
}

.status-button.active {
  border-color: #9fd1d1;
  background: #eef8f8;
  color: #185c5c;
  font-weight: 800;
}

.save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
}

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

.save-result.saved {
  border-color: #bfe3ce;
  background: #e8f5ee;
  color: #22543d;
}

@media (max-width: 420px) {
  .mechanic-app {
    padding: 12px;
  }

  .mechanic-header h1 {
    font-size: 22px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

/* Minimal monochrome skin */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #050505;
  --muted: #4d4d4d;
  --line: #000000;
  --teal: #000000;
  --green: #000000;
  --amber: #000000;
  --blue: #000000;
  --violet: #000000;
  --red: #000000;
  --shadow: none;
}

body {
  background: #ffffff;
  color: #050505;
  font-weight: 300;
}

h1,
strong,
.scan-box strong,
.vehicle-title strong {
  font-weight: 400;
}

.label,
.mechanic-header p,
.plate-search label,
.note-panel label,
.status-button.active,
.save-button {
  font-weight: 400;
}

.back-link,
.icon-button,
.scan-box,
.plate-search,
.vehicle-card,
.status-panel,
.note-panel,
.save-result,
input,
textarea,
.status-button,
.current-state {
  border-color: #000000;
  box-shadow: none;
}

.scan-box,
.plate-search,
.vehicle-card,
.status-panel,
.note-panel,
.save-result,
.status-button,
.current-state,
.status-button.active,
input,
textarea {
  background: #ffffff;
  color: #050505;
}

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

.save-result.saved {
  border-color: #000000;
  background: #ffffff;
  color: #050505;
}
