:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #14202b;
  --muted: #5b6875;
  --line: #d8dee6;
  --panel: #ffffff;
  --ok: #176b42;
  --warn: #935f08;
  --bad: #9b2525;
  --accent: #176c7d;
  --focus: #0b6fcb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 20px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  line-height: 1.3;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--ink);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.notice,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  color: var(--warn);
}

.notice span {
  color: var(--ink);
}

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

.panel {
  min-width: 0;
  padding: 16px;
}

.label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.value {
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.detail {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.state-ok .value {
  color: var(--ok);
}

.state-warn .value {
  color: var(--warn);
}

.state-bad .value {
  color: var(--bad);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  margin-top: 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.capabilities {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capabilities li,
.summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.summary {
  display: grid;
  gap: 10px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 14px 0;
  }

  .topbar,
  .notice {
    align-items: stretch;
    flex-direction: column;
  }

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

  h1 {
    font-size: 26px;
  }

  button {
    width: 100%;
  }
}
