:root {
  color-scheme: dark;
  font: 16px/1.6 Inter, "Noto Sans JP", system-ui, sans-serif;
  color: #f0f4fb;
  background: #11151c;
  --panel: #191f29;
  --border: #303a49;
  --muted: #a9b6c6;
  --accent: #baf38f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  min-height: 68px;
  padding: 10px max(22px, calc((100vw - 1100px) / 2));
}
header strong { font-size: 1.5rem; color: var(--accent); margin-right: 16px; }
header span, p { color: var(--muted); }
main { width: min(1100px, calc(100% - 32px)); margin: 28px auto 60px; }
#status { color: var(--accent); }
#status:empty { display: none; }
.summary { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 0 0 22px; }
.summary strong { color: var(--accent); font-size: 1.7rem; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.6rem, 4vw, 2.35rem); line-height: 1.25; margin-block: 4px 8px; }
h2 { font-size: 1.2rem; }
h3 { font-size: .95rem; }
.grid, .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
section { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.login { max-width: 480px; margin: 12vh auto 0; }
.discord-login { display: inline-block; background: var(--accent); color: #132014; padding: 8px 15px; border-radius: 7px; font-weight: 700; text-decoration: none; margin-block: 8px 14px; }
.teams { grid-column: 1 / -1; }
form, label { display: grid; gap: 6px; }
form { gap: 14px; margin-top: 15px; }
label { font-size: .9rem; }
input, select, button { font: inherit; }
input:not([type=checkbox]), select {
  width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--border);
  background: #11151c; color: #f0f4fb; border-radius: 7px;
}
button {
  min-height: 42px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px;
  color: #132014; background: var(--accent); font-weight: 700; cursor: pointer;
}
button:disabled { opacity: .4; cursor: default; }
.secondary { background: transparent; border-color: var(--border); color: #f0f4fb; }
a { color: var(--accent); width: fit-content; }
code { color: var(--accent); }
.actions, .section-heading { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.section-heading { align-items: center; justify-content: space-between; }
.check { display: flex; align-items: center; min-height: 42px; }
.check input { accent-color: var(--accent); }
.attendance > div { border-bottom: 1px solid var(--border); padding-block: 12px; }
.attendance p { margin-top: 4px; }
pre { background: #11151c; border: 1px solid var(--border); border-radius: 7px; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
