:root {
  color-scheme: dark;
  --bg: #080d14;
  --panel: #101923;
  --panel-raised: #16212d;
  --ink: #edf4fa;
  --muted: #94a7b9;
  --line: #263746;
  --cyan: #55e9e1;
  --lime: #c2ee7a;
  --font:
    "Bahnschrift", "Segoe UI", "Microsoft JhengHei", system-ui, sans-serif;
  font: 15px var(--font);
  color: var(--ink);
  background: var(--bg);
}
.appearance-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.appearance-bar label {
  color: var(--muted);
  font-size: 11px;
}
.appearance-bar select {
  width: 126px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 0, #18303b55, transparent 48%), var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #15212c;
  color: var(--ink);
  border-radius: 5px;
  padding: 12px 16px;
  min-height: 46px;
}
button:hover {
  border-color: #658798;
  background: #1b2a38;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
a {
  color: var(--cyan);
}
[hidden] {
  display: none !important;
}
.app {
  max-width: 1360px;
  margin: auto;
  padding: 0 44px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark > span {
  font-size: 26px;
  letter-spacing: 2px;
  font-weight: 750;
}
.wordmark > span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 24px;
  background: var(--cyan);
  margin-right: 12px;
  vertical-align: -3px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 0 100%);
}
.wordmark small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.language-label select {
  width: 115px;
  min-height: 36px;
  margin: 0;
  font-size: 12px;
  background: transparent;
}
.tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs button {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
  padding: 19px 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 54px;
  letter-spacing: 0.5px;
}
.tabs button.active {
  color: var(--cyan);
}
.tabs button.active:after {
  content: "";
  height: 2px;
  background: var(--cyan);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.tabs span {
  font:
    10px Consolas,
    monospace;
  background: #233443;
  padding: 3px 7px;
  border-radius: 3px;
  margin-left: 5px;
  color: #b8cad8;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0 22px;
  gap: 15px;
}
.kicker {
  font:
    10px/1.4 Consolas,
    monospace;
  letter-spacing: 2.8px;
  color: var(--cyan);
}
h1 {
  font-size: 30px;
  letter-spacing: 0.5px;
  font-weight: 550;
  margin: 8px 0;
}
h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 550;
  letter-spacing: 0.5px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
.session-date {
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
  white-space: nowrap;
}
.context-panel {
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step {
  font:
    11px Consolas,
    monospace;
  color: var(--cyan);
  padding: 5px;
  border: 1px solid #35555f;
  min-width: 27px;
  text-align: center;
}
.small {
  font-size: 11px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
label {
  display: block;
  font-size: 12px;
  color: #a7b8c9;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 12px;
  color: #eaf2f7;
  background: #0b131d;
  border: 1px solid #2c3d4e;
  border-radius: 4px;
}
input::placeholder,
textarea::placeholder {
  color: #788c9e;
}
textarea {
  resize: vertical;
}
input:disabled,
select:disabled {
  opacity: 0.55;
}
.input-unit {
  position: relative;
  display: block;
}
.input-unit input {
  padding-right: 40px;
  font-variant-numeric: tabular-nums;
}
.input-unit > span {
  position: absolute;
  top: 23px;
  right: 12px;
  color: #7e97aa;
  font:
    11px Consolas,
    monospace;
}
details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
summary {
  font-size: 12px;
  cursor: pointer;
  min-height: 30px;
  line-height: 1.8;
  color: #bdd1e0;
}
summary::marker {
  color: var(--cyan);
}
summary > span {
  float: right;
  color: var(--muted);
}
.hint {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 10px 0;
}
.axle-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.axle-options label {
  flex: 1;
  min-width: 110px;
}
.primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #082a2d;
  font-weight: 650;
}
.primary:hover {
  background: #87fff6;
  border-color: #87fff6;
}
.capture-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px 24px;
  margin-top: 20px;
  background: #10242e;
  border: 1px solid #285361;
  border-left: 3px solid var(--cyan);
  border-radius: 5px;
}
.capture-bar > div {
  flex: 1;
  min-width: 210px;
}
.capture-bar strong {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0.3px;
}
.capture-bar p {
  font-size: 12px;
  line-height: 1.7;
  color: #95b7c5;
  margin: 7px 0 0;
}
.capture-bar select {
  min-width: 142px;
  background: #0c1a24;
  margin-top: 5px;
}
.check-label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #b3c9d7;
  font-size: 11px;
  white-space: nowrap;
}
.check-label input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--cyan);
}
.capture-bar .capture-note {
  flex-basis: 100%;
  font-size: 10px;
  color: #8aa7b8;
  border-top: 1px solid #27414f;
  padding-top: 10px;
  margin: 0;
}
.capture-feedback {
  font-size: 13px;
  line-height: 1.8;
  color: var(--lime);
  padding: 14px 2px 0;
  min-height: 36px;
}
.capture-collapsed > .form-grid,
.capture-collapsed > details {
  display: none;
}
.capture-collapsed .section-title {
  margin-bottom: 6px;
}
.capture-collapsed {
  padding: 15px 22px;
}
#context-summary {
  font-size: 13px;
  margin: 0;
  color: #aac6d2;
  letter-spacing: 0.5px;
}
.capturing .page-heading {
  padding: 18px 0 14px;
}
.capturing .page-heading h1 {
  font-size: 22px;
}
.capturing .page-heading p {
  display: none;
}
.inspection-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  margin-top: 18px;
}
.wheel-panel {
  padding: 24px;
  background: linear-gradient(155deg, #172732, #0b131d 65%);
  border: 1px solid #304554;
  border-radius: 6px;
  align-self: start;
  overflow: hidden;
  position: relative;
}
.wheel-panel:before {
  content: "CHASSIS / WHEEL POSITION";
  position: absolute;
  right: 22px;
  bottom: 12px;
  color: #546c7f;
  font:
    8px Consolas,
    monospace;
  letter-spacing: 1.3px;
}
.diagram-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #819cae;
  font: 10px var(--font);
  margin: 8px 0;
}
.legend-dot {
  height: 5px;
  width: 5px;
  background: var(--cyan);
  border-radius: 50%;
}
.legend-done {
  margin-left: auto;
  color: var(--lime);
}
.vehicle-diagram {
  position: relative;
  isolation: isolate;
  max-width: 340px;
  margin: 28px auto 22px;
  padding: 70px 0 36px;
  min-height: 320px;
  background: linear-gradient(
    90deg,
    transparent calc(50% - 0.5px),
    #233847 calc(50% - 0.5px),
    #233847 calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}
.vehicle-diagram:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27%;
  right: 27%;
  border: 1px solid #406475;
  background: linear-gradient(90deg, #13212d, #243b49 50%, #13212d);
  clip-path: polygon(
    20% 0,
    80% 0,
    100% 12%,
    100% 94%,
    88% 100%,
    12% 100%,
    0 94%,
    0 12%
  );
  z-index: -2;
}
.vehicle-diagram:after {
  content: "";
  position: absolute;
  top: 30px;
  left: 33%;
  right: 33%;
  height: 33px;
  background: #0a1823;
  border: 1px solid #426578;
  transform: perspective(100px) rotateX(26deg);
  z-index: -1;
  border-radius: 14px 14px 2px 2px;
}
.axle-row {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 27px;
  position: relative;
}
.axle-row:last-child {
  margin-bottom: 0;
}
.axle-row:before {
  content: "";
  height: 2px;
  background: #375464;
  position: absolute;
  left: 20%;
  right: 20%;
  z-index: -1;
}
.axle-label {
  font: 10px var(--font);
  color: #8aa6b8;
  text-align: center;
  background: #1a2b37;
  padding: 4px 0;
}
.wheel-side {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.wheel-side.right {
  justify-content: flex-start;
}
.wheel {
  width: 44px;
  height: 78px;
  padding: 4px;
  border: 1px solid #4a6275;
  background: #0a121c;
  border-radius: 7px;
  box-shadow:
    inset 3px 0 #23333f,
    inset -3px 0 #23333f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: #98b1c4;
  position: relative;
}
.wheel.active {
  background: #133c42;
  border-color: var(--cyan);
  color: #a1fff6;
  box-shadow:
    inset 3px 0 #267072,
    inset -3px 0 #267072,
    0 0 18px #55e9e117;
  outline: 1px solid #55e9e13c;
  outline-offset: 3px;
}
.wheel.done:after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -5px;
  border: 1px solid #c2ee7a66;
  background: #203324;
  color: var(--lime);
  width: 16px;
  height: 16px;
  line-height: 15px;
  font-size: 10px;
  border-radius: 50%;
  text-align: center;
}
.wheel-label {
  font-size: 9px;
}
.wheel-value {
  font:
    11px Consolas,
    monospace;
  color: var(--lime);
}
.wheel-selection {
  padding: 12px;
  background: #0a1721;
  border: 1px solid #2b505e;
  color: var(--cyan);
  text-align: center;
  font-size: 14px;
  border-radius: 4px;
}
.wheel-tools {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.wheel-tools button {
  min-height: 42px;
  padding: 8px 15px;
}
.wheel-tools button:nth-child(2) {
  flex: 1;
  font-size: 11px;
  color: #aac0d1;
  background: #0c1823;
}
.center {
  text-align: center;
}
.map-collapsed .vehicle-diagram,
.map-collapsed .diagram-caption,
.map-collapsed .center {
  display: none;
}
.map-collapsed:before {
  display: none;
}
.measurement-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
}
.status {
  font: 10px var(--font);
  padding: 6px 9px;
  border: 1px solid #354452;
  background: #1c2834;
  color: #afbfcc;
  border-radius: 3px;
  white-space: nowrap;
}
.status:before {
  content: "";
  height: 4px;
  width: 4px;
  display: inline-block;
  background: #7e92a2;
  border-radius: 50%;
  vertical-align: 2px;
  margin-right: 6px;
}
.status.live {
  color: #baf0ce;
  border-color: #39634d;
  background: #142c23;
}
.status.live:before {
  background: var(--lime);
}
.status.error {
  color: #ffc6ab;
  border-color: #66453c;
  background: #30201c;
}
.device-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9db4c6;
  font-size: 12px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--cyan);
  font-size: 12px;
  min-height: 36px;
  padding: 6px;
  font-weight: 500;
}
.message {
  background: #0d1d29;
  border-left: 2px solid #3e7288;
  border-radius: 0;
  padding: 10px 12px;
  margin: 10px 0 18px;
  font-size: 11px;
  line-height: 1.8;
  color: #a1bdce;
  overflow-wrap: anywhere;
}
.telemetry-readouts {
  display: flex;
  flex-direction: column;
}
.readout {
  background: linear-gradient(120deg, #122c36, #0b1722 75%);
  border: 1px solid #315765;
  border-radius: 4px;
  padding: 22px 24px 16px;
  position: relative;
  overflow: hidden;
}
.readout:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 25px;
  height: 25px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  pointer-events: none;
}
.readout > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.readout-label {
  font-size: 12px;
  color: #a7c0d1;
}
.source {
  font: 9px var(--font);
  color: var(--cyan);
  padding: 4px 6px;
  background: #173943;
}
.number {
  font:
    500 90px/1.25 "Bahnschrift",
    "Segoe UI",
    sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -3px;
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 12px 0 8px;
  color: #e0fffb;
  text-shadow: 0 0 28px #55e9e118;
}
.number small {
  font: 18px var(--font);
  letter-spacing: 0;
  color: var(--cyan);
}
.readout-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #25414e;
  padding-top: 12px;
  font: 10px var(--font);
  color: #85a5b9;
}
.pressure-readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  padding: 17px 18px;
  background: #0b131c;
  border: 1px solid #263846;
  border-radius: 4px;
}
.pressure-readout > span:first-child {
  margin-right: auto;
  font-size: 12px;
  color: #a0b7c9;
}
.pressure-readout strong {
  font:
    500 32px/1.2 "Bahnschrift",
    "Segoe UI",
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: #d4eeed;
}
.pressure-readout > span:last-child {
  font: 10px var(--font);
  color: var(--muted);
}
#pressure-detail {
  margin-bottom: 0;
}
.plan-pressure .pressure-readout {
  order: -1;
  padding: 24px 20px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, #122c36, #0b1722 75%);
  border-color: #315765;
  margin: 0 0 12px;
}
.plan-pressure .pressure-readout > span:first-child {
  flex-basis: 100%;
  margin-bottom: 8px;
}
.plan-pressure .pressure-readout strong {
  font-size: 76px;
  color: #e0fffb;
}
.plan-pressure .pressure-readout > span:last-child {
  color: var(--cyan);
  font-size: 12px;
}
.plan-pressure .number {
  font-size: 44px;
  letter-spacing: -1px;
  margin: 9px 0;
}
.plan-pressure .readout {
  padding: 16px 20px;
}
.plan-pressure .wheel-fields label:first-child {
  display: none;
}
.wheel-fields {
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}
.measurement-panel details .form-grid {
  grid-template-columns: 1fr 1fr;
  margin: 14px 0;
}
.save-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  background: #16232e;
  border-color: #314655;
  font-weight: 500;
  font-size: 12px;
  color: #b8cddd;
}
.save-button span {
  color: var(--cyan);
  font-size: 20px;
}
.toast {
  color: var(--lime);
  font-weight: 550;
}
.history-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.history-toolbar label {
  flex: 1;
  min-width: 180px;
}
.record-list {
  display: grid;
  gap: 14px;
}
.record {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid #3a6378;
  border-radius: 5px;
  padding: 22px;
}
.record-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.record-head strong {
  font:
    500 22px "Bahnschrift",
    "Segoe UI",
    sans-serif;
  letter-spacing: 1px;
  color: var(--ink);
}
.record-meta {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.inspection-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 12px;
  font-size: 12px;
  color: #a6bbc9;
}
.inspection-summary > b {
  font:
    500 32px "Bahnschrift",
    "Segoe UI",
    sans-serif;
  color: var(--cyan);
}
.complete-badge,
.partial-badge {
  margin-left: auto;
  padding: 5px 8px;
  font-size: 10px;
  border: 1px solid #48663b;
  color: var(--lime);
  background: #1b2b21;
  border-radius: 3px;
}
.partial-badge {
  border-color: #5a5036;
  background: #29251b;
  color: #e7cd86;
}
.history-wheel {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.history-wheel h3 {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 500;
  margin: 0 0 12px;
}
.wheel-record-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.wheel-record-line strong {
  font-weight: 500;
}
.history-wheel details {
  margin: 10px 0 12px;
  padding-top: 8px;
}
.preserve-lines {
  white-space: pre-wrap;
}
.empty {
  padding: 55px 22px;
  text-align: center;
  color: #8ea5b6;
  background: #0e1822;
  border: 1px dashed #344b5b;
  border-radius: 5px;
  font-size: 13px;
  line-height: 2;
}
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.platform-grid b {
  color: var(--cyan);
  font-size: 15px;
  font-weight: 500;
}
.platform-grid p,
.platform-grid a {
  font-size: 12px;
  line-height: 1.9;
}
.app-install {
  margin-top: 18px;
}
.app-install button {
  margin-right: 8px;
}
.section {
  margin-top: 20px;
}
pre {
  font:
    11px/1.9 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
  color: #8cb6c6;
  margin-top: 18px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font: 10px var(--font);
  color: #748d9e;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1000px) {
  .wheel-panel {
    position: sticky;
    top: 22px;
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .app {
    padding: 0 16px;
  }
  .topbar {
    padding: calc(17px + env(safe-area-inset-top)) 0 17px;
  }
  .wordmark {
    gap: 10px;
  }
  .wordmark > span {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .wordmark > span:before {
    height: 20px;
    width: 5px;
    margin-right: 8px;
  }
  .wordmark small {
    font-size: 9px;
    padding-left: 10px;
    max-width: 80px;
    line-height: 1.5;
  }
  .language-label select {
    width: 99px;
    min-height: 35px;
    font-size: 11px;
  }
  .tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    justify-content: space-around;
    gap: 0;
    background: #0d1823;
    border-top: 1px solid #2e495c;
    padding: 4px 10px calc(5px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px #05090d99;
  }
  .tabs button {
    flex: 1;
    padding: 15px 3px;
    font-size: 12px;
    min-height: 54px;
  }
  .tabs button.active:after {
    top: 0;
    bottom: auto;
    left: 26%;
    right: 26%;
  }
  .page-heading {
    padding: 24px 0 19px;
    align-items: start;
  }
  .page-heading h1 {
    font-size: 25px;
    margin: 8px 0;
  }
  .kicker {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .session-date {
    font-size: 10px;
    padding-top: 2px;
  }
  .context-panel,
  .wheel-panel,
  .measurement-panel {
    padding: 19px;
  }
  .section-title {
    margin-bottom: 17px;
  }
  .section-title h2 {
    font-size: 14px;
  }
  .small {
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .capture-bar {
    padding: 18px;
    gap: 12px;
    margin-top: 16px;
  }
  .capture-bar > div {
    flex-basis: 100%;
  }
  .capture-bar strong {
    font-size: 15px;
  }
  .capture-bar > label {
    flex: 1;
  }
  .capture-bar .check-label {
    white-space: normal;
    line-height: 1.5;
    max-width: 47%;
  }
  .capture-bar > button {
    flex-basis: 100%;
    min-height: 49px;
  }
  .capture-bar select {
    min-width: 0;
  }
  .capture-note {
    font-size: 9px !important;
    line-height: 1.8 !important;
  }
  .capture-feedback {
    font-size: 12px;
    padding-top: 13px;
  }
  .inspection-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  .vehicle-diagram {
    max-width: 290px;
    min-height: 275px;
    margin: 22px auto 18px;
    padding-top: 63px;
    padding-bottom: 30px;
  }
  .wheel {
    height: 67px;
    width: 40px;
  }
  .axle-row {
    margin-bottom: 23px;
    grid-template-columns: 1fr 46px 1fr;
    gap: 5px;
  }
  .map-collapsed {
    padding: 15px 18px;
  }
  .map-collapsed .section-title {
    margin-bottom: 12px;
  }
  .wheel-selection {
    font-size: 13px;
  }
  .wheel-tools button {
    min-height: 42px;
  }
  .number {
    font-size: 88px;
  }
  .plan-pressure .pressure-readout strong {
    font-size: 72px;
  }
  .readout {
    padding: 19px 21px 15px;
  }
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .history-toolbar label {
    flex-basis: 100%;
  }
  .history-toolbar button {
    flex: 1;
    font-size: 12px;
  }
  .record {
    padding: 18px;
  }
  .record-head {
    flex-wrap: wrap;
  }
  .record-head strong {
    font-size: 21px;
  }
  .capturing .page-heading {
    display: none;
  }
  .capturing #vehicle-context {
    margin-top: 16px;
  }
  .capturing .capture-bar {
    padding: 16px;
  }
  .capturing .capture-bar .capture-note {
    display: none;
  }
  .capturing .capture-bar > div {
    flex: 1;
    min-width: 150px;
  }
  .capturing .capture-bar > label {
    flex: 1;
  }
  .capturing .capture-bar strong {
    font-size: 13px;
  }
  .capturing .capture-bar > button {
    flex-basis: auto;
    flex: 1;
  }
  .capturing .capture-bar .check-label {
    font-size: 10px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      border-color 0.15s,
      color 0.15s;
  }
  .view {
    animation: enter 0.2s ease-out;
  }
  @keyframes enter {
    from {
      opacity: 0.75;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (display-mode: standalone) {
  .topbar {
    padding-top: calc(16px + env(safe-area-inset-top));
  }
}
.topbar .wordmark {
  margin-right: auto;
}
.update-button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 11px;
  background: #11232c;
  color: var(--cyan);
  border-color: #2f505f;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .topbar {
    gap: 8px;
  }
  .wordmark small {
    display: none;
  }
  .language-label select {
    width: 90px;
  }
  .update-button {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .wordmark > span {
    font-size: 18px;
    letter-spacing: 0;
  }
}
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.record-actions button {
  font-size: 11px;
  padding: 9px 13px;
  min-height: 42px;
}
.record-actions .danger-button {
  margin-left: auto;
  color: #ffb9a9;
  border-color: #654039;
  background: #2b1c1b;
}
.delete-inline {
  font-size: 10px;
  color: #d9a99a;
  background: transparent;
  border: 0;
  padding: 3px 0;
  min-height: 32px;
}
#share-dialog {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #36566c;
  border-radius: 9px;
  padding: 22px;
  width: min(680px, calc(100vw - 24px));
  max-height: 88dvh;
  overflow: auto;
}
#share-dialog::backdrop {
  background: #02070bd9;
}
.share-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.share-dialog-heading button {
  padding: 6px 12px;
  min-height: 38px;
}
.share-file {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.share-file img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.download-link {
  display: block;
  padding: 14px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#share-native {
  margin: 4px 0 8px;
}
@media (max-width: 600px) {
  .record-actions button {
    flex: 1;
  }
  .record-actions .danger-button {
    margin-left: 0;
    flex-basis: 100%;
  }
  #share-dialog {
    padding: 17px;
  }
}

/* Glacier: bright working surfaces, with the original instrument/chassis contrast. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf3f7;
  --panel: #ffffff;
  --panel-raised: #e5eef4;
  --ink: #152c3e;
  --muted: #526779;
  --line: #c4d4df;
  --cyan: #006e7c;
  --lime: #3f6e19;
}
html[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 75% 0, #c9eaf377, transparent 48%), var(--bg);
}
html[data-theme="light"] button {
  background: #f3f7fa;
  color: var(--ink);
}
html[data-theme="light"] button:hover {
  background: #e5f0f5;
  border-color: #7896a8;
}
html[data-theme="light"] label,
html[data-theme="light"] summary,
html[data-theme="light"] .check-label,
html[data-theme="light"] .device-line,
html[data-theme="light"] .inspection-summary {
  color: var(--muted);
}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #f7fafc;
  color: var(--ink);
  border-color: #b7cbd9;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #627889;
}
html[data-theme="light"] .input-unit > span,
html[data-theme="light"] footer,
html[data-theme="light"] pre,
html[data-theme="light"] .diagram-caption,
html[data-theme="light"] .wheel-panel:before {
  color: var(--muted);
}
html[data-theme="light"] .tabs {
  background: #f4f8fb;
  border-color: var(--line);
  box-shadow: none;
}
html[data-theme="light"] .tabs button {
  background: transparent;
  color: var(--muted);
}
html[data-theme="light"] .tabs button.active {
  color: var(--cyan);
}
html[data-theme="light"] .tabs span {
  background: #dce8f0;
  color: #39576d;
}
html[data-theme="light"] .step {
  border-color: #8fbac5;
}
html[data-theme="light"] .primary {
  background: #006e7c;
  border-color: #006e7c;
  color: #fff;
}
html[data-theme="light"] .primary:hover {
  background: #005965;
  border-color: #005965;
}
html[data-theme="light"] .capture-bar {
  background: #e5f3f6;
  border-color: #a9ccd6;
  border-left-color: var(--cyan);
}
html[data-theme="light"] .capture-bar p,
html[data-theme="light"] .capture-bar .capture-note {
  color: #426977;
  border-color: #b7d4dd;
}
html[data-theme="light"] #context-summary {
  color: #35576a;
}
html[data-theme="light"] .wheel-panel {
  background: linear-gradient(155deg, #ffffff, #e5eef4 75%);
  border-color: var(--line);
}
html[data-theme="light"] .vehicle-diagram,
html[data-theme="light"] .readout,
html[data-theme="light"] .pressure-readout {
  --cyan: #55e9e1;
  --lime: #c2ee7a;
}
html[data-theme="light"] .wheel {
  background: #0a121c;
  color: #b8cedf;
}
html[data-theme="light"] .wheel.active {
  background: #133c42;
  color: #a1fff6;
}
html[data-theme="light"] .legend-done {
  color: var(--lime);
}
html[data-theme="light"] .wheel-selection {
  background: #e2f2f6;
  border-color: #90becb;
}
html[data-theme="light"] .wheel-tools button:nth-child(2),
html[data-theme="light"] .save-button {
  color: #35576a;
  background: #edf4f8;
  border-color: #b7cbd9;
}
html[data-theme="light"] .text-button {
  background: transparent;
  color: var(--cyan);
}
html[data-theme="light"] .message {
  background: #edf5fa;
  color: #385b70;
  border-color: #46849b;
}
html[data-theme="light"] .status {
  color: #445e72;
  background: #e8f0f5;
  border-color: #b6cad7;
}
html[data-theme="light"] .status.live {
  color: #24653b;
  background: #e5f4eb;
  border-color: #95c3a5;
}
html[data-theme="light"] .status.error {
  color: #933d28;
  background: #fff0e9;
  border-color: #d8a28f;
}
html[data-theme="light"] .status.live:before {
  background: #3f6e19;
}
html[data-theme="light"] .complete-badge {
  background: #eaf3e0;
  border-color: #a9c18c;
}
html[data-theme="light"] .partial-badge {
  color: #785510;
  background: #fff5d9;
  border-color: #d7bd79;
}
html[data-theme="light"] .empty {
  background: #f8fbfd;
  color: var(--muted);
  border-color: #b6cad7;
}
html[data-theme="light"] .update-button {
  background: #e5f3f6;
  color: var(--cyan);
  border-color: #a9ccd6;
}
html[data-theme="light"] .record-actions .danger-button {
  color: #9c3827;
  border-color: #dfafa3;
  background: #fff0eb;
}
html[data-theme="light"] .delete-inline {
  color: #9c3827;
  background: transparent;
}
html[data-theme="light"] #share-dialog {
  border-color: #9bb8ca;
}
html[data-theme="light"] #share-dialog::backdrop {
  background: #152c3e88;
}
