:root {
  --bg: #0f1221;
  --panel: #161a2b;
  --muted: #a5acc1;
  --text: #e6e9f5;
  --accent: #6ea8fe;
  --border: #2a2f45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 10% 10%, #1a1f36, var(--bg) 100%), var(--bg);
  color: var(--text);
}

.container {
  max-width: 2160px;
  margin: 40px auto;
  padding: 24px;
}

header h1 {
  margin: 0 0 8px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

header p {
  margin: 0;
  color: var(--muted);
}

.panel {
  margin-top: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.0));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid> :first-child {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0e1222;
  color: var(--text);
  outline: none;
}

input::placeholder {
  color: #7f86a3;
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

button {
  appearance: none;
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6, #1f68e8);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(31, 104, 232, 0.35);
}

button[disabled] {
  opacity: 0.6;
  cursor: default;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

pre {
  margin: 0;
  padding: 14px;
  background: #0b0f1d;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: #c8d1ff;
  max-height: 1200px;
  overflow: auto;
}

/* Tabs */
.tabs {
  width: 100%;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-button {
  background: #0e1222;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.tab-button.active {
  background: #182042;
  border-color: #2c3869;
}

.tab-content {
  margin-top: 16px;
}

.tab-content h3:first-child {
  margin-top: 0;
}

.hidden {
  display: none;
}

.muted {
  color: var(--muted);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  font-weight: 600;
  color: var(--muted);
}

th,
td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #1b233f;
  border: 1px solid #2c3869;
  color: #c8d1ff;
  margin: 2px 4px 2px 0;
}

.verification-card {
  margin: 6px 0;
}

.verification-card-id {
  font-size: 13px;
  color: var(--muted);
}

.verification-card-json {
  margin-top: 6px;
}

/* Parser table overflow handling */
#parser-table {
  max-width: 100%;
  overflow-x: auto;
}

#parser-table table {
  table-layout: fixed;
}

#parser-table table th,
#parser-table table td {
  word-break: break-all;
  overflow-wrap: anywhere;
}