:root {
  --bg: #eef3fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #0a2a66;
  --text-strong: #071b43;
  --muted: #4a4a4a;
  --line: rgba(10, 42, 102, 0.14);
  --accent: #0a2a66;
  --accent-soft: #2389ff;
  --accent-dark: #071b43;
  --success-bg: #eaf4ff;
  --success-text: #0a2a66;
  --error-bg: #fff0ef;
  --error-text: #9a2e2e;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(35, 137, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(10, 42, 102, 0.05), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 22px 50px rgba(10, 42, 102, 0.08);
  backdrop-filter: blur(10px);
}

.narrow {
  max-width: 460px;
  margin: 10vh auto 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text-strong);
  line-height: 1.05;
}

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

.stack {
  display: grid;
  gap: 14px;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

label span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-strong);
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(10, 42, 102, 0.18);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

button.secondary {
  background: rgba(35, 137, 255, 0.12);
  color: var(--accent);
  box-shadow: none;
}

.button-link.secondary {
  background: rgba(35, 137, 255, 0.12);
  color: var(--accent);
  box-shadow: none;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.flash {
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.flash-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.flash-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.bridge-banner {
  margin-bottom: 16px;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(10, 42, 102, 0.14);
  background: rgba(35, 137, 255, 0.08);
  color: var(--muted);
}

.bridge-banner-ready {
  background: var(--success-bg);
  color: var(--success-text);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  color: var(--text-strong);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .shell {
    padding: 24px 14px 40px;
  }

  .header-row,
  .toolbar {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  button,
  input,
  .button-link {
    width: 100%;
  }
}
