:root {
  --primary: #6D3AE8;
  --primary-pressed: #5B2BD0;
  --primary-soft: #EDE7FD;
  --accent: #2EF2B0;
  --accent-soft: #D9FDF0;
  --text: #18181B;
  --text-secondary: #52525B;
  --background: #FAFAFA;
  --surface: #FFF;
  --border: #E4E4E7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  font: 16px/1.5 "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
}
header, main { max-width: 1080px; margin: auto; padding: 18px 24px; }
header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
header > a { margin-right: auto; font-weight: 700; text-decoration: none; letter-spacing: .04em; }
h1, h2 { line-height: 1.15; }
h1 { font: 500 clamp(2rem, 5vw, 3.5rem)/1.15 Georgia, serif; }
h2 { font-size: 1.35rem; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
section, details, .tile { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 14px 0; }
.tiles, .grid, form.inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.tiles .tile { flex: 1; min-width: 140px; }
.tile strong { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
label { display: block; margin: .35em 0; }
input, select, button { font: inherit; border: 1px solid #71717A; padding: .5em .65em; border-radius: 6px; max-width: 100%; }
label input, label select { display: block; width: 100%; }
button { cursor: pointer; background: var(--primary); color: white; border-color: var(--primary); }
button:hover, button:active { background: var(--primary-pressed); border-color: var(--primary-pressed); }
button.light { background: var(--surface); color: var(--primary); }
button.light:hover { background: var(--primary-soft); }
summary { cursor: pointer; font-weight: 650; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; border-bottom: 1px solid var(--border); padding: 8px; }
td.num { text-align: right; white-space: nowrap; }
small, .muted { color: var(--text-secondary); }
.notice { background: var(--accent-soft); border-inline-start: 4px solid var(--accent); padding: 12px; }
.access { max-width: 440px; margin: 3em auto; border-top: 4px solid var(--accent); }
.access input, .access button { width: 100%; }
code { overflow-wrap: anywhere; }
@media (max-width: 650px) {
  main, header { padding: 12px; }
  .grid label { flex: 1 1 130px; }
  td, th { font-size: .9rem; padding: 5px; }
}
