:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #e9f1ef;
  background: #111916;
  --secondary: #a8bcb4;
  --panel: #1a2621;
  --edge: #3b5147;
  --accent: #b8f36d;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--edge); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 66px; font-weight: 750; font-size: 1.1rem; }
.mark { color: #162313; background: var(--accent); border-radius: 8px; padding: 6px; font-size: .8rem; }
.brand-note { margin-left: auto; font-size: .875rem; color: var(--secondary); font-weight: 500; }
.intro { margin: clamp(2rem, 6vw, 4.5rem) 0 2rem; }
h1 { font-size: clamp(2.1rem, 6vw, 4.5rem); letter-spacing: -.065em; line-height: 1.03; margin: 0; }
h2, h3, p { margin: 0; }
h2 { font-size: 1.18rem; }
h3 { font-size: 1rem; }
.intro p { margin-top: 1rem; color: var(--secondary); font-size: clamp(1rem, 2.5vw, 1.18rem); }
.board { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.panel { padding: clamp(15px, 3vw, 24px); border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); min-width: 0; }
.panel-head { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 1.15rem; }
.panel-head span, label { color: var(--secondary); font-size: .875rem; }
label { display: block; }
textarea, input[type=number] { margin-top: 6px; border: 1px solid var(--edge); border-radius: 8px; padding: 10px; background: #101b16; color: inherit; font: inherit; min-height: 44px; }
textarea { width: 100%; resize: vertical; }
input[type=number] { display: block; width: 100%; }
button { min-height: 44px; font: 650 .925rem system-ui, sans-serif; cursor: pointer; border: 1px solid transparent; border-radius: 9px; padding: 8px 14px; }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--accent); color: #162313; }
.secondary { background: #294038; color: inherit; border-color: var(--edge); }
.quiet { background: transparent; color: var(--secondary); }
button:hover:not(:disabled) { filter: brightness(1.12); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.actions, .round-tools { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.actions { margin-top: 8px; }
#roster { list-style: none; margin: .85rem 0 0; padding: 0; }
#roster li { border-top: 1px solid var(--edge); }
#roster label { display: flex; align-items: center; gap: 10px; min-height: 42px; overflow-wrap: anywhere; color: inherit; cursor: pointer; }
#roster input { accent-color: var(--accent); width: 18px; height: 18px; flex: 0 0 auto; }
#roster li.absent span { color: var(--secondary); }
.notice { color: var(--secondary); margin-block: 13px; }
.teams { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 135px),1fr)); gap: 10px; }
.team { background: #12201a; border: 1px solid var(--edge); border-radius: 12px; padding: 14px; overflow-wrap: anywhere; }
.team h3 { color: var(--accent); }
.team ul { margin: .55rem 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.history { margin-top: 16px; }
.history > p { color: var(--secondary); }
details { border-top: 1px solid var(--edge); padding: 12px 0; }
details .teams { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
footer { color: var(--secondary); display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; margin: 16px 0; font-size: .875rem; }
@media (max-width: 680px) {
  .board { grid-template-columns: 1fr; }
}
