:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #163e35;
  background: #f4f5ef;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1080px;
  margin: auto;
  padding: 30px 32px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 65px;
  font-size: 14px;
  color: #63776e;
}
.brand {
  font-size: 22px;
  font-weight: 750;
  text-decoration: none;
  color: #163e35;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}
h1 {
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -3px;
  margin: 17px 0;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0 0 25px;
}
.intro {
  color: #61716a;
  font-size: 18px;
  max-width: 500px;
  line-height: 1.6;
}
aside {
  border: 1px solid #dbd9bb;
  background: #f4f0d9;
  border-radius: 16px;
  padding: 18px 22px;
  margin: 30px 0;
  color: #665b2c;
}
aside p {
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
}
.layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
}
.card,
.rule {
  background: white;
  border: 1px solid #e0e5db;
  border-radius: 20px;
  padding: 28px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label,
legend {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 10px;
}
input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d7dfd7;
  background: #fcfdfa;
  color: #163e35;
  border-radius: 9px;
  margin-top: 8px;
  font: inherit;
  min-width: 0;
}
fieldset {
  border: 0;
  padding: 10px 0 20px;
  margin: 0;
}
.days {
  display: flex;
  gap: 6px;
}
.day {
  flex: 1;
  margin: 0;
}
.day input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.day span {
  display: block;
  text-align: center;
  border: 1px solid #d7dfd7;
  border-radius: 8px;
  padding: 11px 0;
  cursor: pointer;
}
.day input:checked + span {
  background: #163e35;
  color: white;
  border-color: #163e35;
}
.day input:focus-visible + span {
  outline: 3px solid #81ab90;
  outline-offset: 2px;
}
.hint {
  font-size: 12px;
  line-height: 1.65;
  color: #697a70;
}
.payment {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e0e5db;
  padding-top: 20px;
  font-size: 13px;
}
.primary {
  background: #163e35;
  color: white;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #81ab90;
  outline-offset: 3px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}
.section-title h2 {
  margin-bottom: 18px;
}
.rule {
  margin-bottom: 14px;
  padding: 22px;
}
.rule h3 {
  font-size: 19px;
  margin: 0 0 10px;
}
.rule p {
  font-size: 14px;
  color: #61716a;
  line-height: 1.6;
}
.badge {
  font-size: 11px;
  background: #f4f0d9;
  padding: 6px 9px;
  border-radius: 6px;
  color: #665b2c;
}
.remove {
  background: none;
  color: #697a70;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  padding: 10px 0;
}
.empty {
  border: 1px dashed #c9d4c8;
  padding: 35px 24px;
  border-radius: 16px;
  color: #697a70;
  line-height: 1.7;
}
footer {
  margin: 55px 0 10px;
  font-size: 12px;
  color: #697a70;
}
#message {
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 740px) {
  main {
    padding: 24px 20px;
  }
  header {
    margin-bottom: 40px;
    gap: 15px;
  }
  header span {
    font-size: 12px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .card {
    padding: 23px;
  }
  .row {
    gap: 10px;
  }
  h1 {
    letter-spacing: -2px;
  }
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}
header {
  margin-bottom: 25px;
}
.header-actions,
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #dbe2d7;
  padding: 0 0 18px;
  margin-bottom: 48px;
  overflow: auto;
}
nav a {
  color: #526c5e;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}
nav a:hover {
  color: #163e35;
}
fieldset {
  padding-top: 22px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  padding: 14px 0;
}
details {
  margin: 12px 0;
}
details > label {
  margin-top: 10px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  border: 1px solid #d7dfd7;
  background: #fcfdfa;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  color: #163e35;
  font: inherit;
}
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ced9ca;
  background: #fff;
  color: #163e35;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}
.secondary:hover {
  background: #edf3e9;
}
.link {
  background: none;
  border: 0;
  color: #526c5e;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
}
.fixed-info {
  background: #eef4e9;
  border-radius: 9px;
  padding: 12px;
  font-size: 13px;
}
.player-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.player-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f1f5ed;
  border-radius: 8px;
  padding: 9px 11px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
}
.player-chip input,
.paid-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #163e35;
  margin: 0;
  padding: 0;
}
.preview-panel {
  background: none;
  border: 0;
  margin: 0;
  padding: 15px 0;
  color: #163e35;
}
.message-preview {
  background: #dcece0;
  border: 1px solid #ccddca;
  border-radius: 19px;
  padding: 11px;
  max-width: 380px;
  margin-top: 20px;
  box-shadow: 0 9px 30px #163e3508;
}
.receipt-placeholder {
  background: white;
  border-radius: 11px;
  padding: 22px;
}
.receipt-placeholder > span {
  display: block;
  background: #163e35;
  color: white;
  padding: 9px;
  margin: -5px -5px 18px;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.receipt-placeholder strong {
  font-size: 25px;
}
.receipt-placeholder small {
  color: #71816f;
  font-size: 11px;
}
.receipt-placeholder p {
  font-size: 15px;
  color: #163e35;
  font-weight: 650;
}
pre {
  font: 14px/1.7 system-ui;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0 10px;
  color: #294a36;
}
.section {
  margin-top: 65px;
}
.section h2 {
  margin-bottom: 18px;
}
.section-title {
  align-items: center;
  padding: 0;
}
.section-title h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.4px;
}
.section-title .eyebrow {
  margin-top: 0;
}
.match-card {
  background: #fff;
  border: 1px solid #e0e5db;
  border-radius: 17px;
  padding: 24px;
  margin-top: 15px;
}
.match-card p {
  margin: 10px 0;
}
.muted {
  color: #697a70;
  font-size: 13px;
}
.badge {
  white-space: nowrap;
  margin-left: 10px;
}
.badge.confirmed {
  background: #dcefdc;
  color: #286038;
}
.badge.error,
.badge.review,
.badge.unavailable {
  background: #fae8df;
  color: #955331;
}
.badge.monitoring,
.badge.submitting {
  background: #e1ecef;
  color: #356775;
}
.badge.cancelled {
  background: #eef0ec;
  color: #697a70;
}
.players-line {
  font-size: 13px;
  line-height: 1.7;
}
.material-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 22px;
}
.inline-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.inline-form label {
  flex: 1;
  margin: 0;
}
.inline-form .primary {
  width: auto;
  white-space: nowrap;
  padding: 13px 22px;
}
.roster-filter {
  margin: 24px 0;
  max-width: 420px;
}
.roster-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  gap: 15px;
  border-bottom: 1px solid #e5eadd;
}
.roster-row:last-child {
  border-bottom: 0;
}
.roster-row strong {
  font-size: 14px;
}
.roster-row small {
  display: block;
  margin-top: 5px;
}
.paid-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  margin: 0;
  font-size: 12px;
}
.login-shell {
  max-width: 470px;
  padding-top: 65px;
}
.login-shell h1 {
  font-size: 56px;
}
.login-shell .card {
  margin-top: 28px;
}
.login-shell .brand {
  display: block;
  margin-bottom: 35px;
}
footer {
  border-top: 1px solid #dbe2d7;
  padding-top: 22px;
}
footer > .link {
  margin-left: 20px;
}
.actions {
  margin-top: 17px;
  margin-bottom: 6px;
}
.primary:hover {
  background: #235445;
}
:target.match-card {
  outline: 2px solid #94b48e;
  outline-offset: 3px;
}
@media (max-width: 740px) {
  nav {
    gap: 24px;
    margin-bottom: 35px;
  }
  .section {
    margin-top: 45px;
  }
  .match-card {
    padding: 20px;
  }
  .section-title {
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-title .badge {
    margin-left: 0;
  }
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
  .inline-form .primary {
    width: 100%;
  }
  .message-preview {
    max-width: 100%;
  }
  .preview-panel {
    padding: 0;
  }
  .roster-row {
    align-items: flex-start;
  }
  .roster-row small {
    max-width: 220px;
  }
  .material-row {
    grid-template-columns: 1fr;
  }
  .actions {
    gap: 8px;
  }
  .actions .secondary {
    font-size: 12px;
    padding: 10px;
  }
  .header-actions {
    gap: 14px;
  }
  h1 {
    font-size: 48px;
  }
  .intro {
    font-size: 16px;
  }
  .login-shell {
    padding-top: 45px;
  }
  .badge {
    font-size: 10px;
  }
}
