:root {
  --bg: #f3f2ee;
  --panel: #ffffff;
  --text: #171717;
  --muted: #6b7280;
  --line: #d1d5db;
  --primary: #0f4c81;
  --primary-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #dfe8f5, var(--bg));
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

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

.topbar h1 {
  margin: 0;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.form-row {
  margin-bottom: 12px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

button {
  border: 0;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: #dbeafe;
  color: #1e3a8a;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.status {
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  background: #e5e7eb;
  color: #111827;
}

.tab.active {
  background: var(--primary);
  color: var(--primary-ink);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f9fafb;
}

.card h3 {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.card p {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 700;
}

pre {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0b1020;
  color: #dbeafe;
  overflow: auto;
}

.hidden {
  display: none;
}

.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px;
  font-size: 13px;
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column;
  }
}
