:root {
  --bg: #0b1020;
  --bg-panel: #121a2e;
  --bg-panel-hover: #182038;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8edf7;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --success: #34d399;
  --mono: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.1), transparent 24%),
    var(--bg);
  line-height: 1.6;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: #cbd5e1;
}

.page {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.brand__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
}

.brand__tagline {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.refresh-btn,
.copy-btn {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.refresh-btn:hover,
.copy-btn:hover {
  background: var(--bg-panel-hover);
  border-color: rgba(56, 189, 248, 0.35);
}

.hero {
  padding: 1.5rem 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.hero__label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.hero__value {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  word-break: break-all;
}

.hero__meta {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.view-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.view-toggle__btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-toggle__btn:hover {
  color: var(--text);
}

.view-toggle__btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.panel__title {
  margin: 0;
  font-size: 1.05rem;
}

.panel__badge {
  flex-shrink: 0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.panel__badge--client {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}

.panel__badge--warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.panel__desc {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.info-list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.info-list__row {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.info-list__row dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.info-list__row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  word-break: break-word;
}

.json-block {
  margin: 0;
  padding: 1rem;
  border-radius: 10px;
  background: #0a0f1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: auto;
  max-height: 420px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #dbeafe;
}

.status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.status--ok {
  color: var(--success);
}

.site-footer {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .panels {
    grid-template-columns: 1fr;
  }

  .info-list__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
