:root {
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #16a34a;
  --yellow: #d97706;
  --red: #dc2626;
  --ink: #172033;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--background); }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 800; }
h1 { margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: .01em; }
.brand p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.updated { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.clock { width: 15px; height: 15px; border: 1.8px solid currentColor; border-radius: 50%; position: relative; }
.clock::before { content: ""; position: absolute; left: 6px; top: 3px; width: 1.5px; height: 4px; background: currentColor; }
.clock::after { content: ""; position: absolute; left: 6px; top: 6px; width: 3px; height: 1.5px; background: currentColor; }
main { padding-block: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgb(15 23 42 / 3%); }
.summary { padding: 22px; margin-bottom: 22px; }
.overall { display: flex; align-items: center; gap: 10px; }
.overall h2 { margin: 0; font-size: 16px; }
.indicator { width: 11px; height: 11px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 4px #f1f5f9; }
.indicator.operational { background: var(--green); box-shadow: 0 0 0 4px #dcfce7; }
.indicator.degraded { background: var(--yellow); box-shadow: 0 0 0 4px #fef3c7; }
.indicator.unavailable { background: var(--red); box-shadow: 0 0 0 4px #fee2e2; }
.description { margin: 10px 0 18px; color: var(--muted); font-size: 13px; }
.description strong { color: #334155; }
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.summary-item { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid #edf0f4; border-radius: 8px; background: #f8fafc; font-size: 13px; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.status-dot.operational { background: var(--green); }
.status-dot.degraded { background: var(--yellow); }
.status-dot.unavailable { background: var(--red); }
.summary-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #475569; }
.summary-latency { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.region-card { padding: 18px; min-width: 0; }
.region-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.region-title { display: flex; align-items: baseline; gap: 7px; }
.region-title h3 { margin: 0; font-size: 15px; }
.region-title span { color: #94a3b8; font-size: 11px; }
.region-heading-mobile { display: none; }
.metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 12px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.metrics strong { color: #334155; }
.chart { display: block; width: 100%; height: 150px; }
.empty { height: 150px; display: grid; place-items: center; color: #94a3b8; font-size: 13px; background: linear-gradient(#fff, #fbfdff); border-radius: 6px; }
.error-banner { margin-top: 18px; padding: 13px 15px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 9px; font-size: 13px; }
footer { padding: 6px 0 28px; text-align: center; color: #94a3b8; font-size: 11px; }

@media (max-width: 800px) {
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .shell { width: min(100% - 22px, 1120px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 15px; }
  .updated { align-self: flex-end; }
  main { padding-block: 18px; }
  .summary { padding: 17px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-card { padding: 15px; }
  .region-head { display: block; }
  .region-heading-desktop { display: none; }
  .region-heading-mobile { display: block; }
  .metrics { justify-content: flex-start; margin-top: 8px; }
}
