:root {
  color-scheme: dark;
  font: 16px/1.55 system-ui, sans-serif;
  background: #0d1117;
  color: #edf2fb;
  --muted: #a6b1c3;
  --border: #303a4a;
  --panel: #151b25;
  --accent: #b1c8ff;
}
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(100% - 2rem, 58rem); margin: 0 auto 4rem; }
.masthead { padding: 1.25rem 0; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.brand { color: inherit; text-decoration: none; font-weight: 750; }
.brand span { color: var(--muted); padding: 0 0.2rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.035em; }
h2 { font-size: 1.125rem; }
a { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.title-row, .account { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.title-row { justify-content: space-between; margin-bottom: 1rem; }
.account { color: var(--muted); font-size: 0.875rem; }
.quiet { background: transparent; border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.35rem 0.65rem; color: inherit; text-decoration: none; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 0.85rem; padding: clamp(1rem, 3vw, 1.5rem); }
.login { max-width: 31rem; }
.login p { margin: 0.75rem 0 1rem; color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: #101929; border: 1px solid transparent; border-radius: 0.5rem; padding: 0.58rem 0.95rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.button:hover { background: #c6d7ff; }
.quiet:hover { border-color: var(--muted); }
.add-form { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 0.75rem; }
label { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 650; }
input { width: 100%; min-width: 0; padding: 0.58rem 0.65rem; background: #0d1117; color: inherit; border: 1px solid var(--border); border-radius: 0.5rem; }
.username { display: flex; align-items: center; background: #0d1117; border: 1px solid var(--border); border-radius: 0.5rem; padding-right: 0.65rem; }
.username input { border: 0; }
.username span { color: var(--muted); font-size: 0.875rem; }
.hint { margin-top: 0.85rem; color: var(--muted); font-size: 0.875rem; }
.notice, .error { margin-top: 0.85rem; padding: 0.6rem 0.75rem; border-radius: 0.4rem; }
.notice { background: #203044; color: #c3dcff; }
.error, .login .error { background: #352026; color: #ffbec8; }
.forwards { margin-top: 2.25rem; }
.aliases { list-style: none; margin: 0.75rem 0 0; padding: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 0.85rem; }
.aliases li { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.9rem 1rem; }
.aliases li + li { border-top: 1px solid var(--border); }
.alias-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.875rem; }
.alias-editor { max-width: 36rem; }
.alias-editor form { margin-top: 1rem; }
.alias-editor .alias-actions { margin-top: 1rem; }
.button.danger { background: #ffbec8; }
.button.danger:hover { background: #ffd4da; }
.addresses { display: grid; min-width: 0; overflow-wrap: anywhere; }
.addresses span { color: var(--muted); font-size: 0.875rem; }
.status { color: var(--muted); font-size: 0.875rem; }
.active { color: #a7e6bc; }
.verification, .retrying { color: #f2cf8a; }
.conflict { color: #ffbec8; }
.empty { color: var(--muted); padding: 1rem 0; }
@media (max-width: 44rem) {
  .add-form { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .add-form > div { width: 100%; }
}
