:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #233c36;
  background: #f4f5f0;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 76px;
  border-bottom: 1px solid #dce2d9;
  display: flex;
  align-items: center;
  padding: 0 4%;
  gap: 22px;
  background: #fff;
}
.brand {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 20px;
}
.brand span {
  color: #b5ba8a;
  margin: 0 12px;
}
#connection {
  margin-left: auto;
  font-size: 12px;
  color: #63766c;
}
main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 42px 4%;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  margin: 10px 0;
}
h2 {
  font-size: 17px;
  margin: 0;
}
p {
  color: #69796f;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #72826c;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
button,
.button {
  font: inherit;
  border: 1px solid #d5ded3;
  border-radius: 7px;
  background: white;
  padding: 10px 14px;
  cursor: pointer;
  color: #29473c;
  display: inline-block;
  text-align: center;
}
button:hover,
.button:hover {
  background: #eaf0e7;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: #244b3d;
  color: white;
  border-color: #244b3d;
}
.primary:hover {
  background: #35624f;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #e8edde;
  border: 1px solid #dce2d2;
  border-radius: 10px;
  margin-bottom: 26px;
}
.stats > div {
  padding: 22px 25px;
  border-right: 1px solid #d5ddcc;
}
.stats span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #60705c;
}
.stats strong {
  display: block;
  font-weight: 500;
  font-size: 32px;
  margin-top: 8px;
}
.layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 26px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid #dce2d9;
  border-radius: 10px;
  padding: 22px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}
.pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #edf1e6;
  border-radius: 4px;
  color: #557046;
  padding: 6px 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
input,
select {
  display: block;
  margin-top: 7px;
  width: 100%;
  padding: 11px;
  border: 1px solid #d4ddd3;
  border-radius: 6px;
  font: inherit;
  color: #244537;
  background: #fff;
}
input:focus,
select:focus {
  outline: 2px solid #8a9f70;
  outline-offset: 1px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  margin: 18px 0;
  color: #5b705d;
}
details form {
  margin-top: 14px;
}
.full {
  width: 100%;
}
.import {
  border-top: 1px solid #e5e9e1;
  border-bottom: 1px solid #e5e9e1;
  margin: 20px 0;
  padding: 20px 0;
}
.import label {
  margin: 0;
}
.import p,
.small {
  font-size: 11px;
  line-height: 1.6;
  color: #738174;
}
.player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0e9;
}
.player-info {
  flex: 1;
  min-width: 0;
}
.player-info strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.player-info small {
  display: block;
  color: #7b877d;
  margin-top: 3px;
}
.group {
  background: #e9eddf;
  color: #63734b;
  font-size: 11px;
  font-weight: 750;
  border-radius: 5px;
  padding: 6px 8px;
}
.group.A {
  background: #244b3d;
  color: white;
}
.group.B {
  background: #dbe4d0;
}
.icon {
  padding: 5px 8px;
  font-size: 12px;
}
.mode {
  display: flex;
  gap: 8px;
}
.mode button {
  flex: 1;
}
.mode .selected {
  background: #244b3d;
  color: white;
  border-color: #244b3d;
}
.controls p {
  font-size: 12px;
}
.control-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf0e8;
  padding-top: 16px;
  font-size: 12px;
}
.comparison {
  font-size: 12px;
  color: #5a705a;
  margin: 16px 0;
  line-height: 1.6;
}
.teams-heading {
  margin: 26px 0 15px;
}
.teams-heading span {
  color: #829080;
  font-size: 12px;
  font-weight: 400;
}
.teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.team {
  background: white;
  border: 1px solid #dce2d9;
  border-radius: 9px;
  overflow: hidden;
}
.team-top {
  padding: 16px 20px;
  background: #f0f3ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.team-top h3 {
  margin: 0;
  font-size: 14px;
}
.team-total {
  text-align: right;
}
.team-total strong {
  font-size: 23px;
  font-weight: 500;
}
.team-total small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  color: #72806b;
}
.team-body {
  padding: 5px 20px 14px;
}
.team .player:last-child {
  border: 0;
}
.player-index {
  font-variant-numeric: tabular-nums;
}
.team-note {
  font-size: 10px;
  color: #7e896e;
  padding-top: 8px;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed #c7d2bd;
  border-radius: 8px;
  color: #77866c;
  grid-column: 1/-1;
}
.result {
  width: 100%;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}
#notice {
  background: #fff2ce;
  border: 1px solid #e5d49c;
  padding: 13px 16px;
  margin-bottom: 20px;
  border-radius: 6px;
}
.login {
  max-width: 450px;
  margin: 50px auto;
}
.login h1 {
  font-size: 43px;
}
footer {
  padding: 25px 4%;
  border-top: 1px solid #dde3d5;
  color: #7e8a74;
  font-size: 10px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}
[hidden] {
  display: none !important;
}
#players {
  max-height: 700px;
  overflow: auto;
}
.guest-option {
  font-size: 10px;
  font-weight: 400;
  margin: 6px 0 0;
}
.guest-option input {
  display: inline;
  width: auto;
  margin: 0 4px 0 0;
}
@media (max-width: 1100px) {
  .heading {
    display: block;
  }
  .actions {
    margin-top: 20px;
  }
  .layout {
    grid-template-columns: 300px 1fr;
  }
  .teams {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  main {
    padding-top: 25px;
  }
  h1 {
    font-size: 38px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats > div {
    padding: 16px;
  }
  .mode {
    flex-direction: column;
  }
  .control-bottom {
    align-items: start;
  }
  .heading p {
    font-size: 12px;
  }
  footer span {
    display: none;
  }
}
@media print {
  header,
  aside,
  .controls,
  .actions,
  .comparison,
  footer,
  #notice,
  .stats,
  #algorithm-note {
    display: none !important;
  }
  main {
    padding: 0;
  }
  .heading {
    margin-bottom: 15px;
  }
  .heading p,
  .eyebrow {
    display: none;
  }
  .layout {
    display: block;
  }
  .teams {
    grid-template-columns: repeat(2, 1fr);
  }
  .team {
    break-inside: avoid;
  }
  .team-top {
    background: #eee !important;
  }
  .team .player {
    padding: 7px 0;
  }
  body {
    background: #fff;
  }
  h1 {
    font-size: 28px;
  }
  .teams-heading {
    margin-top: 0;
  }
}
dialog {
  max-width: 510px;
  width: calc(100% - 32px);
  border: 1px solid #d5ddd0;
  border-radius: 12px;
  padding: 28px;
  color: #233c36;
  box-shadow: 0 15px 80px #15362833;
}
dialog::backdrop {
  background: #18332666;
}
.check-row {
  display: flex;
  align-items: start;
  gap: 10px;
  line-height: 1.6;
}
.check-row input {
  width: auto;
  margin: 5px 0 0;
}
/* Club identity: deep green, warm paper and the original clubhouse photograph. */
:root {
  background: #f5f3ec;
  color: #1c3c30;
}
header {
  background: #173c2e;
  color: #fff;
  border-bottom: 3px solid #b6a878;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 1px;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand .club-name {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1.5px;
  margin: 0;
  color: #fff;
}
.club-name small {
  display: block;
  font-family: ui-sans-serif, system-ui;
  font-size: 8px;
  letter-spacing: 3px;
  margin-top: 5px;
}
.brand .brand-divider {
  height: 32px;
  width: 1px;
  background: #ffffff30;
  margin: 0 3px;
}
.brand .brand-swot {
  color: #e4d9b6;
  font-size: 14px;
  letter-spacing: 3px;
  margin: 0;
}
#connection {
  color: #d7e0d6;
}
header button {
  background: transparent;
  color: #f3f1e8;
  border-color: #ffffff40;
}
header button:hover {
  background: #ffffff12;
}
.heading {
  position: relative;
  isolation: isolate;
  min-height: 230px;
  padding: 32px;
  border-radius: 10px;
  background: #173c2e;
  overflow: hidden;
  color: #fff;
  border: 1px solid #173c2e;
}
.heading:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #133829 0%, #133829ed 35%, #13382955 100%),
    url("/images/eacc-clubhouse.jpg") center 54% / cover;
}
.heading .eyebrow {
  color: #d1c59b;
}
.heading h1 {
  color: #fff;
}
.heading p {
  color: #e2e5d9;
  font-size: 12px;
}
.heading .actions {
  align-self: flex-end;
  justify-content: flex-end;
  max-width: 330px;
}
.heading .actions button {
  background: #f8f7f0eb;
  border-color: #faf8ee;
  color: #244b3d;
}
.heading .actions .primary {
  background: #d6c797;
  border-color: #d6c797;
  color: #173c2e;
}
.stats {
  background: #ebece0;
}
.panel,
.team {
  background: #fffefb;
}
.print-crest {
  display: none;
}
.login {
  max-width: 950px;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  overflow: hidden;
  margin: 30px auto;
}
.login-art {
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    linear-gradient(180deg, #14372975, #143729c4),
    url("/images/eacc-clubhouse.jpg") 46% center/cover;
}
.login-art img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}
.login-art .eyebrow {
  color: #e4d6ad;
}
.login-art p {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  color: #fff;
}
.login-art small {
  color: #e3dfd1;
  font-size: 10px;
}
.login-content {
  padding: 50px 38px;
}
.login h1 {
  font-size: 46px;
}
.login-content > p {
  margin-bottom: 30px;
}
.role-legend {
  margin: -4px 0 17px;
}
.team .player-info small {
  font-size: 10px;
  line-height: 1.5;
}
.team .player-index {
  font-size: 14px;
}
@media (max-width: 1100px) {
  .heading {
    min-height: 240px;
  }
  .heading .actions {
    max-width: none;
    justify-content: flex-start;
  }
}
@media (max-width: 700px) {
  header {
    padding: 0 5%;
    gap: 9px;
  }
  .brand {
    gap: 9px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand .club-name {
    font-size: 10px;
  }
  .club-name small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .brand .brand-divider,
  .brand .brand-swot {
    display: none;
  }
  #connection {
    font-size: 10px;
  }
  .heading {
    padding: 23px;
    min-height: 245px;
  }
  .heading:before {
    background:
      linear-gradient(90deg, #133829ed, #13382970),
      url("/images/eacc-clubhouse.jpg") center/cover;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 200px;
    padding: 25px;
  }
  .login-art img {
    width: 60px;
    height: 60px;
  }
  .login-art p {
    font-size: 22px;
    margin: 12px 0;
  }
  .login-content {
    padding: 28px;
  }
}
@media print {
  .heading {
    padding: 0;
    min-height: 0;
    color: #173c2e;
    background: #fff;
    border: 0;
  }
  .heading:before {
    display: none;
  }
  .heading h1 {
    color: #173c2e;
  }
  .heading .print-crest {
    display: block;
    width: 45px;
    float: left;
    margin-right: 15px;
  }
  .role-legend {
    font-size: 9px;
  }
  .team .player-info small {
    font-size: 8px;
  }
  .heading .actions {
    display: none;
  }
}
.login-error {
  padding: 12px 14px;
  border: 1px solid #e4b3a3;
  border-radius: 6px;
  background: #fff0e9;
  color: #862e20;
  font-size: 13px;
}
#password[aria-invalid="true"] {
  border-color: #a44330;
}
.event-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.events-label {
  margin: 0 0 18px;
}
.events-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.event-card {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.event-card h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}
.event-card button {
  margin-top: auto;
}
.event-card .section-title {
  width: 100%;
  align-items: start;
}
.event-card .eyebrow {
  line-height: 1.6;
  letter-spacing: 1px;
}
.create-event h2 {
  margin-bottom: 14px;
}
.create-event p {
  font-size: 12px;
}
textarea {
  display: block;
  margin-top: 7px;
  width: 100%;
  padding: 11px;
  border: 1px solid #d4ddd3;
  border-radius: 6px;
  font: inherit;
  color: #244537;
  background: #fff;
}
#event-notes {
  max-width: 650px;
  font-size: 11px;
}
#events-notice {
  background: #fff2ce;
  border: 1px solid #e5d49c;
  padding: 13px 16px;
  margin-bottom: 20px;
  border-radius: 6px;
}
#pending-section {
  border-top: 1px solid #e0e5d9;
  margin-top: 20px;
  padding-top: 10px;
}
#pending-section h3 {
  font-size: 14px;
}
@media (max-width: 1000px) {
  .events-list {
    grid-template-columns: 1fr;
  }
  .event-home-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 700px) {
  .event-home-layout {
    grid-template-columns: 1fr;
  }
  .create-event {
    grid-row: 1;
  }
  .brand .club-name {
    display: none;
  }
}
@media print {
  #event-date,
  #event-notes {
    display: block !important;
    color: #173c2e;
  }
  .heading #event-notes {
    font-size: 10px;
  }
  .heading #event-date {
    font-size: 12px;
  }
}
.pending-warning {
  background: #fff3d6;
  border: 1px solid #e2d29d;
  border-radius: 7px;
  padding: 13px 16px;
  font-size: 12px;
  color: #705829;
  margin-bottom: 22px;
}
.guest-blocked {
  color: #8a492c !important;
}
.placement-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.placement-actions .icon {
  font-size: 10px;
  padding: 5px 7px;
}
.saved-assignment {
  color: #335a37 !important;
  font-weight: 600;
}
.assignment-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.assignment-controls button {
  font-size: 11px;
  flex-shrink: 0;
}
@media print {
  .placement-actions,
  .assignment-controls {
    display: none !important;
  }
}
@media print {
  .saved-assignment {
    display: none !important;
  }
}
