:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17313a;
  background: #eaf0ef;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 184, 175, .26), transparent 34rem),
    linear-gradient(180deg, #f7faf9 0%, #e8efed 100%);
}

.shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: white;
  background: #123746;
  font-size: 28px;
  font-weight: 800;
}

h1, h2, p { margin: 0; }
h1 { font-size: 29px; letter-spacing: -.04em; }
h2 { font-size: clamp(28px, 7vw, 46px); line-height: 1; letter-spacing: -.045em; }

.eyebrow {
  margin-bottom: 5px;
  color: #60747b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.machine-card, .state-card {
  overflow: hidden;
  border: 1px solid rgba(18, 55, 70, .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(33, 62, 69, .12);
}

.machine-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  color: white;
  background: #123746;
}

.machine-heading .eyebrow { color: #a9cbc4; }

.status {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #d8ebe7;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.identity-grid, .technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #dbe4e2;
}

.datum {
  min-width: 0;
  padding: 20px 22px;
  background: white;
}

.datum span {
  display: block;
  margin-bottom: 7px;
  color: #687d83;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.datum strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.35;
}

.datum-prominent strong { font-size: 20px; }
.wide { grid-column: 1 / -1; }

.technical-section { border-top: 12px solid #f0f5f3; }
.technical-section > .eyebrow { padding: 22px 22px 13px; background: white; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-top: 12px solid #f0f5f3;
}

footer p { color: #63767d; font-size: 13px; line-height: 1.55; }

.contact-button {
  flex: 0 0 auto;
  padding: 13px 18px;
  border-radius: 12px;
  color: white;
  background: #c34c28;
  font-weight: 800;
  text-decoration: none;
}

.contact-button:hover { background: #a63f21; }

.state-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 54px 24px;
  text-align: center;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  background: #b44929;
  font-size: 25px;
  font-weight: 900;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #d9e4e1;
  border-top-color: #123746;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.hidden { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .shell { padding-top: 20px; }
  .machine-heading { padding: 24px 20px; }
  .identity-grid, .technical-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  footer { align-items: stretch; flex-direction: column; }
  .contact-button { text-align: center; }
}
