form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 40rem;
}
form label { display: block; font-weight: 600; margin-bottom: 1rem; }
form input, form select, textarea {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .7rem .85rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
}

select {
  background-color: #0b1226;
}
select option {
  background-color: #0b1226;
  color: #ffffff;
}
select option:checked {
  background-color: #1b2750;
}

form input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .35); }
form input:focus-visible, form select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(147, 165, 255, .28);
}
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; margin-bottom: .4rem; }
label.inline { display: inline-block; font-weight: 400; margin-right: 1.25rem; }
label.inline input { display: inline; width: auto; margin: 0 .35rem 0 0; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: .9rem; margin: -.5rem 0 1rem; }

.errors {
  background: rgba(255, 107, 107, .08);
  border: 1px solid rgba(255, 107, 107, .45);
  color: #ffb4b4;
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.25rem;
  max-width: 40rem;
}
.errors p { margin: 0 0 .25rem; font-weight: 600; }
.errors ul { margin: 0; padding-left: 1.2rem; }

.notice {
  background: rgba(147, 165, 255, .09);
  border: 1px solid rgba(147, 165, 255, .4);
  color: #dfe5ff;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  max-width: 40rem;
}
.notice strong { color: #fff; }

.summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 0 0 1.25rem;
  max-width: 40rem;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: .5rem 1rem;
}
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary .hint { font-weight: 400; margin: 0; }

.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
.terms table { margin-top: .25rem; }

@media (max-width: 30rem) {
  .summary { grid-template-columns: 1fr; gap: .1rem; }
  .summary dd { margin-bottom: .6rem; }
  form { padding: 1.1rem; }
}
