:root {
  font-family: Inter, ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172027;
  background: #f5f1e9;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(242, 215, 91, .28), transparent 32rem),
    radial-gradient(circle at 90% 85%, rgba(25, 137, 113, .18), transparent 28rem),
    #f5f1e9;
}

.status-shell {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
}

.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.brand__mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; color: #fff; background: #087967; font-weight: 800; font-size: 24px; }
.eyebrow { margin: 0 0 2px; color: #68736f; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 5vw, 40px); }

.summary, .panel {
  border: 1px solid rgba(32, 49, 43, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 50px rgba(46, 54, 49, .08);
}

.summary { display: flex; gap: 16px; padding: 24px; }
.summary__indicator { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 7px; border-radius: 50%; background: #8a938f; box-shadow: 0 0 0 7px rgba(138, 147, 143, .12); }
.summary h2 { margin-bottom: 8px; font-size: clamp(22px, 4vw, 30px); }
.summary p { margin-bottom: 0; color: #55615d; line-height: 1.5; }
.summary__time { padding-top: 10px; font-size: 14px; }

.summary[data-status="operational"] .summary__indicator { background: #13866d; box-shadow: 0 0 0 7px rgba(19, 134, 109, .13); }
.summary[data-status="degraded"] .summary__indicator,
.summary[data-status="maintenance"] .summary__indicator { background: #d38a16; box-shadow: 0 0 0 7px rgba(211, 138, 22, .14); }
.summary[data-status="outage"] .summary__indicator,
.summary[data-status="unknown"] .summary__indicator { background: #c94a43; box-shadow: 0 0 0 7px rgba(201, 74, 67, .13); }

.panel { margin-top: 18px; padding: 24px; }
.panel > h2 { margin-bottom: 16px; font-size: 19px; }
.components, .history { margin: 0; padding: 0; list-style: none; }
.components li, .history li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid #e7e8e4; }
.components li:first-child, .history li:first-child { border-top: 0; }
.component-state { flex: 0 0 auto; color: #68736f; font-size: 14px; font-weight: 700; }
.component-state[data-status="operational"] { color: #087967; }
.component-state[data-status="degraded"], .component-state[data-status="maintenance"] { color: #a96708; }
.component-state[data-status="outage"] { color: #aa342e; }
.history li { display: block; }
.history strong { display: block; margin-bottom: 5px; }
.history p { margin-bottom: 5px; color: #55615d; line-height: 1.45; }
.history time { color: #7b8480; font-size: 13px; }

footer { padding: 22px 2px 0; text-align: center; color: #68736f; }
footer button { min-height: 46px; padding: 0 20px; border: 0; border-radius: 14px; color: #fff; background: #087967; font: inherit; font-weight: 750; cursor: pointer; }
footer p { margin: 14px auto 0; max-width: 480px; font-size: 14px; line-height: 1.45; }

@media (max-width: 520px) {
  .status-shell { width: min(100% - 24px, 720px); }
  .summary, .panel { border-radius: 20px; padding: 20px; }
  .components li { align-items: baseline; }
}
