:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0c0f;
  color: #f7f7f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(76, 106, 255, 0.18), transparent 32rem),
    #0b0c0f;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: #4267ff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #5778ff;
}

button.ghost {
  border: 1px solid #2b2d34;
  background: #17181d;
}

button.danger {
  background: #832b36;
}

input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #30323a;
  border-radius: 10px;
  padding: 12px;
  background: #101116;
  color: #fff;
}

label {
  display: block;
  color: #a9abb4;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

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

.hero h1 {
  margin-bottom: 8px;
  font-size: 34px;
}

.eyebrow {
  margin-bottom: 8px;
  color: #8290ff;
  font-weight: 800;
}

.muted {
  color: #a1a3ab;
}

.small {
  margin-top: 12px;
  font-size: 13px;
}

.panel {
  margin-bottom: 20px;
  border: 1px solid #262832;
  border-radius: 16px;
  padding: 22px;
  background: rgba(20, 21, 27, 0.9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.panel h2 {
  margin-bottom: 18px;
  font-size: 20px;
}

.form-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cards .panel {
  margin-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
}

.result {
  min-height: 46px;
  overflow: auto;
  border-radius: 10px;
  padding: 12px;
  background: #0b0c10;
  color: #d8dcff;
  white-space: pre-wrap;
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  border-bottom: 1px solid #252731;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: #8d91a0;
  font-size: 13px;
}

td code {
  color: #d7dcff;
  word-break: break-all;
}

.hidden {
  display: none !important;
}

@media (max-width: 780px) {
  .hero,
  .form-grid,
  .cards {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
