:root {
  --forest: #063f35;
  --leaf: #0f6b4d;
  --river: #087c91;
  --sky: #d9f5f6;
  --sun: #f4c542;
  --ara-red: #d63f2f;
  --ink: #10231f;
  --muted: #5a6d67;
  --line: #c9ddd6;
  --surface: #ffffff;
  --page: #f2fbf7;
  --shadow: 0 18px 50px rgba(6, 63, 53, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(8, 124, 145, 0.08), transparent 34rem),
    radial-gradient(circle at 10% 10%, rgba(244, 197, 66, 0.12), transparent 17rem),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(242, 251, 247, 0.92);
  border-bottom: 1px solid rgba(201, 221, 214, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.action-row,
.hero-meta,
.contact-strip,
.summary-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  color: white;
  background: var(--forest);
  border: 3px solid var(--sun);
  border-radius: 50%;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.top-nav {
  gap: 0.75rem;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 700;
}

.top-nav a {
  text-decoration: none;
}

.messages {
  width: min(1120px, 100%);
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.message {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--river);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-hero {
  position: relative;
  display: grid;
  min-height: 28rem;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
  padding: clamp(1.4rem, 5vw, 4rem);
  color: white;
  background:
    linear-gradient(135deg, rgba(6, 63, 53, 0.96), rgba(8, 124, 145, 0.9)),
    var(--forest);
  border-radius: 0;
  isolation: isolate;
}

.event-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -18% -10%;
  height: 18rem;
  background:
    linear-gradient(145deg, transparent 55%, rgba(244, 197, 66, 0.78) 55% 61%, transparent 61%),
    linear-gradient(35deg, transparent 52%, rgba(214, 63, 47, 0.9) 52% 58%, transparent 58%),
    rgba(15, 107, 77, 0.9);
  clip-path: polygon(0 38%, 12% 20%, 25% 45%, 39% 18%, 55% 47%, 73% 16%, 88% 38%, 100% 21%, 100% 100%, 0 100%);
  z-index: -1;
}

.hero-copy {
  max-width: 44rem;
  align-self: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.hero-summary {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-meta {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 1.4rem;
}

.hero-meta span,
.tag-list span,
.row-status {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-meta span {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-badge {
  position: absolute;
  right: clamp(0.5rem, 6vw, 4rem);
  bottom: 2rem;
  width: min(26vw, 12rem);
  aspect-ratio: 1;
  opacity: 0.95;
}

.canopy-shape,
.bird-accent {
  position: absolute;
  display: block;
}

.canopy-shape {
  width: 72%;
  height: 44%;
  background: var(--leaf);
  border-radius: 50% 50% 8px 8px;
  transform-origin: bottom center;
}

.shape-one {
  left: 8%;
  bottom: 14%;
  transform: rotate(-18deg);
}

.shape-two {
  right: 0;
  bottom: 30%;
  background: #16a06b;
  transform: rotate(18deg);
}

.shape-three {
  left: 28%;
  bottom: 0;
  background: #0a7554;
}

.bird-accent {
  right: 5%;
  top: 8%;
  width: 42%;
  height: 22%;
  background: linear-gradient(90deg, var(--ara-red) 0 45%, var(--sun) 45% 72%, var(--river) 72%);
  border-radius: 999px 999px 999px 8px;
  transform: rotate(-14deg);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  color: var(--forest);
  background: var(--sun);
  box-shadow: 0 12px 28px rgba(244, 197, 66, 0.25);
}

.secondary-button {
  color: white;
  background: var(--forest);
}

.quick-grid,
.info-grid,
.event-list,
.field-grid,
.checkbox-grid {
  display: grid;
  gap: 0.8rem;
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.info-panel,
.narrow-panel,
.event-row,
.content-band,
.contact-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 7rem;
  padding: 1rem;
}

.stat-number {
  display: block;
  color: var(--forest);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.stat-label,
.muted,
.event-row small,
.row-metrics {
  color: var(--muted);
}

.stat-label {
  display: block;
  margin-top: 0.45rem;
  font-weight: 800;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.info-panel,
.content-band,
.contact-strip,
.narrow-panel {
  padding: 1.15rem;
}

.info-panel h2,
.section-heading h2 {
  color: var(--forest);
}

.content-band,
.contact-strip,
.page-heading,
.narrow-panel {
  margin-top: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list span {
  color: var(--forest);
  background: var(--sky);
}

.contact-strip {
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.contact-strip a {
  color: var(--river);
  font-weight: 800;
}

.page-heading {
  padding: 1rem 0 0.3rem;
}

.page-heading h1,
.narrow-panel h1 {
  color: var(--forest);
  font-size: clamp(2rem, 8vw, 3.7rem);
}

.event-list {
  margin-top: 1rem;
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
}

.event-row strong,
.event-row small {
  display: block;
}

.row-status {
  color: var(--forest);
  background: rgba(244, 197, 66, 0.35);
}

.row-metrics {
  font-weight: 800;
  text-align: right;
}

.narrow-panel {
  width: min(42rem, 100%);
  margin-right: auto;
  margin-left: auto;
}

.form-panel {
  margin-bottom: 2rem;
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  min-width: 0;
}

label,
legend {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--forest);
  font-weight: 900;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-card {
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.75rem;
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-card input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--river);
}

.game-choice-list {
  display: grid;
  gap: 0.8rem;
}

.game-choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem;
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.game-choice-main strong,
.game-choice-main span,
.game-choice-main small {
  display: block;
}

.game-choice-main span,
.game-choice-main small {
  color: var(--muted);
}

.game-choice-controls {
  display: grid;
  gap: 0.7rem;
}

.errorlist {
  margin: 0.35rem 0 0;
  padding: 0;
  color: #9e2419;
  list-style: none;
  font-weight: 800;
}

.action-row {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.success-panel {
  border-top: 5px solid var(--leaf);
}

.summary-list {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.summary-list span {
  padding: 0.45rem 0.7rem;
  background: var(--sky);
  border-radius: 8px;
  color: var(--forest);
  font-weight: 800;
}

.wide-panel {
  width: min(58rem, 100%);
}

.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-form {
  margin: 0;
}

.phase-board {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.phase-board-heading,
.tab-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.phase-board-heading h2,
.tab-action-bar h2 {
  margin: 0;
  color: var(--forest);
}

.phase-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.phase-step {
  margin: 0;
}

.phase-step-button {
  display: grid;
  width: 100%;
  min-height: 4.4rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  color: var(--forest);
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.phase-step-button:hover {
  border-color: var(--river);
}

.phase-step.is-active .phase-step-button {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
  cursor: default;
}

.phase-index {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--forest);
  background: var(--sky);
  border-radius: 50%;
  font-size: 0.85rem;
}

.phase-step.is-active .phase-index {
  background: var(--sun);
}

.phase-label {
  min-width: 0;
}

.organizer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-button {
  min-height: 2.7rem;
  padding: 0.6rem 0.9rem;
  color: var(--forest);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab-button.is-active {
  color: white;
  background: var(--forest);
}

.tab-panel {
  margin-top: 1rem;
}

.tab-action-bar {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.organizer-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.filter-field {
  min-width: 0;
}

.summary-block {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.section-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-subheading h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.1rem;
}

.section-subheading span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.export-heading-bar,
.team-export-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.export-heading-bar > div,
.team-export-panel-heading > div {
  min-width: 0;
}

.export-heading-bar h2,
.export-document-heading h3 {
  margin: 0;
}

.export-document-heading {
  margin-bottom: 1rem;
}

.export-document-heading h3 {
  color: var(--forest);
  font-size: 1.2rem;
}

.summary-row-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.summary-row,
.request-group-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.request-group-row.is-incompatible,
.summary-row.is-incompatible {
  padding-left: 0.75rem;
  border-left: 4px solid var(--ara-red);
}

.summary-row strong,
.summary-row span,
.summary-row small,
.request-group-row strong,
.request-group-row span,
.request-group-row small {
  display: block;
}

.summary-row span,
.summary-row small,
.request-group-row span,
.request-group-row small {
  color: var(--muted);
}

.summary-row-status {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  text-align: right;
}

.status-pill.is-danger {
  color: white;
  background: var(--ara-red);
}

.status-pill.is-muted {
  color: var(--forest);
  background: rgba(90, 109, 103, 0.16);
}

.warning-text {
  margin: 0.7rem 0 0;
  color: #9e2419;
  font-weight: 900;
}

.switch-field {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  color: var(--forest);
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.switch-field input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--leaf);
}

.small-field {
  max-width: 14rem;
}

.tiny-field {
  max-width: 7rem;
}

.game-list,
.public-game-list,
.material-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.game-card,
.public-game-row {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1rem;
}

.game-card h2,
.public-game-row h3 {
  margin: 0.25rem 0 0.45rem;
  color: var(--forest);
}

.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-grid span,
.status-pill {
  display: inline-flex;
  min-height: 1.85rem;
  align-items: center;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.meta-grid span {
  color: var(--forest);
  background: var(--sky);
}

.status-pill {
  width: fit-content;
  color: var(--river);
  background: rgba(8, 124, 145, 0.12);
}

.status-pill.is-selected {
  color: var(--forest);
  background: rgba(244, 197, 66, 0.42);
}

.material-row,
.assignment-row,
.inline-assignment-form {
  display: grid;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.material-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.offer-list .material-row {
  grid-template-columns: minmax(0, 1fr);
}

.material-row strong,
.material-row span,
.material-row small {
  display: block;
}

.material-row span,
.material-row small {
  color: var(--muted);
}

.assignment-row {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-left: 1rem;
  padding: 0.55rem 0;
}

.assignment-row span {
  color: var(--forest);
  font-weight: 800;
}

.inline-assignment-form {
  grid-template-columns: minmax(12rem, 2fr) 6rem minmax(10rem, 1fr) auto;
  margin-left: 1rem;
}

.requirement-fieldset,
.equipment-fieldset {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.initial-requirement-list,
.equipment-offer-list {
  display: grid;
  gap: 1rem;
}

.initial-requirement-row,
.equipment-offer-row {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.add-requirement-button,
.add-equipment-offer-button {
  width: fit-content;
}

.text-button {
  padding: 0;
  color: var(--river);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.compact-text {
  margin: 0.25rem 0 0.55rem 1rem;
}

.participant-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.participant-row {
  display: grid;
  grid-template-columns: minmax(13rem, 0.9fr) minmax(14rem, 1fr) minmax(14rem, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.participant-row strong,
.participant-row span,
.participant-row small {
  display: block;
}

.participant-row span,
.participant-row small {
  color: var(--muted);
}

.participant-link {
  width: fit-content;
  margin-top: 0.35rem;
}

.participant-name-link {
  color: var(--forest);
  text-decoration: none;
}

.participant-name-link:hover,
.participant-name-link:focus-visible {
  color: var(--leaf);
  text-decoration: underline;
}

.participant-status,
.participant-materials,
.participant-game-list {
  display: grid;
  gap: 0.35rem;
}

.participant-materials span,
.participant-game-list span {
  padding: 0.45rem 0.6rem;
  color: var(--forest);
  background: var(--sky);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.public-game-row {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.35fr);
  padding: 1rem;
}

.public-game-row p {
  color: var(--muted);
}

.public-materials {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.45rem;
}

.public-materials span {
  padding: 0.35rem 0.6rem;
  color: var(--forest);
  background: rgba(244, 197, 66, 0.32);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.schedule-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.85rem;
  align-items: end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.schedule-wide-field {
  grid-column: span 2;
}

.schedule-team-checkboxes {
  display: grid;
  max-height: 13rem;
  overflow-y: auto;
  gap: 0.35rem;
  padding: 0.55rem;
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-team-checkboxes > div {
  min-width: 0;
}

.schedule-team-checkboxes label {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  color: var(--forest);
  background: rgba(217, 245, 246, 0.38);
  border-radius: 8px;
  font-weight: 800;
}

.schedule-team-checkboxes input {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  accent-color: var(--leaf);
}

.schedule-submit {
  width: fit-content;
}

.schedule-edit {
  margin-top: 0.75rem;
}

.schedule-edit summary {
  width: fit-content;
  cursor: pointer;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 900;
}

.schedule-edit-form {
  margin-top: 0.65rem;
}

.schedule-team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.schedule-team-list span {
  padding: 0.35rem 0.6rem;
  color: var(--forest);
  background: var(--sky);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.schedule-view-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

.segmented-control {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented-control-button {
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  color: var(--forest);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.segmented-control-button.is-active {
  color: white;
  background: var(--forest);
}

.schedule-export-frame,
.standings-export-frame {
  margin-top: 1rem;
  padding: 1rem;
  background: #fbfffd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.global-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 0.85rem;
  align-items: start;
}

.global-calendar-column {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.global-calendar-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  padding: 0.85rem 1rem;
  color: white;
  background: var(--forest);
}

.global-calendar-column-heading strong {
  min-width: min(10rem, 100%);
}

.global-calendar-column-heading span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.column-export-button {
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  color: var(--forest);
  background: white;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.column-export-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.global-calendar-stack {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
}

.global-calendar-card {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
  background: #fbfffd;
  border: 1px solid rgba(201, 221, 214, 0.92);
  border-radius: 8px;
}

.global-calendar-card.is-incompatible {
  background: rgba(214, 63, 47, 0.08);
  border-color: rgba(214, 63, 47, 0.35);
}

.global-calendar-card strong,
.global-calendar-card span,
.global-calendar-card small {
  display: block;
}

.global-calendar-card > span,
.global-calendar-card small {
  color: var(--muted);
}

.global-calendar-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.global-calendar-card-top time {
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 900;
}

.team-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: 1rem;
  align-items: start;
}

.team-export-panel {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.team-export-panel-heading strong,
.team-export-panel-heading span {
  display: block;
}

.team-export-panel-heading span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.team-export-frame {
  margin-top: 0;
}

.team-export-calendar {
  grid-template-columns: 1fr;
}

.export-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.export-footnote span {
  padding: 0.35rem 0.6rem;
  color: var(--forest);
  background: var(--sky);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.result-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.result-entry-grid {
  display: grid;
  gap: 0.65rem;
}

.result-entry-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 4.8rem 7rem;
  gap: 0.65rem;
  align-items: end;
  padding: 0.75rem;
  background: rgba(217, 245, 246, 0.42);
  border: 1px solid rgba(201, 221, 214, 0.85);
  border-radius: 8px;
}

.result-rank-field,
.result-score-field {
  width: 100%;
  max-width: 7rem;
}

.result-rank-field .form-control {
  max-width: 4.8rem;
}

.result-score-field .form-control {
  max-width: 7rem;
}

.result-ranking-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.result-ranking-list span {
  padding: 0.35rem 0.6rem;
  color: var(--forest);
  background: rgba(244, 197, 66, 0.28);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.result-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.standings-table {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.standings-row {
  display: grid;
  grid-template-columns: 3rem minmax(8rem, 1fr) repeat(2, minmax(5rem, 0.4fr));
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.standings-head {
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.standings-wide .standings-row {
  grid-template-columns: 3rem minmax(8rem, 1fr) repeat(2, minmax(5rem, 0.4fr));
}

.compact-standings .standings-row {
  grid-template-columns: 2.5rem minmax(7rem, 1fr) 4rem;
}

.team-overview-grid,
.team-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.team-overview-panel {
  height: 100%;
}

.team-schedule-band {
  overflow: visible;
}

.team-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.team-calendar-day {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.team-calendar-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: white;
  background: var(--forest);
}

.team-calendar-day-heading span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.team-calendar-slots {
  display: grid;
  gap: 0;
}

.team-calendar-slot {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem;
  border-top: 1px solid var(--line);
}

.team-calendar-slot:first-child {
  border-top: 0;
}

.team-calendar-slot.is-incompatible {
  background: rgba(214, 63, 47, 0.08);
}

.team-calendar-time {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.15rem;
  min-height: 4.2rem;
  padding-top: 0.15rem;
  color: var(--forest);
  border-right: 2px solid rgba(15, 107, 77, 0.2);
}

.team-calendar-time strong,
.team-calendar-time span {
  line-height: 1.1;
}

.team-calendar-time span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.team-calendar-card {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.team-calendar-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-calendar-card-main strong,
.team-calendar-card-main span,
.team-calendar-card small {
  display: block;
}

.team-calendar-card-main > div {
  min-width: 0;
}

.team-calendar-card-main > div > span,
.team-calendar-card small {
  color: var(--muted);
}

.team-calendar-result,
.team-calendar-result-form {
  margin-top: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(201, 221, 214, 0.9);
}

.team-calendar-result {
  display: grid;
  gap: 0.45rem;
}

.team-calendar-result-form summary {
  width: fit-content;
  cursor: pointer;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.team-toolbar,
.team-card-header,
.team-member-row,
.member-move-form,
.inline-team-form,
.team-name-controls {
  display: flex;
  align-items: center;
}

.team-toolbar,
.team-card-header {
  justify-content: space-between;
  gap: 1rem;
}

.inline-team-form {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.compact-field {
  min-width: min(20rem, 100%);
  margin: 0;
}

.team-board {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.team-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-name-form {
  display: grid;
  gap: 0.55rem;
}

.team-name-controls {
  align-items: flex-end;
  gap: 0.75rem;
}

.team-name-controls .compact-field {
  flex: 1 1 20rem;
}

.team-status {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.team-member-list {
  display: grid;
  gap: 0.55rem;
}

.team-member-row {
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.team-member-row strong,
.team-member-row span {
  display: block;
}

.team-member-row span {
  color: var(--muted);
}

.member-move-form {
  flex: 0 1 22rem;
  gap: 0.5rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .top-nav {
    padding-top: 0.35rem;
  }

  main {
    padding: 0.75rem;
  }

  .event-hero {
    min-height: 27rem;
    padding: 1.25rem;
  }

  .hero-badge {
    right: 1rem;
    bottom: 1rem;
    width: 9rem;
  }

  .quick-grid,
  .four-grid,
  .info-grid,
  .team-overview-grid,
  .team-results-grid,
  .field-grid,
  .checkbox-grid,
  .three-cols,
  .organizer-filter-bar,
  .summary-row,
  .request-group-row,
  .game-choice-row,
  .game-card,
  .material-row,
  .assignment-row,
  .inline-assignment-form,
  .participant-row,
  .public-game-row,
  .team-card-header,
  .team-member-row {
    grid-template-columns: 1fr;
  }

  .schedule-wide-field {
    grid-column: auto;
  }

  .result-entry-row,
  .standings-row {
    grid-template-columns: 1fr;
  }

  .team-calendar {
    grid-template-columns: 1fr;
  }

  .team-calendar-slot {
    grid-template-columns: 3.8rem minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.75rem;
  }

  .team-calendar-time {
    min-height: 3.8rem;
  }

  .team-calendar-card-main,
  .result-action-row {
    align-items: flex-start;
  }

  .team-calendar-card-main {
    flex-direction: column;
  }

  .event-row,
  .export-heading-bar,
  .team-export-panel-heading,
  .phase-board-heading,
  .tab-action-bar,
  .contact-strip,
  .team-toolbar,
  .team-card-header,
  .team-member-row,
  .member-move-form,
  .team-name-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .tab-action-bar .primary-button {
    width: 100%;
  }

  .export-heading-bar button,
  .team-export-panel-heading button,
  .segmented-control {
    width: 100%;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row-metrics {
    text-align: left;
  }

  .game-card-actions {
    justify-content: stretch;
  }

  .game-card-actions a,
  .game-card-actions form,
  .game-card-actions button {
    width: 100%;
  }

  .assignment-row,
  .inline-assignment-form,
  .compact-text {
    margin-left: 0;
  }

  .section-subheading,
  .summary-row-status,
  .team-status {
    align-items: flex-start;
    justify-items: start;
    text-align: left;
  }

  .member-move-form,
  .team-name-form,
  .member-move-form .form-control,
  .team-name-form .form-control,
  .team-name-controls,
  .team-name-form button,
  .member-move-form button {
    width: 100%;
  }
}
