:root {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #183c36;
  background: #f5f7f4;
  font-size: 16px;
  line-height: 1.55;
  --green: #123b35;
  --line: #dde6df;
  --soft: #edf5e7;
  --muted: #667871;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: 2.35rem; margin: 0 0 14px; }
h2 { font-size: 1.3rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 8px 0 18px; }
.brand {
  background: radial-gradient(ellipse at 90% 0%, #24594b 0%, transparent 60%), #102f2b;
  color: #f6faf5;
  padding: 20px max(24px, calc((100% - 1040px) / 2));
  border-bottom: 1px solid #31554b;
}
.brand-link { display: block; width: 270px; max-width: 100%; }
.brand-logo { display: block; width: 100%; height: auto; }
.brand .brand-tagline { display: block; color: #d3dfd2; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; margin: 12px 0 0 3px; }
.page { max-width: 1088px; margin: auto; padding: 24px 24px 56px; }
.footer { border-top: 1px solid var(--line); text-align: center; font-size: .8rem; color: var(--muted); padding: 24px; }
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  margin: 20px 0;
  box-shadow: 0 8px 28px #15382b07;
}
.card p { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.actions, .member-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.actions form { margin: 0; }
.button, button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px;
  font: inherit; font-size: .9rem; font-weight: 600;
  border: 1px solid #cedbd0; border-radius: 12px;
  color: #183c36; background: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.button:hover, button:hover { background: #f0f5ef; border-color: #93ad9c; }
.primary { background: var(--green); border-color: var(--green); color: #fff; }
.primary:hover { background: #0f392f; border-color: #0f392f; }
.danger { color: #a0332b; border-color: #ebd5cf; }
.danger:hover { background: #fff2ee; border-color: #d2aaa0; }
.full { width: 100%; }
:focus-visible { outline: 3px solid #42815e; outline-offset: 3px; }
.session { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .83rem; margin-bottom: 18px; }
.session-actions { display: flex; align-items: center; gap: 18px; }
.session-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.link-button { min-height: 44px; border: 0; background: transparent; color: var(--green); padding: 8px 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 36px; padding: 6px; background: #e9eeea; border: 1px solid var(--line); border-radius: 16px; scrollbar-width: thin; }
.tabs a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: .87rem; font-weight: 550; white-space: nowrap; }
.tabs a:hover { background: #f7faf5; }
.tabs .selected { background: #fff; color: var(--green); box-shadow: 0 2px 8px #163b3312; }
.notice, .error { padding: 16px 18px; border-radius: 10px; margin: 18px 0; border: 1px solid #cbded0; background: var(--soft); }
.notice p { margin-bottom: 0; }
.error { color: #942d25; background: #fff2ee; border-color: #eed5cd; }
label { display: block; margin-bottom: 20px; font-size: .92rem; font-weight: 550; }
input:not([type=checkbox]), select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 46px; margin-top: 7px;
  border: 1px solid #c1d0c4; border-radius: 12px; padding: 11px 12px;
  font: inherit; font-size: 16px; color: inherit; background: #fbfcfa;
}
textarea { font-family: Consolas, monospace; font-size: 14px; resize: vertical; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--green); flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 4px; font-weight: 400; }
.day-choice { display: flex; gap: 16px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 16px 0; min-height: 100px; }
.day-choice:has(input:checked) { background: var(--soft); border-color: #98bd77; box-shadow: inset 4px 0 #98bd77; }
.day-choice strong { display: block; font-size: 1.2rem; }
.day-choice span span { display: block; margin-top: 4px; font-weight: 400; }
.badge { display: inline-block; background: var(--soft); color: var(--green); border: 1px solid #d9e7d9; border-radius: 20px; padding: 5px 11px; font-size: .76rem; font-weight: 600; }
.competition { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.competition p { color: var(--muted); }
dl { display: grid; grid-template-columns: 180px 1fr; gap: 12px 18px; font-size: .92rem; background: #f5f8f4; border-radius: 10px; padding: 18px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.player-choice { border-bottom: 1px solid var(--line); padding: 12px 0; }
.member-picker { max-height: 320px; overflow-y: auto; padding: 0 6px; }
.guest-label { margin-top: 24px; }
.guest-names { font-family: inherit; font-size: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
legend { padding: 0 8px; }
.draw-groups { display: grid; gap: 28px; margin-top: 24px; }
.draw-group { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.draw-group-heading { margin: 0; padding: 12px 16px; background: var(--green); color: #fff; font-size: 1rem; line-height: 1.5; font-weight: 600; }
.draw-group-players { list-style: none; padding: 0; margin: 0; }
.draw-group-players li { padding: 11px 16px; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.draw-group-players li + li { border-top: 1px solid var(--line); }
code { overflow-wrap: anywhere; }
details { margin: 18px 0; }
summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.login-panel { max-width: 480px; margin: 24px auto 0; }
@media (max-width: 600px) {
  .brand { padding: 18px 20px; }
  .brand-link { width: 245px; }
  .brand .brand-tagline { font-size: .68rem; letter-spacing: .1em; }
  .page { padding: 20px 16px 32px; }
  .session { flex-wrap: wrap; gap: 4px 14px; }
  h1 { font-size: 1.7rem; }
  .card { padding: 18px; }
  .tabs { margin-bottom: 26px; }
  .tabs a { flex: 0 0 auto; padding: 10px 16px; }
  .actions .button, .actions form { flex: 1 1 auto; }
  .actions form button { width: 100%; }
  dl { display: block; padding: 16px; }
  dt { font-size: .8rem; margin-top: 14px; }
  dt:first-child { margin-top: 0; }
  dd { margin-top: 3px; }
  .day-choice { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, button { transition: none; }
}

