:root {
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
  --background: #f2f4f8;
  --surface: #fff;
  --ink: #192236;
  --muted: #4e5d73;
  --line: #d2dae6;
  --accent: #0655bc;
  --accent-hover: #064797;
  background: var(--background);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 52rem); margin-inline: auto; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: .65rem; min-height: 3.75rem; font-weight: 650; }
.mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; color: white; background: var(--accent); border-radius: .45rem; }
main { padding-block: clamp(2.4rem, 8vw, 5.5rem); }
h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.045em; line-height: 1.1; }
.intro { margin: .8rem 0 2rem; color: var(--muted); }
form { padding: clamp(1rem, 4vw, 1.65rem); border: 1px solid var(--line); border-radius: 1.2rem; background: var(--surface); }
label { display: block; margin-bottom: .55rem; font-weight: 650; }
.controls { display: flex; flex-wrap: wrap; gap: .65rem; }
input, button { font: inherit; min-height: 3rem; border-radius: .65rem; }
input { flex: 1 1 14rem; width: 100%; min-width: 0; color: var(--ink); background: var(--background); border: 1px solid var(--line); padding-inline: .8rem; }
input::placeholder { color: var(--muted); }
button { flex: 1 0 auto; padding-inline: 1.4rem; color: white; background: var(--accent); border: 1px solid transparent; font-weight: 650; cursor: pointer; }
button:hover { background: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#status { color: var(--muted); margin: 1.45rem 0 .7rem; }
.table-box { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .8rem clamp(.55rem, 3vw, 1.3rem); overflow-wrap: anywhere; }
th { font-size: .875rem; color: var(--muted); background: var(--background); }
td { border-top: 1px solid var(--line); }
td:last-child { font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) {
  :root { --background: #111722; --surface: #192232; --ink: #f0f4fc; --muted: #b9c6dc; --line: #44536b; --accent: #2066cb; --accent-hover: #1555ae; }
  :focus-visible { outline-color: #80b6ff; }
}
.admin-link { margin-top: 2rem; }
a { color: inherit; text-underline-offset: .2em; }
