:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  color: #f0eee8;
  background: #11151a;
  --border: #343c46;
  --muted: #aab4bf;
  --accent: #e7bd83;
}
* { box-sizing: border-box; }
body { margin: 0; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(1.25rem, calc((100% - 70rem) / 2));
  border-bottom: 1px solid var(--border);
}
.brand { color: inherit; font-size: 1.2rem; font-weight: 750; text-decoration: none; }
.brand span, a { color: var(--accent); }
main { width: min(calc(100% - 2.5rem), 70rem); margin: 2rem auto; }
main.narrow { max-width: 27rem; margin-top: 3.5rem; }
h1 { margin: 0 0 1.35rem; font-size: clamp(1.55rem, 3vw, 2rem); }
h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.card { padding: 1.4rem; border: 1px solid var(--border); border-radius: 12px; background: #1b222a; }
.fields { display: grid; gap: .9rem; }
label { display: grid; gap: .3rem; font-weight: 600; }
input, textarea, button { font: inherit; }
input, textarea {
  width: 100%; padding: .58rem .7rem; border: 1px solid var(--border); border-radius: 7px;
  background: #13191f; color: inherit;
}
button { cursor: pointer; justify-self: start; padding: .52rem .9rem; border: 1px solid transparent; border-radius: 7px; background: var(--accent); color: #191510; font-weight: 700; }
button.secondary { background: #282f38; color: inherit; border-color: var(--border); }
button:hover { filter: brightness(1.1); }
:focus-visible { outline: 2px solid #f4cd94; outline-offset: 3px; }
.hint, small { color: var(--muted); font-size: .85rem; font-weight: 400; }
small { display: block; }
.records { list-style: none; padding: 0; margin: 1.35rem 0 0; }
.records li { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .7rem 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.records button { white-space: nowrap; }
.notice { padding: .75rem 1rem; border-radius: 7px; background: #253630; }
.notice.error { background: #44302c; }
@media (max-width: 45rem) { .columns { grid-template-columns: minmax(0, 1fr); } }
