:root {
  color-scheme: dark;
  --bg: #09111f;
  --surface: #101d31;
  --surface-2: #0d192a;
  --border: #233c59;
  --text: #edf4ff;
  --muted: #91a7c4;
  --positive: #60dca9;
  --negative: #ff92a1;
  --neutral: #d0b66a;
  --focus: #a9dcff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 Inter, system-ui, sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 28px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
header span, .eyebrow { color: var(--muted); font-size: 11px; }
.brand { color: var(--text); text-decoration: none; font-size: 18px; font-weight: 800; }
.brand strong { color: var(--text); }
main { max-width: 1100px; margin: 28px auto; padding: 0 28px; }
h1 { margin: 0 0 18px; font-size: 28px; font-weight: 700; line-height: 1.3; }
h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
p { max-width: 820px; color: var(--muted); }
#signin { max-width: 480px; margin: 10vh auto; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.panel { margin-top: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; align-items: end; }
label { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; color: #c7d5e7; }
input, select { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #31506f; border-radius: 8px; background: #081525; color: var(--text); font: inherit; }
input::placeholder { color: #8299b5; }
button { border: 0; border-radius: 8px; background: #2678be; color: white; padding: 10px 12px; font: 800 14px/1.5 Inter, system-ui, sans-serif; cursor: pointer; }
button:hover { background: #3189d1; }
button:disabled { opacity: .45; cursor: not-allowed; }
.quiet { border: 1px solid #3c6687; background: #17314a; color: #c9e4f7; }
.quiet:hover { background: #203f5b; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hint { margin-bottom: 0; font-size: 11px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: #2678be; }
.account { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.account strong { font-size: 16px; }
.account small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#message { min-height: 28px; margin-top: 18px; color: #b7c8d9; font-size: 12px; white-space: pre-wrap; }
footer { padding: 24px 28px; color: var(--muted); font-size: 11px; }
[hidden] { display: none !important; }
@media (max-width: 800px) { .account { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  header { align-items: flex-start; flex-direction: column; gap: 6px; padding: 18px; }
  main { margin: 18px auto; padding: 0 18px; }
  h1 { font-size: 24px; }
  .panel { padding: 18px; }
  .heading { align-items: flex-start; }
  #signin { margin: 5vh auto; padding: 20px; }
}
