:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #18202f;
  --muted: #667085;
  --line: #d9e0ea;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #b42318;
  --ok: #067647;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(1.55rem, 4vw, 2.35rem); }
h2 { font-size: 1.05rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.07);
}

.narrow { max-width: 480px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact { gap: 10px; }

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 700;
}

input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

button, .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 9px 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .link-button:hover { background: var(--accent-strong); }
.ghost { background: #fff; color: var(--accent); }
.ghost:hover { color: #fff; }

.muted { color: var(--muted); line-height: 1.5; }

.alert {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.alert.error { color: var(--danger); border-color: #fecdca; background: #fff6f5; }
.alert.ok { color: var(--ok); border-color: #abefc6; background: #f6fef9; }

.details {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}
.details div { display: grid; gap: 3px; }
.details dt { color: var(--muted); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; }
.details dd { margin: 0; overflow-wrap: anywhere; }

.token {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #bfd7d3;
  background: #effaf8;
  color: #134e4a;
}

.list-panel { padding: 0; overflow: hidden; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.section-head span { color: var(--muted); font-size: 0.9rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: #475467; font-size: 0.78rem; text-transform: uppercase; }
td { font-size: 0.92rem; }
.empty { color: var(--muted); text-align: center; padding: 28px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (max-width: 840px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
}
