:root {
  color: #f2f1ff;
  background: #141326;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
  --panel: #201e36;
  --muted: #c1bdd6;
  --border: #403b5d;
  --accent: #d3c4ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 55% 0, #332755, transparent 50rem); min-height: 100vh; }
main { width: min(100% - 2rem, 46rem); margin: 0 auto; padding: 2.8rem 0 1.5rem; }
.hero { margin: 0 0 1.65rem; max-width: 36rem; }
.edition { color: var(--accent); letter-spacing: .13em; font-size: .74rem; font-weight: 750; }
h1 { margin: .14rem 0 .4rem; font-size: clamp(2.4rem, 8vw, 4.4rem); line-height: 1; letter-spacing: -.06em; }
h2 { margin: 0 0 .38rem; font-size: 1.12rem; letter-spacing: -.015em; }
p { margin: .35rem 0; color: var(--muted); }
.hero > p:last-child { font-size: 1.06rem; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 1rem; padding: 1.2rem; margin-bottom: .8rem; }
.account { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.account > div { flex: 1 1 13rem; }
button, .primary { background: var(--accent); color: #21153e; padding: .72rem 1rem; min-height: 44px; border-radius: .58rem; border: 1px solid transparent; font: inherit; font-weight: 720; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; }
button:hover:not(:disabled), .primary:hover { background: #e0d6ff; }
button:disabled { opacity: .47; cursor: default; }
button.secondary { color: #e8e1ff; background: transparent; border-color: #655b8e; }
button.secondary:hover:not(:disabled) { background: #342d50; }
button[hidden], .primary[hidden], p[hidden] { display: none; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid #f0dcff; outline-offset: 3px; }
.import { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: .8rem; }
.import button { justify-self: start; }
label { display: grid; gap: .38rem; font-size: .86rem; font-weight: 640; }
input:not([type=checkbox]) { display: block; width: 100%; min-height: 45px; padding: .68rem .75rem; font-family: inherit; font-size: 16px; line-height: 1.3; color: #fff; background: #151427; border: 1px solid #524973; border-radius: .55rem; }
input::placeholder { color: #a6a0bf; }
.optional { color: var(--muted); font-weight: 450; }
.section-heading { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; align-items: baseline; }
#count { color: var(--accent); font-size: .85rem; }
.empty { border: 1px dashed #5c547b; padding: 1rem; border-radius: .65rem; margin: .75rem 0 0; }
ul { padding: 0; margin: 0; list-style: none; }
li + li { border-top: 1px solid var(--border); }
li label { padding: .7rem .12rem; display: flex; align-items: center; gap: .75rem; min-height: 52px; }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; accent-color: var(--accent); }
li span { overflow-wrap: anywhere; }
li small { display: block; color: var(--muted); font-weight: 450; }
.export button, .export .primary { margin: .7rem .3rem .2rem 0; }
#notice:not(:empty), #config-error:not(:empty) { margin-top: .65rem; }
[data-error=true] { color: #ffc0ca; }
footer { color: var(--muted); font-size: .78rem; padding: .35rem 0; }
dialog { width: min(100% - 1.6rem, 34rem); background: var(--panel); border: 1px solid #75679f; border-radius: .85rem; color: #fff; padding: 1.2rem; }
dialog::backdrop { background: #0c0b1abf; }
dialog label { margin-top: .9rem; }
.callback { display: flex; gap: .5rem; align-items: center; padding: .6rem 0; }
code { color: #e4d9ff; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
@media (max-width: 520px) {
  main { padding-top: 1.55rem; }
  .import { grid-template-columns: 1fr; }
  .import button, .export button, .export .primary { width: 100%; }
}
